/* =========================================================
   915 Market Street — design system
   Quiet luxury: warm ivory, deep ink, bronze accent,
   editorial serif display, generous whitespace.
   ========================================================= */
:root {
  --ink: #1b2120;          /* deep charcoal-green */
  --night: #121615;        /* dark bands */
  --muted: #5e6562;
  --paper: #f8f5ef;        /* warm ivory */
  --stone: #ebe5da;        /* hairlines, quiet fills */
  --sand: #f1ece3;         /* alternate band */
  --accent: #96754a;       /* bronze */
  --accent-soft: #c9ae84;  /* bronze on dark */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 6vw, 5.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--paper); line-height: 1.7; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); max-width: 18ch; }
h3 { font-size: 1.5rem; }
.eyebrow { display: flex; align-items: center; gap: .9rem; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 0 0 1.2rem; }
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: .7; flex: none; }
.lead { color: var(--muted); font-size: 1.12rem; font-weight: 300; max-width: 680px; line-height: 1.8; }
.fine { font-size: .78rem; color: var(--muted); margin-top: 1.8rem; }
.text-link { color: var(--accent); font-weight: 500; text-decoration: none; letter-spacing: .02em; border-bottom: 1px solid transparent; transition: border-color .3s; }
.text-link:hover { border-bottom-color: currentColor; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; border: 1px solid var(--ink); padding: 1.05rem 1.9rem; font: 500 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-small { padding: .7rem 1.1rem; font-size: .64rem; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; color: #fff; background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,0)); transition: background .4s, color .4s, box-shadow .4s; }
.nav.solid { background: rgba(248, 245, 239, .96); color: var(--ink); box-shadow: 0 1px 0 var(--stone); backdrop-filter: blur(8px); }
.nav-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem var(--gutter) .2rem; }
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; text-decoration: none; white-space: nowrap; letter-spacing: .01em; }
.brand-num { font-family: var(--sans); font-size: .62em; font-weight: 500; letter-spacing: .22em; vertical-align: .18em; margin-right: .2em; color: var(--accent-soft); }
.nav.solid .brand-num { color: var(--accent); }
.nav:not(.solid) .btn-small { background: transparent; border-color: rgba(255,255,255,.7); }

