/* =============================================================================
   Bhurban Luxury Heights — BLH Developments
   Signature Gradient Scheme: Midnight Blue ground, atmospheric teal and
   violet blooms, Luminous Gold for primary actions and luxury accents,
   Warm Pearl and Silver Mist for text.

   Contents
   01 Fonts
   02 Tokens
   03 Reset & base
   04 Utilities
   05 Buttons & icon controls
   06 Announcement bar
   07 Header & navigation
   08 Hero
   09 Sections, editorial & facts
   10 Residences
   11 Floor-plan explorer
   12 Payment plan
   13 Construction progress
   14 Location
   15 Brochure
   16 Leadership
   17 Inquiry form
   18 Final CTA & footer
   19 Mobile bar, back to top
   20 Lightbox
   21 Motion & reduced motion
   ============================================================================= */

/* ---------------------------------------------------------------- 01 Fonts */
/* Self-hosted latin subsets — no external font requests at runtime. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- 02 Tokens */
:root {
  /* ---- Channels ----------------------------------------------------------
     The only place a hue is written. Everything derived reads
     rgb(var(--x-rgb) / n%), so a border, wash or scrim never hard-codes a
     colour. Channel tokens rather than color-mix() for Android WebView. */
  --midnight-rgb:   6  24  39;   /* #061827  page ground, and the ink that goes ON gold */
  --deep-rgb:      16  42  67;   /* #102A43  raised surfaces, field fills, table chrome */
  --teal-rgb:       8 126 139;   /* #087E8B  fills, borders, focus — NEVER small text */
  --teal-lit-rgb:  63 182 194;   /* #3FB6C2  link text and small teal labels */
  --violet-rgb:    73  48 107;   /* #49306B */
  --gold-rgb:     215 180 106;   /* #D7B46A */
  --gold-dk-rgb:  167 122  54;   /* #A77A36 */
  --pearl-rgb:    245 240 232;   /* #F5F0E8  the light pole */
  --silver-rgb:   159 178 188;   /* #9FB2BC  secondary text and refined UI detail */

  /* ---- Palette ----------------------------------------------------------
     Measured against the three grounds (midnight / deep blue / violet):
       Warm Pearl   15.85 / 12.91 / 9.65
       Silver Mist   8.19 /  6.67 / 4.99
       Gold 500      9.10 /  7.41 / 5.54
     Architectural Teal carries NO text at any size — Pearl is 4.24 on it,
     Silver 2.19, Midnight 3.74. It is a fill, a border and a focus ring. */
  --midnight: #061827;
  --deep-blue: #102A43;
  --teal: #087E8B;
  --teal-lit: #3FB6C2;        /* 7.43 / 6.05 / 4.53 — the text-safe teal */
  --violet: #49306B;
  --gold-500: #D7B46A;        /* text-safe on all three DARK grounds */
  --gold-700: #A77A36;        /* Luminous Gold gradient TAIL — not a text tier */
  /* Gold needs a third tier because no single value serves both polarities:
     500 is 1.98 on white, and 700 — the gradient tail — is only 2.75 on the
     cream ramp, so neither may carry text on the light sections. 800 clears
     AA on all four light grounds: 7.04 white / 6.81 / 6.09 / 5.05. */
  --gold-800: #75521F;        /* small text on the LIGHT sections */
  /* Teal needs the same treatment as gold. --teal-lit is tuned for dark
     grounds and measures 1.73 on the darkest cream stop; Architectural Teal
     itself only reaches 3.45 there. 800 clears AA across the cream ramp. */
  --teal-800: #0B5C6E;        /* small text on the LIGHT sections.
                                 7.58 white / 7.33 / 6.56 / 5.43 cream ramp.
                                 #0A6979 also cleared AA but only reached 4.55
                                 on the darkest stop — no margin for a tweak. */
  --pearl: #F5F0E8;
  --silver: #9FB2BC;
  --plate: #FFFFFF;           /* artwork plates — NEVER themed, see 06 */

  --danger-600: #F0A79B;      /* 9.17 on midnight */
  --success-600: #7FD3A4;     /* 10.07 on midnight */
  --danger-050: rgb(240 167 155 / 10%);
  --danger-200: rgb(240 167 155 / 42%);

  /* ---- Named gradients (client brief) ---- */
  --grad-skyline:  linear-gradient(160deg, #061827 0%, #102A43 52%, #087E8B 100%);
  --grad-twilight: linear-gradient(160deg, #061827 0%, #49306B 100%);
  --grad-glass:    linear-gradient(160deg, #102A43 0%, #087E8B 100%);
  --grad-gold:     linear-gradient(135deg, #D7B46A 0%, #A77A36 100%);

  /* ---- Atmospheric blooms ------------------------------------------------
     The saturated stops are applied as large soft off-centre glows over the
     midnight ground, never as full-bleed ramps. Silver Mist drops below AA
     once a ground moves ~25% toward teal, so copy must stay on near-midnight;
     blooms are positioned away from the text column and damped on mobile. */
  --bloom-op: 1;
  --bloom-deep:     radial-gradient(64rem 46rem at  50% -12%, rgb(var(--deep-rgb)   / calc(88% * var(--bloom-op))), transparent 72%);
  /* Teal peaks trimmed 26/22 -> 20/18: where a teal bloom overlaps the deep
     bloom the combined lift pushed muted ink under AA. */
  --bloom-teal-r:   radial-gradient(58rem 42rem at 108%  16%, rgb(var(--teal-rgb)   / calc(20% * var(--bloom-op))), transparent 68%);
  --bloom-teal-l:   radial-gradient(54rem 40rem at  -8%  86%, rgb(var(--teal-rgb)   / calc(18% * var(--bloom-op))), transparent 68%);
  --bloom-violet-l: radial-gradient(56rem 44rem at -10%  12%, rgb(var(--violet-rgb) / calc(44% * var(--bloom-op))), transparent 70%);
  --bloom-violet-r: radial-gradient(56rem 44rem at 110%  72%, rgb(var(--violet-rgb) / calc(40% * var(--bloom-op))), transparent 70%);
  --bloom-a: none;
  --bloom-b: none;

  /* ---- Legacy aliases ----------------------------------------------------
     ~300 var() references across styles.css and the scoped blocks in
     index.html still use the old names. Rather than a rename sweep, each is
     repointed to its ROLE in the new palette. Note --mist-rgb and
     --graphite-rgb are POLE channels: mist has always meant "the light one"
     and graphite "the dark one", so they stay semantically correct. */
  --charcoal: var(--midnight);      /* the ink that survives Luminous Gold */
  --soft-black: var(--deep-blue);
  --forest: var(--deep-blue);
  --deep-forest: var(--deep-blue);
  --forest-900: var(--deep-blue);
  --warm-ivory: var(--surface);
  --ivory-deep: var(--surface-sunken);
  --stone-soft: var(--surface-sunken);
  --white: var(--surface-raised);   /* artwork plates use --plate, not this */
  --paper: var(--surface);
  --paper-alt: var(--surface-raised);
  --paper-raised: var(--surface-raised);
  --gold: var(--gold-500);
  --light-gold: var(--gold-500);
  --gold-300: var(--gold-500);
  --champagne-400: var(--gold-500);
  --champagne-rgb: var(--gold-rgb);
  --graphite-700: var(--deep-blue);
  --graphite-800: var(--deep-blue);
  --mist-rgb: var(--pearl-rgb);        /* LIGHT pole */
  --graphite-rgb: var(--midnight-rgb); /* DARK pole  */

  /* ---- Surface tokens — DARK is the default ------------------------------
     Components read only these. There is no second theme: the whole site is
     dark, so :root IS the theme. */
  --surface: var(--midnight);
  --surface-raised: var(--deep-blue);
  --surface-sunken: rgb(0 0 0 / 26%);
  --ink: var(--pearl);
  --ink-soft: var(--silver);
  /* 78% cleared midnight but fell to 4.28 on the payment table's zebra row;
     88% then fell to 4.19 where the deep and teal blooms overlap. 92% clears
     every ground while staying visibly softer than --ink-soft. */
  --ink-muted: rgb(var(--silver-rgb) / 92%);
  --line-strong: rgb(var(--silver-rgb) / 42%);
  --line: rgb(var(--silver-rgb) / 24%);
  --line-soft: rgb(var(--silver-rgb) / 14%);
  --wash-strong: rgb(var(--pearl-rgb) / 12%);
  --wash: rgb(var(--pearl-rgb) / 7%);
  --wash-faint: rgb(var(--pearl-rgb) / 4%);

  /* Gold keeps "primary buttons and luxury accents". */
  --accent: var(--gold-500);
  --accent-edge: rgb(var(--gold-rgb) / 55%);
  --accent-edge-strong: rgb(var(--gold-rgb) / 80%);
  --accent-wash: rgb(var(--gold-rgb) / 14%);
  --gold-ink: var(--gold-500);   /* ONE tier now — passes on all three grounds */

  /* Teal owns "interactive accents and selected states". Deliberately NOT
     --accent, which would flip ~14 gold luxury edges the brief keeps gold. */
  --sel: var(--teal);
  --sel-edge: rgb(var(--teal-rgb) / 62%);
  --sel-wash: rgb(var(--teal-rgb) / 18%);   /* Pearl on this over midnight: 13.19 */
  --link: var(--teal-lit);

  /* Architectural Teal is the ONLY value clearing 3:1 on both poles — 3.74 on
     midnight and 4.81 on the pinned-white artwork plates, which carry focusable
     buttons (.brochure-face, .plan-figure, .residence__figure). The lit tint
     scores 2.42 on white and the ring would vanish there. */
  --focus: var(--teal);
  --danger: var(--danger-600);
  --success: var(--success-600);
  --scrim: rgb(var(--midnight-rgb) / 92%);

  /* ---- Type ---- */
  /* --font-display: "Playfair Display", Georgia, "Times New Roman", serif; */
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;

  --fs-micro: 0.6875rem;
  --fs-sm: 0.8125rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.0625rem, 0.99rem + 0.36vw, 1.1875rem);
  /* Lower mobile floors than the previous set so long headings stop wrapping
     awkwardly, with a taller desktop ceiling for presence. */
  --fs-h4: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-h3: clamp(1.3rem, 1.16rem + 0.62vw, 1.7rem);
  --fs-h2: clamp(1.8rem, 1.34rem + 2vw, 3.05rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.3vw, 4.35rem);

  /* Playfair and Inter are both variable, so these are real interpolated
     weights — no synthetic bolding. */
  --fw-h1: 700;
  --fw-h2: 680;
  --fw-h3: 640;
  --fw-h4: 600;
  --fw-body: 400;
  --fw-medium: 500;
  --fw-strong: 600;

  /* ---- Space ---- */
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --section-y: clamp(3.75rem, 2.4rem + 5.6vw, 7.5rem);

  /* ---- Layout ---- */
  --shell-max: 1280px;
  --gutter: clamp(1.125rem, 0.6rem + 2.4vw, 3rem);
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --header-h: 92px;

  /* ---- Depth ---- */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 34%), 0 6px 18px rgb(0 0 0 / 30%);
  --shadow-md: 0 2px 6px rgb(0 0 0 / 38%), 0 22px 48px rgb(0 0 0 / 46%);
  --rim: inset 0 1px 0 rgb(var(--pearl-rgb) / 8%);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 380ms;
}
@media (max-width: 1079px) { :root { --header-h: 78px; } }
/* Below 760px every column is full-width, so a bloom would reach the text.
   Damping the alpha keeps all copy within a hair of pure midnight. */
@media (max-width: 759px) { :root { --bloom-op: 0.45; } }

/* ---- Inverted components ------------------------------------------------
   The site is dark end to end now, so the old `.theme-dark` override block is
   gone: :root IS the theme. What remains is the handful of components that
   used to be dark chips sitting on light sections — .skip-link, .btn--dark,
   .badge-status, .pay-table thead th, .mobile-bar and .to-top. Each inverts,
   and each is fixed at its own rule below rather than here, so there is only
   ever one declaration per component.

   Two are deliberately left dark because their ground is not the page:
   .plan-figure__hint sits on a pinned-white artwork plate (Pearl on
   midnight-86%-over-white measures 10.56) and .figure-frame__cap is a ramp
   over a photograph. */

/* ---- Section rhythm -----------------------------------------------------
   Every section sits on the same midnight ground; what differs is which
   atmospheric bloom it carries. The four class names are kept so the markup
   and the JS that reads them stay untouched — they now select an atmosphere,
   not a hue. Sections carrying long-form copy get no bloom at all. */
.section--ivory   { --bloom-a: none;              --bloom-b: none; }
.section--forest  { --bloom-a: var(--bloom-deep); --bloom-b: var(--bloom-teal-r); }
.section--charcoal{ --bloom-a: var(--bloom-deep); --bloom-b: var(--bloom-violet-l); }
.section--relief  { --bloom-a: var(--bloom-deep); --bloom-b: var(--bloom-teal-l); }

/* Five places where the brief's intent and the rhythm class disagree. */
#payment-plan { --bloom-b: var(--bloom-teal-r); }    /* statistics  -> Glass Teal */
#location     { --bloom-b: var(--bloom-violet-r); }  /* lifestyle   -> Twilight Violet */
#brochure     { --bloom-b: var(--bloom-teal-r); }    /* signature   -> Midnight Skyline */
.hero      { --bloom-a: var(--bloom-deep);     --bloom-b: var(--bloom-teal-r); }
.final-cta { --bloom-a: var(--bloom-violet-l); --bloom-b: var(--bloom-teal-r); }

/* Raised panels. These only lift the surface — ink and lines are inherited. */
.paper,
.plan-explorer {
  --surface: var(--surface-raised);
  --surface-sunken: rgb(0 0 0 / 30%);
}

/* ---- Artwork plates -----------------------------------------------------
   Floor plans, unit drawings and brochure scans carry a baked-in white
   ground, so their plates are pinned to --plate and never follow the theme.
   A teal-tinted edge and a deep drop seat them against the midnight page
   instead of letting them float as bare white rectangles. */
.residence__figure,
.plan-figure,
.brochure-face,
.lightbox__img,
#residence-types .rt__photo img {
  border-color: rgb(var(--teal-rgb) / 28%);
  box-shadow: inset 0 0 0 1px rgb(var(--midnight-rgb) / 10%),
              0 18px 44px rgb(0 0 0 / 45%);
}

/* ---------------------------------------------------------- 03 Reset & base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* Author display rules below would otherwise beat the UA [hidden] rule */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  /* font-family: var(--font-display); */
  font-weight: var(--fw-h2);
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-weight: var(--fw-h1); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--gold); color: var(--charcoal); }

