/* Emenla. Warm cream canvas, one grotesk, violet only for her words. */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/hanken-grotesk-latin-wght-normal.woff2) format('woff2-variations');
  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: 'Hanken Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/hanken-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Her voice: Instrument Serif, italic, self-hosted */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-latin-400-normal.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: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-latin-400-italic.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: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-latin-ext-400-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-voice: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --canvas: #fcf9f7;
  --panel: #ffffff;
  --clay: #d1cfcd;
  --haze: #ecedef;
  --ink: #000000;
  --stone: #575757;
  --ash: #717171;
  --night: #05060b;
  --night-text: #f4f1ee;
  --night-muted: #b9b5b0;
  --voice: #5b48d6;
  --voice-muted: rgba(91, 72, 214, 0.12);
  --spot-a: #fcf9f7;
  --spot-b: #e6dccf; /* sampled from the footage's wall edge */
  --cream-rgb: 252, 249, 247;

  --font: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --text-hook: clamp(34px, 4.6vw, 66px);
  --text-display: clamp(36px, 4vw, 52px);
  --text-heading-lg: clamp(30px, 3vw, 38px);
  --text-heading: clamp(28px, 2.8vw, 36px);
  --text-heading-sm: clamp(24px, 2.2vw, 28px);
  --text-subheading: clamp(20px, 1.8vw, 24px);
  --text-body-lg: clamp(18px, 1.5vw, 20px);
  --text-body: 18px;
  --text-body-sm: 16px;
  --text-caption: 14px;
  --text-micro: 12px;
  --measure: 68ch;

  --radius-card: 25px;
  --radius-button: 12px;
  --radius-pill: 100px;

  --shadow-sm: rgba(0, 0, 0, 0.06) 0 1px 5px 0;
  --shadow-md: rgba(0, 0, 0, 0.05) 0 2px 10px 0;
  --shadow-xl: rgba(0, 0, 0, 0.08) 0 8px 30px 0, rgba(0, 0, 0, 0.05) 0 2px 8px 0;
  --shadow-device: rgba(0, 0, 0, 0.18) 0 24px 60px -10px, rgba(0, 0, 0, 0.08) 0 4px 14px 0;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 8vw, 96px);
  --card-pad: clamp(20px, 2.5vw, 28px);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --t-reveal: 640ms;

  --hero-h: 520vh;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--voice-muted); }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--panel);
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-xl);
}
.skip:focus { top: 16px; }

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

