/* Foundry Coming Soon — styles
   Tokens from STYLE-GUIDE §1. Animate only transform/opacity. No text-shadow/glow. */

/* Inter (variable, latin) is bundled so the page renders the same offline and from file:// */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-wght-italic.woff2") format("woff2");
}

:root {
  /* ── Primitives ── */
  --foundry-navy-900: #111e2f;
  --foundry-white: #ffffff;
  --foundry-paper-50: #fcfcfc;
  --foundry-sand-100: #f5f4f0;
  --foundry-blue-600: #3d638c;
  --foundry-sky-400: #53a5c3;
  --foundry-slate-500: #70839a;
  --foundry-slate-400: #7e92a9;
  --foundry-slate-300: #8895a6;
  --foundry-slate-200: #bdc8d5;
  --foundry-slate-600: #4d5e72;
  --foundry-pacdev-cyan: #45c7f1;
  --foundry-pacdev-lime: #a7e36b;
  --foundry-suggested-red-700: #b3261e;
  --foundry-suggested-red-300: #f28b82;
  --space-0: 0px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-120: 120px;
  --space-160: 160px;
  --space-200: 200px;
  --radius-none: 0px;
  --radius-full: 999px;

  /* ── Semantic colour · Light (default) ── */
  --color-bg-page: var(--foundry-paper-50);
  --color-bg-panel: var(--foundry-sand-100);
  --color-bg-nav: var(--foundry-white);
  --color-text-heading: var(--foundry-navy-900);
  --color-text-body: var(--foundry-navy-900);
  --color-text-eyebrow: var(--foundry-slate-400);
  --color-text-tagline: var(--foundry-blue-600);
  --color-text-stat: var(--foundry-sky-400);
  --color-text-label: var(--foundry-navy-900);
  --color-text-legal: var(--foundry-slate-400);
  --color-icon-amenity: var(--foundry-sky-400);
  --color-icon-default: var(--foundry-navy-900);
  --color-border-field: var(--foundry-slate-500);
  --color-border-button: var(--foundry-slate-400);
  --color-border-cta-hover: var(--foundry-slate-200);
  --color-border-active: var(--foundry-navy-900);
  --color-border-focus: var(--foundry-blue-600);
  --color-line-scroll-cue: var(--foundry-slate-200);
  --color-feedback-error: var(--foundry-suggested-red-700);
  --color-border-cta-ring: var(--foundry-blue-600);
  --color-icon-compliance: var(--foundry-slate-600);

  /* ── Proportional units (round 2 scaling) ──
     Desktop baseline: 1440 × 900 (hero fits the tighter side).
     Mobile baseline (<768): 393 × 852 viewport reference; compositions from 2224:436.
     --uw = width scale for all non-hero sections (no upper cap).
     --u  = hero scale (min of width & height) so the hero composition always fits. */
  --design-w: 1440;
  --design-h-hero: 900;
  --uw: calc(100vw / 1440);
  --u: min(100vw / 1440, 100svh / 900);
  /* Round 2b selective scaling: capped width unit (scales up to 1440 then stops). */
  --uw-cap: min(var(--uw), 1px);
  /* Round 4a: capped hero unit (hero geometry scales by --u; this stops at 1440×900) */
  --u-cap: min(var(--u), 1px);
  --s: var(--uw); /* local scale; each section opts in below */

  --viewport-design-width: 1440px;
  --container-hero-image: calc(1106 * var(--u));
  --wordmark-hero-width: calc(745 * var(--u));
  --cta-min-target: 44px; /* floor: tap target */

  /* Type: headlines scale freely; body/tagline/labels/CTA have readability floors */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tracking-tight: -0.02em;
  --tracking-eyebrow: 0.34em;
  --tracking-button: 0.21em;
  --tracking-nav: 0.14em;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Round 2c sequenced fades (read by js/main.js, unitless × viewport height):
     FADE_DISTANCE = scroll the backdrop scrub takes once the outgoing visual is under the nav;
     text offset   = where the incoming lead copy sits below the nav when the fade completes. */
  --seq-fade-vh: 0.45;
  --seq-text-vh: 0.2; /* round 2c only — superseded by the 2d pinned stage */
  /* Round 2d: empty solid-colour hold after each fade. 1 beat = 0.5 × viewport height. */
  --seq-hold-beats: 1.5;
  /* Round 2e: intro (hero→intro) scrubbed sequence, in beats (1 beat = 0.5 × viewport height) */
  --fill-beats: 2;             /* headline slate → white char fill */
  --rise-beats: 0.5;           /* each eyebrow / headline / paragraph rise */
  --headline-delay-beats: 0.3; /* 2f: gap after the eyebrow has landed, before the headline rises */
  --seq-end-hold-beats: 0.25;  /* 3d: statement / priority — hold after the paragraph lands, then unpin */
  --ls-content-hold-beats: 1; /* 3b.2: after the lifestyle headline lands, the whole first screen holds this long (replaces 3b's 0.25 end hold) */
  --ls-eyebrow-offset: 100;   /* 3b.1: lifestyle eyebrow sits this many design px (1440) above the intro eyebrow while pinned (desktop; mobile matches it) */
  --ls-eyebrow-min-gap: 16;   /* 3b.1: px clamp — the lifestyle eyebrow never sits closer than this under the nav */
  --intro-end-hold-beats: 0.25;/* hold after the paragraph, then unpin */
}

/* Dark-section colour tokens (restored in round 2c — lost in the round 2 scaling
   rewrite, which left statement/form copy navy-on-navy). */
[data-theme="dark"] {
  --color-bg-page: var(--foundry-navy-900);
  --color-bg-panel: var(--foundry-sand-100);
  --color-bg-nav: var(--foundry-white);
  --color-text-heading: var(--foundry-white);
  --color-text-body: var(--foundry-slate-300);
  --color-text-eyebrow: var(--foundry-slate-400);
  --color-text-tagline: var(--foundry-blue-600);
  --color-text-stat: var(--foundry-sky-400);
  --color-text-label: var(--foundry-white);
  --color-text-legal: var(--foundry-slate-400);
  --color-icon-amenity: var(--foundry-sky-400);
  --color-icon-default: var(--foundry-white);
  --color-border-field: var(--foundry-slate-500);
  --color-border-button: var(--foundry-slate-400);
  --color-border-cta-hover: var(--foundry-slate-200);
  --color-border-active: var(--foundry-white);
  --color-border-focus: var(--foundry-sky-400);
  --color-line-scroll-cue: var(--foundry-slate-200);
  --color-feedback-error: var(--foundry-suggested-red-300);
  --color-border-cta-ring: var(--foundry-blue-600);
  --color-icon-compliance: var(--foundry-slate-600);
}

@media (max-width: 767px) {
  :root {
    --design-w: 393;
    --design-h-hero: 852;
    --uw: calc(100vw / 393);
    --u: min(100vw / 393, 100svh / 852);
    --uw-cap: var(--uw); /* mobile stays fully proportional (cap is a no-op) */
    --u-cap: var(--u);

    --viewport-design-width: 393px;
    --container-hero-image: calc(664 * var(--u));
    --wordmark-hero-width: calc(339 * var(--u));
    --form-column-gap: 0px;
    --tracking-nav: 0.21em;
    /* Mobile type baselines from 393 frame */
  }
}


/* ── Round 2b: per-section scale opt-in ──
   Large visuals scale with the screen (--uw); text blocks stay normal size (--uw-cap).
   Flip a section by changing its one --s line. */
.hero,
.gallery,
.amenity__icon,
.statement__figure,
.shared-cta {
  --s: var(--uw);
}
.site-nav,
.intro,
.lifestyle,
.statement,
.priority,
.site-footer {
  --s: var(--uw-cap);
  /* re-resolve the inherited base size (body's is full-scale) so 1em/inherit text caps too */
  font-size: var(--font-size-body-l);
}

/* Scaled tokens are re-declared on every scope so var(--s) resolves locally. */
:root,
.section,
.site-nav,
.gallery,
.amenity__icon,
.statement__figure,
.shared-cta {
  --page-margin: calc(167 * var(--s));
  --page-margin-lifestyle: calc(152 * var(--s));
  --container-text-wide: calc(1118 * var(--s));
  --container-form: calc(681 * var(--s));
  --nav-height: calc(100 * var(--s));
  --nav-inset: calc(36 * var(--s));
  --wordmark-nav-width: calc(217 * var(--s));
  --gallery-height: calc(569 * var(--s));
  --gallery-gap: calc(17 * var(--s));
  --form-column-gap: calc(51 * var(--s));
  --form-row-gap: calc(53 * var(--s));
  --form-label-gap: calc(8 * var(--s));
  --form-textarea-height: calc(127 * var(--s));
  --button-width: calc(322 * var(--s));
  --button-height: max(44px, calc(66 * var(--s)));
  --stat-label-gap: calc(21 * var(--s));
  --amenity-icon-label-gap: calc(31 * var(--s));
  --footer-height: calc(503 * var(--s));
  --font-size-display-xl: calc(72 * var(--s));
  --font-size-display-l: calc(64 * var(--s));
  --font-size-heading: calc(48 * var(--s));
  --font-size-subheading: calc(32 * var(--s));
  --font-size-tagline: max(16px, calc(22 * var(--s)));
  --font-size-stat: calc(64 * var(--s));
  --font-size-body-l: max(16px, calc(20 * var(--s)));
  --font-size-nav: max(14px, calc(16 * var(--s)));
  --font-size-caps: max(14px, calc(14 * var(--s)));
  --font-size-label: max(14px, calc(14 * var(--s)));
  --font-size-legal: max(14px, calc(12 * var(--s))); /* floor 14 for legal readability */
  --font-size-counter: max(10px, calc(10 * var(--s)));
  --max-content: calc(1440 * var(--s)); /* text column: capped at 1440 on desktop */
}

