/* ==========================================================================
   Meridian — "GOLDEN HOUR": a luxury property site that lives at dusk, and
   scrolling moves the sun.
   A Templatorium template · https://templatorium.com

   THE IDEA. The whole site sits under a luminous dusk sky — a warm→cool
   gradient from honey-amber at the top, through rose, down into deep indigo.
   That sky is FIXED behind everything and it is driven by SCROLL: as you move
   down a page, a single progress value (--sun, 0 → 1) warms and then cools the
   sky, sweeps a band of raking light across the hero facade, lengthens a
   directional shadow, and slides a marker down a 06:00 → 20:30 sun-dial. You do
   not read the listing; you watch the day turn on it. It is bright and open —
   the opposite of a dark editorial brochure. No beige.

   HOW TO RE-THEME (the 30-second version — full guide in docs/README.md):
   every colour, font and size is a custom property in the :root block below.
   Change the values there and the whole site follows. Everything under the
   tokens is structure; you rarely touch it. The sun engine reads the SAME
   tokens, so a re-theme re-tints the sky too.

   THE CONTRAST PROMISE. The sky is bright, so text NEVER sits on it raw. The
   hero uses a computed dusk scrim; every other block of text rides on an OPAQUE
   warm panel (cream / stone) or a deep dusk ground with light text. Every
   text/ground pair is computed to WCAG 2.2 AA (worst real-text pair 5.05:1;
   body ink is 15:1 on cream). Re-check any colour you change:
   https://webaim.org/resources/contrastchecker/
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS — the re-theme contract
   -------------------------------------------------------------------------- */
:root {
  /* --- The dusk sky (the IDENTITY). These four poles ARE the ground; the sun
     engine crossfades between the warm (day) pair and the cool (dusk) pair as
     you scroll. Decorative — text never sits directly on honey/rose. --------- */
  --sky-honey:  #F2A65A; /* midday warm — top of the sky at scroll 0 */
  --sky-rose:   #E48B7B; /* the turn — mid sky */
  --sky-indigo: #202A44; /* dusk — lower sky (also a content ground) */
  --sky-deep:   #161D30; /* the last light — sky floor / footer ground */

  /* --- Opaque content grounds (text rides on THESE, never on the sky) ------- */
  --cream:      #FBF3E8; /* primary light panel — warm bone */
  --stone:      #ECDCC6; /* alt warm-stone panel */
  --indigo:     #202A44; /* dusk dark section (light text) */
  --deep-indigo:#161D30; /* footer / deepest ground (light text) */
  /* The vista ground is a translucent scrim over the fixed sky; this token is
     its worst-case (brightest-sky) effective bg — the value contrast is
     computed against. Used by the re-theme/builder contract, not painted. */
  --vista-ink:  #4A3A33;

  /* --- Text treatments ------------------------------------------------------ */
  --ink:        #241B2E; /* primary text on cream/stone — 15.0:1 / 12.3:1 */
  --muted:      #63513F; /* secondary text on cream/stone — 6.9:1 / 5.6:1 */
  --cream-dim:  #CFC8D8; /* muted text on indigo/deep — 8.7:1 / 10.3:1 */

  /* --- The accents (used < 5%) ---------------------------------------------- *
     ember  — the text-accent on LIGHT grounds (links, the horizon rule, spec
              keys, "From" glyphs) — a burnt terracotta, at least 5:1 on cream.
     sun    — the honey light — the enquire button FILL, the dial marker, and
              accent text on the DARK dusk grounds (7:1 on indigo).
     Bring-your-brand-colour swaps the ember token (light-ground text accent). */
  --ember:       #9A3F14;
  --ember-hover: #7C3410;
  --sun:         #F2A65A;
  --sun-soft:    #FFCE8C; /* the dial glow / raking light — decorative only */
  --accent-ink:  #241206; /* label on the honey fill — 8.9:1 */

  /* Reserved DECORATIVE field for the bring-your-brand-colour flow. A buyer's
     hex lands here (the meridian-rule sun bead) — never on a text or button
     role — so it can tint the ornament but can never break a contrast pair. */
  --field-demote: var(--sun);

  /* --- Ground role variables (default = cream). A [data-ground] rule (§6)
     swaps the whole set so a section's text follows its ground. -------------- */
  --g-bg:     var(--cream);
  --g-fg:     var(--ink);
  --g-mute:   var(--muted);
  --g-accent: var(--ember);
  --g-line:   #E2CFB4;   /* hairline on cream */
  --g-focus:  var(--ember);

  /* --- Type ----------------------------------------------------------------- *
     Jost (SIL OFL, variable) — the airy geometric grotesk display, set thin
     (300) and widely tracked: the luxury-property register. Manrope (SIL OFL,
     variable) — a clean geometric sans for body + the spec sheet (tabular
     figures). IBM Plex Mono (SIL OFL) — MACHINE DATA ONLY (prices, areas,
     coordinates, dates, the time-of-day dial). Never editorial words. */
  --font-display: "Jost", system-ui, -apple-system, sans-serif;
  --font-body:    "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale — the JUMP (Jost 300 display over Manrope body) is the design. */
  --t-display: clamp(46px, 7vw, 104px); /* home hero */
  --t-h1:      clamp(40px, 6vw, 84px);  /* page mastheads */
  --t-h2:      clamp(30px, 4vw, 54px);  /* section heads */
  --t-h3:      clamp(20px, 2.4vw, 27px);/* card / spec titles */
  --t-lede:    clamp(17px, 1.5vw, 21px);
  --t-body:    16.5px;
  --t-small:   14px;
  --t-data:    13px;  /* Plex Mono — spec strips, prices, coordinates */
  --t-label:   12px;  /* Jost tracked caps — kickers / micro-labels */

  /* Space & structure */
  --max:      1240px;
  --gutter:   clamp(20px, 4vw, 56px);
  --band-pad: clamp(72px, 10vw, 140px);
  --gap:      clamp(24px, 3vw, 40px);
  --nav-h:    76px;

  /* Shape — crisp and architectural (NOT a soft wellness radius). */
  --r-panel: 4px;
  --r-pill:  40px;
  --r-input: 4px;

  /* Depth — low warm light, not hard shadow. */
  --shadow-rest: 0 2px 10px rgba(22, 20, 40, .10), 0 30px 70px -34px rgba(22, 20, 40, .40);
  --shadow-card: 0 1px 3px rgba(22, 20, 40, .10), 0 24px 50px -30px rgba(22, 20, 40, .35);

  /* THE SUN — scroll progress, 0 (06:00, warm midday) → 1 (20:30, dusk).
     The default is golden hour, so no-JS and reduced-motion render a warm,
     finished sky. The sun engine (js/meridian-motion.js) rewrites this live. */
  --sun-progress: .62;
}

