/* =================================================================
   SOBER7 — editorial. Restraint over effects.
   Inter Tight (light headings) + Inter. Monochrome; imagery is the colour.
   ================================================================= */

:root {
  /* "Clear Morning" — the colours of a first sober morning.
     White ground for all reading, deep spruce ink, pastel sage (healing), sky (clarity),
     lavender (calm) and a little peach (warmth, care). Deliberately no amber,
     gold, burgundy or red: those read as beer, whisky, wine and alarm.
     Pastels are surfaces only; every text colour passes WCAG AA (4.5:1+). */
  --bg: #FFFFFF;            /* white: every text block sits on white */
  --bg-rgb: 255, 255, 255;
  --bg-2: #EEF5F1;          /* pastel mist: footer / quiet bands */
  --surface: #FFFFFF;
  --surface-rgb: 255, 255, 255;
  --ink: #1D2B2C;           /* spruce ink 13.6:1 */
  --ink-rgb: 29, 43, 44;
  --text: #1D2B2C;
  --text-2: #4A5A5B;        /* 6.7:1 */
  --text-3: #5C6B6C;        /* 5.2:1 */
  --line: #DCE5DF;
  --line-2: #BFCDC5;
  --field-line: #7A8F84;    /* input borders 3:1 */
  --line-guide: #DCE5DF;
  --gridline: rgba(29, 43, 44, 0.045);
  --accent: #2C6E68;        /* deep teal: actions, focus, progress (5.5:1) */
  --accent-hover: #235A55;
  --accent-soft: #DCEBF5;   /* sky */
  --sage: #DCEFE3;          /* done / healing */
  --ok: #2C7350;            /* done text + icons (5.3:1) */
  --lavender: #E7E2F3;      /* locked / waiting */
  --lav-ink: #625A8C;
  --peach: #FBE6D8;         /* care / safety notes */
  --peach-line: #EDC3A6;
  --peach-ink: #8A4A1F;
  --error: #A3432F;
  --error-bg: #F9E3DC;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading: "Inter Tight", var(--sans);
  --heading-weight: 300;
  --container: 1180px;
  --pad: 48px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 2; }

/* ---------- 12-column guide grid (faint) ---------- */
.section-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section-grid__frame {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: calc(var(--container) + var(--pad) * 2); padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(12, 1fr);
}
.section-grid__col { border-left: 1px solid var(--gridline); }
.section-grid__col:last-child { border-right: 1px solid var(--gridline); }

