/* Kendal marketing surface.
 *
 * ⚠️ THIS FILE IS DELIBERATELY LOUDER THAN `DESIGN.md`'s app guidance, ON INSTRUCTION.
 * [USER 2026-08-28]: *"it looks like shit so make it waay cooler and bolder design"*, and
 * *"Our design MD was mainly for the app. The website can be cooler."*
 *
 * THE SPLIT, recorded in DESIGN.md: the app stays calm, the marketing surface is bold. The
 * restraint exists to protect someone looking at their own overloaded week. A stranger deciding
 * whether to care has the opposite problem — nothing is at stake for them yet, so calm reads as
 * nothing to see.
 *
 * What does NOT change is the VOCABULARY: Fraunces at SOFT 30, Inter, warm cream, warm near-black,
 * and exactly one saturated colour (petrol). Boldness here comes from SCALE, CONTRAST, INVERSION
 * and MOTION — never from adding colours. Reaching for a second accent is the line.
 *
 * Motion language ported from subscrr.app (measured from their source): blur-in reveals, masked
 * word-by-word headlines, parallax, a glass navbar that re-tints on scroll, and very large soft
 * shadows. Built in vanilla CSS + ~150 lines of JS rather than GSAP + Lenis, to keep the CSP at
 * `script-src 'self'` and stay off a third-party CDN. */

:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-sunk: #efebe3;
  --ink: #1a1814;
  --ink-muted: #6b665b;
  /* ⚠️ `--ink-quiet` (#9F998B) MEASURES 2.59:1 ON CREAM AND 2.84:1 ON WHITE — below even WCAG's
   * 3:1 large-text floor, let alone 4.5:1 for body. It is NOT used for text anywhere in this file;
   * every eyebrow, caption and timestamp uses --ink-muted (5.21:1). Kept only for hairline and
   * decorative fills, where contrast rules don't apply. Every other pair in the system passes:
   * ink 16.2:1, petrol 8.5:1, and all dark-section pairs 5.6-15.9:1. */
  --ink-quiet: #9f998b;
  --divider: #e4dfd4;
  --accent: #1e4a6b;
  --accent-quiet: #dde7ee;

  /* Inverted palette — DESIGN.md's own dark-mode tokens, used here as a compositional device on a
   * light page rather than as a system-following theme. */
  --dark-bg: #16140f;
  --dark-surface: #1f1c16;
  --dark-text: #f2eee6;
  --dark-muted: #9a9387;
  --dark-divider: #2a2620;
  --accent-bright: #5b96b8;

  --s-4: 4px;   --s-8: 8px;   --s-12: 12px; --s-16: 16px; --s-24: 24px;
  --s-32: 32px; --s-48: 48px; --s-64: 64px; --s-96: 96px; --s-128: 128px;

  /* Shadow scale at subscrr's geometry — very large, very soft, negative spread — retuned to our
   * warm near-black instead of their brown. This is what makes things float. */
  --shadow-sm: 0 4px 16px -6px rgba(30, 28, 24, 0.16);
  --shadow: 0 26px 60px -28px rgba(38, 34, 28, 0.34);
  --shadow-lg: 0 60px 120px -45px rgba(38, 34, 28, 0.45), 0 20px 45px -25px rgba(38, 34, 28, 0.28);
  /* Petrol bleeding as a halo. This is how one colour carries energy without a second accent. */
  --glow: 0 40px 90px -44px rgba(30, 74, 107, 0.55);

  --measure: 34rem;
  --wrap: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/24px 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain. Inline SVG data URI, so the existing `img-src 'self' data:` covers it — no CSP
 * change. `multiply` keeps it from lifting the blacks in the dark sections. */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 99; pointer-events: none;
  opacity: 0.28; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* Fraunces SOFT axis LOCKED at 30 (DESIGN.md). Default 100 gives swashy Js and dropped Fs that read
 * as eccentric; 30 keeps the warm humanist character and lets it scale to hero size without turning
 * into a wedding invitation. Weight pushed to 600 for the marketing surface. */
.serif {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-variation-settings: 'SOFT' 30, 'WONK' 0, 'opsz' 144;
  font-weight: 600;
}

h1, h2, h3 { margin: 0; }