/* Typed so browsers that support @property interpolate --sun-progress smoothly
   between frames; degrades to a plain custom property everywhere else (the JS
   sets it every frame regardless, so the value is always right). */
@property --sun-progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.62;
}

/* --------------------------------------------------------------------------
   2. FONT FACES — vendored variable/static woff2, no CDN, no rendering lottery
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-roman.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-roman.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.62;
  color: var(--ink);
  background: var(--sky-deep); /* seen only behind the fixed sky, if ever */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Sticky nav → anchored jumps must clear the bar. */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

img { max-width: 100%; display: block; }
a { color: var(--g-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember-hover); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.04; letter-spacing: .006em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: .01em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: var(--r-input);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* Focus — computed visible on EVERY ground (see §6 for per-ground --g-focus). */
:focus-visible {
  outline: 2.5px solid var(--g-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* --------------------------------------------------------------------------
   4. THE FIXED DUSK SKY + the sun engine's CSS side
   -------------------------------------------------------------------------- *
   .sky is fixed behind the whole document. Its base layer is the WARM day sky;
   .sky::after is the COOL dusk sky, faded in by --sun-progress. So as the sun
   engine drives --sun-progress 0 → 1, the sky crosses from midday warm to dusk.
   Opaque content panels sit above it; a few translucent ".vista" sections let
   the turning sky show through mid-page. */
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  /* day sky — honey high, rose low */
  background: linear-gradient(180deg,
    var(--sky-honey) 0%,
    #EEA267 34%,
    var(--sky-rose) 72%,
    #C97A6E 100%);
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  /* dusk sky — rose fading to deep indigo */
  background: linear-gradient(180deg,
    #E39A72 0%,
    var(--sky-rose) 22%,
    #7C5A6B 52%,
    var(--sky-indigo) 82%,
    var(--sky-deep) 100%);
  opacity: var(--sun-progress); /* 0 = pure day, 1 = full dusk */
}

/* --------------------------------------------------------------------------
   5. NAV
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, color .3s ease;
  /* DEFAULT (and the no-JS state) is an OPAQUE cream bar with dark text, so the
     nav is legible over every ground even with JavaScript disabled. */
  background: var(--cream); color: var(--ink);
  border-bottom: 1px solid #E2CFB4;
  box-shadow: 0 1px 0 rgba(22,20,40,.04), 0 10px 30px -24px rgba(22,20,40,.5);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Only at the very top of a page (JS adds .at-top) does the nav go transparent
   with light text — it then rides the hero / page-hero's dark scrim. The moment
   you scroll away it returns to the opaque cream bar above. */
.nav.at-top {
  background: transparent; color: var(--cream);
  border-bottom-color: transparent; box-shadow: none;
}

.wordmark {
  font-family: var(--font-display); font-weight: 400; font-size: 18px;
  letter-spacing: .44em; text-transform: uppercase; color: inherit; text-decoration: none;
  padding-left: .12em; /* optical: tracking pushes the last letter out */
}
.nav-links { list-style: none; display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav-links a {
  color: inherit; text-decoration: none; font-size: var(--t-small);
  letter-spacing: .14em; text-transform: uppercase; opacity: .86;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  color: inherit; align-items: center; justify-content: center;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle .bars::after  { position: absolute; top: 7px; left: 0; }

/* --------------------------------------------------------------------------
   6. GROUND SYSTEM — a section reads its ground's role tokens
   -------------------------------------------------------------------------- */
[data-ground] {
  background: var(--g-bg);
  color: var(--g-fg);
}
[data-ground="cream"] {
  --g-bg: var(--cream); --g-fg: var(--ink); --g-mute: var(--muted);
  --g-accent: var(--ember); --g-line: #E2CFB4; --g-focus: var(--ember);
}
[data-ground="stone"] {
  --g-bg: var(--stone); --g-fg: var(--ink); --g-mute: var(--muted);
  --g-accent: var(--ember); --g-line: #D8C3A6; --g-focus: var(--ember);
}
[data-ground="indigo"] {
  --g-bg: var(--indigo); --g-fg: var(--cream); --g-mute: var(--cream-dim);
  --g-accent: var(--sun); --g-line: #38415C; --g-focus: var(--sun);
}
[data-ground="deep"] {
  --g-bg: var(--deep-indigo); --g-fg: var(--cream); --g-mute: var(--cream-dim);
  --g-accent: var(--sun); --g-line: #2A3350; --g-focus: var(--sun);
}
/* .vista — a translucent dusk ground so the TURNING sky shows through mid-page.
   Text is light and sits over a deepening scrim, so it stays ≥ AA at any --sun. */
[data-ground="vista"] {
  --g-bg: transparent; --g-fg: var(--cream); --g-mute: var(--cream-dim);
  --g-accent: var(--sun); --g-line: rgba(251,243,232,.24); --g-focus: var(--sun);
  /* A dark scrim over the fixed sky, so the turning sky shows THROUGH yet text
     always clears AA. The floor never dips below ~.72 alpha: even over the
     brightest honey sky the worst effective bg is ~#4c3b35, on which cream is
     9.6:1, muted 6.5:1 and the sun accent 5.2:1 (computed). */
  background:
    linear-gradient(180deg, rgba(18,22,40,.80) 0%, rgba(18,22,40,.72) 46%, rgba(18,22,40,.82) 100%);
  position: relative;
}

/* --------------------------------------------------------------------------
   7. EDITORIAL PRIMITIVES — kicker, horizon rule, eyebrow numbers, mono data
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 400; font-size: var(--t-label);
  letter-spacing: .34em; text-transform: uppercase; color: var(--g-fg);
}
.kicker::before {
  content: ""; width: 40px; height: 1px; background: var(--g-accent); opacity: .9;
}
.kicker--plain::before { display: none; }

/* the ONE recurring editorial device: a thin horizon line with a sun bead —
   the meridian mark. Ties every section back to the "light" idea. */
.horizon {
  display: flex; align-items: center; gap: 16px; margin: 0 0 26px;
  color: var(--g-mute); font-family: var(--font-mono); font-size: var(--t-data); letter-spacing: .08em;
}
.horizon::before {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, color-mix(in oklab, var(--field-demote) 55%, #fff), var(--field-demote) 70%);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--field-demote) 22%, transparent);
}
.horizon::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--g-line); }

.data { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.section-index {
  font-family: var(--font-mono); font-size: var(--t-data); letter-spacing: .12em;
  color: var(--g-accent);
}

.lede { font-size: var(--t-lede); line-height: 1.6; color: var(--g-fg); max-width: 60ch; }
.muted { color: var(--g-mute); }
.prose p { max-width: 66ch; }
.prose p + p { margin-top: 1.1em; }

/* --------------------------------------------------------------------------
   8. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: var(--t-small);
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: 13px 26px; border-radius: var(--r-pill); cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sun); color: var(--accent-ink); }
.btn--primary:hover { background: var(--sun-soft); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--g-accent); border-color: var(--g-accent); }
.btn--ghost:hover { background: color-mix(in oklab, var(--g-accent) 12%, transparent); color: var(--g-accent); }
.btn--lg { padding: 16px 32px; font-size: var(--t-body); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  color: var(--g-accent); font-family: var(--font-display); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; font-size: var(--t-small);
}
.arrow-link .go { transition: transform .2s ease; }
.arrow-link:hover .go { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 32px; }

/* --------------------------------------------------------------------------
   9. HERO — the light. A full-bleed facade under the turning sky, an offset
      headline over a computed scrim, a crisp spec card, the sun-dial.
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h); overflow: clip;
  isolation: isolate;
}
.hero-photo {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  object-fit: cover; object-position: center 36%;
}
/* the raking light — a warm band that sweeps across the facade with the sun.
   translateX tracks the sun progress — low-left at dawn, high-right toward dusk. */
.hero-rake {
  position: absolute; inset: -20% -30%; z-index: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(104deg,
    rgba(255, 206, 140, .30) 0%, rgba(255, 196, 120, .12) 24%, transparent 46%);
  transform: translateX(calc((var(--sun-progress) - .35) * 44%));
  opacity: calc(1 - var(--sun-progress) * .5); /* strongest low-light, softens at dusk */
}
/* directional facade shadow — lengthens/deepens toward dusk. */
.hero-shade {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,18,34,.0) 40%, rgba(20,18,34,.34) 100%);
  opacity: var(--sun-progress);
}
/* legibility scrim for the nav + headline (computed: dark enough that cream
   text clears AA over the brightest sky/photo). */
.hero-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22,26,48,.60) 0%, rgba(22,26,48,.18) 30%, transparent 48%),
    radial-gradient(74% 62% at 22% 34%, rgba(20,24,44,.52), transparent 62%),
    linear-gradient(0deg, rgba(20,24,44,.42) 0%, transparent 26%);
}
.hero > .wrap { position: relative; z-index: 2; width: 100%; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: end;
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(28px,6vh,64px) 0 clamp(28px,5vh,56px);
}
.hero-copy { align-self: center; max-width: 40ch; position: relative; }
/* Copy haze — a soft, edgeless dark vignette anchored to the copy block so the
   cream headline + lede clear AA over the brightest sandstone/sky, at every
   breakpoint and every sun position (computed: composites the worst-case bright
   sky, L≈0.7, to L≈0.14 — cream lede 4.6:1, honey "sun." 3.7:1). It travels with
   the copy, so the rest of the photo stays bright. */