@media (max-width: 767px) {
  :root,
  .section,
  .site-nav,
  .gallery,
  .amenity__icon,
  .statement__figure,
  .shared-cta {
    --page-margin: calc(27 * var(--s));
    --page-margin-lifestyle: calc(27 * var(--s));
    --container-text-wide: calc(339 * var(--s));
    --container-form: calc(315 * var(--s));
    --nav-height: calc(103 * var(--s));
    --nav-inset: calc(25 * var(--s));
    --wordmark-nav-width: calc(194 * var(--s));
    --gallery-height: calc(290 * var(--s));
    --gallery-gap: calc(9 * var(--s));
    --form-row-gap: calc(55 * var(--s));
    --footer-height: calc(424 * var(--s));
    --font-size-display-xl: calc(36 * var(--s));
    --font-size-display-l: calc(32 * var(--s));
    --font-size-heading: calc(32 * var(--s));
    --font-size-subheading: calc(32 * var(--s));
    --font-size-tagline: max(16px, calc(22 * var(--s)));
    --font-size-stat: calc(64 * var(--s));
    --font-size-body-l: max(16px, calc(20 * var(--s)));
    --font-size-nav: max(14px, calc(14 * var(--s)));
  }
}

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

html {
  scroll-behavior: smooth;
}

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

/* 3b.3: ScrollTrigger needs instant programmatic scrolls during refresh (see main.js) */
html.has-scrolltrigger {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-body-l);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-body);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

figure {
  margin: 0; /* UA default is 40px inline margin — caused the statement/gallery inset */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 3px;
}

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

/* ── Fixed backdrop (scroll-linked theme fades) ── */
.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--foundry-paper-50);
  pointer-events: none;
}

.page-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--foundry-navy-900);
  opacity: 0;
  transition: none;
}

/* ── Shared fixed wordmark + CTA (GSAP owns transform) ── */
.shared-wordmark {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: var(--wordmark-hero-width);
  height: auto;
  pointer-events: none;
  will-change: transform;
  transform-origin: 0 0; /* matches GSAP scrub (origin 0 0) */
  color: var(--foundry-navy-900);
}

.shared-wordmark__intro {
  width: 100%;
  height: auto;
  display: block;
}

.shared-wordmark .wordmark-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.shared-wordmark .letter {
  transform-box: fill-box;
}

.shared-wordmark .letter__fills {
  opacity: 1;
}

.shared-wordmark .letter--n .letter__fills {
  opacity: 0; /* intro fades fill in after stroke draw */
}

.shared-wordmark .letter__stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.shared-cta {
  position: fixed;
  z-index: 61;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--cta-min-target);
  min-height: var(--cta-min-target);
  font-weight: 700;
  font-size: var(--font-size-nav);
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  color: var(--foundry-navy-900);
  will-change: transform;
  transform-origin: center center;
  white-space: nowrap;
}

.shared-cta__desktop {
  display: inline;
}

.shared-cta__mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  line-height: max(14px, calc(16 * var(--s)));
  text-align: center;
}

.shared-cta__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-border-cta-ring);
  border-radius: var(--radius-full);
  opacity: 0;
  pointer-events: none;
}

.shared-cta:hover::before {
  content: "";
  position: absolute;
  width: max(44px, calc(231 * var(--s)));
  height: max(44px, calc(60 * var(--s)));
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--color-border-cta-hover);
  pointer-events: none;
}

@media (max-width: 767px) {
  .shared-cta__mobile {
    display: flex;
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
  }

  .shared-cta:hover::before {
    display: none;
  }

  /* Nav end-state: 66×66 ring + stacked label (driven by .is-nav / GSAP) */
  .shared-cta.is-nav {
    width: max(44px, calc(66 * var(--s)));
    height: max(44px, calc(66 * var(--s)));
  }

  .shared-cta.is-nav .shared-cta__ring {
    opacity: 1;
  }
}

/* Reduced motion / no-js / static: hide shared floating elements; show compact nav */
.no-js .shared-wordmark,
.no-js .shared-cta,
.reduce-motion .shared-wordmark,
.reduce-motion .shared-cta,
.static-bg .shared-wordmark,
.static-bg .shared-cta {
  display: none !important;
}

/* Pre-intro FOUC guard: hide hero pieces until GSAP intro owns them */
.js-intro .shared-wordmark,
.js-intro .shared-cta,
.js-intro .hero__tagline,
.js-intro .hero__figure {
  opacity: 0;
}

.js-intro .hero__figure-clip {
  --unfurl: 50%;
}

/* After intro (class removed) or when reduce-motion/no-js: show hero content */
.no-js .hero__tagline,
.no-js .hero__figure,
.reduce-motion .hero__tagline,
.reduce-motion .hero__figure,
.static-bg .hero__tagline,
.static-bg .hero__figure {
  opacity: 1;
}

.no-js .shared-wordmark .letter--n .letter__fills,
.reduce-motion .shared-wordmark .letter--n .letter__fills,
.static-bg .shared-wordmark .letter--n .letter__fills,
.intro-done .shared-wordmark .letter--n .letter__fills {
  opacity: 1;
}

.no-js .shared-wordmark .letter__strokes,
.reduce-motion .shared-wordmark .letter__strokes,
.static-bg .shared-wordmark .letter__strokes,
.intro-done .shared-wordmark .letter__strokes {
  display: none;
}

/* ── Nav ── */
/* §6.1 Compact nav: FIXED (not sticky — a sticky nav inside the 100px <header>
   had no room to stick and scrolled away with it). */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--nav-inset);
  background: transparent;
  pointer-events: none;
}

.site-nav.is-solid {
  background: var(--color-bg-nav);
  pointer-events: auto;
}

.site-nav__year,
.site-nav__cta-slot,
.site-nav__wordmark-slot {
  pointer-events: none;
}

.site-nav.is-solid .site-nav__cta-slot {
  pointer-events: auto;
}

/* 4f.2: wordmarks are back-to-top links. The shared (hero→nav) mark takes clicks over its
   own box; the nav slot only once the bar is solid (same as the CTA slot). No visual change. */
.shared-wordmark {
  pointer-events: auto;
}
.site-nav.is-solid .site-nav__wordmark-slot {
  pointer-events: auto;
}
.hero__wordmark-link,
.site-footer__logo a {
  display: block;
}

.site-nav__year {
  font-weight: 700;
  font-size: var(--font-size-nav);
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  color: var(--foundry-navy-900);
  opacity: 0;
  line-height: 1;
}

.site-nav__year-desktop {
  display: block;
}

.site-nav__year-mobile {
  display: none;
  flex-direction: column;
  line-height: 16px;
}

.site-nav__wordmark-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--wordmark-nav-width);
  opacity: 0;
}

.site-nav__wordmark-slot img {
  width: 100%;
  height: auto;
}

.site-nav__cta-slot {
  margin-left: auto;
  opacity: 0;
  font-weight: 700;
  font-size: var(--font-size-nav);
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  color: var(--foundry-navy-900);
  min-width: var(--cta-min-target);
  min-height: var(--cta-min-target);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-nav__cta-slot span.stack {
  display: none;
  flex-direction: column;
  align-items: center;
  line-height: 16px;
}

@media (max-width: 767px) {
  .site-nav__year-desktop {
    display: none;
  }
  .site-nav__year-mobile {
    display: flex;
  }
  .site-nav__cta-slot {
    width: max(44px, calc(66 * var(--s)));
    height: max(44px, calc(66 * var(--s)));
    position: relative;
  }
  .site-nav__cta-slot .flat {
    display: none;
  }
  .site-nav__cta-slot span.stack {
    display: flex;
  }
  .site-nav__cta-slot::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-border-cta-ring);
    border-radius: var(--radius-full);
    opacity: 0;
  }
  .site-nav__cta-slot:hover::after,
  .site-nav.is-solid .site-nav__cta-slot::after {
    opacity: 1;
  }
}

/* When reduced motion / no-js: show compact nav immediately */
.no-js .site-nav,
.reduce-motion .site-nav,
.static-bg .site-nav {
  background: var(--color-bg-nav);
  pointer-events: auto;
}

.no-js .site-nav__year,
.no-js .site-nav__wordmark-slot,
.no-js .site-nav__cta-slot,
.reduce-motion .site-nav__year,
.reduce-motion .site-nav__wordmark-slot,
.reduce-motion .site-nav__cta-slot,
.static-bg .site-nav__year,
.static-bg .site-nav__wordmark-slot,
.static-bg .site-nav__cta-slot {
  opacity: 1;
  pointer-events: auto;
}

/* ── Sections ── */
.section {
  position: relative;
  background: transparent;
}

/* Without the scroll-linked backdrop (no JS, reduced motion, GSAP failed to load)
   every section paints its own colour (§6.5 / §6.6). */
.no-js .section[data-theme="light"],
.reduce-motion .section[data-theme="light"],
.static-bg .section[data-theme="light"] {
  background-color: var(--foundry-paper-50);
}
.no-js .section[data-theme="dark"],
.reduce-motion .section[data-theme="dark"],
.static-bg .section[data-theme="dark"] {
  background-color: var(--foundry-navy-900);
}

.section__inner {
  width: min(100%, var(--max-content));
  margin-inline: auto;
  padding-inline: var(--page-margin);
}

/* ── Type helpers ── */
.eyebrow {
  margin: 0;
  font-weight: 700;
  font-size: var(--font-size-caps);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-eyebrow);
  line-height: 1;
}