/* ---------- type ---------- */
.kicker { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-3); margin-bottom: 18px; }
.h1, .h2 { font-family: var(--heading); font-weight: var(--heading-weight); color: var(--ink); text-wrap: balance; }
.h2 { font-size: clamp(2.15rem, 3.85vw, 3.5rem); line-height: 1.02; letter-spacing: -0.032em; }
.h2 em { color: var(--text-3); }
.h3 { font-family: var(--heading); font-weight: 400; font-size: clamp(1.3rem, 1.8vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.lede { font-size: clamp(1rem, 1.2vw, 1.12rem); color: var(--text-2); max-width: 52ch; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.nowrap { white-space: nowrap; }

/* ---------- CTAs: primary in a box; secondary text + chevron ---------- */
.link-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em; line-height: 1;
  color: var(--text-2); padding: 6px 2px 6px 0; transition: color 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
  white-space: nowrap;
}
.link-cta:not(.link-cta--fill):hover { color: var(--ink); }
.link-cta .chev { width: 12px; height: 12px; transition: transform 0.22s var(--ease); }
.link-cta:hover .chev { transform: translateX(2px); }
.link-cta--fill {
  background: var(--accent); color: #fff; padding: 14px 20px; border-radius: 2px; border: 1px solid var(--accent);
}
.link-cta--fill:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.link-cta--ghost { border: 1px solid var(--field-line); color: var(--ink); padding: 14px 20px; border-radius: 2px; }
.link-cta--ghost:hover { border-color: var(--ink); }
.link-cta[disabled] { opacity: 0.35; pointer-events: none; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav { --nav-blur: 0px; --nav-bg: 0; position: fixed; top: 0; left: 0; right: 0; z-index: 900; pointer-events: none; }
.nav__frost {
  position: absolute; inset: 0 0 auto 0; height: clamp(110px, 15vh, 160px); pointer-events: none;
  backdrop-filter: blur(var(--nav-blur)); -webkit-backdrop-filter: blur(var(--nav-blur));
  background: linear-gradient(180deg, rgba(var(--bg-rgb), calc(var(--nav-bg) * 0.9)) 0%, rgba(var(--bg-rgb), calc(var(--nav-bg) * 0.5)) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
}
.nav__inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; pointer-events: auto; }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(-4px); transition: opacity 0.58s var(--ease) 0.06s, transform 0.58s var(--ease) 0.06s; }
.nav--logo-in .nav__logo { opacity: 1; transform: none; }
.nav__tile {
  width: 30px; height: 22px; border: 1.5px solid var(--ink); border-radius: 4px; display: grid; place-items: center;
  font-family: var(--heading); font-weight: 500; font-size: 11px; letter-spacing: -0.02em; color: var(--ink);
}
.nav__word { font-family: var(--heading); font-weight: 400; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); overflow: hidden; max-width: 90px; transition: max-width 0.48s var(--ease-out), opacity 0.42s var(--ease); }
.nav--logo-retract .nav__word { max-width: 0; opacity: 0; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__link { font-size: 13px; letter-spacing: 0.02em; color: var(--text-2); transition: color 0.22s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.nav__link:hover { color: var(--ink); }
.nav__link--cta { color: var(--accent); font-weight: 500; }
.nav--hide-links .nav__link--late { opacity: 0; transform: translateY(-5px); visibility: hidden; }
.nav--cta-visible .nav__link--late { opacity: 1; transform: none; visibility: visible; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video, .hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(0deg, rgba(var(--bg-rgb),0.92) 0%, rgba(var(--bg-rgb),0.55) 30%, rgba(var(--bg-rgb),0.1) 60%, rgba(var(--bg-rgb),0.35) 100%),
  linear-gradient(90deg, rgba(var(--bg-rgb),0.55) 0%, transparent 60%); }
.hero .container { padding-bottom: clamp(56px, 10vh, 110px); }
.hero__title { font-family: var(--heading); font-weight: var(--heading-weight); font-size: clamp(2.8rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.04em; color: var(--ink); text-shadow: 0 2px 30px rgba(var(--bg-rgb),0.6); }
.hero__copy { margin-top: 18px; font-family: var(--heading); font-weight: 300; font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--text-2); max-width: 30ch; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__meta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 10px 34px; font-size: 12px; letter-spacing: 0.04em; color: var(--text-3); }
.hero__meta b { color: var(--text); font-weight: 500; }

@keyframes heroLineIn {
  from { opacity: 0; filter: blur(11px); transform: translate3d(0, 18%, 0); }
  to   { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
}
.js .hero__seq { opacity: 0; filter: blur(8px); transform: translate3d(0, 14%, 0); }
.hero--ready .hero__seq { animation: heroLineIn 0.82s var(--ease-out) forwards; }
.hero--ready .hero__seq:nth-child(1) { animation-delay: 0.08s; }
.hero--ready .hero__seq:nth-child(2) { animation-delay: 0.28s; }
.hero--ready .hero__seq:nth-child(3) { animation-delay: 0.48s; }
.hero--ready .hero__seq:nth-child(4) { animation-delay: 0.72s; }
.hero--ready .hero__seq:nth-child(5) { animation-delay: 0.86s; }
.hero--ready .hero__seq:nth-child(6) { animation-delay: 1s; }

/* ---------- unlock (CTA + passcode) ---------- */
.unlock { display: inline-flex; align-items: stretch; flex-wrap: wrap; gap: 10px; }
.unlock__field { position: relative; display: flex; align-items: center; border: 1px solid var(--field-line); border-radius: 2px; background: rgba(var(--bg-rgb),0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color 0.22s var(--ease); }
.unlock__field:focus-within { border-color: var(--ink); }
.unlock__field svg { width: 14px; height: 14px; margin-left: 14px; color: var(--text-3); flex: none; }
.unlock__input { width: 170px; background: transparent; border: 0; outline: 0; color: var(--ink); font: 500 0.9rem/1 var(--sans); letter-spacing: 0.08em; padding: 14px 14px 14px 10px; }
.unlock__input::placeholder { color: var(--text-3); letter-spacing: 0.02em; }
.unlock__msg { flex-basis: 100%; min-height: 18px; font-size: 12px; color: var(--text-3); letter-spacing: 0.02em; }
.unlock__msg.is-error { color: var(--error); }
.unlock.is-shake { animation: shake 0.42s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- statement (word lighting) ---------- */
.statement-sec { position: relative; padding: clamp(100px, 16vh, 190px) 0; }
.statement { font-family: var(--heading); font-weight: var(--heading-weight); font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.22; letter-spacing: -0.027em; max-width: 26ch; text-wrap: pretty; }
.statement__w { color: rgba(var(--ink-rgb), 0.2); transition: color 0.4s var(--ease); }
.statement__w.is-lit { color: var(--ink); }
.statement__w--emph.is-lit { color: var(--accent); }

/* ---------- blocks ---------- */
.block { position: relative; padding: clamp(110px, 16vh, 180px) 0; }
.block::before, .statement-sec::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: clamp(120px, 18vh, 240px); pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(var(--bg-rgb),0.42) 38%, rgba(var(--bg-rgb),0.78) 62%, var(--bg) 100%);
}
.block__head { margin-bottom: clamp(44px, 7vh, 80px); }
.block__head .lede { margin-top: 18px; }

/* ---------- sticky "arc" (tiers + crossfading, scrubbed video) ---------- */
.arc { position: relative; height: 340vh; }
.arc-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: flex-end; }
.arc-sticky::before { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: clamp(100px, 14vh, 200px); pointer-events: none; background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb),0.72) 28%, rgba(var(--bg-rgb),0.2) 58%, transparent 100%); }
.arc__media { position: absolute; inset: 0; z-index: 0; }
.arc__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s var(--ease); }
.arc__vid.is-active { opacity: 1; }
.arc__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(var(--bg-rgb),0.92) 0%, rgba(var(--bg-rgb),0.5) 40%, rgba(var(--bg-rgb),0.05) 75%); }
.arc .container { padding-bottom: clamp(48px, 9vh, 100px); z-index: 4; }
.arc__title { max-width: 16ch; margin-bottom: 36px; }
.tiers { list-style: none; max-width: 760px; border-top: 1px solid var(--line); }
.tier { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text-3); transition: color 0.5s var(--ease); }
.tier__id { font-family: var(--heading); font-weight: 300; letter-spacing: -0.01em; }
.tier.is-active { color: var(--ink); }
.arc__bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); z-index: 5; width: calc(var(--p, 0) * 100%); opacity: 0.7; }