.hero-copy::before {
  content: ""; position: absolute; z-index: -1;
  inset: -14% -10% -12% -12%; pointer-events: none;
  background: radial-gradient(135% 130% at 38% 46%,
    rgba(18,20,38,.80) 0%, rgba(18,20,38,.56) 46%, rgba(18,20,38,.20) 70%, transparent 84%);
}
.hero .kicker { color: var(--cream); margin-bottom: 26px; }
.hero .kicker::before { background: var(--sun); }
.hero h1 {
  font-size: var(--t-display); color: var(--cream); letter-spacing: .01em; line-height: 1.02;
  text-shadow: 0 2px 44px rgba(20,20,40,.36);
}
.hero h1 em { font-style: normal; color: var(--sun-soft); }
.hero-copy .lede { color: rgba(251,243,232,.92); margin-top: 24px; max-width: 42ch; }

/* the floating spec card — a CRISP solid dusk panel (no blur haze). */
.spec-card {
  align-self: end; justify-self: start; width: min(400px, 100%);
  background: #1B1424; color: var(--cream);
  border: 1px solid rgba(255,238,214,.20); border-radius: var(--r-panel);
  padding: 26px 28px 24px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.62);
}
.spec-card .tag {
  display: inline-block; font-family: var(--font-display); font-weight: 400;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--sun-soft);
  border: 1px solid rgba(255,206,140,.42); border-radius: var(--r-pill); padding: 4px 12px; margin-bottom: 16px;
}
.spec-card .name { font-family: var(--font-display); font-weight: 300; font-size: 27px; letter-spacing: .02em; }
.spec-card .loc { font-size: var(--t-small); color: rgba(251,243,232,.72); margin-top: 5px; }
.spec-row {
  display: flex; gap: 26px; margin: 20px 0 18px; padding: 18px 0;
  border-top: 1px solid rgba(255,238,214,.16); border-bottom: 1px solid rgba(255,238,214,.16);
}
.spec-row > div { display: flex; flex-direction: column; gap: 5px; }
.spec-row .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(251,243,232,.66); }
.spec-row .v { font-family: var(--font-mono); font-weight: 500; font-size: 20px; font-variant-numeric: tabular-nums; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.price { font-family: var(--font-mono); font-weight: 500; font-size: 24px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.price small { display: block; font-family: var(--font-display); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(251,243,232,.64); margin-bottom: 4px; font-weight: 400; }

/* --- the sun-dial (the signature made literal) --------------------------- */
.sun-dial { position: absolute; right: clamp(20px, 4vw, 60px); top: calc(var(--nav-h) + 12vh); bottom: 15vh; width: 150px; z-index: 2; pointer-events: none; }
.sun-dial .rail {
  position: absolute; right: 14px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, rgba(251,243,232,.12), rgba(251,243,232,.5) 40%, var(--sun-soft) 62%, rgba(251,243,232,.22));
}
.sun-dial .tick { position: absolute; right: 14px; transform: translate(50%,-50%); text-align: center; }
.sun-dial .tick i { display: block; width: 7px; height: 1px; background: rgba(251,243,232,.6); margin: 0 auto 4px; }
.sun-dial .tick span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: rgba(251,243,232,.78); font-variant-numeric: tabular-nums; }
.sun-dial .bead {
  position: absolute; right: 14px; width: 26px; height: 26px; border-radius: 50%;
  transform: translate(50%,-50%); will-change: top;
  /* the marker rides the dial: 4% (06:00) → 88% (20:30) with the sun */
  top: calc(4% + var(--sun-progress) * 84%);
  background: radial-gradient(circle at 50% 45%, #FFF3D6 0%, var(--sun-soft) 42%, var(--sun) 100%);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--sun) 20%, transparent), 0 0 34px 10px color-mix(in oklab, var(--sun) 55%, transparent);
}
.sun-dial .bead .clock {
  position: absolute; right: 34px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: #FFE7BE; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.sun-dial .cap {
  position: absolute; right: -2px; bottom: 0; writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--font-display); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: rgba(251,243,232,.85);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(251,243,232,.78);
  font-family: var(--font-display); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
}
.scroll-cue .chev { font-size: 15px; line-height: 1; animation: cue-bob 2.2s ease-in-out infinite; }
@keyframes cue-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* --- page masthead (inner pages) — a shorter hero over the turning sky ---- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(56px,12vh,120px)) 0 clamp(44px,8vh,86px);
  min-height: 58svh; display: flex; align-items: flex-end;
}
.page-hero h1 { font-size: var(--t-h1); max-width: 15ch; }
.page-hero .kicker { margin-bottom: 22px; }
.page-hero .lede { margin-top: 22px; }
.page-hero .coord-strip { margin-top: 24px; }

