/* ============================================================
   Mondzia — quiet luxury. Tokens from DESIGN.md.
   ============================================================ */

/* Self-hosted fonts (assets/fonts/, SIL OFL) — no third-party font CDN,
   so no visitor IP leaves our origin (GDPR Art. 6(1)). Latin subset only;
   the stacks below fall back to system fonts for other scripts. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pearl: #F3F0EA;
  --porcelain: #FBF9F6;
  --ink: #2A2522;
  --taupe: #6F655B;            /* text-safe warm greige (4.5:1 on pearl) */
  --champagne: #A98E63;        /* hairlines, on-dark accents */
  --champagne-text: #8A7047;   /* champagne tone dark enough for small text on pearl */
  --umber: #201A16;

  --hairline: rgba(169, 142, 99, 0.35);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Corner radii — mirrors Radii in mondzia_app/lib/theme.dart. Softened
     enough that nothing reads as a hard corner, restrained enough to stay
     quiet luxury rather than bubbly. */
  --radius-field: 14px;  /* inputs, buttons */
  --radius-card: 16px;   /* media blocks, raised surfaces */
  --radius-panel: 20px;  /* large feature surfaces */

  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
  --measure: 34em;
  --page-max: 1160px;
  --gutter: clamp(20px, 5vw, 64px);

  --z-stage: 10;
  --z-rail: 20;
  --z-head: 50;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--pearl);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* height:auto keeps the intrinsic width/height attributes — there to reserve
   space and stop layout shift — from squashing anything sized in CSS. */
img, video { display: block; max-width: 100%; height: auto; }
canvas { display: block; max-width: 100%; }

a { color: inherit; }

/* Anchored sections land clear of the top edge rather than flush against it. */
[id] { scroll-margin-top: 24px; }

/* No double-tap delay, and no grey flash on the brand palette. */
a, button, input, label { touch-action: manipulation; }
a, button { -webkit-tap-highlight-color: rgba(169, 142, 99, 0.18); }

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

/* Keyboard-only escape from the hero straight into the story. */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid var(--hairline);
  border-radius: 0 0 var(--radius-field) var(--radius-field);
  transition: transform 0.25s var(--ease-lux);
}
.skip-link:focus-visible { transform: none; }

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
  /* Only a floor for bare elements like links — anything with its own radius
     (inputs, buttons) is more specific and keeps its shape when focused. */
  border-radius: 6px;
}
/* On the umber fields champagne alone is too close in value to read as a ring. */
.film :focus-visible,
.waitlist :focus-visible,
.site-foot :focus-visible {
  outline-color: var(--porcelain);
}

::selection { background: rgba(169, 142, 99, 0.25); }

/* ---------- shared type ---------- */

.eyebrow,
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne-text);
}

.section-label { display: block; margin-bottom: clamp(28px, 4vw, 48px); }
.section-label--light { color: var(--champagne); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-lux), transform 0.9s var(--ease-lux);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Header
   ============================================================ */

.site-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: var(--z-head);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 3vw, 36px)
           max(var(--gutter), env(safe-area-inset-right))
           clamp(20px, 3vw, 36px)
           max(var(--gutter), env(safe-area-inset-left));
}

.site-head .wordmark {
  opacity: 0;
  animation: settle 1.2s var(--ease-lux) 0.15s forwards;
}

.head-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.25s var(--ease-lux), color 0.25s var(--ease-lux);
  opacity: 0;
  animation: settle 1.2s var(--ease-lux) 0.3s forwards;
}
.head-link:hover { border-color: var(--champagne); color: var(--champagne); }

