/* ═══════════════════════════════════════════════════════════════
   DWELIO v6 — "One day, handled"
   Warm afternoon → sunset set-piece → night. OKLCH tokens,
   Fraunces / Schibsted Grotesk / Spline Sans Mono.
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts (self-hosted variable woff2) ── */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces.woff2') format('woff2');
  font-weight: 300 900; font-stretch: 75% 125%; font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 300 900; font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('../fonts/schibsted-grotesk.woff2') format('woff2');
  font-weight: 400 900; font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('../fonts/spline-sans-mono.woff2') format('woff2');
  font-weight: 400 700; font-style: normal;
  font-display: swap;
}
/* metric-compatible fallbacks to tame CLS during swap */
@font-face {
  font-family: 'Fraunces-fb'; src: local('Georgia');
  size-adjust: 104%; ascent-override: 96%; descent-override: 24%;
}
@font-face {
  font-family: 'Schibsted-fb'; src: local('Helvetica Neue'), local('Arial');
  size-adjust: 99%;
}

/* ── Tokens ── */
:root {
  /* day world */
  --ivory:        oklch(0.965 0.018 85);
  --ivory-2:      oklch(0.945 0.028 82);
  --amber-bg:     oklch(0.915 0.05 78);
  --late:         oklch(0.87 0.075 72);
  --espresso:     oklch(0.27 0.035 55);
  --espresso-2:   oklch(0.38 0.04 55);
  --gold:         oklch(0.78 0.13 75);
  --gold-deep:    oklch(0.68 0.135 68);
  --ochre:        oklch(0.5 0.1 60);
  /* night world */
  --night:        oklch(0.19 0.03 270);
  --night-2:      oklch(0.235 0.035 275);
  --night-3:      oklch(0.29 0.04 278);
  --candle:       oklch(0.93 0.035 85);
  --candle-dim:   oklch(0.78 0.04 85);
  --glow:         oklch(0.8 0.125 70);
  /* the one cool note — the real Dwelio logo gradient */
  --lg-cyan: #22d3ee; --lg-violet: #8b5cf6; --lg-magenta: #e249c6;
  --logo-grad: linear-gradient(100deg, var(--lg-cyan), var(--lg-violet) 50%, var(--lg-magenta));
  /* easing dialect (one dialect, CSS + JS) */
  --ease-out-expo: cubic-bezier(.19, 1, .22, 1);
  --ease-in-out-soft: cubic-bezier(.4, .15, 0, 1);
  /* fluid type (max ≤ 2.5× min) */
  --step-0: clamp(1rem, .95rem + .3vi, 1.125rem);
  --step-1: clamp(1.2rem, 1.05rem + .7vi, 1.55rem);
  --step-2: clamp(1.55rem, 1.25rem + 1.4vi, 2.3rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vi, 3.3rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.9vi, 4.9rem);
  --step-5: clamp(3.2rem, 2.1rem + 5.6vi, 7rem);
  --space: clamp(1.25rem, 1rem + 2vi, 2.5rem);
  --serif: 'Fraunces', 'Fraunces-fb', Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Schibsted-fb', 'Helvetica Neue', sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', monospace;
  color-scheme: light;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* native smooth anchors ONLY when Lenis isn't driving the scroll (the two fight) */
html:not(.lenis) { scroll-behavior: smooth; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--espresso);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--lg-violet); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--espresso); color: var(--ivory);
  padding: .6em 1.2em; border-radius: 0 0 8px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

.container { width: min(1200px, 92vw); margin-inline: auto; }

/* ── Film grain (static feTurbulence, never animated) ── */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Type system ── */
.eyebrow {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ochre); margin-bottom: 1.4rem;
}
.section-title {
  font-family: var(--serif);
  font-size: var(--step-4);
  font-weight: 480;
  font-variation-settings: 'opsz' 110;
  line-height: 1.02; letter-spacing: -.02em;
  max-width: 16ch; margin-bottom: calc(var(--space) * 1.2);
  text-wrap: balance;
}

