/* ============================================================================
   DESIGN PLAN — ALMARÉ, clifftop sea resort (fictional demo)
   Palette (sampled from footage, frames 0001/0060/0120/0180/0241):
     --ink   #211a13  near-black, warm (interior shadow / earth) — never #000
     --bone  #ece5d8  warm limestone highlight — never #fff
     --sand  #cdb99c  travertine in light (mid)
     --stone #94795a  travertine in shade (deep mid)
     --sea   #6f8b92  calm, desaturated Mediterranean
     accent  --amber #bd7a32  golden-hour sun on stone — appears in <=5 places
   Type: display "Fraunces" (variable, opsz — its soft bracketed serifs echo
         travertine and the classical-modern architecture; warm, timeless) /
         body "Archivo" (variable grotesque, tall x-height — a quiet modern
         counterpoint). Both self-hosted woff2, latin subset, font-display swap.
   Scale: 13 / 16 / 19 / 28 / clamp(3rem, 7vw, 6.75rem)
   Layout: asymmetric, content max 1240px, hero overlays anchored left/right
           with generous margin, section padding >= 8rem.
   Signature: a thin "descent to sea level" instrument pinned to the hero edge —
           a vertical hairline scale + a figure counting 64 m -> 0 (sea level)
           as you scroll the clifftop approach. Driven by onProgress.
   Decorative device (ONE): hairline rule system + numbered eyebrows that carry
           the journey order (00–03). Card hover: image scale 1.04 + rule draw-in.
   Light & warm, dark-on-light; one dark "threshold" statement for contrast.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 350 640;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 640;
  font-display: swap;
  font-style: normal;
}

:root {
  --ink:   #211a13;
  --bone:  #ece5d8;
  --sand:  #cdb99c;
  --stone: #94795a;
  --sea:   #6f8b92;
  --amber: #bd7a32;

  --bone-2: #e2d9c8;        /* slightly deeper bone for section alternation */
  --rule: rgba(33, 26, 19, 0.16);
  --rule-soft: rgba(33, 26, 19, 0.09);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 12vh, 9rem);

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

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Lenis smooth scroll (local copy in lib/) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 460;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }

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

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0;
}

/* ---- signature intro (logo lands into the nav) ----------------------------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bone);
  /* self-healing: if JS never takes over, the splash still clears on its own */
  animation: introFail 1s var(--ease) 2.8s forwards;
}
.intro__brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3rem, 12vw, 8rem);
  letter-spacing: 0.2em;
  text-indent: 0.2em;              /* matches .brand so the landing is seamless */
  color: var(--ink);
  will-change: transform;
}
.intro.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s var(--ease);
  animation: none;                 /* JS is driving — cancel the fallback */
}
@keyframes introFail { to { opacity: 0; visibility: hidden; } }
html:not(.js) .intro { display: none; }

/* the rest of the bar fades in once the wordmark has taken its seat
   (auto-completes on a timer, so it never depends on JS finishing) */
html.intro-on .site-header__loc,
html.intro-on .nav { animation: navReveal .7s var(--ease) 1.75s both; }
@keyframes navReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  html.intro-on .site-header__loc,
  html.intro-on .nav { animation: none; }
}

/* ---- header / nav ---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;  /* loc · centered wordmark · links */
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.7rem, 3.4vw, 2.8rem) var(--pad) clamp(1rem, 2.4vw, 1.6rem);
  color: var(--ink);
  transition: transform .55s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease), color .4s var(--ease);
}
/* scroll-away: hides on scroll-down, returns on scroll-up (JS toggles) */
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__loc {
  justify-self: start;
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(33, 26, 19, 0.78);                 /* dark enough to read on sky */
  text-shadow: 0 1px 14px rgba(236, 229, 216, 0.55); /* halo over busy footage */
  white-space: nowrap;
}
.site-header.is-stuck .site-header__loc { text-shadow: none; }
/* subtle light scrim so the wordmark reads over bright footage — not a dark bar */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(236,229,216,0.55), rgba(236,229,216,0));
  pointer-events: none;
  opacity: 1;
  transition: opacity .5s var(--ease);
}
.site-header.is-stuck {
  background: rgba(236, 229, 216, 0.92);
  backdrop-filter: saturate(1.1) blur(6px);
  box-shadow: 0 1px 0 var(--rule-soft);
}
.site-header.is-stuck::before { opacity: 0; }

.brand {
  justify-self: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);   /* a touch larger, centered */
  letter-spacing: 0.2em;
  text-indent: 0.2em;                          /* optically centre the tracking */
  text-decoration: none;
  position: relative;
  z-index: 1;
}
/* ---- nav (right-hand links) ------------------------------------------------ */
.nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2.25rem);
  position: relative;
  z-index: 1;
}
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