/* --------------------------------------------------------------------------
   10. SECTIONS / BANDS
   -------------------------------------------------------------------------- */
.band { padding: var(--band-pad) 0; position: relative; }
.band-head { max-width: 62ch; }
.band-head h2 { margin-top: 14px; }
.band-head .lede { margin-top: 20px; }

/* a two-column editorial block (heading | prose) */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start;
}
.split--wide { grid-template-columns: 0.9fr 1.1fr; }

/* a statement figure beside copy */
.statement-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--gap); align-items: center; }

/* --------------------------------------------------------------------------
   11. IMAGE SLOTS + the designed dusk empty-state (never a bare box)
   -------------------------------------------------------------------------- *
   A slot without a photo draws a faint on-brand horizon+sun line motif masked
   from a palette token (so it re-themes), with an OFF-CENTER corner spec label.
   The instant a real <img> lands, :has(img) retires the motif. Full-bleed
   plates are height-capped so a wide ratio never becomes a flat band. */
.slot {
  position: relative; overflow: hidden; border-radius: var(--r-panel);
  background: color-mix(in oklab, var(--stone) 78%, var(--indigo) 22%);
}
.slot > img { width: 100%; height: 100%; object-fit: cover; }
.slot[data-ratio="4-5"] { aspect-ratio: 4 / 5; }
.slot[data-ratio="3-2"] { aspect-ratio: 3 / 2; }
.slot[data-ratio="16-9"] { aspect-ratio: 16 / 9; }
.slot[data-ratio="1-1"] { aspect-ratio: 1 / 1; }