.display-xl {
  margin: 0;
  font-weight: 300;
  font-size: var(--font-size-display-xl);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-heading);
  line-height: 1.15;
}

.display-l {
  margin: 0;
  font-weight: 300;
  font-size: var(--font-size-display-l);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-heading);
  line-height: 1.2;
}

.display-l-tight {
  margin: 0;
  font-weight: 300;
  font-size: var(--font-size-display-l);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-heading);
  line-height: 1;
}

.heading {
  margin: 0;
  font-weight: 300;
  font-size: var(--font-size-heading);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-heading);
  line-height: 1.2;
}

.subheading {
  margin: 0;
  font-weight: 400;
  font-size: var(--font-size-subheading);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-heading);
  line-height: 1.2;
}

.tagline {
  margin: 0;
  font-weight: 500;
  font-size: var(--font-size-tagline);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-tagline);
  line-height: 1.2;
  text-align: center;
}

.body-l {
  margin: 0;
  font-weight: 400;
  font-size: var(--font-size-body-l);
  line-height: max(28px, calc(36 * var(--s)));
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-body);
}

.body-l-relaxed {
  margin: 0;
  font-weight: 400;
  font-size: var(--font-size-body-l);
  line-height: 1.78;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-body);
}

.body-lifestyle {
  margin: 0;
  font-weight: 500;
  font-size: var(--font-size-body-l);
  line-height: max(28px, calc(42 * var(--s)));
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-body);
}

/* Reveal (JS adds .is-in) */
.reveal {
  opacity: 0;
  transform: translateY(calc(24 * var(--s)));
}

.reveal--photo {
  transform: translateY(calc(40 * var(--s)));
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal--photo.is-in {
  transition-duration: 1s;
}

.reduce-motion .reveal,
.no-js .reveal,
.static-bg .reveal {
  opacity: 1;
  transform: none;
}

.reduce-motion .reveal.is-in {
  transition: opacity 0.2s ease;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-height);
  padding-bottom: calc(59 * var(--u)); /* cue → navy boundary */
}


.hero__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: var(--page-margin);
  position: relative;
}

.hero__wordmark-slot {
  width: var(--wordmark-hero-width);
  max-width: 100%;
  margin-top: calc(246 * var(--u) - var(--nav-height)); /* wordmark top y246 */
  aspect-ratio: 745 / 158;
  /* invisible measurement target; shared wordmark overlays */
  visibility: hidden;
}

.hero__wordmark-static {
  display: none;
  width: 100%;
  height: auto;
}

/* no-js: show the static hero wordmark (shared floating mark is hidden) */
.no-js .hero__wordmark-slot {
  visibility: visible;
}
.no-js .hero__wordmark-static {
  display: block;
}


.hero__cta-slot {
  /* measurement only — actual CTA is .shared-cta; matches Figma hero CTA centre */
  position: absolute;
  left: 50%;
  top: calc(81 * var(--u));
  transform: translate(-50%, -50%);
  width: calc(194 * var(--u));
  height: calc(16 * var(--u));
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero__cta-slot {
    top: calc(99 * var(--u));
    width: calc(194 * var(--u));
    height: calc(16 * var(--u));
  }
}

.hero__tagline {
  margin-top: calc(51 * var(--u));
  max-width: 28em;
}

@media (max-width: 767px) {
  .hero__tagline {
    line-height: max(24px, calc(32 * var(--s)));
    max-width: calc(295 * var(--u));
  }
}

.hero__figure {
  margin: calc(96 * var(--u)) auto 0;
  width: var(--container-hero-image);
  max-width: calc(100% - (var(--page-margin) * 2));
  overflow: hidden;
}

.hero__figure-clip {
  width: 100%;
  height: 100%;
  display: block;
  /* --unfurl: % inset from top AND bottom (50 = thin band, 0 = full). GSAP tweens the number. */
  --unfurl: 0%;
  clip-path: inset(var(--unfurl) 0 var(--unfurl) 0);
  will-change: clip-path;
}

.hero__figure picture,
.hero__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1106 / 614;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
}

@media (max-width: 767px) {
  /* 664×367 image at x−39 inside the 393 frame → crop box 393×367 */
  .hero__figure {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    aspect-ratio: 393 / 367;
  }
  .hero__figure picture,
  .hero__figure img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 14.4% 50%;
  }
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: calc(54 * var(--u)) auto 0;
  width: calc(15 * var(--s));
  color: var(--color-line-scroll-cue);
}

.scroll-cue img {
  width: calc(15 * var(--s));
  height: auto;
  opacity: 0.85;
}

/* Mobile hero geometry (2224:436): wordmark y205, tagline y312, image y426, cue y846 */
@media (max-width: 767px) {
  .hero__wordmark-slot {
    margin-top: calc(205 * var(--u) - var(--nav-height));
  }
  .hero__tagline {
    margin-top: calc(36 * var(--u));
  }
  .hero__figure {
    margin-top: calc(50 * var(--u));
  }
  .hero .scroll-cue {
    margin-top: calc(53 * var(--u));
  }
}

/* ── Intro & Gallery ── */
.intro {
  padding-top: calc(198 * var(--s));
  padding-bottom: calc(131 * var(--s));
  color: var(--color-text-heading);
}

@media (max-width: 767px) {
  .intro {
    padding-top: calc(198 * var(--s));
    padding-bottom: calc(172 * var(--s));
  }
  .intro .gallery {
    margin-top: calc(78 * var(--s));
    /* 4f.2: minus the short-screen copy shift's dead pad (js measureIntro; 0 when the copy fits) */
    margin-top: calc(78 * var(--s) - var(--intro-overflow, 0px));
  }
}

.intro .eyebrow,
.intro .display-l,
.intro .body-l {
  max-width: var(--container-text-wide);
}

.intro .eyebrow {
  margin-bottom: calc(30 * var(--s));
}

.intro .display-l {
  margin-bottom: calc(30 * var(--s));
  color: var(--foundry-white);
}

.intro .body-l {
  max-width: calc(948 * var(--s));
  color: var(--foundry-slate-300);
}

.gallery {
  margin-top: calc(77 * var(--s));
  position: relative;
}

.gallery__viewport {
  overflow: hidden;
  width: 100%;
}

.gallery__track {
  display: flex;
  gap: var(--gallery-gap);
  height: var(--gallery-height);
  width: max-content;
  will-change: transform;
}

.gallery__card {
  flex: 0 0 auto;
  height: var(--gallery-height);
  overflow: hidden;
}

.gallery__card img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
}

/* Round 4f.2 (desktop ≥768): the track starts at the intro copy's left edge (Figma 2218:139:
   "Gallery Conveyor" x 167 = "INTRODUCING FOUNDRY" x 167) and ends with the same inset.
   Mirrors .section__inner: centred min(100%, 1440 × --uw-cap) column + 167 × --uw-cap margin,
   so it tracks the capped text column above 1440. % = the gallery viewport's width. */
@media (min-width: 768px) {
  .gallery__track {
    padding-inline: calc((100% - min(100%, 1440 * var(--uw-cap))) / 2 + 167 * var(--uw-cap));
    box-sizing: content-box;
  }
  .gallery--native .gallery__viewport {
    scroll-padding-inline: calc((100% - min(100%, 1440 * var(--uw-cap))) / 2 + 167 * var(--uw-cap));
  }
}

/* Desktop card widths from design ratios at 569 tall */
.gallery__card--01 { width: calc(876 * var(--s)); }
.gallery__card--02 { width: calc(1424 * var(--s)); }
.gallery__card--03 { width: calc(1011 * var(--s)); }
.gallery__card--04 { width: calc(881 * var(--s)); }

@media (max-width: 767px) {
  .gallery__card--01 { width: calc(446 * var(--s)); }
  .gallery__card--02 { width: calc(726 * var(--s)); }
  .gallery__card--03 { width: calc(515 * var(--s)); }
  .gallery__card--04 { width: calc(449 * var(--s)); }

  .gallery__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-right: var(--page-margin);
    scrollbar-width: thin;
  }

  .gallery__track {
    transform: none !important;
  }

  .gallery__card {
    scroll-snap-align: start;
  }
}

.reduce-motion .gallery:not(.gallery--slide) .gallery__viewport,
.no-js .gallery__viewport,
.static-bg .gallery:not(.gallery--slide) .gallery__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-right: var(--page-margin);
}

.reduce-motion .gallery:not(.gallery--slide) .gallery__track,
.no-js .gallery__track,
.static-bg .gallery:not(.gallery--slide) .gallery__track {
  transform: none !important;
}

/* ── Lifestyle & Amenities (LIGHT) ──
   Composition from Figma 2246:80 / 2218:139 / 2224:436.
   Uses sitewide --uw (width scale, no cap). */
.lifestyle {
  overflow-x: clip;
  color: var(--color-text-body);
}

.ls {
  position: relative;
  isolation: isolate;
  width: calc(1440 * var(--s));
  max-width: 100%;
  margin-inline: auto;
  padding-top: calc(220 * var(--s));
  padding-bottom: calc(142 * var(--s));
}

.ls__a {
  position: relative;
}

.ls__head {
  position: relative; /* round 3b: top stats are positioned against this (same origin as .ls__a) */
}

.ls__header {
  margin-left: calc(152 * var(--s));
  width: calc(620 * var(--s));
}

.ls__header .eyebrow {
  padding-bottom: calc(21 * var(--s));
}

.ls__headline {
  line-height: normal;
}

/* Stat Item 2238:19 — value + label on one centre axis, 21 gap */
.ls__stats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stat {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--stat-label-gap);
  transform: translateX(-50%);
  white-space: nowrap;
  line-height: 1;
}

