/* The Townhomes at Eagle Oaks — site styles
   Palette: club green, ivory paper, brass accent. */

:root {
  /* greens follow the logo wordmark (#054520) */
  --green-950: #04200f;
  --green-900: #073619;
  --green-800: #054520;
  --green-700: #1f5a34;
  --lime: #b2d135;          /* logo leaf highlight */
  --green-100: #e4ebe4;
  --ivory: #f5f1e8;
  --paper: #fbf9f4;
  --brass: #a8844e;
  --brass-light: #c9a970;
  --ink: #1d231f;
  --muted: #646c66;
  --line: #e2dccf;
  --white: #fff;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font: 500 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(38px, 5vw, 62px); }
h2 em, h1 em { font-style: italic; font-weight: 400; color: var(--brass); }
h3 { font-size: clamp(26px, 2.6vw, 32px); }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lede { margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--brass { background: var(--brass); color: var(--white); }
.btn--brass:hover { background: #8f6f3f; }
.btn--ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--green-900); }
.btn--dark { background: var(--green-900); color: var(--white); }
.btn--dark:hover { background: var(--green-700); }
.btn--line { border-color: var(--green-900); color: var(--green-900); }
.btn--line:hover { background: var(--green-900); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--white);
  transition: background .35s, box-shadow .35s, color .35s;
}
.site-header.is-solid { background: var(--paper); color: var(--green-900); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.brand { display: block; position: relative; line-height: 0; flex-shrink: 0; }
/* White logo over the hero photo; full-colour logo once the header turns solid */
.brand-logo { height: 66px; width: auto; max-width: none; transition: opacity .3s; } /* never squash: keep the logo at its true proportions */
.brand-logo--color { position: absolute; left: 0; top: 0; opacity: 0; }
.site-header.is-solid .brand-logo--white, .site-header.nav-open .brand-logo--white { opacity: 0; }
.site-header.is-solid .brand-logo--color, .site-header.nav-open .brand-logo--color { opacity: 1; }
@media (max-width: 560px) { .brand-logo { height: 52px; } .hero .eyebrow { letter-spacing: .14em; font-size: 11px; } }
.nav { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 30px); }
.nav a:not(.btn) {
  font: 400 13px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase; text-decoration: none;
  opacity: .9; padding: 6px 0; border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav a:not(.btn):hover { opacity: 1; border-color: currentColor; }
.nav .btn { padding: 12px 20px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }

@media (max-width: 1300px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 88px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); color: var(--green-900);
    padding: 12px var(--gutter) 28px; box-shadow: 0 20px 40px rgba(0,0,0,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
  }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav .btn { margin-top: 20px; }
  .site-header.nav-open { background: var(--paper); color: var(--green-900); }
  .site-header.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: var(--white); background: var(--green-950); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,20,15,.62) 0%, rgba(10,20,15,.25) 45%, rgba(10,20,15,0) 70%),
    linear-gradient(180deg, rgba(10,20,15,.55) 0%, rgba(10,20,15,0) 26%),
    linear-gradient(0deg, rgba(10,20,15,.86) 0%, rgba(10,20,15,.35) 45%, rgba(10,20,15,0) 70%);
}
.hero-content { position: relative; z-index: 1; padding: 150px 0 clamp(48px, 9vh, 104px); }
.hero .eyebrow { color: #e6d3ad; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero h1, .hero p { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero h1 { font-size: clamp(42px, min(7.4vw, 11vh), 104px); max-width: 13ch; }
.hero h1 em { color: var(--brass-light); }
.hero p { max-width: 54ch; font-size: clamp(17px, 1.5vw, 20px); margin: 26px 0 36px; color: rgba(255,255,255,.88); }
.hero-price { display: block; margin-top: 12px; font-family: var(--serif); font-size: 1.25em; font-style: italic; color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll {
  position: absolute; z-index: 1; right: var(--gutter); bottom: 40px;
  writing-mode: vertical-rl; font: 400 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.7); text-decoration: none; display: flex; align-items: center; gap: 14px;
}
.hero-scroll::after { content: ""; width: 1px; height: 56px; background: rgba(255,255,255,.5); }
@media (max-width: 720px) { .hero-scroll { display: none; } }

/* ---------- Hero event card (time-limited announcement) ---------- */
.hero--event .hero-scroll { display: none; }
.hero--event .hero-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero-event {
  width: 360px; padding: 28px 28px 26px; color: var(--white);
  background: rgba(4, 32, 15, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .16); border-top: 3px solid var(--brass-light);
}
.hero-event p { max-width: none; text-shadow: none; }
.hero-event .event-kicker { margin: 0 0 14px; font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--brass-light); }
.hero-event h2 { font-size: 36px; line-height: 1.05; }
.hero-event h2 em { color: var(--brass-light); }
.hero-event .event-when { margin: 16px 0 4px; font: 400 17px/1.4 var(--sans); color: var(--white); }
.hero-event .event-date { white-space: nowrap; }
.hero-event .event-sep { display: none; }  /* desktop breaks the line instead */
.hero-event .event-where { margin: 0 0 22px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .75); }
.hero-event .btn { width: 100%; padding: 14px 20px; }
@media (max-width: 1100px) {
  /* compact strip above the headline so it is still on the first screen */
  .hero--event .hero-content { grid-template-columns: minmax(0, 1fr); }
  .hero-event { order: -1; width: 100%; margin-bottom: 28px; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: center; }
  .hero-event > :not(.btn) { grid-column: 1; }
  .hero-event .event-kicker { margin-bottom: 6px; font-size: 10px; }
  .hero-event h2 { font-size: 23px; }
  .hero-event .event-when { margin: 5px 0 0; font-size: 14px; }
  .hero-event .event-where { display: none; }
  .hero-event .event-when br { display: none; }
  .hero-event .event-sep { display: inline; }
  .hero-event .btn { grid-column: 2; grid-row: 1 / span 3; width: auto; padding: 12px 18px; }
}
@media (max-width: 560px) {
  /* phones: less empty space above the strip so both buttons stay on the first screen */
  .hero--event .hero-content { padding-top: 108px; }
  .hero-event { margin-bottom: 22px; }
}