/* The environment layer: one fixed spotlight gradient and a static paper grain */
.env {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--canvas);
}
.env::before {
  content: '';
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 38%, var(--spot-a) 0%, rgba(252, 249, 247, 0) 70%),
    radial-gradient(ellipse 120% 90% at 50% 60%, rgba(233, 226, 220, 0) 40%, var(--spot-b) 100%);
  animation: envDrift 90s ease-in-out -30s infinite alternate;
  will-change: transform;
}
.env::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
@keyframes envDrift {
  from { transform: translate3d(-2%, -1.5%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

/* Type roles */
.hook, .display, .heading-lg, .heading, .heading-sm, .subheading {
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hook { font-size: var(--text-hook); line-height: 1.08; letter-spacing: -0.025em; }
/* Her voice: the serif italic, and on the two voice headlines a slow violet gradient */
.voice {
  font-family: var(--font-voice);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.hook.voice {
  font-size: clamp(46px, 6.2vw, 92px);
  line-height: 1.0;
  text-shadow: none;
}
/* Light periwinkle into deep indigo, and the colours travel left to right on a seamless loop:
   the gradient repeats every two text widths, so the sweep never jumps */
.hook.voice,
.close .display.voice {
  background-image: linear-gradient(90deg, #6c79da 0%, #5b48d6 25%, #3428a6 50%, #5b48d6 75%, #6c79da 100%);
  background-size: 400% 100%;
  background-position: 66.667% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: voiceSweep 8s linear infinite;
}
.close .display.voice {
  background-image: linear-gradient(90deg, #c9beff 0%, #a493f5 25%, #7d6ae0 50%, #a493f5 75%, #c9beff 100%);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.0;
}
@keyframes voiceSweep {
  from { background-position: 66.667% 50%; }
  to { background-position: 0% 50%; }
}
/* The hook arrives as one line: it drifts down and settles with the band's own progress */
.band--1 .hook {
  --p: clamp(0, var(--k, 1) / 0.55, 1);
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * -18px));
  will-change: transform, opacity;
}
.display { font-size: var(--text-display); line-height: 1.1; }
.heading-lg { font-size: var(--text-heading-lg); line-height: 1.2; }
.heading { font-size: var(--text-heading); line-height: 1.2; }
.heading-sm { font-size: var(--text-heading-sm); line-height: 1.3; letter-spacing: -0.015em; }
.subheading { font-size: var(--text-subheading); line-height: 1.4; letter-spacing: -0.012em; font-weight: 400; }
.body-lg { font-size: var(--text-body-lg); line-height: 1.45; }
.body-sm { font-size: var(--text-body-sm); line-height: 1.6; }
.caption { font-size: var(--text-caption); line-height: 1.6; }
.muted { color: var(--stone); }
.meta { color: var(--ash); }
.voice { color: var(--voice); }
.strong { font-weight: 500; }
.centered { text-align: center; }
.mono {
  font-family: var(--mono);
  font-size: var(--text-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}
.measure { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose a { text-decoration: underline; }
.cite { font-size: var(--text-caption); color: var(--ash); display: block; margin-top: 6px; }
.cite a { color: var(--stone); }

/* Layout */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2 * var(--gutter), 780px); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.7); }
.section-head { text-align: center; margin-inline: auto; max-width: 780px; }
.section-head > * + * { margin-top: 18px; }
.section-head .lede { text-align: left; margin-top: 28px; }
.stack > * + * { margin-top: 16px; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--clay);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--stone);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clay);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 12px 22px;
  border-radius: var(--radius-button);
  border: 1px solid var(--night);
  background: var(--night);
  color: var(--night-text);
  font-size: var(--text-body-sm);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 220ms var(--ease-soft), border-color 220ms var(--ease-soft), transform 220ms var(--ease-soft);
}
.btn:hover { background: #1a1b22; border-color: #1a1b22; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--canvas); border-color: var(--ink); }
.btn--light {
  background: var(--canvas);
  color: var(--ink);
  border-color: var(--canvas);
}
.btn--light:hover { background: #ffffff; border-color: #ffffff; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Nav */
/* The nav, the Hims way: the wordmark on the left, one white pill on the right, nothing else,
   and no bar behind them at any point. The page shows through all the way down. */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  padding: 16px 0;
  pointer-events: none;
}
.nav__row > * { pointer-events: auto; }
.nav .nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: auto;
  max-width: none;
  margin: 0;
  padding-inline: clamp(20px, 2.8vw, 40px);
}
.nav__brand { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.btn__icon { width: 17px; height: 17px; fill: currentColor; margin-top: -2px; }
.nav .btn--white { gap: 8px; padding: 12px 20px 12px 16px; }
.nav .btn--white {
  background: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  box-shadow: 0 8px 30px rgba(5, 6, 11, 0.08), 0 1px 3px rgba(5, 6, 11, 0.05);
  transition: box-shadow 220ms var(--ease-soft), transform 220ms var(--ease-soft), background-color 220ms var(--ease-soft);
}
.nav .btn--white:hover { background: #ffffff; box-shadow: 0 12px 36px rgba(5, 6, 11, 0.12), 0 1px 3px rgba(5, 6, 11, 0.06); transform: translateY(-1px); }
/* A faint cream halo keeps the wordmark readable over the video and the cards */
.nav__brand {
  text-shadow: 0 0 1px rgba(var(--cream-rgb), 0.95), 0 1px 8px rgba(var(--cream-rgb), 0.9), 0 4px 20px rgba(var(--cream-rgb), 0.8);
  transition: color 300ms var(--ease-soft);
}
/* Over the dark closing band the wordmark turns cream */
.nav--dark .nav__brand { color: var(--night-text); text-shadow: none; }
.nav__brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.nav__mark { width: 28px; height: 28px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; }
.footer__mark { width: 32px; height: 32px; }
@media (max-width: 720px) {
  .nav { padding: 12px 0; }
  .nav__brand { font-size: 20px; }
  .nav .btn--white { padding: 11px 18px; }
}

/* ---------- The hero ---------- */
.hero {
  position: relative;
  height: var(--hero-h);
  margin-top: 0;
}
.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--canvas);
  isolation: isolate;
}
.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  background: var(--canvas);
}
.hero__video {
  opacity: 0;
  transform: translateZ(0);
  will-change: transform;
  transition: opacity 500ms var(--ease-soft);
}
.hero__stage.video-ready .hero__video { opacity: 1; }
.hero__stage.video-failed .hero__video { display: none; }
.hero__poster { opacity: 0; transition: opacity 400ms var(--ease-soft); }
.hero__poster.is-set { opacity: 1; }

/* Layer 1: the global base scrim, a cream vignette so no frame is ever raw behind the page */
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(var(--cream-rgb), 0.55) 0%, rgba(var(--cream-rgb), 0.3) 7%, rgba(var(--cream-rgb), 0) 14%),
    linear-gradient(to top, rgba(var(--cream-rgb), 1) 0%, rgba(var(--cream-rgb), 0.85) 9%, rgba(var(--cream-rgb), 0) 30%),
    radial-gradient(ellipse 120% 90% at 50% 45%, rgba(var(--cream-rgb), 0) 45%, rgba(var(--cream-rgb), 0.35) 100%);
}