.stat.reveal {
  transform: translate(-50%, calc(24 * var(--s)));
}

.stat.reveal.is-in,
.no-js .stat.reveal,
.reduce-motion .stat.reveal,
.static-bg .stat.reveal {
  transform: translateX(-50%);
}

.stat__value {
  font-weight: 200;
  font-size: var(--font-size-stat);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-stat);
  line-height: 1;
}

.stat__label {
  font-weight: 700;
  font-size: var(--font-size-caps);
  letter-spacing: var(--tracking-eyebrow);
  margin-right: calc(var(--tracking-eyebrow) * -1); /* optical centring of tracked caps */
  text-transform: uppercase;
  color: var(--color-text-label);
  line-height: 1;
}

/* desktop positions (centre x, top) relative to .ls__a / .ls__b */
.ls__stats--top .stat--units   { left: calc(1123 * var(--s)); top: calc(67 * var(--s)); }
.ls__stats--top .stat--stories { left: calc(1123 * var(--s)); top: calc(195 * var(--s)); }
.ls__stats--side .stat--parking { left: calc(284.5 * var(--s)); top: calc(132 * var(--s)); }
.ls__stats--side .stat--acres   { left: calc(284.5 * var(--s)); top: max(calc(269 * var(--s)), calc(132 * var(--s) + 116px)); }
/* (max(): stat items are fixed-size text, so keep ≥17px between them when the composition scales down) */

.ls__stats--grid {
  display: none;
}

.ls__collage {
  position: relative;
}

.ls__collage--a {
  margin-top: calc(66 * var(--s));
  height: calc(547 * var(--s));
}

.ls__collage--c {
  height: calc(514 * var(--s));
}

.ls__photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
}

.ls__photo picture,
.ls__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* stacking (Figma layer order): panel < pool < sunset ; cheers < yoga */
.ls__photo--pool   { left: calc(152 * var(--s)); top: 0;                   width: calc(842 * var(--s)); height: calc(547 * var(--s)); z-index: 1; }
.ls__photo--sunset { left: calc(796 * var(--s)); top: calc(120 * var(--s)); width: calc(492 * var(--s)); height: calc(323 * var(--s)); z-index: 2; }
.ls__photo--cheers { left: calc(498 * var(--s)); top: 0;                   width: calc(790 * var(--s)); height: calc(514 * var(--s)); z-index: 1; }
.ls__photo--yoga   { left: calc(152 * var(--s)); top: calc(95 * var(--s));  width: calc(499 * var(--s)); height: calc(324 * var(--s)); z-index: 2; }

/* Band B: stats 373 / 2.4 + body copy on the sand panel */
.ls__b {
  position: relative;
  min-height: calc(473 * var(--s));
  padding: calc(145 * var(--s)) 0 calc(118 * var(--s)) calc(602 * var(--s));
}

.ls__b::before {
  /* Warm panel 1021×944 at x422 — bleeds 214 up under the pool/sunset and 257 down under the cheers photo */
  content: "";
  position: absolute;
  z-index: -1;
  left: calc(422 * var(--s));
  /* round 3b: full bleed to the browser's right edge at every width (.ls is centred) */
  right: calc((100% - 100vw) / 2);
  top: calc(-214 * var(--s));
  bottom: calc(-257 * var(--s));
  background: var(--color-bg-panel);
  /* round 3b: JS sweeps --panel-x 0 → 1 (fallbacks keep the default: full panel) */
  transform: scaleX(var(--panel-x, 1));
  transform-origin: left center;
}

.ls__body {
  width: calc(593 * var(--s));
  max-width: none;
  color: var(--color-text-body);
}

/* Amenities — Amenity Item 2238:22: hugs label, 48px icon centred over label, 31 gap */
.amenities__lead {
  margin: calc(244 * var(--s)) auto 0;
  max-width: calc(913 * var(--s));
  text-align: center;
  line-height: normal;
}

.amenities__row {
  list-style: none;
  margin: calc(90 * var(--s)) 0 0 calc(213 * var(--s));
  padding: 0;
  width: calc(1029 * var(--s));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.amenity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--amenity-icon-label-gap);
  flex: 0 0 auto;
}

.amenity__icon {
  width: calc(48 * var(--s));
  height: calc(48 * var(--s));
  display: block;
}

.amenity__label {
  display: block;
  font-weight: 700;
  font-size: var(--font-size-caps);
  line-height: 1;
  letter-spacing: var(--tracking-eyebrow);
  margin-right: calc(var(--tracking-eyebrow) * -1); /* trailing tracking would push the label off the icon axis */
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-text-label);
}

.ls__cue {
  margin-top: calc(123 * var(--s));
}

/* Desktop (≥768): amenity centres on drawn axes (276 / 549 / 825 / 1133).
   Mid-layout: label floors (14px) can crowd the row below ~1152px — see BUILD-STATUS. */
@media (min-width: 768px) {
  .amenities__row {
    position: relative;
    display: block;
    margin-left: 0;
    width: 100%;
    height: calc(48 * var(--uw) + var(--amenity-icon-label-gap) + 1em);
  }
  .amenity {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
  }
  .amenity.reveal {
    transform: translate(-50%, calc(24 * var(--s)));
  }
  .amenity.reveal.is-in,
  .no-js .amenity.reveal,
  .reduce-motion .amenity.reveal,
  .static-bg .amenity.reveal {
    transform: translateX(-50%);
  }
  .amenity:nth-child(1) { left: calc(276 * var(--s)); }
  .amenity:nth-child(2) { left: calc(549 * var(--s)); }
  .amenity:nth-child(3) { left: calc(825 * var(--s)); }
  .amenity:nth-child(4) { left: calc(1133 * var(--s)); }
}

/* Mid layout (768–1151): 14px label floors crowd the 4-across row (14px gap at 1100; ≥24px from 1152). Round 2b: bumped from 1099.
   2×2 grid keeps proportional icon size and readable labels. Reported in BUILD-STATUS. */
@media (min-width: 768px) and (max-width: 1151px) {
  .amenities__row {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: start;
    width: min(100% - 2 * var(--page-margin), calc(640 * var(--s)));
    height: auto;
    margin: calc(90 * var(--s)) auto 0;
    row-gap: calc(64 * var(--s));
  }
  .amenity {
    position: static;
    transform: none;
  }
  .amenity.reveal {
    transform: translateY(calc(24 * var(--s)));
  }
  .amenity.reveal.is-in,
  .no-js .amenity.reveal,
  .reduce-motion .amenity.reveal,
  .static-bg .amenity.reveal {
    transform: none;
  }
}

/* Mobile composition (2224:436), one design px = --u (393 frame, capped at 480px wide) */
@media (max-width: 767px) {
  .ls {
    width: calc(393 * var(--s));
    padding-top: calc(154 * var(--s));
    padding-bottom: calc(147 * var(--s));
  }
  .ls__header {
    margin-left: calc(27 * var(--s));
    width: calc(339 * var(--s));
  }
  .ls__stats--top,
  .ls__stats--side {
    display: none;
  }
  .ls__collage--a {
    margin-top: calc(59 * var(--s));
    height: calc(367 * var(--s));
  }
  .ls__photo--pool   { left: calc(24 * var(--s)); top: 0; width: calc(369 * var(--s)); height: calc(243 * var(--s)); }
  .ls__photo--sunset { left: 0; top: calc(206 * var(--s)); width: calc(245 * var(--s)); height: calc(161 * var(--s)); }
  .ls__stats--grid {
    display: block;
    position: relative;
    margin-top: calc(78 * var(--s));
    height: calc(295 * var(--s));
  }
  .ls__stats--grid .stat--units   { left: calc(91 * var(--s));  top: 0; }
  .ls__stats--grid .stat--parking { left: calc(267.5 * var(--s)); top: 0; }
  .ls__stats--grid .stat--stories { left: calc(91 * var(--s));  top: calc(137 * var(--s)); }
  .ls__stats--grid .stat--acres   { left: calc(267.5 * var(--s)); top: calc(137 * var(--s)); }

  /* Full-width sand panel 393×671: starts at the band, runs 120 under the cheers photo */
  .ls__b {
    min-height: 0;
    padding: calc(98 * var(--s)) calc(34 * var(--s)) calc(75 * var(--s)) calc(27 * var(--s));
  }
  .ls__b::before {
    left: 0;
    width: auto;
    right: calc((100% - 100vw) / 2);
    top: 0;
    bottom: calc(-120 * var(--s));
  }
  .ls__body {
    width: auto;
    max-width: none;
  }
  .ls__collage--c {
    height: calc(341 * var(--s));
  }
  .ls__photo--cheers { left: 0; top: 0; width: calc(369 * var(--s)); height: calc(240 * var(--s)); }
  .ls__photo--yoga   { left: calc(162 * var(--s)); top: calc(191 * var(--s)); width: calc(231 * var(--s)); height: calc(150 * var(--s)); }

  .amenities__lead {
    margin: calc(117 * var(--s)) 0 0 calc(27 * var(--s));
    width: calc(339 * var(--s));
    text-align: left;
  }
  .amenities__row {
    margin: calc(59 * var(--s)) auto 0;
    width: auto;
    flex-direction: column;
    align-items: center;
    gap: calc(67 * var(--s));
  }
  .ls__cue {
    margin-top: calc(75 * var(--s));
  }
}

/* ── Statement (NAVY) — image is full-bleed: full browser width, no inset ── */
.statement {
  padding-top: calc(169 * var(--s));
  padding-bottom: 0;
  text-align: center;
}