/* Reserve sits in a square outlined box, filling on hover */
.nav__reserve {
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 0.55em 1.1em;
  letter-spacing: 0.08em;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.nav__reserve::after { content: none; }          /* no underline — it's a box */
.nav__reserve:hover { background: var(--amber); color: var(--bone); }

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.7em 1.3em;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bone); }
.btn--amber { border-color: var(--amber); }
.btn--amber:hover { background: var(--amber); border-color: var(--amber); color: var(--bone); }
.btn--lg { font-size: 0.95rem; padding: 0.9em 1.8em; }

/* ---- story hero (engine contract) ----------------------------------------- */
.story { height: var(--story-length, 480vh); position: relative; }
.story__viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
.story__canvas, .story__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story__canvas { opacity: 0; transition: opacity .5s ease; }
.story.is-ready .story__canvas { opacity: 1; }
.story.is-ready .story__poster { opacity: 0; transition: opacity .5s ease .1s; }

/* cinematic grade: a gentle lens vignette + warm top/bottom scrims. Darkens the
   corners the way a real wide lens does, and quietly buys legibility for the
   overlays without ever laying a flat bar over the footage. */
.story__grade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(20,14,8,0.28) 0%, rgba(20,14,8,0) 22%),
    linear-gradient(to top,    rgba(20,14,8,0.34) 0%, rgba(20,14,8,0) 30%),
    radial-gradient(120% 100% at 50% 42%, rgba(20,14,8,0) 52%, rgba(20,14,8,0.42) 100%);
}
/* fine film grain — an SVG noise tile blended over the image. Real footage is
   never this clean; the moving grain is what tips it from "render" to "shot". */
.story__grain {
  position: absolute;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  will-change: transform;
  animation: grainshift 0.6s steps(2) infinite;
}
@keyframes grainshift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-6%, 3%); }
  50%  { transform: translate(4%, -5%); }
  75%  { transform: translate(-3%, -2%); }
  100% { transform: translate(5%, 4%); }
}

.story__overlay {
  position: absolute;
  z-index: 3;
  max-width: min(46ch, 80vw);
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}
.story__overlay .eyebrow {
  color: var(--bone);
  opacity: 0.9;
  margin-bottom: 1rem;
  text-shadow: 0 1px 18px rgba(20, 14, 8, 0.6), 0 1px 3px rgba(20, 14, 8, 0.45);
}
.story__overlay h1, .story__overlay h2 {
  color: var(--bone);
  font-weight: 420;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
  /* soft radial scrim behind text only — never a full-width bar. Layered wide
     blurs so the line still reads over blown-out sky around the low sun. */
  text-shadow:
    0 2px 56px rgba(20, 14, 8, 0.62),
    0 1px 22px rgba(20, 14, 8, 0.45),
    0 1px 3px  rgba(20, 14, 8, 0.4);
}
.story__overlay--left  { left: var(--pad); top: 30%; text-align: left; }
.story__overlay--right { right: var(--pad); top: 34%; text-align: right; }
/* the right overlay crosses the blown-out sun: a soft ellipse bleeding off the
   frame edge buys the missing contrast — reads as a grad filter, not a bar */
.story__overlay--right::before {
  content: "";
  position: absolute;
  inset: -24% -42% -24% -28%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 60% 42%, rgba(20, 14, 8, 0.42), rgba(20, 14, 8, 0) 72%);
}
.story__overlay--bottom { left: var(--pad); bottom: 16%; text-align: left; }

.story__handoff-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1.4rem;
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: 0 1px 18px rgba(20, 14, 8, 0.6), 0 1px 3px rgba(20, 14, 8, 0.45);
}
.story__handoff-cue::after {
  content: "";
  width: 26px; height: 1px;
  background: var(--amber);
}

/* ---- opening title: wordmark written onto the still frame -------------------
   Rest state of the hero. Each glyph is an outline drawn with a dash sweep
   (pathLength=1), then the fill comes up; the tracked line wipes in beneath
   through a soft mask. Everything is armed by .is-written on the section;
   the scroll engine only drives the wrapper's opacity, so the two never
   fight over the same property. */