/* The loading ring */
.hero__ring {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  opacity: 0;
  transition: opacity 300ms var(--ease-soft);
  pointer-events: none;
}
.hero__ring.is-on { opacity: 1; }
.hero__ring svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.hero__ring circle {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.hero__ring .ring-track { stroke: var(--clay); }
.hero__ring .ring-fill {
  stroke: var(--stone);
  stroke-dasharray: 126;
  stroke-dashoffset: calc(126 - 126 * var(--ld, 0));
  transition: stroke-dashoffset 120ms linear;
}
.hero__chevron {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  color: var(--stone);
  opacity: 0;
  transition: opacity 300ms var(--ease-soft);
  pointer-events: none;
}
.hero__stage.video-failed .hero__chevron,
.hero__stage.video-ready .hero__chevron { opacity: 0.8; }
.hero__stage.video-ready .hero__chevron { animation: nudge 2.6s var(--ease-soft) -1s infinite; }
@keyframes nudge {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* Bands */
.band {
  position: absolute;
  z-index: 2;
  opacity: var(--op, 0);
  pointer-events: none;
  --k: 0;
}
.band > * { pointer-events: auto; }
.band.is-live { pointer-events: auto; }
/* Layer 2: the per-band scrim, a cream wash that deepens with the band's assembly */
.band::before {
  content: '';
  position: absolute;
  inset: -80% -50%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(var(--cream-rgb), var(--wash, 0.45)) 0%, rgba(var(--cream-rgb), calc(var(--wash, 0.45) * 0.7)) 30%, rgba(var(--cream-rgb), 0) 68%);
  opacity: calc(0.25 + 0.75 * var(--k, 1));
}
/* Layer 3: the text-shadow token, a cream halo */
.band__text {
  text-shadow:
    0 0 1px rgba(var(--cream-rgb), 0.95),
    0 2px 12px rgba(var(--cream-rgb), 0.85),
    0 8px 40px rgba(var(--cream-rgb), 0.75);
}
.band .btn { text-shadow: none; }

/* The woman lives on the right of the frame; every caption lives in the calm wall on the left */
.band--1 {
  left: max(var(--gutter), 7vw);
  bottom: 14vh;
  width: min(46vw, 620px);
  text-align: left;
  --wash: 0.6;
}
.band--2 {
  left: max(var(--gutter), 7vw);
  top: 34%;
  width: min(36vw, 460px);
  transform: translateY(-50%);
}
.band--3 {
  left: max(var(--gutter), 7vw);
  top: 58%;
  width: min(36vw, 460px);
  transform: translateY(-50%);
}
.band--4 {
  left: max(var(--gutter), 7vw);
  bottom: 12vh;
  width: min(50vw, 700px);
  text-align: left;
  --wash: 0.5;
}
.band--4 .settle-cta { justify-content: flex-start; }
@media (max-height: 560px) {
  .band--4 { bottom: 6vh; }
}

/* Split text: .w words hold .c characters, each with --th */
.split { display: inline-block; }
.w { display: inline-block; white-space: nowrap; }
.c {
  display: inline-block;
  --p: clamp(0, (var(--k, 1) - var(--th, 0)) / var(--spread, 0.35), 1);
  opacity: var(--p);
  will-change: transform, opacity;
}
/* Drift-down: characters fall into place from above */
.entr-drift .c { transform: translateY(calc((1 - var(--p)) * -22px)); }
/* Sway-settle: characters arrive from the side with a damped horizontal sway */
.entr-sway .c { transform: translateX(calc((1 - var(--p)) * var(--jx, 24px) + sin(var(--p) * 9.4) * (1 - var(--p)) * 10px)); }
/* Word rise: whole words rise into place */
.entr-rise .w {
  --p: clamp(0, (var(--k, 1) - var(--th, 0)) / var(--spread, 0.3), 1);
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * 18px));
  will-change: transform, opacity;
}
.entr-rise .c { opacity: 1; transform: none; }
/* Blur-to-sharp: two stacked copies crossfade, the soft copy carries a static blur */
.entr-blur { position: relative; }
.entr-blur .sharp { opacity: clamp(0, (var(--k, 1) - 0.08) / 0.55, 1); }
.entr-blur .soft {
  position: absolute;
  inset: 0;
  filter: blur(10px);
  opacity: calc(1 - clamp(0, (var(--k, 1) - 0.08) / 0.55, 1));
  pointer-events: none;
}
.entr-blur .sharp,
.entr-blur .soft { transform: translateY(calc((1 - clamp(0, var(--k, 1) / 0.6, 1)) * 12px)); }
/* Staged settle for band 4: the note, then the button */
.band--4 .settle-note {
  --q: clamp(0, (var(--k, 1) - 0.62) / 0.16, 1);
  opacity: var(--q);
  transform: translateY(calc((1 - var(--q)) * 14px));
  margin-top: 22px;
}
.band--4 .settle-cta {
  --q: clamp(0, (var(--k, 1) - 0.76) / 0.18, 1);
  opacity: var(--q);
  transform: translateY(calc((1 - var(--q)) * 14px));
  margin-top: 26px;
  display: flex;
  justify-content: center;
}
.band--4 .display { font-size: clamp(30px, 2.75vw, 40px); max-width: 32ch; line-height: 1.15; }
.band--1 .hook { max-width: 12ch; }
.band__line { font-size: var(--text-body-lg); color: var(--ink); font-weight: 400; }
.band__note { font-size: var(--text-body-sm); color: var(--stone); }