/* the empty-state motif — a low horizon line with a rising sun, drawn from the
   ground line token so it re-tints; retired the moment a photo is present. */
.slot::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 34%; height: 1px;
  background: color-mix(in oklab, var(--ink) 34%, transparent);
}
.slot::after {
  content: "";
  position: absolute; left: 16%; bottom: calc(34% - 30px); width: 60px; height: 60px; border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, var(--ink) 40%, transparent);
  background: radial-gradient(circle at 50% 60%, color-mix(in oklab, var(--sun) 62%, transparent), color-mix(in oklab, var(--sun) 12%, transparent) 60%, transparent 72%);
}
.slot .plate-label {
  position: absolute; right: 16px; bottom: 14px; text-align: right;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in oklab, var(--ink) 62%, transparent); max-width: 62%;
}
.slot .plate-label b { display: block; font-weight: 500; color: color-mix(in oklab, var(--ink) 78%, transparent); }
.slot:has(img)::before, .slot:has(img)::after { display: none; }
.slot:has(img) .plate-label { display: none; }

/* full-bleed cinematic plate (residence camera frames) — height-capped */
.plate {
  position: relative; width: 100%; height: min(76vh, 760px); overflow: hidden;
  border-radius: var(--r-panel);
}
.plate > img { width: 100%; height: 100%; object-fit: cover; }
.plate--tall { height: min(88vh, 900px); }