.svg-sprite { display: none; }

/* ----------------------------------------------------------- 04 Utilities */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.anchor { display: block; height: 0; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 200;
  transform: translate(-50%, -120%);
  padding: 0.75rem 1.25rem;
  /* Inverted. Midnight on gold is 9.10; Warm Pearl on gold is only 1.74,
     so the ink must be set here and not inherited. */
  background: var(--gold-500);
  color: var(--midnight);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
  transition: transform 200ms var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

.icon {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  fill: none;
}

.eyebrow {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.rule-gold {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  opacity: 0.75;
}

.h2 { font-size: var(--fs-h2); font-weight: var(--fw-h2); }
.h3 { font-size: var(--fs-h3); font-weight: var(--fw-h3); letter-spacing: -0.012em; }
.h4 { font-size: var(--fs-h4); font-weight: var(--fw-h4); letter-spacing: -0.008em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
}

.prose { max-width: 62ch; color: var(--ink-soft); }
.prose p + p { margin-top: var(--sp-4); }

.micro-note {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 60ch;
}

.plain-list { display: grid; gap: var(--sp-2); color: var(--ink-soft); }
.plain-list li { padding-left: 1rem; border-left: 1px solid var(--line); }

.noscript-panel {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  gap: var(--sp-4);
}
.noscript-panel img { border-radius: var(--r-sm); }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Architectural setback frame — echoes the building's cantilevered slabs */
/* overflow clips the parallax tween in animations.js so the image cannot
   escape its plate at the scroll extremes. */
.setback { position: relative; overflow: hidden; border-radius: var(--r-md); }
.setback > picture > img,
.setback > img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--r-md);
  background: var(--stone-soft);
}
.setback::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 2vw, 18px) calc(-1 * clamp(10px, 2vw, 18px)) calc(-1 * clamp(10px, 2vw, 18px)) clamp(10px, 2vw, 18px);
  border: 1px solid var(--gold);
  border-radius: var(--r-md);
  opacity: 0.5;
  pointer-events: none;
}
.setback--sm::after { opacity: 0.4; }