.statement .display-l-tight {
  max-width: calc(895 * var(--s));
  margin: calc(62 * var(--s)) auto 0;
  color: var(--color-text-heading);
}

.statement .body-l-relaxed {
  max-width: calc(850 * var(--s));
  margin: calc(53 * var(--s)) auto 0;
  color: var(--color-text-body);
}

.statement__figure {
  margin: calc(126 * var(--s)) 0 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: calc(612 * var(--s));
  overflow: hidden;
}

.statement__figure picture,
.statement__figure img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}

@media (max-width: 767px) {
  .statement {
    padding-top: calc(124 * var(--s));
  }
  .statement .display-l-tight {
    margin-top: calc(40 * var(--s));
    padding-inline: calc(13 * var(--s));
  }
  .statement .body-l-relaxed {
    margin-top: calc(23 * var(--s));
    padding-inline: calc(35 * var(--s));
  }
  .statement__figure {
    margin-top: calc(52 * var(--s));
    height: auto;
    min-height: 0;
    aspect-ratio: 393 / 383;
  }
  .statement__figure img {
    object-position: 6% 50%;
  }
}

/* ── Form (NAVY) ── */
.priority {
  padding-top: calc(196 * var(--s));
  padding-bottom: calc(117 * var(--s));
  scroll-margin-top: var(--nav-height);
}

.priority__header {
  text-align: center;
  width: calc(736 * var(--s));
  max-width: calc(100% - 2 * var(--page-margin));
  margin: 0 auto calc(92 * var(--s));
}

.priority__header .heading {
  margin-top: calc(38 * var(--s));
  line-height: normal;
}

.priority__header .body-l-relaxed {
  margin-top: calc(47 * var(--s));
  color: var(--color-text-body);
  line-height: max(28px, calc(36 * var(--s)));
}

@media (max-width: 767px) {
  .priority {
    padding-top: calc(102 * var(--s));
    padding-bottom: calc(92 * var(--s));
  }
  .priority__header {
    width: calc(301 * var(--s));
    max-width: calc(100% - 2 * var(--page-margin));
    margin-bottom: calc(62 * var(--s));
  }
  .priority__header .heading {
    margin-top: calc(40 * var(--s));
  }
  .priority__header .body-l-relaxed {
    margin-top: calc(52 * var(--s));
  }
}

.form {
  width: min(100% - (var(--page-margin) * 2), var(--container-form));
  margin-inline: auto;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--form-column-gap);
  row-gap: var(--form-row-gap);
}

/* Form Field 2241:63 — label rests ON the line: label (17) → 8 → 1px underline.
   Focus / filled: label floats up and shrinks; it stays a real <label for>. */
.form__field {
  position: relative;
  min-width: 0;
}

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

.form__label {
  display: block;
  font-size: var(--font-size-label);
  font-weight: 400;
  line-height: max(17px, calc(17 * var(--s)));
  color: var(--color-text-label);
}

.form__field--line .form__label {
  position: absolute;
  left: 0;
  top: 0;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: 0 100%;
  pointer-events: none;
  transition: transform 0.2s var(--ease-out), opacity 0.2s ease, color 0.2s ease;
}

.form__field--line.is-filled .form__label,
.form__field--line:focus-within .form__label,
.form__field--line:has(.form__input:not(:placeholder-shown)) .form__label {
  transform: translateY(calc(-21 * var(--s))) scale(0.857);
  opacity: 0.85;
  color: var(--foundry-slate-300);
}

.form__input,
.form__select {
  display: block;
  width: 100%;
  height: max(26px, calc(26 * var(--s))); /* label + 8 + underline; ≥16px text */
  margin: 0;
  padding: 0 0 max(8px, calc(8 * var(--s)));
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-field);
  border-radius: 0;
  font-size: max(16px, calc(16 * var(--s))); /* iOS zoom floor */
  line-height: 1.2;
  color: var(--color-text-heading);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease;
}

.form__input::placeholder {
  color: transparent;
}

.form__select {
  padding-right: max(28px, calc(28 * var(--s)));
  cursor: pointer;
  color: transparent; /* nothing but the label shows until a value is picked */
}

.form__field.is-filled .form__select {
  color: var(--color-text-heading);
}

.form__select option {
  color: var(--foundry-navy-900);
  background: var(--foundry-white);
}

.form__select-wrap {
  position: relative;
}

.form__select-wrap::after {
  /* chevron-down 16×16, white, right-aligned on the label row (Figma 2223:423) */
  content: "";
  position: absolute;
  right: 0;
  top: 1px;
  width: max(16px, calc(16 * var(--s)));
  height: max(16px, calc(16 * var(--s)));
  background: url("../assets/svg/chevron_down.svg") center / contain no-repeat;
  pointer-events: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--color-border-focus);
}

.form__input:focus-visible,
.form__select:focus-visible {
  outline: none;
  border-bottom-color: var(--color-border-focus);
  box-shadow: 0 1px 0 0 var(--color-border-focus);
}

.form__textarea {
  display: block;
  width: 100%;
  margin-top: max(8px, calc(8 * var(--s)));
  border: 1px solid var(--color-border-field);
  border-radius: 0;
  background: transparent;
  min-height: var(--form-textarea-height);
  padding: max(12px, calc(12 * var(--s)));
  font-size: max(16px, calc(16 * var(--s)));
  color: var(--color-text-heading);
  resize: vertical;
}

.form__field.is-error .form__input,
.form__field.is-error .form__select,
.form__field.is-error .form__textarea {
  border-color: var(--color-feedback-error);
}

.form__error {
  margin: calc(6 * var(--s)) 0 0;
  font-size: var(--font-size-legal);
  line-height: max(20px, calc(20 * var(--s)));
  color: var(--color-feedback-error);
}

.form__textarea-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-16);
}

.form__counter {
  font-size: var(--font-size-counter);
  line-height: 12px;
  color: var(--color-text-legal);
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__consent {
  margin: calc(37 * var(--s)) 0 0;
  text-align: center;
  font-style: italic;
  font-size: var(--font-size-legal);
  line-height: max(20px, calc(20 * var(--s)));
  color: var(--color-text-legal);
  letter-spacing: var(--tracking-tight);
}

.form__consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.form__consent a:hover,
.form__consent a:focus-visible {
  text-decoration-thickness: 2px;
}

.form__actions {
  margin-top: calc(23 * var(--s));
  display: flex;
  justify-content: center;
}

.form__submit {
  width: min(100%, var(--button-width));
  height: var(--button-height);
  border: 1px solid var(--color-border-button);
  color: var(--foundry-white);
  font-weight: 700;
  font-size: var(--font-size-caps);
  letter-spacing: var(--tracking-button);
  text-transform: uppercase;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.form__submit:hover:not(:disabled) {
  border-color: var(--foundry-white);
}

.form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form__message {
  margin-top: var(--space-24);
  text-align: center;
  font-size: var(--font-size-body-l);
  line-height: 1.5;
  color: var(--foundry-white);
}

.form__message[hidden] {
  display: none;
}

.form__message.is-error {
  color: var(--color-feedback-error);
}

.form__interested-desktop {
  display: block;
}

@media (max-width: 767px) {
  .form__grid {
    grid-template-columns: 1fr;
  }
  .form__interested-desktop {
    display: none;
  }
  .form__consent {
    margin-top: calc(40 * var(--s));
  }
  .form__actions {
    margin-top: calc(63 * var(--s));
  }
}

/* ── Footer ── */
.site-footer {
  padding: calc(121 * var(--s)) var(--page-margin) calc(80 * var(--s));
  text-align: center;
  min-height: var(--footer-height);
}

.site-footer__logo {
  width: calc(219 * var(--s));
  max-width: 60%;
  margin-inline: auto;
}

.site-footer__logo img {
  width: 100%;
  height: auto;
}

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: calc(25 * var(--s));
  margin-top: calc(143 * var(--s));
  list-style: none;
  padding: 0;
}

.site-footer__social a {
  display: inline-flex;
  width: max(44px, calc(44 * var(--s)));
  height: max(44px, calc(44 * var(--s)));
  align-items: center;
  justify-content: center;
}

.site-footer__social img {
  width: calc(32 * var(--s));
  height: calc(32 * var(--s));
}

.site-footer__compliance {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(13 * var(--s));
  margin-top: calc(85 * var(--s));
  list-style: none;
  padding: 0;
}

.site-footer__compliance img {
  height: calc(22 * var(--s));
  width: auto;
  opacity: 0.9;
}

.site-footer__copy {
  margin-top: calc(57 * var(--s));
  font-weight: 500;
  font-size: var(--font-size-legal);
  letter-spacing: 0;
  color: var(--color-text-legal);
}

.noscript-note {
  margin: var(--space-24) auto;
  max-width: 40em;
  padding: var(--space-16);
  text-align: center;
  color: var(--foundry-slate-300);
  font-size: var(--font-size-legal);
}

/* Prevent horizontal overflow */
html,
body {
  max-width: 100%;
}

/* ── Round 2c: sequenced fade scroll space (JS/GSAP path only) ──
   --seq-space is computed live by main.js (computeSequenceSpace). Fallbacks never set it. */
.has-seq-space {
  margin-top: var(--seq-space, 0px);
}
.static-bg .has-seq-space,
.reduce-motion .has-seq-space {
  margin-top: 0;
}
.seq-mark {
  display: block;
  height: 0;
  pointer-events: none;
}
/* Non-.reveal visuals held until their section's fade completes (class added by JS only) */
.seq-hold {
  opacity: 0;
}
.seq-hold.is-in {
  opacity: 1;
  transition: opacity 0.8s var(--ease-out);
}
.static-bg .seq-hold,
.reduce-motion .seq-hold {
  opacity: 1;
}

/* Round 2d: empty pinned stage for fade + hold (created by JS only; height set live) */
.seq-stage {
  display: block;
  width: 100%;
  pointer-events: none;
}

/* Round 2e: hero→intro uses a shorter empty hold (per-transition override, read by JS) */
#intro {
  --seq-hold-beats: 0.75;
}
/* Round 4f (Option A, phones only): shorter fade + holds. Same clear → fade → hold →
   content order; desktop (≥768) keeps 0.45 fade / 1.5-beat holds / 0.75-beat intro hold.
   Placed after the #intro rule above so the mobile intro override wins. */
