/* CueClick — site styles, v2 (Nov 26 2026). Palette and fonts per the owner's v2 review; see DESIGN.md. */

/* ---------- Fonts ---------------------------------------------------------
   CueClick Display (v5.2, display/headlines): the site's own face. A modified font under the SIL Open Font
   License 1.1, based on Bricolage Grotesque by Mathieu Triay (instantiated at opsz 96), with custom C/c, G, Q,
   K/k and click-dot glyphs. "CueClick Display" is a Reserved Font Name (assets/fonts/OFL-CueClickDisplay.txt,
   FONT-LICENSE.md). It is not derived from Clash Display or Satoshi.
   Satoshi (body/UI) by Indian Type Foundry, from fontshare.com, ITF Free Font License
   (assets/fonts/FFL-ITF-Fontshare.txt). Self-hosted, used exactly as shipped (no subsetting or converting). */
@font-face {
  font-family: "CueClick Display";
  src: url("../fonts/CueClickDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CueClick Display";
  src: url("../fonts/CueClickDisplay-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CueClick Display";
  src: url("../fonts/CueClickDisplay-ExtraBold.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-VariableItalic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
/* Metric-matched fallbacks (measured with fontTools: average advance and vertical metrics)
   so the swap barely moves text. The weight range stops the browser faking bold on Arial Bold. */
/* CueClick Fallback: Arial Bold scaled to CueClick Display SemiBold's average advance (90.08%, .tools/measure_v52.py);
   the overrides are divided by size-adjust (the spec scales them too) so the final ascent/descent are the
   face's own .93 / .27 em. */
@font-face {
  font-family: "CueClick Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica Bold");
  font-weight: 100 549;
  size-adjust: 89%;            /* Medium (500: the cue line, the guarantee statement) */
  ascent-override: 104.5%;
  descent-override: 30.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "CueClick Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica Bold");
  font-weight: 550 900;
  size-adjust: 90.1%;          /* SemiBold (600: every headline) */
  ascent-override: 103.2%;
  descent-override: 30%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica");
  font-weight: 100 549;
  size-adjust: 98.8%;
  ascent-override: 102.2%;
  descent-override: 24.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica Bold");
  font-weight: 550 900;
  size-adjust: 98.8%;
  ascent-override: 102.2%;
  descent-override: 24.3%;
  line-gap-override: 0%;
}

/* Caveat Brush by Impallari Type (Google Fonts), SIL Open Font License 1.1 (assets/fonts/OFL-CaveatBrush.txt).
   v3 scribble ACCENT face only: margin notes and annotations, never headings or body. */
@font-face {
  font-family: "Caveat Brush";
  src: url("../fonts/CaveatBrush-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Size-adjusted fallbacks (fontTools: average lowercase advance + vertical metrics vs Caveat Brush,
   ascent .96 / descent .30). Marker Felt Thin on Apple devices, then Arial everywhere else.
   No generic cursive / Comic Sans. */
@font-face {
  font-family: "Scribble Fallback Felt";
  src: local("Marker Felt Thin"), local("MarkerFelt-Thin");
  size-adjust: 93.1%;
  ascent-override: 103.1%;
  descent-override: 32.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Scribble Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 80.1%;
  ascent-override: 119.8%;
  descent-override: 37.5%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F3E6CF;        /* warm cream: page ground */
  --paper-2: #E9D6B6;      /* sand: frames, stand-ins, status panels */
  --card: #FFF8EC;         /* raised cream: inputs, secondary buttons, cards on colour */
  --ink: #0E1A2B;          /* deep ink navy: text, borders, hard shadows, footer */
  --ink-2: #1C2B44;        /* raised ink */
  --signal: #FF4D12;       /* hot signal orange: primary CTA fill, highlight band, close band, cursor mark */
  --cobalt: #2E46FF;       /* electric cobalt: numbers, labels, tags, test-month band */
  --muted: #5E5446;        /* secondary text on cream (6.0:1) */
  --muted-on-ink: #B9AE98; /* secondary text on navy (8.0:1) */
  --on-cobalt-2: #E8EBFF;  /* secondary text on cobalt (5.2:1) */
  --line: #7D705C;         /* input borders (4.6:1 on card) */
  --error: #AE2E08;        /* field errors (6.2:1 on card) */
  --rule: rgba(14, 26, 43, .18);
  --rule-strong: rgba(14, 26, 43, .42);
  --rule-on-ink: rgba(243, 230, 207, .2);
  --rule-on-cobalt: rgba(255, 255, 255, .34);

  --font-display: "CueClick Display", "CueClick Fallback", system-ui, sans-serif;
  --font: "Satoshi", "Satoshi Fallback", system-ui, sans-serif;
  --font-scribble: "Caveat Brush", "Scribble Fallback Felt", "Scribble Fallback", sans-serif;
  --note-size: clamp(1.375rem, 1.15rem + .55vw, 1.625rem); /* 22px phone, 26px wide desktop */

  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --gap: clamp(16px, 2vw, 28px);
  --space-section: clamp(88px, 12vw, 168px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 6px;
  --radius-btn: 10px;
  --radius-media: 16px;

  --media-shadow: 0 1px 0 rgba(14, 26, 43, .06), 0 22px 44px -30px rgba(14, 26, 43, .5);
  --media-shadow-lift: 0 1px 0 rgba(14, 26, 43, .06), 0 40px 70px -34px rgba(14, 26, 43, .6);

  color-scheme: light;
}

/* ---------- Base ---------- */
html, body { background: var(--paper); color: var(--ink); }
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
/* Paper grain: a 3.7 KB tile, no live filters. v4: the layer is twice the viewport and jitters with
   transform steps (compositor only), so the grain reads as film grain; still under reduced motion. */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  background-image: url("../img/grain.png");
  background-size: 96px 96px;
  opacity: .36;
}
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: grain 1.1s steps(5) infinite; will-change: transform; }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2.5%, 1.5%); }
  40% { transform: translate(1.5%, -2.5%); }
  60% { transform: translate(-1.5%, -1%); }
  80% { transform: translate(2.5%, 2%); }
  100% { transform: translate(0, 0); }
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance;
}
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.on-ink :focus-visible, .band--cobalt :focus-visible { outline-color: #fff; }
button, a, summary, [role="button"], label, input[type="checkbox"] { touch-action: manipulation; }
button, .btn, summary { -webkit-user-select: none; user-select: none; }
.btn { -webkit-touch-callout: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; outline-color: var(--cobalt); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- Buttons: chunky, solid, 2px ink edge, hard offset shadow ----------
   The shadow is a solid ink slab (no blur). Hover lifts the button up-left by 2px while the slab
   grows by 2px, so the slab's footprint stays put; :active pushes it 3px into the slab. */
.btn {
  --btn-bg: var(--signal);
  --btn-fg: var(--ink);
  --btn-edge: var(--ink);
  --btn-slab: var(--ink);
  --btn-hi: rgba(255, 255, 255, .42);
  --slab: 5px; /* resting slab depth (also the reserved margin; never changes) */
  --d: var(--slab); /* live slab depth */
  --t: 0px;    /* travel */
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 24px 0 26px;
  font: 700 1.0625rem/1 var(--font); letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  color: var(--btn-fg); background-color: var(--btn-bg);
  border: 2px solid var(--btn-edge); border-radius: var(--radius-btn);
  box-shadow: inset 0 2px 0 var(--btn-hi), var(--d) var(--d) 0 0 var(--btn-slab);
  transform: translate(var(--t), var(--t));
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
  margin: 0 var(--slab) var(--slab) 0; /* reserve the slab so it never touches neighbours */
}
.btn .cursor-mark { width: 18px; height: 18px; }
/* Hit pad over the slab footprint, so the 2px hover shift never drops :hover at the edges. */
.btn::after { content: ""; position: absolute; inset: -4px calc(-1 * var(--slab) - 4px) calc(-1 * var(--slab) - 4px) -4px; }
.btn:active { --t: 3px; --d: 2px; transition-duration: .07s; }
.btn:focus-visible { outline-offset: 5px; }

/* Secondary: raised cream with the same edge and slab. Clearly not the orange action. */
.btn--paper { --btn-bg: var(--card); --btn-hi: #fff; }
/* Ink: for cream grounds where a dark action reads better. */
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-hi: rgba(255, 255, 255, .16); --btn-slab: var(--signal); }
.btn--small { --slab: 4px; min-height: 46px; padding: 0 16px; font-size: .9375rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px;
  font-weight: 700; text-decoration: none; position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 1.4em; bottom: 10px; height: 2px;
  background: currentColor; transform-origin: left; transition: transform .3s var(--ease-out);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { --t: -2px; --d: calc(var(--slab) + 2px); }
  .btn:hover:active { --t: 3px; --d: 2px; }
  .btn--paper:hover { --btn-bg: #fff; }
  .link-arrow:hover::after { transform: scaleX(.4); }
  .link-arrow:hover svg { transform: translateX(3px); }
  .nav__links a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }
  .faq summary:hover .faq__q { text-decoration: underline; text-decoration-color: var(--cobalt); text-decoration-thickness: 2px; }
  .footer a:hover { color: var(--paper); }
}

/* Cursor-click mark (the motif). Ink arrow + ticks on light grounds, orange on ink. */
.cursor-mark { flex: none; overflow: visible; }
.cursor-mark .cm-arrow { fill: var(--ink); }
.cursor-mark .cm-ticks { stroke: var(--ink); }
.btn--ink .cursor-mark .cm-arrow, .on-ink .cursor-mark .cm-arrow { fill: var(--signal); }
.btn--ink .cursor-mark .cm-ticks, .on-ink .cursor-mark .cm-ticks { stroke: var(--signal); }
.brand .cursor-mark .cm-arrow { fill: var(--signal); stroke: var(--ink); stroke-width: 1.2px; stroke-linejoin: round; }
.on-ink .brand .cursor-mark .cm-arrow { stroke: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 230, 207, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.4375rem; letter-spacing: -0.02em;
}
.brand__dot { width: 19px; height: 19px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: .35em; }
.nav__links a.btn { color: var(--ink); font-size: 1.0625rem; font-weight: 700; }
.nav > .btn { margin-block: 0; }
/* Audit page: the back button keeps its full accessible name but shows only "Back" on narrow phones. */
@media (max-width: 419px) { .back-btn .back-btn__more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav__links { display: none; }
  .nav-toggle ~ .btn { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; min-width: 44px; padding: 0 4px; background: none; border: 0; color: var(--ink);
    font: 700 .9375rem var(--font); cursor: pointer;
  }
  .nav-toggle__bars { width: 22px; height: 10px; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s var(--ease-out); }
  .nav-toggle__bars::before { top: 0; }
  .nav-toggle__bars::after { bottom: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }
  .site-header.menu-open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 0 0;
    background: var(--paper); padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--rule); overflow-y: auto; overscroll-behavior: contain;
  }
  .site-header.menu-open .nav__links li { border-bottom: 1px solid var(--rule); }
  .site-header.menu-open .nav__links a:not(.btn) { font-family: var(--font-display); font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); min-height: 64px; width: 100%; }
  .site-header.menu-open .nav__links .nav__cta { display: flex; border: 0; padding-top: 28px; }
  .site-header.menu-open .nav__links .nav__cta .btn { flex: 1; min-height: 58px; }
  body.menu-locked { overflow: hidden; }
}
.nav__cta { display: none; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--space-section); position: relative; }
.section + .section:not(.band):not(.after-band) { border-top: 1px solid var(--rule); }
.on-ink { background: var(--ink); color: var(--paper); }
.on-ink .muted { color: var(--muted-on-ink); }
.muted { color: var(--muted); }