/* The static hero, a designed layout for phones, portrait tablets, coarse landscape and reduced motion */
/* The phone hero: only her sentence sits over the image; everything else waits below on plain cream */
.hero__static {
  display: none;
  position: relative;
  text-align: left;
  flex-direction: column;
}
.hero__static-visual {
  position: relative;
  height: 62svh;
  min-height: 420px;
  padding: 0 var(--gutter) 22px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero__static .hero__still {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}
.hero__static-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(var(--cream-rgb), 1) 0%, rgba(var(--cream-rgb), 0.92) 22%, rgba(var(--cream-rgb), 0.45) 42%, rgba(var(--cream-rgb), 0) 62%);
}
.hero__static-visual .hook { max-width: 12ch; position: relative; z-index: 1; }
.hero__static-copy p:nth-of-type(2) { display: none; }
.hero__static-copy {
  max-width: 640px;
  padding: 8px var(--gutter) 44px;
}
.hero__static-copy > * + * { margin-top: 12px; }
.hero__static-copy .body-lg { font-size: var(--text-body); line-height: 1.45; }
.hero__static-copy .btn { margin-top: 18px; }
.hero__static-copy > * + * { margin-top: 18px; }
.hero__static-copy .btn { margin-top: 26px; }

/* The five gates, character for character the same in hero.js */
@media (max-width: 720px),
       (orientation: portrait) and (max-width: 1024px),
       (orientation: portrait) and (pointer: coarse),
       (orientation: landscape) and (pointer: coarse) and (max-height: 560px),
       (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; height: auto; overflow: visible; }
  .hero__poster, .hero__video, .hero__scrim, .hero__ring, .hero__chevron, .band { display: none; }
  .hero__static { display: flex; }
}

/* ---------- Settle strip ---------- */
.strip {
  position: relative;
  padding: 26px 0;
}
.strip::before, .strip::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--clay);
  transform: translateX(-50%) scaleX(var(--line, 1));
  transform-origin: center;
  transition: transform 1200ms var(--ease-out);
}
.strip::before { top: 0; }
.strip::after { bottom: 0; }
.strip.reveal:not(.in) { --line: 0; }
.strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  color: var(--stone);
}
.strip__row li { display: flex; align-items: center; gap: 12px; }
.strip__row li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--clay);
}

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: var(--card-pad);
}
.card--xl { box-shadow: var(--shadow-xl); }
.card--night {
  background: var(--night);
  color: var(--night-text);
  box-shadow: var(--shadow-xl);
}
.rows > li {
  padding: 18px 0;
  border-top: 1px solid var(--haze);
}
.rows > li:first-child { border-top: 0; padding-top: 0; }
.rows > li:last-child { padding-bottom: 0; }
.card--night .rows > li { border-color: rgba(255, 255, 255, 0.12); }

/* ---------- Your words, their words ---------- */
.pairs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
@media (max-width: 900px) { .pairs { grid-template-columns: 1fr; } }
.pair {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: calc(var(--card-pad) + 4px);
}
.pair__quote {
  position: relative;
  color: var(--voice);
  font-family: var(--font-voice);
  font-style: italic;
  font-size: clamp(28px, 2.6vw, 34px);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -0.005em;
  padding-bottom: 18px;
}
.pair__quote::before { content: '\201C'; }
.pair__quote::after { content: '\201D'; }
.pair__quote .hair {
  position: absolute;
  left: 0; bottom: 0;
  width: 56px;
  height: 1px;
  background: var(--voice);
  opacity: 0.45;
  animation: breathe 8s ease-in-out -2s infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.6; }
}
.pair__term { font-size: var(--text-subheading); font-weight: 500; letter-spacing: -0.012em; }
.pair__plain { color: var(--stone); margin-top: 4px; }
.pair__code { margin-top: 10px; color: var(--ash); }
.pair__meta { margin-top: auto; padding-top: 8px; color: var(--ash); font-size: var(--text-caption); line-height: 1.6; }
.pair__meta a { color: var(--stone); }
.pairs-outro { margin: 44px auto 0; max-width: 780px; }
.pairs-outro > * + * { margin-top: 1em; }