.hero-title {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(82vw, 1080px);
  text-align: center;
  pointer-events: none;
  will-change: opacity, transform;
}
.hero-title__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 2px 34px rgba(20, 14, 8, 0.55)) drop-shadow(0 1px 4px rgba(20, 14, 8, 0.35));
}
.hero-title__svg path {
  fill: var(--bone);
  fill-opacity: 0;
  stroke: var(--bone);
  stroke-width: 14;             /* viewBox units — about 1.5 px at full size */
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.96;
}
.story.is-written .hero-title__svg path {
  animation:
    titleDraw 0.9s cubic-bezier(0.4, 0, 0.2, 1) both,
    titleFill 0.8s ease-out both;
  animation-delay: calc(0.55s + var(--i) * 0.2s), calc(1.15s + var(--i) * 0.2s);
}
.hero-title__svg path:nth-child(1) { --i: 0; }
.hero-title__svg path:nth-child(2) { --i: 1; }
.hero-title__svg path:nth-child(3) { --i: 2; }
.hero-title__svg path:nth-child(4) { --i: 3; }
.hero-title__svg path:nth-child(5) { --i: 4; }
.hero-title__svg path:nth-child(6) { --i: 5; }
@keyframes titleDraw { to { stroke-dashoffset: 0; } }
@keyframes titleFill { to { fill-opacity: 1; } }

.hero-title__line {
  margin: clamp(1.1rem, 2.4vw, 1.8rem) 0 0;
  font-family: var(--body);
  font-size: clamp(0.66rem, 1vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: 0 1px 18px rgba(20, 14, 8, 0.6), 0 1px 3px rgba(20, 14, 8, 0.45);
  /* soft left→right wipe: a wide gradient mask that slides across the text */
  -webkit-mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
          mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  -webkit-mask-size: 250% 100%;
          mask-size: 250% 100%;
  -webkit-mask-position: 100% 0;
          mask-position: 100% 0;
}
.story.is-written .hero-title__line {
  animation: lineWipe 1.3s cubic-bezier(0.4, 0, 0.2, 1) 2.3s both;
}
@keyframes lineWipe { to { -webkit-mask-position: 0% 0; mask-position: 0% 0; } }

/* signature: descent-to-sea-level instrument — horizontal scrubber along the
   foot of the hero. Spans the full width so it never crowds the overlays, and
   the tick/fill travel left→right as the film descends to the water. */
.story__hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(5.2rem, 11vh, 7.4rem);   /* just above the gauge */
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
  font-family: var(--body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}
.story__hint.is-on { opacity: 0.72; }

.story__gauge {
  position: absolute;
  left: 50%;
  bottom: clamp(1.4rem, 4vh, 2.6rem);
  transform: translateX(-50%);
  width: min(640px, 86vw);    /* centered — wider than compact, not full hero */
  z-index: 4;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 14px rgba(20, 14, 8, 0.55); /* legible over the footage */
}
.gauge__label {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
  white-space: nowrap;
}
.gauge__track {
  position: relative;
  flex: 1;
  height: 1px;
  background: rgba(236, 229, 216, 0.32);
}
.gauge__fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--bone);
  opacity: 0.6;
}
.gauge__tick {
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bone);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(20, 14, 8, 0.18);
}
.gauge__value {
  font-family: var(--display);
  font-weight: 380;
  font-size: 1.5rem;
  line-height: 1;
  white-space: nowrap;
}
.gauge__unit { font-size: 0.78rem; opacity: 0.7; margin-left: 0.15em; }
.gauge__coord {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  white-space: nowrap;
}

/* ---- reveal (one orchestrated pattern for the whole page) ------------------
   Progressive enhancement: content is visible by default. Only when JS is
   present (html.js) do we set the hidden start state, so a JS failure or a
   no-JS client still renders every section. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
  }
  html.js .reveal.is-in { opacity: 1; transform: none; }
  html.js .reveal[data-delay="1"] { transition-delay: .08s; }
  html.js .reveal[data-delay="2"] { transition-delay: .16s; }
  html.js .reveal[data-delay="3"] { transition-delay: .24s; }
}

/* ---- section: intro statement (dark "threshold" for contrast) -------------- */
.statement {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(7rem, 18vh, 13rem);
}
.statement .eyebrow { color: var(--sand); }
.statement__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.statement__lead {
  font-family: var(--display);
  font-weight: 380;
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-left: clamp(0rem, 8vw, 9rem); /* asymmetric, generous left margin */
}
.statement__lead em {
  font-style: italic;
  color: var(--sand);
}
.statement__body {
  max-width: 42ch;
  margin-left: auto;
  color: rgba(236, 229, 216, 0.78);
  font-size: 1.06rem;
}

/* ---- section: the houses (category grid) ----------------------------------- */
.houses { padding-block: var(--section-y); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 440;
  max-width: 16ch;
}
.section-head .eyebrow { margin-bottom: 0.9rem; }
.section-head p { max-width: 34ch; color: var(--stone); }