.hero-type   { font-size: clamp(2.6rem, 5.4vw, 4.9rem); line-height: .95; letter-spacing: -.034em; max-width: 13ch; }
.statement   { font-size: clamp(2rem, 5.2vw, 3.9rem);  line-height: 1.02; letter-spacing: -.028em; }
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.9rem); line-height: 1.04; letter-spacing: -.022em; }
.card-title  { font-size: 23px; line-height: 27px; letter-spacing: -.012em; font-variation-settings: 'SOFT' 30, 'WONK' 0, 'opsz' 60; }

.eyebrow {
  display: flex; align-items: center; gap: var(--s-12);
  font: 600 11px/16px 'Inter', sans-serif;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-muted); /* not --ink-quiet: 2.59:1 fails AA. See the token note above. */
  margin: 0 0 var(--s-24);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--accent); flex: none; }
.eyebrow::after { content: ''; flex: 1; height: .5px; background: var(--divider); max-width: 140px; }

.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-muted); max-width: 34ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-24); }
@media (min-width: 60rem) { .wrap { padding: 0 var(--s-48); } }

/* Visible only to screen readers. Used to give the decorative phone mockups a real text
 * equivalent, since the phones themselves are aria-hidden. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.invert :focus-visible { outline-color: var(--accent-bright); }

/* ---------------------------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: var(--s-8);
  background: var(--accent); color: #fff;
  font: 500 15px/20px 'Inter', sans-serif;
  padding: var(--s-12) var(--s-24); border-radius: 9999px;
  border: none; cursor: pointer; box-shadow: var(--glow);
  transition: transform 160ms ease-out, background 160ms ease-out;
}
.btn:hover { background: #17384f; transform: translateY(-1px); }
.btn-sm { font-size: 14px; padding: 11px 20px; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: .5px solid var(--ink); box-shadow: none;
  padding: calc(var(--s-12) - .5px) var(--s-24);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.invert .btn-ghost { color: var(--dark-text); border-color: var(--dark-muted); }
.invert .btn-ghost:hover { background: var(--dark-text); color: var(--dark-bg); }

/* ---------------------------------------------------------------------------------------------
 * Floating glass navbar — detached pill that re-tints on scroll
 * ------------------------------------------------------------------------------------------- */

.nav { position: fixed; top: 18px; left: 0; right: 0; z-index: 100; }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-24); }
@media (min-width: 60rem) { .nav-inner { padding: 0 var(--s-48); } }

.pill {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: var(--s-12);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(7px) saturate(175%);
  -webkit-backdrop-filter: blur(7px) saturate(175%);
  border-radius: 9999px;
  padding: 9px 9px 9px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px -18px rgba(38, 34, 28, 0.4);
  transition: background 260ms ease-out, box-shadow 260ms ease-out;
}
/* 115° sheen, straight from subscrr. Reads as glass catching light rather than as a flat tint. */
.pill::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,0) 34%,
              rgba(255,255,255,0) 66%, rgba(255,255,255,.22) 100%);
}
.nav.is-scrolled .pill {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 16px 40px -20px rgba(38, 34, 28, 0.5);
}

/* The mark IS the button — a geometrically perfect petrol circle, no glyph (DESIGN.md "App icon",
 * reference DNA: Hinomaru). */
.mark { width: 18px; height: 18px; border-radius: 9999px; background: var(--accent); flex: none; }
.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'SOFT' 30, 'opsz' 40, 'WONK' 0;
  font-weight: 600; font-size: 19px; letter-spacing: -.01em;
}
.nav .btn { margin-left: auto; }

/* ---------------------------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------------------------- */

.hero { padding: clamp(140px, 15vw, 190px) 0 var(--s-64); }
.hero-grid { display: grid; gap: var(--s-48); align-items: start; }
.hero-grid > * { min-width: 0; }
.hero-type .accent-word { color: var(--accent); }
.hero .lede { margin-top: var(--s-24); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-12); margin-top: var(--s-32); }

.status {
  display: inline-flex; align-items: center; gap: var(--s-8);
  font: 500 10px/14px 'Inter', sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: var(--s-24);
}
.status .dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--accent); flex: none; }

