/* ==========================================================================
   tokens.css: Olamia design tokens. Every colour, type, space, radius and motion
   value lives here; components only reference these.
   Colours sampled from the e-brochure V7 (confirm against the CI).
   ========================================================================== */

@font-face {
  font-family: 'Nematho';
  src: url('../fonts/Nematho-Regular.ttf') format('truetype');   /* TODO: woff2 once confirmed */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {   /* headlines (Stacey, 9 Nov 2026): every display headline is set in Nematho Italic */
  font-family: 'Nematho';
  src: url('../fonts/Nematho-Italic.otf') format('opentype');   /* TODO: woff2 + web licence */
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {   /* Urbanist SemiBold, self-hosted from Stacey's file (the rest of Urbanist comes from Google Fonts) */
  font-family: 'Urbanist';
  src: url('../fonts/Urbanist-SemiBold.otf') format('opentype');   /* TODO: woff2 */
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── Colour: brand ─────────────────────────────────────────── */
  --c-forest:      #35372D;   /* dark panels */
  --c-sand:        #ECE2D6;   /* backgrounds */
  --c-gold:        #DFB23A;   /* accent: headings, icons, pins */
  --c-khaki:       #9A8968;   /* secondary */
  --c-paper:       #F7F2EA;   /* text on dark [TBC: confirm] */
  --c-linen:       #EAE3DD;   /* brand SVG "Sand" (Logo-Sand.svg): section ground in Stacey's designs */
  --c-urchin:      #353A36;   /* brand SVG "Urchin": benefit icons */
  --c-site:        var(--c-gold);   /* Location map: Olamia's site, solid gold as in the brochure (p.7, 19 Nov; was green #6F8C5E, 17 Nov) */
  --c-urchin-40:   color-mix(in srgb, var(--c-urchin) 40%, transparent);   /* soft Urchin: secondary buttons, quiet tabs (Stacey, 12 Nov) */
  --c-sunlight:    #D7B34E;   /* brand SVG "WaterSunlight": accent headline line ("& Penthouses") */
  --c-motif-forest: color-mix(in srgb, var(--c-on-urchin) 10%, transparent);   /* water motif on forest (amenities, Stacey 9 Nov) */
  --c-motif-flow:  color-mix(in srgb, white 20%, transparent);   /* water motif behind intro + collection: white at 20% (Stacey, 8 Nov) */

  /* derived (tints / shades of the brand values, not new colours) */
  --c-forest-90:   color-mix(in srgb, var(--c-forest) 90%, black);
  --c-forest-a80:  color-mix(in srgb, var(--c-forest) 80%, transparent);
  --c-forest-a40:  color-mix(in srgb, var(--c-forest) 40%, transparent);
  --c-gold-soft:   color-mix(in srgb, var(--c-gold) 55%, var(--c-sand));   /* motif on sand, as brochure p.4 */
  --c-gold-dim:    color-mix(in srgb, var(--c-gold) 7%, transparent);      /* motif on forest, as brochure p.3 */
  --c-gold-hover:  color-mix(in srgb, var(--c-gold) 85%, white);
  --c-gold-active: color-mix(in srgb, var(--c-gold) 85%, black);
  --c-paper-a70:   color-mix(in srgb, var(--c-paper) 70%, transparent);
  --c-paper-a20:   color-mix(in srgb, var(--c-paper) 20%, transparent);
  --c-paper-a85:   color-mix(in srgb, var(--c-paper) 85%, transparent);
  --c-ink:         var(--c-forest);
  --c-ink-soft:    color-mix(in srgb, var(--c-forest) 78%, var(--c-sand));
  --c-line:        color-mix(in srgb, var(--c-forest) 18%, transparent);
  --loader-ground: linear-gradient(180deg, #d8c6ad 0%, #c39a6c 55%, #7a5536 100%);   /* warm stand-in under the loader photo */
  --c-white-ground: #FFFFFF;   /* opportunity section ground (Stacey's design) */
  --palm-veil: linear-gradient(color-mix(in srgb, var(--c-white-ground) 60%, transparent) 0 0);   /* palm shadow 40% lighter: a white veil over it (Stacey, 13 Nov) */
  --c-on-urchin:     var(--c-linen);   /* white text, icons + SVGs on Urchin grounds are brand Sand instead (Stacey, 13 Nov) */
  --c-on-urchin-a85: color-mix(in srgb, var(--c-on-urchin) 85%, transparent);
  --c-white:       #FFFFFF;   /* Figma "Fresh White": type over renders */
  --c-film: color-mix(in srgb, var(--c-urchin) 50%, white);   /* brand-film placeholder block: Urchin, 50% lighter (Stacey, 12 Nov) */
  --c-tbc:         #C0392B;   /* dev-only: placeholder flag */

  /* Header + launch bar, 'urchin' theme (NAV_THEME in config.php; Stacey, 10 Nov 2026) */
  --header-shade: color-mix(in srgb, var(--c-forest) 46%, transparent);   /* soft shade behind the transparent header: 15% stronger than 40% (Stacey, 13 Nov) */
  --nav-solid-bg: var(--c-urchin);                 /* header once scrolled (transparent over the hero) */
  --nav-solid-fg: var(--c-on-urchin);   /* sand on the Urchin header (13 Nov) */
  --nav-solid-shadow: 0 1px 0 color-mix(in srgb, var(--c-paper) 8%, transparent);
  --bar-bg: var(--c-sand);                         /* launch bar + countdown */
  --bar-fg: var(--c-urchin);
  --bar-docked-shadow: 0 12px 30px -18px color-mix(in srgb, var(--c-urchin) 45%, transparent);
  --bar-dock-cut: 144px;                           /* docked = one thin line (Stacey, 13 Nov): phones 184→40; tablet + desktop below */
  --bar-cta-gap: var(--s-2);                       /* launch line → Register button */
  --fs-bar-head: min(1.45em, 6vw);                 /* launch bar headline (Nematho): relative to the bar text (shrinks when docked); on phones it stacks on two lines (13 Nov), so it can be full size */
  --bar-line-gap: 0.15em;                          /* between the headline and the launch line */
  --fs-bar-docked: var(--fs-nav);                  /* docked text matches the nav, so the two don't compete */
  /* Marketplace: clear outline button (Stacey's reference, 10 Nov) */
  --outline-bd: color-mix(in srgb, var(--c-paper) 85%, transparent);
  --urchin-btn-bg-hover: color-mix(in srgb, var(--c-urchin) 86%, var(--c-paper));   /* Urchin Register: a touch lighter on hover */
  --urchin-btn-bg-solid: color-mix(in srgb, var(--c-urchin) 78%, var(--c-paper));   /* on the Urchin header: lifted so it still reads as filled */
  --blog-gap: clamp(var(--s-3), 2.2vw, var(--s-6));   /* between the blog cards */
  --blog-card-ar: 4 / 5;                           /* upright card, like Stacey's reference (13 Nov) */
  --blog-sh-top-h: 62%;                             /* blog card: soft top shade, full width */
  --blog-sh-top: color-mix(in srgb, var(--c-urchin) 82%, transparent);
  --blog-card-pad: 9% 10% 10%;                      /* % of the card width, so the type keeps its place as the card scales */
  --fs-blog-title: clamp(2rem, 1rem + 1.7vw, 3.25rem);   /* blog card headline, Nematho: 32 → 52 (Stacey's card, 13 Nov) */
  --ls-blog-title: 0.05em;         /* its letter-spacing: ≈1.7px at 1920 (Stacey, 13 Nov) */
  --lang-pad-x: 0.85rem;                                                            /* EN | FR boxes */
  --lang-pad-y: var(--cta-pad-y); --lang-h: var(--cta-h); --fs-lang: var(--fs-cta);   /* the button sizes; phones: a step smaller (below) */
  --outline-bg-hover: color-mix(in srgb, var(--c-paper) 12%, transparent);
  /* Language: plain text, the other language softened */
  --opp-lead-w: 67.2rem;   /* "A family legacy" story column: 84rem less 20% (≈1075px; Stacey, 12 Nov) */
  --hero-fade: 2200ms;   /* hero render crossfade */
  --hero-hold: 7s;
  --hero-zoom: 1.06;       /* render hero: how far the slow push in goes (6%) */
  --hero-zoom-dur: 24s;    /* and how long it takes */
  --hero-loop-shade: color-mix(in srgb, var(--c-forest) 70%, transparent);   /* looping hero: the top shade behind the logo and menu (24 Nov 2026) */
  --hero-loop-shade-mid: 16%;   /* half strength here */
  --hero-loop-shade-end: 38%;   /* gone by here */
  --hero-loop-y: 55%;   /* looping hero: which part of the 2000×1100 film shows on wide screens (0% = top, 100% = the whole pool, the building's top cut). 55%: more pool, swimmer in on laptops too, the roofline tucked under the header (client, 25 Nov 2026; was 10%) */
  --dot-off: 0.5;   /* dots not showing: softened (Stacey, 13 Nov) */
  --dot-ring: 14.5px; --dot-core: 4.25px; --dot-pitch: 21.8px;   /* hero + Residences dots, 15% smaller (Stacey, 13 Nov: was 17 / 5 / 25.6) */       /* how long each render rests (keep in step with data-hold in hero.php) */
  --lang-off: 0.6;
  --link-hover-off: var(--lang-off);   /* nav links + estate labels on hover: soften to 60%, no underline (Stacey, 13 Nov) */
  /* glass (Register buttons, language toggle) */
  --glass-bg:        color-mix(in srgb, var(--c-paper) 14%, transparent);
  --glass-bg-hover:  color-mix(in srgb, var(--c-paper) 22%, transparent);
  --glass-bg-strong: color-mix(in srgb, var(--c-paper) 32%, transparent);
  --glass-bd:        color-mix(in srgb, var(--c-paper) 72%, transparent);
  --glass-dark-bg:   color-mix(in srgb, var(--c-forest) 62%, transparent);
  --glass-urchin-bg:       color-mix(in srgb, var(--c-urchin) 58%, transparent);   /* Marketplace: dark Urchin glass (Stacey, 9 Nov) */
  --glass-urchin-bg-hover: color-mix(in srgb, var(--c-urchin) 74%, transparent);
  --glass-urchin-bd:       color-mix(in srgb, var(--c-paper) 38%, transparent);
  --glass-dark-bg-hover: color-mix(in srgb, var(--c-forest) 74%, transparent);
  --glass-bd-hover:  color-mix(in srgb, var(--c-paper) 92%, transparent);
  --glass-hi:        color-mix(in srgb, var(--c-paper) 55%, transparent);   /* inner top edge light */
  --glass-lo:        color-mix(in srgb, var(--c-paper) 14%, transparent);   /* inner bottom edge */
  --glass-top:       color-mix(in srgb, var(--c-paper) 16%, transparent);   /* top-lit frost gradient */
  --glass-foot:      color-mix(in srgb, var(--c-forest) 10%, transparent);
  --glass-blur:      blur(20px) saturate(160%) brightness(1.04);
  --glass-halo:      color-mix(in srgb, var(--c-paper) 9%, transparent);    /* hover: hairline halo (halved, Stacey 9 Nov) */
  --glass-glow:      color-mix(in srgb, var(--c-paper) 11%, transparent);   /* hover: very slight outer glow (halved) */
  --glimmer:         color-mix(in srgb, var(--c-paper) 15%, transparent);   /* hover: drifting pool of light (halved) */
  --sheen:           color-mix(in srgb, var(--c-paper) 70%, transparent);

  /* ── Type ───────────────────────────────────────────────────── */
  --ff-display: 'Nematho', 'Cormorant Garamond', Georgia, serif;
  --fs-display-style: italic;   /* Nematho Italic for all headlines */
  --ff-body:    'Urbanist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* fluid 390 → 1440 */
  --fs-hero:    clamp(2.75rem, 1.18rem + 6.45vw, 7rem);       /* 44 → 112 */
  /* Headline scale, Nematho Italic, golden ratio (φ = 1.618) at desktop: H1 88 → H2 54 → H3 34 (Stacey, 12 Nov).
     Phones step by a gentler 1.33 so H3 stays readable: 40 → 30 → 24. Fluid between 390 and ≈1500. */
  --fs-h1:      clamp(2.5rem, 1.45rem + 4.3vw, 5.5rem);       /* 40 → 88 */
  --fs-h2:      clamp(1.875rem, 1.3425rem + 2.184vw, 3.4rem); /* 30 → 54.4 (88 ÷ φ) */
  --fs-h3:      clamp(1.5rem, 1.29rem + 0.859vw, 2.1rem);     /* 24 → 33.6 (88 ÷ φ²) */
  --fs-d1:      var(--fs-h1);
  --fs-d2:      var(--fs-h2);
  --fs-d3:      var(--fs-h3);
  --fs-menu:    clamp(1.75rem, 1.3rem + 1.85vw, 3rem);        /* 28 → 48: menu overlay links (kept off the headline scale) */
  --fs-kicker:  clamp(1.125rem, 0.95rem + 0.75vw, 1.625rem);  /* 18 → 26: italic lead-in ("River frontage.") */
  --fs-lead:    clamp(1.0625rem, 0.95rem + 0.45vw, 1.375rem); /* 17 → 22 */
  --fs-body:    clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);     /* 16 → 17 */
  --fs-small:   0.875rem;
  --fs-micro:   0.75rem;
  --cta-h: 42px; --cta-pad-y: 0.5rem; --cta-pad-x: 1.75rem;     /* every button, everywhere: the height of the EN/FR toggle (Stacey, 9 Nov) */
  --cta-w: min(100%, 15rem);                                     /* Register button width in the page */
  --fs-cta: 0.9375rem;                                           /* 15px at every size: subtle luxury (Stacey, 9 Nov) */
  --col-rhythm: clamp(var(--s-3), 0.75rem + 1.65vw, var(--s-6));   /* collection: the same gap heading → price → button (Stacey, 12 Nov; ¾ of it from 24 Nov 2026, client: closer) */
  --col-price-lh: 1.4;                                           /* collection: the two price lines closer (was the body 1.65; 24 Nov 2026) */
  --col-render-fr: 1.45fr;                                       /* collection, 834px+: render column vs copy column (24 Nov 2026) */
  --col-gap: clamp(var(--s-3), 2.8vw, var(--s-6));               /* collection, 834px+: render → copy (24 Nov 2026) */
  --line-btn-bd: color-mix(in srgb, var(--c-forest) 75%, transparent);   /* line button hairline on cream */
  --line-btn-bg-hover: color-mix(in srgb, var(--c-forest) 6%, transparent);
  --col-stack-w: min(100%, 19.8rem);                             /* collection: price + button column */
  --fs-nav:     clamp(0.8125rem, 0.75rem + 0.15vw, 0.875rem); /* 13 → 14: header links, 1px smaller (Stacey, 13 Nov) */
  --ls-nav:     0.05em;   /* opened up from 0.02em (Stacey, 13 Nov) */
  --fs-poi:     clamp(0.875rem, 0.5rem + 0.7vw, 1.125rem);   /* 14 → 18 max (from ~1430): POI labels, Urbanist Light (Stacey, 9 Nov) */
  --setting-crop: 90px;                                       /* The Setting, 834px+: the frame is this much shorter than 16:9, cropped evenly top and bottom (Stacey, 9 Nov) */
  --fs-price:   clamp(1.25rem, 1rem + 0.9vw, 1.75rem);        /* 20 → 28: collection price range */
  --fs-col-price: calc(var(--fs-price) - 2px);                 /* collection: 2px smaller (client, 24 Nov 2026) */
  --fs-stat:    clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);        /* 24 → 40 */

  --fw-light: 300; --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600;
  --lh-tight: 1.02; --lh-snug: 1.2; --lh-body: 1.65;
  --ls-display: -0.01em;
  --ls-caps: 0.18em;

  /* ── Space (8pt grid) ─────────────────────────────────────── */
  --s-1: 0.5rem;  --s-2: 1rem;   --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 2.5rem;  --s-6: 3rem;   --s-8: 4rem;   --s-10: 5rem;
  --s-12: 6rem;   --s-16: 8rem;  --s-20: 10rem;
  --section-y: clamp(var(--s-10), 3rem + 6vw, var(--s-20));   /* 80 → 160 */

  /* ── Layout ───────────────────────────────────────────────── */
  --maxw: 100vw;      /* near full-bleed: no fixed cap, the gutter sets the margin (was 1280px) */
  --maxw-text: 38rem;
  --gutter: 24px;
  --hero-min: 320px;  /* hero, phones: never shorter than this. It holds no text there, so screen one is the image + the whole launch bar
                         down to 504px tall (23 Nov; was 520px, which pushed Register below the fold under 704px) */
  --bar-h: 184px;     /* announcement bar, phones: stacked headline + launch line + Register (Stacey, 13 Nov; was 40 → 80 → 128 → 164; headline +3px, equal gaps) */
  --header-h: 64px;
  --header-h-solid: 64px;   /* header height once scrolled: the launch bar docks under it */
  --logo-h: 43px;           /* header logo height: phones (36 → 43, +20%; Stacey, 13 Nov) */
  --logo-h-solid: 44px;
  --gallery-h: clamp(220px, 24vw, 500px);   /* amenities gallery image height */
  --gallery-gap: 80px;         /* extra space above the gallery so it clears the stones (desktop) */
  --film-play: clamp(64px, 6.25vw, 112px);   /* the teaser's play button (24 Nov 2026; the Register button on the film is gone) */
  --film-gap: 20px;                          /* the teaser fits the screen under the header + launch bar, less this */
  --film-after: var(--s-12);                 /* the teaser → River frontage, 834px+ (≈100px; client, 25 Nov 2026) */
  --film-start: 62.5%;       /* brand film opens from this width to full screen (1200 of 1920 in the design) */
  --icon-benefit: clamp(44px, 3.4vw, 64px);
  --vision-media-in: 50px;   /* intro water image moved in from the right gutter (Stacey, 9 Nov) */
  --vision-copy-w: calc(34rem + 8px);   /* intro text box, 8px wider for a better shape (Stacey, 12 Nov) */
  --res-lead-w: calc(62rem - 100px);  /* Residences intro copy, 100px narrower (Stacey, 13 Nov) */
  --amen-intro-w: calc(36rem - 20px);   /* "Life elevated." intro, 20px narrower (Stacey, 12 Nov) */
  --amen-copy-shift: 20px;      /* "Life elevated." + Amenities column, 20px left of the centre line so "generators" clears the stones (23 Nov) */
  --amen-list-max: calc(36.4vw - 91px);   /* amenities list width from 834px: ends ≈8px before the stones (measured 834 / 1024 / 1280 / 1440) */
  --amen-media-lift: 50px;      /* amenities (palm leaves) image sits 50px higher (Stacey: 100 on 9 Nov, then 50px down on 13 Nov) */
  --life-media-drop: 20px;      /* River frontage view image, 20px lower (Stacey, 13 Nov) */
  --stones-shift-x: 100px;      /* stones: 100px left, 100px down (Stacey, 9 Nov: half the first 200px; desktop) */
  --stones-shift-y: 100px;
  --res-gap: clamp(var(--s-6), 1rem + 5.5vw, 8rem);   /* intro → tabs (≈125 at 1920, Option 2 design) */
  --res-side: clamp(0px, 3vw, 54px);              /* card sits a touch in from the gutter (≈96px from the edge at 1920) */
  --res-pad: clamp(12px, 1.05vw, 20px);            /* card: hairline frame → image */
  --res-info: clamp(280px, 21vw, 420px);           /* card: details column */
  --res-btn: clamp(44px, 3.4vw, 64px);             /* round gallery arrows, on the image */
  --res-smoke: color-mix(in srgb, var(--c-urchin) 34%, transparent);   /* smoked glass behind the arrows + counter */
  --res-tab-drop: 20px;                            /* tab strip sits 20px lower than the original; the card stays put (Stacey, 10 Nov: 20, back up 10; 13 Nov: down 10) */
  --res-tab-under: 6px;                            /* room under the tab words for the line */
  --res-tab-line: 0px;                             /* line offset from the foot of the words: 0 = a true underline */
  --fs-res-tab: clamp(1.0625rem, 0.9rem + 0.6vw, 1.375rem);  /* 17 → 22: type tabs + map tabs (Stacey, 13 Nov: 26 → 24 → 22) */
  /* Residences card: never taller than the screen leaves room for, so the type tabs stay in view above it (Stacey, 13 Nov).
     Room = header + docked bar (--top-stack), the tab row, its gap, and a little air. */
  --res-tabs-room: calc(var(--fs-res-tab) * 1.6 + var(--s-6) + var(--s-3));
  --res-ov-max-h: max(32rem, 100svh - var(--top-stack) - var(--res-tabs-room));
  --res-tab-off: color-mix(in srgb, var(--c-urchin) 50%, transparent);     /* unselected type tabs: 50% Urchin (Stacey, 10 Nov; was gold) */
  --res-tab-hover: color-mix(in srgb, var(--c-urchin) 75%, transparent);
  --fs-res-price: clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem);   /* 24 → 36: Residences from-price */
  --t-res: 700ms;                                  /* type switch cross-fade */
  --res-card-bg: color-mix(in srgb, white 30%, transparent);   /* product card: 30% white (Stacey, 10 Nov) */
  --r-card: 5px;                                   /* product card corners (Stacey, 10 Nov) */
  --r-render: 3px;                                 /* render corners inside the card */
  /* Residences overlay layout (Stacey, 10 Nov; 1920 design: card 203 → 1718, ≈1515 × 800) */
  --res-ov-side: 0px;                                   /* card on the outer lines; its copy, arrows and Register on the inner lines */
  --res-ov-pad-x: calc(var(--line-2) - var(--line-1));
  --res-ov-ar: 1515 / 780;                          /* Figma card 1515 × 800, then 20px shorter (Stacey, 10 Nov) */
  --res-ov-ar-m: 2 / 3;                            /* phones: tall, so the copy sits in its own dark band */
  --res-ov-pad: clamp(20px, 1.95vw, 38px);
  --res-ov-copy-w: 52rem;                          /* card copy column (36.5 → 60 for the longer copy → 52, balanced lines; 13 Nov) */
  --res-ov-cta: clamp(15rem, 21vw, 25rem);          /* Register, bottom-right (≈400px at 1920) */
  /* shade layers + type, from Stacey's Figma (Residences, node 352:2461) */
  --res-sh-blur: 2px;
  --res-sh-blur-h: 39.75%;
  --res-sh-bottom-h: 34.6%;
  --res-sh-top-h: 33.25%;
  --res-sh-corner-h: 45.75%;
  --res-sh-clear: rgba(146, 160, 149, 0);          /* Figma's transparent stop (sage at 0) */
  --res-ov-arrow: clamp(48px, 1.6rem + 2vw, 65px);
  --res-ov-arrow-gap: clamp(12px, 0.95vw, 18px);
  --fs-res-ov-name: clamp(2.25rem, 1.3rem + 2vw, 3.75rem);     /* 36 → 60 */
  --fs-res-ov-price: clamp(1.5rem, 1.15rem + 0.75vw, 2rem);    /* 24 → 32 */
  --fs-res-ov-body: var(--fs-body);                /* "from": body size */
  --fs-res-ov-copy: var(--fs-nav);                 /* card copy: nav size, 15px at desktop (Stacey, 13 Nov; was body 17) */
  --lh-res-ov-copy: calc(1.75em - 2px);            /* its leading, 2px tighter (Stacey, 13 Nov) */
  --res-dot: clamp(14px, 0.6rem + 0.45vw, 19px);   /* gallery dots (≈19px at 1920, as Option 1) */
  --brk-w: 46vw;                                   /* breaker tile column: phones (swipe strip) */
  --brk-gap: 12px;
  --brk-unit: calc(46vw / 280);                    /* 1 design px at the tile width: column offsets scale with the tiles */
  --brk-top: var(--s-8);                           /* copy → wall */
  /* Estate view (06b): the River Villas render with the four types pinned (25 Nov 2026, as the brochure). cqw = % of the frame width */
  --et-top: 24.4;                                   /* % down the render where every pin line starts, under its label (25 Nov: 28.1, then lines longer so the labels sit ≈30px higher at 1440) */
  --et-gap: 0.9cqw;                                 /* label → line start */
  --et-ink: var(--c-urchin);                        /* labels, lines and dots: dark on the bright sky, as the brochure */
  --fs-et: clamp(0.875rem, 1.3cqw, 1.625rem);       /* ≈19px at 1440, 25px at 1920: Urbanist Medium, upright */
  --et-line: clamp(1px, 0.12cqw, 2px);
  --et-dot: clamp(7px, 0.556cqw, 11px);
  --et-num: 26px;                                   /* numbered pin, phones + tablets */
  --et-key-pad: var(--s-6);                         /* the key under the image (below 1100px): space above and below */
  --et-crop: 0.94;                                  /* 834px+: the frame shows up to 94% of the image's height (client, 25 Nov: taller; Stacey 13 Nov: 0.9, 0.82 was too much) */
  --et-frame-h: min(100cqw * 9 / 16 * var(--et-crop), 100svh);   /* up to the full screen (25 Nov; was the screen less the header, ≈79% of the image at 1920) */
  --et-rest: 0.6;                                   /* where the image settles in its frame: 0 = top-aligned … 1 = bottom-aligned. 0.6 keeps the car under the carport in view (client, 25 Nov; was 0) */
  /* Location (Stacey, 10 Nov 2026; 1920 artboard: map card 1815 × 950, 5px corners) */
  --loc-ar: 1815 / 850;                             /* map card, desktop: 100px shorter at 1920 so the tabs stay in view (Stacey, 10 Nov) */
  --loc-ar-m: 4 / 5;                                /* map card, phones (no longer used: phones show the whole map, 13 Nov) */
  --loc-logo-h-m: 26px;                             /* Olamia logo on the small upright-phone map */
  --loc-img-ar: 1.9243;                             /* the map image itself (5850 × 3040): pins are % of this */
  --loc-fx: 0.5;                                    /* which part of the map shows when the card crops it (0 left … 1 right) */
  --loc-tri-kw: 0.23;                               /* the pointer under the Olamia logo: width × the logo's height (latest brochure p.7, 23 Nov) */
  --loc-tri-kh: 0.145;                              /* …its height × the logo's height */
  --loc-logo-kgap: 0.1;                             /* logo to the top of the pointer × the logo's height */
  --loc-logo-x: 0.5;                                /* the pointer sits half way across the logo, as in the brochure (was 0.28 under the wordmark) */
  --loc-logo-h: clamp(40px, 4.15cqw, 80px);         /* Olamia logo on the map: the brochure's size, 4.15% of the map's width (latest p.7, 23 Nov; was 4cqw) */
  --loc-map-top: calc(var(--s-6) - 15px);           /* above the map card: 15px closer than s-6 (Stacey, 13 Nov; the tabs that sat above it were removed 26 Nov 2026) */
  --loc-head-y: 0.0553;                             /* heading 11.8% down the card, as a share of its width (0.118 × 850 / 1815) */
  --loc-num: clamp(18px, 1.5cqw, 28px);             /* numbered place circles, brochure p.7 (≈26px at 1920) */
  --loc-arrow-k: 0.36;                              /* edge arrow width, × the circle */
  --loc-arrow-gap: 3px;                             /* circle to arrow */
  --loc-edge-gap: clamp(4px, 0.45cqw, 8px);         /* arrow tip to the card's edge */
  --loc-hit: 6px;                                   /* invisible tap area round each number (upright phones: 9px round the dots) */
  --loc-name-gap: 8px;                              /* number to its hover name (23 Nov) */
  --loc-name-w: 16em;                               /* long names wrap to two lines */
  --loc-name-shadow: 0 4px 14px -4px color-mix(in srgb, var(--c-forest) 40%, transparent);
  --loc-pop-w: 24rem;                               /* the place pop-up, 834px+ (23 Nov) */
  --loc-pop-shadow: 0 18px 48px -12px color-mix(in srgb, var(--c-forest) 38%, transparent);
  --loc-sheet-shadow: 0 -12px 40px -12px color-mix(in srgb, var(--c-forest) 38%, transparent);   /* the phone sheet */
  --loc-near-gap: var(--s-8);                       /* "A complete neighbourhood" intro to the tabs (23 Nov) */
  --loc-aerial-ar: 2 / 1;
  --loc-aerial-logo: clamp(56px, 5.4vw, 104px);
  /* How to buy + Register (Stacey, 11 Nov 2026) */
  --top-stack: calc(var(--header-h-solid) + var(--bar-h));        /* header + launch bar: where pinned content starts (834+ subtracts the docked cut) */
  --buy-step-gap: calc(clamp(var(--s-5), 9vh, 7.5rem) - 40px);    /* between the 6 steps: room to scroll past the sticky device; 40px tighter (Stacey, 13 Nov: −20, then −20 again) */
  --buy-copy-top: clamp(var(--s-6), 14vh, 10rem);    /* title starts a little down the screen */
  --buy-copy-end: calc(22vh - 100px);               /* last step → form: 100px closer (Stacey, 13 Nov) */
  --buy-laptop-w: min(46vw, 890px);
  --fs-buy-num: clamp(3rem, 1.6rem + 3vw, 5.25rem);  /* step numbers, Nematho, gold (≈84px at 1920) */
  --fs-buy-step: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);   /* step titles, Urbanist italic (22px at 1920) */
  --buy-off: 0.35;                                   /* steps not in focus */
  --reg-inset: 0px;                                  /* form on the outer line (100px at 1920, as the design) */
  --reg-col-gap: clamp(var(--s-4), 5.9vw, 113px);
  --reg-code-w: clamp(120px, 8.9vw, 170px);
  --reg-btn-w: clamp(260px, 18.2vw, 350px);
  --fs-field: clamp(1rem, 0.9rem + 0.3vw, 1.25rem);  /* 20px at 1920 */
  --fs-check: clamp(0.75rem, 0.7rem + 0.12vw, 0.8125rem);
  /* Investment (Stacey, 9 Nov 2026; 1920 artboard: rows 116px, lines inset 200px, circle 50px) */
  --inv-top: calc(clamp(var(--s-8), 1rem + 4vw, 6rem) + clamp(80px, 13.4vw, 200px));   /* gallery → "Ownership, finance": +200px from 1500 wide, less on smaller screens (Stacey, 13 Nov: +300, then back up 100) */
  /* ── Alignment lines (Stacey, 12 Nov 2026): every piece of content lines up with one of these. ──
     Two lines in from each side plus the centre. At 1920: 100px and 200px; they scale with the screen (75 / 150 at 1440)
     and never sit inside the page gutter on smaller screens (24 / 48 on phones, 48 / 96 on tablets).
     Press G on localhost / staging (or add ?guides) to see them. */
  --line-1: var(--gutter);                                 /* outer line = the page margin: 24 phones · 48 tablet · 100 at 1920 */
  --line-2: max(calc(var(--gutter) * 2), 10.4167vw);       /* inner line: 200px at 1920 */
  --guide-c: rgba(255, 0, 150, 0.55); --guide-c-mid: rgba(0, 160, 255, 0.6);   /* overlay only, never in the design */
  --inv-inset: calc(var(--line-2) - var(--gutter));           /* accordions run from inner line to inner line */
  --inv-icon: clamp(48px, 2.6vw + 24px, 80px);                /* tax icon height */
  --inv-tax-gap: clamp(var(--s-3), 8vw, 9.5rem);              /* between the three tax items */
  --fs-acc: var(--fs-kicker);                                  /* 18 → 26: accordion titles = the Urbanist sub-head ("Ownership, finance"; Stacey, 12 Nov) */
  --fs-acc-sub: var(--fs-kicker);                              /* "Rental Potential": sits under the panel's H3, so no bigger than it */
  --fs-acc-display: calc(var(--fs-h3) * 1.15);                 /* "An island home with long term potential": H3 + 15% (Stacey, 12 Nov) */
  --ls-acc-display: 1px;                                       /* opened up a touch (Stacey, 12 Nov) */
  --acc-row: clamp(80px, 3rem + 3.55vw, 116px);
  --acc-btn: clamp(40px, 1.5rem + 1.35vw, 50px);
  --acc-btn-end: clamp(0px, 1.4vw, 27px);           /* accordion +/- icon in from the right end (0 on phones, 23 Nov) */
  --t-acc: 700ms;
  /* Footer (Stacey, 13 Nov) */
  --foot-fg: var(--c-on-urchin);   /* footer monogram + text: brand Sand (Stacey, 13 Nov; was paper / white) */
  --foot-img-ar: 2 / 1;                       /* render band (phones: 4 / 3) */
  --foot-tab: clamp(88px, 3.5rem + 3vw, 124px);   /* monogram tab: a circle rising half into the render */
  --foot-mono-h: calc(var(--foot-tab) * 0.75);
  --fs-foot-follow: clamp(1.375rem, 1rem + 1.2vw, 2.25rem);   /* 22 → 36: "Follow Olamia…" */
  --faq-top: clamp(var(--s-8), 1rem + 5vw, 7.5rem);           /* header → "Frequently asked" on the FAQs page */
  --faq-table-w: 48rem;
  --lp-hero-min: 560px;                                        /* landing hero: never shorter than this */
  --lp-hero-shade: color-mix(in srgb, var(--c-forest) 72%, transparent);       /* landing hero: shade under the copy */
  --lp-hero-shade-top: color-mix(in srgb, var(--c-forest) 35%, transparent);   /* and under the header */
  --post-measure: 44rem;                                       /* blog article: the reading column (≈70 characters) */
  --fs-post-title: clamp(2.25rem, 1.5rem + 2.6vw, 4.5rem);     /* blog article title, Nematho: 36 → 72 (long titles, so under H1) */
  --fs-cost-name: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);   /* cost names in the costs table: 17 → 20 */                                        /* payment-terms table */
  --t-stagger: 260ms;           /* gap between amenities lines fading in */
  --col-render-lift: clamp(60px, 12.15vw, 235px);   /* collection render lifted ≈175px at 1440 (Stacey, 7 Nov: half of the first 350px) */
  --col-render-rise: max(0px, 15.87vw - 6.125rem);   /* collection render, 834px+: how far it rises into the space under the intro copy (client, 25 Nov 2026: raised, then 300px back down at 1440 (20.83vw): "more to where it was") */
  --header-inset: 15px;     /* header sits this much further in than the page gutter (Stacey, 9 Nov) */
  --nav-gap: clamp(1rem, 0.2rem + 1.1vw, 1.5rem);     /* between header links */
  --nav-gap-l: clamp(1.25rem, 0.2rem + 1.6vw, 2rem);  /* between header actions */

  /* ── Shape ────────────────────────────────────────────────── */
  --r-xs: 2px;
  --r-s: 4px;
  --r-m: 12px;
  --r-l: clamp(16px, 1rem + 1vw, 32px);   /* hero bottom edge, panels */
  --r-pill: 999px;
  --r-arch: 50% 50% var(--r-s) var(--r-s) / 32% 32% var(--r-s) var(--r-s);   /* organic arch frame */

  /* ── Motion ───────────────────────────────────────────────── */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.45, 0, .2, 1);
  --t-fast: 160ms;
  --t-med: 360ms;
  --t-slow: 900ms;
  --t-reveal: 1100ms;
  --t-soft: 1800ms;        /* soft copy reveal (.reveal--soft) */
  --t-soft-step: 280ms;
  --t-status-step: 450ms;  /* status strip: gap between each fact appearing */    /* gap between soft paragraphs */
  --t-nav: 420ms;     /* header hide / show, with the launch bar in step */

  /* ── Elevation ────────────────────────────────────────────── */
  --shadow-s: 0 1px 2px color-mix(in srgb, var(--c-forest) 12%, transparent);
  --shadow-m: 0 12px 40px -12px color-mix(in srgb, var(--c-forest) 35%, transparent);
  --z-header: 50; --z-float: 40; --z-menu: 60; --z-loader: 100;

  /* ── Media ────────────────────────────────────────────────── */
  --tex-paper: image-set(url('../images/texture-paper-1600.avif') type('image/avif'), url('../images/texture-paper-1600.webp') type('image/webp'));
  /* Brand marks: Stacey's SVGs (brand-assets/), used as masks so CSS sets the colour */
  --tex-palm: image-set(url('../images/palm-shadow-1600.avif') type('image/avif'), url('../images/palm-shadow-1600.webp') type('image/webp'));
  --mask-motif: url('../images/brand/motif.svg');
  --mask-bullet: url('../images/brand/bullet.svg');   /* amenities list bullet (Stacey, 12 Nov) */
  --mask-logo: url('../images/brand/logo.svg');
  --mask-mono: url('../images/brand/monogram.svg');
}