/* ---------- Stat band ---------- */
.stats { background: var(--green-900); color: var(--white); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.stats li { padding: 34px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.12); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font: 500 clamp(34px, 3.4vw, 46px)/1 var(--serif); color: var(--brass-light); }
.stats span { display: block; margin-top: 10px; font: 400 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.78); }
@media (max-width: 900px) {
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .stats li:nth-child(even) { border-left: 1px solid rgba(255,255,255,.12); }
  .stats li:nth-child(-n+2) { border-top: 0; }
  .stats li:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--ivory { background: var(--ivory); }
.section--green { background: var(--green-900); color: var(--white); }
.section--green .lede { color: rgba(255,255,255,.75); }

/* Setting */
.setting-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.setting-copy p { color: var(--muted); }
.setting-copy .lede { color: var(--ink); margin-top: 26px; }
.checklist { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 1px; background: var(--brass);
}
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.mosaic figure { margin: 0; overflow: hidden; position: relative; }
.mosaic figure:first-child { grid-column: 1 / -1; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1.2s var(--ease); }
.mosaic figure:first-child img { aspect-ratio: 16 / 9; }
.mosaic figure:hover img { transform: scale(1.03); }
.mosaic figcaption, .caption {
  position: absolute; left: 14px; bottom: 12px;
  font: 400 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
@media (max-width: 900px) { .setting-grid { grid-template-columns: 1fr; } }

/* Split feature (full-bleed image + copy) */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.split-media { position: relative; overflow: hidden; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-copy { display: flex; flex-direction: column; justify-content: center; padding: var(--section) clamp(28px, 7vw, 112px); }
.split-copy p { color: rgba(255,255,255,.78); max-width: 52ch; }
.split-copy h2 { margin-bottom: 26px; }
.split--reverse .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 62vw; }
  .split--reverse .split-media { order: 0; }
}

/* ---------- Residences ---------- */
.plan-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 56px); }
.plan-tab {
  flex: 1 1 0; min-width: 140px; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 18px 12px 20px; margin-bottom: -1px; text-align: left;
  transition: border-color .25s, color .25s;
}
.plan-tab strong { display: block; font: 500 clamp(24px, 2.4vw, 30px)/1.1 var(--serif); color: var(--muted); transition: color .25s; }
.plan-tab span { display: block; margin-top: 6px; font: 400 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan-tab:hover strong { color: var(--ink); }
.plan-tab--siteplan { border-left: 1px solid var(--line); padding-left: 24px; }
@media (max-width: 700px) { .plan-tab--siteplan { border-left: 0; padding-left: 12px; } }
.plan-tab[aria-selected="true"] { border-color: var(--brass); }
.plan-tab[aria-selected="true"] strong { color: var(--green-900); }

.plan { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.plan[hidden] { display: none; }
.plan-info h3 { font-size: clamp(40px, 4.2vw, 56px); }
.plan-code { font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin: 0 0 14px; }
.plan-summary { color: var(--muted); margin: 18px 0 28px; }
.plan-area { margin: -14px 0 26px; font-size: 15px; color: var(--muted); }
.plan-area strong { font-weight: 500; color: var(--green-800); font-size: 17px; }
.plan-area sup, .plan-footnote sup { color: var(--brass); }
.plan-footnote { margin: 18px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: 52ch; }
.plan-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.plan-tags li { padding: 8px 14px; border: 1px solid var(--line); font: 400 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--white); }
.rooms { width: 100%; border-collapse: collapse; font-size: 15px; }
.rooms caption { text-align: left; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--green-700); padding: 22px 0 10px; }
.rooms td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.rooms td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; padding-left: 16px; }
.plan-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.plan-viewer { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line); }
.floor-toggle { display: flex; border-bottom: 1px solid var(--line); }
.floor-toggle button {
  flex: 1; background: none; border: 0; padding: 16px; font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.floor-toggle button[aria-pressed="true"] { color: var(--green-900); box-shadow: inset 0 -2px 0 var(--brass); }
.floor-stage { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - 220px); min-height: 420px; width: 100%; overflow: hidden; }
/* Absolutely positioned so the plan always fits the frame; a percentage
   max-height on an in-flow image does not resolve here and lets it overflow. */