.house-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.6vw, 1.6rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.house {
  display: block;
  text-decoration: none;
  color: inherit;
}
.house__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
}
.house__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.house:hover .house__media img,
.house:focus-visible .house__media img { transform: scale(1.045); }
.house__index {
  position: absolute;
  top: 0.8rem; left: 0.9rem;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--bone);
  letter-spacing: 0.05em;
  text-shadow: 0 1px 12px rgba(20,14,8,0.5);
}
.house__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.05rem;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 460;
}
.house__title .arrow {
  font-family: var(--body);
  color: var(--amber);
  transform: translateX(-4px);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.house:hover .house__title .arrow,
.house:focus-visible .house__title .arrow { transform: none; opacity: 1; }
.house__desc {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--stone);
  max-width: 30ch;
}
.house__rule {
  height: 1px;
  margin-top: 1rem;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.house__rule::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.house:hover .house__rule::after,
.house:focus-visible .house__rule::after { transform: scaleX(1); }

/* ---- section: feature (the table) ------------------------------------------ */
.feature {
  background: var(--bone-2);
  padding-block: var(--section-y);
}
.feature__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.feature__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 440;
  margin-bottom: 1.4rem;
  max-width: 14ch;
}
.feature__body p { color: var(--stone); max-width: 40ch; margin-bottom: 1.6rem; }
.feature__meta {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.feature__meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.92rem;
}
.feature__meta dt, .feature__meta .k { color: var(--stone); letter-spacing: 0.04em; }
.feature__meta .v { font-family: var(--display); }

/* ---- section: CTA + footer ------------------------------------------------- */
.cta {
  padding-block: clamp(6rem, 16vh, 11rem);
  text-align: center;
}
.cta .eyebrow { margin-bottom: 1.4rem; }
.cta h2 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 420;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-inline: auto;
}
.cta p { margin: 1.4rem auto 2.4rem; max-width: 46ch; color: var(--stone); }

.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(3.5rem, 8vh, 6rem) 2.5rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(236, 229, 216, 0.16);
}
.footer__brand { font-family: var(--display); font-size: 1.8rem; letter-spacing: 0.16em; font-weight: 500; }
.footer__brand + p { margin-top: 1rem; color: rgba(236,229,216,0.66); max-width: 32ch; font-size: 0.95rem; }
.footer__col h3 {
  font-family: var(--body);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer__col a { text-decoration: none; font-size: 0.95rem; color: rgba(236,229,216,0.82); }
.footer__col a:hover { color: var(--bone); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.8rem;
  font-size: 0.78rem;
  color: rgba(236,229,216,0.55);
  letter-spacing: 0.03em;
}

/* ---- bespoke native cursor (fine pointers only) ---------------------------- */
@media (hover: hover) and (pointer: fine) {
  /* a modern slim arrow in the brand amber; tip hotspot at 3,2 */
  html { cursor: url("img/cursor-arrow.svg") 3 2, auto; }
  /* clickable things get a small filled disc, centred hotspot */
  a, button, label, summary, select,
  [role="button"], .lang button, [data-cursor] {
    cursor: url("img/cursor-dot.svg") 9 9, pointer;
  }
  /* text fields keep a real caret */
  input, textarea { cursor: text; }
}

/* ---- language switch ------------------------------------------------------- */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.lang button {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--stone);
  cursor: pointer;
  transition: color .3s var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button.is-active { color: var(--ink); }
.lang span { color: var(--rule); }

/* ---- responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .feature__grid { grid-template-columns: 1fr; }
  .house-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.2rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .statement__lead { margin-left: 0; }
  .statement__body { margin-left: 0; }
}
@media (max-width: 620px) {
  .story__gauge { display: none; }     /* keep phones clean + memory-light */
  .story__hint { bottom: 4.4vh; }      /* no gauge below it on phones */
  .story__overlay h1, .story__overlay h2 { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .hero-title { width: 84vw; top: 44%; }
  .hero-title__svg path { stroke-width: 22; }   /* holds the hairlines at 330 px */
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  /* tight phones: drop the location + section links, keep wordmark + Reserve */
  .site-header { grid-template-columns: 1fr auto; }
  .site-header__loc,
  .nav a:not(.nav__reserve) { display: none; }
  .brand { justify-self: start; }
}
@media (max-width: 380px) {
  .house-grid { grid-template-columns: 1fr; }
}

/* ---- reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .story__grain { animation: none; }
  .hero-title__svg path { stroke-dashoffset: 0; fill-opacity: 1; animation: none !important; }
  .hero-title__line { -webkit-mask-image: none; mask-image: none; animation: none !important; }
  .house__media img { transition: none; }
  * { scroll-behavior: auto; }
}