/* ---------- full-bleed scene ---------- */
.scene { position: relative; min-height: 96vh; display: flex; align-items: center; overflow: hidden; }
.scene__media { position: absolute; inset: 0; z-index: 0; }
.scene__bg { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1.08)); will-change: transform; }
.scene__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(var(--bg-rgb),0.88) 0%, rgba(var(--bg-rgb),0.45) 45%, transparent 75%), linear-gradient(0deg, rgba(var(--bg-rgb),0.65), transparent 40%), linear-gradient(180deg, var(--bg) 0%, transparent 18%); }
.scene .container { padding-top: 120px; padding-bottom: 120px; }
.scene__copy { max-width: 560px; }
.scene__list { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }
.scene__list li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--text-2); }
.scene__list li b { font-family: var(--heading); font-weight: 300; color: var(--ink); font-size: 0.95rem; letter-spacing: -0.01em; }

/* ---------- two-column facts ("builders") ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--pad); }
.facts__col h3 { font-family: var(--heading); font-weight: 400; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.facts__col h3 span { font-family: var(--sans); font-size: 12px; color: var(--text-3); font-weight: 500; }
.facts ul { list-style: none; }
.facts li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px 0; font-size: 0.95rem; color: var(--text-2); line-height: 1.45; }
.facts li b { font-weight: 500; color: var(--text); font-size: 0.82rem; letter-spacing: 0.02em; padding-top: 2px; }
.footnote { margin-top: 40px; font-size: 12px; color: var(--text-3); max-width: 72ch; }

/* ---------- image band ("factory") ---------- */
.band { position: relative; min-height: 92vh; display: flex; align-items: flex-start; isolation: isolate; overflow: hidden; }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: translate3d(0, var(--py, 0), 0) scale(1.12); will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb),0.35) 22%, transparent 45%, rgba(var(--bg-rgb),0.75) 100%); }
.band .container { padding-top: clamp(120px, 20vh, 220px); }
.band__inner { margin-left: calc(100% / 12 * 4); max-width: 560px; }
.band__body { margin-top: 18px; color: var(--text-2); max-width: 46ch; }
.band__actions { margin-top: 28px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 34px 28px 10px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat__n { font-family: var(--heading); font-weight: 300; font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -0.045em; color: var(--ink); }
.stat__u { font-size: 0.42em; color: var(--text-2); letter-spacing: -0.02em; margin-left: 4px; }
.stat__l { margin-top: 14px; color: var(--text-2); max-width: 26ch; }

/* ---------- sticky seven-day stepper ("output") ---------- */
.steps { position: relative; height: 520vh; }
.steps-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.steps__media { position: absolute; inset: 0; z-index: 0; }
.steps__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.9s var(--ease), transform 2.4s var(--ease-out); }
.steps__img.is-active { opacity: 0.55; transform: scale(1); }
.steps__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(var(--bg-rgb),0.92) 0%, rgba(var(--bg-rgb),0.55) 50%, rgba(var(--bg-rgb),0.25) 100%), linear-gradient(180deg, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%); }
.steps .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.steps__left { grid-column: 1 / span 5; }
.steps__right { grid-column: 7 / span 6; }
.gauge { position: relative; width: min(340px, 70vw); aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: var(--line); stroke-width: 1.5; }
.gauge__fill { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--ease); }
.gauge__tick { fill: #A9B9B0; transition: fill 0.4s var(--ease); }
.gauge__tick.is-on { fill: var(--accent); }
.gauge__center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge__day { font-family: var(--heading); font-weight: 300; font-size: clamp(4rem, 9vw, 7rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--ink); }
.gauge__lbl { font-size: 12px; letter-spacing: 0.08em; color: var(--text-3); margin-top: 6px; }
.step-copy { position: relative; min-height: 300px; }
.step-copy__item { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); pointer-events: none; }
.step-copy__item.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.step-copy__item p { margin-top: 16px; color: var(--text-2); max-width: 44ch; }
.step-copy__item .tags { margin-top: 22px; }

/* tags / chips */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.04em; font-weight: 500; color: var(--text); border: 1px solid var(--line-2); padding: 4px 8px; border-radius: 2px; background: rgba(var(--bg-rgb),0.3); }
.tag--solid { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- cards ("chips") ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line-guide); }
.card { border-right: 1px solid var(--line-guide); display: flex; flex-direction: column; }
.card__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease); filter: saturate(0.85); }
.card:hover .card__media img { transform: scale(1.07); filter: saturate(1); }
.card__body { padding: 18px 18px 8px; }
.card__body .tag { margin-bottom: 12px; }
.card__body h3 { font-family: var(--heading); font-weight: 400; font-style: italic; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); }
.card__body p { margin-top: 6px; font-size: 0.9rem; color: var(--text-3); }
.card__min { margin-top: 12px; font-size: 12px; color: var(--text-2); letter-spacing: 0.04em; }