.tabs { display: flex; gap: .1rem; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: .6rem .7rem .65rem; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border-bottom: 1px solid transparent; opacity: .75; transition: opacity .3s, border-color .3s, color .3s; }
.tabs a:hover { opacity: 1; }
.tabs a.active { opacity: 1; border-bottom-color: currentColor; }
.nav.solid .tabs a.active { color: var(--accent); }
.tabs a:focus-visible, .section-menu a:focus-visible, .section-fab:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* Floating section menu */
.section-fab { position: fixed; z-index: 30; right: calc(1.25rem + env(safe-area-inset-right, 0px)); bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.3rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 500 .68rem var(--sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.22); transition: background .3s; }
.section-fab:hover, .section-fab.open { background: var(--accent); }
.section-fab[hidden] { display: none; }
.fab-icon { font-size: 1rem; line-height: 1; letter-spacing: 0; }
.section-menu { position: fixed; z-index: 30; right: calc(1.25rem + env(safe-area-inset-right, 0px)); bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); width: 250px; max-height: calc(100vh - 8rem); overflow-y: auto; background: var(--paper); border: 1px solid var(--stone); box-shadow: 0 20px 50px rgba(0,0,0,.16); padding: 1.1rem 0 .6rem; }
.section-menu[hidden] { display: none; }
.section-menu-title { margin: 0 1.3rem .5rem; font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.section-menu ul { list-style: none; margin: 0; padding: 0; }
.section-menu a { display: block; padding: .5rem 1.3rem; text-decoration: none; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); border-left: 2px solid transparent; }
.section-menu a:hover { background: var(--sand); }
.section-menu a.active { border-left-color: var(--accent); color: var(--accent); background: var(--sand); }
.section-menu .section-menu-top { margin-top: .4rem; border-top: 1px solid var(--stone); padding-top: .7rem; font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 14s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,12,.82) 0%, rgba(10,12,12,.25) 52%, rgba(10,12,12,.4) 100%); }
.hero-text { position: relative; padding: 0 var(--gutter) clamp(3.5rem, 10vh, 6.5rem); max-width: 980px; }
.hero .eyebrow { color: var(--accent-soft); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 400; line-height: 1.02; margin: 0; max-width: 20ch; }
.hero-sub { font-size: 1.05rem; font-weight: 300; line-height: 1.75; margin: 1.3rem 0 0; max-width: 600px; opacity: .92; }
.hero-facts { margin: 1.4rem 0 0; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.hero-facts span { color: var(--accent-soft); margin: 0 .55rem; }
.hero-actions { margin-top: 2.2rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-actions .btn:not(.btn-ghost) { background: #fff; color: var(--ink); border-color: #fff; }
.hero-actions .btn:not(.btn-ghost):hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.hero-meta { margin: 1.6rem 0 0; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.hero-text > * { animation: rise 1.2s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .12s; }
.hero-text > :nth-child(3) { animation-delay: .24s; }
.hero-text > :nth-child(4) { animation-delay: .34s; }
.hero-text > :nth-child(5) { animation-delay: .44s; }
.hero-text > :nth-child(6) { animation-delay: .54s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(3.5rem, 10vh, 6.5rem); width: 1px; height: 64px; background: rgba(255,255,255,.3); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Key facts band ---------- */
.facts { background: var(--night); color: #fff; }
.facts ul { list-style: none; margin: 0 auto; padding: 2.2rem var(--gutter); display: grid; grid-template-columns: repeat(6, 1fr); max-width: 1320px; }
.facts ul:empty { display: none; }
.facts li { text-align: center; padding: 0 .5rem; border-left: 1px solid rgba(255,255,255,.12); }
.facts li:first-child { border-left: 0; }
.facts strong { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; line-height: 1.1; }
.facts span { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-soft); }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) var(--gutter); max-width: 1320px; margin: 0 auto; }
/* full-bleed background bands without extra wrappers */
.band-sand, .band-night { box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); background: var(--band); }
.band-sand { --band: var(--sand); }
.band-night { --band: var(--night); color: #f3efe8; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img, .hero-text > *, .scroll-cue span { animation: none; }
}

/* ---------- Gallery ---------- */
.gallery-section { max-width: 1500px; }
.filters { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; margin: 1.8rem 0 2.2rem; border-bottom: 1px solid var(--stone); }
.filters button { background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; padding: .7rem 0; font: 500 .68rem var(--sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; color: var(--muted); transition: color .3s, border-color .3s; }
.filters button:hover { color: var(--ink); }
.filters button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tile { position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--stone); aspect-ratio: 4/3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile-caption { position: absolute; inset: auto 0 0; padding: 2.4rem 1.1rem .9rem; color: #fff; font: 400 .8rem/1.4 var(--sans); letter-spacing: .02em; text-align: left; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); opacity: 0; transition: opacity .4s; }
.tile:hover .tile-caption, .tile:focus-visible .tile-caption, .gallery.featured .tile-caption { opacity: 1; }
.gallery:not(.featured) .tile:first-child { grid-column: span 2; grid-row: span 2; }
/* editorial mosaic: one large image, two stacked, three below */
.gallery.featured { grid-template-columns: repeat(3, 1fr); }
.gallery.featured .tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.view-all { margin-top: 2rem; }
.view-all[hidden] { display: none; }

/* ---------- The Home + video ---------- */
.intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.intro-text p { color: var(--muted); font-size: 1.05rem; font-weight: 300; }
.intro-video { min-width: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); margin: 0; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; background: var(--ink); }
.video-note { margin: .9rem 0 0; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- The View (dark band) ---------- */
.views-section { --band: var(--night); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); background: var(--band); color: #f3efe8; }
.views-section .eyebrow { color: var(--accent-soft); }
.views-section .lead { color: rgba(243,239,232,.75); }
.deck-intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.deck-intro .lead { margin-bottom: 1.2rem; }
.deck-note { font-family: var(--serif); font-size: 1.45rem; font-style: italic; color: var(--accent-soft); margin: 0; }
.deck-photo { margin: 0; position: relative; }
.deck-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.deck-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); color: var(--ink); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; padding: .6rem 1rem; }
.views-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: clamp(3rem, 6vw, 5rem); }
.views-grid figure { margin: 0; position: relative; overflow: hidden; }
.views-grid img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; transition: transform 1.4s var(--ease); }
.views-grid figure:hover img { transform: scale(1.04); }
.views-grid figcaption { position: absolute; inset: auto 0 0; padding: 2.4rem 1.1rem .9rem; color: #fff; font-family: var(--serif); font-size: 1.15rem; background: linear-gradient(to top, rgba(0,0,0,.65), transparent); }
.from-deck { display: block; font-family: var(--sans); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: .2rem; }

/* ---------- Floor plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; margin-top: 2.5rem; }
.plan { margin: 0; }
.plan a { display: block; background: #fff; border: 1px solid var(--stone); padding: 1rem; transition: border-color .4s, box-shadow .4s; }
.plan a:hover { border-color: var(--accent); box-shadow: 0 24px 50px -30px rgba(0,0,0,.3); }
.plan img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.plan h3 { margin: 1.3rem 0 .35rem; }
.plan figcaption p { color: var(--muted); font-size: .92rem; font-weight: 300; margin: 0; }

/* ---------- Highlights ---------- */
.core-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 3rem; }
.feature.core-feature { border-top: 0; padding-top: 0; }
.core-feature img { width: 100%; aspect-ratio: 4/5; object-fit: cover; margin-bottom: 1.4rem; }
.core-num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--accent); margin: 0 0 .3rem; }
.core-feature h3 { font-size: 1.75rem; }
.core-feature p:not(.core-num) { color: var(--muted); font-weight: 300; margin: 0; }
.sub-title, .upgrades-title { font-size: .7rem; font-family: var(--sans); font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin: clamp(4rem, 8vw, 6rem) 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3.5rem; margin-top: 2rem; }
.feature { border-top: 1px solid var(--stone); padding-top: 1.4rem; }
.feature h3 { font-size: 1.45rem; }
.feature p { color: var(--muted); font-weight: 300; margin: 0; }
.feature p strong { color: var(--ink); font-weight: 500; }
.upgrades .feature { border-top-color: var(--accent); }