/* Full-bleed colour bands. */
.band--cobalt { background: var(--cobalt); color: #fff; }
.band--cobalt .muted, .band--cobalt .sec-no { color: var(--on-cobalt-2); }
.band--cobalt ::selection { background: var(--paper); color: var(--ink); }
.band--orange { background: var(--signal); color: var(--ink); }
.band--orange ::selection { background: var(--ink); color: var(--paper); }

/* Numbered section head: number in the margin rail, heading beside it. */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-no {
  grid-column: 1 / span 2; padding-top: .7em;
  font-size: .9375rem; font-weight: 800; letter-spacing: .02em; color: var(--cobalt);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 10px;
}
.sec-no::after { content: ""; flex: 1; height: 2px; background: currentColor; max-width: 56px; }
.sec-head h2 { grid-column: 3 / span 9; font-size: clamp(2.25rem, 5vw, 4.25rem); }
.sec-head .sec-lead { grid-column: 3 / span 6; margin-top: 24px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 34em; }
@media (max-width: 759px) {
  .sec-head { display: block; }
  .sec-no { padding: 0 0 18px; }
}

/* ---------- Media frames ----------
   Structure: [data-tilt] stationary wrapper (hover target) > .media-lift (CSS lift; the no-JS fallback) > figure.media (GSAP tilt).
   The hero adds .media-float outside for a slow idle float. Each layer owns one transform. */
.media {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: var(--ar, 4 / 3);
  background: var(--paper-2);
  border-radius: var(--radius-media);
  isolation: isolate;
  box-shadow: var(--media-shadow);
  transition: box-shadow .5s var(--ease-out);
}
.media picture, .media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.media img { object-fit: cover; z-index: 1; transition: transform .7s var(--ease-out); }
.media.is-missing picture { display: none; }
.media__stand-in { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.on-ink .media { background: var(--ink-2); }
.media-lift { transition: transform .5s var(--ease-out); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-tilt]:hover .media-lift { transform: translateY(-6px); }
  [data-tilt]:hover .media { box-shadow: var(--media-shadow-lift); }
  [data-tilt]:hover .media img { transform: scale(1.025); }
}
@media (prefers-reduced-motion: no-preference) {
  .media-float { animation: media-float 7s ease-in-out infinite alternate; }
}
@keyframes media-float {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* Clearly labelled proof/photo slots (brief: dashed, marked). */
.slot {
  border: 2px dashed var(--rule-strong); border-radius: var(--radius-media);
  display: grid; place-items: center; text-align: center; padding: 28px;
  color: var(--muted); font-size: .9375rem; font-weight: 500;
  background: rgba(233, 214, 182, .55);
}
.slot strong { display: block; color: var(--ink); font-size: 1.0625rem; font-weight: 700; margin-bottom: 4px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: 0; }
.hero__grid { align-items: end; row-gap: 48px; }
.hero__copy { grid-column: 1 / span 7; padding-bottom: clamp(8px, 2vw, 40px); }
.hero__media { grid-column: 9 / span 4; }
.hero h1 {
  /* Sized so the longest set line fits the 7-column measure: v5.2 "against your best." is 7.31em in
     CueClick Display 600 at -0.02em (the old 8.10em Clash budget still holds). -0.02em, not tighter:
     the C's cursor-arrow needs room next to u / e. */
  font-size: clamp(2.75rem, 5.8vw, 5.5rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: .96;
  margin-bottom: clamp(28px, 3vw, 40px);
}
@media (max-width: 759px) { .hero h1 { font-size: clamp(2rem, 10.2vw, 3.25rem); } }
/* Mask for the entrance. Line box .96em, baseline at .81em (ascent .93 / descent .27 / half-leading -.12);
   CueClick Display's deepest descender ("g", "Q" tail) is -0.16em, so it ends at .97em inside the 1.10em clip.
   Click-dot periods (-0.03em) and the C arrow (cap height .67em) sit well inside. */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero h1 .line > span { display: block; }
/* v3: the hero's last line carries a hand-drawn squiggle instead of the flat band.
   The mask grows at the bottom for this line only so the stroke is not clipped. */
.hero h1 .line--squiggle { padding-bottom: .42em; margin-bottom: -.42em; }
.squiggle-word { position: relative; white-space: nowrap; }
.doodle--squiggle { position: absolute; left: -.02em; width: calc(100% + .04em); height: auto; bottom: -.3em; color: var(--signal); stroke-width: 5; }
/* Orange marker band; wrap-safe (each line fragment gets its own band). */
.hl {
  background: linear-gradient(var(--signal), var(--signal)) 0 90% / 100% .3em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: .04em;
}
.hl--cream { background-image: linear-gradient(var(--card), var(--card)); }
.hero__sub { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; max-width: 33em; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.hero__note { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.hero__note::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(255, 77, 18, .24); }
.hero__media .media { --ar: 1122 / 1402; }

.facts { margin-top: clamp(56px, 7vw, 104px); border-top: 2px solid var(--ink); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { padding: 22px 24px 26px 0; font-size: .9375rem; font-weight: 600; display: flex; gap: 12px; align-items: baseline; }
.facts li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--cobalt); border-radius: 2px; transform: translateY(-1px); }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--rule); }

@media (max-width: 1099px) {
  .hero__copy { grid-column: 1 / span 7; }
  .hero__media { grid-column: 8 / span 5; }
}
@media (max-width: 759px) {
  .hero { padding-top: 28px; }
  .hero__copy, .hero__media { grid-column: 1 / -1; }
  .hero__media { max-width: 420px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: calc(100% - var(--slab)); }
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--rule); }
}