/* ---------- compare (space) ---------- */
.compare { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; max-width: 760px; }
.compare h4 { font-weight: 500; font-size: 13px; letter-spacing: 0.04em; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.compare ul { list-style: none; }
.compare li { padding: 8px 0; color: var(--text-2); font-size: 0.95rem; border-bottom: 1px solid var(--line); }

/* ---------- closing ---------- */
.closing { position: relative; padding: clamp(140px, 22vh, 240px) 0 clamp(80px, 12vh, 140px); text-align: left; }
.closing .h2 { max-width: 14ch; }
.closing .hero__actions { margin-top: 36px; }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 46px; font-size: 13px; color: var(--text-3); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer h5 { font-size: 12px; font-weight: 500; color: var(--text); letter-spacing: 0.04em; margin-bottom: 12px; }
.footer a:hover { color: var(--ink); }
.footer__links { list-style: none; display: grid; gap: 6px; }
.footer__safety { max-width: 52ch; line-height: 1.55; }
.footer__safety b { color: var(--text); font-weight: 500; }
.footer__base { margin-top: 44px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__reset { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }

/* ---------- glossary overlay ---------- */
.gloss { position: fixed; inset: 0; z-index: 1000; display: flex; visibility: hidden; opacity: 0; transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s; }
.gloss.is-open { visibility: visible; opacity: 1; transition: opacity 0.5s var(--ease); }
.gloss__bg { position: absolute; inset: 0; background: rgba(var(--bg-rgb),0.78); backdrop-filter: blur(26px) saturate(1.1); -webkit-backdrop-filter: blur(26px) saturate(1.1); }
.gloss__panel { position: relative; width: 100%; overflow-y: auto; overscroll-behavior: contain; }
.gloss .container { padding-top: 110px; padding-bottom: 80px; }
.gloss__close { position: fixed; top: 18px; right: 24px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink); transition: border-color 0.22s var(--ease), transform 0.3s var(--ease); }
.gloss__close:hover { border-color: var(--ink); transform: rotate(90deg); }
.gloss__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 38px; }
.gloss__progress { font-size: 12px; color: var(--text-2); letter-spacing: 0.04em; }
.gloss__progress b { color: var(--ink); font-weight: 500; }
.gloss__list { list-style: none; border-top: 1px solid var(--line); }
.gloss__row { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); }
.gloss.is-open .gloss__row { opacity: 1; transform: none; filter: none; transition-delay: calc(0.15s + var(--i) * 0.06s); }
.gloss__link { display: grid; grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 2fr) 110px 24px; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--text-2); transition: color 0.25s var(--ease), padding 0.35s var(--ease-out), background 0.25s var(--ease); }
.gloss__link:hover { color: var(--ink); padding-left: 12px; background: linear-gradient(90deg, var(--sage), rgba(var(--bg-rgb),0) 70%); }
.gloss__day { font-family: var(--heading); font-weight: 300; font-size: 0.95rem; color: var(--text-3); }
.gloss__title { font-family: var(--heading); font-weight: 300; font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.gloss__desc { font-size: 0.92rem; line-height: 1.45; }
.gloss__status { font-size: 12px; letter-spacing: 0.04em; color: var(--text-3); }
.gloss__status.is-done { color: var(--ok); }
.gloss__arrow { width: 16px; height: 16px; color: var(--text-3); transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
.gloss__link:hover .gloss__arrow { transform: translateX(4px); color: var(--ink); }
.gloss__after { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.gloss__after a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.gloss__after a:hover { color: var(--ink); }
.gloss__after a span:first-child { font-family: var(--heading); font-weight: 300; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.01em; }
body.is-locked { overflow: hidden; }

/* =================================================================
   COURSE PAGES (day / certificate / resources)
   ================================================================= */
.page-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero .container { padding-bottom: clamp(48px, 8vh, 90px); }
.page-hero__crumb { font-size: 12px; letter-spacing: 0.04em; color: var(--text-2); margin-bottom: 22px; display: flex; gap: 10px; align-items: center; }
.page-hero__crumb a:hover { color: var(--ink); }
.page-hero__sub { margin-top: 16px; font-family: var(--heading); font-weight: 300; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--text-2); max-width: 44ch; letter-spacing: -0.015em; line-height: 1.3; }

.session { position: relative; padding: 70px 0 120px; }
.session .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 0; }
.session__rail { grid-column: 1 / span 3; padding-right: 32px; }
.session__main { grid-column: 4 / span 9; min-width: 0; }
.rail { position: sticky; top: 90px; }
.rail__clock { font-family: var(--heading); font-weight: 300; font-size: 2.4rem; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.rail__clock small { font-size: 0.45em; color: var(--text-3); letter-spacing: 0; margin-left: 4px; }
.rail__bar { height: 2px; background: var(--line); margin: 16px 0 22px; position: relative; }
.rail__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); width: 0; transition: width 0.6s var(--ease); }
.rail__list { list-style: none; border-top: 1px solid var(--line); }
.ico { width: 14px; height: 14px; flex: none; display: block; }
.rail__item { position: relative; }
.rail__item button { width: 100%; display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; text-align: left; color: var(--text-2); transition: color 0.25s var(--ease), padding 0.3s var(--ease-out); }
.rail__item.is-open button:hover { color: var(--ink); }
.rail__item.is-current button { color: var(--ink); padding-left: 8px; }
.rail__item.is-current::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--accent); }
.rail__item.is-done .rail__ico { color: var(--ok); }
.rail__item.is-open:not(.is-done) .rail__ico { color: var(--accent); }
.rail__item.is-locked .rail__ico { color: var(--lav-ink); }
.rail__item.is-locked button { color: var(--text-3); cursor: not-allowed; }
.rail__item.is-locked .rail__name { opacity: 0.7; }
.rail__ico { display: grid; place-items: center; }
.rail__min { font-size: 11px; letter-spacing: 0.04em; color: var(--text-3); }
.rail__legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 11px; letter-spacing: 0.04em; color: var(--text-3); }
.rail__legend span { display: inline-flex; align-items: center; gap: 6px; }
.rail__legend span:nth-child(1) .ico { color: var(--ok); }
.rail__legend span:nth-child(2) .ico { color: var(--accent); }
.rail__legend span:nth-child(3) .ico { color: var(--lav-ink); }