@media (max-width: 833px) {
  :root {
    --inv-inset: 0px; --acc-btn-end: 0px;   /* Investment accordions on the outer lines, like the tax icons above (23 Nov; were inset to the inner lines) */
    --fs-d1: calc(var(--fs-h1) * 1.2);       /* phones: every display headline 20% bigger, one size (40 → 48; Stacey, 13 Nov) */
          --fs-kicker: calc(1.125rem + 2px);      /* and every italic lead-in above them 2px bigger (18 → 20; Stacey, 13 Nov) */
          --center-inset-m: 15px;                 /* centred body copy: 15px further in each side (Stacey, 13 Nov) */
          --fs-amen-title-m: calc(var(--fs-kicker) * 1.6);   /* "Amenities" on phones: 32px */
          --still-ar: 16 / 10; --still-btn: 52px;  /* phone gallery viewer: image shape, glass arrows */
          --res-card-grow-m: 25px;                /* Residences card on phones: 25px taller than 2:3 */
          --bar-docked-shadow: 0 4px 12px -2px color-mix(in srgb, var(--c-urchin) 28%, transparent);   /* docked launch strip: a slight shadow you can see on phones (18 Nov) */
          --lang-pad-x: calc(0.85rem - 3px); --lang-pad-y: calc(var(--cta-pad-y) - 3px);   /* EN | FR on phones: 3px less padding each side, */
          --lang-h: calc(var(--cta-h) - 6px); --fs-lang: calc(var(--fs-cta) - 1px); }      /* so 6px smaller (42 → 36), and 1px smaller text (15 → 14) (18 Nov: 2px less, then 1px more) */
}