/* ---- Phones -------------------------------------------------------------------------------
 * Built in CSS because the repo has zero image assets. Always crisp, animatable, themeable.
 * ⚠️ DESIGN.md "Risks taken" #5 locks REAL product UI as the marketing hero, precisely because it
 * signals "not vaporware". A CSS re-creation that drifts from the shipped iOS app becomes the very
 * signal that rule exists to prevent — replace these with real device screenshots once the Today
 * view is screenshot-worthy. Filed in TODOS.md.
 * ------------------------------------------------------------------------------------------- */

.stage { position: relative; perspective: 1900px; }
.phone {
  border-radius: 44px; background: #0d0c0a; padding: 10px;
  box-shadow: var(--shadow-lg); transform-style: preserve-3d;
}
.phone .screen {
  border-radius: 35px; overflow: hidden; background: var(--bg);
  height: 100%; position: relative;
}
.notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 22px; border-radius: 9999px; background: #0d0c0a; z-index: 5;
}

/* Today view — built to the DESIGN.md day-view spec, not invented. */
.tv-head { padding: 44px 18px 12px; border-bottom: .5px solid var(--divider); background: var(--bg); }
.tv-title { font-family: 'Fraunces', Georgia, serif; font-variation-settings: 'SOFT' 30, 'opsz' 60; font-weight: 600; font-size: 23px; letter-spacing: -.01em; }
.tv-sub { font: 400 11.5px/16px 'Inter', sans-serif; color: var(--ink-muted); margin-top: 3px; }
.tv-body { padding: var(--s-8) var(--s-12); }
.row { display: flex; gap: var(--s-12); padding: 9px 6px; align-items: flex-start; }
.row .t {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; line-height: 15px; color: var(--ink);
  width: 50px; flex: none; font-variant-numeric: tabular-nums;
}
.row .t span { display: block; font-size: 9.5px; color: var(--ink-muted); }
.row .l { font-size: 12.5px; line-height: 16px; padding-top: 1px; }
.row.past { opacity: .4; }
.row.past .l { text-decoration: line-through; }
.row.now {
  border-left: 2px solid var(--accent); margin-left: -6px; padding-left: 10px;
  background: rgba(30, 74, 107, .05); border-radius: 0 6px 6px 0;
}
.row.now .l { font-family: 'Fraunces', Georgia, serif; font-variation-settings: 'SOFT' 30, 'opsz' 30; font-weight: 500; font-size: 13.5px; }
.group {
  background: rgba(60, 50, 35, .045); border-left: 2px solid rgba(60, 50, 35, .22);
  border-radius: 0 8px 8px 0; margin: 6px 0; padding: 6px 0 4px;
}
.group .gl {
  font: 600 8px/12px 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted); padding: 0 6px 2px 12px;
}
.group .row { padding: 5px 6px 5px 12px; }
.free { font: 400 11px/15px 'Inter', sans-serif; color: var(--ink-muted); padding: 7px 6px 7px 62px; }