/* ------------------------------------------------ 05 Buttons & icon controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 44px; padding: 0.5rem 1.05rem; font-size: var(--fs-sm); }
.btn--full { width: 100%; }

/* Luminous Gold. Midnight is the only ink that survives the whole gradient
   (worst stop 4.69); Warm Pearl fails at 1.74. Hover brightens both stops,
   worst stop 5.81. */
.btn--gold { background: var(--grad-gold); color: var(--charcoal); border-color: var(--gold-500); }
.btn--gold:hover {
  background: linear-gradient(135deg, #E3C486 0%, #B98A45 100%);
  border-color: var(--gold-500);
}

/* Inverted: was a deep fill on a light ground, now a raised panel, teal hover. */
.btn--dark { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.btn--dark:hover { background: var(--sel-wash); border-color: var(--sel-edge); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--ink); background: rgb(var(--champagne-rgb) / 7%); }

.btn--ghost-dark { background: transparent; color: var(--ink); border-color: rgb(var(--mist-rgb) / 34%); }
.section--ivory .btn--ghost-dark,
.hero .btn--ghost-dark { color: var(--ink); border-color: var(--line-strong); }
.btn--ghost-dark:hover { border-color: var(--gold); background: rgb(var(--champagne-rgb) / 10%); }

.btn--text {
  background: transparent;
  color: var(--ink);
  padding-inline: 0.35rem;
  border-radius: var(--r-sm);
}
.btn--text:hover { color: var(--link); }
.section--forest .btn--text:hover,
.section--charcoal .btn--text:hover { color: var(--gold-ink); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--accent); background: rgb(var(--champagne-rgb) / 12%); }
.icon-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.icon-btn .icon { width: 1.25rem; height: 1.25rem; }

/* ------------------------------------------------------ 06 Announcement bar */
.announce {
  background: var(--deep-forest);
  color: rgb(var(--mist-rgb) / 86%);
  font-size: var(--fs-sm);
  border-bottom: 1px solid rgb(var(--champagne-rgb) / 30%);
}
.announce__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  min-height: 44px;
  padding-block: 0.25rem;
}
.announce__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.announce__item .icon { width: 0.95rem; height: 0.95rem; color: var(--gold-ink); }
.announce__item--status { color: var(--gold-ink); }
.announce__phone {
  margin-left: auto;
  min-height: 38px;
  padding-inline: 0.25rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.announce__phone:hover { color: var(--gold-ink); }

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--light-gold);
  flex: none;
}

@media (max-width: 599px) {
  .announce__item--status { display: none; }
  .announce { font-size: var(--fs-micro); }
}

/* ------------------------------------------------------ 07 Header & nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  /* Inverted: the light pole would paint a pearl bar over a midnight page. */
  background: rgb(var(--midnight-rgb) / 86%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
/* When the mobile drawer is open, lift the whole header stacking context
   so the full-height fixed panel reliably sits above page content & scrim. */
.site-header.is-nav-open {
  z-index: 100;
}
.site-header.is-stuck {
  background: rgb(var(--graphite-rgb) / 94%);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgb(0 0 0 / 45%);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__logo { height: 40px; width: auto; }
.brand__lockup { display: grid; gap: 1px; line-height: 1; }
.brand__mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.brand__name {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.nav-toggle__text { letter-spacing: 0.04em; }

.primary-nav { display: flex; align-items: center; gap: clamp(0.75rem, 1.6vw, 1.75rem); }
.primary-nav__heading { display: none; }
.primary-nav__list { display: flex; align-items: center; gap: clamp(0.55rem, 1.5vw, 1.4rem); }
.primary-nav__list a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0.15rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.primary-nav__list a:hover { color: var(--gold-ink); }
.primary-nav__list a:hover::after,
.primary-nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.primary-nav__list a[aria-current="true"] { color: var(--gold-ink); font-weight: 600; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 105; /* above page content, below open drawer (110) and header (100) */
  background: rgb(var(--graphite-rgb) / 62%);
  backdrop-filter: blur(2px);
}

@media (max-width: 1079px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 110; /* above header (100) and scrim (88) */
    width: min(340px, 86vw);
    height: 100%;
    height: 100dvh; /* modern mobile viewport units */
    max-height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-5);
    padding: calc(var(--sp-6) + env(safe-area-inset-top)) var(--sp-6) calc(var(--sp-6) + env(safe-area-inset-bottom));
    background: var(--deep-forest);
    color: var(--ink);
    transform: translateX(100%);
    visibility: hidden;
    /* visibility flips instantly on open (so focus can move in) and only after
       the slide has finished on close */
    transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    pointer-events: none; /* closed state: ignore hits */
  }
  .primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--dur) var(--ease), visibility 0s;
    pointer-events: auto;
  }
  .primary-nav__heading {
    display: block;
    margin: 0;
    font-size: var(--fs-micro);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-ink);
  }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__list li + li { border-top: 1px solid rgb(var(--mist-rgb) / 12%); }
  .primary-nav__list a {
    display: block;
    padding: 0.9rem 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ink);
  }
  .primary-nav__list a:hover,
  .primary-nav__list a[aria-current="true"] { color: var(--gold-ink); }
  .primary-nav__list a::after { background: var(--light-gold); }
  .primary-nav__cta { margin-top: auto; }
  body.is-locked { overflow: hidden; }
}