@keyframes settle {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-head .wordmark, .head-link { animation: none; opacity: 1; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
}

/* The photograph is bright end to end, so the copy needs a base of its own
   rather than a thin wash. Three layers: a floor that carries the form, a
   left column that carries the headline, and a soft pool behind the block —
   all in pearl, so the seam with the page below is invisible. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      var(--pearl) 0%,
      rgba(243, 240, 234, 0.97) 18%,
      rgba(243, 240, 234, 0.78) 34%,
      rgba(243, 240, 234, 0.22) 56%,
      rgba(243, 240, 234, 0) 74%),
    linear-gradient(to right,
      rgba(243, 240, 234, 0.9) 0%,
      rgba(243, 240, 234, 0.55) 30%,
      rgba(243, 240, 234, 0) 62%),
    radial-gradient(120% 78% at 8% 100%,
      rgba(243, 240, 234, 0.72) 0%,
      rgba(243, 240, 234, 0) 62%);
}

.hero__inner {
  position: relative;
  padding: 0
           max(var(--gutter), env(safe-area-inset-right))
           clamp(84px, 12vh, 140px)
           max(var(--gutter), env(safe-area-inset-left));
  max-width: var(--page-max);
  width: 100%;
  margin: 0 auto;
}

.hero__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 1.04;
  /* Optical: the display face opens up at hero sizes, so pull it back in. */
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 18px 0 22px;
}

.hero__sub {
  /* Ink at 78% rather than taupe: the sub crosses the lit part of the
     photograph, where taupe drops under 4.5:1. */
  color: rgba(42, 37, 34, 0.82);
  font-size: clamp(17px, 1.5vw, 19px);
  max-width: 32em;
  text-wrap: balance;
  margin-bottom: 40px;
}

/* The eyebrow sits over a bright band of the photo — deepen it and
   lift it off the image so it stays legible. */
.hero .eyebrow {
  color: #6B5836;
  text-shadow: 0 1px 18px rgba(243, 240, 234, 0.9);
}

/* staggered load-in */
.hero .reveal { transition-delay: 0.25s; }
.hero .hero__title.reveal { transition-delay: 0.4s; }
.hero .hero__sub.reveal { transition-delay: 0.55s; }
.hero .waitlist-form.reveal { transition-delay: 0.7s; }

.scroll-cue {
  position: absolute;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: calc(36px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  transition: color 0.25s var(--ease-lux);
}
.scroll-cue:hover { color: var(--champagne-text); }
.scroll-cue__line {
  width: 1px;
  height: 44px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--champagne);
  animation: cue-drop 2.4s var(--ease-lux) infinite;
}
@keyframes cue-drop {
  0% { top: -50%; }
  60%, 100% { top: 110%; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue__line::after { animation: none; }
}

/* ============================================================
   The scroll film
   ============================================================ */

.film { background: var(--umber); }

/* Scroll length tracks the cut: seven clips now, not nine, so the film
   keeps roughly the same frames-per-viewport as before. */
.film__spacer { height: 900vh; position: relative; }

.film__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  z-index: var(--z-stage);
}

.film__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.film__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(32, 26, 22, 0.88) 0%, rgba(32, 26, 22, 0.46) 38%, rgba(32, 26, 22, 0) 62%),
    linear-gradient(to top, rgba(32, 26, 22, 0.5) 0%, rgba(32, 26, 22, 0) 24%);
  pointer-events: none;
}

.film__rail {
  position: absolute;
  z-index: var(--z-rail);
  left: max(var(--gutter), env(safe-area-inset-left));
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(460px, 82vw);
  color: var(--porcelain);
}

.film__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 26px;
}

.film__beats { position: relative; min-height: 260px; }

.film-beat {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-lux), transform 0.6s var(--ease-lux);
  pointer-events: none;
}
.film-beat.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.film-beat__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--champagne);
  display: block;
  margin-bottom: 14px;
}

.film-beat__story {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: 16px;
}

.film-beat__step {
  color: rgba(251, 249, 246, 0.78);
  font-size: 15.5px;
  line-height: 1.62;
  max-width: 34em;
  text-wrap: pretty;
}

.film__progress {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.film__counter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  /* Fixed-width digits so the counter never jitters as the beat changes. */
  font-variant-numeric: tabular-nums;
  color: rgba(251, 249, 246, 0.6);
  min-width: 64px;
}
.film__bar {
  flex: 1;
  height: 1px;
  background: rgba(251, 249, 246, 0.18);
  position: relative;
}
.film__bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--champagne);
}