/* a caption under a cinematic plate — mono frame label + a line of copy */
.plate-caption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-top: 16px;
  color: var(--g-mute);
}
.plate-caption .frame { font-family: var(--font-mono); font-size: var(--t-data); letter-spacing: .1em; text-transform: uppercase; color: var(--g-accent); }
.plate-caption .say { font-size: var(--t-small); max-width: 60ch; }

/* the camera sequence: a stack of full-bleed plates with copy between */
.camera { display: grid; gap: clamp(40px, 6vw, 84px); }
.camera .frame-block { display: grid; gap: 18px; }

/* a simple gallery grid (residence detail / neighborhood) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.gallery .slot { aspect-ratio: 3 / 4; }
.gallery .slot:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .slot:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   12. RESIDENCE CARDS (index grid — never three identical)
   -------------------------------------------------------------------------- */
.residence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.residence-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--g-fg);
  background: var(--cream); border: 1px solid var(--g-line); border-radius: var(--r-panel); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.residence-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.residence-card .slot { border-radius: 0; }
.residence-card--lead { grid-column: 1 / -1; }
.residence-card--lead .card-body { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
.card-body { padding: 22px 24px 24px; }
.card-body .name { font-family: var(--font-display); font-weight: 300; font-size: var(--t-h3); }
.card-body .loc { color: var(--muted); font-size: var(--t-small); margin-top: 4px; }
.card-spec {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px;
  font-family: var(--font-mono); font-size: var(--t-data); letter-spacing: .04em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card-spec .sep { opacity: .5; }
.card-price {
  margin-top: 16px; font-family: var(--font-mono); font-weight: 500; font-size: 18px;
  color: var(--ember); font-variant-numeric: tabular-nums;
}
.card-price small { font-family: var(--font-display); font-weight: 400; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }

/* --------------------------------------------------------------------------
   13. SPEC SHEET (the data module on the residence detail)
   -------------------------------------------------------------------------- */
.spec-sheet {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--g-line); border-radius: var(--r-panel); overflow: hidden;
}
.spec-sheet .cell { padding: 20px 22px; border-bottom: 1px solid var(--g-line); }
.spec-sheet .cell:nth-child(odd) { border-right: 1px solid var(--g-line); }
.spec-sheet .cell .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-mute); }
.spec-sheet .cell .v { font-family: var(--font-mono); font-weight: 500; font-size: 19px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.spec-sheet .cell--wide { grid-column: 1 / -1; border-right: 0; }

/* a coordinates / provenance strip */
.coord-strip {
  display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 22px;
  font-family: var(--font-mono); font-size: var(--t-data); letter-spacing: .06em; color: var(--g-mute);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   14. FORM (enquire)
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-display); font-size: var(--t-small); letter-spacing: .04em; color: var(--g-fg); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--t-body); color: var(--ink);
  background: #FFFDF9; border: 1px solid var(--g-line); border-radius: var(--r-input); padding: 12px 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2.5px solid var(--g-focus); outline-offset: 1px; border-color: transparent; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: var(--t-small); color: var(--g-mute); }