.seg { padding: 0 0 40px; scroll-margin-top: 90px; }
.seg.is-entering { animation: segIn 0.6s var(--ease-out); }
@keyframes segIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.seg__state { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.04em; color: var(--text-2); border: 1px solid var(--line-2); padding: 8px 12px; border-radius: 2px; }
.seg__state:not(.is-done) { color: var(--accent); border-color: #A9CBE0; background: var(--accent-soft); }
.seg__state.is-done { color: var(--ok); border-color: var(--ok); background: var(--sage); }
.seg__foot { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line-guide); display: flex; flex-direction: column; gap: 14px; }
.seg__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.seg__actions .link-cta--fill .chev { width: 12px; height: 12px; }
.seg__msg { font-size: 0.9rem; color: var(--text-3); min-height: 1.4em; }
.seg__msg:empty { min-height: 0; }
.seg__msg.is-error { color: var(--error); }
.seg__msg.is-ok { color: var(--ok); }
.seg__msg a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.unlock-note { margin-top: 30px; max-width: 760px; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 18px 20px; border: 1px solid #B5D8C2; background: var(--sage); color: var(--text-2); font-size: 0.95rem; }
.unlock-note b { color: var(--ink); font-weight: 500; }
.unlock-note__ico { color: var(--ok); padding-top: 3px; }
.seg__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.seg__time { font-size: 12px; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.seg__time .tag { font-size: 10px; }
.seg__check { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.04em; color: var(--text-2); border: 1px solid var(--line-2); padding: 9px 12px; border-radius: 2px; transition: all 0.25s var(--ease); }
.seg__check:hover { color: var(--ink); border-color: var(--ink); }
.seg__check svg { width: 12px; height: 12px; }
.seg__check.is-done { color: #fff; background: var(--ok); border-color: var(--ok); }
.prose { color: var(--text-2); max-width: 64ch; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--text); font-weight: 500; }
.points { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); max-width: 720px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 0.96rem; }
.points li::before { content: attr(data-n); font-family: var(--heading); color: var(--text-3); font-size: 0.85rem; padding-top: 1px; }

.player { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); border: 1px solid var(--line-guide); overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player__cover { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 26px; background: linear-gradient(0deg, rgba(var(--bg-rgb),0.85), rgba(var(--bg-rgb),0.1) 60%); transition: opacity 0.4s var(--ease); cursor: pointer; }
.player.is-playing .player__cover { opacity: 0; pointer-events: none; }
.player__title { font-family: var(--heading); font-weight: 300; font-size: clamp(1.2rem, 2vw, 1.7rem); color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; max-width: 22ch; }
.player__len { font-size: 12px; color: var(--text-2); margin-top: 6px; letter-spacing: 0.04em; }
.player__play { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(var(--ink-rgb),0.18); transition: transform 0.3s var(--ease-out); }
.player__cover:hover .player__play { transform: scale(1.08); }
.player__play svg { width: 18px; height: 18px; margin-left: 3px; }
.player__note { margin-top: 10px; font-size: 12px; color: var(--text-3); letter-spacing: 0.02em; }
.player__note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.player__note a:hover { color: var(--ink); }
.player__thumb { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.quote { margin-top: 30px; padding-left: 22px; border-left: 1px solid var(--line-2); font-family: var(--heading); font-weight: 300; font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); max-width: 30ch; }
.quote cite { display: block; margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; }

.faq { border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-family: var(--heading); font-weight: 300; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 18px; height: 18px; position: relative; margin-top: 4px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; height: 1px; background: var(--text-2); transition: transform 0.3s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq__a { padding: 0 0 20px; color: var(--text-2); max-width: 64ch; }

.quiz { margin-top: 44px; max-width: 760px; }
.quiz__q { padding: 22px 0; border-top: 1px solid var(--line); }
.quiz__q p { color: var(--ink); margin-bottom: 14px; }
.quiz__opts { display: grid; gap: 8px; }
.quiz__opt { text-align: left; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 2px; color: var(--text-2); font-size: 0.95rem; transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease); }
.quiz__opt:hover:not([disabled]) { border-color: var(--line-2); color: var(--ink); }
.quiz__opt.is-right { border-color: var(--ok); color: var(--ink); background: var(--sage); }
.quiz__opt.is-wrong { border-color: var(--error); color: var(--ink); background: var(--error-bg); }
.quiz__opt[disabled] { cursor: default; }
.quiz__why { margin-top: 12px; font-size: 0.9rem; color: var(--text-2); display: none; }
.quiz__q.is-answered .quiz__why { display: block; }

.wb { display: grid; gap: 26px; max-width: 760px; }
.wb__item label { display: block; color: var(--ink); margin-bottom: 4px; }
.wb__item .hint { font-size: 0.86rem; color: var(--text-3); margin-bottom: 10px; }
.wb textarea, .wb input[type="text"], .field {
  width: 100%; background: var(--surface); border: 1px solid var(--field-line); border-radius: 2px; color: var(--ink);
  font: 400 0.98rem/1.55 var(--sans); padding: 14px 16px; resize: vertical; outline: 0; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.wb textarea { min-height: 110px; }
.wb textarea:focus, .wb input:focus, .field:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.wb__saved { font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; min-height: 18px; }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.scale button { padding: 10px 0; background: var(--surface); border: 1px solid var(--field-line); border-radius: 2px; color: var(--text-2); font-size: 0.9rem; transition: all 0.2s var(--ease); }
.scale button:hover { border-color: var(--line-2); color: var(--ink); }
.scale button.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.scale__ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 6px; letter-spacing: 0.04em; }

.callout { margin-top: 28px; border: 1px solid var(--line-2); padding: 20px 22px; max-width: 760px; color: var(--text-2); font-size: 0.95rem; background: var(--surface); }
.callout b { color: var(--ink); font-weight: 500; }
.callout--warn { border-color: var(--peach-line); background: var(--peach); color: var(--peach-ink); }
.callout--warn b { color: var(--accent); }

.daynav { border-top: 1px solid var(--line-guide); display: grid; grid-template-columns: 1fr 1fr; }
.daynav a { padding: 40px 0; display: flex; flex-direction: column; gap: 6px; color: var(--text-3); font-size: 12px; letter-spacing: 0.04em; transition: color 0.25s var(--ease); }
.daynav a span { font-family: var(--heading); font-weight: 300; font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--text-2); letter-spacing: -0.02em; transition: color 0.25s var(--ease); }
.daynav a:hover span { color: var(--ink); }
.daynav a + a { text-align: right; align-items: flex-end; border-left: 1px solid var(--line-guide); }