/* ── Buttons ── */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: .85em 1.7em; border-radius: 999px;
  transition: transform .35s var(--ease-out-expo), box-shadow .35s var(--ease-out-expo), background-color .25s ease;
  will-change: transform;
}
.btn-solid {
  background: linear-gradient(170deg, var(--gold), var(--gold-deep));
  color: var(--espresso);
  box-shadow: 0 10px 30px -12px oklch(0.68 0.135 68 / .65);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px oklch(0.68 0.135 68 / .8); }
.btn-ghost {
  color: var(--ivory); border: 1px solid oklch(1 0 0 / .45);
  background: oklch(1 0 0 / .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: oklch(1 0 0 / .16); }
.btn-big { font-size: 1.1rem; padding: 1em 2.2em; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  transition: background-color .45s var(--ease-in-out-soft), box-shadow .45s var(--ease-in-out-soft), padding .45s var(--ease-in-out-soft);
}
.nav.scrolled {
  background: oklch(0.19 0.03 270 / .82);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 1px 0 oklch(1 0 0 / .08);
  padding-block: .6rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-word {
  font-family: var(--serif); font-weight: 560; font-size: 1.35rem;
  letter-spacing: -.01em; color: var(--ivory);
}
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: .88rem; font-weight: 500;
  color: oklch(0.96 0.018 85 / .85);
  position: relative; padding-block: .3em;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--logo-grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out-expo);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
/* char-stagger hover (chars split by JS write --char) */
.nav-links a .char { display: inline-block; transition: transform .4s var(--ease-out-expo); transition-delay: calc(var(--char, 0) * 18ms); }
.nav-links a:hover .char { transform: translateY(-3px); }
.nav-cta { font-size: .85rem; padding: .7em 1.4em; }

/* ── HERO (afternoon, depth-sandwich) ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(5rem, 10vh, 8rem) clamp(1rem, 5vw, 4rem) clamp(4rem, 9vh, 7rem);
  overflow: hidden;
  background: var(--night); /* paints behind the photo while it loads */
}
.hero-bg, .hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(110% 80% at 78% 12%, oklch(0.85 0.1 75 / .28), transparent 55%),
    linear-gradient(180deg, oklch(0.19 0.03 270 / .42), oklch(0.19 0.03 270 / .08) 38%, oklch(0.14 0.035 60 / .78) 96%);
}
.hero-inner { position: relative; max-width: 1200px; width: 92vw; margin-inline: auto; }
.hero .eyebrow { color: oklch(0.93 0.05 85); display: flex; align-items: center; gap: .9em; flex-wrap: wrap; }
.time-chip {
  display: inline-flex; align-items: center; gap: .5em;
  border: 1px solid oklch(1 0 0 / .35); border-radius: 999px;
  padding: .35em .9em; font-family: var(--mono); letter-spacing: .08em;
  color: var(--ivory); background: oklch(0.3 0.05 60 / .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.time-chip::before {
  content: ''; width: .55em; height: .55em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, oklch(0.92 0.12 85), var(--gold-deep) 75%);
  box-shadow: 0 0 10px oklch(0.78 0.13 75 / .9);
}
.hero-title {
  font-family: var(--serif); font-weight: 420;
  font-variation-settings: 'opsz' 144;
  font-size: var(--step-5); line-height: .98; letter-spacing: -.025em;
  color: var(--ivory); margin-bottom: 1.6rem;
  text-shadow: 0 2px 40px oklch(0.14 0.035 60 / .5);
}
.hero-title .line { display: block; }
.hero-title em { font-weight: 480; color: oklch(0.9 0.09 80); }
.hero-sub {
  max-width: 46ch; font-size: var(--step-1); line-height: 1.5;
  color: oklch(0.96 0.018 85 / .92); margin-bottom: 2.2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .65rem; letter-spacing: .2em;
  text-transform: uppercase; color: oklch(0.96 0.018 85 / .7);
}
.scroll-cue::after {
  content: ''; width: 1px; height: 38px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.4s var(--ease-in-out-soft) infinite;
}
@keyframes cue { 0%, 100% { transform: scaleY(.3); transform-origin: top; opacity: .4 } 50% { transform: scaleY(1); opacity: 1 } }

/* ── Loader-without-loader intro (html.is-ready.fonts-loaded gates it) ── */
.js .intro-1, .js .intro-2, .js .intro-3, .js .intro-4, .js .intro-5, .js .intro-6, .js .intro-7 {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo);
}
html.is-ready.fonts-loaded .intro-1 { opacity: 1; transform: none; transition-delay: .25s }
html.is-ready.fonts-loaded .intro-2 { opacity: 1; transform: none; transition-delay: .38s }
html.is-ready.fonts-loaded .intro-3 { opacity: 1; transform: none; transition-delay: .47s }
html.is-ready.fonts-loaded .intro-4 { opacity: 1; transform: none; transition-delay: .56s }
html.is-ready.fonts-loaded .intro-5 { opacity: 1; transform: none; transition-delay: .72s }
html.is-ready.fonts-loaded .intro-6 { opacity: 1; transform: none; transition-delay: .85s }
html.is-ready.fonts-loaded .intro-7 { opacity: 1; transform: none; transition-delay: 1.15s }