/* ---------- static film fallback ---------- */

.film-static {
  padding: clamp(64px, 10vw, 120px)
           max(var(--gutter), env(safe-area-inset-right))
           clamp(64px, 10vw, 120px)
           max(var(--gutter), env(safe-area-inset-left));
  max-width: 860px;
  margin: 0 auto;
  color: var(--porcelain);
}

.film-static__item {
  margin-bottom: clamp(56px, 9vw, 96px);
}
.film-static__item img,
.film-static__item video {
  width: 100%;
  border-radius: var(--radius-card);
  margin-bottom: 24px;
}
.film-static__item .film-beat__step { color: rgba(251, 249, 246, 0.78); }

/* Beats without a scene of their own — they continue the shot above.
   The rule makes that read as a deliberate sub-step rather than as an
   article whose picture failed to load. */
.film-static__item--text {
  margin-top: clamp(-32px, -4vw, -20px);
  margin-bottom: clamp(40px, 7vw, 68px);
  padding-left: 22px;
  border-left: 1px solid rgba(169, 142, 99, 0.34);
}
.film-static__item--text .film-beat__story {
  font-size: clamp(21px, 2.4vw, 26px);
}

/* ============================================================
   Why Mondzia
   ============================================================ */

.why {
  padding: clamp(96px, 14vw, 180px)
           max(var(--gutter), env(safe-area-inset-right))
           clamp(96px, 14vw, 180px)
           max(var(--gutter), env(safe-area-inset-left));
  max-width: var(--page-max);
  margin: 0 auto;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 72px);
}

.why__item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(23px, 2vw, 26px);
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 14px;
}
.why__item p {
  color: var(--taupe);
  font-size: 16px;
  text-wrap: pretty;
}

.why__item { position: relative; padding-top: 26px; }
.why__item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44px;
  height: 1px;
  background: var(--hairline);
  /* The rule draws itself in as the card arrives. */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease-lux) 0.25s;
}
.why__item.is-in::before { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .why__item::before { transform: none; transition: none; }
}

/* staggered reveal */
.why__item:nth-child(2) { transition-delay: 0.12s; }
.why__item:nth-child(3) { transition-delay: 0.24s; }

/* ============================================================
   Services
   ============================================================ */

.services {
  padding: 0
           max(var(--gutter), env(safe-area-inset-right))
           clamp(96px, 14vw, 180px)
           max(var(--gutter), env(safe-area-inset-left));
  max-width: var(--page-max);
  margin: 0 auto;
}

.services__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 14em;
}

.services__list { list-style: none; }

.services__list li {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.services__list li:last-child { border-bottom: 1px solid var(--hairline); }

/* A champagne marker slides out of the rule on hover. Transform only —
   the old padding shift relayed out the whole row on every pointer move. */
.services__list li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease-lux);
}
.services__list li:hover::before { transform: scaleX(1); }

.services__list li > span {
  transition: transform 0.35s var(--ease-lux);
}
.services__list li:hover > .services__name { transform: translateX(6px); }

@media (prefers-reduced-motion: reduce) {
  .services__list li::before,
  .services__list li > span { transition: none; }
}

.services__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 28px);
  min-width: 0;
}
.services__note {
  color: var(--taupe);
  font-size: 14.5px;
  text-align: right;
  min-width: 0;
}

/* ============================================================
   Trust
   ============================================================ */

.trust {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: 0
           max(var(--gutter), env(safe-area-inset-right))
           clamp(96px, 14vw, 180px)
           max(var(--gutter), env(safe-area-inset-left));
  max-width: var(--page-max);
  margin: 0 auto;
}

.trust__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.trust__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 32px;
  max-width: 13em;
}

.trust__list { list-style: none; }
.trust__list li {
  position: relative;
  padding: 16px 0 16px 34px;
  color: var(--ink);
  font-size: 16px;
  border-top: 1px solid var(--hairline);
}
.trust__list li:last-child { border-bottom: 1px solid var(--hairline); }
.trust__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 26px;
  width: 14px;
  height: 1px;
  background: var(--champagne);
}