/* ---------- Three things it does: the timeline ---------- */
.timeline {
  position: relative;
  margin-top: 56px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 28px;
}
.timeline__rail {
  grid-column: 1;
  grid-row: 1 / span 3;
  position: relative;
}
.timeline__rail svg {
  position: sticky;
  top: 0;
  height: 100%;
  width: 56px;
}
.timeline__rail line {
  stroke: var(--clay);
  stroke-width: 1;
}
.timeline__rail .rail-draw {
  stroke: var(--stone);
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--draw, 0));
  transition: stroke-dashoffset 300ms linear;
}
.step {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  align-items: center;
  padding: 40px 0;
}
.step + .step { border-top: 1px solid var(--haze); }
.step:nth-child(odd) .step__copy { order: 2; }
.step__num {
  display: inline-block;
  color: var(--ash);
  margin-bottom: 14px;
}
.step__copy > * + * { margin-top: 14px; }
.step__card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline__rail { display: none; }
  .step { grid-column: 1; grid-template-columns: 1fr; padding: 32px 0; }
  .step:nth-child(odd) .step__copy { order: 0; }
}

/* The hold moment */
.hold { gap: 14px; }
.hold__sentence {
  min-height: 3.9em;
  color: var(--voice);
  font-family: var(--font-voice);
  font-style: italic;
  font-size: var(--text-subheading);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}
.hold__sentence .hc {
  opacity: clamp(0, (var(--hp, 0) - var(--ht, 0)) * 40, 1);
}
.hold__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--voice);
  animation: blink 1.1s steps(1) infinite;
}
.in-view .hold__caret { animation-play-state: running; }
.hold.is-done .hold__caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.hold__result {
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.hold__result > * {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out);
}
.hold.is-done .hold__result { opacity: 1; transform: none; }
.hold.is-done .hold__result > * { opacity: 1; transform: none; }
.hold.is-done .hold__result > :nth-child(1) { transition-delay: 60ms; }
.hold.is-done .hold__result > :nth-child(2) { transition-delay: 180ms; }
.hold.is-done .hold__result > :nth-child(3) { transition-delay: 300ms; }
.hold.is-done .hold__result > :nth-child(4) { transition-delay: 420ms; }
.hold.is-done .hold__result > :nth-child(5) { transition-delay: 560ms; }
.hold__term { font-size: var(--text-subheading); font-weight: 500; }
.hold__plain { color: var(--stone); }
.hold__meta { color: var(--ash); font-size: var(--text-caption); }
.hold__meta a { color: var(--stone); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--haze);
  background: rgba(var(--cream-rgb), 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--stone);
}
.chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--voice);
  opacity: 0.7;
}
.hold__btn {
  position: relative;
  align-self: flex-start;
  margin-top: 6px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
}
.hold__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  transform-origin: left;
  transform: scaleX(var(--hp, 0));
  pointer-events: none;
}
.hold__hint { color: var(--ash); font-size: var(--text-caption); }

/* The counts card */
.counts { gap: 18px; }
.counts__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 96px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--haze);
  position: relative;
}
.counts__bars i {
  flex: 1;
  background: var(--haze);
  border-radius: 3px 3px 0 0;
  height: calc(var(--h, 0.2) * 100%);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 700ms var(--ease-out);
}
.counts__bars i.hi { background: var(--voice); opacity: 0.85; }
.counts__bars i.pd { background: var(--clay); }
.counts.in i { transform: scaleY(1); }
.counts.in i:nth-child(n) { transition-delay: calc(var(--i, 0) * 40ms); }
.counts__legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ash); font-size: var(--text-caption); }
.counts__legend span { display: inline-flex; align-items: center; gap: 8px; }
.counts__legend b { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.counts__legend .l-hi { background: var(--voice); opacity: 0.85; }
.counts__legend .l-pd { background: var(--clay); }
.counts__legend .l-no { background: var(--haze); }

/* Image feature card */
.imgcard {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 0;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.imgcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.imgcard::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(5, 6, 11, 0) 40%, rgba(5, 6, 11, 0.1) 54%, rgba(5, 6, 11, 0.4) 74%, rgba(5, 6, 11, 0.82) 100%);
}
.imgcard__copy {
  padding: 24px;
  color: #fff;
}
.imgcard__copy h3 { font-size: var(--text-heading-sm); font-weight: 600; letter-spacing: -0.015em; }
.imgcard__copy p { margin-top: 6px; color: rgba(255, 255, 255, 0.85); font-size: var(--text-body-sm); }
.imgcard--glow::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 30% 20%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 70%);
  animation: breathe2 12s ease-in-out -4s infinite;
}
@keyframes breathe2 {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ---------- Privacy: phone and rows ---------- */
.privacy {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .privacy { grid-template-columns: 1fr; gap: 40px; }
}
.privacy__intro { margin-top: 20px; }
.privacy .rows { margin-top: 28px; }
.privacy__link, .faq__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; }