/* ---------- Specifications ---------- */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 5rem; margin-top: 3rem; }
.specs h3 { font-size: .7rem; font-family: var(--sans); font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.specs ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.specs li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--stone); font-size: .95rem; font-weight: 300; }
.specs li span { color: var(--muted); font-size: .66rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; padding-top: .3rem; }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.location p { color: var(--muted); font-weight: 300; }
.address { font-family: var(--serif); font-size: 1.7rem; color: var(--ink) !important; line-height: 1.3; font-weight: 400 !important; }
.map iframe { width: 100%; height: 460px; border: 0; filter: grayscale(.85) contrast(1.05); transition: filter .6s; }
.map iframe:hover { filter: none; }

/* ---------- Schools ---------- */
.school-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.school { background: var(--paper); padding: 2.2rem; border: 1px solid var(--stone); }
.school h3 { margin-bottom: .25rem; }
.school p { margin: 0; color: var(--muted); font-size: .9rem; }
.school .rating { font-family: var(--serif); font-size: 3.6rem; font-weight: 400; color: var(--accent); line-height: 1; margin-bottom: 1rem; }
.rating small { font-size: 1.1rem; color: var(--muted); }

/* ---------- Neighborhood ---------- */
.neighbors .lead { max-width: 860px; font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.6; color: var(--ink); font-weight: 400; }