@media (max-width: 767px) {
  :root {
    --seq-fade-vh: 0.3;
    --seq-hold-beats: 0.75;
  }
  #intro {
    --seq-hold-beats: 0.4;
  }
}
/* Headline char split (JS/GSAP path only): words never break; chars are plain inline */
.intro .display-l .word {
  white-space: nowrap;
}

/* ── Round 3a: manual gallery ──
   .gallery--slide  (JS, desktop fine pointer ≥768): overflow hidden, GSAP slides the track,
                    custom cursor; click left/right half = prev/next.
   otherwise        native horizontal scroll + scroll-snap (touch, mobile, no-GSAP, no-JS). */
.gallery--slide .gallery__viewport {
  overflow: hidden;
  scroll-snap-type: none;
  padding-right: 0;
  cursor: none;
}
.gallery--native .gallery__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery--native .gallery__viewport::-webkit-scrollbar {
  display: none;
}
.gallery--native .gallery__track {
  transform: none !important;
}
.gallery--native .gallery__card {
  scroll-snap-align: start;
}
.gallery__viewport:focus-visible {
  outline: 2px solid var(--color-border-focus, #4fb3d9);
  outline-offset: 4px;
}

/* Prev/next: visually hidden, shown as small rings only while keyboard-focused */
.gallery__btn {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  background: none;
  color: inherit;
}
.gallery__btn--prev { left: var(--page-margin); }
.gallery__btn--next { right: var(--page-margin); }
.gallery__btn:focus-visible {
  width: max(44px, calc(64 * var(--s)));
  height: max(44px, calc(64 * var(--s)));
  margin: 0;
  clip: auto;
  overflow: visible;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.38);
  outline: 2px solid var(--color-border-focus, #4fb3d9);
  outline-offset: 3px;
  z-index: 5;
}
.gallery__btn:focus-visible::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(12 * var(--s));
  height: calc(12 * var(--s));
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
  transform: translate(-65%, -50%) rotate(45deg);
}
.gallery__btn--prev:focus-visible::after {
  transform: translate(-35%, -50%) rotate(-135deg);
}

/* Custom cursor (modelled on madronesantarosa.com home-section-5).
   Lives inside .gallery so it scales with the gallery's local --s (full scale). */
.gallery-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: calc(64 * var(--s));
  height: calc(64 * var(--s));
  margin: calc(-32 * var(--s)) 0 0 calc(-32 * var(--s));
  pointer-events: none;
  display: none;
  will-change: transform;
}
.gallery--cursor .gallery-cursor {
  display: block;
}
.gallery-cursor__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.gallery-cursor.is-active .gallery-cursor__ring {
  opacity: 1;
  transform: scale(1);
}
.gallery-cursor__chev {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(12 * var(--s));
  height: calc(12 * var(--s));
  margin: calc(-6 * var(--s)) 0 0 calc(-6 * var(--s));
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
  /* right: points →, nudged left so the arrow reads centred */
  transform: translateX(calc(-2 * var(--s))) rotate(45deg);
  transition: transform 0.1s ease-out;
}
.gallery-cursor.is-left .gallery-cursor__chev {
  transform: translateX(calc(2 * var(--s))) rotate(-135deg);
}

/* ── Round 3b: lifestyle motion (GSAP path only; fallbacks show the final state) ── */
.ls__line {
  display: block;
}
.stat__value.is-counting {
  display: inline-block;
  text-align: center; /* fixed width set by JS from the final number: no layout shift */
}

/* Round 3b.1: keep the intro copy's (short-screen, 2e) eyebrow shift inside the block, so the
   layout after the intro never moves. No-op otherwise (first/last child margins are 0). */
.intro .section__inner {
  display: flow-root;
}

/* ── Round 3c: perpetual amenity icon motion (inline SVG) ──
   Quiet ambient loops. Declared only under html.icons-anim (added by JS when motion is
   allowed), so no-JS and reduced motion show the static icons. Loops run only while
   the row is on screen (.amenities__row.is-live, IntersectionObserver).
   Cycles: pool 4s linear · fire 2.5s · fitness 3.5s (mostly rest) · sun 5s.
   Start offsets (negative delays) keep the four out of sync. */
.amenity__icon--fitness {
  overflow: visible; /* the dumbbell rocks a few degrees past the 48 box corners */
}
.amenity__icon path,
.amenity__icon g {
  transform-box: view-box;
}

/* Pool: static drawing = the original 3 paths (exact for reduced motion / no-JS);
   the extended, masked copy is shown only while the loop is enabled */
.ai-pool-live { display: none; }
.icons-anim .ai-pool-live { display: inline; }
.icons-anim .ai-pool-static { display: none; }

/* Pool: each wave is the same curve extended past the box (x −16 → 84). A dash exactly
   2 periods long (43.929 = the original 4 → 44 line, round caps) is shown (negative
   offset = dash starts that far along the path); the curve
   slides left one period (20) while the dash offset follows its arc length, so the
   window stays put on x 4 → 44 and the water drifts through it. Seamless: frame 100%
   is frame 0 shifted by one period. Offsets precomputed at 2.5% steps (tools: round 3c). */
.icons-anim .ai-wave {
  stroke-dasharray: 43.929 200;
  animation: ai-wave 4s linear infinite;
}
.icons-anim .ai-wave--1 { animation-delay: -0.3s; }
.icons-anim .ai-wave--2 { animation-delay: -1.63s; }
.icons-anim .ai-wave--3 { animation-delay: -2.97s; }
@keyframes ai-wave {
  0% { transform: translateX(-0px); stroke-dashoffset: -21.965; }
  2.5% { transform: translateX(-0.5px); stroke-dashoffset: -22.593; }
  5% { transform: translateX(-1px); stroke-dashoffset: -23.198; }
  7.5% { transform: translateX(-1.5px); stroke-dashoffset: -23.781; }
  10% { transform: translateX(-2px); stroke-dashoffset: -24.345; }
  12.5% { transform: translateX(-2.5px); stroke-dashoffset: -24.891; }
  15% { transform: translateX(-3px); stroke-dashoffset: -25.423; }
  17.5% { transform: translateX(-3.5px); stroke-dashoffset: -25.942; }
  20% { transform: translateX(-4px); stroke-dashoffset: -26.452; }
  22.5% { transform: translateX(-4.5px); stroke-dashoffset: -26.956; }
  25% { transform: translateX(-5px); stroke-dashoffset: -27.456; }
  27.5% { transform: translateX(-5.5px); stroke-dashoffset: -27.956; }
  30% { transform: translateX(-6px); stroke-dashoffset: -28.460; }
  32.5% { transform: translateX(-6.5px); stroke-dashoffset: -28.970; }
  35% { transform: translateX(-7px); stroke-dashoffset: -29.489; }
  37.5% { transform: translateX(-7.5px); stroke-dashoffset: -30.021; }
  40% { transform: translateX(-8px); stroke-dashoffset: -30.567; }
  42.5% { transform: translateX(-8.5px); stroke-dashoffset: -31.131; }
  45% { transform: translateX(-9px); stroke-dashoffset: -31.714; }
  47.5% { transform: translateX(-9.5px); stroke-dashoffset: -32.319; }
  50% { transform: translateX(-10px); stroke-dashoffset: -32.947; }
  52.5% { transform: translateX(-10.5px); stroke-dashoffset: -33.576; }
  55% { transform: translateX(-11px); stroke-dashoffset: -34.180; }
  57.5% { transform: translateX(-11.5px); stroke-dashoffset: -34.763; }
  60% { transform: translateX(-12px); stroke-dashoffset: -35.327; }
  62.5% { transform: translateX(-12.5px); stroke-dashoffset: -35.873; }
  65% { transform: translateX(-13px); stroke-dashoffset: -36.405; }
  67.5% { transform: translateX(-13.5px); stroke-dashoffset: -36.924; }
  70% { transform: translateX(-14px); stroke-dashoffset: -37.434; }
  72.5% { transform: translateX(-14.5px); stroke-dashoffset: -37.938; }
  75% { transform: translateX(-15px); stroke-dashoffset: -38.438; }
  77.5% { transform: translateX(-15.5px); stroke-dashoffset: -38.939; }
  80% { transform: translateX(-16px); stroke-dashoffset: -39.442; }
  82.5% { transform: translateX(-16.5px); stroke-dashoffset: -39.952; }
  85% { transform: translateX(-17px); stroke-dashoffset: -40.472; }
  87.5% { transform: translateX(-17.5px); stroke-dashoffset: -41.003; }
  90% { transform: translateX(-18px); stroke-dashoffset: -41.550; }
  92.5% { transform: translateX(-18.5px); stroke-dashoffset: -42.113; }
  95% { transform: translateX(-19px); stroke-dashoffset: -42.696; }
  97.5% { transform: translateX(-19.5px); stroke-dashoffset: -43.301; }
  100% { transform: translateX(-20px); stroke-dashoffset: -43.929; }
}