/* ── 2 · THE LIST ── */
.list-section { background: var(--ivory); padding: clamp(5rem, 14vh, 9rem) 0; }
.todo-list { list-style: none; margin-bottom: 2.5rem; }
.todo {
  font-family: var(--serif); font-weight: 440;
  font-variation-settings: 'opsz' 90;
  font-size: var(--step-4); line-height: 1.12; letter-spacing: -.018em;
  display: flex; align-items: baseline; gap: .6em;
  padding-block: .12em;
  border-bottom: 1px solid oklch(0.27 0.035 55 / .1);
}
.todo-i {
  font-family: var(--mono); font-size: .8rem; color: var(--ochre);
  min-width: 2.2em; letter-spacing: .05em;
}
.todo-em { border-bottom: none; }
.todo-em em { color: var(--gold-deep); }
.list-note { max-width: 52ch; font-size: var(--step-1); line-height: 1.55; color: var(--espresso-2); }

/* ── 3 · THE PROMISE ── */
.promise { background: var(--ivory-2); padding: clamp(5rem, 14vh, 9rem) 0; }
.promise-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: var(--space); align-items: center; }
.promise-title {
  font-family: var(--serif); font-size: var(--step-3); font-weight: 460;
  font-variation-settings: 'opsz' 100;
  line-height: 1.12; letter-spacing: -.015em; max-width: 20ch;
  margin-bottom: 1.4rem; text-wrap: balance;
}
.promise-title em { color: var(--gold-deep); }
.promise-sub { max-width: 50ch; color: var(--espresso-2); font-size: var(--step-0); }
.promise-figure { border-radius: clamp(14px, 2vw, 24px); overflow: hidden; transform: rotate(1.2deg); box-shadow: 0 30px 70px -30px oklch(0.27 0.035 55 / .45); }
.promise-figure img { aspect-ratio: 1408 / 768; object-fit: cover; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space);
  margin-top: calc(var(--space) * 1.6); padding-top: var(--space);
  border-top: 1px solid oklch(0.27 0.035 55 / .14);
}
.stat strong {
  display: block; font-family: var(--serif); font-size: var(--step-3);
  font-weight: 540; line-height: 1; color: var(--gold-deep); margin-bottom: .3em;
}
.stat span { font-size: .9rem; color: var(--espresso-2); }

/* ── 4 · HOW IT WORKS ── */
.how { background: var(--amber-bg); padding: clamp(5rem, 14vh, 9rem) 0; }
.steps {
  list-style: none; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 1.6vw, 1.8rem);
}
.step {
  background: oklch(0.97 0.015 85 / .75);
  border: 1px solid oklch(0.27 0.035 55 / .08);
  border-radius: clamp(14px, 1.6vw, 20px);
  padding: 1.6rem 1.4rem 1.8rem;
}
.step-n {
  display: inline-block; font-family: var(--mono); font-size: .75rem;
  color: var(--ochre); letter-spacing: .1em; margin-bottom: 1.6rem;
  border: 1px solid oklch(0.5 0.1 60 / .35); border-radius: 999px; padding: .3em .8em;
}
.step h3 { font-family: var(--serif); font-size: var(--step-1); font-weight: 540; line-height: 1.15; margin-bottom: .5em; }
.step p { font-size: .92rem; color: var(--espresso-2); }