/* ============================================================
   Waitlist CTA
   ============================================================ */

.waitlist {
  background: var(--umber);
  color: var(--porcelain);
  text-align: center;
  padding: clamp(110px, 16vw, 200px)
           max(var(--gutter), env(safe-area-inset-right))
           clamp(110px, 16vw, 200px)
           max(var(--gutter), env(safe-area-inset-left));
}

.waitlist__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 22px;
}

.waitlist__sub {
  color: rgba(251, 249, 246, 0.72);
  max-width: 32em;
  text-wrap: pretty;
  margin: 0 auto 48px;
}

/* ============================================================
   Waitlist form (shared)
   ============================================================ */

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
  position: relative;
}

.waitlist-form--main {
  margin: 0 auto;
  justify-content: center;
}

.waitlist-form input {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--porcelain);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-field);
  padding: 17px 20px;
  transition: border-color 0.25s var(--ease-lux), box-shadow 0.25s var(--ease-lux);
}
.waitlist-form input::placeholder { color: var(--taupe); }
.waitlist-form input:hover { border-color: rgba(169, 142, 99, 0.6); }
.waitlist-form input:focus {
  outline: none;
  border-color: var(--champagne);
  box-shadow: 0 0 0 3px rgba(169, 142, 99, 0.18);
}
.waitlist-form input:focus-visible { outline: none; }