.floor-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: clamp(18px, 3vw, 36px); object-fit: contain; cursor: zoom-in;
}
.floor-stage img[hidden] { display: none; }
.floor-note { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
@media (max-width: 960px) {
  .plan { grid-template-columns: 1fr; }
  .plan-viewer { position: static; order: -1; }
  .floor-stage { aspect-ratio: 3 / 4; }
}

.basement-note {
  margin-top: clamp(48px, 6vw, 80px); padding: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--ivory); border-left: 2px solid var(--brass);
}
.basement-note h3 { font-size: 28px; }
.basement-note p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 700px) { .basement-note { grid-template-columns: 1fr; } }

/* ---------- Site plan (fifth Residences tab) ---------- */
.plan-siteplan[hidden] { display: none; }
.siteplan-intro { margin: 0 0 24px; color: var(--muted); max-width: 60ch; }
.siteplan { display: grid; grid-template-columns: auto minmax(300px, 400px); justify-content: center; gap: clamp(24px, 4vw, 56px); align-items: start; }
/* The map is portrait (north up, the court runs north–south), so size it by height. */
.siteplan-map { background: #f3efe4; border: 1px solid var(--line); overflow: hidden; display: flex; justify-content: center; }
.siteplan-svg { display: block; height: min(82vh, 900px); width: auto; max-width: 100%; font-family: var(--sans); }
.siteplan-svg .ground { fill: #f3efe4; }
.siteplan-svg .green { fill: #dbe5d6; }
.siteplan-svg .trees circle { fill: #b9cdb2; opacity: .75; }
.siteplan-svg .road { fill: #e2ddd1; }
.siteplan-svg .island { fill: #cfdcc8; }
.siteplan-svg .area-label { font-size: 15px; letter-spacing: .3em; fill: var(--green-700); text-anchor: middle; font-weight: 500; }
.siteplan-svg .road-label { font-size: 12px; letter-spacing: .3em; fill: #8d8778; text-anchor: middle; }
.siteplan-svg .bldg { font-size: 10px; letter-spacing: .18em; fill: #9a9383; text-anchor: middle; }
.siteplan-svg .compass circle { fill: var(--white); stroke: var(--line); }
.siteplan-svg .compass path { fill: var(--green-900); }
.siteplan-svg .compass text { font-size: 11px; text-anchor: middle; fill: var(--green-900); font-weight: 500; }
.unit { cursor: pointer; outline: none; transition: opacity .25s; }
.unit .drive { fill: #ebe6db; }
.unit .home { stroke: var(--paper); stroke-width: 1.6; transition: filter .2s; }
.unit text { font-size: 12.5px; font-weight: 500; fill: var(--white); text-anchor: middle; pointer-events: none; }
.unit--augusta .home { fill: #2c4a38; }
.unit--baltusrol .home { fill: #a8844e; }
.unit--cypress .home { fill: #4f6f80; }
.unit--dearborn .home { fill: #8a5a44; }
.unit--phase1 .home { fill: #cbc4b3; }
.unit--phase1 text { fill: #5f5a4e; }
.unit.is-sold .home { fill: url(#sold-hatch); }
.unit.is-sold text { fill: #6f6a5d; }
.unit.is-contract .home { fill-opacity: .38; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 2; }
.unit.is-contract text { fill: var(--ink); }
.unit:hover .home, .unit:focus-visible .home { filter: brightness(1.15); }
.unit.is-active .home { stroke: var(--ink); stroke-width: 3; }
.siteplan-svg.is-filtered .unit:not(.is-match) { opacity: .22; }
.siteplan-panel { background: var(--white); border: 1px solid var(--line); padding: clamp(22px, 2.4vw, 32px); position: sticky; top: 100px; }
.siteplan-info { min-height: 180px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.siteplan-info h3 { font-size: 32px; }
.siteplan-desc { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.siteplan-info .btn { margin-top: 18px; padding: 13px 20px; }
.status-pill { display: table; margin-top: 12px; padding: 5px 10px; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; border: 1px solid currentColor; }
.status-pill.sold { color: #8b2f22; } .status-pill.contract { color: #8f6f3f; }
.siteplan-legend { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; }
.siteplan-legend button {
  width: 100%; display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; align-items: center; text-align: left;
  background: none; border: 0; padding: 8px 6px; font: 400 15px/1.3 var(--sans);
}
.siteplan-legend button span { grid-column: 2; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.siteplan-legend button:hover, .siteplan-legend button[aria-pressed="true"] { background: var(--ivory); }
.sw { grid-row: span 2; width: 18px; height: 18px; display: block; }
.sw--augusta { background: #2c4a38; } .sw--baltusrol { background: #a8844e; } .sw--cypress { background: #4f6f80; }
.sw--dearborn { background: #8a5a44; }
.sw--contract { background: rgba(79,111,128,.38); outline: 1.2px dashed var(--ink); outline-offset: -1px; }
.siteplan-legend li:nth-child(5) { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.sw--sold { background: repeating-linear-gradient(45deg, #d8d2c4 0 3px, #b9b1a0 3px 6px); }
.siteplan-panel .fine { margin: 18px 0 0; font-size: 12px; }
.siteplan-swipe { display: none; }
@media (max-width: 960px) {
  .siteplan { grid-template-columns: 1fr; }
  .siteplan-panel { position: static; }
  .siteplan-map { overflow-x: auto; -webkit-overflow-scrolling: touch; display: block; }
  .siteplan-svg { width: 100%; min-width: 480px; height: auto; max-width: none; }
  .siteplan-swipe { display: block; margin: -12px 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .siteplan-info { min-height: 0; }
}

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.gallery-filters button {
  background: none; border: 1px solid var(--line); padding: 11px 18px;
  font: 400 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: .2s;
}
.gallery-filters button:hover { color: var(--ink); border-color: var(--ink); }
.gallery-filters button[aria-pressed="true"] { background: var(--green-900); border-color: var(--green-900); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(90px, 9vw, 116px); grid-auto-flow: dense; gap: 10px; }
.gallery a { position: relative; overflow: hidden; grid-column: span 3; grid-row: span 2; background: var(--line); }
.gallery a.wide { grid-column: span 6; grid-row: span 3; }
.gallery a.tall { grid-row: span 3; }
.gallery a[hidden] { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 45%); opacity: 0; transition: opacity .3s; }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.gallery .caption { z-index: 1; opacity: 0; transition: opacity .3s; }
.gallery a:hover .caption, .gallery a:focus-visible .caption { opacity: 1; }
.badge {
  position: absolute; z-index: 1; top: 10px; right: 10px;
  padding: 5px 8px; background: rgba(15,29,22,.72); color: var(--white);
  font: 400 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.gallery-note { margin-top: 20px; font-size: 13px; color: var(--muted); }
.gallery-more { display: flex; justify-content: center; margin-top: 32px; }
.gallery-more[hidden] { display: none; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 26vw; gap: 8px; }
  .gallery a, .gallery a.tall { grid-column: span 1; grid-row: span 1; }
  .gallery a.wide { grid-column: span 2; grid-row: span 1; }
  .gallery .caption { opacity: 1; }
  .gallery a::after { opacity: .8; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 40vw; }
  .gallery a.wide { grid-column: 1 / -1; }
  .gallery .caption { opacity: 1; }
  .gallery a::after { opacity: .8; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
  background: rgba(10,16,13,.96); color: var(--white);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100vh; padding: 60px 0 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: var(--white); }
.lightbox img.is-photo { background: none; }
.lightbox figcaption { font: 400 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); text-align: center; }
.lb-btn { background: none; border: 0; color: var(--white); width: 72px; height: 72px; display: grid; place-items: center; opacity: .75; }
.lb-btn:hover { opacity: 1; }
.lb-btn svg { width: 28px; height: 28px; }
.lb-close { position: absolute; top: 8px; right: 8px; }
@media (max-width: 700px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 12px; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .lightbox figure { padding: 64px 12px 90px; }
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--paper); padding: clamp(28px, 3vw, 44px); }
.feature h3 { font-size: 27px; margin-bottom: 18px; display: flex; align-items: baseline; gap: 14px; }
.feature h3 span { font: 500 12px/1 var(--sans); letter-spacing: .1em; color: var(--brass); }
.feature ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15.5px; color: var(--muted); }
.feature li { padding-left: 18px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--brass); }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Make-it-yours */
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.option figure { margin: 0 0 22px; overflow: hidden; position: relative; }
.option img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 1.2s var(--ease); }
.option:hover img { transform: scale(1.03); }
.option h3 { font-size: 28px; margin-bottom: 10px; }
.option p { margin: 0; color: rgba(255,255,255,.72); font-size: 16px; }
@media (max-width: 900px) { .options { grid-template-columns: 1fr; } }

/* ---------- Custom build ---------- */
.custom-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.custom-head .lede { margin: 0; }
.custom-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(150px, 15vw, 220px); gap: 10px; }
.custom-tile { position: relative; overflow: hidden; grid-column: span 2; background: var(--line); color: var(--white); text-decoration: none; }
.custom-tile--hero { grid-column: span 4; grid-row: span 2; }
.custom-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.custom-tile:hover img { transform: scale(1.04); }
.custom-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,32,15,.78), rgba(4,32,15,0) 55%); }
.custom-cap { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.85); }
.custom-cap strong { display: block; font: 500 21px/1.15 var(--serif); color: var(--white); margin-bottom: 3px; }
.custom-tile--hero .custom-cap strong { font-size: 28px; }
.custom-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px); }
.custom-points > div { border-top: 1px solid var(--brass); padding-top: 18px; }
.custom-points h3 { font-size: 24px; margin-bottom: 8px; }
.custom-points p { margin: 0; font-size: 15.5px; color: var(--muted); }
.custom-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(32px, 4vw, 48px); }
.custom-cta .fine { margin: 0; max-width: 60ch; }
@media (max-width: 960px) {
  .custom-head { grid-template-columns: 1fr; }
  .custom-points { grid-template-columns: 1fr 1fr; }
  .custom-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .custom-tile { grid-column: span 1; }
  .custom-tile--hero { grid-column: 1 / -1; grid-row: span 1; }
  .custom-cap strong { font-size: 18px; }
  .custom-tile--hero .custom-cap strong { font-size: 22px; }
}
@media (max-width: 560px) {
  .custom-points { grid-template-columns: 1fr; }
  .custom-cap { font-size: 12.5px; left: 12px; right: 12px; bottom: 10px; }
}

/* ---------- Location ---------- */
.location-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: stretch; }
.places { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); }
.places li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.places span:last-child { color: var(--muted); font-size: 15px; text-align: right; white-space: nowrap; }
.map { position: relative; min-height: 460px; background: var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.fine { font-size: 13px; color: var(--muted); margin-top: 18px; }
@media (max-width: 900px) { .location-grid { grid-template-columns: 1fr; } .map { min-height: 360px; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.member { background: var(--white); border: 1px solid var(--line); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; }
.member-role { font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin: 0 0 16px; }
.member h3 { font-size: 30px; }
.member .who { margin: 6px 0 18px; font-size: 14px; letter-spacing: .06em; color: var(--green-700); }
.member p { color: var(--muted); font-size: 15.5px; margin: 0 0 12px; }
.member-link { margin-top: 4px; }
.member-link a { font-size: 14px; letter-spacing: .04em; color: var(--green-700); text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.member-link a:hover { color: var(--brass); }
.member-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.member-head img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.member-head .who { margin: 4px 0 0; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr; } }
/* One-line project credits under the team cards: deliberately low-key */
.team-credits { margin: clamp(24px, 3vw, 36px) 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.8; color: var(--muted); }
.team-credits strong { font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: 11px; color: var(--green-700); margin-right: 10px; }
.team-credits span { margin: 0 8px; color: var(--brass); }

/* ---------- Contact ---------- */
.contact { position: relative; color: var(--white); background: var(--green-950); overflow: hidden; }
.contact-bg { position: absolute; inset: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.contact .wrap { position: relative; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); }
.contact h2 { margin-bottom: 24px; }
.contact .lede { color: rgba(255,255,255,.78); }
.agent { display: flex; gap: 20px; align-items: center; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.18); }
.agent img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.agent strong { display: block; font: 500 26px/1.1 var(--serif); }
.agent span { display: block; font-size: 14px; color: rgba(255,255,255,.7); }
.agent a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.agent a:hover { border-color: var(--brass-light); }
.visit { margin-top: 28px; font-size: 15px; color: rgba(255,255,255,.75); }
.visit strong { color: var(--white); font-weight: 500; }

.form { background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 52px); }
.form h3 { font-size: 32px; margin-bottom: 6px; }
.form > p { margin: 0 0 26px; color: var(--muted); font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--green-700); }
.field input, .field select, .field textarea {
  font: 300 16px/1.4 var(--sans); color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.hp { position: absolute; left: -9999px; }
.form .btn { width: 100%; margin-top: 24px; border: 0; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 16px 0 0; font-size: 14.5px; min-height: 1.4em; }
.form-status.ok { color: var(--green-700); }
.form-status.err { color: #9b2c1f; }
.consent { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 960px) { .contact .wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.62); font-size: 13px; padding: 64px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand--footer img { height: 84px; width: auto; }
.footer-top address { font-style: normal; line-height: 1.8; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { color: var(--white); }
.legal { margin-top: 32px; line-height: 1.65; columns: 2 360px; column-gap: clamp(32px, 5vw, 72px); }  /* two columns: fills the width, keeps lines readable */
.legal p { margin: 0 0 12px; break-inside: avoid; }
.legal .copyright { column-span: all; margin: 12px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.eho { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.8); }
.eho svg { width: 26px; height: 26px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
}