/* ---------- 01 Problems ---------- */
.problems { list-style: none; margin: 0; padding: 0; }
.problems li {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: clamp(22px, 2.6vw, 34px) 0; border-top: 1px solid var(--rule);
}
.problems li:last-child { border-bottom: 1px solid var(--rule); }
.problems .p-key { grid-column: 3 / span 1; font-family: var(--font-display); font-weight: 600; color: var(--cobalt); font-size: 1.25rem; padding-top: .2em; }
.problems h3 { grid-column: 4 / span 4; font-size: clamp(1.375rem, 2.3vw, 2rem); letter-spacing: -0.02em; line-height: 1.12; }
.problems p:not(.note) { grid-column: 8 / span 5; margin: 0; color: var(--muted); padding-top: .25em; max-width: 30em; }
@media (max-width: 899px) {
  .problems .p-key { grid-column: 1 / span 2; }
  .problems h3 { grid-column: 3 / span 10; }
  .problems p:not(.note) { grid-column: 3 / span 10; padding-top: 10px; }
}

/* ---------- 02 Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: start; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step__num {
  grid-column: 1 / span 3;
  font-family: var(--font-display);
  font-size: clamp(6rem, 13vw, 11.5rem); font-weight: 600; line-height: .78; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; color: var(--cobalt);
}
.step__num::after { content: ""; display: inline-block; width: .12em; height: .12em; background: var(--signal); border-radius: 50%; margin-left: .03em; }
.step__body { grid-column: 4 / span 4; padding-top: 6px; }
.step__body h3 { font-size: clamp(1.625rem, 2.6vw, 2.375rem); margin-bottom: 18px; }
.step__body p { color: var(--muted); max-width: 30em; }
.step__tag {
  display: inline-block; margin-top: 8px; font-size: .875rem; font-weight: 700;
  padding: 7px 12px; border-radius: 999px; background: var(--cobalt); color: #fff;
}
.step__media { grid-column: 9 / span 4; }
.step__media .media { --ar: 1448 / 1086; }
/* Rhythm: middle step flips media to the left of the text. */
.step--flip .step__media { grid-column: 4 / span 4; grid-row: 1; }
.step--flip .step__body { grid-column: 9 / span 4; }
@media (max-width: 899px) {
  .step, .step--flip { row-gap: 24px; }
  .step__num { grid-column: 1 / -1; }
  .step__body, .step--flip .step__body { grid-column: 1 / span 12; grid-row: auto; }
  .step__media, .step--flip .step__media { grid-column: 1 / span 12; grid-row: auto; max-width: 520px; }
}
@media (min-width: 760px) and (max-width: 899px) {
  .step__num { grid-column: 1 / span 3; grid-row: 1 / span 2; }
  .step__body, .step--flip .step__body { grid-column: 4 / span 9; grid-row: 1; }
  .step__media, .step--flip .step__media { grid-column: 4 / span 9; grid-row: 2; }
}