/* ── 5 · MEMBERSHIP (late afternoon) ── */
.membership {
  background: linear-gradient(180deg, var(--amber-bg), var(--late) 60%, oklch(0.8 0.095 65));
  padding: clamp(5rem, 14vh, 9rem) 0 clamp(6rem, 16vh, 10rem);
}
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.9rem, 1.4vw, 1.5rem); align-items: start; }
.tier {
  position: relative;
  background: oklch(0.97 0.015 85 / .82);
  border: 1px solid oklch(0.27 0.035 55 / .1);
  border-radius: clamp(16px, 1.8vw, 22px);
  padding: 1.8rem 1.5rem;
  transition: transform .45s var(--ease-out-expo), box-shadow .45s var(--ease-out-expo);
}
.tier:hover { transform: translateY(-6px); box-shadow: 0 26px 60px -26px oklch(0.27 0.035 55 / .5); }
.tier h3 { font-family: var(--serif); font-size: var(--step-2); font-weight: 520; line-height: 1; }
.flag {
  position: absolute; top: -0.85em; left: 1.4rem;
  font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--espresso); color: var(--ivory);
  padding: .45em 1em; border-radius: 999px;
}
.flag-quiet { background: oklch(0.97 0.015 85); color: var(--ochre); border: 1px solid oklch(0.5 0.1 60 / .4); }
.price { margin: .9rem 0 .4rem; }
.price strong { font-family: var(--serif); font-size: var(--step-3); font-weight: 560; letter-spacing: -.02em; }
.price span { font-family: var(--mono); font-size: .8rem; color: var(--espresso-2); }
.tier-tag { font-size: .88rem; color: var(--espresso-2); margin-bottom: 1.1rem; min-height: 2.6em; }
.tier ul { list-style: none; margin-bottom: 1.5rem; }
.tier li {
  font-size: .88rem; padding: .45em 0 .45em 1.4em; position: relative;
  border-top: 1px solid oklch(0.27 0.035 55 / .08);
}
.tier li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }
.btn-tier {
  display: block; text-align: center; font-size: .9rem;
  border: 1.5px solid var(--espresso); color: var(--espresso);
  background: transparent;
}
.btn-tier:hover { background: var(--espresso); color: var(--ivory); transform: translateY(-2px); }
.tier-star {
  background: linear-gradient(175deg, oklch(0.99 0.01 85), oklch(0.95 0.04 80));
  border: 1.5px solid var(--gold-deep);
  box-shadow: 0 26px 70px -28px oklch(0.68 0.135 68 / .75);
  transform: translateY(-10px);
}
.tier-star:hover { transform: translateY(-16px); }
.btn-tier-star { background: linear-gradient(170deg, var(--gold), var(--gold-deep)); border-color: transparent; }
.btn-tier-star:hover { background: var(--espresso); color: var(--ivory); }
.fine { margin-top: 2rem; font-size: .82rem; color: var(--espresso-2); max-width: 64ch; }