.device-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.device-wrap::before {
  content: '';
  position: absolute;
  inset: 10% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(91, 72, 214, 0.08), rgba(91, 72, 214, 0) 70%);
  animation: breathe3 6s ease-in-out -2s infinite;
}
@keyframes breathe3 {
  0%, 100% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.04); opacity: 1; }
}
.device {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 300 / 612;
  border-radius: 48px;
  background: #111114;
  padding: 10px;
  box-shadow: var(--shadow-device);
}
.device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background: var(--canvas);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 22px;
  text-align: center;
}
.device__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.device__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 28px;
  border-radius: 20px;
  background: #111114;
}
.device__hint {
  color: var(--ash);
  font-size: var(--text-caption);
  line-height: 1.5;
}
.device__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--voice);
  opacity: 0.9;
}

/* ---------- Refusals ---------- */
.refusals {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  margin-top: 44px;
}
.refusals::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 70%);
  animation: sweep 20s ease-in-out -6s infinite alternate;
  pointer-events: none;
}
@keyframes sweep {
  from { transform: translateX(0); }
  to { transform: translateX(160%); }
}
.refusals .rows { position: relative; max-width: 760px; margin-inline: auto; }
.refusals .rows > li { padding: 18px 0; font-size: var(--text-body-lg); line-height: 1.4; }
.refusals h2 { margin-bottom: 20px; text-align: center; }
.refusals .muted { color: var(--night-muted); }

/* ---------- Context ---------- */
.context {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 44px;
}
@media (max-width: 900px) {
  .context { grid-template-columns: 1fr; gap: 36px; }
}
.context .imgcard { min-height: 420px; position: sticky; top: 96px; }
@media (max-width: 900px) { .context .imgcard { position: relative; top: auto; min-height: 320px; } }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }
.price { display: flex; flex-direction: column; gap: 12px; padding: calc(var(--card-pad) + 6px); }
.price__amount { font-size: var(--text-heading-sm); font-weight: 500; letter-spacing: -0.015em; }
.price--glow { position: relative; }
.price--glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(91, 72, 214, 0.25);
  animation: breathe 10s ease-in-out -3s infinite;
  pointer-events: none;
}

/* ---------- FAQ ---------- */
.faq { margin-top: 36px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--haze);
  border-radius: var(--radius-card);
  transition: box-shadow 220ms var(--ease-soft);
}
.faq details + details { margin-top: 12px; }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  min-height: 44px;
  font-size: var(--text-body-lg);
  font-weight: 500;
  letter-spacing: -0.012em;
  border-radius: var(--radius-card);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  margin-right: 4px;
  transition: transform 260ms var(--ease-soft);
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq .answer { padding: 0 24px 22px; color: var(--ink); max-width: var(--measure); }
.capture .vh { min-height: 0; padding: 0; }

/* ---------- The close ---------- */
.close {
  background: var(--night);
  color: var(--night-text);
  position: relative;
  overflow: hidden;
  padding-top: var(--section);
}
.close::before {
  content: '';
  position: absolute;
  inset: -30% -10%;
  background: radial-gradient(ellipse 45% 40% at 50% 40%, rgba(91, 72, 214, 0.18), rgba(91, 72, 214, 0) 70%);
  animation: envDrift 70s ease-in-out -20s infinite alternate;
  pointer-events: none;
}
.close__inner { position: relative; text-align: center; max-width: 640px; margin-inline: auto; }
.close__inner .voice { color: #a89bf0; }
.close__inner > * + * { margin-top: 18px; }
.close .muted { color: var(--night-muted); }

.capture { margin-top: 30px; text-align: left; }
.capture label { display: block; font-size: var(--text-body-sm); color: var(--night-muted); margin-bottom: 8px; }
.capture__row { display: flex; gap: 10px; }
@media (max-width: 560px) { .capture__row { flex-direction: column; } }
.capture input {
  flex: 1;
  min-height: 52px;
  padding: 0 18px;
  border-radius: var(--radius-button);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--night-text);
}
.capture input::placeholder { color: rgba(244, 241, 238, 0.45); }
.capture input:focus-visible { outline-color: #a89bf0; }
.capture input[aria-invalid="true"] { border-color: var(--night-text); border-width: 2px; }
.capture__help { margin-top: 12px; color: var(--night-muted); font-size: var(--text-caption); }
.capture__status { margin-top: 12px; font-size: var(--text-body-sm); min-height: 1.5em; }
.capture.is-done .capture__row,
.capture.is-done .capture__help,
.capture.is-done label { display: none; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: var(--section);
  padding: 36px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--night-muted);
  font-size: var(--text-body-sm);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer__brand { color: var(--night-text); font-weight: 600; letter-spacing: -0.02em; font-size: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--night-muted);
  text-decoration: none;
}
.footer__links a:hover { color: var(--night-text); }
.footer__lines { margin-top: 18px; display: grid; gap: 6px; font-size: var(--text-caption); }
.footer__lines a { color: inherit; }