/* ---------- 03 Offer (full-bleed cobalt band) ---------- */
.offer .sec-head h2 { grid-column: 3 / span 8; }
.offer .sec-no::after { opacity: .7; }
.offer__grid { row-gap: 56px; }
.offer__list { grid-column: 3 / span 6; list-style: none; margin: 0; padding: 0; }
.offer__list li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 12px; padding: 22px 0; border-top: 1px solid var(--rule-on-cobalt); }
.offer__list li:last-child { border-bottom: 1px solid var(--rule-on-cobalt); }
.offer__list .o-no { color: #fff; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.0625rem; padding-top: .15em; }
.offer__list h3 { font-size: 1.5rem; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 6px; }
.offer__list p:not(.note) { margin: 0; color: var(--on-cobalt-2); }
.offer__side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 40px; }
.offer__side h3 { font-family: var(--font); font-size: 1rem; letter-spacing: 0; font-weight: 800; margin-bottom: 12px; color: #fff; }
.offer__side p:not(.note), .offer__side li { color: var(--on-cobalt-2); }
.offer__side ul { margin: 0; padding: 0; list-style: none; }
.offer__side li { padding: 10px 0; border-top: 1px solid var(--rule-on-cobalt); display: flex; gap: 10px; }
.offer__side li::before { content: "+"; color: #fff; font-weight: 800; }
/* The pricing card: cream, ink edge and the same hard slab as the buttons, so the orange CTA sits on cream. */
.price-note {
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius-media);
  box-shadow: 8px 8px 0 0 var(--ink);
  padding: 26px 26px 22px; margin: 0 8px 8px 0;
}
.offer__side .price-note p { color: var(--ink); font-size: 1.0625rem; font-weight: 500; }
.offer__side .price-note .muted { color: var(--muted); font-size: .9375rem; }
.price-note .btn { margin-top: 8px; width: calc(100% - var(--slab)); }
.price-note :focus-visible { outline-color: var(--ink); }
.price-note ::selection { background: var(--signal); color: var(--ink); }
@media (max-width: 1099px) {
  .offer__list { grid-column: 1 / span 7; }
  .offer__side { grid-column: 8 / span 5; }
  .offer .sec-head h2 { grid-column: 3 / span 10; }
}
@media (max-width: 759px) {
  .offer__list, .offer__side { grid-column: 1 / -1; }
}

/* ---------- 04 Guarantee ---------- */
.section.after-band { border-top: 0; }
.guarantee__statement {
  grid-column: 3 / span 10; margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3.375rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12;
  text-wrap: pretty;
}
.guarantee__statement .hl { font-weight: 600; }
.guarantee__fine { grid-column: 3 / span 5; margin-top: 40px; color: var(--muted); max-width: 32em; }
@media (max-width: 759px) {
  .guarantee__statement, .guarantee__fine { grid-column: 1 / -1; }
}

/* ---------- 05 Why psychology (word-fill moment) ---------- */
.cue { grid-column: 3 / span 10; margin: 0 0 clamp(64px, 8vw, 120px); font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.875rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; text-wrap: pretty; }
.cue .w { color: var(--ink); }
.js-motion .cue .w { color: #8C7A5B; } /* 3.4:1, large-text AA even before the fill */
.pillars { list-style: none; margin: 0; padding: 0; grid-column: 3 / span 10; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.pillars li { border-top: 3px solid var(--ink); padding-top: 20px; }
.pillars li:first-child { border-top-color: var(--cobalt); }
.pillars h3 { font-size: 1.5rem; letter-spacing: -0.015em; margin-bottom: 10px; line-height: 1.2; }
.pillars p { color: var(--muted); margin: 0; }
.local-note { grid-column: 3 / span 10; margin-top: 56px; font-size: .9375rem; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 12px; }
@media (max-width: 899px) {
  .cue, .pillars, .local-note { grid-column: 1 / -1; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 06 Founder ---------- */
.founder__grid { row-gap: 40px; align-items: start; }
.founder__photo { grid-column: 3 / span 4; }
.founder__photo .media { --ar: 4 / 5; box-shadow: none; }
.founder__photo .slot { position: absolute; inset: 0; }
.founder__note { grid-column: 8 / span 5; font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.55; }
.founder__note p:not(.note) { max-width: 30em; }
.founder__sig { margin-top: 28px; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.founder__sig span { font-family: var(--font); color: var(--muted); font-weight: 500; font-size: .9375rem; }
.proof-slot { grid-column: 3 / span 10; min-height: 200px; margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 899px) {
  .founder__photo { grid-column: 1 / span 5; }
  .founder__note { grid-column: 6 / span 7; }
  .proof-slot { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  .founder__photo, .founder__note { grid-column: 1 / -1; }
  .founder__photo { max-width: 360px; }
}

/* ---------- 07 FAQ ---------- */
.faq { grid-column: 3 / span 10; border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__q { font-size: clamp(1.1875rem, 1.8vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; text-underline-offset: .2em; }
.faq__icon { flex: none; width: 32px; height: 32px; position: relative; border: 2px solid var(--ink); border-radius: 50%; transition: background-color .2s, border-color .2s, color .2s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease-out); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq__icon { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.faq details[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 0 28px; max-width: 44em; color: var(--muted); }
.faq__a p:last-child { margin-bottom: 0; }
@media (max-width: 899px) { .faq { grid-column: 1 / -1; } }

/* ---------- Close (full-bleed orange band) ---------- */
.close { padding-block: clamp(96px, 13vw, 184px); overflow: clip; } 
.close__title { grid-column: 1 / span 10; font-size: clamp(3rem, 7.6vw, 6rem); font-weight: 600; letter-spacing: -0.02em; line-height: .95; }
.close__body { grid-column: 7 / span 6; margin-top: clamp(40px, 5vw, 64px); }
.close__body p:not(.note) { color: var(--ink); font-size: 1.125rem; font-weight: 500; max-width: 30em; }
.close__actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.close__actions .hero__note { margin: 0; color: var(--ink); }
.band--orange .hero__note::before { background: var(--ink); box-shadow: 0 0 0 3px var(--card); }
@media (max-width: 759px) {
  .close__title, .close__body { grid-column: 1 / -1; }
  .close__actions .btn { width: calc(100% - var(--slab)); }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-on-ink); padding: 44px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; align-items: flex-start; }
.footer .brand { color: var(--paper); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; transition: color .15s; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--rule-on-ink); }

/* ---------- v3 scribble layer: margin notes + hand-drawn doodles ----------
   Notes are real text in Caveat Brush (navy on cream/orange, white on cobalt; never orange text).
   Doodles are inline SVG strokes, decorative: aria-hidden, no pointer events, drawn by default
   (no JS / reduced motion = fully drawn). main.js draws them in with stroke-dashoffset. */
.note {
  font-family: var(--font-scribble); font-weight: 400;
  font-size: var(--note-size); line-height: 1.2; letter-spacing: .01em;
  color: var(--ink); margin: 0;
  display: flex; align-items: flex-start; gap: 6px;
  transform: rotate(-2deg); transform-origin: left center;
  text-wrap: balance;
}
.band--cobalt .note { color: #fff; }
.band--orange .note { color: var(--ink); }
.doodle {
  display: block; overflow: visible; pointer-events: none; max-width: none;
  fill: none; stroke: currentColor; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Every doodle path is pathLength="1"; a dash of 1 and a gap of 2 covers it, and an offset just past 1
   hides it with no round-cap dot left at either end. */
.doodle path { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.note__arrow { flex: none; width: 2em; height: auto; color: var(--signal); margin-top: -.1em; }
.band--cobalt .note__arrow { color: #fff; }
.band--orange .note__arrow { color: var(--ink); }
.doodle--ink { stroke: var(--ink); }

/* Hero note: under the primary CTA, its arrow pointing up at it.
   Desktop: its own row under the buttons. Phone (stacked): between the two buttons, so it still points at the primary. */
.note--cta { order: 3; flex-basis: 100%; padding-left: 14px; margin-top: 2px; }
.note--cta .note__arrow { width: 1.9em; }
@media (max-width: 759px) {
  .note--cta { order: 0; padding-left: 10px; margin: -2px 0 4px; }
}

/* Sparks next to the cursor in the hero render (inside figure.media, so they tilt with it). */
.doodle--sparks { position: absolute; z-index: 2; left: 63%; top: 50%; width: 26%; height: auto; color: var(--signal); stroke-width: 4.5; }

/* Rail notes: in the empty left rail (cols 1-2) on wide screens, pointing right at the item; in flow below. */
.note--rail .note__arrow--rail { display: none; }
.note--problems { grid-column: 3 / -1; margin-top: 16px; }
.note--offer { margin-top: 14px; }
@media (min-width: 900px) and (max-width: 1099px) {
  .note--problems { grid-column: 8 / -1; }
}
@media (min-width: 1100px) {
  .note--rail .note__arrow--rail { display: block; margin-top: .2em; }
  .note--rail { flex-direction: column; align-items: flex-end; gap: 0; text-align: right; transform: rotate(-4deg); transform-origin: right center; }
  .note--problems { grid-column: 1 / span 2; grid-row: 1; align-self: start; margin-top: -.15em; padding-right: 4px; }
  .offer__list li.has-note { position: relative; }
  .note--offer { position: absolute; right: calc(100% + var(--gap)); top: 18px; width: max-content; max-width: 6.5em; margin: 0; }
}

/* Guarantee: beside the fine print on wide screens, arrow up toward "free."; in flow on phones. */
.note--guarantee { grid-column: 9 / span 4; grid-row: 2; margin-top: 36px; align-self: start; }
@media (max-width: 759px) {
  .note--guarantee { grid-column: 1 / -1; grid-row: auto; margin-top: 28px; }
}

/* Founder: under the signature, arrow up at the name. */
.note--founder { margin-top: 10px; }

/* Close: the circled "free" in the title, and a note with a curved arrow down to the CTA. */
.circled { position: relative; display: inline-block; }
.doodle--circle { position: absolute; left: -.3em; top: -.12em; width: calc(100% + .6em); height: auto; color: var(--ink); stroke-width: 4; }
.note--close { margin-top: 8px; align-items: flex-end; }
.note--close .note__arrow { width: 1.8em; margin: 0 0 -.9em 2px; }
.note--close + .close__actions { margin-top: 26px; }

/* ---------- Audit page ---------- */
.audit-page { padding-top: clamp(40px, 6vw, 88px); }
.audit__grid { row-gap: 56px; align-items: start; }
.audit__intro { grid-column: 1 / span 5; position: sticky; top: 108px; }
.audit__intro h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); letter-spacing: -0.02em; line-height: .98; margin-bottom: 28px; }
.audit__intro .lead { font-size: 1.1875rem; max-width: 28em; }
.audit__gets { list-style: none; margin: 32px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.audit__gets li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 2.75rem 1fr; font-weight: 500; }
.audit__gets b { color: var(--cobalt); font-family: var(--font-display); font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; padding-top: .05em; }
.audit__form { grid-column: 7 / span 6; }
@media (max-width: 899px) {
  .audit__intro { grid-column: 1 / -1; position: static; }
  .audit__form { grid-column: 1 / -1; }
}

.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 599px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: .9375rem; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink);
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-btn);
  padding: 13px 14px; min-height: 54px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 124px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230E1A2B' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--ink); box-shadow: 4px 4px 0 0 var(--cobalt); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: .875rem; font-weight: 600; min-height: 0; margin: 0; }
.field__error:empty { display: none; }
.field__hint { color: var(--muted); font-size: .875rem; font-weight: 500; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
@media (max-width: 599px) { .form__submit .btn { width: calc(100% - var(--slab)); } }
.form__status { border-radius: var(--radius-btn); padding: 18px 20px; background: var(--paper-2); font-size: .9375rem; }
.form__status:empty { display: none; }
.form__status a { font-weight: 700; }
.form__todo { font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 16px; margin: 8px 0 0; }

/* Start pose for the hero entrance; set by an inline head script only when motion is allowed.
   v5.3: the H1 is the LCP and is never masked, moved or delayed: it paints in its final place on the first frame.
   Only the sub-line, actions and note settle 12px (transform only, never hidden). Hero doodles wait undrawn. */
.motion-pending [data-hero] { transform: translateY(12px); }
.motion-pending .doodle--hero path { stroke-dashoffset: 1.05; }

/* =====================================================================================
   v4 (Nov 27 2026): immersive layer. Everything below is additive; without the head script's
   "js" class the v3 page (static section grounds) is what renders.
   ===================================================================================== */

/* ---------- Theme engine ----------
   One state on <html data-tone> drives the page ground AND every themed text colour together,
   so text always sits on the ground it was designed for (also at scrollY 0, where Lighthouse audits).
   Registered properties let the whole set crossfade in .6s (a timed fade, never scrubbed); browsers without @property just snap. */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #F3E6CF; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #0E1A2B; }
@property --fg-2 { syntax: "<color>"; inherits: true; initial-value: #5E5446; }
@property --acc { syntax: "<color>"; inherits: true; initial-value: #2E46FF; }
@property --doodle { syntax: "<color>"; inherits: true; initial-value: #FF4D12; }
@property --rule-c { syntax: "<color>"; inherits: true; initial-value: rgba(14, 26, 43, .18); }
@property --focus { syntax: "<color>"; inherits: true; initial-value: #0E1A2B; }

html.js {
  /* cream (default) — navy 14.18, muted 6.01, cobalt 4.96 */
  --bg: #F3E6CF; --fg: #0E1A2B; --fg-2: #5E5446; --acc: #2E46FF; --doodle: #FF4D12;
  --rule-c: rgba(14, 26, 43, .18); --focus: #0E1A2B;
  transition: --bg .6s ease, --fg .6s ease, --fg-2 .6s ease, --acc .6s ease, --doodle .6s ease, --rule-c .6s ease, --focus .6s ease;
}
/* navy — cream 14.18, #B9AE98 7.97, orange 5.26 (cobalt on navy is only 2.86, so accents go orange here) */
html.js[data-tone="navy"] { --bg: #0E1A2B; --fg: #F3E6CF; --fg-2: #B9AE98; --acc: #FF4D12; --doodle: #FF4D12; --rule-c: rgba(243, 230, 207, .2); --focus: #F3E6CF; }
/* cobalt — white 6.11, #E8EBFF 5.17 */
html.js[data-tone="cobalt"] { --bg: #2E46FF; --fg: #FFFFFF; --fg-2: #E8EBFF; --acc: #FFFFFF; --doodle: #FFFFFF; --rule-c: rgba(255, 255, 255, .34); --focus: #FFFFFF; }
/* orange — navy 5.26 for everything */
html.js[data-tone="orange"] { --bg: #FF4D12; --fg: #0E1A2B; --fg-2: #0E1A2B; --acc: #0E1A2B; --doodle: #0E1A2B; --rule-c: rgba(14, 26, 43, .3); --focus: #0E1A2B; }
@media (prefers-reduced-motion: reduce) { html.js { transition: none; } }

html.js, html.js body { background-color: var(--bg); color: var(--fg); }
/* The ground lives on <html> only: a body background would paint above the z-index:-1 WebGL canvas. */
html.js body { background-color: transparent; }
/* Desktop hero without the live scene: the cream poster stays behind the copy, so the hero keeps
   cream-tone colours even while the next (navy) section owns the page. Keyed on .hero-live (the hero
   concept has started forming), not on scene-live: the poster stays up if the hero never forms. */
@media (min-width: 760px) {
  html.js:not(.hero-live) .hero {
    --fg: #0E1A2B; --fg-2: #5E5446; --acc: #2E46FF; --doodle: #FF4D12; --rule-c: rgba(14, 26, 43, .18); --focus: #0E1A2B;
    color: var(--fg);
  }
}
/* Footer follows the theme like every section (it may never reach mid-screen on tall screens). */
html.js .footer { background: transparent; color: var(--fg-2); }
html.js .footer .brand { color: var(--fg); }
html.js .footer__meta { border-top-color: var(--rule-c); }
html.js .on-ink :focus-visible { outline-color: var(--focus); }
@media (hover: hover) and (pointer: fine) { html.js .footer a:hover { color: var(--fg); } }
/* No sideways scroll from decorative overflow (marquee, outline word, grain). clip, unlike hidden, keeps sticky working. */
body { overflow-x: clip; }
html.js .section, html.js .band--cobalt, html.js .band--orange { background: transparent; color: var(--fg); }
html.js .section + .section:not(.band):not(.after-band) { border-top-color: var(--rule-c); }
html.js :focus-visible, html.js .band--cobalt :focus-visible { outline-color: var(--focus); }
html.js .price-note :focus-visible { outline-color: var(--ink); }

html.js .muted, html.js .band--cobalt .muted { color: var(--fg-2); }
html.js .sec-no, html.js .band--cobalt .sec-no, html.js .problems .p-key, html.js .step__num { color: var(--acc); }
html.js .step__num::after { background: var(--fg); }
html.js .problems p:not(.note), html.js .step__body p, html.js .guarantee__fine, html.js .pillars p,
html.js .local-note, html.js .founder__sig span, html.js .faq__a, html.js .hero__note, html.js .slot { color: var(--fg-2); }
html.js .slot strong { color: var(--fg); }
html.js .slot { border-color: var(--rule-c); background: transparent; }
html.js .problems li, html.js .step, html.js .faq, html.js .faq details, html.js .facts li + li { border-color: var(--rule-c); }
html.js .facts { border-top-color: var(--fg); }
html.js .pillars li { border-top-color: var(--fg); }
html.js .pillars li:first-child { border-top-color: var(--acc); }
html.js .offer__list .o-no, html.js .offer__side h3, html.js .offer__side li::before { color: var(--fg); }
html.js .offer__list p:not(.note), html.js .offer__side > div:not(.price-note) p, html.js .offer__side li { color: var(--fg-2); }
html.js .offer__list li, html.js .offer__side li { border-color: var(--rule-c); }
html.js .note, html.js .band--cobalt .note, html.js .band--orange .note { color: var(--fg); }
html.js .note__arrow, html.js .band--cobalt .note__arrow, html.js .band--orange .note__arrow { color: var(--doodle); }
html.js .doodle--circle { color: var(--fg); }
html.js .faq__icon { border-color: var(--fg); }
html.js .close__body p:not(.note), html.js .close__actions .hero__note { color: var(--fg); }
html.js .band--orange .hero__note::before { background: var(--fg); }

/* Header follows the theme: same ground (slightly see-through), same ink. */
html.js .site-header { background: var(--bg); background: color-mix(in srgb, var(--bg) 94%, transparent); color: var(--fg); }
html.js .site-header.is-scrolled { border-bottom-color: var(--rule-c); }
html.js .nav__links a { color: var(--fg-2); }
html.js .nav__links a.btn { color: var(--ink); }
html.js .nav-toggle { color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  html.js .nav__links a:not(.btn):hover { color: var(--fg); text-decoration-color: var(--doodle); }
}
@media (max-width: 899px) {
  html.js .site-header.menu-open .nav__links { background: var(--bg); border-top-color: var(--rule-c); }
  html.js .site-header.menu-open .nav__links li { border-bottom-color: var(--rule-c); }
  html.js .site-header.menu-open .nav__links a:not(.btn) { color: var(--fg); }
}

/* ---------- WebGL layer ----------
   One fixed full-screen canvas behind the page (opaque, its clear colour follows --bg). It fades in
   once the first frame is drawn (html.scene-live). Decorative: aria-hidden, no pointer events. */
.scene-canvas {
  position: fixed; inset: 0 auto auto 0; z-index: -1; width: 100%; height: 100vh; height: 100lvh; /* lvh: URL-bar changes never resize it */
  display: block; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease-out);
}
html.scene-live .scene-canvas { opacity: 1; }

/* ---------- Pill buttons with a dot (v4), keeping the v2 edge + hard slab and the v3 press ---------- */
.btn { border-radius: 999px; padding: 0 24px 0 20px; }
.btn--small { padding: 0 16px 0 14px; }
.btn::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; transition: transform .35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: scale(1.6); }
}
.btn:active::before { transform: scale(.6); }

/* Micro click: squash + ring + spark ticks, added by main.js on press. Absolute, inside the button:
   nothing outside the button moves. */
.btn.is-clicked { animation: btn-squash .32s var(--ease-out); }
@keyframes btn-squash { 0% { scale: 1 1; } 30% { scale: 1.035 .9; } 65% { scale: .985 1.03; } 100% { scale: 1 1; } }
.btn-fx { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: visible; }
.btn-ring {
  position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border: 2px solid var(--ink); border-radius: 50%; animation: btn-ring .55s var(--ease-out) forwards;
}
@keyframes btn-ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(8); opacity: 0; } }
.btn-spark {
  position: absolute; left: var(--x); top: var(--y); width: 3px; height: 10px; margin: -5px 0 0 -1.5px;
  border-radius: 2px; background: var(--ink); animation: btn-spark .5s var(--ease-out) forwards;
}
.btn-spark:nth-child(odd) { background: var(--signal); }
@keyframes btn-spark {
  from { transform: rotate(var(--a)) translateY(-12px) scaleY(1); opacity: 1; }
  to { transform: rotate(var(--a)) translateY(-34px) scaleY(.2); opacity: 0; }
}

/* ---------- Hero (v4): poster full-bleed, outline word, 3D slot ---------- */
.hero { overflow: clip; min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 0; }
.hero__copy, .hero .facts { position: relative; z-index: 2; }
.hero__slot { grid-column: 8 / span 5; min-height: clamp(320px, 54vh, 600px); }
.hero__poster { position: absolute; inset: 0; z-index: 0; transition: opacity 1s var(--ease-out); pointer-events: none; }
.hero__poster picture, .hero__poster img { width: 100%; height: 100%; }
/* v5.3 still: a real capture of the live scene, composed for the hero (empty cream left for the copy, cursor + button
   + stream on the right; phones: the 4:5 stacked framing). Centred. The v4 fallback keeps its own 74% crop. */
.hero__poster img { object-fit: cover; object-position: 50% 50%; }
.hero__poster.is-v4 img { object-position: 74% 50%; }
/* Desktop/tablet: the poster fills the hero (full bleed) but stops above the facts row. The hero still has a
   navy button base along its bottom edge (~47-71% x, bottom ~22%); the facts' navy text must never sit on it.
   104px = the facts row at up to two lines (2 x 24px + 48px padding + 2px rule) plus a little air. */
@media (min-width: 760px) { .hero__poster { bottom: 104px; } }
.hero__poster.is-missing { display: none; }
/* v5.3: on the motion path (html.scene) the still is never rendered, so it is never fetched (loading="lazy") and never
   competes with the H1 for LCP. If the scene fails, CC.fail removes html.scene and the still loads as the fallback. */
html.scene .hero__poster { display: none; }
/* Each slot hands over to the scene on its own (.is-live, set when its concept starts forming). */
html.scene-live .hero__slot.is-live .hero__poster { opacity: 0; }
.outline-word { position: absolute; inset: 0; z-index: 1; overflow: clip; pointer-events: none; display: flex; align-items: flex-start; padding-top: clamp(12px, 4vh, 48px); }
.outline-word svg { width: 116%; max-width: none; height: auto; margin-left: -3%; flex: none; }
/* 175px (was 150 for Clash): CueClick Display is narrower (CUECLICK 4.41em vs 5.17em), so textLength stretches it
   about as much as before (~30%). Cap height .674em -> top at y 14 of the 160 viewBox. */
.outline-word text { font-family: var(--font-display); font-weight: 600; font-size: 175px; fill: none; stroke: var(--ink); stroke-opacity: .12; stroke-width: 1.3; }
.hero .facts { margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 1099px) { .hero__slot { grid-column: 8 / span 5; } }
@media (max-width: 759px) {
  .hero { min-height: 0; display: block; }
  .hero__slot { grid-column: 1 / -1; position: relative; aspect-ratio: 4 / 5; min-height: 0; margin: 8px calc(-1 * var(--gutter)) 0; }
  .outline-word svg { width: 150%; }
}

/* Corner UI: "Scroll" bottom-left of the hero, section counter bottom-right of the viewport. Decorative. */
.corner {
  font: 700 .75rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; color: var(--fg);
}
.corner--scroll { position: absolute; z-index: 2; left: max(14px, calc(var(--gutter) / 2 - 6px)); bottom: 28px; writing-mode: vertical-rl; transform: rotate(180deg); transition: opacity .4s; }
.corner__line { width: 1px; height: 44px; background: currentColor; transform-origin: bottom; }
@media (prefers-reduced-motion: no-preference) { .corner__line { animation: corner-line 1.8s var(--ease-out) infinite; } }
@keyframes corner-line { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
html.is-scrolled-away .corner--scroll { opacity: 0; }
@media (max-width: 899px) { .corner--scroll { display: none; } }
.corner--progress {
  position: fixed; z-index: 45; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  padding: 9px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; letter-spacing: .08em;
  background: color-mix(in srgb, var(--bg, #F3E6CF) 88%, transparent); border: 1px solid var(--rule-c, rgba(14,26,43,.18));
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease-out);
}
.corner--progress .corner__now { color: var(--fg); }
.corner--progress .corner__sep { opacity: .5; margin-inline: 3px; }
html.has-progress .corner--progress { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: clip; background: var(--signal); color: var(--ink); border-block: 2px solid var(--ink); padding-block: clamp(14px, 1.6vw, 22px); position: relative; z-index: 1; }
.marquee__track { display: flex; width: max-content; }
.marquee__track span {
  /* v5.2: sentence case, not uppercase, so CueClick Display's lowercase c arrow, k and click-dots on i / j read. */
  flex: none; white-space: nowrap; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.75rem, 5.2vw, 4.75rem); line-height: 1; letter-spacing: -0.015em; padding-right: .35em;
}
.marquee__track i { font-style: normal; color: var(--card); -webkit-text-stroke: 2px var(--ink); padding-inline: .15em; }

/* ---------- Stage blocks (v5: normal-height sections, nothing pinned or scrubbed) ----------
   Each block is a stage line + sub and a 4:3 slot. The 3D concept in the slot plays by itself when the
   slot enters view. Layout never depends on WebGL: the still render holds the slot, and only its opacity
   changes when the scene takes that slot over (.stage-slot.is-live). */
.stage { position: relative; }
.stage__inner { padding-bottom: clamp(56px, 7vw, 96px); }
.stage__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.stage__copy { grid-column: 1 / span 6; position: relative; z-index: 1; }
.stage__line {
  margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: .96;
  font-size: clamp(2.5rem, 6.2vw, 6rem); text-wrap: balance;
}
.stage__sub { margin: clamp(18px, 2vw, 28px) 0 0; max-width: 26em; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--fg-2, var(--muted)); }
.stage__slot { grid-column: 7 / span 6; position: relative; aspect-ratio: 4 / 3; }
.stage__still { position: absolute; inset: 0; border-radius: var(--radius-media); overflow: hidden; box-shadow: var(--media-shadow); transition: opacity .9s var(--ease-out); }
.stage__still img { width: 100%; height: 100%; object-fit: cover; }
.stage__still.is-missing { display: none; }
html.scene-live .stage-slot.is-live .stage__still { opacity: 0; }
@media (max-width: 759px) {
  .stage__grid { grid-template-columns: 1fr; row-gap: 28px; }
  .stage__copy, .stage__slot { grid-column: 1 / -1; }
  .stage__line { font-size: clamp(2.25rem, 10.5vw, 3.25rem); }
}

/* v5.1 hook-machine notes: Caveat Brush labels + doodle arrows over the stage-2 slot (src/scene/hooklabels.js).
   Decorative (aria-hidden; one visually hidden sentence in .stage__copy says the same). Placed by transform
   from the 3D anchors, clamped inside the slot. Text is --fg (cream on navy, 14:1) with a ground-coloured halo
   so it stays legible over the render; 18 px minimum. The note of the current beat grows a little and redraws
   its arrow. */
.hook-notes { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease-out); }
html.scene-live .stage-slot.is-live .hook-notes.is-on { opacity: 1; }
.hook-note {
  position: absolute; left: 0; top: 0; margin: 0; gap: 2px; white-space: nowrap; text-wrap: nowrap;
  font-size: clamp(1.125rem, .95rem + .45vw, 1.375rem); line-height: 1.1;
  text-shadow: 0 0 6px var(--bg, #0E1A2B), 0 0 3px var(--bg, #0E1A2B), 0 1px 1px var(--bg, #0E1A2B);
  transform-origin: left bottom; will-change: transform;
}
.hook-note--bl { align-items: flex-end; }
.hook-note--tl { align-items: flex-start; }
.hook-note--r { align-items: center; }
.hook-note__arrow { width: 1.45em; margin: 0; }
.hook-note--r .hook-note__arrow { width: 1.6em; }
.hook-note--bl .hook-note__t { padding-bottom: .5em; }
.hook-note--tl .hook-note__t { padding-top: .55em; }
.hook-note__t { display: inline-block; transition: transform .45s var(--ease-out); transform-origin: left center; }
.hook-note--r .hook-note__t { transform-origin: right center; }
.hook-note__short { display: none; }
.hook-note.is-beat .hook-note__t { transform: scale(1.14) rotate(-2deg); }
.hook-note.is-beat .hook-note__arrow path { animation: hook-arrow .7s var(--ease-out) both; }
@keyframes hook-arrow { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }
@media (max-width: 759px) {
  .hook-note__long { display: none; }
  .hook-note__short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .hook-note__t { transition: none; }
  .hook-note.is-beat .hook-note__arrow path { animation: none; }
}

/* Guarantee CTA (v4: a CTA after the guarantee). */
.guarantee__cta { grid-column: 3 / span 10; margin-top: 36px; }
@media (max-width: 759px) {
  .guarantee__cta { grid-column: 1 / -1; }
  .guarantee__cta .btn { width: calc(100% - var(--slab)); }
}

/* ---------- Footer badge ---------- */
/* 3D card height = 0.6 x box height (see src/scene/badge.js): 400 px box -> 240 px card, 320 px -> 192 px.
   The box is the hit area; the 3D card may swing past it (rendered on the fixed canvas, never clipped). */
.badge-stage { position: relative; width: 340px; height: 400px; margin: 12px 0 0 auto; touch-action: pan-y; }
.badge-html { position: absolute; inset: 0; padding-top: 0; display: flex; flex-direction: column; align-items: center; transition: opacity .6s var(--ease-out); }
.badge-html__strap { width: 14px; height: 92px; background: var(--signal); border-radius: 0 0 3px 3px; }
.badge-html__clip { width: 34px; height: 18px; margin-top: -2px; border-radius: 5px; background: linear-gradient(180deg, #F4F4F4, #8E949C 55%, #D9DCE0); }
.badge-html__card {
  margin-top: -4px; width: 186px; height: 236px; border-radius: 16px; background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 0 var(--signal);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 18px 16px; transform: rotate(-3deg); transform-origin: 50% -40px;
}
.badge-html__brand { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; margin-bottom: auto; }
.badge-html__name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.05; letter-spacing: -0.02em; }
.badge-html__role { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.badge-stage.is-3d .badge-html { opacity: 0; }
.badge-stage.is-3d { cursor: grab; }
.badge-stage.is-3d:active { cursor: grabbing; }
html.scene-live .footer { background: transparent; }
@media (max-width: 759px) { .badge-stage { margin-inline: auto; width: min(270px, 100%); height: 320px; } }

/* ---------- Boot loader (v5.4): full-screen, a cursor clicks a like button until it bursts into likes ----------
   Shown on every load that boots the 3D (the boot script sets html.intro only together with html.scene; never under
   reduced motion). A fixed cream overlay over the whole page while scene.js loads and compiles behind it; the H1
   stays in the DOM in its final place underneath. CSS keyframes for the motion, transform + opacity only (smooth on
   the compositor while three.js parses). The inline helper in index.html owns the phases:
     1 click-in (1.36 s, always plays once): cursor glides in, clicks four times (squash + ring; the heart fills, grows)
     2 .is-wait (only if the 3D is not ready yet): one tap + heart pulse per .62 s loop, until html.scene-live
     3 .is-burst: the heart explodes into likes / views / reposts / shares (brand colours), then the overlay fades
       (.3 s from .42 s). html.intro-hold drops as the fade starts, and the hero 3D begins forming underneath.
   Cached + ready: 1.36 + .42 + .3 s ~ 2.1 s, no loop.
   div.intro, never a bare .intro: the boot script puts class "intro" on <html> too, and a bare .intro
   rule made the whole document display:none during the intro (every ScrollTrigger measured 0 x 0). */
div.intro { display: none; }
html.intro div.intro {
  display: block; position: fixed; inset: 0; z-index: 300; background: var(--paper);
  --k: 1; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; cursor: pointer;
}
html.intro div.intro.is-burst { animation: intro-out .3s var(--ease-out) .42s forwards; }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
/* Skipped mid-flight: freeze where it is and fade out fast. */
html.intro div.intro.is-skipping { animation: intro-skip .2s var(--ease-out) forwards; }
html.intro div.intro.is-skipping * { animation-play-state: paused; }
@keyframes intro-skip { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

.intro__stage { position: absolute; left: 50%; top: 47%; width: 0; height: 0; pointer-events: none; overflow: visible; }
/* The global `svg { max-width: 100% }` rule would collapse these to 0px inside the 0×0 stage. */
.intro__cursor, .intro__p, .intro__heart svg { max-width: none; }
.intro__btn, .intro__ring { position: absolute; left: -58px; top: -58px; width: 116px; height: 116px; border-radius: 50%; }
.intro__btn {
  display: grid; place-items: center; background: var(--card); border: 2px solid var(--ink); box-shadow: 5px 6px 0 0 var(--ink);
  animation: intro-btn 1.36s linear both;
}
.intro__heart { position: relative; width: 48px; height: 48px; animation: intro-heart 1.36s linear both; }
.intro__heart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro__heart-o { fill: var(--card); stroke: var(--ink); stroke-width: 1.9; stroke-linejoin: round; }
.intro__heart-f { fill: var(--signal); stroke: var(--ink); stroke-width: 1.9; stroke-linejoin: round; transform-origin: 50% 55%; animation: intro-fill 1.36s linear both; }
.intro__ring { border: 2px solid var(--ink); opacity: 0; animation: intro-ring .5s cubic-bezier(.2, .7, .3, 1) var(--d) forwards; }
.intro__ring--burst { border: 3px solid var(--signal); animation: none; }
.intro__cursor {
  position: absolute; left: 11px; top: 13px; width: 44px; height: 53px; overflow: visible;
  fill: var(--signal); stroke: var(--ink); stroke-width: .7; stroke-linejoin: round;
  transform-origin: 3px 3px; animation: intro-cursor 1.36s linear both;
}
.intro__p { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; overflow: visible; opacity: 0; }
.intro__p--h { fill: currentColor; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.intro__p--g { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.intro__p.is-o { color: var(--signal); }
.intro__p.is-n { color: var(--ink); }
.intro__p.is-c { color: var(--cobalt); }
.intro__skip {
  position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 1;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card);
  color: var(--ink); font: 700 .875rem/1 var(--font); cursor: pointer;
}
.intro__skip:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* Phase 1, click-in (1.36 s). Cursor: glide in, four clicks (squash at the tip), rest on the button. */
@keyframes intro-cursor {
  0% { transform: translate(120px, 96px) rotate(10deg) scale(1, 1); opacity: 0; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
  7.5% { opacity: 1; }
  35.2%, 37.5% { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
  41.1% { transform: translate(1px, 2px) rotate(0deg) scale(1.12, .8); }
  46.4%, 55.1% { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
  58.9% { transform: translate(1px, 2px) rotate(0deg) scale(1.12, .8); }
  64%, 70.6% { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
  74.2% { transform: translate(1px, 2px) rotate(0deg) scale(1.12, .8); }
  79.4%, 84.5% { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
  88.2% { transform: translate(1px, 3px) rotate(0deg) scale(1.16, .76); }
  93.4%, 100% { transform: translate(0, 0) rotate(0deg) scale(1, 1); opacity: 1; }
}
/* Button: pops in, gives under each click. */
@keyframes intro-btn {
  0% { transform: scale(.7, .7); opacity: 0; animation-timing-function: cubic-bezier(.3, 1.5, .5, 1); }
  10%, 41.5% { transform: scale(1, 1); opacity: 1; }
  43.8% { transform: scale(1.07, .9); }
  48.8%, 59.2% { transform: scale(1, 1); }
  61.5% { transform: scale(1.07, .9); }
  66.5%, 74.6% { transform: scale(1, 1); }
  76.9% { transform: scale(1.07, .9); }
  81.9%, 88.6% { transform: scale(1, 1); }
  90.9% { transform: scale(1.09, .88); }
  95.9%, 100% { transform: scale(1, 1); opacity: 1; }
}
/* Heart: grows a step with each click (with a small overshoot); rests at 1.4. */
@keyframes intro-heart {
  0%, 41.5% { transform: scale(1); }
  43.8% { transform: scale(1.14); } 48.8%, 59.2% { transform: scale(1.08); }
  61.5% { transform: scale(1.24); } 66.5%, 74.6% { transform: scale(1.17); }
  76.9% { transform: scale(1.34); } 81.9%, 88.6% { transform: scale(1.27); }
  90.9% { transform: scale(1.48); } 95.9%, 100% { transform: scale(1.4); }
}
/* Fill: an orange heart grows inside the outline, a step per click, full on the fourth. */
@keyframes intro-fill {
  0%, 41.5% { transform: scale(0); }
  43.8% { transform: scale(.5); } 48.8%, 59.2% { transform: scale(.42); }
  61.5% { transform: scale(.72); } 66.5%, 74.6% { transform: scale(.66); }
  76.9% { transform: scale(.92); } 81.9%, 88.6% { transform: scale(.86); }
  90.9% { transform: scale(1.06); } 95.9%, 100% { transform: scale(1); }
}
@keyframes intro-ring { 0% { transform: scale(.92); opacity: .75; } 100% { transform: scale(1.7); opacity: 0; } }

/* Phase 2, .is-wait: the 3D is still loading. One tap per .62 s (cursor squash, button give, heart pulse, ring);
   the helper bursts on the loop boundary after html.scene-live, so the explosion always starts from the rest pose. */
div.intro.is-wait .intro__cursor { animation: intro-wait-cursor .62s linear infinite; }
div.intro.is-wait .intro__btn { animation: intro-wait-btn .62s linear infinite; }
div.intro.is-wait .intro__heart { animation: intro-wait-heart .62s linear infinite; }
div.intro.is-wait .intro__ring:first-child { animation: intro-wait-ring .62s linear infinite; }
@keyframes intro-wait-cursor {
  0%, 18% { transform: translate(0, 0) scale(1, 1); }
  26% { transform: translate(1px, 3px) scale(1.14, .78); }
  40%, 100% { transform: translate(0, 0) scale(1, 1); }
}
@keyframes intro-wait-btn { 0%, 22% { transform: scale(1, 1); } 30% { transform: scale(1.07, .9); } 44%, 100% { transform: scale(1, 1); } }
@keyframes intro-wait-heart { 0%, 22% { transform: scale(1.4); } 32% { transform: scale(1.54); } 52%, 100% { transform: scale(1.4); } }
@keyframes intro-wait-ring {
  0%, 25% { transform: scale(.92); opacity: 0; }
  26% { transform: scale(.92); opacity: .6; animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Phase 3, .is-burst: the heart swells and explodes; 16 glyphs fly out; the overlay fades from .42 s. */
div.intro.is-burst .intro__cursor { animation: intro-cursor-out .34s cubic-bezier(.3, 0, .2, 1) forwards; }
div.intro.is-burst .intro__btn { animation: intro-btn-out .2s cubic-bezier(.3, 0, .6, 1) forwards; }
div.intro.is-burst .intro__heart { animation: intro-heart-out .2s cubic-bezier(.3, 0, .6, 1) forwards; }
div.intro.is-burst .intro__ring--burst { animation: intro-ring-burst .62s cubic-bezier(.16, 1, .3, 1) forwards; }
div.intro.is-burst .intro__p { animation: intro-p .74s cubic-bezier(.12, .8, .24, 1) var(--d, 0s) both; }
/* .is-wait stays on through the burst (dropping it would restart the first ring's click-in animation); the wait
   ring ends each loop at opacity 0, so it simply stops. Same specificity as the wait rules, later: burst wins. */
div.intro.is-burst.is-wait .intro__ring:first-child { animation: none; opacity: 0; }
@keyframes intro-cursor-out {
  0%, 17% { transform: translate(0, 0) rotate(0deg) scale(1, 1); opacity: 1; }
  100% { transform: translate(34px, 28px) rotate(14deg) scale(.9, .9); opacity: 0; }
}
@keyframes intro-btn-out { 0% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes intro-heart-out { 0% { transform: scale(1.4); } 40% { transform: scale(1.6); } 100% { transform: scale(1.9); } }
@keyframes intro-ring-burst { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(3.1); opacity: 0; } }
/* Burst glyphs: from the heart outward to (--x, --y) px (x --k on phones), turning to --r, sized --s. */
@keyframes intro-p {
  0% { transform: translate(0, 0) rotate(0deg) scale(.2); opacity: 0; }
  10%, 62% { opacity: 1; }
  100% { transform: translate(calc(var(--x) * var(--k) * 1px), calc(var(--y) * var(--k) * 1px)) rotate(var(--r)) scale(var(--s)); opacity: 0; }
}

/* Phones: the same overlay, the burst a little tighter. */
@media (max-width: 759px) {
  html.intro div.intro { --k: .74; }
  .intro__stage { top: 45%; }
}
@media (prefers-reduced-motion: reduce) { html.intro div.intro { display: none; } }

/* ---------- Motion guards ----------
   Content is visible by default. GSAP sets from-states only when motion is allowed. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