/* ---------- Owners' note ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.story-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story p:not(.eyebrow) { color: var(--muted); font-size: 1.02rem; font-weight: 300; }
.pull-quote { margin: 1.5rem 0 1.8rem; padding-left: 1.5rem; border-left: 1px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.4; color: var(--ink); }
.story p.signature { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--ink); font-weight: 400; margin-top: 2rem; }

/* ---------- Pricing & timing (dark band) ---------- */
.timing { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; --band: var(--night); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); background: var(--band); color: #f3efe8; }
.timing .eyebrow { color: var(--accent-soft); }
.timing .lead { margin-top: 0; color: rgba(243,239,232,.8); }
.timing strong { color: #fff; font-weight: 500; }
.possession { color: rgba(243,239,232,.7); font-weight: 300; margin: 0 0 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); }
.timing .btn { background: transparent; border-color: var(--accent-soft); color: #fff; }
.timing .btn:hover { background: var(--accent-soft); color: var(--night); }

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 1.3rem; }
.steps li::before { content: "0" counter(step); font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent); }
.steps h3 { margin: .4rem 0 .5rem; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; font-weight: 300; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); --band: var(--sand); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); background: var(--band); }
.contact-info p { color: var(--muted); font-weight: 300; }
.contact-fallback { margin: 2rem 0 .3rem; }
.open-house { background: var(--ink); color: #fff !important; padding: .8rem 1rem; display: inline-block; }
.contact-list { list-style: none; padding: 0; margin: 0; font-family: var(--serif); font-size: 1.4rem; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--accent); }
.contact-form { display: grid; gap: 1.3rem; width: 100%; }
.contact-form label { display: grid; gap: .4rem; font-size: .64rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea, .contact-form select { font: 300 1rem var(--sans); padding: .75rem 0; border: 0; border-bottom: 1px solid #c9c0b1; border-radius: 0; background: transparent; color: var(--ink); text-transform: none; letter-spacing: 0; transition: border-color .3s; }
.contact-form select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2396754a' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right .2rem center; padding-right: 1.5rem; cursor: pointer; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-bottom-color: var(--accent); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; margin-top: .6rem; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.ok { background: #e6efe4; color: #2f5a2a; padding: .8rem 1rem; }
.form-status.err { background: #f6e4e1; color: #8a2f22; padding: .8rem 1rem; }
.privacy-note { font-size: .74rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(243,239,232,.65); text-align: center; padding: 4.5rem var(--gutter) 3rem; font-size: .82rem; }
.footer p { margin: .4rem 0; }
.footer a { color: #f3efe8; text-decoration: none; border-bottom: 1px solid rgba(201,174,132,.5); }
.footer-brand { font-family: var(--serif); font-size: 2rem; color: #f3efe8; margin-bottom: .8rem !important; }
.footer-brand .brand-num { color: var(--accent-soft); }
.disclaimer { font-size: .7rem; max-width: 720px; margin: 2rem auto 0 !important; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); opacity: .8; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10,12,12,.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 84vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; font-weight: 200; cursor: pointer; padding: 1rem; line-height: 1; opacity: .7; transition: opacity .3s; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: .5rem; right: 1rem; }
.lb-prev { left: .5rem; }
.lb-next { right: .5rem; }
.lb-count { position: absolute; bottom: 1.2rem; color: #bbb; font-size: .72rem; letter-spacing: .12em; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .facts ul { grid-template-columns: repeat(3, 1fr); row-gap: 1.6rem; }
  .facts li:nth-child(4) { border-left: 0; }
}
@media (max-width: 900px) {
  .intro, .location, .contact, .story, .specs, .school-grid, .timing, .deck-intro { grid-template-columns: 1fr; }
  .specs li { grid-template-columns: 8.5rem 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .core-grid { grid-template-columns: 1fr; max-width: 560px; }
  .core-feature img { aspect-ratio: 3/2; }
  .plan-grid { grid-template-columns: 1fr; max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .story-img { aspect-ratio: 4/3; }
  .scroll-cue { display: none; }
}
@media (max-width: 600px) {
  .feature-grid, .steps, .views-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 5px; }
  .gallery:not(.featured) .tile:first-child { grid-column: span 2; grid-row: auto; }
  .gallery.featured { grid-template-columns: 1fr 1fr; }
  .gallery.featured .tile:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
  .gallery .tile-caption { display: none; }
  .nav-top .btn-small { padding: .55rem .7rem; font-size: .58rem; letter-spacing: .12em; }
  .brand { font-size: 1.15rem; }
  .hero-sub { font-size: .95rem; }
  .hero-facts { font-size: .62rem; letter-spacing: .16em; line-height: 2; }
  .hero-facts span { margin: 0 .3rem; }
  .facts strong { font-size: 1.8rem; }
  .filters { gap: .2rem 1.1rem; }
  .map iframe { height: 340px; }
  .hero .eyebrow { font-size: .6rem; letter-spacing: .2em; }
  .hero .eyebrow::before { display: none; }
}

/* Brochure download */
.brochure-btn { margin-top: 2.2rem; }
.timing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.timing .text-link { color: var(--accent-soft); }

/* Top bar: brochure + tour buttons */
.nav-actions { display: flex; gap: .6rem; align-items: center; }
.btn .short { display: none; }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-line:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav:not(.solid) .btn-line { border-color: rgba(255,255,255,.7); }
@media (max-width: 600px) {
  .nav-actions { gap: .4rem; }
  .nav-actions .btn .long { display: none; }
  .nav-actions .btn .short { display: inline; }
}
.nav-actions .btn { white-space: nowrap; }
@media (max-width: 600px) {
  .nav-top { gap: .5rem; }
  .nav-actions .btn-small { padding: .55rem .6rem; font-size: .56rem; letter-spacing: .1em; }
}
@media (max-width: 360px) { .brand-num { display: none; } }

/* ---------- EV charging highlight ---------- */
.ev-feature { display: grid; grid-template-columns: 1.1fr 1fr; margin-top: clamp(3rem, 6vw, 4.5rem); background: var(--night); color: #fff; }
.ev-feature img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.ev-text { padding: clamp(2rem, 5vw, 4rem); align-self: center; }
.ev-badge { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem; padding: .45rem .9rem; border: 1px solid var(--accent-soft); border-radius: 999px; font-size: .66rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-soft); }
.ev-badge svg { width: 14px; height: 14px; fill: var(--accent-soft); }
.ev-text h3 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: #fff; margin: 0 0 .9rem; }
.ev-text p:not(.ev-badge) { color: rgba(255,255,255,.75); font-weight: 300; margin: 0; }
.ev-text strong { color: #fff; font-weight: 500; }
.specs li strong { font-weight: 500; color: var(--ink); }
@media (max-width: 760px) {
  .ev-feature { grid-template-columns: 1fr; }
  .ev-feature img { min-height: 0; aspect-ratio: 4/3; }
}

/* ---------- Floor plans tab in the gallery ---------- */
.gallery.plans { grid-template-columns: repeat(3, 1fr); }
.gallery.plans .tile { background: #fff; aspect-ratio: 1; border: 1px solid var(--stone); }
.gallery.plans .tile:first-child { grid-column: auto; grid-row: auto; }
.gallery.plans .tile img { object-fit: contain; padding: 5% 5% 15%; }
.gallery.plans .tile-caption { font: 400 1.35rem/1.2 var(--serif); }
.gallery.plans .tile:hover img { transform: none; }
.gallery.plans .tile-caption { opacity: 1; color: var(--ink); background: #fff; padding: .9rem 1.1rem 1rem; border-top: 1px solid var(--stone); }
.plans-note { margin-top: 1.6rem; }
.lightbox.plans img { background: #fff; padding: 1rem; }
@media (max-width: 760px) { .gallery.plans { grid-template-columns: 1fr; } }