/* Fire: irregular flicker from the base centre (24, 44), a few percent */
.icons-anim .ai-flame {
  transform-origin: 24px 44px;
  animation: ai-flame 2.5s ease-in-out infinite;
  animation-delay: -0.9s;
}
@keyframes ai-flame {
  0%   { transform: scaleY(1) skewX(0deg); }
  13%  { transform: scaleY(1.035) skewX(-1.2deg); }
  27%  { transform: scaleY(0.985) skewX(0.6deg); }
  41%  { transform: scaleY(1.02) skewX(1.4deg); }
  52%  { transform: scaleY(1.045) skewX(-0.4deg); }
  66%  { transform: scaleY(0.99) skewX(-1.5deg); }
  81%  { transform: scaleY(1.025) skewX(0.8deg); }
  100% { transform: scaleY(1) skewX(0deg); }
}

/* Fitness: a slow curl around the centre, then a long rest */
.icons-anim .ai-dumbbell {
  transform-origin: 24px 24px;
  animation: ai-curl 3.5s infinite;
  animation-delay: -2.1s;
}
@keyframes ai-curl {
  0%   { transform: rotate(0deg); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  18%  { transform: rotate(-6deg); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  38%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* Sun: core still; each ray (drawn inner → outer, pathLength 1) eases back toward its
   inner end and grows out again, rippling clockwise round the circle. No rotation. */
.icons-anim .ai-ray {
  stroke-dasharray: 1 2;
  animation: ai-ray 5s infinite;
}
@keyframes ai-ray {
  0%   { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); }
  10%  { stroke-dashoffset: 0.55; animation-timing-function: cubic-bezier(0.33, 0, 0.2, 1); }
  26%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
.icons-anim .ai-ray--1 { animation-delay: -3.4s; }
.icons-anim .ai-ray--2 { animation-delay: calc(-3.4s + 0.3s); }
.icons-anim .ai-ray--3 { animation-delay: calc(-3.4s + 0.6s); }
.icons-anim .ai-ray--4 { animation-delay: calc(-3.4s + 0.9s); }
.icons-anim .ai-ray--5 { animation-delay: calc(-3.4s + 1.2s); }
.icons-anim .ai-ray--6 { animation-delay: calc(-3.4s + 1.5s); }
.icons-anim .ai-ray--7 { animation-delay: calc(-3.4s + 1.8s); }
.icons-anim .ai-ray--8 { animation-delay: calc(-3.4s + 2.1s); }

/* off-screen: hold the current frame (after the shorthands above so it wins) */
.icons-anim .amenities__row:not(.is-live) :is(.ai-wave, .ai-flame, .ai-dumbbell, .ai-ray) {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .amenity__icon * { animation: none !important; }
}
.reduce-motion .amenity__icon * { animation: none !important; }

/* Round 3d: statement / priority headlines split into their rendered lines (JS/GSAP only) */
.seq-line {
  display: block;
}

/* ── Round 4a: hero CTA + tagline capped at their 1440 design size ──
   Above 1440 (or 900 tall) they stop growing; at/below 1440 nothing changes (the caps are
   no-ops), floors unchanged (16px tagline, 44px tap target). The wordmark, image and the
   rest of the hero keep full --u scaling. Phones: --uw-cap/--u-cap = --uw/--u (no-op).
   CTA: its whole scale scope is capped (type, hover box), so it also no longer has to shrink
   into the (already capped) nav — ctaScaleToNav() resolves to 1. */
.shared-cta {
  --s: var(--uw-cap);
}
@media (min-width: 768px) {
  .hero__tagline {
    font-size: max(16px, calc(22 * var(--uw-cap)));
    /* Spacing: the subhead stays tied to the headline — the gap above it grows at half
       the hero rate past 1440 — and the space that frees up (plus the shorter line) goes
       below it, so the image, scroll cue and hero height stay exactly where they were. */
    margin-top: calc(51 * (var(--u) + var(--u-cap)) / 2);
  }
  .hero__figure {
    margin-top: calc(96 * var(--u) + 25.5 * (var(--u) - var(--u-cap)) + 26.4 * (var(--uw) - var(--uw-cap)));
  }
}

/* ── Round 4b: hero image scroll growth (JS: setupHeroGrow) ──
   --hero-grow-frame: frame scale at the end of the range (1.12 = +12%)
   --hero-grow-inner: photo scale inside the frame at the top (settles to 1)
   --hero-grow-end:   range end as a fraction of the scroll where the cue clears the nav
                      (the hero→intro fade start). Phones: gentler. Reduced motion, no-JS and
                      GSAP-missing never get .hero-grow → the original static hero. */
:root {
  --hero-grow-frame: 1.12;
  --hero-grow-inner: 1.08;
  --hero-grow-end: 0.5;
}
@media (max-width: 767px) {
  :root {
    --hero-grow-frame: 1.05;
    --hero-grow-inner: 1.04;
  }
}
.hero-grow .hero__figure {
  --hg-frame: 1;
  --hg-inner: var(--hero-grow-inner);
  scale: var(--hg-frame);
  transform-origin: 50% 50%;
  position: relative;
  z-index: 1;
}
.hero-grow .hero__figure picture {
  display: block;
  scale: var(--hg-inner);
  transform-origin: 50% 50%;
}
/* phones: the full-bleed frame grows past the screen edges — clip that sideways
   (overflow-x: clip creates no scroll container, so pins/sticky are unaffected) */
.hero-grow .hero {
  overflow-x: clip;
}

/* ── Round 4c: hero scroll-cue arrows ──
   Idle at the top: a slow bob (CSS `translate`, ~2s ease-in-out loop). Scrolling: the loop
   pauses in place (html.cue-moving) and GSAP drifts the arrows down by --cue-drift × their
   height while fading them out over the 4b range; back at the top they return and the loop
   resumes. Reduced motion: no bob, no drift — JS only fades them. */
:root {
  --cue-bob: 6px;
  --cue-drift: 0.5;
  --cue-fade-end: 0.5; /* 4c.1: arrows gone midway from fully-in-view to the hero→intro fade */
}
@media (max-width: 767px) {
  :root {
    --cue-bob: 5px;
  }
}
@keyframes cue-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 var(--cue-bob);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-grow .hero .scroll-cue img {
    animation: cue-bob 2s ease-in-out infinite;
  }
  .hero-grow.cue-moving .hero .scroll-cue img {
    animation-play-state: paused;
  }
}

/* ── Round 4d: mobile hero top = Figma 2224:436 as one uniformly scaled comp ──
   Figma (393 frame, status bar excluded): CTA text y91 (h16), wordmark y205 (339×71.9),
   tagline y312 (295 wide, Inter Medium 22/32, −2%, 2 lines), image y426 (367 tall).
   The hero geometry already scales by --u = min(100vw/393, 100svh/852), but the tagline's
   type scaled by width only, so on real phones (Safari's visible height < 852 → --u < 1)
   it was too big for its box and wrapped to 3 lines, pushing the image down.
   Now the tagline scales with the same --u, capped at the 393 design size (22/32), with a
   proportional measure (295/22 em) so it always holds the comp's 2 lines. Spacing stays
   proportional to the comp: tagline top 312u, image top 426u. Desktop untouched. */
@media (max-width: 767px) {
  :root {
    --u-cap-m: min(var(--u), 1px);
  }
  .hero__tagline {
    font-size: max(16px, calc(22 * var(--u-cap-m)));
    line-height: calc(32 / 22 * 1em);
    max-width: calc(295 / 22 * 1em);
    /* 312 − (205 + 339 × 158/745) = 35.1 → tagline top lands on y312u */
    margin-top: calc(35.1 * var(--u));
  }
  .hero__figure {
    /* comp gap 50u, plus whatever the capped tagline (2 × 32 × min(u,1)) leaves of its
       64u box on phones wider than the comp → image top stays at y426u */
    margin-top: calc(50 * var(--u) + 64 * (var(--u) - var(--u-cap-m)));
  }
}

/* ── Round 4d addendum: CTA stroke box at rest, nav aligned to the button, mobile circle ──
   Figma (re-pulled Nov 20, file gm7nNDpsfUTPGRzG5YJ2cG):
   desktop hero 2218:139  CTA box 231×60 at y51 (stroke #BDC8D5), label 16/Bold/2.24px
   desktop nav  2222:289  year left 36 · wordmark 217×46 centred · CTA box right edge 1423
   mobile hero  2224:436  CTA box 231×60 at y52 (label 16/2.24px, top 74)
   mobile nav   2227:580  103 tall · '20/27' 14/16 Bold 2.94px at x25 y39 · wordmark 194×41
                          centred at y54.5 · circle 61×61 at x317 y24 · Join 16% (2.24px) / LIST 2.94px */

/* 1. Stroke box at rest (desktop + mobile hero); darker stroke on hover/focus */
.shared-cta__box {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(44px, calc(231 * var(--s)));
  height: max(44px, calc(60 * var(--s)));
  transform: translate(-50%, -50%);
  border: 1px solid var(--color-border-cta-hover);
  pointer-events: none;
  transition: border-color 0.2s ease;
}
.shared-cta:hover::before {
  display: none; /* replaced by the always-on box */
}
.shared-cta:hover .shared-cta__box,
.shared-cta:focus-visible .shared-cta__box {
  border-color: var(--color-border-cta-ring);
}

/* 2. Desktop: the compact nav row is centred on the button's line (centre y81 → box top
   51, as in the hero comp), so the button never moves vertically during the morph.
   Bar = 51 + 60 + 20 (the nav comp's padding under the button) = 131. */
@media (min-width: 768px) {
  :root,
  .section,
  .site-nav,
  .gallery,
  .amenity__icon,
  .statement__figure,
  .shared-cta {
    --nav-height: calc(131 * var(--s));
  }
  .site-nav {
    padding-top: calc(31 * var(--s)); /* content box 31…131 → row centre y81 */
  }
  .site-nav__wordmark-slot {
    top: calc(81 * var(--s));
  }
  .hero__cta-slot {
    top: calc(81 * var(--s)); /* nav scope: --uw-cap → same line as the nav row */
  }
  .site-nav__cta-slot {
    position: relative;
    width: calc(231 * var(--s));
    height: calc(60 * var(--s));
    margin-right: calc(-19 * var(--s)); /* box right edge at 1423 (label right 1404) */
  }
  .site-nav__cta-slot::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-border-cta-hover);
    transition: border-color 0.2s ease;
  }
  .site-nav__cta-slot:hover::after,
  .site-nav__cta-slot:focus-visible::after {
    border-color: var(--color-border-cta-ring);
  }
}