/* Prevent brand lockup + Menu button collision on very narrow phones */
@media (max-width: 380px) {
  .brand__mark { font-size: 1.35rem; letter-spacing: 0.1em; }
  .brand__name { font-size: 0.5rem; letter-spacing: 0.12em; }
  .nav-toggle { padding-inline: 0.65rem; }
  .nav-toggle__text { font-size: 0.75rem; }
}
@media (min-width: 1080px) and (max-width: 1199px) {
  .primary-nav { gap: 0.8rem; }
  .primary-nav__list { gap: 0.7rem; }
  .primary-nav__list a { font-size: 0.8125rem; }
  .primary-nav__cta { padding-inline: 0.9rem; }
  .brand__mark { font-size: 1.45rem; }
}

/* ------------------------------------------------------------- 08 Hero */
.hero {
  position: relative;
  padding-block: clamp(2.25rem, 1.2rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--bloom-b), var(--bloom-a), var(--surface);
  overflow: hidden;
}
/* Faint architectural grid, drawn behind everything */
.hero__rule {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(var(--mist-rgb) / 7%) 1px, transparent 1px);
  background-size: clamp(70px, 8vw, 116px) 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 70%, transparent);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3rem) clamp(2rem, 4vw, 4.5rem);
  grid-template-areas: "head" "figure" "body";
  align-items: start;
}
.hero__head { grid-area: head; }
.hero__figure { grid-area: figure; margin: 0; }
.hero__body { grid-area: body; display: grid; gap: var(--sp-5); }

.hero__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-h1);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: pretty;
}
/* Inline-block phrases keep the break where it reads best, and keep the space
   between them in the accessible name */
.hero__title span { display: inline-block; }
.hero__caption {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.status-list { display: grid; gap: 0.55rem; }
.status-chip {
  display: flex;
  align-items: start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.status-chip .icon { width: 1rem; height: 1rem; margin-top: 0.28em; color: var(--gold); }
.status-chip__note { color: var(--ink-muted); font-size: var(--fs-sm); }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }

.hero__price {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  color: var(--gold-ink);
}
.hero__price small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

@media (min-width: 760px) {
  .hero__grid {
    grid-template-areas: "head figure" "body figure";
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    grid-template-rows: auto 1fr;
    align-items: start;
  }
  .hero__figure { align-self: stretch; }
}
@media (min-width: 1120px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr); }
}

.hero {
  position: relative;
  padding-block: clamp(2.25rem, 1.2rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  background: linear-gradient(160deg, #FDFBF6 0%, #F5EEDF 46%, #EAD9B0 100%);
  overflow: hidden;

  /* Re-tuned ink for a light ground — measured against the lightest (top)
     and darkest (bottom) stops of the gradient above. */
  --ink: var(--midnight);
  --ink-soft: #2B3A44;
  --ink-muted: #4C595F;
  --gold-ink: var(--gold-800);        /* the light-ground text tier */
  --line: rgb(var(--midnight-rgb) / 16%);
  --line-strong: rgb(var(--midnight-rgb) / 30%);
}

/* The faint grid overlay (.hero__rule) was tuned for a dark ground too */
.hero__rule {
  background-image: linear-gradient(to right, rgb(var(--midnight-rgb) / 6%) 1px, transparent 1px);
}

/* Buttons that assumed a dark hero now need their ghost variant flipped */
.hero .btn--ghost-dark {
  color: var(--midnight);
  border-color: rgb(var(--midnight-rgb) / 28%);
}
.hero .btn--ghost-dark:hover {
  border-color: var(--gold-700);
  background: rgb(var(--gold-rgb) / 14%);
}


/* --------------------------------------- 09 Sections, editorial & facts */
.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bloom-b), var(--bloom-a), var(--surface);
  color: var(--ink);
}
/* Surface depths are assigned once near the top. The sibling rule below stops
   two same-toned sections doubling their vertical gap — it now has to cover
   the relief pairing too. */
.section--ivory + .section--ivory,
.section--relief + .section--relief {/* padding-top: 0; */ }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.section-head__lead {
  margin-top: var(--sp-4);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 56ch;
}

.editorial {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
}
.editorial__aside { display: grid; gap: var(--sp-4); align-content: start; }
.editorial__main .h2 { margin-bottom: var(--sp-5); }

@media (min-width: 860px) {
  /* .editorial { grid-template-columns: 180px minmax(0, 1fr); } */
  .editorial__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.facts {
  display: grid;
  gap: 1px;
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  /* Six facts, so fixed column counts — auto-fit would leave an orphan cell */
  grid-template-columns: 1fr;
}
@media (min-width: 480px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact {
  padding: var(--sp-5);
  background: var(--surface-raised);
  contain: layout style;
}
.fact__label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.fact__value {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--ink);
}
.fact__note { margin-top: 0.35rem; font-size: var(--fs-sm); color: var(--ink-muted); }

/* -------------------------------------------------------- 10 Residences */
.residence-grid {
  display: grid;
  gap: clamp(1.25rem, 0.9rem + 1.6vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.residence {
  display: flex;
  flex-direction: column;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  contain: layout style;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.residence:hover { border-color: rgb(var(--champagne-rgb) / 50%); transform: translateY(-3px); }
.residence__figure {
  position: relative;
  margin: 0;
  background: var(--plate);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.residence__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  padding: var(--sp-3);
  transition: transform 520ms var(--ease);
}
.residence:hover .residence__img { transform: scale(1.035); }
.residence__body { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); flex: 1; }
.residence__name { font-size: var(--fs-h3); color: var(--ink); }
.residence__spec { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: var(--fs-sm); color: var(--ink-muted); }
.residence__spec span { display: inline-flex; align-items: center; gap: 0.4rem; }
.residence__spec span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.residence__size {
  /* font-family: var(--font-display); */
  font-size: 1.5rem;
  font-weight: var(--fw-h3);
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
}
.residence__size small { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--ink-muted); }
.residence__text { font-size: 0.9375rem; color: var(--ink-soft); }
.residence__note { font-size: var(--fs-sm); color: var(--ink-muted); }
.residence__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-2); }

/* ---------------------------------------------- 11 Floor-plan explorer */
.plan-explorer {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-raised);
  overflow: hidden;
}
.plan-tablist {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--line);
  background: var(--ivory-deep);
}
.plan-tab {
  flex: none;
  position: relative;
  min-height: 52px;
  padding: 0.85rem 1.15rem;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line-soft);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.plan-tab:hover { color: var(--ink); background: var(--wash); }
.plan-tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
/* Selected state is a teal WASH, not a teal fill: nothing passes AA on solid
   Architectural Teal (Pearl 4.24, Midnight 3.74). Pearl on the 18% wash over
   midnight measures 13.19. */
.plan-tab[aria-selected="true"] { color: var(--ink); background: var(--sel-wash); }
.plan-tab[aria-selected="true"]::after { transform: scaleX(1); }

.plan-panel { padding: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem); }
.plan-panel:focus-visible { outline-offset: -3px; }
.plan-layout { display: grid; gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); }