/* Message thread */
.th-head {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 42px 16px 11px; border-bottom: .5px solid var(--divider);
  font: 600 9px/12px 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted); background: var(--bg);
}
.th-head .mark { width: 11px; height: 11px; }
.th-body { padding: 14px 13px; display: flex; flex-direction: column; gap: 9px; }
.b { max-width: 85%; padding: 9px 13px; border-radius: 17px; font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.b.them { align-self: flex-start; background: var(--surface-sunk); border-bottom-left-radius: 5px; }
.b.you { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.b .did {
  display: block; margin-top: 7px; padding-top: 6px; border-top: .5px solid var(--divider);
  font: 500 8px/11px 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted);
}

/* --- Hero responsive (design-review finding D3) ---------------------------------------------
 * The two-phone composition is the riskiest element on the page, so its behaviour is specified at
 * every width rather than left to the cascade. */

/* < 48rem — thread phone only, upright, centred. The Today view is DROPPED, not shrunk: at this
 * width its 11px mono times are unreadable and it would read as noise. */
.stage { display: flex; justify-content: center; margin-top: var(--s-32); }
.phone.front { width: min(300px, 86vw); height: 614px; }
.phone.back { display: none; }

@media (min-width: 48rem) {
  /* 48-64rem — still one phone, but larger and tilted; there is width for the depth cue. */
  .phone.front { transform: perspective(1900px) rotateY(-11deg) rotateX(3deg); }
}

@media (min-width: 64rem) {
  /* >= 64rem — the full composition. Both phones, offset and tilted. */
  .hero-grid { grid-template-columns: 1fr .92fr; gap: var(--s-64); align-items: center; }
  .stage { display: block; height: 640px; margin-top: 0; }
  .phone { position: absolute; }
  .phone.back {
    display: block; width: 258px; height: 534px; right: -8px; top: 6px;
    transform: rotateY(-15deg) rotateX(4deg) rotateZ(2.5deg) scale(.95);
    /* Blurred and dimmed so it reads as depth rather than as a second thing to read — the phones
     * must overlap at this size, and a sharp half-hidden screen reads as broken. */
    filter: blur(1.4px); opacity: .9;
  }
  .phone.front {
    width: 296px; height: 606px; left: -44px; top: 92px;
    transform: rotateY(-13deg) rotateX(3deg) rotateZ(-1deg);
  }
}

/* ---------------------------------------------------------------------------------------------
 * Sections + inversion
 * ------------------------------------------------------------------------------------------- */

section { padding: clamp(var(--s-64), 8vw, var(--s-128)) 0; }

.invert { background: var(--dark-bg); color: var(--dark-text); }
.invert .eyebrow { color: var(--dark-muted); }
.invert .eyebrow::after { background: var(--dark-divider); }
.invert .lede, .invert p { color: var(--dark-muted); }
.invert .accent-word { color: var(--accent-bright); }

.statement-block { max-width: 20ch; }

/* The comparison — the sharpest point on the page. */
.versus { display: grid; gap: var(--s-32); margin-top: var(--s-48); }
.versus > * { min-width: 0; }
@media (min-width: 52rem) { .versus { grid-template-columns: 1fr 1fr; gap: var(--s-64); } }
.versus > div { padding-top: var(--s-24); border-top: 2px solid var(--dark-divider); }
.versus > div.mine { border-top-color: var(--accent-bright); }
.versus h3 {
  font: 600 10px/14px 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dark-muted); margin-bottom: var(--s-16);
}
.versus p { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.42; margin: 0; }
.versus .mine p { color: var(--dark-text); }

/* --- Left-rail numbered list (design-review D2 → A) -------------------------------------------
 * Replaces the 01/02/03 three-up, which is the single most recognisable AI-generated-site pattern.
 * Same content; number and title in a narrow rail, body to the right, hairline between rows. Reads
 * as an edited page rather than a template. */
.rail { margin-top: var(--s-48); border-top: .5px solid var(--divider); }
.invert .rail { border-top-color: var(--dark-divider); }
.rail-row {
  display: grid; gap: var(--s-8) var(--s-48);
  padding: var(--s-32) 0;
  border-bottom: .5px solid var(--divider);
}
.invert .rail-row { border-bottom-color: var(--dark-divider); }
@media (min-width: 52rem) { .rail-row { grid-template-columns: 15rem 1fr; align-items: start; } }
.rail-row > * { min-width: 0; }
.rail-num {
  font: 500 10px/14px 'Inter', sans-serif; letter-spacing: .14em;
  color: var(--accent); margin-bottom: var(--s-8); display: block;
}
.invert .rail-num { color: var(--accent-bright); }
.rail-row p { margin: 0; font-size: 16px; line-height: 25px; color: var(--ink-muted); max-width: 46ch; }

/* ---------------------------------------------------------------------------------------------
 * Video — click-to-play facade
 * ------------------------------------------------------------------------------------------- */

.video-shell {
  margin-top: var(--s-48); border-radius: 20px; overflow: hidden;
  background: var(--dark-surface); aspect-ratio: 16 / 9; position: relative;
  border: .5px solid var(--dark-divider);
}
.video-shell iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-facade {
  position: absolute; inset: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-24); cursor: pointer; border: 0;
  background: var(--dark-surface); color: var(--dark-text); font-family: inherit;
  transition: background 160ms ease-out;
}
.video-facade:hover { background: #262219; }
.video-facade .play {
  width: 84px; height: 84px; border-radius: 9999px; background: var(--accent-bright);
  display: grid; place-items: center; flex: none;
  transition: transform 200ms ease-out;
}
.video-facade:hover .play { transform: scale(1.06); }
.video-facade .title { font-size: clamp(22px, 3.2vw, 36px); letter-spacing: -.02em; }
.video-facade .label {
  font: 500 10px/14px 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dark-muted);
}
/* Shown by app.js only if the embed has not painted after a few seconds (state-table: video error). */
.video-fallback { margin-top: var(--s-16); font-size: 13px; color: var(--dark-muted); }
.video-fallback a { border-bottom: .5px solid var(--dark-divider); }