/* Light footer for the doc pages */
.footer--light {
  border-top: 1px solid var(--haze);
  color: var(--stone);
}
.footer--light .footer__brand { color: var(--ink); }
.footer--light .footer__links a { color: var(--stone); }
.footer--light .footer__links a:hover { color: var(--ink); }

/* ---------- Doc pages ---------- */
.doc-head { padding-top: calc(76px + var(--section)); padding-bottom: 48px; }
.doc-head > * + * { margin-top: 16px; }
.doc {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: var(--section);
}
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 32px; } }
.toc { position: sticky; top: 96px; }
@media (max-width: 900px) { .toc { position: static; } }
.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--stone);
  text-decoration: none;
  font-size: var(--text-body-sm);
}
.toc a:hover { color: var(--ink); }
.doc__body { max-width: 68ch; }
.doc__body h2 { font-size: var(--text-heading-sm); font-weight: 500; letter-spacing: -0.015em; margin-top: 56px; scroll-margin-top: 96px; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body h3 { font-size: var(--text-subheading); font-weight: 500; margin-top: 32px; }
.doc__body p, .doc__body li { margin-top: 14px; }
.doc__body ul { padding-left: 1.2em; list-style: disc; }
.doc__body a { text-decoration: underline; }
.notice {
  padding: 16px 20px;
  border-radius: var(--radius-button);
  background: var(--panel);
  border: 1px solid var(--clay);
  font-size: var(--text-body-sm);
}
.doc .faq { margin-top: 0; }
.doc .faq details + details { margin-top: 10px; }

/* ---------- Three steps in a row ---------- */
.steps3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
  margin-top: 44px;
}
.steps3 > div > * + * { margin-top: 10px; }
@media (max-width: 900px) { .steps3 { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- The wide image card and the try-it card ---------- */
.imgcard--wide { margin-top: 56px; min-height: 420px; }
.imgcard--wide .imgcard__copy { width: 100%; text-align: center; padding: 32px; }
.try {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  margin: 44px auto 0;
  max-width: 900px;
}
.try__copy > * + * { margin-top: 10px; }
.try .hold { padding: 24px; box-shadow: var(--shadow-xl); display: flex; flex-direction: column; gap: 12px; }
.try .hold__sentence { min-height: 2.6em; font-size: 22px; }
.ccard__day { display: flex; justify-content: space-between; align-items: center; gap: 10px; white-space: nowrap; }
.ccard__day .label { padding: 4px 9px; font-size: 10px; letter-spacing: 0.06em; }
.ccard__day .mono { font-size: 11px; }
.ccard__meta { color: var(--ash); font-size: 13px; line-height: 1.45; }
.ccard__meta .strong { color: var(--ink); }
.ccard__meta a { color: var(--stone); }
@media (max-width: 720px) {
  .try { grid-template-columns: 1fr; gap: 20px; }
  .try .hold__sentence { min-height: 2.4em; font-size: 20px; }
  .try .hold { padding: 20px; gap: 10px; }
  .strip__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; justify-items: start; }
  .strip__row li { font-size: 11px; }
  .device { width: min(100%, 240px); }
}

/* ---------- A short history: the pinned horizontal wave ---------- */
.hscroll { position: relative; margin-top: 24px; }
.hscroll__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hscroll__hint {
  position: absolute;
  left: var(--gutter);
  top: 84px;
  z-index: 2;
}
.hscroll__track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  will-change: transform;
}
.hscroll__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hscroll__svg path { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hscroll__base { stroke: var(--clay); }
.hscroll__draw {
  stroke: var(--ink);
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--draw, 0));
}
.hnode {
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--clay);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ash);
  transition: background-color 400ms var(--ease-out), color 400ms var(--ease-out), border-color 400ms var(--ease-out);
}
.hnode::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--haze); }
.hnode.lit { background: var(--ink); color: #fff; border-color: var(--ink); }
.hcard {
  position: absolute;
  width: 300px;
  opacity: 0.22;
  transition: opacity 600ms var(--ease-out);
}
.hcard.above { transform: translateY(calc(-100% - 56px)); }
.hcard.below { transform: translateY(56px); }
.hcard.lit { opacity: 1; }
.hcard .card { padding: 18px 20px 20px; box-shadow: var(--shadow-xl); display: flex; flex-direction: column; gap: 10px; }
.hcard__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; white-space: nowrap; }
.hcard__row .label { padding: 4px 9px; font-size: 10px; letter-spacing: 0.06em; }
.hcard__year { font-size: 34px; line-height: 1; color: var(--voice); }
/* The photo fades from sepia in 1690 to full colour today: --age runs 1 to 0 along the line */
.hcard__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  filter: sepia(calc(var(--age, 0) * 0.75)) grayscale(calc(var(--age, 0) * 0.7)) contrast(0.96) brightness(1.02);
}
.hcard__title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.hcard__body { color: var(--stone); font-size: 14px; line-height: 1.5; }
.hscroll__sources { margin-top: 28px; text-align: center; }
.hscroll__sources a { color: var(--stone); }
@media (max-width: 720px) {
  .hscroll__hint { top: 72px; font-size: 11px; }
  .hcard.above { transform: translateY(calc(-100% - 44px)); }
  .hcard.below { transform: translateY(44px); }
  .hcard .card { padding: 16px 18px 18px; }
  .hcard__year { font-size: 30px; }
  .hcard__img { aspect-ratio: 16 / 9; }
}
@media (max-height: 760px) and (min-width: 721px) {
  .hcard__img { aspect-ratio: 2 / 1; }
  .hcard__body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
/* Stacked under reduced motion only, character for character the same query as in site.js */
@media (prefers-reduced-motion: reduce) {
  .hscroll__stage { position: relative; height: auto; overflow: visible; padding-left: 56px; }
  .hscroll__stage::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 1px; background: var(--clay); }
  .hscroll__hint, .hscroll__svg { display: none; }
  .hscroll__track { position: relative; height: auto; transform: none !important; width: auto !important; }
  .hnode { position: absolute; left: -36px !important; top: auto !important; transform: translate(-50%, 0); }
  .hcard { position: relative; width: 100%; opacity: 1; transform: none !important; margin-bottom: 28px; left: auto !important; top: auto !important; }
}