.plan-figure {
  position: relative;
  margin: 0;
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.plan-figure__btn {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
}
.plan-figure__img { width: 100%; height: auto; background: var(--plate); }
/* top-right: the drawings carry their own title block along the bottom edge */
.plan-figure__hint {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgb(var(--graphite-rgb) / 86%);
  /* Pinned, not --ink. This chip paints its own dark scrim over the white
     artwork plate, so its ink must not follow the section's polarity: inside
     a light section --ink is midnight and the chip went dark-on-dark at
     1.50:1. Pearl on the scrim measures 10.56 on either kind of page. */
  color: var(--pearl);
  border-radius: 999px;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.plan-info { display: grid; gap: var(--sp-4); align-content: start; }
.plan-info__title { font-size: var(--fs-h3); color: var(--ink); }
.plan-info__meta { display: grid; gap: 0.6rem; }
.plan-info__row {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr;
  gap: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
}
.plan-info__key {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  padding-top: 0.22em;
}
.plan-info__val { color: var(--ink-soft); }
.plan-info__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.plan-note {
  padding: var(--sp-4);
  background: var(--ivory-deep);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .plan-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
}

.plan-footnote {
  display: flex;
  gap: 0.6rem;
  align-items: start;
  max-width: 86ch;
  margin-top: var(--sp-5);
  padding-inline: 0.15rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-muted);
}
.plan-footnote .icon { color: var(--gold); flex: none; margin-top: 0.22em; }

/* ------------------------------------------------------ 12 Payment plan */
.steps {
  display: grid;
  gap: 1rem;
  /* background: var(--line); */
  /* border: 1px solid var(--line); */
  border-radius: var(--r-md);
  overflow: hidden;
  /* Six stages — fixed column counts so no cell is ever left empty */
  grid-template-columns: 1fr;
}
@media (min-width: 520px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  padding: var(--sp-5);
  background: var(--surface-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  contain: layout style;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  margin-bottom: var(--sp-3);
  border: 1px solid var(--light-gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-ink);
}
.step__title { font-size: 1.2rem; color: var(--ink); }
.step__text { margin-top: 0.5rem; font-size: var(--fs-sm); color: var(--ink-muted); }

.terms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-5);
}
.term { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.9375rem; color: var(--ink-soft); }
.term .icon { color: var(--gold-ink); }
.term strong { color: var(--ink); font-weight: 600; }

/* The nine token re-declarations that used to live here are now in the shared
   .theme-light block near the top — .paper is listed there as a selector. */
.paper {
  margin-top: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  padding: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.paper__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.paper__head .h3 { color: var(--ink); }
.paper__sub { margin-top: 0.4rem; font-size: var(--fs-sm); color: var(--ink-muted); max-width: 46ch; }
.paper__count {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.payment-controls {
  display: grid;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  align-items: end;
}
.payment-controls .btn { min-height: 44px; }

/* Sits directly under the controls and explains why the table is not showing
   everything. Silver rather than pearl so it reads as an aside to the schedule
   rather than competing with the heading beside it. */
.payment-hint {
  margin: 0 0 var(--sp-5);
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent-edge);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.5;
  max-width: 68ch;
}
.payment-hint:empty { display: none; }

.field { display: grid; gap: 0.4rem; min-width: 0; }
.field--search { grid-column: 1 / -1; }
.field__label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field__wrap { position: relative; display: block; }
.field__input {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field__input::placeholder { color: var(--ink-muted); }
.field__input:hover { border-color: var(--line-strong); }
.field__input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--sel-wash); }
.field__input--select { appearance: none; padding-right: 2.4rem; cursor: pointer; }
.field__input--area { min-height: 118px; resize: vertical; }
.field--search .field__input { padding-left: 2.5rem; }
.field__icon, .field__chev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem; height: 1.1rem;
  color: var(--ink-muted);
  pointer-events: none;
}
.field__icon { left: 0.85rem; }
.field__chev { right: 0.85rem; }
.field__error {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--danger);
}
.field__error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 1.05rem; height: 1.05rem; border: 1px solid currentColor; border-radius: 50%; font-size: 0.7rem; flex: none; }
.field__input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-050); }
.req { color: var(--ink-muted); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 0.72rem; }
.opt { color: var(--ink-muted); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 0.72rem; }

/* Table (tablet & desktop) */
.table-scroll {
  margin-top: var(--sp-2);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-raised);
}
.table-scroll:focus-visible { outline-offset: 2px; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.pay-table th, .pay-table td { padding: 0.7rem 0.85rem; text-align: left; white-space: nowrap; }
.pay-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  /* Inverted: was a dark band anchoring a white table. It now lifts off the
     midnight page, with the gold edge doing the separating. */
  background: var(--surface-raised);
  border-bottom: 1px solid var(--accent-edge);
  color: var(--ink);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: bottom;
}
.th-sub { display: block; font-weight: 500; letter-spacing: 0.06em; opacity: 0.7; text-transform: none; }
.pay-table .num, .pay-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.pay-table tbody tr { border-top: 1px solid var(--line-soft); }
.pay-table tbody tr:nth-child(even) { background: var(--wash-faint); }
.pay-table tbody tr:hover { background: rgb(var(--champagne-rgb) / 9%); }
.pay-table__sticky { position: sticky; left: 0; z-index: 1; }
.pay-table thead .pay-table__sticky { z-index: 3; }
.pay-table tbody .pay-table__sticky {
  background: var(--surface-raised);
  font-weight: 700;
  color: var(--ink);
  border-right: 1px solid var(--line-soft);
}
/* The sticky cell must stay opaque to mask the scrolled columns, so the row
   zebra is layered over the raised tone rather than replacing it. */
.pay-table tbody tr:nth-child(even) .pay-table__sticky {
  background: linear-gradient(var(--wash-faint), var(--wash-faint)), var(--surface-raised);
}
.pay-table tbody tr:hover .pay-table__sticky { background: var(--accent-wash); }
.pay-table__type { color: var(--ink-soft); }
.pay-table__beds { display: block; font-size: var(--fs-micro); color: var(--ink-muted); }
.pay-table__total { font-weight: 700; color: var(--gold-ink); }

.scroll-hint {
  margin-top: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

/* Cards (mobile) */
.pay-cards { display: none; gap: var(--sp-3); margin-top: var(--sp-2); }
.pay-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.pay-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "no  price chev"
    "sum sum   chev";
  align-items: center;
  gap: 0.2rem 0.75rem;
  width: 100%;
  padding: var(--sp-4);
  background: transparent;
  border: 0;
  text-align: left;
}
.pay-card__no {
  grid-area: no;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.pay-card__sum { grid-area: sum; min-width: 0; }
.pay-card__type { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.pay-card__area { display: block; font-size: var(--fs-sm); color: var(--ink-muted); }
.pay-card__price {
  grid-area: price;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pay-card__chev { grid-area: chev; }
.pay-card__chev { color: var(--ink-muted); transition: transform var(--dur) var(--ease); }
.pay-card__head[aria-expanded="true"] .pay-card__chev { transform: rotate(180deg); }
.pay-card__detail { padding: 0 var(--sp-4) var(--sp-4); border-top: 1px solid var(--line-soft); }
.pay-card__detail dl { display: grid; gap: 0; margin: 0; }
.pay-card__detail div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.pay-card__detail dt { font-size: var(--fs-sm); color: var(--ink-muted); }
.pay-card__detail dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
}

.empty-state {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  background: var(--surface-raised);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  color: var(--ink-soft);
  text-align: center;
}

.paper__foot {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.disclaimer {
  display: flex;
  gap: 0.6rem;
  align-items: start;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 72ch;
}
.disclaimer .icon { color: var(--gold); margin-top: 0.15em; width: 1.1rem; height: 1.1rem; }
.paper__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.noscript-panel--dark { background: rgb(var(--mist-rgb) / 7%); }

@media (max-width: 767px) {
  .table-scroll, .scroll-hint { display: none; }
  .pay-cards { display: grid; }
}
/* Both action buttons need ~470px, so only pair them with the disclaimer
   once there is room for the note to stay readable */
@media (min-width: 1080px) {
  .paper__foot { grid-template-columns: minmax(30ch, 1fr) auto; align-items: center; }
}

/* ------------------------------------------------ 13 Construction progress */
/* Render and site photographs share one figure treatment and one aspect ratio,
   so the render/reality comparison lines up instead of stair-stepping. */
.compare {
  display: grid;
  gap: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem) clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem);
}
.compare__item { margin: 0; display: grid; gap: var(--sp-4); align-content: start; }
.compare__labelrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 40px;
}
.compare__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.compare__label::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
}
.compare__label--now { color: var(--link); }
.compare__cap { font-size: var(--fs-sm); color: var(--ink-muted); max-width: 52ch; }