/* Mobile hero CTA (comp: box top 52 → centre 82; label 16px / 0.14em) */
@media (max-width: 767px) {
  .hero__cta-slot {
    top: calc(82 * var(--u));
  }
  .shared-cta__desktop {
    font-size: max(14px, calc(16 * var(--s)));
    letter-spacing: 0.14em;
  }
  .shared-cta.is-nav .shared-cta__box {
    opacity: 0;
  }

  /* 3. Compact mobile nav: row centre y54.5 (wordmark/circle), circle 61, x317 */
  .site-nav {
    padding-top: calc(6 * var(--s)); /* content box 6…103 → centre 54.5 */
  }
  .site-nav__wordmark-slot {
    top: calc(54.5 * var(--s));
  }
  .site-nav__cta-slot {
    width: max(44px, calc(61 * var(--s)));
    height: max(44px, calc(61 * var(--s)));
    margin-right: calc(-10 * var(--s)); /* circle right edge 378 */
  }
  .shared-cta.is-nav {
    width: max(44px, calc(61 * var(--s)));
    height: max(44px, calc(61 * var(--s)));
  }
  /* JOIN / LIST force-justified to one width: per-word tracking; the trailing
     tracking after the last letter is cancelled so each word centres optically */
  .shared-cta__mobile,
  .site-nav__cta-slot span.stack {
    font-size: max(14px, calc(14 * var(--s)));
    line-height: max(16px, calc(16 * var(--s)));
  }
  .shared-cta__mobile > span:first-child,
  .site-nav__cta-slot span.stack > span:first-child {
    letter-spacing: 0.16em; /* Join 16% (Kern/2227:580) */
    margin-right: -0.16em;
  }
  .shared-cta__mobile > span:last-child,
  .site-nav__cta-slot span.stack > span:last-child {
    letter-spacing: calc(2.94 / 14 * 1em);
    margin-right: calc(-2.94 / 14 * 1em);
  }
  .site-nav__year-mobile > span {
    margin-right: calc(-2.94 / 14 * 1em);
  }
}

/* ── Round 4e: the compact-nav circle's ring is part of the slot itself ──
   It used to need .site-nav.is-solid, which a tween callback toggled and refreshes could
   drop mid-page, so the ring vanished in some frames. The slot's own opacity (hidden in the
   hero, shown in the compact nav) is now the only switch. */
@media (max-width: 767px) {
  .site-nav__cta-slot::after {
    opacity: 1;
  }
}

/* ── Round 4f.1: hero CTA label centred in its stroke box ──
   1. The hidden JOIN/LIST stack sat in the button's flex row on desktop once JS gave it
      display:flex (opacity 0), so the label was pushed ~half its width left of the box
      (−22…−25px) — and jumped there from centre when the morph set up, then jumped back
      at the swap to the (centred) compact-nav slot. The stack is now an overlay on every
      size, never in the row (phones already did this).
   2. The trailing 0.14em tracking after the last letter is cancelled so the glyphs, not
      the advance box, are centred.
   3. Desktop below 1440 the label stops shrinking at its 14px floor while the box kept
      shrinking with --s (1024: 164px box, 170px label). The box (and the compact-nav slot
      that it lands on) never gets smaller than the 231×60 : 16px proportion of the label.
      At ≥1440 / where the floor isn't hit this is exactly 231×60. */
.shared-cta__mobile {
  position: absolute;
  inset: 0;
  justify-content: center;
  pointer-events: none;
}
.shared-cta__desktop,
.site-nav__cta-slot .flat {
  margin-right: -0.14em;
}
@media (min-width: 768px) {
  .shared-cta__box,
  .site-nav__cta-slot {
    width: max(44px, calc(231 * var(--s)), calc(231 / 16 * 1em));
    height: max(44px, calc(60 * var(--s)), calc(60 / 16 * 1em));
  }
}

/* ── 4g: form result states ───────────────────────────────────────────── */
:root {
  --foundry-coral-400: #d28180; /* Figma 2307:1139 stroke / 2307:1146 text */
}

/* Error (Figma 2307:1115): coral outline on Confirm + coral line 23px under it */
.form__submit.is-error,
.form__submit.is-error:hover:not(:disabled) {
  border-color: var(--foundry-coral-400);
}
.form__submit-error {
  margin: calc(23 * var(--s)) 0 0;
  text-align: center;
  font-weight: 400;
  font-size: max(12px, calc(12 * var(--s)));
  line-height: normal;
  letter-spacing: var(--tracking-tight); /* -0.24px @ 12 */
  color: var(--foundry-coral-400);
}
.form__submit-error[hidden] {
  display: none;
}

/* Thank-you (Figma 2307:1112): icon 80 → 35 → headline 42/56 Light → 23 → body 17/36.
   The stage keeps the form's height (set in JS) and centres the message in it. */
.priority__stage.is-thanked {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.priority__thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: calc(665 * var(--s));
  max-width: calc(100% - 2 * var(--page-margin));
  margin-inline: auto;
  outline: none;
}
/* 4g.1: header fades out with the form; keeps its box so the layout doesn't move.
   The message is nudged up (JS sets top) to centre over header + form. */
.priority.is-thanked .priority__header {
  visibility: hidden;
  opacity: 0;
}
.priority__thanks {
  position: relative;
}
.priority__thanks[hidden] {
  display: none;
}
.priority__thanks-icon {
  display: block;
  width: calc(80 * var(--s));
  height: calc(80 * var(--s));
  flex: none;
}
.priority__thanks-heading {
  margin: calc(35 * var(--s)) 0 0;
  font-weight: 300;
  font-size: calc(42 * var(--s));
  line-height: calc(56 * var(--s));
  letter-spacing: 0;
  color: var(--foundry-white);
}
.priority__thanks-body {
  margin: calc(23 * var(--s)) 0 0;
  font-weight: 400;
  font-size: max(16px, calc(17 * var(--s)));
  line-height: max(28px, calc(36 * var(--s)));
  letter-spacing: var(--tracking-tight); /* -0.34px @ 17 */
  color: var(--foundry-slate-300);
}
@media (max-width: 767px) {
  .priority__thanks {
    width: calc(315 * var(--s));
  }
  .priority__thanks-heading {
    font-size: calc(32 * var(--s)); /* mobile heading token */
    line-height: calc(40 * var(--s));
  }
  .priority__thanks-body {
    margin-top: calc(20 * var(--s));
    font-size: max(16px, calc(17 * var(--s)));
    line-height: max(28px, calc(28 * var(--s)));
  }
}


/* ── 4g.3: privacy page + footer Privacy Policy link ── */
.site-footer__copy a {
  color: inherit;
  text-decoration: none;
}
.site-footer__copy a:hover,
.site-footer__copy a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .site-footer__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(15 * var(--s));
  }
  .site-footer__sep {
    display: none;
  }
}

/* Static document page: reuse intro spacing/type tokens, compact nav via .static-bg */
.privacy {
  --s: var(--uw-cap);
  padding-top: calc(198 * var(--s));
  padding-bottom: calc(131 * var(--s));
  color: var(--color-text-heading);
  background-color: var(--foundry-paper-50);
}

.privacy__inner {
  width: min(100%, var(--max-content));
  margin-inline: auto;
  padding-inline: var(--page-margin);
}

.privacy__inner .display-l {
  margin-bottom: calc(16 * var(--s));
}

.privacy__effective {
  margin: 0 0 calc(30 * var(--s));
  font-weight: 400;
  font-size: var(--font-size-body-l);
  line-height: max(28px, calc(36 * var(--s)));
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-tagline); /* foundry-blue-600 #3d638c, as in Figma 2316:445/446 */
}

.privacy__body {
  max-width: calc(948 * var(--s));
}

.privacy__body h2 {
  margin: calc(42 * var(--s)) 0 calc(16 * var(--s));
  font-weight: 700;
  font-size: var(--font-size-subheading);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-heading);
  line-height: 1.2;
}

.privacy__body h2:first-child {
  margin-top: 0;
}

.privacy__body p,
.privacy__body li {
  margin: 0;
  font-weight: 400;
  font-size: var(--font-size-body-l);
  line-height: max(28px, calc(36 * var(--s)));
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-body);
}

.privacy__body p + p,
.privacy__body ul + p,
.privacy__body p + ul {
  margin-top: calc(16 * var(--s));
}

.privacy__body h2 + p,
.privacy__body h2 + ul {
  margin-top: 0;
}

.privacy__body ul {
  margin: calc(16 * var(--s)) 0 0;
  padding-left: 1.25em;
}

.privacy__body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.privacy__body a:hover,
.privacy__body a:focus-visible {
  text-decoration-thickness: 2px;
}

.privacy__contact-name {
  font-weight: 700;
}