/* ---------------------------------------------------------------------------------------------
 * Footer — privacy and terms live HERE and nowhere else [USER 2026-08-28]
 * ------------------------------------------------------------------------------------------- */

.site-foot { background: var(--dark-bg); color: var(--dark-muted); padding: var(--s-96) 0 var(--s-48); }
.foot-top { display: flex; align-items: center; gap: var(--s-12); }
.foot-top .serif { color: var(--dark-text); font-size: 28px; letter-spacing: -.015em; }
.foot-rule { height: .5px; background: var(--dark-divider); margin: var(--s-48) 0 var(--s-24); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s-24); font-size: 13px; line-height: 18px; }
.foot-links a:hover { color: var(--dark-text); }
.foot-links .spacer { margin-left: auto; }

/* ---------------------------------------------------------------------------------------------
 * Long-form policy pages
 *
 * These stay QUIET. A privacy policy is read, not sold — none of the marketing surface's scale or
 * motion belongs here. ⚠️ `privacy.html`'s body text is a compliance document (see site/README.md):
 * restyle it, never reword it.
 * ------------------------------------------------------------------------------------------- */

.doc { max-width: var(--measure); padding: clamp(120px, 14vw, 160px) 0 var(--s-96); }
.doc h1 { font-size: clamp(36px, 6vw, 54px); line-height: 1.02; letter-spacing: -.026em; }
.doc h2 {
  font-size: 23px; line-height: 27px; margin: var(--s-48) 0 var(--s-12);
  font-variation-settings: 'SOFT' 30, 'WONK' 0, 'opsz' 60;
}
.doc p, .doc li { color: var(--ink-muted); }
.doc p { margin: 0 0 var(--s-16); }
.doc ul { margin: 0 0 var(--s-16); padding-left: var(--s-24); }
.doc li { margin-bottom: var(--s-8); }
.doc strong { color: var(--ink); font-weight: 500; }
.doc a { color: var(--accent); border-bottom: .5px solid var(--divider); }
.doc a:hover { border-bottom-color: var(--accent); }
.doc .updated { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin-top: var(--s-16); }
.doc table { border-collapse: collapse; width: 100%; margin: 0 0 var(--s-24); font-size: 15px; }
.doc th, .doc td {
  text-align: left; padding: var(--s-12) var(--s-12) var(--s-12) 0;
  border-bottom: .5px solid var(--divider); vertical-align: top; color: var(--ink-muted);
}
.doc th {
  font: 500 10px/14px 'Inter', sans-serif; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-muted);
}
.doc code {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px;
  color: var(--ink); word-break: break-all;
}

/* ---------------------------------------------------------------------------------------------
 * MOTION — reveals, masked headline, parallax
 *
 * 🔴 EVERY REVEAL IS GATED BEHIND `.js` ON <html>, SET BY AN INLINE ONE-LINER IN <head>.
 * Without that class the initial (hidden) states below never apply, so a visitor whose JS fails —
 * blocked, 404, parse error — sees the fully-rendered page instead of a blank cream screen. This is
 * the same failure class as the caching bug: one resource not loading must not break the page.
 * ------------------------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(14px);
  transition:
    opacity 900ms cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms),
    transform 900ms cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms),
    filter 900ms cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }

/* Masked word-by-word headline. Each word sits in an overflow-hidden span so its inner span slides
 * up from behind the line above. */
.js .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.js .word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1) var(--word-delay, 0ms);
}
.js [data-split].is-in .word > span { transform: none; }

/* Parallax. `--py` is written by one rAF-throttled scroll listener for all subscribers. */
.js [data-parallax] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* Reduced motion — SOFTENED on Sam's instruction [USER 2026-08-28]: content still fades in, only
 * the blur, the slide and the parallax drop. This is an OS-level setting the visitor turned on
 * themselves; it changes nothing for anyone who hasn't. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; filter: none; transition: opacity 400ms ease-out var(--reveal-delay, 0ms); }
  .js .word > span { transform: none; transition: none; }
  .js [data-parallax] { transform: none; }
  .btn, .video-facade, .video-facade .play, .pill { transition: none; }
}