/* Shared frame for the render and the site photographs */
.figure-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
}
.figure-frame__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 560ms var(--ease);
}
/* the render is portrait, so centre the 4:3 window on the building itself */
.compare__item--vision .figure-frame__img { object-position: center 49%; }
.figure-frame:hover .figure-frame__img { transform: scale(1.035); }
.figure-frame__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 1.6rem 1rem 0.85rem;
  background: linear-gradient(to top, rgb(var(--graphite-rgb) / 88%), transparent);
  /* Pinned for the same reason as .plan-figure__hint: this caption paints its
     own dark ramp over the photograph, so its ink must not follow the
     section's polarity. Only lives in a dark section today, so this changes
     nothing visually — it just stops the trap being re-sprung if #progress is
     ever converted to a light ground. */
  color: var(--pearl);
  font-size: var(--fs-sm);
  text-align: left;
}
.figure-frame__cap .icon { color: var(--gold-500); flex: none; }

.badge-status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  background: var(--surface-raised);   /* inverted; gold edge separates it */
  color: var(--ink);
  border: 1px solid rgb(var(--champagne-rgb) / 55%);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.progress-gallery { display: grid; gap: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem); }

@media (min-width: 560px) {
  .progress-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  /* one third for the render, two thirds for the two site photographs */
  .compare { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .compare__item--now { grid-column: span 2; }
}

/* ------------------------------------------------------------ 14 Location */
.location { display: grid; gap: clamp(2rem, 1.4rem + 3vw, 3.5rem); align-items: start; }
.location__info { display: grid; gap: var(--sp-5); align-content: start; }

.address { font-style: normal; }
.address__label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.6rem;
}
.address__body {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.6rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 24ch;
  overflow-wrap: break-word;
}

.location__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.location__sub { color: var(--ink); }

.place-list {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.place-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.location__figure { margin: 0; display: grid; gap: var(--sp-4); }

@media (min-width: 900px) {
  .location { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

/* ------------------------------------------------------------ 15 Brochure */
.brochure { display: grid; gap: clamp(2rem, 1.4rem + 3vw, 3.5rem); align-items: center; }
.brochure__text { display: grid; gap: var(--sp-4); align-content: start; }
.brochure__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.brochure__grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brochure-face {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.brochure-face:hover { border-color: rgb(var(--champagne-rgb) / 60%); transform: translateY(-3px); }
.brochure-face img { width: 100%; }
.brochure-face__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
  text-align: left;
}
.brochure-face__cap .icon { color: var(--gold); }

@media (min-width: 900px) {
  .brochure { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
}

/* ---------------------------------------------------------- 16 Leadership */
.team {
  display: grid;
  gap: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem);
  /* Three people — go straight from one column to three so no card is orphaned */
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { display: grid; gap: var(--sp-4); align-content: start; }
.member__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-sunken);
}
.member__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.94);
}
.member__name { font-size: var(--fs-h4); font-weight: 500; color: var(--ink); }
.member__role {
  margin-top: 0.35rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--gold-ink);
}
.member__rule { margin-top: var(--sp-3); }

/* ---------------------------------------------------------- 17 Inquiry form */
.inquiry { display: grid; gap: clamp(2rem, 1.4rem + 3vw, 4rem); align-items: start; }
.inquiry__aside { display: grid; gap: var(--sp-4); align-content: start; }

.contact-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-3); }
.contact-list li { display: flex; gap: var(--sp-3); align-items: start; }
.contact-list .icon { width: 1.25rem; height: 1.25rem; color: var(--gold); margin-top: 0.25rem; }
.contact-list__label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.15rem;
}
.contact-list__value { color: var(--ink-soft); max-width: 34ch; }
.contact-list a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--link);
  font-weight: 600;
}

.form {
  display: grid;
  gap: var(--sp-5);
  padding: clamp(1.25rem, 0.9rem + 1.8vw, 2.25rem);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 560px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 0.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip input:hover + span { border-color: var(--line-strong); }
.chip input:checked + span {
  background: var(--sel-wash);
  border-color: var(--sel);
  color: var(--ink);
}
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.field--consent { gap: 0.5rem; }
.consent { display: flex; gap: 0.65rem; align-items: start; font-size: 0.9375rem; color: var(--ink-soft); cursor: pointer; }
.consent input {
  width: 24px; height: 24px;
  margin: 0.1rem 0 0;
  accent-color: var(--sel);
  flex: none;
}

.form-summary {
  padding: var(--sp-4);
  background: var(--danger-050);
  border: 1px solid var(--danger-200);
  border-left: 3px solid var(--danger);
  border-radius: var(--r-sm);
}
.form-summary:focus-visible { outline-offset: 2px; }
.form-summary__title { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 700; color: var(--danger); }
.form-summary__list { margin-top: 0.5rem; display: grid; gap: 0.25rem; }
.form-summary__list a { color: var(--danger); font-size: var(--fs-sm); font-weight: 600; }

.form__status { font-size: 0.9375rem; font-weight: 600; }
.form__status.is-ok { color: var(--success); }
.form__status.is-warn { color: var(--danger); }
.form__status:empty { display: none; }

@media (min-width: 900px) {
  .inquiry { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

/* ------------------------------------------------------ 18 Final CTA & footer */
.final-cta {
  position: relative;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--bloom-b), var(--bloom-a), var(--surface);
  color: var(--ink);
  text-align: center;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgb(var(--mist-rgb) / 4.5%) 1px, transparent 1px);
  background-size: clamp(70px, 8vw, 116px) 100%;
  mask-image: radial-gradient(ellipse at center, #000, transparent 76%);
  pointer-events: none;
}
.final-cta__inner { position: relative; display: grid; gap: var(--sp-5); justify-items: center; }
.final-cta__title { color: var(--ink); max-width: 16ch; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

.site-footer {
  --surface: var(--charcoal);
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--charcoal);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  gap: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.footer-brand { display: grid; gap: var(--sp-3); align-content: start; }
.brand__lockup--footer .brand__mark { color: var(--ink); font-size: 1.9rem; }
.brand__lockup--footer .brand__name { color: var(--gold-ink); }
.footer-brand__tagline { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-ink); }
.footer-brand__dev { font-size: var(--fs-sm); color: var(--ink-muted); }
.footer-brand__dev strong { color: var(--ink); font-weight: 600; }

.footer-col__title {
  margin-bottom: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.footer-col__title--spaced { margin-top: var(--sp-5); }
.footer-address { font-style: normal; color: var(--ink-muted); line-height: 1.6; max-width: 32ch; overflow-wrap: break-word; }
.footer-phone { margin-top: var(--sp-4); }
.footer-phone a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.footer-phone a:hover { color: var(--gold-ink); }

.footer-links { display: grid; gap: 0.55rem; }
.footer-links a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--gold-ink); }
.footer-links .icon { width: 0.95rem; height: 0.95rem; }
.footer-links li a { display: inline-flex; align-items: center; gap: 0.5rem; }

.social { display: flex; gap: var(--sp-3); margin-top: var(--sp-2); }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social a:hover { color: var(--gold-ink); border-color: var(--gold-ink); }

.footer-base {
  display: grid;
  gap: var(--sp-3);
  margin-top: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}
.footer-base__disclaimer { max-width: 92ch; line-height: 1.6; }

/* ------------------------------------------------- 19 Mobile bar & to top */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: none;
  gap: 1px;
  /* Inverted. It used to be a dark bar anchoring a light page; on midnight
     that would vanish, so it lifts to the raised tone and the gold top edge
     does the separating. */
  background: var(--surface-raised);
  border-top: 1px solid var(--accent-edge);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease);
}
.mobile-bar.is-visible { transform: translateY(0); }
.mobile-bar__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 58px;
  padding: 0.4rem 0.5rem;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
}
.mobile-bar__btn .icon { width: 1.15rem; height: 1.15rem; color: var(--gold-ink); }
.mobile-bar__btn--primary { background: var(--gold); color: var(--charcoal); }
.mobile-bar__btn--primary .icon { color: var(--charcoal); }