.waitlist-form button {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--porcelain);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-field);
  padding: 17px 28px;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-lux), border-color 0.3s var(--ease-lux),
              color 0.3s var(--ease-lux), transform 0.2s var(--ease-lux);
}
.waitlist-form button:hover { background: #423931; border-color: #423931; }
.waitlist-form button:active { transform: translateY(1px); }
.waitlist-form button[disabled] { opacity: 0.55; cursor: default; transform: none; }

.waitlist .waitlist-form button {
  background: var(--champagne);
  border-color: var(--champagne);
  color: var(--umber);
}
.waitlist .waitlist-form button:hover { background: #BCA379; border-color: #BCA379; }

@media (prefers-reduced-motion: reduce) {
  .waitlist-form button:active { transform: none; }
}

.form-note {
  flex-basis: 100%;
  font-size: 14px;
  color: var(--taupe);
  margin-top: 4px;
  text-align: left;
}
/* Nothing to say yet — take up no room, but stay in the accessibility tree
   so the live region still announces the first message it gets. */
.form-note:empty { margin: 0; }
.waitlist-form--main .form-note { text-align: center; color: rgba(251, 249, 246, 0.72); }
.form-note.is-error { color: #8F5237; }
.waitlist-form--main .form-note.is-error { color: #E0A886; }

.form-privacy {
  flex-basis: 100%;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--taupe);
  max-width: 44em;
  margin-top: 6px;
  text-wrap: pretty;
}
.form-privacy a {
  color: var(--champagne-text);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.form-privacy--light {
  text-align: center;
  color: rgba(251, 249, 246, 0.66);
  margin: 6px auto 0;
}
.form-privacy--light a { color: rgba(251, 249, 246, 0.86); }

.waitlist-form.is-done input,
.waitlist-form.is-done button { display: none; }
.waitlist-form.is-done .form-note {
  font-family: var(--font-display);
  font-size: 24px;
  color: inherit;
  text-align: inherit;
}

/* ============================================================
   Legal pages (privacy.html, legal.html)
   ============================================================ */

.legal {
  max-width: 42em;
  margin: 0 auto;
  padding: clamp(96px, 14vh, 150px)
           max(var(--gutter), env(safe-area-inset-right))
           96px
           max(var(--gutter), env(safe-area-inset-left));
}

.legal h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 14px 0 28px;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.25;
  text-wrap: balance;
  margin: 44px 0 10px;
}

.legal p,
.legal li {
  color: var(--ink);
  font-size: 16px;
  text-wrap: pretty;
}
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal dl { margin: 12px 0; }
.legal dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne-text);
  margin-top: 18px;
}
.legal dd { font-size: 16px; margin-top: 2px; }
.legal .muted { color: var(--taupe); font-size: 14.5px; }
.legal a {
  color: var(--champagne-text);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.legal hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 44px 0;
}

/* Placeholder that must not reach production unnoticed. Delete the banner
   and the .todo marks together once the register details are filled in. */
.legal__unfinished {
  border: 1px solid #C08A3E;
  border-radius: var(--radius-card);
  background: rgba(192, 138, 62, 0.09);
  padding: 18px 20px;
  margin-bottom: 34px;
}
.legal__unfinished p { font-size: 15px; }
.legal__unfinished strong {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
  color: #8A5E1C;
}
.todo {
  background: rgba(192, 138, 62, 0.2);
  border-bottom: 1px dashed #C08A3E;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 0.86em;
}

/* ============================================================
   Footer
   ============================================================ */

.site-foot {
  background: var(--umber);
  color: rgba(251, 249, 246, 0.72);
  padding: clamp(56px, 8vw, 96px)
           max(var(--gutter), env(safe-area-inset-right))
           calc(40px + env(safe-area-inset-bottom))
           max(var(--gutter), env(safe-area-inset-left));
  border-top: 1px solid rgba(169, 142, 99, 0.22);
}

.site-foot__top {
  display: flex;
  align-items: baseline;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.wordmark--foot { color: var(--porcelain); }
.site-foot__line { font-size: 15px; }

.site-foot__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.site-foot__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(251, 249, 246, 0.72);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.25s var(--ease-lux), border-color 0.25s var(--ease-lux);
}
.site-foot__links a:hover { color: var(--champagne); border-color: var(--hairline); }

.site-foot__legal {
  font-size: 12.5px;
  color: rgba(251, 249, 246, 0.52);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .trust { grid-template-columns: 1fr; }
  .trust__media { order: 2; }
  .trust__media img { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  /* On phones the text needs a much stronger base under it. */
  .hero__scrim {
    background:
      linear-gradient(to top,
        var(--pearl) 30%,
        rgba(243, 240, 234, 0.95) 50%,
        rgba(243, 240, 234, 0.28) 74%,
        rgba(243, 240, 234, 0) 100%);
  }
  .hero__media img { object-position: 62% 12%; }
  .hero__inner { padding-bottom: 96px; }
  .hero__title { font-size: clamp(40px, 12vw, 60px); }
  .hero__sub { margin-bottom: 32px; }

  /* Full-width stacked controls beat a cramped two-up on a phone. */
  .waitlist-form input,
  .waitlist-form button { flex: 1 1 100%; }

  .why__grid { grid-template-columns: 1fr; }

  .services__list li {
    flex-direction: column;
    gap: 6px;
  }
  .services__note { text-align: left; }
  /* The marker has no gutter to live in once the row goes full-bleed. */
  .services__list li::before { display: none; }
  .services__list li:hover > .services__name { transform: none; }

  /* Hidden from sight, kept for screen readers — the link would otherwise
     have no accessible name at all. */
  .scroll-cue span:first-child {
    position: absolute; width: 1px; height: 1px;
    clip-path: inset(50%); overflow: hidden; white-space: nowrap;
  }

  .film-beat__story { font-size: 24px; }
}

/* Below the fold on a short landscape phone the hero copy would otherwise
   collide with its own form. */
@media (max-height: 560px) and (orientation: landscape) {
  .hero__inner { padding-bottom: 48px; }
  .hero__title { font-size: clamp(34px, 6vw, 48px); margin: 10px 0 14px; }
  .hero__sub { margin-bottom: 22px; }
  .scroll-cue { display: none; }
}

/* When the scrub engine is unavailable (mobile / reduced motion / no frames),
   the stage is hidden and the static fallback shown. */
.film.is-static .film__spacer { display: none; }
.film.is-static .film-static { display: block; }