/* --------------------------------------------------------------------------
   15. FOOTER + mobile bar
   -------------------------------------------------------------------------- */
.site-footer { background: var(--deep-indigo); color: var(--cream); padding: clamp(56px,7vw,88px) 0 40px; }
.site-footer a { color: var(--cream-dim); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--gap); }
.footer-grid .wordmark { color: var(--cream); }
.nap { font-style: normal; margin-top: 18px; line-height: 1.9; color: var(--cream-dim); font-size: var(--t-small); }
.footer-col h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-small); letter-spacing: .18em; text-transform: uppercase; color: var(--cream); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { font-size: var(--t-small); }
.footer-fine { margin-top: 44px; padding-top: 22px; border-top: 1px solid #2A3350; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
.microline { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--cream-dim); }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  align-items: center; justify-content: space-between; gap: 14px;
  background: var(--deep-indigo); color: var(--cream); padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #2A3350;
}
.mobile-bar .mb-hours { font-family: var(--font-mono); font-size: 12px; color: var(--cream-dim); }

/* --------------------------------------------------------------------------
   16. REVEAL — content is visible by default; .in PLAYS an entrance keyframe
       whose `backwards` fill supplies the hidden start frame (no pre-hiding).
   -------------------------------------------------------------------------- */
.js .reveal { animation: none; }
.js .reveal.in { animation: rise .8s cubic-bezier(.2,.7,.2,1) backwards; }
.js .reveal.in.d1 { animation-delay: .08s; }
.js .reveal.in.d2 { animation-delay: .16s; }
.js .reveal.in.d3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* stagger children of a group via --i (set in JS) */
.js .stagger.in > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * .07s); }

/* --------------------------------------------------------------------------
   17. REDUCED MOTION — freeze the sun at golden hour, kill entrances
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal.in, .js .stagger.in > *, .scroll-cue .chev { animation: none !important; }
  .sun-dial .bead { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav nav { position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--cream); color: var(--ink);
    border-bottom: 1px solid var(--g-line); box-shadow: var(--shadow-rest);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .nav nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0; }
  .nav-links a { display: block; padding: 14px var(--gutter); width: 100%; }
  /* no-JS safety: the toggle can't open the menu, so show links inline and
     un-stick the header so it never becomes a permanent banner. */
  html:not(.js) .nav { position: static; }
  html:not(.js) .nav .wrap { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav nav { position: static; transform: none; opacity: 1; pointer-events: auto; box-shadow: none; background: transparent; border: 0; }
  html:not(.js) .nav-links { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .nav-links a { display: inline-block; width: auto; padding: 8px 14px 8px 0; }
}
@media (max-width: 760px) {
  .split, .split--wide, .statement-grid { grid-template-columns: 1fr; }
  .residence-grid { grid-template-columns: 1fr; }
  .residence-card--lead .card-body { grid-template-columns: 1fr; }
  .sun-dial { display: none; } /* the sky still turns; the dial is desktop chrome */
  .hero-copy { max-width: 100%; }
  .spec-card { width: 100%; }
  .mobile-bar { display: flex; }
  .site-footer { padding-bottom: 96px; } /* clear the mobile bar */
  .field-row { grid-template-columns: 1fr; }
  .footer-fine { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .spec-sheet { grid-template-columns: 1fr; }
  .spec-sheet .cell:nth-child(odd) { border-right: 0; }
  .spec-row { gap: 18px; }
}