@media (max-width: 767px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 58px; }
}

.to-top {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: var(--surface-raised);   /* inverted — lifts, no longer darkens */
  color: var(--ink);
  border: 1px solid rgb(var(--champagne-rgb) / 50%);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.to-top:hover { background: var(--sel); transform: translateY(-2px); }
@media (max-width: 767px) { .to-top { bottom: calc(58px + env(safe-area-inset-bottom) + 0.75rem); } }

/* ------------------------------------------------------------ 20 Lightbox */
.lightbox {
  width: min(1280px, 96vw);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.lightbox::backdrop { background: var(--scrim); backdrop-filter: blur(3px); }
/* Its four token re-declarations are gone — the frame is dark and :root is
   now dark, so it inherits --line / --ink / --accent / --focus unchanged. */
.lightbox__frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: 94vh;
  background: var(--graphite-800);
  border: 1px solid var(--accent-edge);
  border-radius: var(--r-md);
  overflow: hidden;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.lightbox__titles { min-width: 0; }
.lightbox__title { font-size: 1.15rem; color: var(--ink); }
.lightbox__meta { font-size: var(--fs-sm); color: rgb(var(--mist-rgb) / 60%); }
.lightbox__tools { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.lightbox__dl { color: var(--ink); border-color: rgb(var(--mist-rgb) / 34%); }
.lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: var(--sp-3);
  background: var(--forest-900);
  overflow: auto;
}
.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: calc(94vh - 190px);
  height: auto;
  object-fit: contain;
  background: var(--plate);
  border-radius: var(--r-sm);
}
.lightbox__img.is-photo { background: transparent; }
.lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--line);
}
.lightbox__foot .icon-btn { color: var(--ink); }
.lightbox__caption {
  flex: 1;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: rgb(var(--mist-rgb) / 75%);
  text-align: center;
}
@media (max-width: 599px) {
  .lightbox__bar { flex-wrap: wrap; }
  .lightbox__dl .btn-text { display: none; }
  .lightbox__img { max-height: calc(94vh - 220px); }
}

/* --------------------------------------------- 21 Motion & reduced motion */
/* CSS owns the hidden initial state deliberately: the <noscript> block forces
   it visible, and script.js's IntersectionObserver fallback drives .is-in when
   GSAP is unavailable. animations.js only ever animates TO visible. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
/* When GSAP is driving, drop the CSS transition so the two do not fight. */
.js-gsap .reveal { transition: none; }

/* ---- Custom cursor -------------------------------------------------------
   A gold dot that tracks the pointer with a ring trailing behind it. The
   .has-cursor class is added by animations.js ONLY after it has confirmed a
   fine pointer and no reduced-motion preference — so if the script never runs,
   the native cursor is never hidden.
   z-index clears the mobile drawer (10000) and scrim (9999). */
.has-cursor,
.has-cursor * { cursor: none; }

/* Text entry keeps its native caret — a dot is useless for placing a cursor
   in a field, and the form is the page's conversion point. */
.has-cursor input,
.has-cursor textarea,
.has-cursor select { cursor: auto; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--champagne-400);
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgb(var(--champagne-rgb) / 55%);
}
/* Over something clickable the ring opens up and warms slightly */
.cursor-ring.is-hover {
  border-color: rgb(var(--champagne-rgb) / 90%);
  background: rgb(var(--champagne-rgb) / 10%);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .residence:hover, .brochure-face:hover, .to-top:hover { transform: none; }
  .residence:hover .residence__img,
  .figure-frame:hover .figure-frame__img { transform: none; }
}

@media print {
  .site-header, .announce, .mobile-bar, .to-top, .payment-controls,
  .nav-scrim, .hero__actions { display: none !important; }
  body { background: #fff; color: #000; }
}

/* 1. Ensure the Nav is always on top and handles touch correctly */
#primaryNav {
  position: fixed !important;
  z-index: 10000 !important; /* Higher than modal and scrim */
  top: 0;
  right: 0;
  width: min(340px, 86vw);
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden; /* Fixes horizontal unresponsiveness */
  touch-action: pan-y; /* Allows vertical scrolling but prevents horizontal jitter */
}

/* 2. Fix the "Irresponsive" Body when menu or modal is open */
body.is-locked {
  overflow: hidden !important;
  position: fixed; /* Prevents background from scrolling on mobile */
  width: 100%;
  /* position:fixed takes <body> out of flow and collapses the document's
     scroll offset to 0. Holding it at -offset keeps the page looking exactly
     where the reader left it; lockScroll()/unlockScroll() in script.js set
     this property and scroll back on release. */
  top: var(--scroll-lock-top, 0px);
}

/* 3. Ensure the scrim is behind the nav but above content */
#navScrim {
  z-index: 9999 !important;
}

.nav-scrim {
  display: none;
  visibility: hidden;
  pointer-events: none;
}

body {
  overflow: auto;
  overflow-x: hidden;
  position: relative;
}

.primary-nav.is-open {
  overflow-x: hidden;
  touch-action: pan-y;
  max-width: 100vw;
  pointer-events: all;
  z-index: 9999;
}

/* Show the scrim when the body is locked (menu is open) */
body.is-locked #navScrim {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  /*
    Defect N-2: `.nav-scrim { pointer-events: none }` above was never
    countermanded here, so the scrim was painted but could not receive the
    click that closes the drawer - tapping outside the menu did nothing.
    Restoring pointer events changes no pixels; the scrim already rendered
    exactly like this. Still absent upstream as of 2026-08-19.
  */
  pointer-events: auto !important;
}

#primaryNav.is-open {
  transform: translateX(0) !important;
  visibility: visible !important;
}


/* ==========================================
   Header & Desktop Navigation Styles
   ========================================== */

/* Base Header Layout */
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Hide Desktop Nav by Default (Mobile-First) */
.desktop-nav {
  display: none;
}