.complete-bar { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.complete-bar .muted { font-size: 0.9rem; }

/* gate */
.gate { min-height: 100svh; display: flex; align-items: center; position: relative; overflow: hidden; }
.gate__box { max-width: 560px; }
.gate .lede { margin-top: 16px; }
.gate .hero__actions { margin-top: 30px; }

/* certificate */
.cert-wrap { padding: 40px 0 120px; }
.cert-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 40px; max-width: 640px; }
.cert-form .field { flex: 1 1 260px; }
.cert-canvas { width: 100%; height: auto; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 80px rgba(var(--ink-rgb),0.12); }
.cert-actions { margin-top: 22px; display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; }

/* resources */
.access { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; margin-top: 26px; }
.access__n { font-family: var(--heading); font-weight: 300; font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -0.045em; line-height: 1; color: var(--ink); }
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line-guide); border-top: 1px solid var(--line-guide); }
.res { border-right: 1px solid var(--line-guide); border-bottom: 1px solid var(--line-guide); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.res h3 { font-family: var(--heading); font-weight: 400; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); }
.res p { color: var(--text-2); font-size: 0.92rem; flex: 1; }
.res .link-cta { align-self: flex-start; }
/* resources: day-by-day unlocks */
.unlock-strip { margin-top: 30px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); max-width: 760px; border-top: 1px solid var(--line); }
.unlock-strip__step .ico { color: var(--lav-ink); }
.unlock-strip__step { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 12px; letter-spacing: 0.04em; color: var(--text-3); border-top: 2px solid transparent; margin-top: -1px; transition: color 0.25s var(--ease); }
.unlock-strip__step.is-open { color: var(--ink); border-top-color: var(--ok); }
.unlock-strip__step.is-open .ico { color: var(--ok); }
.unlock-strip__step:hover { color: var(--ink); }
.res-day { margin-bottom: 72px; scroll-margin-top: 90px; }
.res-day__head { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; padding-bottom: 18px; margin-bottom: 0; border-bottom: 1px solid var(--line-2); }
.res-day__ico { width: 40px; height: 40px; border: 1px solid #CFC7E6; border-radius: 50%; display: grid; place-items: center; color: var(--lav-ink); background: var(--lavender); }
.res-day__ico.is-open { color: var(--ok); border-color: var(--ok); background: var(--sage); }
.res-day__status { font-size: 12px; letter-spacing: 0.04em; color: var(--text-3); text-align: right; }
.res-day__status a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.res-day.is-locked .h3 { color: var(--text-2); }
.res-grid--day { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
.res-grid--help { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.res { position: relative; min-width: 0; }
.res__kind { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); flex: 0 !important; }
.res__lock { position: absolute; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.04em; color: var(--text-3); }
.res__lock.is-open { color: var(--ok); }
.res.is-locked { background: repeating-linear-gradient(135deg, var(--lavender) 0 10px, #EEEAF6 10px 11px); min-height: 160px; }
.res.is-locked h3 { color: var(--text-2); }
.res.is-locked p:last-child { color: var(--text-3); }
.res--video .player { margin-top: 4px; }
.res--video .player__title { font-size: 1.05rem; }
.res--video .player__play { width: 48px; height: 48px; }
.res__body { color: var(--text-2); font-size: 0.92rem; }
.res__body b { color: var(--ink); font-weight: 500; }
.res__body .checkin { margin-top: 14px; }
.tool-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tool-split p { margin: 10px 0 14px; }
.help-num { font-family: var(--heading); font-weight: 300; font-size: 2.4rem; letter-spacing: -0.03em; color: var(--ink) !important; user-select: all; flex: 0 !important; }
@media (max-width: 820px) {
  .res-grid--day, .res-grid--help { grid-template-columns: 1fr; }
  .tool-split { grid-template-columns: 1fr; }
  .unlock-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .res-day__head { grid-template-columns: 40px 1fr; }
  .res-day__status { grid-column: 1 / -1; text-align: left; }
}
.res-vids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.timer { font-family: var(--heading); font-weight: 300; font-size: 2.6rem; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.checkin { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; margin-top: 18px; max-width: 760px; }
.checkin button { aspect-ratio: 1; background: var(--surface); border: 1px solid var(--line-2); border-radius: 2px; font-size: 11px; color: var(--text-3); display: grid; place-items: center; transition: all 0.2s var(--ease); }
.checkin button:hover:not([disabled]) { border-color: var(--line-2); color: var(--ink); }
.checkin button.is-on { background: var(--sage); border-color: var(--ok); color: var(--ok); font-weight: 600; }
.checkin button[disabled] { opacity: 0.3; cursor: default; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 1200; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; padding: 12px 18px; box-shadow: 0 10px 30px rgba(var(--ink-rgb),0.2); border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  :root { --pad: 32px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { border-bottom: 1px solid var(--line-guide); }
  .band__inner { margin-left: calc(100% / 12 * 2); }
  .gloss__link { grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.4fr) 24px; }
  .gloss__status { display: none; }
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  :root { --pad: 20px; }
  .section-grid__frame { grid-template-columns: repeat(4, 1fr); }
  .section-grid__col:nth-child(n+5) { display: none; }
  .section-grid__col:nth-child(4) { border-right: 1px solid var(--gridline); }
  .nav__link:not(.nav__link--cta):not(.nav__link--keep) { display: none; }
  .facts { grid-template-columns: 1fr; gap: 48px; }
  .band__inner { margin-left: 0; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0 22px !important; }
  .steps .container { grid-template-columns: 1fr; gap: 32px; align-content: center; }
  .steps__left, .steps__right { grid-column: 1; }
  .gauge { width: min(200px, 50vw); }
  .step-copy { min-height: 260px; }
  .compare { grid-template-columns: 1fr; gap: 28px; }
  .tier { grid-template-columns: 96px 1fr; font-size: 0.95rem; }
  .gloss__link { grid-template-columns: 54px minmax(0, 1fr) 20px; gap: 12px; }
  .gloss__desc { display: none; }
  .gloss__after { grid-template-columns: 1fr; }
  .session .container { grid-template-columns: 1fr; }
  .session__rail, .session__main { grid-column: 1; padding-right: 0; }
  .rail { position: static; margin-bottom: 44px; }
  .footer__grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .res-vids { grid-template-columns: 1fr; }
  .checkin { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .unlock__input { width: 100%; }
  .unlock__field { flex: 1 1 200px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero__actions .link-cta--fill { flex: 1 1 auto; }
  .daynav a { padding: 28px 0; }
  .daynav a span { font-size: 1.1rem; }
  .scale { grid-template-columns: repeat(5, 1fr); }
  .seg__head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero__seq { opacity: 1; transform: none; filter: none; }
}
@media print {
  .nav, .footer, .daynav { display: none; }
}


/* =================================================================
   READABILITY LAYER
   Imagery and video run at full strength (no veils). Every piece of
   text sits on a solid white panel, so contrast never depends on
   what is behind it.
   ================================================================= */
.panel {
  background: var(--surface); color: var(--ink);
  padding: clamp(24px, 3.2vw, 44px);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(var(--ink-rgb), 0.04), 0 24px 60px rgba(var(--ink-rgb), 0.14);
  position: relative; z-index: 2;
}
/* media at full colour, gently unified with a pastel grade */
.hero__video, .hero__img, .arc__vid, .scene__bg, .band__bg, .steps__img { filter: saturate(0.92) brightness(1.03); }
.hero__scrim, .arc__scrim, .scene__scrim, .steps__scrim { background: none; }
.band::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 14%); }
.arc-sticky::before { height: clamp(60px, 9vh, 120px); }
.steps__img.is-active { opacity: 1; }
.hero__title { text-shadow: none; }

/* nav: solid frosted white so links stay readable over imagery */
.nav__frost { height: 64px; background: rgba(var(--surface-rgb), calc(0.78 + var(--nav-bg) * 0.2)); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); -webkit-mask-image: none; mask-image: none; border-bottom: 1px solid rgba(var(--ink-rgb), calc(0.04 + var(--nav-bg) * 0.04)); }

/* panel placements */
.hero__panel { max-width: 640px; }
.hero__panel .hero__meta { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero .container { padding-bottom: clamp(32px, 7vh, 80px); }
.arc .container { padding-bottom: clamp(32px, 7vh, 80px); }
.arc__panel { max-width: 780px; }
.arc__panel .arc__title { margin-bottom: 26px; }
.scene__copy.panel { max-width: 620px; }
.band__inner.panel { max-width: 600px; }
.band .container { padding-top: clamp(110px, 18vh, 200px); }
.steps .container { display: block; }
.steps__panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 60px); align-items: center; max-width: 1040px; }
.steps__panel .steps__left, .steps__panel .steps__right { grid-column: auto; }
.steps__panel .gauge { width: min(300px, 100%); margin: 0 auto; }
.page-hero .container > .panel, .gate__box { max-width: 680px; }
.gate__box { background: var(--surface); padding: clamp(24px, 3.2vw, 44px); border-radius: 4px; box-shadow: 0 24px 60px rgba(var(--ink-rgb), 0.14); position: relative; z-index: 2; }
.gate .container { position: relative; z-index: 2; }
.page-hero { min-height: 72vh; }

/* video covers: title on a white label, image left clean */
.player__cover { background: none; align-items: flex-end; padding: 18px; }
.player__cover > div:first-child { background: var(--surface); padding: 12px 16px; border-radius: 3px; box-shadow: 0 10px 30px rgba(var(--ink-rgb), 0.16); max-width: calc(100% - 96px); }
.player__title { color: var(--ink); }
.player__len { color: var(--text-2); }

@media (max-width: 820px) {
  .steps__panel { grid-template-columns: 1fr; gap: 18px; }
  .steps__panel .gauge { width: min(170px, 46vw); }
  .step-copy { min-height: 280px; }
  .panel, .gate__box { padding: 22px 20px; }
  .hero .container, .arc .container { padding-bottom: 20px; }
}

/* ---------- soft scrolling (Lenis) ---------- */
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: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* =================================================================
   DAY LOCKS — one day per calendar day
   done: sage + tick · open/progress: sky + open lock
   waiting (opens at midnight): peach + lock with clock · locked: lavender
   ================================================================= */
.day-locks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 24px; }
.day-lock { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 8px; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; letter-spacing: 0.02em; color: var(--text-2); background: var(--surface); transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
.day-lock .ico { width: 16px; height: 16px; }
.day-lock:hover { transform: translateY(-2px); }
.day-lock.is-done { background: var(--sage); border-color: #B5D8C2; color: var(--ok); }
.day-lock.is-open, .day-lock.is-progress { background: var(--accent-soft); border-color: #A9CBE0; color: var(--accent); font-weight: 600; }
.day-lock.is-waiting { background: var(--peach); border-color: var(--peach-line); color: var(--peach-ink); }
.day-lock.is-locked { background: var(--lavender); border-color: #D6CEEA; color: var(--lav-ink); }
.day-lock.is-locked, .day-lock.is-waiting { cursor: not-allowed; }
.day-lock.is-current { box-shadow: 0 0 0 2px var(--accent); }
.day-locks__note { margin-top: 12px; font-size: 12px; color: var(--text-3); line-height: 1.5; }

.step-copy { min-height: 360px; }
.day-status { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; }
.day-status:empty { display: none; }
.day-status__pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; border: 1px solid transparent; }
.day-status__pill b { font-weight: 600; }
.day-status__detail { color: var(--text-2); }
.day-status.is-done .day-status__pill { background: var(--sage); color: var(--ok); border-color: #B5D8C2; }
.day-status.is-open .day-status__pill, .day-status.is-progress .day-status__pill { background: var(--accent-soft); color: var(--accent); border-color: #A9CBE0; }
.day-status.is-waiting .day-status__pill { background: var(--peach); color: var(--peach-ink); border-color: var(--peach-line); }
.day-status.is-locked .day-status__pill { background: var(--lavender); color: var(--lav-ink); border-color: #D6CEEA; }
.day-status .link-cta { color: var(--accent); font-weight: 600; }

/* glossary rows */
.gloss__link { grid-template-columns: 100px minmax(0, 1.1fr) minmax(0, 1.7fr) 170px 24px; }
.gloss__day { display: inline-flex; align-items: center; gap: 8px; }
.gloss__ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); }
.gloss__status { display: flex; flex-direction: column; gap: 2px; }
.gloss__status b { font-weight: 600; font-size: 12px; letter-spacing: 0.02em; }
.gloss__status small { font-size: 11px; color: var(--text-3); letter-spacing: 0.02em; }
.gloss__row.is-done .gloss__ico { background: var(--sage); border-color: #B5D8C2; color: var(--ok); }
.gloss__row.is-done .gloss__status b { color: var(--ok); }
.gloss__row.is-open .gloss__ico, .gloss__row.is-progress .gloss__ico { background: var(--accent-soft); border-color: #A9CBE0; color: var(--accent); }
.gloss__row.is-open .gloss__status b, .gloss__row.is-progress .gloss__status b { color: var(--accent); }
.gloss__row.is-waiting .gloss__ico { background: var(--peach); border-color: var(--peach-line); color: var(--peach-ink); }
.gloss__row.is-waiting .gloss__status b { color: var(--peach-ink); }
.gloss__row.is-locked .gloss__ico { background: var(--lavender); border-color: #D6CEEA; color: var(--lav-ink); }
.gloss__row.is-locked .gloss__status b { color: var(--lav-ink); }
.gloss__row.is-locked .gloss__title, .gloss__row.is-waiting .gloss__title { color: var(--text-2); }
.gloss__row.is-locked .gloss__link, .gloss__row.is-waiting .gloss__link { cursor: not-allowed; }
.gloss__row.is-locked .gloss__link:hover, .gloss__row.is-waiting .gloss__link:hover { padding-left: 0; background: none; }
.gloss__row.is-locked .gloss__arrow, .gloss__row.is-waiting .gloss__arrow { opacity: 0.25; }

/* locked day page + day navigation */
.lock-badge { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 18px; }
.lock-badge .ico { width: 24px; height: 24px; }
.lock-badge.is-waiting { background: var(--peach); color: var(--peach-ink); }
.lock-badge.is-locked { background: var(--lavender); color: var(--lav-ink); }
.lock-countdown { margin-top: 18px; font-family: var(--heading); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.lock-countdown small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; color: var(--text-3); margin-top: 8px; }
.daynav__locked { padding: 40px 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; border-left: 1px solid var(--line-guide); color: var(--text-3); font-size: 12px; letter-spacing: 0.04em; cursor: not-allowed; }
.daynav__locked span { font-family: var(--heading); font-weight: 300; font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--text-3); letter-spacing: -0.02em; }
.daynav__locked em { display: inline-flex; align-items: center; gap: 6px; color: var(--lav-ink); }

@media (max-width: 1024px) {
  .gloss__link { grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.3fr) 140px 20px; }
}
@media (max-width: 820px) {
  .gloss__link { grid-template-columns: 82px minmax(0, 1fr) auto; gap: 10px; }
  .gloss__desc, .gloss__arrow { display: none; }
  .gloss__status { display: flex; text-align: right; }
  .gloss__status small { display: none; }
  .day-locks { gap: 4px; }
  .day-lock { font-size: 10px; padding: 8px 0 6px; }
  .day-locks__note { display: none; }
  .step-copy { min-height: 330px; }
  .daynav__locked { padding: 28px 0; }
  .daynav__locked span { font-size: 1.1rem; }
}