@media (min-width: 834px) {
  :root { --gutter: max(48px, 5.2083vw); --header-h: 80px;   /* page margin = the outer alignment line (Stacey, 12 Nov): 100px at 1920 */
           --header-h-solid: 80px; --logo-h: 55px;   /* iPad: 48 → 55, +15% (Stacey, 13 Nov) */
           --bar-h: 148px; --bar-dock-cut: 118px;   /* bar: two lines + Register (13 Nov; was 48); docked one line, 30 */
           --hero-min: 520px; }   /* hero floor from 834px, as before */
}
@media (min-width: 1280px) {
  :root { --header-h: 96px; --header-h-solid: 64px; --logo-h: 85px; --bar-h: 184px; --bar-dock-cut: 138px; }   /* bar: two lines + Register (13 Nov); docked one line, 46 */   /* Stacey's desktop header: logo centred; 15% bigger over the hero (62 → 71 → 85: +20%, top level with the buttons; 13 Nov), back to --logo-h-solid once docked */
}
@media (min-width: 1440px) {
  :root {
    --tex-palm: image-set(url('../images/palm-shadow-2560.avif') type('image/avif'), url('../images/palm-shadow-2560.webp') type('image/webp'));
    --tex-paper: image-set(url('../images/texture-paper-2400.avif') type('image/avif'), url('../images/texture-paper-2400.webp') type('image/webp'));
  }
}