/* Desktop Styles (1080px and above) */
@media (min-width: 1080px) {
  /* Hide Mobile Drawer & Toggle Button on Desktop */
  .nav-toggle,
  .primary-nav,
  .nav-scrim {
    display: none !important;
  }

  /* Show Desktop Navigation Bar */
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .desktop-nav__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .desktop-nav__list a {
    color: inherit;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  /* --color-gold was never defined, so this always fell through to an
     off-palette #c5a059. Use the real accent token. */
  .desktop-nav__list a:hover,
  .desktop-nav__list a[aria-current="true"] {
    color: var(--gold-ink);
  }

  .desktop-nav__cta {
    white-space: nowrap;
  }
}

/* -------------------------------------------------------- 17 Inquiry Form */
.enquiry-grid {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}

@media (min-width: 900px) {
  .enquiry-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.contact-details {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.contact-item {
  display: grid;
  gap: 0.25rem;
}

.enquiry-paper {
  margin-top: 0;
  border: 1px solid var(--line);
}

.form-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}

.field--full {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}


/* ---- Selected floor plans on a light ground -----------------------------
   Same cream treatment as #residence-types, so the two drawing-led sections
   read as a pair and break up the run of midnight between them. Placed here
   beside .hero / #brochure / .final-cta rather than in a page's scoped block,
   so index.html and index.php pick it up from one place. */
#floor-plans {
  background: linear-gradient(160deg, #FDFBF6 0%, #F5EEDF 46%, #EAD9B0 100%);

  --ink: var(--midnight);
  --ink-soft: #2B3A44;
  --ink-muted: #4C595F;
  --gold-ink: var(--gold-800);
  --line: rgb(var(--midnight-rgb) / 16%);
  --line-strong: rgb(var(--midnight-rgb) / 30%);
  --surface-raised: #FFFFFF;

  /* The washes are alpha-white for a dark page; over a light card they land
     at #FEFEFD and vanish. Flipped to alpha-midnight so hover still reads. */
  --wash-strong: rgb(var(--midnight-rgb) / 10%);
  --wash: rgb(var(--midnight-rgb) / 6%);
  --wash-faint: rgb(var(--midnight-rgb) / 3%);
}

/* .plan-explorer re-declares --surface-sunken locally (30% black), which fills
   the tab strip and the plan notes — a dark band across a white card. It has
   to be overridden on the component, not the section, to win.

   --ivory-deep is overridden too, and that is not redundant: it is declared in
   :root AS `var(--surface-sunken)`, so it resolves there once and inherits
   down as a literal rgba. Re-pointing --surface-sunken further down the tree
   does not re-resolve it, and the tab strip reads --ivory-deep. */
#floor-plans .plan-explorer {
  --surface-sunken: #F1EADB;
  --ivory-deep: #F1EADB;
}

/* The selected-tab underline was brand gold: 1.98 on white, so the marker all
   but disappeared. Teal is the interactive tier and reads at 4.81. */
#floor-plans .plan-tab::after { background: var(--sel); }
#floor-plans { --link: var(--teal-800); }

/* Ghost hover and the plan-note edge used --gold (1.98 on white). */
#floor-plans .btn--ghost:hover { border-color: var(--gold-800); }
#floor-plans .plan-note { border-left-color: var(--gold-800); }

/* .btn--dark is a raised deep-blue panel on the dark page; here that resolves
   to white-on-white. Same gold treatment #brochure already uses. */
#floor-plans .btn--dark {
  background: var(--grad-gold);
  color: var(--midnight);
  border-color: var(--gold-500);
}
#floor-plans .btn--dark:hover {
  background: linear-gradient(135deg, #E3C486 0%, #B98A45 100%);
  border-color: var(--gold-500);
}

/* ---- From vision to reality on a light ground ---------------------------
   The render and the site photographs are the point of this section, and they
   carry their own white plates and dark caption ramps — those read better on
   cream than they did floating on midnight. */
#progress {
  background: linear-gradient(160deg, #FDFBF6 0%, #F5EEDF 46%, #EAD9B0 100%);

  --ink: var(--midnight);
  --ink-soft: #2B3A44;
  --ink-muted: #4C595F;
  --gold-ink: var(--gold-800);
  --link: var(--teal-800);
  --line: rgb(var(--midnight-rgb) / 16%);
  --line-strong: rgb(var(--midnight-rgb) / 30%);
  --surface-raised: #FFFFFF;
  --wash-strong: rgb(var(--midnight-rgb) / 10%);
  --wash: rgb(var(--midnight-rgb) / 6%);
  --wash-faint: rgb(var(--midnight-rgb) / 3%);

  /* --ivory-deep is declared in :root as var(--surface-sunken), so it resolves
     there once and inherits as a literal 26% black. Re-pointing the sunken
     token alone would leave the vision mat a dark slab, so both are set. */
  --surface-sunken: #F1EADB;
  --ivory-deep: #F1EADB;
}

/* The status dot is a 6px indicator, so it needs 3:1 in its own right. Brand
   gold measures 1.42 on the darkest cream stop. */
#progress .badge-status .dot { background: var(--gold-800); }

#brochure {
  background: linear-gradient(160deg, #FDFBF6 0%, #F5EEDF 46%, #EAD9B0 100%);

  --ink: var(--midnight);
  --ink-soft: #2B3A44;
  --ink-muted: #4C595F;
  --gold-ink: var(--gold-800);
  --line: rgb(var(--midnight-rgb) / 16%);
  --line-strong: rgb(var(--midnight-rgb) / 30%);
  --surface-raised: #FFFFFF;
}

/* Primary action — solid gold, matches the CTA styling used across the
   other light sections instead of the generic dark-raised button. */
#brochure .btn--dark {
  background: var(--grad-gold);
  color: var(--midnight);
  border-color: var(--gold-500);
}
#brochure .btn--dark:hover {
  background: linear-gradient(135deg, #E3C486 0%, #B98A45 100%);
  border-color: var(--gold-500);
}

/* Secondary action — dark outline, so it stays clearly subordinate to the
   gold button beside it. */
#brochure .btn--ghost {
  color: var(--midnight);
  border-color: rgb(var(--midnight-rgb) / 30%);
}
#brochure .btn--ghost:hover {
  border-color: var(--gold-700);
  background: rgb(var(--gold-rgb) / 12%);
}

.final-cta {
  background: linear-gradient(160deg, #FDFBF6 0%, #F5EEDF 46%, #EAD9B0 100%);

  --ink: var(--midnight);
  --ink-soft: #2B3A44;
  --ink-muted: #4C595F;
  --gold-ink: var(--gold-800);
  --line: rgb(var(--midnight-rgb) / 16%);
  --line-strong: rgb(var(--midnight-rgb) / 30%);
}

/* .final-cta::before draws the faint architectural grid lines — tuned as a
   near-invisible light tint for a dark ground; on cream it needs to be a
   dark tint instead or it disappears entirely. */
.final-cta::before {
  background-image: linear-gradient(to right, rgb(var(--midnight-rgb) / 5%) 1px, transparent 1px);
}

/* .btn--gold needs no change — Midnight-on-gold already passes contrast on
   any ground, light or dark, so it looks identical here. */

/* .btn--ghost-dark assumed a dark section (light border, light text) —
   flip both for a light ground. */
.final-cta .btn--ghost-dark {
  color: var(--midnight);
  border-color: rgb(var(--midnight-rgb) / 30%);
}
.final-cta .btn--ghost-dark:hover {
  border-color: var(--gold-700);
  background: rgb(var(--gold-rgb) / 12%);
}
#owner-care{
  background: linear-gradient(160deg, #FDFBF6 0%, #F5EEDF 46%, #EAD9B0 100%);

  --ink: var(--midnight);
  --ink-soft: #2B3A44;
  --ink-muted: #4C595F;
  --gold-ink: var(--gold-800);
  --line: rgb(var(--midnight-rgb) / 16%);
  --line-strong: rgb(var(--midnight-rgb) / 30%);
  --surface-raised: #FFFFFF;

}