/* ── 6 · ★ SET-PIECE — scroll-as-time ── */
.daywrap { height: 380vh; position: relative; background: var(--night); }
.daystage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sky { position: absolute; inset: 0; }
.sky-afternoon {
  /* top stop matches the membership section's bottom so the seam reads as morning light */
  background: linear-gradient(180deg, oklch(0.8 0.095 65), oklch(0.82 0.06 230) 26%, oklch(0.9 0.05 90) 62%, oklch(0.87 0.075 72));
  opacity: 1;
}
.sky-golden {
  background: linear-gradient(180deg, oklch(0.66 0.1 55), oklch(0.78 0.14 65) 45%, oklch(0.62 0.15 45) 80%, oklch(0.45 0.1 35));
  opacity: 0;
}
.sky-dusk {
  background: linear-gradient(180deg, oklch(0.14 0.03 275), oklch(0.22 0.05 290) 55%, oklch(0.32 0.08 320) 85%, oklch(0.36 0.09 25));
  opacity: 0;
}
.stars {
  position: absolute; inset: 0 0 30% 0; opacity: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 42%, oklch(0.9 0.02 270), transparent),
    radial-gradient(1.4px 1.4px at 41% 12%, #fff, transparent),
    radial-gradient(1px 1px at 57% 33%, oklch(0.9 0.02 270), transparent),
    radial-gradient(1.3px 1.3px at 68% 16%, #fff, transparent),
    radial-gradient(1px 1px at 79% 38%, oklch(0.9 0.02 270), transparent),
    radial-gradient(1.2px 1.2px at 88% 22%, #fff, transparent),
    radial-gradient(1px 1px at 18% 58%, oklch(0.88 0.02 270), transparent),
    radial-gradient(1.1px 1.1px at 94% 52%, #fff, transparent),
    radial-gradient(1px 1px at 48% 55%, oklch(0.88 0.02 270), transparent);
}
.sun {
  position: absolute; left: 64%; top: 18%;
  width: clamp(70px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%;
  margin-left: calc(clamp(70px, 9vw, 130px) / -2);
  background: radial-gradient(circle at 38% 32%, oklch(0.97 0.07 95), oklch(0.85 0.14 80) 60%, oklch(0.78 0.15 70));
  box-shadow: 0 0 90px 30px oklch(0.85 0.12 80 / .55), 0 0 220px 90px oklch(0.8 0.1 70 / .25);
  will-change: transform;
}
.silhouette { position: absolute; bottom: -2px; left: 0; width: 100%; height: 34%; min-height: 180px; }
.sil-ground { fill: oklch(0.13 0.02 280); }
.sil-windows rect { fill: var(--glow); opacity: 0; }
.day-head {
  position: absolute; top: clamp(4.5rem, 10vh, 7rem); left: 0; right: 0; text-align: center;
}
.day-head .eyebrow-day { color: oklch(0.98 0.01 85 / .85); margin-bottom: .8rem; }
.day-clock {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.5rem); letter-spacing: .02em; line-height: 1;
  color: oklch(0.99 0.005 85); font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 30px oklch(0.2 0.04 270 / .35);
}
.beats { position: absolute; left: 0; right: 0; top: 40%; transform: translateY(-50%); text-align: center; padding-inline: 6vw; }
.beat {
  position: absolute; left: 6vw; right: 6vw; top: 0;
  font-family: var(--serif); font-weight: 460;
  font-size: var(--step-2); line-height: 1.25; letter-spacing: -.01em;
  color: oklch(0.99 0.005 85); text-wrap: balance;
  opacity: 0; transform: translateY(24px);
  text-shadow: 0 2px 26px oklch(0.2 0.04 270 / .4);
}
/* daylight beats read dark on the pale sky; golden/dusk beats stay ivory */
.beat[data-beat="0"], .beat[data-beat="1"] {
  color: var(--espresso); text-shadow: 0 1px 18px oklch(0.97 0.02 85 / .55);
}
.beat[data-beat="0"] .beat-time, .beat[data-beat="1"] .beat-time { color: var(--ochre); }
.beat-time {
  display: block; font-family: var(--mono); font-size: .75rem;
  letter-spacing: .16em; margin-bottom: .9em; color: oklch(0.95 0.04 85 / .85);
}
.beat em { color: oklch(0.9 0.1 80); }
/* no-JS / reduced-motion fallback: golden frame + beats as a readable stack */
.no-anim .daywrap { height: auto; }
.no-anim .daystage { position: relative; height: auto; min-height: 100svh; padding: clamp(5rem, 12vh, 8rem) 0 0; }
.no-anim .sky-golden { opacity: 1; }
.no-anim .sun { transform: translateY(38vh); }
.no-anim .sil-windows rect { opacity: .9; }
.no-anim .beats { position: relative; top: auto; transform: none; padding-bottom: 32vh; }
.no-anim .beat { position: relative; left: auto; right: auto; opacity: 1; transform: none; margin-bottom: 2.2rem; }
.no-anim .day-clock { display: none; }
.no-anim .beat em { color: oklch(0.98 0.015 85); }

/* ── 7 · TRUST (night) ── */
.trust {
  background:
    radial-gradient(60% 40% at 80% 0%, oklch(0.29 0.04 278 / .8), transparent 70%),
    radial-gradient(50% 35% at 12% 28%, oklch(0.5 0.09 60 / .14), transparent 65%),
    var(--night);
  color: var(--candle);
  padding: clamp(5rem, 14vh, 9rem) 0;
}
.trust .eyebrow { color: var(--glow); }
.trust .section-title em { color: var(--glow); }
.counties { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.6vw, 1.6rem); }
.county {
  background: oklch(0.235 0.035 275 / .65);
  border: 1px solid oklch(1 0 0 / .09);
  border-radius: clamp(14px, 1.6vw, 20px);
  padding: 1.7rem 1.5rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.county h3 { font-family: var(--serif); font-weight: 520; font-size: var(--step-1); margin-bottom: .4em; }
.county p { font-size: .9rem; color: var(--candle-dim); }
.vetted { margin-top: calc(var(--space) * 1.5); max-width: 60ch; }
.vetted p { font-size: var(--step-1); line-height: 1.5; color: var(--candle-dim); }
.vetted strong { color: var(--candle); }
.grad-rule {
  border: none; height: 1.5px; width: 110px; margin-bottom: 1.6rem;
  background: var(--logo-grad); border-radius: 2px;
}
.faq-wrap { margin-top: calc(var(--space) * 2.4); }
.faq details {
  border-bottom: 1px solid oklch(1 0 0 / .12);
  padding-block: 1.1rem;
}
.faq summary {
  font-family: var(--serif); font-size: var(--step-1); font-weight: 500;
  cursor: pointer; list-style: none; position: relative; padding-right: 2.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: .2rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); color: var(--glow);
  transition: transform .35s var(--ease-out-expo);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-top: .8rem; max-width: 64ch; color: var(--candle-dim); }

/* ── 8 · CTA ── */
.cta {
  background:
    radial-gradient(55% 45% at 50% 78%, oklch(0.5 0.09 60 / .2), transparent 70%),
    linear-gradient(180deg, var(--night), oklch(0.155 0.025 272));
  color: var(--candle); text-align: center;
  padding: clamp(6rem, 18vh, 11rem) 0;
}
.cta .eyebrow { color: var(--glow); }
.cta-title {
  font-family: var(--serif); font-size: var(--step-5); font-weight: 440;
  font-variation-settings: 'opsz' 144;
  line-height: 1.02; letter-spacing: -.025em; margin-bottom: 1rem; text-wrap: balance;
}
.cta-title em { color: var(--glow); }
.cta-sub { color: var(--candle-dim); font-size: var(--step-1); margin-bottom: 2.4rem; }

/* ── FOOTER ── */
.footer {
  background: oklch(0.14 0.02 272); color: var(--candle-dim);
  padding: 3rem 0 2.4rem; font-size: .88rem;
}
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem 2.5rem; align-items: center; }
.footer .brand-word { font-size: 1.15rem; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--candle-dim); }
.footer-links a:hover { color: var(--candle); }
.footer-fine { grid-column: 1 / -1; font-size: .78rem; color: oklch(0.78 0.04 85 / .55); }
.made-by { justify-self: end; }
.made-by a {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em;
  text-decoration: none; color: oklch(0.78 0.04 85 / .5);
  transition: color .3s ease;
}
.made-by a:hover {
  background: var(--logo-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ── Scroll reveals — native CSS scroll-driven where supported, IO fallback ── */
.js .reveal { opacity: 0; transform: translateY(30px); }
.js .reveal.in-view {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo);
}
@supports (animation-timeline: view()) {
  .js .reveal {
    opacity: 1; transform: none;
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 32%;
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: none } }
/* SplitText targets: hidden pre-split to avoid FOUC, shown when split (or no-anim) */
.js:not(.no-anim) [data-split] { visibility: hidden; }
.js [data-split].split-done, .no-anim [data-split] { visibility: visible; }

/* ── Reduced motion: full branch ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
  .js .intro-1, .js .intro-2, .js .intro-3, .js .intro-4, .js .intro-5, .js .intro-6, .js .intro-7,
  .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .scroll-cue::after { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 1060px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .tier-star { transform: none; }
  .tier-star:hover { transform: translateY(-6px); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .counties { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-figure { transform: rotate(0); max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .made-by { justify-self: start; }
}
@media (max-width: 620px) {
  .steps, .tiers { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero { padding-bottom: 5.5rem; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .nav { gap: .8rem; }
  .nav-cta { margin-left: auto; }
  .beat { font-size: var(--step-1); }
  .scroll-cue { display: none; }
}