/* ---------- The bottom edge blur: what is about to scroll in softens first ---------- */
.edge-blur {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  z-index: 30;
  pointer-events: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 1) 100%);
}
@media (max-width: 720px) { .edge-blur { height: 90px; } }

/* ---------- What's in the app: the people grid ---------- */
.grid5 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.grid5 .imgcard { min-height: 340px; }
.grid5 .imgcard--lg { grid-column: span 3; min-height: 560px; }
.grid5 .imgcard--sm { grid-column: span 2; min-height: 360px; }
.grid5 .imgcard__copy { width: 100%; text-align: center; padding: 28px 24px; }
.grid5 .imgcard__copy p { max-width: 34ch; margin-inline: auto; }
.imgcard video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.imgcard video + img { z-index: -3; }
.grid5__more { margin: 28px auto 0; max-width: 68ch; text-align: center; }
@media (max-width: 900px) {
  .grid5 { grid-template-columns: 1fr; }
  .grid5 .imgcard--lg, .grid5 .imgcard--sm { grid-column: auto; min-height: 0; aspect-ratio: 4 / 5; }
}

/* ---------- Entrances ---------- */
.reveal .part,
.reveal.part {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.in .part,
.reveal.in.part {
  opacity: 1;
  transform: none;
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
}
.reveal.in .part:nth-child(2) { transition-delay: 80ms; }
.reveal.in .part:nth-child(3) { transition-delay: 160ms; }
.reveal.in .part:nth-child(4) { transition-delay: 240ms; }
.reveal.in .part:nth-child(5) { transition-delay: 320ms; }
.reveal.in .part:nth-child(6) { transition-delay: 400ms; }
.reveal.in.settled .part,
.reveal.in.settled .part:nth-child(n) { transition-delay: 0ms; }

/* Pause loops when the tab is hidden or the section is off-screen */
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }
.loop-off, .loop-off *, .loop-off *::before, .loop-off *::after { animation-play-state: paused !important; }

/* ---------- Reduced motion, honoured completely ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transition-delay: 0ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal .part, .reveal.part { opacity: 1; transform: none; }
  .strip { --line: 1; }
  .counts__bars i { transform: scaleY(1); }
  .timeline__rail .rail-draw { stroke-dashoffset: 0; }
  .hold__result, .hold__result > * { opacity: 1; transform: none; }
  .hold__caret { display: none; }
  .hold__btn { display: none; }
  .hold__hint { display: none; }
  .hold__sentence .hc { opacity: 1; }
}
