/* =========================================================
   Film leader: cream paper, warm black, one signal yellow.
   Every colour is OKLCH. Neutrals sit on hue 70 (dark) to 88 (paper);
   the accent is one yellow family (hue 80 to 95), lightness does the work.
   Yellow is a fill (markers, playheads, highlights, primary buttons with ink text).
   Accent-coloured TEXT on light surfaces is --signal-ink; on dark it is --signal.
   ========================================================= */
:root {
  /* light surfaces */
  --paper: oklch(0.962 0.018 88);      /* the page */
  --paper-2: oklch(0.935 0.018 86);    /* insets, tracks, quiet chips */
  --card: oklch(0.985 0.01 88);        /* cards and sheets on the page */
  --line: oklch(0.88 0.016 85);        /* rules and hairlines */
  --line-2: oklch(0.83 0.018 82);      /* stronger rules, empty marks */
  --mute: oklch(0.74 0.02 80);         /* inactive marks, not for text under 24px */
  --mid: oklch(0.6 0.016 75);          /* neutral data fills */
  /* ink */
  --ink: oklch(0.185 0.01 70);         /* warm black: headings, strong text, ink surfaces */
  --text: oklch(0.36 0.012 70);        /* body copy, 9.8:1 on paper */
  --soft: oklch(0.5 0.012 70);         /* secondary copy, 5.4:1 on paper */
  /* dark bands */
  --dark: oklch(0.165 0.008 70);
  --dark-2: oklch(0.215 0.01 70);      /* cards on dark */
  --dark-3: oklch(0.27 0.012 70);      /* raised and hover on dark */
  --dark-line: oklch(0.32 0.014 70);   /* rules on dark */
  --dark-mute: oklch(0.45 0.014 75);   /* inactive marks on dark */
  --on-dark: oklch(0.965 0.012 88);    /* headings and strong text on dark */
  --on-dark-2: oklch(0.84 0.016 82);   /* body copy on dark */
  --on-dark-soft: oklch(0.72 0.016 78);/* secondary copy on dark, 6:1 on --dark-3 */
  /* the one accent: film-leader yellow */
  --signal: oklch(0.86 0.165 92);      /* fills, markers, playheads; accent text on dark */
  --signal-strong: oklch(0.8 0.16 88); /* hover and pressed, lines on light */
  --signal-soft: oklch(0.94 0.06 95);  /* tints and highlighter */
  --signal-ink: oklch(0.52 0.105 80);  /* ochre: accent text on light, 5:1 on paper */

  /* type: three families */
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: var(--display);
  /* type scale */
  --t-display: clamp(30px, 3.5vw, 50px); /* poster titles, the closing statement; always under the hero h1 */
  --t-h2: clamp(28px, 3.2vw, 46px);      /* section headlines */
  --t-feature: clamp(26px, 2.8vw, 40px); /* the one feature h3 (the lottery) */
  --t-h3: clamp(22px, 2.1vw, 30px);      /* sub-heads */
  --t-h4: 21px;                          /* card titles */
  --t-num: clamp(32px, 3vw, 44px);       /* big stats */
  --t-lead: clamp(18px, 1.3vw, 20px);    /* section intros */
  --t-body: 17px;
  --t-small: 15px;
  --t-label: 13px;                       /* mono labels, timecodes, counters */

  --radius: var(--r-m);
  --shadow: 0 30px 60px -20px oklch(0.185 0.01 70 / .25), 0 18px 36px -18px oklch(0 0 0 / .3);
  --shadow-sm: 0 2px 5px -1px oklch(0.185 0.01 70 / .12), 0 1px 3px -1px oklch(0 0 0 / .1);
  --wrap: 1200px;
  --nav-h: 108px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.03em; line-height: 1.08; font-weight: 650; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font: 500 0.88em var(--mono); background: var(--signal-soft); color: var(--signal-ink); padding: 2px 6px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--signal-ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow { font-size: 14px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-ink); margin-bottom: 16px; }
.eyebrow-light { color: var(--signal); }
.card-label { font-size: 14px; font-weight: 650; color: var(--soft); letter-spacing: 0.02em; margin-bottom: 14px; }
.small { font-size: var(--t-small); color: var(--soft); }
.small.light { color: var(--mute); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--signal); color: var(--ink); text-decoration: none; font-weight: 650; font-size: 16px; padding: 13px 22px; border-radius: var(--r-pill); border: 0; transition: background .2s, transform .2s, box-shadow .2s; box-shadow: none; }
.btn:hover { background: var(--signal-strong); transform: translateY(-1px); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--ink); font-weight: 650; font-size: 16px; padding: 12px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, background .2s; }
.btn-ghost:hover { border-color: var(--line-2); background: var(--card); }
.btn-ghost:disabled { opacity: .4; cursor: default; }

.tag { position: absolute; left: 14px; top: 14px; z-index: 2; background: var(--signal); color: var(--ink); font-size: 13px; font-weight: 650; padding: 5px 11px; border-radius: var(--r-pill); }
.tag-muted { background: oklch(0.185 0.01 70 / .78); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: oklch(0.962 0.018 88 / .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid oklch(0.185 0.01 70 / .06); }
.nav-in { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .vv-mark { width: 30px; height: 30px; }
.avatar-ring { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); flex: none; }
.avatar-ring img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.brand-text { display: flex; align-items: baseline; gap: 8px; }
.brand-text b { color: var(--ink); font-size: var(--t-body); letter-spacing: -0.01em; }
.brand-text span { font-size: 14px; color: var(--soft); }
.nav-links { display: flex; gap: 28px; font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.nav-links a { text-decoration: none; opacity: .8; }
.nav-links a:hover { opacity: 1; }

.rail { list-style: none; margin: 0 auto; padding: 0 0 10px; width: min(var(--wrap), calc(100% - 64px)); display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; position: absolute; left: 0; right: 0; top: 100%; z-index: 1; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 38px; background: oklch(0.962 0.018 88 / .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid oklch(0.185 0.01 70 / .06); transition: opacity .3s; }
.at-hero .nav::after { opacity: 0; }
.rail a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; font-size: 12.5px; font-weight: 600; color: var(--soft); }
.rail i { height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.rail i::after { content: ""; position: absolute; inset: 0; background: var(--signal); transform: scaleX(var(--fill, 0)); transform-origin: left; transition: transform .3s; }
.rail a.is-current { color: var(--ink); }
.rail a.is-done i::after { background: var(--ink); transform: scaleX(1); }
.rail a.is-done span::after { content: " ✓"; color: var(--ink); }

/* nav over the hero: dark glass, no step rail */
.nav, .nav-links, .brand-text b, .brand-text span { transition: background .35s, color .35s, border-color .35s; }
.rail { transition: opacity .3s; }
.at-hero .nav { background: oklch(0.165 0.008 70 / .35); border-bottom-color: oklch(1 0 0 / .08); }
.at-hero .nav-links, .at-hero .brand-text b { color: var(--on-dark); }
.at-hero .brand-text { opacity: 0; }
.brand-text { transition: opacity .35s; }
.at-hero .rail { opacity: 0; pointer-events: none; }

/* hero: editorial type, and a quiet 3D stage that plays the method once:
   drafts in a drum, notes on one draft, clips on a timeline, the accepted film */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; min-height: max(680px, 100svh); background: var(--dark); overflow: hidden; isolation: isolate; color: var(--on-dark-2); }
.hero-top { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 112px 16px 0; container-type: inline-size; }
.hero-stage { position: relative; z-index: 1; height: clamp(380px, 108vw, 460px); margin-top: 12px; }
.hero-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(56% 46% at 50% 52%, oklch(0.93 0.016 82 / .035), oklch(0.93 0.016 82 / 0) 72%); }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.hero-stage.is-live canvas { opacity: 1; }

/* notes, version counter, replay: real text laid over the stage */
.hs-notes { position: absolute; inset: 0; pointer-events: none; }
.hs-note { position: absolute; left: 0; top: 0; margin: 0; width: max-content; max-width: 236px; padding: 10px 13px 11px; border-radius: 8px; background: var(--paper-2); color: var(--ink); font: 500 14px/1.38 var(--sans); letter-spacing: -0.005em; text-wrap: pretty; box-shadow: inset 0 1px 0 oklch(1 0 0 / .6), 0 18px 30px -16px oklch(0 0 0 / .8), 0 2px 6px -2px oklch(0 0 0 / .45); opacity: 0; will-change: transform, opacity; }
.hs-note b { display: block; margin-bottom: 5px; font: 500 var(--t-label)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); }
.hs-count { position: absolute; left: 0; top: 0; margin: -6px 0 0; display: flex; align-items: baseline; font: 500 var(--t-label)/1 var(--mono); letter-spacing: .08em; color: var(--on-dark-soft); white-space: nowrap; opacity: 0; transition: opacity .6s; pointer-events: none; }
.hs-count b, .hero-fallback figcaption b { color: var(--on-dark); font-weight: 600; font-variant-numeric: tabular-nums; }
.hs-count span::before, .hero-fallback figcaption span::before { content: "·"; margin: 0 .6em; color: var(--on-dark-soft); }
.hs-count.is-final span { color: var(--on-dark-2); }
.hs-replay { position: absolute; left: 0; top: 0; margin: -14px 0 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid oklch(0.93 0.016 82 / .16); border-radius: var(--r-pill); background: transparent; color: var(--on-dark-soft); font: 500 var(--t-label)/1 var(--mono); letter-spacing: .08em; cursor: pointer; transition: color .2s, border-color .2s, background .2s; animation: hsFade .6s ease both; }
.hs-replay[hidden] { display: none; }
.hs-replay:hover { color: var(--on-dark); border-color: oklch(0.93 0.016 82 / .36); background: oklch(0.93 0.016 82 / .05); }
.hs-replay svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hsFade { from { opacity: 0; } }

/* no WebGL: the final frame, composed in HTML */
.hero-fallback { display: none; position: absolute; left: 50%; top: 50%; width: min(84%, 640px); transform: translate(-50%, -50%); margin: 0; }
.hero-fallback img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-s); }
.hero-fallback figcaption { display: flex; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 1px solid oklch(0.93 0.016 82 / .2); font: 500 var(--t-label)/1 var(--mono); letter-spacing: .08em; color: var(--on-dark-2); }
.hero-stage.is-fallback .hero-fallback { display: block; }
.hero-stage.is-fallback > :not(.hero-fallback) { display: none; }

/* headline: Fraunces, each sentence one line; contrast from weight, softness and colour */
.hero-title { display: flex; flex-direction: column; align-items: center; margin: 0; font-family: var(--display); font-size: min(72px, 100cqi / 9.75); font-weight: 480; line-height: 1.05; letter-spacing: -0.02em; color: var(--on-dark); font-kerning: normal; }
.ht-line { display: block; white-space: nowrap; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0; }
.ht-second { font-weight: 300; color: var(--signal); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.hero-in { opacity: 0; filter: blur(12px); transform: translateY(18px); animation: heroIn 1s cubic-bezier(.22, 1, .36, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { to { opacity: 1; filter: blur(0); transform: none; } }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--on-dark-2); }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-sub span { white-space: nowrap; }
@media (max-width: 620px) { .hero-sub span { display: block; } }
@media (min-width: 621px) {
  .hero-top { padding-top: 100px; }
  .hero-title { font-size: min(64px, 100cqi / 9.75); }
  .hero-stage { height: clamp(400px, calc(100svh - 380px), 600px); }
}

/* desktop: type left on the page grid, stage right to the edge */
@media (min-width: 1180px) {
  .hero { grid-template-columns: minmax(0, calc(max(32px, (100vw - 1200px) / 2) + 620px)) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .hero-top { grid-area: 1 / 1; align-self: center; align-items: flex-start; text-align: left; padding: 104px 40px 72px max(32px, calc((100vw - 1200px) / 2)); }
  .hero-title { align-items: flex-start; }
  .hero-cta { justify-content: flex-start; }
  .hero-stage { grid-area: 1 / 2; height: auto; margin: 0; }
  .hero-stage canvas { -webkit-mask-image: linear-gradient(90deg, transparent, oklch(0 0 0) 64px); mask-image: linear-gradient(90deg, transparent, oklch(0 0 0) 64px); }
}
@media (max-width: 620px) {
  .hs-note { max-width: 212px; padding: 9px 11px 10px; font-size: 13px; }
}
.hero .eyebrow { margin-bottom: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* brand lockup */
.vv-mark { width: 32px; height: 32px; flex: none; display: block; }
.lockup { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: var(--r-pill); background: oklch(1 0 0 / .07); border: 1px solid oklch(1 0 0 / .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin-bottom: 26px; color: var(--on-dark); }
.lockup .vv-mark { width: 30px; height: 30px; }
.lockup b { font-size: var(--t-body); letter-spacing: -0.01em; }
.lockup i { width: 1px; height: 18px; background: oklch(1 0 0 / .22); }
.lockup-by { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-small); color: var(--on-dark-2); white-space: nowrap; }
.lockup-by img { width: 24px; height: 24px; border-radius: 50%; background: var(--card); object-fit: cover; }
.btn-glass svg { width: 14px; fill: currentColor; }
.btn-glass { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); font-weight: 650; font-size: 16px; padding: 12px 20px; border-radius: var(--r-pill); text-decoration: none; background: oklch(1 0 0 / .1); border: 1px solid oklch(1 0 0 / .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s; }
.btn-glass:hover { background: oklch(1 0 0 / .18); }
.hero-play { position: absolute; left: 0; top: 0; z-index: 3; width: 84px; height: 84px; border-radius: 50%; background: oklch(1 0 0 / .95); display: grid; place-items: center; box-shadow: 0 0 0 10px oklch(1 0 0 / .12), 0 16px 40px oklch(0 0 0 / .45); opacity: 0; transition: box-shadow .25s; }
.hero-play:hover { box-shadow: 0 0 0 16px oklch(1 0 0 / .2), 0 16px 40px oklch(0 0 0 / .45); }
.hero-play svg { width: 32px; fill: var(--signal); margin-left: 5px; }
.hero-stage:not(.is-live) .hero-play { display: none; }
.hud-wrap { position: absolute; z-index: 2; left: max(32px, calc((100vw - 1200px) / 2)); bottom: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; pointer-events: none; }
@media (max-width: 1180px) { .hud-wrap { left: 0; right: 0; bottom: 16px; align-items: center; } }
.hud-wrap { transition: opacity .8s, transform .8s; }
.hero.is-landed .hud-wrap { opacity: 0; transform: translateY(10px); }
.hud-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); font-weight: 600; }
.hud { list-style: none; margin: 0; padding: 6px; display: flex; gap: 4px; background: oklch(1 0 0 / .06); border: 1px solid oklch(1 0 0 / .12); border-radius: var(--r-pill); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hud li { font-size: 13px; font-weight: 650; color: var(--on-dark-soft); padding: 5px 11px; border-radius: var(--r-pill); transition: color .3s, background .3s; font-variant-numeric: tabular-nums; }
.hud li.is-on { color: var(--on-dark); }
.hud li.is-now { background: var(--signal); color: var(--ink); }
.hud li:last-child.is-now { background: var(--signal); }

/* film band */
.film-band { background: linear-gradient(180deg, var(--dark) 0%, var(--dark) 320px); color: var(--on-dark-2); padding: 96px 0; }
.band-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.band-head .eyebrow { grid-column: 1 / -1; margin-bottom: -24px; }
.band-head h2, .kit h2 { color: var(--on-dark); font-size: clamp(34px, 4.2vw, 54px); }
.player { border-radius: var(--radius); overflow: hidden; background: oklch(0 0 0); box-shadow: 0 40px 80px -30px oklch(0 0 0 / .6); }
.player video { width: 100%; aspect-ratio: 16 / 9; }
.chapters { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.chapters button { width: 100%; background: transparent; border: 0; padding: 0; text-align: left; color: var(--on-dark-2); display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; }
.chapters img { grid-column: 1 / -1; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 8px; opacity: .75; outline: 2px solid transparent; transition: opacity .2s, outline-color .2s; }
.chapters button:hover img, .chapters button.is-on img { opacity: 1; outline-color: var(--signal); }
.chapters b { font-size: 14px; color: var(--on-dark); font-weight: 600; }
.chapters span { font-size: 13px; font-variant-numeric: tabular-nums; }

/* origin */
.origin { padding: 112px 0 40px; }
.origin-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.origin h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 24px; }
.origin p + p { margin-top: 16px; }
.origin em { font-style: normal; color: var(--ink); font-weight: 650; }
.origin-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.origin-strip figure { margin: 0; }
.origin-strip img { border-radius: var(--r-s); box-shadow: var(--shadow-sm); aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.9); }
.origin-strip figcaption { font-size: 14px; color: var(--soft); margin-top: 8px; }
.quote { grid-column: 1 / -1; margin-top: 18px; font-size: clamp(22px, 2.4vw, 30px); color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; border-left: 3px solid var(--signal-ink); padding-left: 20px; }
.quote span { display: block; font-size: 14px; color: var(--soft); font-weight: 500; letter-spacing: 0; margin-top: 8px; }

/* section heads */
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.2vw, 54px); margin-bottom: 16px; }
.section-head-light p { color: var(--mute); }

/* method map */
.method { padding: 112px 0; }
.map { display: grid; grid-template-columns: 1fr 1fr 1.35fr 1fr; gap: 16px; align-items: stretch; }
.map-phase { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.map-loop { background: linear-gradient(180deg, var(--card), var(--paper)); border-color: var(--signal-soft); padding-right: 58px; }
.map-label { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.map-label em { display: block; font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--signal-ink); font-size: 14px; margin-top: 2px; }
.node { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; text-decoration: none; padding: 12px; border-radius: var(--r-s); background: var(--paper); border: 1px solid transparent; transition: border-color .2s, transform .2s, background .2s; }
.map-loop .node { background: var(--card); }
.node:hover { border-color: var(--signal-strong); transform: translateY(-2px); background: var(--card); }
.node i { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--on-dark); font-style: normal; font-weight: 700; font-size: var(--t-small); display: grid; place-items: center; }
.map-loop .node i { background: var(--signal); }
.node b { color: var(--ink); font-size: var(--t-body); line-height: 1.25; }
.node span { font-size: var(--t-small); color: var(--soft); line-height: 1.4; }
.node.is-done i { background: var(--ink); }
.loop-arrow { position: absolute; right: 12px; top: 64px; bottom: 24px; width: 34px; height: calc(100% - 88px); fill: none; stroke: var(--signal-strong); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.role { border-radius: var(--radius); padding: 24px 28px; }
.role h3 { font-size: 22px; margin-bottom: 8px; }
.role-you { background: var(--ink); color: var(--on-dark-2); }
.role-you h3 { color: var(--on-dark); }
.role-ai { background: var(--card); border: 1px solid var(--line); }

/* steps */
.step { padding: 120px 0; border-top: 1px solid var(--line); }
.step-alt { background: var(--card); }
.step-head { display: grid; grid-template-columns: 150px 1fr; gap: 24px; margin-bottom: 48px; }
.step-num { font-size: 112px; line-height: .8; font-weight: 700; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--line-2); }
.step.is-current .step-num { -webkit-text-stroke-color: var(--signal-ink); }
.step-head h2 { font-size: clamp(32px, 3.8vw, 50px); max-width: 18em; }
.decision { margin-top: 20px; font-size: 19px; color: var(--ink); max-width: 44em; }
.decision b { display: inline-block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: var(--signal-soft); color: var(--signal-ink); padding: 3px 9px; border-radius: 6px; margin-right: 10px; vertical-align: 2px; }

.case { margin-bottom: 48px; }
.case-caption { font-size: var(--t-body); color: var(--ink); margin-bottom: 20px; font-weight: 500; }

.do { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; }
.joe, .yours { border-radius: var(--radius); padding: 32px; }
.joe { background: var(--paper); border: 1px solid var(--line); }
.step-alt .joe { background: var(--paper); }
.yours { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.do h3 { font-size: 22px; margin-bottom: 14px; }
.joe p + p { margin-top: 14px; }
.lesson { margin-top: 20px !important; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 18px; line-height: 1.45; }
.checks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.checks label { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; cursor: pointer; color: var(--ink); font-size: var(--t-body); line-height: 1.45; }
.checks input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--line-2); border-radius: 7px; display: grid; place-items: center; transition: background .15s, border-color .15s; background: var(--card); }
.checks input::after { content: ""; width: 10px; height: 6px; border: solid var(--card); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checks input:checked { background: var(--ink); border-color: var(--ink); }
.checks input:checked::after { opacity: 1; }
.checks input:checked + span { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--mute); }
.done { margin-top: 18px; font-size: 16px; color: var(--ink); }
.done b { color: var(--ink); margin-right: 6px; }

/* prompt */
.prompt { border-radius: var(--r-s); background: var(--dark-2); color: var(--on-dark); overflow: hidden; }
.prompt-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 18px; background: var(--dark-2); font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-soft); }
.copy { background: var(--card); color: var(--ink); border: 0; border-radius: var(--r-pill); padding: 6px 14px; font-size: 14px; font-weight: 650; letter-spacing: 0; text-transform: none; transition: background .2s; }
.copy:hover { background: var(--signal-soft); }
.copy.is-copied { background: var(--signal); color: var(--ink); }
.prompt pre { margin: 0; padding: 18px; white-space: pre-wrap; word-break: break-word; font: 400 15px/1.6 var(--mono); }

/* principles */
.truths { background: var(--dark); color: var(--on-dark-2); padding: 110px 0; }
.truths h2 { color: var(--on-dark); font-size: clamp(32px, 4vw, 50px); }
.truth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
/* lottery machine */
.lottery { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 40px; border-radius: var(--r-l); background: var(--dark-2); border: 1px solid var(--dark-line); position: relative; overflow: hidden; }
.lottery-copy { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px 40px; align-items: end; }
.lottery-copy > .truth-num, .lottery-copy > h3, .lottery-copy > p:first-of-type { grid-column: 1; }
.lottery-copy h3 { color: var(--on-dark); font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -0.03em; margin: 8px 0 14px; }
.lottery-copy p { font-size: var(--t-body); line-height: 1.55; color: var(--signal-soft); }
.lottery-controls { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; }
.lottery-status, .lottery-count { grid-column: 2; text-align: right; }
.lever { font-size: 20px; padding: 16px 34px; background: var(--signal); box-shadow: none; }
.lever:hover { background: var(--signal-strong); }
.lever span { display: inline-block; transition: transform .6s; }
.lever.is-spinning span { transform: rotate(360deg); }
.model-switch { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: oklch(1 0 0 / .08); border: 1px solid oklch(1 0 0 / .16); }
.model-switch button { border: 0; background: transparent; color: var(--signal); font-size: 14px; font-weight: 650; padding: 8px 14px; border-radius: var(--r-pill); }
.model-switch button.is-on { background: var(--card); color: var(--ink); }
.lottery-status { color: var(--on-dark) !important; font-weight: 650; font-size: 19px !important; min-height: 1.6em; }
.lottery-count { font-size: 14px !important; color: var(--signal) !important; margin-top: 6px; font-variant-numeric: tabular-nums; }
.slot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; border-radius: var(--r-m); background: oklch(0.165 0.008 70 / .55); border: 1px solid oklch(1 0 0 / .12); box-shadow: inset 0 0 40px oklch(0 0 0 / .5); }
.reel { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: var(--r-s); background: var(--dark); }
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; height: 22%; z-index: 2; pointer-events: none; }
.reel::before { top: 0; background: linear-gradient(var(--dark), transparent); }
.reel::after { bottom: 0; background: linear-gradient(transparent, var(--dark)); }
.strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.strip img { display: block; width: 100%; object-fit: contain; padding: 0 6%; box-sizing: border-box; }
.strip img { height: var(--ih, 120px); }
.reel-label { position: absolute; top: 12px; font-size: 13px !important; left: 50%; transform: translateX(-50%); z-index: 3; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); }
.verdict { position: absolute; bottom: 12px; left: 50%; transform: translate(-50%, 8px) scale(.9); z-index: 3; font-size: 16px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); opacity: 0; transition: opacity .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); white-space: nowrap; }
.reel.is-hit .verdict { opacity: 1; transform: translate(-50%, 0) scale(1); background: var(--signal); color: var(--ink); }
.reel.is-miss .verdict { opacity: 1; transform: translate(-50%, 0) scale(1); background: oklch(1 0 0 / .92); color: var(--ink); }
.reel.is-hit { box-shadow: 0 0 0 2px var(--signal); }
.lottery.is-jackpot .slot { animation: jackpot .9s ease-out; }
@keyframes jackpot { 0% { box-shadow: 0 0 0 0 oklch(1 0 0 / .3); } 100% { box-shadow: 0 0 0 30px oklch(1 0 0 / 0); } }
.lottery-foot { grid-column: 1 / -1; text-align: center; color: var(--on-dark); font-weight: 650; font-size: 18px; }
.truth { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--r-m); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.truth h3 { color: var(--on-dark); font-size: 24px; letter-spacing: -0.02em; }
.truth p { font-size: var(--t-body); line-height: 1.55; }
.truth-num { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--signal); }
.truth-lottery { background: linear-gradient(160deg, var(--dark-2) 0%, var(--dark-2) 55%, var(--signal) 100%); border-color: var(--signal); }
.truth-foot { color: var(--on-dark); font-weight: 650; margin-top: auto; }
.draws { display: flex; gap: 8px; margin: 6px 0 2px; }
.draws i { width: 38px; height: 22px; border-radius: 5px; background: oklch(1 0 0 / .12); border: 1px solid oklch(1 0 0 / .18); }
.draws i.hit { background: var(--signal); border-color: transparent; }

/* before you start */
.before { padding: 96px 0; border-top: 1px solid var(--line); background: var(--card); }
.before-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.before h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 16px; }
.before-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: bl; }
.before-list li { counter-increment: bl; position: relative; padding: 20px 22px 20px 64px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); font-size: var(--t-body); line-height: 1.5; }
.before-list li::before { content: counter(bl); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--on-dark); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.before-list b { color: var(--ink); }
.before-list a { color: var(--signal-ink); font-weight: 650; text-decoration: none; }

/* step 1 */
.step#step-1 .case { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.brief-card { background: var(--ink); color: var(--on-dark-2); border-radius: var(--radius); padding: 28px; }
.brief-card .card-label { color: var(--signal); }
.brief-card dl { margin: 0; display: grid; gap: 18px; }
.brief-card dt { font-size: 14px; color: var(--on-dark-soft); font-weight: 600; }
.brief-card dd { margin: 4px 0 0; color: var(--on-dark); font-size: 20px; line-height: 1.35; font-weight: 550; letter-spacing: -0.01em; }
.folder { background: var(--dark-2); border-radius: var(--radius); overflow: hidden; color: var(--on-dark); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.folder-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--dark-3); font-size: 14px; }
.folder-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.folder-bar span:nth-child(2) { background: #febc2e; }
.folder-bar span:nth-child(3) { background: #28c840; margin-right: 10px; }
.folder ul { list-style: none; margin: 0; padding: 8px 0; flex: 1; }
.folder li { display: grid; grid-template-columns: 22px 170px 1fr; align-items: center; gap: 10px; padding: 7px 18px; font: 500 15px/1.3 var(--mono); }
.folder li:nth-child(even) { background: var(--dark-3); }
.folder li em { font: 400 15px/1.3 var(--sans); color: var(--mute); font-style: normal; }
.f-ico { width: 18px; height: 14px; background: var(--mute); border-radius: 2px 3px 3px 3px; position: relative; }
.f-ico::before { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 4px; background: var(--mute); border-radius: 2px 2px 0 0; }
.proof-link { display: block; padding: 12px 18px; font-size: 14px; color: var(--signal); text-decoration: none; border-top: 1px solid var(--dark-line); }
.raw-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.raw-grid figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.raw-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.raw-grid figcaption { padding: 12px 14px; font-size: var(--t-small); color: var(--soft); line-height: 1.35; }
.raw-grid figcaption b { display: block; color: var(--ink); font-weight: 650; }

/* step 2 beats */
.beats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: beat; }
.beats li { counter-increment: beat; display: flex; flex-direction: column; gap: 12px; }
.said { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; min-height: 2.6em; position: relative; padding-top: 30px; letter-spacing: -0.01em; }
.said::before { content: "Beat " counter(beat); position: absolute; top: 0; left: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--signal-ink); }
.beats img { border-radius: var(--r-s); box-shadow: var(--shadow-sm); aspect-ratio: 16 / 9; object-fit: cover; }
.shows { font-size: var(--t-small); color: var(--soft); line-height: 1.4; }
.beats li:not(:last-child) .said::after { content: "→"; position: absolute; right: -2px; top: 0; color: var(--mute); font-size: 16px; }

/* step 3 */
.draft-case { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: center; }
.draft-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.draft-strip img { border-radius: var(--r-s); box-shadow: var(--shadow-sm); }
.draft-strip img:first-child { grid-column: 1 / -1; }
.verdict { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.verdict li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 18px; color: var(--ink); line-height: 1.4; }
.verdict li::before { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--on-dark); }
.verdict .ok::before { content: "✓"; background: var(--ink); }
.verdict .no::before { content: "✕"; background: var(--signal-ink); }

/* step 4 */
.step#step-4 .case { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.note-anatomy { background: var(--signal-soft); border: 1px solid var(--signal-soft); border-radius: var(--radius); padding: 28px; }
.real-note { margin: 0; padding-left: 24px; display: grid; gap: 12px; font-size: 18px; color: var(--ink); line-height: 1.55; }
.real-note mark { background: none; color: inherit; padding: 1px 0; border-bottom: 3px solid; }
.m-where { border-color: var(--mute) !important; }
.m-wrong { border-color: var(--signal-strong) !important; }
.m-want { border-color: var(--ink) !important; }
.legend { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 20px; font-size: 14px; color: var(--soft); flex-wrap: wrap; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 0; border-bottom: 3px solid; }
.flip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flip { position: relative; min-height: 132px; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-s); padding: 18px; text-align: left; transition: border-color .2s, background .3s, box-shadow .2s; }
.flip:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.flip .v { display: block; font-size: 21px; font-weight: 650; color: var(--ink); letter-spacing: -0.015em; transition: opacity .25s, transform .25s; }
.flip .v::after { content: "Tap to make it useful"; display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--signal-ink); letter-spacing: 0; }
.flip .u { display: none; font-size: var(--t-body); color: var(--ink); line-height: 1.45; margin-top: 10px; font-weight: 500; }
.flip.is-on { background: var(--card); border-color: var(--signal-strong); }
.flip.is-on .v { font-size: var(--t-small); color: var(--soft); text-decoration: line-through; text-decoration-color: var(--soft); }
.flip.is-on .v::after { display: none; }
.flip.is-on .u { display: block; animation: flipIn .3s cubic-bezier(.22,1,.36,1); }
@keyframes flipIn { from { opacity: 0; transform: translateY(6px); } }

/* step 5 ladder */
.ladder { background: var(--ink); border-radius: var(--r-l); padding: 28px; margin-bottom: 48px; color: var(--on-dark-2); }
.ladder-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ladder .card-label { color: var(--signal); margin: 0; font-size: var(--t-small); }
.ladder-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ladder-tabs button { border: 1px solid var(--dark-line); background: transparent; color: var(--on-dark-2); border-radius: var(--r-pill); padding: 7px 14px; font-size: 14px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.ladder-tabs button:hover { border-color: var(--signal); }
.ladder-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); border-color: var(--card); }
.ladder-tabs button.is-lock[aria-selected="true"] { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.ladder-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; }
.ladder-stage { margin: 0; }
.ladder-stage img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-s); background: var(--card); transition: opacity .18s; }
.ladder-stage img.is-fading { opacity: .25; }
.ladder-stage figcaption { font-size: 14px; color: var(--on-dark-soft); margin-top: 10px; }
.ln-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin-bottom: 12px; }
.ln-text { color: var(--on-dark); font-size: 18px; line-height: 1.55; min-height: 250px; }
.ln-text ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.ln-text .lock { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; }
.ln-text .note-meta { font-size: 14px; color: var(--on-dark-soft); margin-top: 14px; }
.ladder-nav { display: flex; gap: 10px; margin-top: 24px; }
.ladder-nav .btn-ghost { color: var(--on-dark); border-color: var(--dark-line); }
.ladder-nav .btn-ghost:hover { background: var(--dark-3); }

/* step 6 */
.lock-case { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center; }
.compare { position: relative; border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .15); z-index: 2; pointer-events: none; }
.compare-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: var(--card); color: var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow-sm); }
.compare-l { top: auto; bottom: 14px; }
.compare-r { top: auto; bottom: 14px; left: auto; right: 14px; }
.compare:focus-within { outline: 3px solid var(--signal-ink); outline-offset: 3px; }
.lock-notes blockquote { margin: 0 0 16px; font-size: 20px; line-height: 1.45; color: var(--ink); font-weight: 550; padding-left: 18px; border-left: 3px solid var(--signal-strong); letter-spacing: -0.01em; }
.lock-notes blockquote.keep { border-color: var(--ink); }

.mm { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 36px; margin-bottom: 48px; }
.mm-head { max-width: 760px; margin-bottom: 28px; }
.mm-head h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 12px; }
.mm-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-bottom: 24px; }
.scrub-screen { position: relative; border-radius: var(--r-s); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--card); }
.scrub-screen img, .scrub-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub-time { position: absolute; right: 12px; top: 12px; background: oklch(0.185 0.01 70 / .82); color: var(--on-dark); font-size: 13px; font-weight: 650; padding: 4px 10px; border-radius: var(--r-pill); font-variant-numeric: tabular-nums; }
#mm-video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.scrub-label { display: block; font-size: var(--t-small); font-weight: 600; color: var(--ink); margin: 16px 0 6px; }
.scrub input[type=range] { width: 100%; accent-color: var(--signal-strong); height: 28px; }
.scrub-marks { display: flex; justify-content: space-between; font-size: 14px; color: var(--soft); }
.mm-rules { display: grid; gap: 14px; align-content: start; font-size: 16px; line-height: 1.5; }
.mm-rules b { color: var(--ink); }
.mm-avatar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.mm-avatar img { border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow-sm); }
.mm-avatar span { grid-column: 1 / -1; font-size: 14px; color: var(--soft); }

/* step 7 */
.music { background: var(--ink); color: var(--on-dark-2); border-radius: var(--r-l); padding: 36px; margin-bottom: 48px; }
.music .card-label { color: var(--signal); }
.music h3 { color: var(--on-dark); font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 14px; max-width: 22em; }
.music-head p { max-width: 50em; }
.music .small { color: var(--on-dark-soft); margin: 14px 0 22px; }
.cue-chart { margin-top: 28px; position: relative; }
#cue-svg { width: 100%; height: auto; overflow: visible; }
#cue-svg .grid { stroke: var(--dark-3); stroke-width: 1; }
#cue-svg .area { fill: url(#cueGrad); }
#cue-svg .line { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linejoin: round; }
#cue-svg .dot { fill: var(--dark); stroke: var(--on-dark); stroke-width: 2.5; cursor: pointer; }
#cue-svg .dot.is-key { fill: var(--card); }
#cue-svg .axis { fill: var(--mid); font-size: 14px; font-family: var(--sans); }
#cue-svg .playhead { stroke: var(--signal); stroke-width: 2; }
#music-video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cue-buttons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 18px; }
.cue-buttons button { background: var(--dark-3); border: 1px solid var(--dark-line); color: var(--on-dark); border-radius: var(--r-s); padding: 12px; text-align: left; font-size: var(--t-small); line-height: 1.3; font-weight: 600; transition: background .2s, border-color .2s; }
.cue-buttons button span { display: block; font-size: 13px; color: var(--on-dark-soft); font-weight: 500; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.cue-buttons button:hover { border-color: var(--signal); }
.cue-buttons button.is-playing { background: var(--signal); border-color: var(--signal); }
.cue-buttons button.is-playing span { color: var(--signal-soft); }

.seam-case { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.seam-view { position: relative; }
.seam-view img { border-radius: var(--r-s); box-shadow: var(--shadow); width: 100%; }
.seam-toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; margin-top: 14px; }
.seam-toggle button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 8px 16px; font-size: var(--t-small); font-weight: 600; color: var(--soft); }
.seam-toggle button.is-on { background: var(--ink); color: var(--on-dark); }
.seam-text h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 12px; }
.seam-bar { margin: 22px 0 14px; width: 100%; }
.seam-bar rect { fill: var(--line); }
.seam-bar .hit { fill: var(--signal-ink); }
.seam-bar text { fill: var(--soft); font-size: 13px; font-family: var(--sans); }

/* step 8 */
.release-case { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.cover-fig { margin: 0; }
.cover-fig img { border-radius: var(--r-s); box-shadow: var(--shadow); }
.cover-fig figcaption { font-size: var(--t-small); color: var(--soft); margin-top: 12px; }
.release-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: rl; }
.release-list li { counter-increment: rl; display: grid; grid-template-columns: 36px 1fr; gap: 12px; font-size: 18px; line-height: 1.45; }
.release-list li::before { content: counter(rl); width: 32px; height: 32px; border-radius: 50%; background: var(--signal-soft); color: var(--signal-ink); font-weight: 700; font-size: var(--t-small); display: grid; place-items: center; }
.release-list b { color: var(--ink); }

/* launch videos */
.also { margin-top: 56px; }
.also-label { font-size: 14px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin-bottom: 18px; }
.also-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.launch-card { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 16px 16px 22px; }
.launch-player { border-radius: var(--r-s); overflow: hidden; background: oklch(0 0 0); margin-bottom: 16px; }
.launch-player video { width: 100%; aspect-ratio: 16 / 9; }
.launch-card h3 { color: var(--on-dark); font-size: 22px; padding: 0 6px; }
.launch-card .meta { font-size: 14px; color: var(--signal); font-weight: 600; margin: 4px 6px 12px; }
.launch-card ul { margin: 0; padding: 0 6px 0 26px; display: grid; gap: 6px; font-size: 16px; line-height: 1.45; }

/* bonus: everyday edits */
.bonus { padding: 120px 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--card) 0%, var(--paper) 100%); }
.bonus .eyebrow { color: var(--signal-ink); }
.bonus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.bonus-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; display: grid; grid-template-columns: 220px 1fr; gap: 22px; box-shadow: var(--shadow-sm); }
.bonus-media { position: relative; align-self: start; }
.v-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
.v-pair img { border-radius: 8px; aspect-ratio: 9 / 16; object-fit: cover; background: oklch(0 0 0); }
.wissal img { border-radius: var(--r-s); aspect-ratio: 4 / 3; object-fit: cover; }
.blur-note { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 650; background: oklch(0.185 0.01 70 / .75); color: var(--on-dark); padding: 4px 9px; border-radius: var(--r-pill); }
.status { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--signal-ink); background: var(--signal-soft); padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: 10px; }
.bonus-body h3 { font-size: 22px; }
.bonus-body .meta { font-size: 14px; color: var(--signal-ink); font-weight: 600; margin: 4px 0 10px; }
.bonus-body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 16px; line-height: 1.45; }
.bonus-body > p:not(.meta):not(.note):not(.small):not(.lesson-inline) { font-size: 16px; line-height: 1.5; }
.note { margin-top: 12px; font-size: 16px; color: var(--ink); font-weight: 600; border-left: 3px solid var(--signal-strong); padding-left: 12px; line-height: 1.45; }
.note span { display: block; font-size: 13px; color: var(--soft); font-weight: 500; margin-top: 4px; }
.lesson-inline { margin-top: 14px; font-size: 16px; line-height: 1.5; background: var(--paper); border-radius: var(--r-s); padding: 12px 14px; }
.lesson-inline b { color: var(--ink); }
.story-strip { list-style: none; margin: 14px 0 10px; padding: 0; display: grid; gap: 4px; }
.story-strip li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: var(--t-small); color: var(--ink); padding: 6px 10px; border-radius: 8px; background: var(--paper); }
.story-strip li:nth-child(even) { background: var(--paper); }
.story-strip b { font-size: 13px; color: var(--signal-ink); font-weight: 700; }
.compare-table { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.ct-row { display: grid; grid-template-columns: 180px 1fr 1fr; border-top: 1px solid var(--line); }
.ct-row:first-child { border-top: 0; }
.ct-row > span { padding: 14px 20px; font-size: 16px; line-height: 1.4; }
.ct-row > span:first-child { font-weight: 650; color: var(--ink); font-size: var(--t-small); }
.ct-head > span { font-size: 13px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft) !important; background: var(--paper); }
.ct-same { background: var(--signal-soft); }
.ct-same .ct-span { grid-column: 2 / -1; color: var(--signal-ink); font-weight: 650; }

/* kit */
.kit { background: var(--dark); color: var(--on-dark-2); padding: 120px 0; }
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.skill { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.skill-main { background: var(--signal); border-color: var(--signal); color: var(--signal-soft); }
.skill-tag { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-soft); }
.skill-main .skill-tag { color: var(--signal); }
.skill h3 { color: var(--on-dark); font: 500 16px/1.3 var(--mono); letter-spacing: 0; word-break: break-word; }
.skill p { font-size: 16px; line-height: 1.5; flex: 1; }
.skill a { color: var(--on-dark); font-weight: 650; font-size: var(--t-small); text-decoration: none; }
.skill a:hover { text-decoration: underline; }
.kit-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-top: 56px; }
.setup h3 { color: var(--on-dark); font-size: 28px; margin-bottom: 18px; }
.setup-steps { margin: 0 0 22px; padding-left: 22px; display: grid; gap: 12px; }
.setup-steps b { color: var(--on-dark); }
.setup-steps code { background: var(--dark-3); color: var(--signal); }
.prompt-dark { background: var(--dark); border: 1px solid var(--dark-line); }
.prompt-dark .prompt-top { background: var(--dark-2); }
.small.light { margin-top: 16px; }
.downloads { display: grid; gap: 10px; align-content: start; }
.dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; padding: 16px 20px; border-radius: var(--r-s); background: var(--dark-2); border: 1px solid var(--dark-line); text-decoration: none; transition: border-color .2s, transform .2s; }
.dl:hover { border-color: var(--signal); transform: translateY(-1px); }
.dl b { color: var(--on-dark); font-size: var(--t-body); }
.dl span { grid-column: 1; font-size: 14px; color: var(--on-dark-soft); }
.dl i { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-size: 20px; color: var(--signal); }
.dl-main { background: var(--card); border-color: var(--card); }
.dl-main b { color: var(--ink); }
.dl-main span { color: var(--soft); }
.dl-main i { color: var(--signal); }
.starter-peek { margin-top: 10px; }
.starter-peek video { width: 100%; border-radius: var(--r-s); aspect-ratio: 16 / 9; background: oklch(0 0 0); }
.starter-peek p { font-size: 14px; color: var(--soft); margin-top: 8px; }

/* recap */
.recap { padding: 120px 0; }
.recap h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.04em; max-width: 16em; }
.recap h2 span { color: var(--signal-ink); }
.recap-list { list-style: none; counter-reset: rc; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.recap-list li { counter-increment: rc; background: var(--card); padding: 28px; font-size: var(--t-body); line-height: 1.5; }
.recap-list li::before { content: "0" counter(rc); display: block; font-size: 14px; font-weight: 700; color: var(--signal-ink); margin-bottom: 10px; letter-spacing: .06em; }
.recap-list b { display: block; color: var(--ink); font-size: 20px; letter-spacing: -0.015em; margin-bottom: 6px; }
.recap-cta { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.deeper { margin-top: 72px; display: grid; gap: 10px; max-width: 860px; }
.deeper details { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); padding: 0 22px; }
.deeper summary { cursor: pointer; padding: 18px 0; font-weight: 650; color: var(--ink); font-size: var(--t-body); }
.deeper details p { padding-bottom: 20px; font-size: 16px; }
.deeper a { color: var(--signal-ink); font-weight: 600; }

.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: var(--t-small); color: var(--soft); }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot b { color: var(--ink); }
.foot a { color: var(--ink); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--on-dark); padding: 12px 20px; border-radius: var(--r-pill); font-size: var(--t-small); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 80; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s ease-out, transform .6s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .map { grid-template-columns: 1fr 1fr; }
  .chapters { grid-template-columns: repeat(4, 1fr); }
  .skills { grid-template-columns: 1fr 1fr; }
  .cue-buttons { grid-template-columns: repeat(3, 1fr); }
  .beats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .beats li:nth-child(2) .said::after { display: none; }
}
@media (max-width: 860px) {
  :root { --nav-h: 96px; }
  body { font-size: var(--t-body); }
  .wrap, .nav-in, .rail { width: calc(100% - 32px); }
  .nav-links { display: none; }
  .rail span { display: none; }
  .rail { padding-bottom: 8px; }
  .before-in, .origin-grid, .band-head, .do, .roles, .step#step-1 .case, .draft-case, .step#step-4 .case, .ladder-body, .lock-case, .mm-grid, .seam-case, .release-case, .kit-grid { grid-template-columns: 1fr; }
  .band-head { gap: 16px; }
  .band-head .eyebrow { margin-bottom: 0; }
  .lede { font-size: 18px; }
  .step, .method, .kit, .recap, .before { padding: 80px 0; }
  .film-band { padding: 72px 0; }
  .origin { padding: 80px 0 24px; }
  .step-head { grid-template-columns: 1fr; gap: 8px; }
  .step-num { font-size: 72px; }
  .joe, .yours { padding: 24px; }
  .map { grid-template-columns: 1fr; }
  .truth-grid { grid-template-columns: 1fr; }
  .lottery { padding: 22px; gap: 20px; }
  .lottery-copy { grid-template-columns: 1fr; }
  .lottery-copy > * { grid-column: 1 !important; grid-row: auto !important; text-align: left !important; justify-content: flex-start !important; }
  .reel { aspect-ratio: 3 / 4; }
  .slot { padding: 10px; gap: 8px; }
  .truths { padding: 80px 0; }
  .also-grid, .bonus-grid { grid-template-columns: 1fr; }
  .bonus { padding: 80px 0; }
  .raw-grid { grid-template-columns: 1fr 1fr; }
  .folder li { grid-template-columns: 20px 1fr; }
  .folder li em { grid-column: 2; margin-top: -4px; font-size: 14px; }
  .flip-grid { grid-template-columns: 1fr; }
  .flip { min-height: 110px; }
  .ladder, .music, .mm { padding: 20px; border-radius: var(--r-m); }
  .ln-text { min-height: 0; }
  .cue-buttons { grid-template-columns: 1fr 1fr; }
  .recap-list { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: repeat(2, 1fr); }
  .skills { grid-template-columns: 1fr; }
  .origin-strip { grid-template-columns: 1fr 1fr; }
  .origin-strip figure:first-child { grid-column: 1 / -1; }
  .decision b { display: table; margin-bottom: 8px; }
  #cue-svg .axis, .seam-bar text { display: none; }
}
@media (max-width: 520px) {
  .beats { grid-template-columns: 1fr; }
  .beats .said::after { display: none; }
  .said { min-height: 0; }
  .raw-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-path { display: none; }
  .lockup { flex-wrap: wrap; justify-content: center; border-radius: var(--r-m); padding: 8px 14px; }
  .lockup i { display: none; }
  .bonus-card { grid-template-columns: 1fr; }
  .bonus-media.v-pair { max-width: 260px; }
  .ct-row { grid-template-columns: 1fr 1fr; }
  .ct-row > span:first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .ct-head > span:first-child { display: none; }
  .ct-same .ct-span { grid-column: 1 / -1; }
  .hud li { padding: 4px 7px; font-size: 12px; }
  .hud-label { font-size: 12px; }
  .hero-play { width: 64px; height: 64px; }
  .raw-grid figcaption { font-size: 14px; padding: 10px; }
  .brief-card dd { font-size: 18px; }
  .ladder-nav .btn, .ladder-nav .btn-ghost { flex: 1; justify-content: center; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   v3: floating header, chapters with signature visuals
   ========================================================= */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* header: floating glass pill */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 60; background: none !important; border: 0 !important; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.nav::after { display: none; }
.nav-pill { pointer-events: auto; position: relative; width: min(1120px, calc(100% - 24px)); margin: 0 auto; height: 58px; display: flex; align-items: center; gap: 18px; padding: 0 10px 0 14px; border-radius: var(--r-l); background: oklch(1 0 0 / .78); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .06), 0 8px 24px -8px oklch(0.185 0.01 70 / .18); transition: background-color .35s, box-shadow .35s; overflow: hidden; }
.at-hero .nav-pill { background: oklch(0.165 0.008 70 / .45); box-shadow: 0 0 0 1px oklch(1 0 0 / .1), 0 8px 24px -8px oklch(0 0 0 / .4); }
.brand { gap: 10px; }
.brand-text b { font-size: 16px; }
.at-hero .brand-text { opacity: 1; }
.at-hero .brand-text b { color: var(--on-dark); }
.nav-links { gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: var(--r-s); font-size: 14.5px; opacity: 1; color: var(--soft); transition: background-color .2s, color .2s; }
.nav-links a:hover { background: oklch(0.185 0.01 70 / .05); color: var(--ink); }
.at-hero .nav-links a { color: var(--on-dark-2); }
.at-hero .nav-links a:hover { background: oklch(1 0 0 / .08); color: var(--on-dark); }
.nav-pill .btn-small { border-radius: var(--r-s); }
.nav-step { display: none; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--ink); padding: 5px 10px 5px 6px; border-radius: var(--r-s); background: var(--signal-soft); white-space: nowrap; }
.nav-step i { font-style: normal; width: 22px; height: 22px; border-radius: 7px; background: var(--signal); color: var(--ink); display: grid; place-items: center; font-size: 12px; }
.nav-step.is-on { display: none; } /* the deck bar already shows the current step */
.nav-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.nav-progress i { display: block; height: 100%; width: 0; background: var(--signal); transition: width .25s linear; }
.at-hero .nav-progress { opacity: 0; }
.btn:active, .btn-ghost:active, .btn-glass:active, .copy:active, .support-btn:active { scale: .96; }
html { scroll-padding-top: 90px; }
.hero { margin-top: 0; padding-top: 0; }

/* chapter */
.chapter { padding: 128px 0 112px; border-top: 0; position: relative; }
.chapter-alt { background: var(--card); }
.ch-head { max-width: 860px; margin: 0 auto 48px; text-align: center; }
.ch-step { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; color: var(--soft); margin-bottom: 18px; }
.ch-n { width: 34px; height: 34px; border-radius: var(--r-s); background: var(--ink); color: var(--on-dark); display: grid; place-items: center; font-size: var(--t-small); font-weight: 700; box-shadow: 0 6px 16px -6px oklch(0.185 0.01 70 / .5); }
.chapter.is-current .ch-n { background: var(--signal); }
.ch-head h2 { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.045em; line-height: 1.04; }
.ch-sub { margin-top: 16px; font-size: 20px; color: var(--text); }
.ch-label { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--soft); margin-bottom: 12px; }
.ch-visual { margin-bottom: 40px; }
.step-num, .step-head { display: none; }

/* doing panel */
.ch-do { display: grid; grid-template-columns: 1fr 1.35fr; gap: 20px; align-items: start; }
.ch-joe { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; font-size: 18px; line-height: 1.55; color: var(--ink); padding: 22px; border-radius: var(--r-l); background: linear-gradient(180deg, var(--paper), var(--card)); box-shadow: 0 0 0 1px oklch(0.52 0.105 80 / .12); }
.ch-joe img { width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px var(--card), 0 0 0 3px oklch(0.52 0.105 80 / .35); object-fit: cover; }
.ch-joe span::before { content: "What I did"; display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--signal-ink); margin-bottom: 6px; }
.ch-act { padding: 22px; border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .07), 0 12px 32px -16px oklch(0.185 0.01 70 / .25); }
.chapter-alt .ch-act { background: var(--paper); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .07); }
.tiles { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles label { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 14px 14px 16px; border-radius: var(--r-s); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .08); cursor: pointer; font-size: var(--t-small); line-height: 1.4; color: var(--ink); font-weight: 550; transition: box-shadow .2s, background-color .2s; }
.tiles label:hover { box-shadow: 0 0 0 1px oklch(0.52 0.105 80 / .45); }
.tiles .ic { width: 26px; height: 26px; color: var(--signal-ink); }
.tiles input { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; margin: 0; appearance: none; -webkit-appearance: none; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--line-2); background: var(--card); transition: background-color .15s, box-shadow .15s; display: grid; place-items: center; }
.tiles input::after { content: ""; width: 9px; height: 5px; border: solid var(--card); border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.tiles input:checked { background: var(--ink); box-shadow: none; }
.tiles input:checked::after { opacity: 1; }
.tiles label:has(input:checked) { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.drawer { border-radius: var(--r-s); background: var(--dark-2); color: var(--on-dark); overflow: hidden; margin-bottom: 12px; }
.drawer summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; font-weight: 650; font-size: var(--t-small); color: var(--on-dark); }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--signal); }
.drawer summary .ic { color: var(--signal); }
.drawer[open] summary em { color: var(--on-dark-soft); }
.drawer .prompt { border-radius: 0; }
.drawer .prompt-top { background: var(--dark-2); }
.ch-done { display: flex; align-items: center; gap: 10px; font-size: var(--t-small); color: var(--ink); }
.ch-done .ic { color: var(--ink); }
.ch-done b { color: var(--ink); margin-right: 4px; }

/* step 1: evidence map */
.evmap { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 56px; align-items: center; }
.ev-col { display: grid; gap: 14px; }
.ev { position: relative; margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .07), 0 6px 18px -10px oklch(0.185 0.01 70 / .3); }
.ev img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 8px; outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.ev figcaption { font-size: 14px; color: var(--soft); line-height: 1.35; }
.ev figcaption b { display: block; color: var(--ink); font-size: var(--t-small); }
.ev::after { content: ""; position: absolute; top: 50%; width: 56px; height: 2px; background: linear-gradient(90deg, oklch(0.86 0.165 92 / .15), oklch(0.86 0.165 92 / .7)); }
.ev-l::after { left: 100%; }
.ev-r::after { right: 100%; transform: scaleX(-1); }
.ev-core { position: relative; padding: 26px; border-radius: var(--r-l); background: var(--ink); color: var(--on-dark-2); box-shadow: 0 30px 60px -24px oklch(0.185 0.01 70 / .6); }
.ev-core-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin-bottom: 14px; }
.ev-core dl { margin: 0; display: grid; gap: 14px; }
.ev-core dt { font-size: 13px; color: var(--on-dark-soft); font-weight: 600; }
.ev-core dd { margin: 3px 0 0; color: var(--on-dark); font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.ev-folder { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--signal); text-decoration: none; font-weight: 600; }

/* step 2: beat timeline */
.beatline { padding: 28px; border-radius: var(--r-l); background: var(--ink); color: var(--on-dark-2); }
.bt-track { position: relative; height: 64px; margin: 0 0 12px; border-radius: var(--r-s); background: var(--dark-2); overflow: hidden; }
.bt-wave { position: absolute; inset: 8px 12px; width: calc(100% - 24px); height: 48px; }
.bt-wave rect { fill: var(--mute); }
.bt-head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--signal); left: 0; animation: bthead 8s linear infinite; }
@keyframes bthead { from { left: 0; } to { left: 100%; } }
.bt-label { position: absolute; left: 12px; top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); }
.bt-beats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bt-beats li { display: flex; flex-direction: column; align-items: stretch; gap: 10px; animation: btbeat 8s linear infinite; animation-delay: calc(var(--i) * 2s); }
@keyframes btbeat { 0%, 24% { opacity: 1; } 25.5%, 100% { opacity: .55; } }
.bt-word { font-size: 18px; font-weight: 650; color: var(--on-dark); line-height: 1.3; min-height: 2.6em; padding: 10px 12px; border-radius: var(--r-s); background: oklch(1 0 0 / .06); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .1); }
.bt-drop { align-self: center; width: 2px; height: 22px; background: repeating-linear-gradient(var(--signal) 0 4px, transparent 4px 8px); }
.bt-beats img { border-radius: var(--r-s); aspect-ratio: 16 / 9; object-fit: cover; outline: 1px solid oklch(1 0 0 / .1); outline-offset: -1px; }
.bt-cap { font-size: 14px; color: var(--on-dark-soft); }

/* step 3: filmstrip */
.filmstrip { position: relative; padding: 22px 0; background: var(--dark); border-radius: var(--r-m); overflow: hidden; box-shadow: 0 30px 60px -30px oklch(0 0 0 / .6); }
.filmstrip::before, .filmstrip::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(90deg, transparent 0 10px, var(--paper) 10px 20px, transparent 20px 30px); opacity: .5; }
.filmstrip::before { top: 5px; }
.filmstrip::after { bottom: 5px; }
.fs-frames { display: flex; gap: 6px; width: max-content; animation: fsmove 40s linear infinite; }
.fs-frames img { width: 230px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; filter: saturate(.8); }
@keyframes fsmove { to { transform: translateX(-50%); } }
.fs-stamps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 10px; }
.stamp { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); font-weight: 650; padding: 8px 14px; border-radius: var(--r-pill); }
.stamp.ok { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.stamp.no { background: transparent; color: var(--soft); box-shadow: inset 0 0 0 1px var(--line); text-decoration: line-through; text-decoration-color: var(--soft); transform: rotate(-1.5deg); }
.fs-cap { text-align: center; font-size: 16px; color: var(--soft); }
.fs-cap a { color: var(--signal-ink); font-weight: 600; }

/* step 4: review pins */
.review { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
.rv-screen { border-radius: var(--r-m); background: var(--dark); padding: 10px; box-shadow: 0 30px 60px -30px oklch(0.185 0.01 70 / .7); }
.rv-frame { position: relative; border-radius: 8px; overflow: hidden; }
.rv-frame img { display: block; width: 100%; }
.pin { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border-radius: 50%; border: 0; background: var(--signal); color: var(--ink); font: 800 14px/30px var(--sans); text-align: center; box-shadow: 0 0 0 3px var(--card), 0 6px 14px oklch(0 0 0 / .3); transition: scale .2s, background-color .2s; }
.pin::before { content: ""; position: absolute; inset: -10px; }
.pin.is-on, .pin:hover { scale: 1.18; background: var(--signal-strong); }
.rv-bar { display: flex; align-items: center; gap: 12px; padding: 12px 6px 4px; }
.rv-play { width: 0; height: 0; border-left: 11px solid var(--card); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.rv-track { flex: 1; height: 5px; border-radius: 3px; background: var(--dark-line); position: relative; }
.rv-track i { position: absolute; top: -5px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px oklch(1 0 0 / .18); }
.rv-time { font-size: 13px; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.rv-notes ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rv-notes li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: var(--r-s); font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .07); transition: box-shadow .2s, background-color .2s; cursor: default; }
.chapter-alt .rv-notes li { background: var(--paper); }
.rv-notes li.is-on { background: var(--paper); box-shadow: 0 0 0 2px var(--signal-strong); }
.pn { width: 26px; height: 26px; border-radius: 8px; background: var(--signal); color: var(--ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.rv-keep { margin-top: 10px; font-size: var(--t-small); color: var(--ink); padding: 10px 12px; border-radius: var(--r-s); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.vague { margin-bottom: 40px; }
.vague .flip-grid { grid-template-columns: repeat(3, 1fr); }

/* step 5: ladder tweaks */
.ladder { border-radius: var(--r-l); box-shadow: 0 30px 60px -30px oklch(0.185 0.01 70 / .7); }

/* step 6: template flow + craft */
.template { display: grid; grid-template-columns: 1.2fr .6fr 1fr; gap: 0; align-items: center; }
.tp-src { position: relative; margin: 0; }
.tp-src img { border-radius: var(--r-m); box-shadow: 0 30px 60px -24px oklch(0.185 0.01 70 / .45), 0 0 0 2px var(--ink); }
.tp-lock { position: absolute; top: -14px; left: 16px; display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--on-dark); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: var(--r-pill); }
.tp-lock .ic { width: 16px; height: 16px; }
.tp-src figcaption, .tp-dst figcaption { font-size: 14px; color: var(--soft); margin-top: 8px; font-weight: 600; }
.tp-flow { position: relative; height: 240px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; }
.tp-flow svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--signal-strong); stroke-width: 2; stroke-dasharray: 6 6; animation: dash 1.6s linear infinite; opacity: .6; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.tp-flow span { position: relative; z-index: 1; font-size: 13px; font-weight: 700; color: var(--signal-ink); background: var(--card); padding: 4px 10px; border-radius: var(--r-pill); box-shadow: 0 0 0 1px oklch(0.52 0.105 80 / .3); }
.tp-dst { display: grid; gap: 12px; }
.tp-dst figure { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
.tp-dst img { border-radius: var(--r-s); aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.tp-dst figcaption { margin: 0; }
.craft { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.craft-card { padding: 20px; border-radius: var(--r-l); background: var(--paper); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .07); }
.craft-card .compare { box-shadow: 0 20px 40px -24px oklch(0.185 0.01 70 / .5); border-radius: var(--r-s); }
.craft-q { font-size: var(--t-small); color: var(--ink); margin: 14px 0 12px; line-height: 1.5; }
.craft-card .scrub input[type=range] { margin-top: 12px; }
.craft-card .drawer { margin-bottom: 0; }

/* step 7: timeline */
.tl { padding: 24px; border-radius: var(--r-l); background: var(--ink); color: var(--on-dark-2); margin-bottom: 40px; position: relative; }
.tl .ch-label { color: var(--signal); }
.tl-rows { display: grid; gap: 8px; }
.tl-row { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; }
.tl-name { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); }
.tl-segs { list-style: none; margin: 0; padding: 0; position: relative; height: 86px; }
.tl-segs li { position: absolute; top: 0; bottom: 0; padding-right: 3px; }
.tl-segs img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; opacity: .85; }
.tl-segs span { position: absolute; left: 6px; bottom: 5px; font-size: 12px; font-weight: 700; color: var(--on-dark); text-shadow: 0 1px 4px oklch(0 0 0 / .8); white-space: nowrap; overflow: hidden; max-width: calc(100% - 10px); }
.tl-picture { position: relative; }
.tl-seam { position: absolute; top: -8px; bottom: -8px; width: 4px; margin-left: -2px; border: 0; padding: 0; background: var(--signal); border-radius: 2px; }
.tl-seam span { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--ink); background: var(--signal); padding: 2px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.tl-seam::before { content: ""; position: absolute; inset: -6px -16px; }
.tl-voice { height: 30px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--mid) 0 3px, transparent 3px 5px); mask: linear-gradient(90deg, oklch(0 0 0) 0 4.5%, transparent 4.5% 5%, oklch(0 0 0) 5% 44%, transparent 44% 46%, oklch(0 0 0) 46% 75%, transparent 75% 76.5%, oklch(0 0 0) 76.5% 96%, transparent 96%); opacity: .8; }
.tl-row-music .cue-chart { margin: 0; }
#cue-svg { height: 110px; }
.tl .cue-buttons { margin-top: 16px; }
.seam-pop { display: none; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; margin-top: 16px; padding: 16px; border-radius: var(--r-m); background: var(--dark-2); box-shadow: 0 0 0 1px var(--signal); }
.seam-pop.is-open { display: grid; }
.seam-pop img { border-radius: var(--r-s); }
.seam-pop p { font-size: var(--t-small); color: var(--on-dark); }
.seam-pop .ch-label { color: var(--signal); }
.seam-pop .seam-toggle { background: var(--dark-2); border-color: var(--dark-line); }
.seam-pop .seam-toggle button { color: var(--on-dark-soft); }
.seam-pop .seam-toggle button.is-on { background: var(--card); color: var(--ink); }

/* step 8: destinations */
.dest { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 20px; align-items: start; }
.dv { margin: 0; }
.dv-frame { position: relative; border-radius: var(--r-s); overflow: hidden; box-shadow: 0 20px 40px -24px oklch(0.185 0.01 70 / .6); outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.dv-frame img { width: 100%; display: block; }
.dv-dur { position: absolute; right: 8px; bottom: 8px; background: oklch(0 0 0 / .8); color: var(--on-dark); font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.dv figcaption { margin-top: 10px; font-size: 14px; color: var(--soft); line-height: 1.4; }
.dv figcaption b { display: block; color: var(--ink); font-size: 16px; }
.dv-ig .dv-frame { aspect-ratio: 4 / 5; }
.dv-ig .dv-frame img { height: 100%; object-fit: cover; object-position: 20% center; }
.dv-crop { position: absolute; inset: 14% 0; border: 2px dashed var(--signal-strong); border-radius: 6px; box-shadow: 0 0 0 999px oklch(0.185 0.01 70 / .28); }
.dv-post { padding: 14px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .08), 0 20px 40px -26px oklch(0.185 0.01 70 / .5); }
.dv-post p { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.dv-post p img { width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); }
.dv-line { display: block; height: 8px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.dv-line.short { width: 60%; margin-bottom: 12px; }
.dv-post .dv-frame { box-shadow: none; }

/* support */
.support { padding: 72px 0; }
.support-in { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 40px; border-radius: var(--r-l); background: linear-gradient(135deg, var(--paper), var(--paper)); box-shadow: 0 0 0 1px oklch(0.86 0.165 92 / .15); }
.support h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.035em; max-width: 20em; }
.support p:last-child { margin-top: 10px; color: var(--soft); }
.support-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: var(--r-m); background: var(--signal); color: var(--ink); font-weight: 700; font-size: var(--t-body); text-decoration: none; box-shadow: none; transition: background-color .2s, scale .15s; }
.support-btn:hover { background: var(--signal-strong); }
.support-btn .ic { width: 22px; height: 22px; fill: var(--card); stroke: none; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-step { margin-left: auto; }
  .ch-do, .review, .craft, .dest, .template { grid-template-columns: 1fr; }
  .evmap { grid-template-columns: 1fr; gap: 16px; }
  .ev-core { order: -1; }
  .ev::after { display: none; }
  .ev-col { grid-template-columns: 1fr 1fr; }
  .tp-flow { height: 70px; flex-direction: row; }
  .tp-flow svg { display: none; }
  .bt-beats { grid-template-columns: 1fr 1fr; }
  .support-in { grid-template-columns: 1fr; padding: 26px; }
}
@media (max-width: 620px) {
  .chapter { padding: 96px 0 72px; }
  .ch-sub { font-size: var(--t-body); }
  .tiles { grid-template-columns: 1fr; }
  .tiles label { flex-direction: row; align-items: center; padding-right: 44px; }
  .tiles input { top: 50%; margin-top: -11px; }
  .ev-col { grid-template-columns: 1fr; }
  .bt-beats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bt-word { font-size: var(--t-small); }
  .vague .flip-grid { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 1fr; }
  .tl-name { display: none; }
  .tl-segs { height: 56px; }
  .tl-segs span { display: none; }
  .seam-pop { grid-template-columns: 1fr; }
  .tp-dst figure { grid-template-columns: 110px 1fr; }
  .nav-pill .btn-small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bt-head, .fs-frames, .tp-flow svg, .bt-beats li { animation: none !important; }
}

/* v3.1: hero spacing, kit and recap as visuals */
.lockup { padding: 6px 16px 6px 14px; margin-bottom: 22px; }
.lockup-by { font-size: 14.5px; }

.kit2 { padding: 128px 0; background: radial-gradient(1000px 500px at 80% 0%, oklch(0.86 0.165 92 / .22), transparent 60%), var(--dark); }
.kit-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.kit-head h2 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.045em; }
.kit-head p { margin-top: 14px; font-size: 19px; color: var(--on-dark-2); }
.box { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: stretch; }
.tree { padding: 28px; border-radius: var(--r-l); background: var(--dark-2); box-shadow: 0 0 0 1px oklch(1 0 0 / .08), 0 30px 60px -30px oklch(0 0 0 / .6); font-family: var(--mono); }
.tree-root { display: flex; align-items: center; gap: 10px; color: var(--on-dark); font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.tree-root .ic { color: var(--on-dark-soft); width: 26px; height: 26px; }
.tree ul { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--dark-line); display: grid; gap: 4px; }
.tree li { position: relative; display: grid; grid-template-columns: 28px auto 1fr; gap: 10px; align-items: center; padding: 10px 12px 10px 14px; border-radius: var(--r-s); }
.tree li::before { content: ""; position: absolute; left: -14px; top: 50%; width: 14px; height: 2px; background: var(--dark-line); }
.tree li:hover { background: oklch(1 0 0 / .04); }
.tree li .ic { width: 22px; height: 22px; }
.tree b { color: var(--on-dark); font-size: 16px; font-weight: 650; }
.tree span { font-family: var(--sans); color: var(--on-dark-soft); font-size: var(--t-small); }
.t-skill .ic { color: var(--signal); } .t-start .ic { color: var(--signal); } .t-notes .ic { color: var(--on-dark-2); } .t-req .ic { color: var(--signal); } .t-orig .ic { color: var(--on-dark-2); } .t-read .ic { color: var(--signal); }
.box-cta { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 28px; border-radius: var(--r-l); background: linear-gradient(160deg, var(--dark-2), var(--dark-2) 60%, var(--dark-2)); box-shadow: 0 0 0 1px oklch(0.86 0.165 92 / .25); }
.dl-hero { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-m); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 20px 40px -18px oklch(0 0 0 / .6); transition: translate .2s, box-shadow .2s; }
.dl-hero:hover { translate: 0 -2px; box-shadow: 0 26px 50px -18px oklch(0 0 0 / .7); }
.dl-hero:active { scale: .98; }
.zip { width: 64px; height: 64px; border-radius: var(--r-m); display: grid; place-items: center; background: var(--signal); color: var(--ink); }
.zip .ic { width: 30px; height: 30px; }
.dl-hero b { display: block; font-size: 19px; letter-spacing: -0.01em; }
.dl-hero em { font-style: normal; font-size: 14px; color: var(--soft); }
.dl-hero i { font-style: normal; font-size: 24px; color: var(--signal); }
.dl-or { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin-top: 6px; }
.dl-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-chips a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-s); background: oklch(1 0 0 / .08); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .14); color: var(--on-dark); font-weight: 600; font-size: var(--t-small); text-decoration: none; transition: background-color .2s; }
.dl-chips a:hover { background: oklch(1 0 0 / .15); }
.dl-chips .ic { color: var(--signal); }
.kit-sub { color: var(--on-dark); font-size: 26px; letter-spacing: -0.02em; margin: 64px 0 20px; }
.hour { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: 14px; counter-reset: h; position: relative; }
.hour li { counter-increment: h; position: relative; padding: 22px; border-radius: var(--r-l); background: var(--dark-2); box-shadow: 0 0 0 1px var(--dark-line); color: var(--on-dark-2); }
.hour li::after { content: "→"; position: absolute; right: -13px; top: 38px; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--signal); color: var(--ink); font-size: 13px; display: grid; place-items: center; }
.hour li:last-child::after { display: none; }
.hour-ic { width: 44px; height: 44px; border-radius: var(--r-m); display: grid; place-items: center; background: oklch(0.86 0.165 92 / .15); color: var(--signal); margin-bottom: 14px; }
.hour-ic .ic { width: 24px; height: 24px; }
.hour b { display: block; color: var(--on-dark); font-size: var(--t-body); margin-bottom: 4px; }
.hour b::before { content: counter(h) ". "; color: var(--signal); }
.hour p { font-size: var(--t-small); line-height: 1.45; }
.hour code { background: var(--dark-3); color: var(--signal); }
.hour-end .starter-peek { margin: 0 0 12px; }
.hour-end video { width: 100%; border-radius: var(--r-s); aspect-ratio: 16 / 9; background: oklch(0 0 0); }
.drawer-dark { background: var(--dark); box-shadow: 0 0 0 1px var(--dark-line); }
.skills2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.skill2 { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-l); background: var(--dark-2); box-shadow: 0 0 0 1px var(--dark-line); text-decoration: none; color: var(--on-dark-2); transition: translate .2s, box-shadow .2s; }
.skill2:hover { translate: 0 -3px; box-shadow: 0 0 0 1px var(--signal), 0 18px 36px -18px oklch(0 0 0 / .6); }
.skill2-main { background: var(--signal); box-shadow: none; color: var(--signal-soft); }
.sk-ic { width: 44px; height: 44px; border-radius: var(--r-m); display: grid; place-items: center; background: oklch(1 0 0 / .12); color: var(--on-dark); }
.sk-ic .ic { width: 24px; height: 24px; }
.skill2 b { color: var(--on-dark); font: 500 15.5px/1.3 var(--mono); word-break: break-word; }
.skill2 p { font-size: var(--t-small); line-height: 1.45; flex: 1; }
.skill2 em { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--signal); }
.skill2-main em { color: var(--on-dark); }
.kit-foot { text-align: center; margin-top: 22px !important; }

.recap2 { padding: 140px 0 120px; text-align: center; background: radial-gradient(900px 480px at 50% 0%, oklch(0.86 0.165 92 / .18), transparent 65%), radial-gradient(900px 480px at 20% 100%, oklch(0.86 0.165 92 / .25), transparent 60%), var(--dark); color: var(--on-dark-2); }
.recap2 h2 { color: var(--on-dark); font-size: clamp(36px, 5.4vw, 76px); letter-spacing: -0.05em; line-height: 1.04; max-width: none; margin: 0 auto; }
.recap2 h2 span { display: block; color: var(--on-dark); }
.recap2 h2 .rc-grad { background: linear-gradient(90deg, var(--line-2), var(--signal) 40%, var(--signal) 75%, var(--signal)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.rc-sub { margin-top: 18px; font-size: 21px; color: var(--on-dark-2); }
.rc-loop { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; background: none; border: 0; border-radius: 0; overflow: visible; position: relative; text-align: left; counter-reset: rc; }
.rc-loop::before { content: ""; position: absolute; left: 8%; right: 8%; top: 31px; height: 2px; background: var(--dark-line); }
.rc-loop li { position: relative; background: transparent; padding: 0 6px; font-size: var(--t-small); line-height: 1.5; color: var(--on-dark-soft); counter-increment: rc; }
.rc-loop li::before { display: none; }
.rc-ic { position: relative; z-index: 1; width: 62px; height: 62px; border-radius: var(--r-l); margin-bottom: 16px; display: grid; place-items: center; background: var(--dark-2); box-shadow: 0 0 0 1px var(--dark-line), 0 12px 24px -12px oklch(0 0 0 / .6); color: var(--on-dark); }
.rc-ic .ic { width: 28px; height: 28px; }
.rc-in-loop .rc-ic { background: var(--signal); box-shadow: 0 12px 24px -12px oklch(0 0 0 / .6); }
.rc-loop b { display: block; color: var(--on-dark); font-size: var(--t-body); margin-bottom: 4px; letter-spacing: -0.01em; }
.rc-loop li:nth-child(4)::after { content: "↻ repeat per section"; position: absolute; top: -30px; left: 0; width: calc(200% + 12px); text-align: center; font-size: 13px; font-weight: 700; color: var(--signal); letter-spacing: .02em; }
.recap2 .recap-cta { justify-content: center; margin-top: 56px; }
.btn-big { font-size: 18px; padding: 16px 30px; }
.recap2 .deeper { margin: 64px auto 0; text-align: left; }
.recap2 .deeper details { background: var(--dark-2); box-shadow: 0 0 0 1px var(--dark-line); border: 0; }
.recap2 .deeper summary { color: var(--on-dark); }
.recap2 .deeper details p { color: var(--on-dark-2); }

@media (max-width: 980px) {
  .box { grid-template-columns: 1fr; }
  .hour { grid-template-columns: 1fr 1fr; }
  .hour li::after { display: none; }
  .skills2 { grid-template-columns: 1fr 1fr; }
  .rc-loop { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .rc-loop::before, .rc-loop li:nth-child(4)::after { display: none; }
}
@media (max-width: 620px) {
  .tree li { grid-template-columns: 24px 1fr; }
  .tree span { grid-column: 2; }
  .dl-chips { grid-template-columns: 1fr; }
  .hour, .skills2 { grid-template-columns: 1fr; }
  .rc-loop { grid-template-columns: 1fr 1fr; }
  .dl-hero { grid-template-columns: 48px 1fr auto; }
  .zip { width: 48px; height: 48px; }
}

/* v3.2: origin timeline, method icons, roles, principle visuals, tool cards */
.origin, .origin-grid { display: none; }
.origin2 { padding: 104px 0 88px; text-align: center; }
.origin2 h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.04em; margin-bottom: 48px; }
.tooltime { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; text-align: left; }
.tooltime::before { content: ""; position: absolute; left: 12px; right: 12px; top: 9px; height: 2px; background: linear-gradient(90deg, var(--line-2), var(--signal) 60%, var(--signal)); }
.tooltime li { position: relative; padding-top: 34px; }
.tt-dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px var(--line-2); }
.tt-now .tt-dot { background: var(--signal); box-shadow: none; }
.tt-when { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--soft); }
.tooltime b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; margin: 4px 0 6px; }
.tt-now b { background: var(--signal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tooltime li > p:last-child { font-size: 16px; line-height: 1.5; }
.tt-foot { margin-top: 36px; font-size: 16px; color: var(--soft); }

.node i { width: 40px; height: 40px; border-radius: var(--r-s); position: relative; }
.node i .ic { width: 22px; height: 22px; color: var(--on-dark); }
.node i em { position: absolute; right: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); color: var(--ink); font-size: 12px; font-style: normal; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.node { grid-template-columns: 40px 1fr; align-items: center; }
.roles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.role2 { display: grid; grid-template-columns: 48px 1fr; gap: 6px 14px; align-items: center; padding: 20px 22px; border-radius: var(--r-l); }
.role2 b { font-size: 20px; letter-spacing: -0.02em; }
.r2-ic { grid-row: span 2; width: 48px; height: 48px; border-radius: var(--r-m); display: grid; place-items: center; }
.r2-ic .ic { width: 24px; height: 24px; }
.r2-list { display: flex; flex-wrap: wrap; gap: 6px; }
.r2-list i { font-style: normal; font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); }
.role2-you { background: var(--ink); }
.role2-you b { color: var(--on-dark); }
.role2-you .r2-ic { background: var(--signal); color: var(--ink); }
.role2-you .r2-list i { background: oklch(1 0 0 / .1); color: var(--on-dark); }
.role2-ai { background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .08); }
.role2-ai .r2-ic { background: var(--signal-soft); color: var(--signal-ink); }
.role2-ai .r2-list i { background: var(--paper); color: var(--text); box-shadow: 0 0 0 1px var(--line); }

.truth-vis { height: 92px; border-radius: var(--r-m); background: oklch(1 0 0 / .04); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .08); display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 6px; position: relative; }
.rn-you { padding: 8px 14px; border-radius: var(--r-s); background: var(--signal); color: var(--ink); font-weight: 700; font-size: var(--t-small); }
.rn-line { width: 60px; height: 2px; background: repeating-linear-gradient(90deg, var(--signal) 0 6px, transparent 6px 10px); }
.rn-ai { padding: 8px 14px; border-radius: var(--r-s); background: oklch(1 0 0 / .1); color: var(--on-dark); font-weight: 700; font-size: var(--t-small); }
.rn-files { display: flex; gap: 4px; margin-left: 6px; }
.rn-files i { width: 22px; height: 28px; border-radius: 4px; background: oklch(1 0 0 / .14); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .2); }
.rf-clip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-s); background: oklch(1 0 0 / .08); color: var(--on-dark); font: 500 14px var(--mono); }
.rf-clip i { width: 34px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, var(--line-2), var(--signal)); position: relative; }
.rf-clip i::after { content: ""; position: absolute; left: 13px; top: 6px; border-left: 8px solid var(--card); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.rf-arrow { color: var(--signal); font-size: 20px; }
.rf-tags { display: flex; gap: 6px; }
.rf-tags i { font-style: normal; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill); background: oklch(1 0 0 / .08); color: var(--on-dark); }

.before-in { grid-template-columns: .8fr 1.6fr; align-items: center; }
.toolcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.toolcard { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-l); background: var(--paper); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .07); text-decoration: none; color: var(--text); }
.toolcard p:last-child { font-size: var(--t-small); line-height: 1.45; }
.toolcard b { font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.tc-role { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-top: 8px; }
.tc-ic { width: 46px; height: 46px; border-radius: var(--r-m); display: grid; place-items: center; background: var(--card); color: var(--signal-ink); box-shadow: 0 0 0 1px oklch(0.52 0.105 80 / .2); }
.tc-ic .ic { width: 24px; height: 24px; }
.tc-main { background: var(--ink); color: var(--on-dark-2); box-shadow: 0 20px 40px -24px oklch(0.185 0.01 70 / .7); }
.tc-main b { color: var(--on-dark); }
.tc-main .tc-role { color: var(--signal); }
.tc-main .tc-ic { background: var(--signal); color: var(--ink); box-shadow: none; }
.tc-kit { transition: box-shadow .2s, translate .2s; }
.tc-kit:hover { translate: 0 -2px; box-shadow: 0 0 0 1px var(--signal-strong); }

@media (max-width: 1080px) { .toolcards { grid-template-columns: 1fr 1fr; } .before-in { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .tooltime { grid-template-columns: 1fr; gap: 26px; }
  .tooltime::before { left: 9px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .tooltime li { padding: 0 0 0 36px; }
  .roles2 { grid-template-columns: 1fr; }
  .toolcards { grid-template-columns: 1fr; }
}
.before-in { grid-template-columns: 1fr !important; gap: 28px; }
.before-in > div:first-child { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.before-in > div:first-child .eyebrow { width: 100%; margin-bottom: -12px; }
.before h2 { margin-bottom: 0; }

/* method: the track with the loop */
.map { display: none; }
.track { position: relative; height: 440px; margin: 8px 0 20px; }
.track-svg { position: absolute; left: 0; right: 0; top: 40px; width: 100%; height: 360px; overflow: visible; }
.tr-line { fill: none; stroke: url(#tg); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tr-loop { fill: oklch(0.86 0.165 92 / .05); stroke: var(--signal-strong); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tr-dot { fill: var(--signal); }
.tn { position: absolute; transform: translate(-50%, 0); margin-top: 0; width: 150px; display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; }
.tn { top: 0; }
.tn-ic { position: relative; width: 56px; height: 56px; border-radius: var(--r-m); display: grid; place-items: center; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .08), 0 10px 24px -12px oklch(0.185 0.01 70 / .45); margin-top: -28px; transition: translate .2s, box-shadow .2s; }
.tn-ic .ic { width: 26px; height: 26px; }
.tn-ic em { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--on-dark); font: 800 12px/22px var(--sans); text-align: center; font-style: normal; }
.tn-loop { width: 118px; }
.tn-loop .tn-ic { background: var(--signal); color: var(--ink); box-shadow: 0 12px 26px -10px oklch(0.185 0.01 70 / .45); }
.tn-loop .tn-ic em { background: var(--card); color: var(--signal-ink); }
.tn:hover .tn-ic { translate: 0 -3px; }
.tn b { margin-top: 12px; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.tn small { font-size: 13.5px; color: var(--soft); line-height: 1.35; }
.tn.is-done .tn-ic { box-shadow: 0 0 0 2px var(--ink); }
.tr-phase { position: absolute; top: 0; transform: translateX(-50%); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.tr-phase-loop { color: var(--signal-ink); letter-spacing: .04em; text-transform: none; font-size: 14px; }
@media (max-width: 980px) {
  .track { height: auto; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .track-svg, .tr-phase { display: none; }
  .tn { position: relative; left: auto !important; top: auto !important; transform: none; margin: 0; width: auto; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left; padding: 12px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .07); }
  .tn-ic { grid-row: span 2; margin: 0; }
  .tn b { margin: 0; align-self: end; }
  .tn small { align-self: start; }
  .tn-loop { background: var(--paper); }
}

/* v3.3: from the full audit */
/* steps: one caption + one flat strip instead of cards in cards */
.ch-do { grid-template-columns: 1fr; gap: 16px; max-width: 1000px; margin: 0 auto; }
.ch-joe { display: flex; gap: 12px; align-items: flex-start; justify-content: center; background: none; box-shadow: none; padding: 0; font-size: var(--t-body); line-height: 1.55; color: var(--text); max-width: 820px; margin: 0 auto; text-align: left; }
.ch-joe img { width: 32px; height: 32px; flex: none; margin-top: 1px; }
.ch-joe span::before { display: inline; content: "What I did · "; font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 700; margin: 0; }
.ch-act, .chapter-alt .ch-act { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: center; padding: 16px 18px; border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .07), 0 16px 40px -28px oklch(0.185 0.01 70 / .35); }
.ch-act > .ch-label { grid-column: 1 / -1; margin-bottom: 0; }
.ch-act > .tiles { grid-column: 1 / -1; margin: 0; gap: 4px 18px; }
.tiles label, .tiles label:hover { background: none; box-shadow: none; padding: 8px 0; flex-direction: row; align-items: center; gap: 10px; font-size: 16px; }
.tiles label:has(input:checked) { background: none; box-shadow: none; }
.tiles label:has(input:checked) span { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--mute); }
.tiles input { position: static; order: -1; flex: none; margin: 0; }
.tiles .ic { width: 22px; height: 22px; }
.ch-act > .drawer { margin: 0; grid-column: 1; }
.ch-act > .drawer[open] { grid-column: 1 / -1; }
.ch-act > .ch-done { grid-column: 2; justify-self: end; font-size: var(--t-small); }
.ch-act > .drawer[open] ~ .ch-done { grid-column: 1 / -1; justify-self: start; }
.ch-act > .drawer + .drawer { grid-column: 1; }
/* the direct loop reads as one tinted stretch */
#step-4, #step-5, #step-6 { background: linear-gradient(180deg, var(--paper), var(--paper)); }
#step-4 .ch-act, #step-5 .ch-act, #step-6 .ch-act { background: var(--card); }
/* headings: lottery card no larger than its section */
.lottery-copy h3 { font-size: clamp(30px, 3.6vw, 48px); }
/* readable meta text */
.bt-cap { font-size: 14px; color: var(--on-dark-2); }
.chapters span { font-size: 13px; color: var(--on-dark-soft); }
.chapters b { font-size: 14px; }
.small, .small.light, .kit-foot { font-size: 14px; }
.small.light, .kit-foot { color: var(--on-dark-soft); }
.lottery-count { font-size: 14px !important; color: var(--signal) !important; }
.fs-cap, .dv figcaption { font-size: var(--t-small); }
/* step 7: room for the seam flag, labels only where they fit */
.tl-head { margin-bottom: 30px; }
.tl-segs li:nth-child(-n+3) span { display: none; }
.tl-segs span { font-size: 12px; background: oklch(0.165 0.008 70 / .7); padding: 2px 6px; border-radius: 5px; text-shadow: none; }
/* step 8: one baseline */
.dest { align-items: end; }
/* kit: the first-hour cards match */
.hour { align-items: stretch; }
.hour-end .starter-peek video { aspect-ratio: auto; height: 84px; object-fit: cover; }
/* launch players */
.launch-player { position: relative; }
.lp-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 0; border-radius: 50%; background: oklch(1 0 0 / .94); display: grid; place-items: center; box-shadow: 0 10px 30px oklch(0 0 0 / .35); transition: scale .15s, box-shadow .2s; }
.lp-play:hover { box-shadow: 0 0 0 10px oklch(1 0 0 / .18), 0 10px 30px oklch(0 0 0 / .35); }
.lp-play:active { scale: .96; }
.lp-play svg { width: 26px; fill: var(--signal); margin-left: 4px; }
.launch-card ul { display: none; }
.launch-card .meta { margin-bottom: 4px; }
/* skills: plain names first */
.skill2 .sk-name { font: 700 18px/1.25 var(--sans); letter-spacing: -0.01em; color: var(--on-dark); }
.skill2 code { background: oklch(1 0 0 / .08); color: var(--signal); font-size: 12.5px; padding: 3px 8px; border-radius: 6px; align-self: flex-start; }
.skill2-main code { background: oklch(0.185 0.01 70 / .22); color: var(--on-dark); }
/* bonus: neutral badges */
.status { color: var(--signal-ink); background: var(--signal-soft); }
/* header over any dark section */
.on-dark .nav-pill { background: oklch(0.165 0.008 70 / .55); box-shadow: 0 0 0 1px oklch(1 0 0 / .1), 0 8px 24px -8px oklch(0 0 0 / .4); }
.on-dark .brand-text b { color: var(--on-dark); }
.on-dark .nav-links a { color: var(--on-dark-2); }
.on-dark .nav-links a:hover { background: oklch(1 0 0 / .08); color: var(--on-dark); }
.on-dark .nav-step { background: oklch(1 0 0 / .1); color: var(--on-dark); }
/* phone: principle cards never overflow */
.truth-grid > *, .truth { min-width: 0; }
.truth-vis { flex-wrap: wrap; height: auto; min-height: 92px; padding: 14px; }
@media (max-width: 620px) {
  .ch-act, .chapter-alt .ch-act { grid-template-columns: 1fr; }
  .ch-act > .ch-done { grid-column: 1; justify-self: start; }
  .ch-joe { font-size: 16px; }
}

.tn-l, .tn-r { width: auto; flex-direction: row; align-items: center; gap: 12px; }
.tn-l { flex-direction: row-reverse; transform: translate(calc(-100% + 28px), -28px); text-align: right; }
.tn-r { transform: translate(-28px, -28px); text-align: left; }
.tn-l .tn-ic, .tn-r .tn-ic { margin-top: 0; flex: none; }
.tn-txt { display: flex; flex-direction: column; }
.tn-txt b { margin-top: 0 !important; }
@media (max-width: 980px) {
  .tn-l, .tn-r { transform: none; flex-direction: row; text-align: left; display: grid; }
  .tn-txt { grid-row: span 2; }
}
@media (max-width: 980px) {
  .tn-l, .tn-r { display: grid !important; grid-template-columns: 56px 1fr; text-align: left !important; }
  .tn-l .tn-txt, .tn-r .tn-txt { grid-column: 2; grid-row: 1 / span 2; align-items: flex-start; text-align: left; align-self: center; }
  .tn-l .tn-ic, .tn-r .tn-ic { grid-column: 1; grid-row: 1 / span 2; }
}
.tn-txt b, .tn-txt small { align-self: flex-start !important; }

/* lessons: time chart + tips */
.lessons { padding: 120px 0; background: var(--card); }
.timechart { list-style: none; margin: 0; padding: 28px; border-radius: var(--r-l); background: var(--ink); display: grid; gap: 14px; }
.timechart li { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: center; }
.tc-name b { display: block; color: var(--on-dark); font-size: var(--t-body); letter-spacing: -0.01em; }
.tc-name em { font-style: normal; font-size: 13.5px; color: var(--on-dark-soft); }
.tc-bar { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.tc-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: var(--r-s); background: var(--signal); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.22, 1, .36, 1); }
.timechart.is-grown .tc-bar i { transform: scaleX(1); }
.timechart li:nth-child(2) .tc-bar i { transition-delay: .12s; } .timechart li:nth-child(3) .tc-bar i { transition-delay: .24s; } .timechart li:nth-child(4) .tc-bar i { transition-delay: .36s; } .timechart li:nth-child(5) .tc-bar i { transition-delay: .48s; }
.tc-bar strong { position: relative; margin-left: calc(var(--w) + 14px); color: var(--on-dark); font-size: 16px; white-space: nowrap; }
.tc-bar small { position: relative; font-size: 13px; font-weight: 600; color: var(--signal); background: oklch(0.86 0.165 92 / .14); padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.tc-note { margin-top: 12px; font-size: 14px; color: var(--soft); }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.tip { padding: 20px; border-radius: var(--r-l); background: var(--paper); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .06); display: flex; flex-direction: column; gap: 10px; }
.tip h3 { font-size: 21px; letter-spacing: -0.02em; margin-top: 6px; }
.tip p { font-size: 16px; line-height: 1.55; }
.tip-vis { height: 190px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .06); padding: 14px; }
.f0 { display: grid; grid-template-columns: 1.35fr .6fr 1.35fr; gap: 8px; align-items: center; }
.f0 figure { position: relative; margin: 0; height: 100%; display: flex; align-items: center; }
.f0 img { width: 100%; max-height: 160px; object-fit: contain; border-radius: 8px; outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.f0 figure span { position: absolute; right: -4px; top: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--on-dark); font-size: 13px; font-weight: 800; }
.f0 .ok span { background: var(--ink); } .f0 .no span { background: var(--signal); }
.rounds { display: grid; align-content: center; gap: 18px; }
.rd-label { display: block; font-size: 13px; font-weight: 700; color: var(--soft); margin-bottom: 8px; }
.rd-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-dots i { width: 22px; height: 22px; border-radius: 7px; background: var(--signal-soft); box-shadow: inset 0 0 0 1.5px oklch(0.52 0.105 80 / .35); }
.rd-dots i:last-child { background: var(--signal); box-shadow: none; }
.revw { display: grid; align-content: center; gap: 10px; }
.revw div { display: grid; grid-template-columns: 96px 18px 1fr; align-items: center; gap: 6px; padding: 9px 12px; border-radius: var(--r-s); background: var(--paper); }
.revw b { font-size: 14px; color: var(--ink); }
.revw span { color: var(--signal-ink); }
.revw em { font-style: normal; font-size: 14px; color: var(--signal-ink); font-weight: 600; }
.bm-v img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-s); }
.bonus-card { grid-template-columns: 170px 1fr; }
@media (max-width: 980px) { .tips { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .timechart { padding: 18px; }
  .timechart li { grid-template-columns: 1fr; gap: 6px; }
  .tc-bar { flex-wrap: wrap; }
  .tc-bar small { display: none; }
  .lessons { padding: 80px 0; }
  .bm-v { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) { .tc-bar i { transform: none; } }

.bonus-card:has(.wissal) { grid-template-columns: 250px 1fr; }
.bonus-grid { align-items: stretch; }
.revw div { grid-template-columns: 90px 16px 1fr; }
@media (max-width: 620px) { .bonus-card:has(.wissal) { grid-template-columns: 1fr; } }


/* =========================================================
   background v4: same request, two ways; pipeline; landscape map
   ========================================================= */
.bg3 { padding: 128px 0 112px; background: var(--card); }
.bg3-head { max-width: none; text-align: center; margin: 0 auto 44px; }
.bg3-head h2 span { display: block; }
.bg3-head > p:last-child { max-width: 620px; margin: 0 auto; }
@media (min-width: 900px) { .bg3-head h2 span { white-space: nowrap; } }

/* the duel */
.duel { position: relative; padding: 14px; border-radius: var(--r-xl); background: linear-gradient(180deg, var(--paper), var(--paper-2)); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .06), 0 40px 80px -50px oklch(0.185 0.01 70 / .35); }
.duel-ask { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 12px 20px; text-align: center; }
.duel-ask span { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.duel-ask p { font-size: 18px; font-weight: 600; color: var(--ink); padding: 10px 18px; border-radius: var(--r-pill); background: var(--card); box-shadow: 0 1px 2px oklch(0.185 0.01 70 / .06), 0 0 0 1px oklch(0.185 0.01 70 / .06); }
.duel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.way { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .06), 0 12px 30px -20px oklch(0.185 0.01 70 / .25); }
.way header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.way-n { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-pill); background: var(--paper); color: var(--soft); }
.way-code .way-n { background: var(--signal-soft); color: var(--signal-ink); }
.way header b { font-size: 20px; color: var(--ink); letter-spacing: -0.015em; }
.way header em { font-style: normal; color: var(--soft); font-size: 16px; }
.way-screen { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; background: var(--dark-2); outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.way-screen > img { width: 100%; height: 100%; object-fit: cover; }
.gs { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.04); filter: blur(6px) saturate(1.1); transition: opacity .6s cubic-bezier(.2, 0, 0, 1), transform .8s cubic-bezier(.2, 0, 0, 1), filter .6s; }
.gs-1 { opacity: 1; transform: none; filter: saturate(1.1); }
.duel.is-noted .gs-1 { opacity: 0; transform: scale(1.04); filter: blur(6px); }
.duel.is-noted .gs-2 { opacity: 1; transform: none; filter: saturate(1.1); }
.ws-badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: var(--r-pill); background: oklch(0.165 0.008 70 / .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--on-dark); font-size: 13px; font-weight: 600; }
.ws-badge::after { content: " · generated"; color: oklch(1 0 0 / .7); font-weight: 500; }
.hl-box { position: absolute; left: 3.8%; top: 81%; width: 27.5%; height: 11%; border-radius: 8px; box-shadow: 0 0 0 2px var(--signal-strong); opacity: 0; scale: 1.08; transition: opacity .4s, scale .4s cubic-bezier(.2, 0, 0, 1); }
.duel.is-noted .hl-box { opacity: 1; scale: 1; }
.ws-files { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: var(--r-s); background: oklch(1 0 0 / .92); box-shadow: 0 6px 16px -8px oklch(0.185 0.01 70 / .45); }
.ws-files img, .ws-files > span { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; object-position: top; outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.ws-files > span { display: grid; place-items: center; background: var(--signal-soft); color: var(--signal-ink); outline: 0; }
.ws-files > span .ic { width: 16px; height: 16px; }
.ws-files em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-left: 2px; }
.way-under { min-height: 118px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.tries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tries span { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--soft); text-align: center; transition: color .3s; }
.tries i { aspect-ratio: 16 / 7; border-radius: 8px; transition: box-shadow .3s, opacity .3s; }
.t1 i { background: linear-gradient(180deg, #5b3a8e, #ff7a8a 60%, #ffc07a); }
.t2 i { background: linear-gradient(180deg, #b9ab96, #efe7da 70%, #5cb85c 70%); opacity: .35; }
.t3 i { background: repeating-linear-gradient(45deg, var(--paper-2) 0 6px, var(--paper) 6px 12px); box-shadow: inset 0 0 0 1px var(--line); }
.t3 { color: var(--soft) !important; }
.t1 i { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--signal); }
.t1 { color: var(--ink) !important; }
.duel.is-noted .t1 i { box-shadow: none; opacity: .35; }
.duel.is-noted .t1 { color: var(--soft) !important; }
.duel.is-noted .t2 i { opacity: 1; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--signal-strong); }
.duel.is-noted .t2 { color: var(--ink); }
.way-result { position: relative; min-height: 26px; font-size: 16px; font-weight: 600; text-align: center; color: var(--ink); }
.way-result span { display: block; transition: opacity .35s, translate .35s; }
.way-result .r1 { position: absolute; inset: 0; opacity: 0; translate: 0 6px; }
.duel.is-noted .way-result .r0 { opacity: 0; translate: 0 -6px; }
.duel.is-noted .way-result .r1 { opacity: 1; translate: 0 0; }
.duel.is-noted .way-gen .r1 { color: var(--signal-ink); }
.duel.is-noted .way-code .r1 { color: var(--ink); }
/* mini timeline */
.tlmini { gap: 6px; }
.tlm-ruler, .tlm-row { display: grid; grid-template-columns: 78px 1fr; align-items: center; }
.tlm-ruler { grid-template-columns: 78px repeat(5, 1fr) 0; font-size: 12px; color: var(--soft); font-variant-numeric: tabular-nums; }
.tlm-ruler span:first-child { grid-column: 2; }
.tlm-ruler span:last-child { width: 0; overflow: visible; translate: -8px 0; }
.tlm-row em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--soft); }
.tlm-row div { position: relative; height: 16px; border-radius: 5px; background: repeating-linear-gradient(90deg, var(--paper-2) 0 calc(20% - 1px), var(--line) calc(20% - 1px) 20%); }
.tlm-b { position: absolute; top: 0; bottom: 0; border-radius: 5px; transition: left .7s cubic-bezier(.2, 0, 0, 1), opacity .4s; }
.b-head { left: 0; right: 0; background: var(--mute); }
.b-mail { left: 12%; right: 0; background: var(--mute); }
.b-thanks { left: 40%; right: 0; background: var(--signal-soft); box-shadow: inset 0 0 0 1px oklch(0.52 0.105 80 / .35); }
.b-voice { left: 0; right: 8%; background: repeating-linear-gradient(90deg, var(--signal-soft) 0 3px, transparent 3px 5px); }
.tlm-b small { position: absolute; left: 6px; top: 50%; translate: 0 -50%; font-size: 12px; font-weight: 800; color: var(--signal-ink); opacity: 0; transition: opacity .3s .4s; }
.duel.is-noted .b-thanks { left: 48%; box-shadow: 0 0 0 2px var(--signal-strong); }
.duel.is-noted .b-thanks small { opacity: 1; }
.duel.is-noted .tlm-row:not(.tlm-hit) .tlm-b { opacity: .55; }
.duel.is-noted .tlm-hit em { color: var(--signal-ink); }
/* action */
.duel-act { display: flex; justify-content: center; margin-top: -8px; position: relative; top: 26px; }
.duel-btn { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--on-dark); box-shadow: 0 16px 30px -12px oklch(0.185 0.01 70 / .55); transition: scale .15s, background-color .2s; }
.duel-btn:hover { background: var(--dark-3); }
.duel-btn:active { scale: .96; }
.duel-btn > span { display: inline-flex; align-items: center; gap: 12px; }
.duel-btn b { font-size: 16px; font-weight: 650; }
.duel-btn q { quotes: "“" "”"; padding: 8px 14px; border-radius: var(--r-pill); background: var(--signal-soft); color: var(--signal); font-size: var(--t-small); font-weight: 600; }
.duel-btn .db-1 { display: none; padding: 6px 14px 6px 0; }
.duel.is-noted .duel-btn .db-0 { display: none; }
.duel.is-noted .duel-btn .db-1 { display: inline-flex; }

/* best for */
.bestfor { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 72px; padding: 0 18px; }
.bf p { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: 12px; }
.bf-code p { color: var(--signal-ink); }
.bf ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bf li { padding: 7px 14px; border-radius: var(--r-pill); font-size: var(--t-small); font-weight: 600; color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px oklch(0.185 0.01 70 / .07); }
.bf-code li { background: var(--signal-soft); color: var(--signal-ink); box-shadow: none; }
.bf em { font-size: var(--t-small); color: var(--soft); }
.bf-mix { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 16px; }
.bf-mix .ic { width: 22px; height: 22px; color: var(--signal-ink); flex: none; }
.bf-mix b { color: var(--ink); }

/* shared sub-head */
.h2-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.h2-head .ch-label { margin-bottom: 10px; }
.h2-head h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; margin-bottom: 10px; }
.h2-head p:last-child { font-size: var(--t-body); color: var(--soft); }

/* pipeline */
.hood2 { margin-top: 112px; padding: 56px 28px 40px; border-radius: var(--r-xl); background:
  linear-gradient(oklch(0.86 0.165 92 / .05) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, oklch(0.86 0.165 92 / .05) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(180deg, var(--paper), var(--paper)); box-shadow: inset 0 0 0 1px oklch(0.185 0.01 70 / .06); }
.pipe { display: grid; grid-template-columns: 1fr 44px 1.15fr 44px 1fr 44px 1fr; align-items: stretch; }
.pnode { display: flex; flex-direction: column; text-align: center; min-width: 0; }
.pn-vis { height: 176px; display: grid; place-items: center; margin-bottom: 16px; }
.pnode > b { font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.pnode > small { font-size: 14.5px; color: var(--soft); line-height: 1.4; margin-top: 2px; }
.pl { position: relative; align-self: start; margin-top: 88px; height: 2px; background: var(--signal-strong); border-radius: 2px; }
.pl::before { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--signal-strong); border-right: 0; }
.pl::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px var(--signal-strong); animation: pl-run 2.4s cubic-bezier(.45, 0, .55, 1) infinite; }
.pipe .pl:nth-of-type(2)::after { animation-delay: .8s; } .pipe .pl:nth-of-type(3)::after { animation-delay: 1.6s; }
@keyframes pl-run { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pl::after { animation: none; display: none; } }
.pv-stack { position: relative; width: 150px; height: 130px; }
.pv-stack img { position: absolute; width: 86px; height: 104px; object-fit: cover; object-position: top; border-radius: var(--r-s); outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; box-shadow: 0 10px 20px -10px oklch(0.185 0.01 70 / .45); background: var(--card); }
.pv-stack img:nth-child(1) { left: 0; top: 14px; rotate: -8deg; }
.pv-stack img:nth-child(2) { left: 32px; top: 0; rotate: 2deg; z-index: 1; }
.pv-stack img:nth-child(3) { left: 64px; top: 18px; rotate: 9deg; width: 90px; height: 70px; }
.pv-note { position: relative; z-index: 2; margin-top: -30px; max-width: 170px; padding: 8px 10px; border-radius: 6px 6px 6px 2px; background: var(--signal-soft); color: var(--signal-ink); font-size: 13px; font-weight: 600; line-height: 1.3; box-shadow: 0 8px 16px -8px oklch(0.185 0.01 70 / .3); rotate: -2deg; }
.pn-you .pn-vis { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pv-win { width: 100%; max-width: 236px; border-radius: var(--r-m); overflow: hidden; background: var(--dark-2); box-shadow: 0 20px 36px -18px oklch(0.185 0.01 70 / .7), 0 0 0 1px oklch(0.185 0.01 70 / .1); text-align: left; font-size: 12.5px; line-height: 1.35; }
.pv-win p { margin: 0; padding: 0 12px; }
.pvw-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px !important; background: var(--dark-2); color: var(--on-dark-soft); font-weight: 600; }
.pvw-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--dark-mute); }
.pvw-bar span { margin-left: 6px; }
.pvw-you { margin: 12px 12px 8px !important; padding: 7px 10px !important; border-radius: var(--r-s); background: var(--dark-3); color: var(--on-dark); }
.pvw-ai, .pvw-ok { display: flex; align-items: center; gap: 6px; color: var(--on-dark-2); padding-bottom: 6px !important; }
.pvw-ok { color: var(--signal); padding-bottom: 14px !important; }
.pv-win .ic { width: 14px; height: 14px; flex: none; }
.pvw-ai .ic { color: var(--signal); }
.pv-tools { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 210px; display: grid; gap: 8px; }
.pv-tools li { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-s); background: var(--card); text-align: left; box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .06), 0 6px 14px -10px oklch(0.185 0.01 70 / .35); }
.pt-ic { grid-row: span 2; width: 34px; height: 34px; border-radius: var(--r-s); display: grid; place-items: center; color: var(--on-dark); }
.pt-ic .ic { width: 18px; height: 18px; }
.t-rem { background: var(--signal); } .t-ff { background: var(--ink); } .t-tts { background: var(--dark-mute); }
.pv-tools b { font-size: 14px; color: var(--ink); line-height: 1.2; }
.pv-tools small { font-size: 12.5px; color: var(--soft); line-height: 1.2; }
.pv-file { width: 100%; max-width: 200px; padding: 8px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .06), 0 20px 36px -18px oklch(0.185 0.01 70 / .45); text-align: left; }
.pvf-thumb { position: relative; border-radius: var(--r-s); overflow: hidden; aspect-ratio: 16 / 9; }
.pvf-thumb img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.pvf-thumb span { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: oklch(0.185 0.01 70 / .72); color: var(--on-dark); font-size: 12px; padding-left: 2px; }
.pv-file p { display: flex; flex-direction: column; padding: 8px 4px 2px; }
.pv-file b { font-size: 14px; color: var(--ink); }
.pv-file small { font-size: 12.5px; color: var(--soft); }

/* landscape map */
.land { margin-top: 112px; }
.land-root { display: flex; align-items: center; gap: 12px; width: fit-content; margin: 0 auto; padding: 10px 20px 10px 10px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-dark-2); box-shadow: 0 16px 30px -14px oklch(0.185 0.01 70 / .6); }
.lr-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: var(--ink); }
.lr-ic .ic { width: 18px; height: 18px; }
.land-root b { color: var(--on-dark); font-size: 16px; }
.land-root small { font-size: 14px; }
.land-branch { display: block; width: calc(100% - 33.3%); height: 44px; margin: 0 auto; overflow: visible; }
.land-branch path { fill: none; stroke: var(--signal-strong); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 5 5; }
.land-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lc { position: relative; display: flex; flex-direction: column; padding: 16px 20px 20px; border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .08), 0 18px 40px -30px oklch(0.185 0.01 70 / .35); }
.lc-us { box-shadow: 0 0 0 2px var(--signal-strong), 0 24px 50px -30px oklch(0.185 0.01 70 / .35); }
.lc-here { position: absolute; top: -13px; left: 50%; translate: -50% 0; padding: 4px 12px; border-radius: var(--r-pill); background: var(--signal); color: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.lc-vis { height: 112px; margin: 4px -4px 16px; border-radius: var(--r-m); background: var(--paper); display: flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden; }
.lc-us .lc-vis { background: linear-gradient(180deg, var(--paper), var(--paper)); }
.lc h4 { margin: 0 0 4px; font-size: 20px; color: var(--ink); letter-spacing: -0.015em; }
.lc > p { font-size: var(--t-small); line-height: 1.5; color: var(--text); margin-bottom: 12px; }
.lc-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lc-links li { border-bottom: 1px solid var(--line); }
.lc-links a { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 11px 26px 11px 0; text-decoration: none; }
.lc-links a::after { content: "↗"; position: absolute; right: 2px; top: 11px; color: var(--soft); font-size: 14px; transition: color .2s, translate .2s; }
.lc-links a:hover::after { color: var(--signal-ink); translate: 2px -2px; }
.lc-links b { font-size: var(--t-small); color: var(--ink); line-height: 1.35; }
.lc-links a:hover b { color: var(--signal-ink); }
.lc-links span { font-size: 13.5px; color: var(--soft); line-height: 1.4; }
.lc-note { margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--soft); }
/* mini illustrations */
.vc-card { width: 96px; padding: 10px; border-radius: var(--r-s); background: var(--dark-2); display: grid; gap: 6px; box-shadow: 0 10px 20px -10px oklch(0.185 0.01 70 / .6); }
.vc-card i { display: block; height: 5px; width: var(--w); border-radius: 3px; background: var(--dark-mute); }
.vc-card i.hot { background: var(--signal); }
.vc-arrow { color: var(--signal-ink); font-weight: 700; }
.vc-frame { width: 104px; aspect-ratio: 16 / 9; border-radius: var(--r-s); background: url(assets/case/carleton-v10.jpg) center / cover; display: grid; place-items: center; box-shadow: 0 10px 20px -10px oklch(0.185 0.01 70 / .5); outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.vc-frame span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: oklch(0.185 0.01 70 / .7); color: var(--on-dark); font-size: 12px; padding-left: 2px; }
.va-win { position: relative; width: 190px; padding: 8px; border-radius: var(--r-s); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .08), 0 10px 20px -12px oklch(0.185 0.01 70 / .4); display: grid; gap: 5px; }
.va-prev { height: 44px; border-radius: 6px; background: linear-gradient(135deg, var(--line), var(--paper-2)); }
.va-tr { position: relative; height: 10px; border-radius: 3px; background: var(--paper-2); }
.va-tr i { position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: 3px; background: var(--mute); }
.va-tr i.c2 { background: var(--signal-soft); } .va-tr i.c3 { background: var(--line-2); }
.va-cur { position: absolute; right: 30px; bottom: 2px; padding: 2px 7px; border-radius: 6px 6px 6px 0; background: var(--signal); color: var(--ink); font-size: 12px; font-weight: 800; }
.vg-frame { position: relative; width: 170px; aspect-ratio: 16 / 9; border-radius: var(--r-s); background: radial-gradient(circle at 70% 65%, #ffe3a3 0 12%, transparent 13%), linear-gradient(180deg, #5b3a8e, #ff7a8a 60%, #ffc07a); box-shadow: 0 10px 20px -10px rgba(91, 58, 142, .6); filter: saturate(1.1); }
.vg-frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; border-radius: 0 0 var(--r-s) var(--r-s); background: #2a1b4a; clip-path: polygon(0 40%, 14% 40%, 14% 10%, 22% 10%, 22% 40%, 40% 40%, 40% 0, 52% 0, 52% 40%, 70% 40%, 70% 20%, 84% 20%, 84% 40%, 100% 40%, 100% 100%, 0 100%); }
.vg-s { position: absolute; color: #fff; font-size: 14px; animation: vg-tw 2.4s ease-in-out infinite; }
.s1 { left: 12%; top: 14%; } .s2 { left: 46%; top: 8%; font-size: 10px; animation-delay: .8s; } .s3 { right: 10%; top: 22%; animation-delay: 1.6s; }
@keyframes vg-tw { 50% { opacity: .2; scale: .6; } }
@media (prefers-reduced-motion: reduce) { .vg-s { animation: none; } }

/* five words */
.words2 { margin-top: 96px; }
.words2 > .ch-label { text-align: center; margin-bottom: 18px; }
.words2 dl { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.w2 { padding: 12px 12px 18px; border-radius: var(--r-l); background: var(--paper); box-shadow: inset 0 0 0 1px oklch(0.185 0.01 70 / .05); }
.w2-vis { height: 84px; margin-bottom: 14px; border-radius: var(--r-s); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .06); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; overflow: hidden; }
.w2 dt, .w2 dd { padding: 0 6px; }
.w2 dt { font-weight: 700; color: var(--ink); font-size: var(--t-body); }
.w2 dd { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; }
.v-prompt span { padding: 7px 12px; border-radius: var(--r-m) var(--r-m) 4px var(--r-m); background: var(--signal); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.v-code2 code { background: var(--dark-2); color: var(--on-dark-2); padding: 8px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; }
.v-code2 code b { color: var(--on-dark-2); font-weight: 600; } .v-code2 code em { color: var(--signal); font-style: normal; }
.v-export { flex-direction: column; align-items: stretch; gap: 8px; }
.ve-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink); }
.ve-name .ic { width: 16px; height: 16px; color: var(--signal-ink); }
.ve-bar { height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; }
.ve-bar i { display: block; height: 100%; width: 72%; border-radius: 9px; background: var(--signal); }
.vs-card { display: grid; gap: 5px; width: 104px; padding: 8px 10px; border-radius: 8px; background: var(--card); box-shadow: 0 0 0 1px var(--line); rotate: -3deg; }
.vs-card b { font-size: 12px; color: var(--ink); }
.vs-card i { height: 4px; border-radius: 3px; background: var(--line); }
.vs-card i:nth-of-type(2) { width: 80%; } .vs-card i:nth-of-type(3) { width: 60%; }
.vt-aa { font-size: 20px; font-weight: 700; color: var(--ink); }
.vt-wave { display: flex; align-items: center; gap: 3px; height: 40px; }
.vt-wave i { width: 4px; border-radius: 3px; background: var(--signal); height: 30%; }
.vt-wave i:nth-child(3n) { height: 80%; } .vt-wave i:nth-child(4n+1) { height: 55%; } .vt-wave i:nth-child(5n+2) { height: 95%; }

@media (max-width: 980px) {
  .bg3 { padding: 88px 0 72px; }
  .duel-grid, .bestfor { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 1fr; gap: 0; }
  .pl { width: 2px; height: 36px; margin: 14px auto; background: var(--signal-strong); }
  .pl::before { right: auto; left: -4px; top: auto; bottom: -3px; border: 5px solid transparent; border-top: 7px solid var(--signal-strong); border-bottom: 0; }
  .pl::after { display: none; }
  .pn-vis { height: auto; min-height: 140px; }
  .land-branch { display: none; }
  .land-root { margin-bottom: 30px; }
  .land-cols { grid-template-columns: 1fr; gap: 30px; }
  .words2 dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .duel { padding: 8px; border-radius: var(--r-l); }
  .duel-ask p { font-size: 16px; border-radius: var(--r-m); }
  .way { padding: 12px; }
  .duel-btn { flex-direction: column; padding: 10px 10px 10px 10px; border-radius: var(--r-l); }
  .duel-btn > span { flex-direction: column; gap: 8px; }
  .bestfor { padding: 0; }
  .hood2 { padding: 40px 16px 28px; border-radius: var(--r-l); }
  .land-root { flex-wrap: wrap; border-radius: var(--r-l); }
  .words2 dl { grid-template-columns: 1fr; }
}

/* =========================================================
   kit v4: download panel with contents, first hour as mockups
   ========================================================= */
.box { gap: 20px; }
.box-cta { justify-content: center; gap: 16px; padding: 28px; background: radial-gradient(420px 260px at 85% 0%, oklch(0.86 0.165 92 / .22), transparent 70%), radial-gradient(420px 300px at 0% 100%, oklch(0.86 0.165 92 / .35), transparent 70%), var(--dark-2); box-shadow: 0 0 0 1px oklch(0.86 0.165 92 / .22), 0 30px 60px -30px oklch(0 0 0 / .6); }
.bc-label { display: flex; align-items: center; gap: 10px; font-size: var(--t-small); color: var(--signal-ink); }
.bc-label span { padding: 3px 10px; border-radius: var(--r-pill); background: var(--signal-soft); color: var(--signal-ink); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.kit-stats { list-style: none; margin: 0; padding: 14px 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid oklch(1 0 0 / .1); border-bottom: 1px solid oklch(1 0 0 / .1); }
.kit-stats li { display: flex; flex-direction: column; padding: 0 12px; font-size: 13.5px; color: var(--on-dark-soft); line-height: 1.3; }
.kit-stats li + li { border-left: 1px solid oklch(1 0 0 / .1); }
.kit-stats li:first-child { padding-left: 4px; }
.kit-stats b { font-size: 28px; font-weight: 650; color: var(--on-dark); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.dl-or { margin-top: 0; }

.hour2 { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 14px; }
.hour2 li { display: flex; flex-direction: column; padding: 10px 10px 20px; background: var(--dark-2); box-shadow: 0 0 0 1px var(--dark-line); border-radius: var(--r-l); }
.hour2 li::after { top: 72px; right: -15px; width: 22px; height: 22px; font-size: 12px; }
.hour2 li > b, .hour2 li > p { padding: 0 10px; }
.hour2 li > b { margin-top: 16px; font-size: var(--t-body); }
.hour2 li > p a { color: var(--signal); font-weight: 600; text-underline-offset: 3px; }
.hv { height: 150px; border-radius: var(--r-m); display: flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden; background: var(--dark); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .05); }
.hz { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hz .ic { width: 52px; height: 52px; padding: 12px; border-radius: var(--r-m); }
.hz-file .ic { background: var(--signal); color: var(--ink); }
.hz-folder .ic { background: var(--dark-line); color: var(--on-dark-2); }
.hz small { font: 500 var(--t-label) var(--mono); color: var(--on-dark-2); }
.hz-arrow { color: var(--signal); font-weight: 700; margin-bottom: 20px; }
.hva-win { width: 84%; border-radius: var(--r-s); overflow: hidden; background: var(--dark-2); box-shadow: 0 0 0 1px oklch(1 0 0 / .1), 0 14px 26px -14px oklch(0 0 0 / .8); font-size: 12.5px; }
.hva-win p { margin: 0; }
.hva-bar { display: flex; align-items: center; gap: 4px; padding: 7px 10px; background: var(--dark-3); color: var(--on-dark-soft); font-weight: 600; font-size: 12px; }
.hva-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--dark-mute); }
.hva-bar span { margin-left: 6px; }
.hva-path { display: flex; align-items: center; gap: 6px; padding: 10px 12px 6px; color: var(--on-dark); font: 500 var(--t-label) var(--mono); }
.hva-path .ic { width: 14px; height: 14px; color: var(--on-dark-2); }
.hva-model { display: flex; justify-content: space-between; margin: 4px 12px 12px !important; padding: 6px 10px; border-radius: 8px; background: oklch(0.86 0.165 92 / .16); color: var(--signal); font-weight: 650; box-shadow: inset 0 0 0 1px oklch(0.86 0.165 92 / .35); }
.hva-model span { color: var(--signal); }
.hvc-box { position: relative; width: 86%; padding: 12px 44px 12px 12px; border-radius: var(--r-m); background: var(--dark-2); box-shadow: 0 0 0 1px oklch(0.86 0.165 92 / .4); }
.hvc-box p { font-size: 12.5px; line-height: 1.45; color: var(--on-dark-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hvc-send { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: var(--ink); font-size: 14px; font-weight: 700; }
.hv-video { position: relative; padding: 0; background: oklch(0 0 0); }
.hv-video video { width: 100%; height: 100%; object-fit: cover; }
.hvv-tag { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 5px; padding: 3px 9px 3px 6px; border-radius: var(--r-pill); background: oklch(0.165 0.008 70 / .72); color: var(--on-dark); font: 500 var(--t-label) var(--mono); }
.hvv-tag .ic { width: 13px; height: 13px; }
@media (max-width: 980px) { .hour2 { grid-template-columns: 1fr 1fr; } .kit-stats b { font-size: 24px; } }
@media (max-width: 620px) {
  .hour2 { grid-template-columns: 1fr; }
  .kit-stats { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .kit-stats li:nth-child(3) { border-left: 0; padding-left: 4px; }
}
.box .tree { display: flex; flex-direction: column; justify-content: center; }
.t-exp .ic { color: var(--signal); }
.hv-video video { transform: none; }
.ws-badge { top: auto; bottom: 10px; }
@media (max-width: 980px) { .bestfor { row-gap: 32px; } .bf-mix { margin-top: 0; } }

/* =========================================================
   steps v4: every step is a poster
   ========================================================= */
.chapter, .chapter-alt, #step-4, #step-5, #step-6 { background: transparent; padding: 72px 0; }
.chapter:first-of-type { padding-top: 112px; }
.poster { --ph: var(--signal-ink); --ph2: var(--signal-ink); position: relative; isolation: isolate; overflow: hidden; padding: 52px 56px 26px; border-radius: var(--r-xl); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .06), 0 2px 4px oklch(0.185 0.01 70 / .03), 0 40px 90px -50px oklch(0.185 0.01 70 / .45); }
.poster[data-phase="draft"] { --ph: var(--signal-ink); --ph2: var(--signal-ink); }
.poster[data-phase="direct"] { --ph: var(--signal-ink); --ph2: var(--signal-ink); }
.poster[data-phase="finish"] { --ph: var(--signal-ink); --ph2: var(--signal-ink); }
.poster::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 360px at 100% 0%, color-mix(in srgb, var(--signal) 26%, transparent), transparent 70%),
    radial-gradient(520px 300px at 0% 100%, color-mix(in srgb, var(--signal) 9%, transparent), transparent 70%);
}
.po-bignum { position: absolute; z-index: -1; top: -0.2em; right: 28px; font-size: 300px; font-weight: 800; line-height: 1; letter-spacing: -0.07em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, color-mix(in srgb, var(--signal) 16%, transparent), transparent 80%); -webkit-background-clip: text; background-clip: text; color: transparent; pointer-events: none; user-select: none; }
.po-head { max-width: none; margin: 0 0 40px; text-align: left; }
.po-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.po-head .ch-step { margin: 0; gap: 10px; font-size: 14px; }
.po-head .ch-n { width: 36px; height: 36px; border-radius: var(--r-s); background: var(--signal); box-shadow: 0 8px 18px -8px oklch(0.185 0.01 70 / .35); }
.po-head .ch-step b { font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--signal-ink); }
.po-head .ch-step b + span::before { content: "·"; margin-right: 10px; color: var(--mute); }
.po-rail { display: none; } /* the deck bar already shows position */
.po-rail li { width: 18px; height: 4px; border-radius: 4px; background: var(--line); }
.po-rail li.past { background: color-mix(in srgb, var(--signal) 35%, var(--line)); }
.po-rail li.on { width: 40px; background: var(--signal); }
.po-head h2 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.05em; line-height: 1.02; }
.po-head h2 span { display: block; }
.po-head h2 span + span { background: var(--signal); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.po-head h2 span:only-child { color: var(--ink); }
@media (min-width: 900px) { .po-head h2 span { white-space: nowrap; } }
.po-head .ch-sub { margin-top: 18px; max-width: 700px; font-size: 20px; color: var(--text); }
.poster .ch-visual, .poster .ladder { margin-bottom: 0; }
.po-foot { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px 40px; align-items: center; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.po-foot .ch-joe { margin: 0; max-width: none; justify-content: flex-start; font-size: var(--t-body); }
.po-foot .ch-joe img { width: 40px; height: 40px; }
.po-foot .ch-joe span::before { display: block; content: "What I did"; margin-bottom: 4px; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--signal-ink); }
.po-foot .ch-done { align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--t-small); line-height: 1.45; }
.po-foot .ch-done .ic { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--signal); color: var(--ink); }
.po-foot .ch-done b { display: block; margin: 0 0 2px; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.po-sign { display: flex; justify-content: space-between; margin-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.poster ~ .vague, .poster ~ .craft { margin-top: 28px; }
.poster ~ .ch-do { margin-top: 18px; }
.chapter .ch-do .ch-act { max-width: 1040px; margin: 0 auto; }
@media (max-width: 980px) {
  .poster { padding: 36px 28px 22px; border-radius: var(--r-l); }
  .po-bignum { font-size: 200px; }
  .po-foot { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .chapter, .chapter-alt, #step-4, #step-5, #step-6 { padding: 44px 0; }
  .poster { padding: 26px 18px 18px; border-radius: var(--r-l); margin-inline: -8px; }
  .po-bignum { font-size: 140px; right: 12px; }
  .po-rail { display: none; }
  .po-head { margin-bottom: 28px; }
  .po-head h2 { font-size: 38px; }
  .po-head .ch-sub { font-size: var(--t-body); }
  .po-foot { margin-top: 28px; }
}
.support-credit { margin-top: 10px; font-size: 13.5px; color: var(--soft); }

/* light starfield (ported from hubeiqiao.com): fixed behind the light sections */
body { isolation: isolate; }
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, var(--card) 30%, var(--paper-2) 80%, var(--line) 100%); }
.sky canvas { display: block; width: 100%; height: 100%; }
.sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 80% at 50% 48%, oklch(0.985 0.01 88 / .55) 30%, transparent 100%); }
.bg3, .before, .bonus, .lessons, .origin2, .method, .support { background: transparent !important; }
/* poster: numeral fully in view, rail beside the step label */
.po-bignum { top: 18px; right: 40px; font-size: 230px; }
.po-top { justify-content: flex-start; gap: 18px; }
@media (max-width: 620px) { .po-bignum { top: 10px; right: 14px; font-size: 120px; } }

/* headlines: one line on wide screens, or break only between sentences */
.section-head:has(h2.one), .kit-head:has(h2.one), .h2-head:has(h3.one) { max-width: none; }
h2.one { font-size: clamp(32px, 3.5vw, 52px); }
@media (min-width: 1000px) { h2.one, h3.one { white-space: nowrap; } }
#lottery h3 span, .support h2 span { display: block; }
@media (min-width: 1000px) { #lottery h3 span, .support h2 span { white-space: nowrap; } }
.support h2 { max-width: none; }

/* films band: everyday edits, playable */
.also-everyday { margin-top: 48px; }
.ev-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
.ev-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 16px; }
.ev-card .launch-player { margin: 0; }
.lp-vertical { width: 170px; }
.lp-vertical video { aspect-ratio: 9 / 16; object-fit: cover; }
.lp-43 { width: 250px; }
.lp-43 video { aspect-ratio: 4 / 3; object-fit: cover; }
.ev-body { display: flex; flex-direction: column; gap: 6px; }
.ev-body h3 { padding: 0; }
.ev-body .meta { margin: 0 0 4px; }
.ev-body p:last-child { font-size: var(--t-small); line-height: 1.5; color: var(--on-dark-2); }
.ev-tag { align-self: flex-start; padding: 3px 10px; border-radius: var(--r-pill); background: oklch(1 0 0 / .08); color: var(--signal); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 1100px) { .ev-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .ev-card { grid-template-columns: 1fr; } .lp-vertical { width: min(260px, 100%); margin-inline: auto !important; } .lp-43 { width: 100%; } }

/* how it started: five videos, three assistants, one method */
.origin3 { padding: 120px 0 96px; }
.o3-head { text-align: center; margin: 0 auto 48px; }
.o3-head > p:last-child { max-width: 640px; margin: 0 auto; }
.o3 { position: relative; padding: 28px 28px 24px; border-radius: var(--r-xl); background: oklch(1 0 0 / .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .06), 0 40px 90px -50px oklch(0.185 0.01 70 / .4); }
.o3-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr) 1.35fr; gap: 14px; position: relative; }
.o3-track::before { content: ""; position: absolute; left: 12px; right: 12px; top: 66px; height: 2px; background: var(--line); }
.o3-track li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 16px; border-radius: var(--r-l); }
.o3-now { background: linear-gradient(180deg, var(--signal-soft), var(--card)); box-shadow: 0 0 0 2px var(--signal-strong), 0 20px 40px -26px oklch(0.52 0.105 80 / .8); }
.o3-when { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.o3-now .o3-when { color: var(--signal-ink); }
.o3-tool { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 40px; }
.o3-mono { width: 40px; height: 40px; flex: none; border-radius: var(--r-s); display: grid; place-items: center; background: var(--c); color: var(--on-dark); font-size: 14px; font-weight: 800; letter-spacing: -0.02em; box-shadow: 0 0 0 4px var(--card), 0 8px 18px -8px oklch(0.185 0.01 70 / .35); }
.o3-tool b { font-size: 18px; color: var(--ink); letter-spacing: -0.015em; }
.o3-tool em { flex-basis: 100%; margin: -4px 0 0 50px; font-style: normal; font-size: 13.5px; font-weight: 650; color: var(--c); }
.o3-film { margin: 4px 0 0; }
.o3-film img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-s); outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; box-shadow: 0 10px 22px -14px oklch(0.185 0.01 70 / .5); }
.o3-pair { display: grid; grid-template-columns: .62fr 1fr; gap: 8px; }
.o3-pair img { aspect-ratio: auto; height: 132px; }
.o3-pair figcaption { grid-column: 1 / -1; }
.o3-film figcaption { margin-top: 8px; font-size: 14.5px; font-weight: 650; color: var(--ink); }
.o3-note { font-size: 14.5px; line-height: 1.45; color: var(--text); }
.o3-constant { display: grid; gap: 8px; margin-top: 18px; }
.o3-bar { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r-m); background: var(--ink); color: var(--on-dark-2); font-size: var(--t-small); }
.o3-bar span { min-width: 108px; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.o3-bar b { color: var(--on-dark); font-size: var(--t-body); }
.o3-engine { background: linear-gradient(90deg, var(--dark-2), var(--dark-2)); }
.o3-foot { margin-top: 18px; text-align: center; font-size: 16px; color: var(--soft); }
@media (max-width: 1100px) {
  .o3-track { grid-template-columns: repeat(2, 1fr); }
  .o3-track::before { display: none; }
  .o3-now { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .origin3 { padding: 72px 0 56px; }
  .o3 { padding: 14px; border-radius: var(--r-l); }
  .o3-track { grid-template-columns: 1fr; }
}
.o3-tool { min-height: 64px; align-content: flex-start; }
.o3-tool b { position: relative; padding-right: 8px; background: var(--card); }
.o3-now .o3-tool b { background: var(--signal-soft); }
.o3 { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 620px) { .po-head h2 { font-size: 34px; } .o3-tool { min-height: 0; } }

/* films v5 rules moved into the v8 films + theater block at the end of this file */

/* steps: Your turn folds into one bar under the poster */
.chapter .ch-do { max-width: 1040px; margin: 16px auto 0; }
.yt { border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .07), 0 16px 40px -30px oklch(0.185 0.01 70 / .4); }
.yt > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; border-radius: var(--r-l); }
.yt > summary::-webkit-details-marker { display: none; }
.yt > summary:hover { background: var(--card); }
.yt-ic { width: 30px; height: 30px; border-radius: var(--r-s); display: grid; place-items: center; background: var(--signal-soft); color: var(--signal-ink); }
.yt-ic .ic { width: 16px; height: 16px; }
.yt > summary b { color: var(--ink); font-size: 16px; }
.yt-sub { color: var(--soft); font-size: var(--t-small); }
.yt-count { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--signal-ink); font-variant-numeric: tabular-nums; }
.yt-count:empty { display: none; }
.yt > summary em { font-style: normal; font-size: 14px; font-weight: 650; color: var(--signal-ink); }
.yt-count:empty + em { margin-left: auto; }
.yt[open] > summary em { font-size: 0; } .yt[open] > summary em::after { content: "Close"; font-size: 14px; }
.yt .ch-act, .chapter-alt .yt .ch-act { padding: 4px 18px 18px; border-radius: 0; background: none; box-shadow: none; }
@media (max-width: 620px) { .yt-sub { display: none; } }

/* basics: best-for inside each way, deeper material in tabs */
.way-best { font-size: 14.5px; line-height: 1.45; color: var(--soft); text-align: center; padding-top: 12px; border-top: 1px solid var(--line); }
.way-best b { color: var(--ink); margin-right: 4px; }
.way-code .way-best b { color: var(--signal-ink); }
.duel-mix { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 56px auto 0; font-size: 16px; color: var(--text); }
.duel-mix .ic { width: 20px; height: 20px; color: var(--signal-ink); flex: none; }
.duel-mix b { color: var(--ink); }
.bgtabs { margin-top: 64px; }
.bgt-bar { display: flex; justify-content: center; gap: 4px; width: fit-content; margin: 0 auto 28px; padding: 5px; border-radius: var(--r-pill); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .08), 0 10px 30px -20px oklch(0.185 0.01 70 / .4); }
.bgt-bar button { padding: 10px 18px; border: 0; border-radius: var(--r-pill); background: none; color: var(--soft); font-size: var(--t-small); font-weight: 650; transition: background-color .2s, color .2s, scale .15s; }
.bgt-bar button:hover { color: var(--ink); }
.bgt-bar button:active { scale: .96; }
.bgt-bar button[aria-selected="true"] { background: var(--ink); color: var(--on-dark); }
.bgtabs .hood2, .bgtabs .land, .bgtabs .words2 { margin-top: 0; }
.bgtabs [role="tabpanel"][hidden] { display: none; }
.bgtabs [role="tabpanel"] { animation: bgt-in .35s cubic-bezier(.2, 0, 0, 1); }
@keyframes bgt-in { from { opacity: 0; translate: 0 8px; } }
@media (prefers-reduced-motion: reduce) { .bgtabs [role="tabpanel"] { animation: none; } }
.bgtabs .words2 { padding: 32px 28px; border-radius: var(--r-xl); background: oklch(1 0 0 / .8); box-shadow: inset 0 0 0 1px oklch(0.185 0.01 70 / .06); }
@media (max-width: 620px) { .bgt-bar { width: 100%; } .bgt-bar button { flex: 1; padding: 9px 8px; font-size: 13.5px; } .duel-mix { align-items: flex-start; text-align: left; } }

/* =========================================================
   steps deck: one poster at a time
   ========================================================= */
.deck { position: relative; padding: 48px 0 64px; }
.deck-bar { position: sticky; top: 88px; z-index: 30; pointer-events: none; }
.deck-bar-in { pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: var(--r-pill); background: oklch(1 0 0 / .86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .08), 0 18px 40px -24px oklch(0.185 0.01 70 / .45); }
.deck-arrow { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); transition: background-color .2s, scale .15s; }
.deck-arrow:hover { background: var(--line); } .deck-arrow:active { scale: .96; }
.deck-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.deck-pills { flex: 1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.deck-pills::-webkit-scrollbar { display: none; }
.deck-pills button { --ph: var(--signal-ink); --ph2: var(--signal-ink); flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: none; color: var(--soft); font-size: 14px; font-weight: 650; white-space: nowrap; transition: background-color .25s, color .25s, scale .15s; }
.deck-pills [data-phase="draft"] { --ph: var(--signal-ink); --ph2: var(--signal-ink); }
.deck-pills [data-phase="direct"] { --ph: var(--signal-ink); --ph2: var(--signal-ink); }
.deck-pills [data-phase="finish"] { --ph: var(--signal-ink); --ph2: var(--signal-ink); }
.deck-pills button:hover { color: var(--ink); background: oklch(0.185 0.01 70 / .04); }
.deck-pills button:active { scale: .96; }
.deck-pills i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12.5px; font-weight: 750; background: var(--paper-2); color: var(--ink); transition: background-color .25s, color .25s; }
.deck-pills button.is-past i { background: color-mix(in srgb, var(--signal) 18%, var(--card)); color: var(--signal-ink); }
.deck-pills button[aria-selected="true"] { background: var(--signal); color: var(--on-dark); box-shadow: 0 8px 20px -10px oklch(0.185 0.01 70 / .35); }
.deck-pills button[aria-selected="true"] i { background: oklch(1 0 0 / .25); color: var(--on-dark); }
.deck-track { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; transition: height .45s cubic-bezier(.2, 0, 0, 1); }
.deck-track::-webkit-scrollbar { display: none; }
.deck-track > section { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; padding: 28px 0 8px !important; }
.deck-track > section:not(.is-current) .poster { opacity: .4; scale: .97; }
.deck-track > section .poster { transition: opacity .4s, scale .5s cubic-bezier(.2, 0, 0, 1); }
.deck-next { display: flex; align-items: center; gap: 12px; margin: 18px auto 0; padding: 12px 16px 12px 22px; border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--on-dark); box-shadow: 0 16px 30px -14px oklch(0.185 0.01 70 / .6); transition: background-color .2s, scale .15s; }
.deck-next:hover { background: var(--dark-3); } .deck-next:active { scale: .96; }
.deck-next span { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--signal); }
.deck-next b { font-size: 16px; }
.deck-next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 980px) {
  .deck-pills button span { display: none; }
  .deck-pills button[aria-selected="true"] span { display: inline; }
}
@media (max-width: 620px) {
  .deck-bar { top: 72px; }
  .deck-bar-in { gap: 2px; padding: 4px; }
  .deck-arrow { width: 36px; height: 36px; }
  .deck-pills button { height: 36px; padding: 0 8px; flex: 0 0 auto; }
  .deck { padding: 28px 0 40px; }
}
.poster.is-entering { animation: deck-in .5s cubic-bezier(.2, 0, 0, 1); }
@keyframes deck-in { from { opacity: 0; translate: var(--from, 40px) 0; } }


/* =========================================================
   v6: warm editorial system. Paper, ink, one burnt-orange accent.
   No gradient text, no coloured glows, no violet.
   ========================================================= */
:root {
  --r-s: 10px; --r-m: 16px; --r-l: 24px; --r-xl: 32px; --r-pill: 999px;
  --section-y: clamp(72px, 9vw, 120px);
}
body { font-family: var(--sans); font-feature-settings: normal; color: var(--text); }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; }
code, .tree, .hz small, .hva-path, .hvv-tag, .o3-when, .th-time, .tlm-ruler { font-family: var(--mono); }

/* emphasis is a serif italic, never a gradient */
.recap2 h2 .rc-grad, .tt-now b, .po-head h2 span + span, .o3-now .o3-tool em {
  background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  -webkit-text-fill-color: currentColor; animation: none !important;
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
}
.recap2 h2 .rc-grad { color: var(--signal); font-size: 1.08em; }
.po-head h2 span + span { color: var(--signal-ink); font-size: 1.1em; line-height: .95; }
.tt-now b { color: var(--signal-ink); }

/* labels: small mono caps, like a slate */
.eyebrow, .ch-label, .route-tag, .ls-tag, .o3-when, .also-label, .dl-or, .bf p { font-family: var(--mono); font-size: 15px !important; font-weight: 600; letter-spacing: .1em; }
.eyebrow { color: var(--signal-ink); }
.eyebrow-light { color: var(--signal); }

/* every phase uses the same accent; the label carries the difference */
.poster, .poster[data-phase], .deck-pills button, .deck-pills [data-phase] { --ph: var(--signal-ink); --ph2: var(--signal-ink); }
.poster::before { background: none !important; }
.po-bignum { background: none !important; -webkit-text-fill-color: currentColor; color: oklch(0.185 0.01 70 / .055); font-family: var(--serif); font-weight: 400; letter-spacing: -0.04em; font-size: 280px; top: -10px; }
.po-head .ch-n { background: var(--ink); box-shadow: none; }
.po-rail li.on { background: var(--signal); }
.po-rail li.past { background: var(--line-2); }
.po-head .ch-step b { color: var(--signal-ink); font-family: var(--mono); font-size: 12px; }
.deck-pills button[aria-selected="true"] { background: var(--ink); color: var(--on-dark); box-shadow: none; }
.deck-pills button.is-past i { background: var(--signal-soft); color: var(--signal-ink); }

/* how it started: monograms in ink, only "now" in the accent */
.o3-mono { background: var(--ink); box-shadow: 0 0 0 4px var(--card); }
.o3-now .o3-mono { background: var(--signal); }
.o3-track::before { background: var(--line); opacity: 1; }
.o3-tool em { color: var(--soft); font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.o3-now { background: var(--signal-soft); box-shadow: 0 0 0 1.5px var(--signal-strong); }
.o3-now .o3-when { color: var(--signal-ink); }
.o3-now .o3-tool b { background: var(--signal-soft); }
.o3-bar span { color: var(--signal); font-family: var(--mono); }
.o3-engine { background: var(--dark-3); }

/* dark panels: flat warm surfaces, no colour washes */
.box-cta { background: var(--dark-2) !important; box-shadow: 0 0 0 1px oklch(1 0 0 / .08) !important; }
.kit2, .recap2 { background: var(--dark) !important; }
.film-band, .shelf-band { background: var(--dark) !important; }
.truths { background: var(--dark) !important; }
.btn, .btn-big { box-shadow: none; }
.nav-pill .btn, .btn-small { box-shadow: none; }
.timechart li:nth-child(1) .tc-bar i, .timechart li:nth-child(2) .tc-bar i { background: var(--dark-mute); } .timechart li:nth-child(3) .tc-bar i { background: var(--mid); } .timechart li:nth-child(n+4) .tc-bar i { background: var(--signal); }

/* replay: moved to the "v12 replay" block at the end of this file */

/* lessons: rules from the source files */
.rules { margin-top: 28px; padding: 26px 28px; border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .07); }
.rules > .ch-label { margin-bottom: 8px; }
.rules ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 6px 18px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.rules li:first-child { border-top: 0; }
.rules li::before { content: counter(r, decimal-leading-zero); font: 500 13px var(--mono); color: var(--signal-ink); }
.rules b { color: var(--ink); font-size: var(--t-body); line-height: 1.35; }
.rules span { font-size: var(--t-small); line-height: 1.5; color: var(--text); }
.rules em { font: 500 var(--t-label) var(--mono); font-style: normal; letter-spacing: .04em; color: var(--soft); white-space: nowrap; }
@media (max-width: 900px) { .rules li { grid-template-columns: 32px 1fr; } .rules span, .rules em { grid-column: 2; } }
@media (max-width: 620px) { .rules { padding: 18px 16px; } }
.rules li { grid-template-columns: 40px 330px minmax(0, 1fr) 170px; }
.rules em { text-align: right; white-space: normal; }
@media (max-width: 1100px) { .rules li { grid-template-columns: 32px 1fr; } .rules span, .rules em { grid-column: 2; } .rules em { text-align: left; } }

/* ending: recap, support and the footer read as one dark closing sequence */
.support { background: var(--dark) !important; padding: 0 0 88px; }
.support-in { background: var(--dark-2); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .08); border-radius: var(--r-l); padding: 32px 36px; }
.support .eyebrow { color: var(--signal); }
.support h2 { color: var(--on-dark); }
.support h2 span + span { color: var(--on-dark-2); font-weight: 600; }
.support p, .support p:last-child { color: var(--on-dark-soft); }
.support-credit { color: var(--on-dark-soft) !important; }
.support-btn { box-shadow: none; }
.story-footer { border-top: 1px solid oklch(1 0 0 / .06) !important; }
.story-footer .footer-photo { -webkit-mask-image: linear-gradient(180deg, transparent 0, oklch(0 0 0) 180px); mask-image: linear-gradient(180deg, transparent 0, oklch(0 0 0) 180px); }
.story-footer { background: var(--dark) !important; border-top: 0 !important; }
.support { background: var(--dark) !important; }
.po-head h2:focus { outline: none; }

/* =========================================================
   v7 global system: one rhythm, one accent, one dark, sentence headlines
   Tokens live in the v6 :root above (--r-*, --section-y, --dark, --dark-2).
   ========================================================= */
/* section rhythm: every band uses the token; neighbours of the same tone share one gap */
main > section:not(.hero), main > .deck { padding-top: var(--section-y); padding-bottom: var(--section-y); }
main > section:not([data-dark]) + section:not([data-dark]),
main > section:not([data-dark]) + .deck,
main > .deck + section:not([data-dark]),
main > section[data-dark]:not(.hero) + section[data-dark] { padding-top: 0; }

/* eyebrows: accent on paper, light accent on every dark band */
.eyebrow { color: var(--signal-ink); }
[data-dark] .eyebrow, .eyebrow-light { color: var(--signal); }
.h2-head > .ch-label { color: var(--signal-ink); }

/* headlines: each sentence is its own block; on wide screens a sentence never wraps */
h1, h2, h3 { text-wrap: balance; }
main :is(h2, h3) > span { display: block; }
@media (min-width: 1000px) {
  main :is(h2, h3) > span { white-space: nowrap; }
  main :is(h2, h3).one > span { display: inline; }
}

/* posters: the deck bar carries position, so no big numeral on small screens */
@media (max-width: 768px) { .po-bignum { display: none; } }

/* =========================================================
   v8 films + theater
   The films band (#film): five cinematic stills, a legibility
   system (eased scrim + progressive blur) so card text never
   fights text burned into a frame, hover/focus loops that
   crossfade in only once they play. The theater (#theater):
   the screen, controls and chapters travel as one cluster.
   ========================================================= */
.shelf-head { display: grid; grid-template-columns: auto 1fr; gap: 16px 56px; align-items: end; margin-bottom: 36px; }
.shelf-head h2 { color: var(--on-dark); }
.shelf-head > p { max-width: 440px; justify-self: end; color: var(--on-dark-soft); font-size: var(--t-body); text-wrap: pretty; }

.shelf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, 264px); gap: 16px; }
.fc-stripe { grid-column: 1 / 7; grid-row: 1 / 3; }
.fc-intro { grid-column: 7 / 10; grid-row: 1; }
.fc-oinp { grid-column: 10 / 13; grid-row: 1; }
.fc-blizz { grid-column: 7 / 10; grid-row: 2; }
.fc-wissal { grid-column: 10 / 13; grid-row: 2; }

.fcard {
  --pos: 50% 50%; --vpos: 50% 50%; --blur-h: 52%;
  position: relative; display: block; min-width: 0; overflow: hidden; isolation: isolate;
  padding: 0; border: 0; border-radius: var(--r-l); background: var(--dark-2); color: var(--on-dark); text-align: left;
  box-shadow: 0 0 0 1px oklch(1 0 0 / .07), 0 30px 60px -32px oklch(0 0 0 / .85);
  transition: box-shadow .35s, translate .45s cubic-bezier(.2, 0, 0, 1), scale .15s;
}
.fcard:active { scale: .985; }
.fcard:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: var(--r-l); }
.fc-still, .fcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s cubic-bezier(.2, 0, 0, 1), opacity .5s ease; }
.fc-still { z-index: 1; object-position: var(--pos); }
.fcard video { z-index: 0; object-position: var(--vpos); }
.fcard.is-playing .fc-still { opacity: 0; }
/* legibility: a frosted band that melts into the frame, then an eased scrim on top */
.fcard::after {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: var(--blur-h); pointer-events: none;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, oklch(0 0 0) 55%); mask-image: linear-gradient(180deg, transparent 0%, oklch(0 0 0) 55%);
}
.fcard::before {
  content: ""; position: absolute; z-index: 3; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, oklch(0.165 0.008 70 / .5) 0%, oklch(0.165 0.008 70 / .18) 14%, transparent 28%),
    linear-gradient(180deg, transparent 36%, oklch(0.165 0.008 70 / .08) 46%, oklch(0.165 0.008 70 / .3) 58%, oklch(0.165 0.008 70 / .62) 72%, oklch(0.165 0.008 70 / .84) 86%, oklch(0.165 0.008 70 / .92) 100%);
}
.fc-top { position: absolute; z-index: 4; top: 14px; left: 14px; right: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none; }
.fc-tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.fc-tags em, .fc-dur {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font: 500 var(--t-label)/1 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: var(--on-dark); background: oklch(0.165 0.008 70 / .52); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.fc-kind::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fc-kind.is-launch::before { background: var(--signal); }
.fc-kind.is-every::before { background: var(--line-2); }
.fc-case { color: var(--ink) !important; background: var(--card) !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.fc-dur { flex: none; gap: 5px; padding: 0 10px 0 9px; font-variant-numeric: tabular-nums; letter-spacing: .02em; transition: background-color .25s, color .25s; }
.fc-dur svg { width: 10px; height: 10px; fill: currentColor; transition: fill .25s; }
.fc-info { position: absolute; z-index: 4; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.fc-title { display: block; font-size: 19px; font-weight: 650; line-height: 1.18; letter-spacing: -0.015em; color: var(--on-dark); text-wrap: balance; }
.fc-note { display: block; max-width: 38ch; margin: 2px 0 4px; font-size: var(--t-small); line-height: 1.45; color: oklch(1 0 0 / .82); text-wrap: pretty; }
.fc-meta { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.35; color: oklch(1 0 0 / .68); text-wrap: balance; }
.fc-stripe { --blur-h: 36%; }
.fc-stripe .fc-info { left: 28px; right: 28px; bottom: 26px; }
.fc-stripe .fc-top { top: 18px; left: 18px; right: 18px; }
.fc-stripe .fc-title { font-size: 34px; line-height: 1.04; letter-spacing: -0.03em; }
.fc-stripe { --vpos: 100% 50%; }
.fc-oinp { --pos: 30% 50%; }
.fc-blizz { --pos: 50% 30%; --vpos: 50% 38%; }
@media (hover: hover) and (pointer: fine) {
  .fcard:hover { translate: 0 -3px; box-shadow: 0 0 0 1.5px var(--signal), 0 40px 70px -30px oklch(0 0 0 / .9); }
  .fcard:hover .fc-still, .fcard:hover video { scale: 1.035; }
  .fcard:hover .fc-dur { background: var(--card); color: var(--ink); box-shadow: none; }
  .fcard:hover .fc-dur svg { fill: var(--signal); }
}
.fcard:focus-visible .fc-dur { background: var(--card); color: var(--ink); box-shadow: none; }
.fcard:focus-visible .fc-dur svg { fill: var(--signal); }
@media (max-width: 1100px) {
  .shelf { grid-template-rows: repeat(2, 250px); gap: 14px; }
  .fc-title { font-size: 17.5px; }
  .fc-meta { font-size: 13px; }
  .fc-info { left: 16px; right: 16px; bottom: 16px; }
  .fc-top { top: 12px; left: 12px; right: 12px; }
  .fc-stripe .fc-title { font-size: 30px; }
}
@media (min-width: 981px) and (max-width: 1100px) { .fc-stripe .fc-note { display: none; } }
@media (max-width: 980px) {
  .shelf-head { grid-template-columns: 1fr; }
  .shelf-head > p { justify-self: start; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .shelf > .fcard { grid-column: auto; grid-row: auto; aspect-ratio: 3 / 2; }
  .shelf > .fc-stripe { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .fc-blizz { --pos: 50% 32%; }
  /* the hero card becomes a letterbox: the full frame, then the title on the film's own black */
  .shelf > .fc-stripe { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--dark); }
  .fc-stripe video { position: relative; inset: auto; flex: none; height: auto; aspect-ratio: 16 / 9; }
  .fc-stripe .fc-still { bottom: auto; height: auto; aspect-ratio: 16 / 9; }
  .fc-stripe .fc-still, .fc-stripe video { -webkit-mask-image: linear-gradient(180deg, oklch(0 0 0) 78%, transparent); mask-image: linear-gradient(180deg, oklch(0 0 0) 78%, transparent); }
  .fc-stripe::after { display: none; }
  .fc-stripe::before { background: linear-gradient(180deg, oklch(0.165 0.008 70 / .5) 0%, transparent 16%); }
  .fc-stripe .fc-info { position: relative; left: auto; right: auto; bottom: auto; padding: 4px 24px 24px; }
}
@media (max-width: 620px) {
  .shelf-head { margin-bottom: 24px; }
  .shelf { gap: 10px; }
  .fcard { --blur-h: 62%; border-radius: var(--r-m); }
  .fcard:focus-visible { border-radius: var(--r-m); outline-offset: 3px; }
  .shelf > .fcard:not(.fc-stripe) { aspect-ratio: 4 / 5; }

  .fc-top, .fc-stripe .fc-top { top: 10px; left: 10px; right: 10px; gap: 6px; }
  .fc-tags em, .fc-dur { height: 24px; padding: 0 7px; gap: 5px; letter-spacing: .03em; }
  .fc-kind::before { width: 5px; height: 5px; }
  .fc-dur svg { width: 9px; height: 9px; }
  .fc-info { left: 12px; right: 12px; bottom: 12px; gap: 3px; }
  .fc-stripe .fc-info { padding: 2px 16px 16px; }
  .fc-title { font-size: 16px; line-height: 1.2; }
  .fc-stripe .fc-title { font-size: 25px; }
  .fc-note { font-size: 14px; margin: 1px 0 3px; }
  .fc-meta { font-size: 12.5px; line-height: 1.3; }
}

/* theater */
html.th-open { overflow: hidden; }
.theater { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.theater[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.theater::backdrop { background: oklch(0.165 0.008 70 / .9); }
.theater :focus-visible { outline-color: var(--signal); }
.th-glow { position: absolute; inset: -12%; width: 124%; height: 124%; z-index: 0; filter: blur(90px) saturate(.7); opacity: .16; pointer-events: none; transition: opacity .6s; }
.theater > :not(.th-glow) { position: relative; z-index: 1; }
.th-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 22px 28px 6px; }
.th-title { min-width: 0; }
.th-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.th-line em { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font: 500 var(--t-label)/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); background: oklch(0.86 0.165 92 / .1); box-shadow: inset 0 0 0 1px oklch(0.86 0.165 92 / .22); }
.th-line span { font: 500 var(--t-label)/1.45 var(--mono); letter-spacing: .01em; color: oklch(1 0 0 / .56); }
.th-name { margin: 0; color: var(--on-dark); font-size: 26px; font-weight: 650; line-height: 1.1; letter-spacing: -0.025em; }
.th-story { margin-top: 8px; max-width: 64ch; font-size: var(--t-small); line-height: 1.5; color: oklch(1 0 0 / .7); text-wrap: balance; }
.th-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: oklch(1 0 0 / .1); color: var(--on-dark); transition: background-color .2s, scale .15s; }
.th-x:hover { background: oklch(1 0 0 / .2); } .th-x:active { scale: .96; }
.th-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* one cluster: screen, controls and chapters sized together and centred as a group */
.th-stage {
  --below: 52px;
  --sw: min(100cqw, (100cqh - var(--below)) * var(--ar, 1.7778));
  container-type: size; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 10px 28px;
}
.theater.has-chapters .th-stage { --below: 100px; }
.th-screen { position: relative; flex: none; width: var(--sw); aspect-ratio: var(--ar, 1.7778); border-radius: var(--r-m); overflow: hidden; background: oklch(0 0 0); box-shadow: 0 0 0 1px oklch(1 0 0 / .1), 0 50px 120px -30px oklch(0 0 0 / .9); view-transition-name: th-screen; }
.th-screen video { width: 100%; height: 100%; object-fit: contain; display: block; }
.th-big { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border: 0; border-radius: 50%; display: grid; place-items: center; background: oklch(1 0 0 / .94); box-shadow: 0 20px 50px -10px oklch(0 0 0 / .7); transition: opacity .25s, scale .25s cubic-bezier(.2, 0, 0, 1); }
.th-big svg { width: 30px; fill: var(--signal); margin-left: 5px; }
.theater.is-playing .th-big { opacity: 0; scale: .8; pointer-events: none; }
.th-controls, .th-chapters { flex: none; width: min(100cqw, max(640px, var(--sw))); }
.th-controls { display: flex; align-items: center; gap: 12px; }
.th-btn { width: 40px; height: 40px; flex: none; border: 0; border-radius: var(--r-s); display: grid; place-items: center; background: oklch(1 0 0 / .08); color: var(--on-dark); transition: background-color .2s, scale .15s; }
.th-btn:hover { background: oklch(1 0 0 / .16); } .th-btn:active { scale: .96; }
.th-btn svg { width: 20px; height: 20px; fill: currentColor; }
[data-th-mute] svg, [data-th-full] svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[data-th-mute] svg path:first-child { fill: currentColor; }
.theater.is-muted .th-wave { opacity: .25; }
.th-btn .i-pause, .theater.is-playing [data-th-toggle] .i-play { display: none; }
.theater.is-playing [data-th-toggle] .i-pause { display: block; }
.th-time { font: 500 var(--t-label)/1 var(--mono); font-variant-numeric: tabular-nums; color: oklch(1 0 0 / .7); min-width: 38px; }
#th-dur { text-align: right; }
.th-track { position: relative; flex: 1; height: 26px; cursor: pointer; touch-action: none; border-radius: var(--r-s); }
.th-track::before, .th-buf, .th-fill { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 9px; transition: height .15s, margin-top .15s; }
.th-track::before { background: oklch(1 0 0 / .14); }
.th-buf { background: oklch(1 0 0 / .22); transform: scaleX(0); transform-origin: left; }
.th-fill { background: var(--signal); transform: scaleX(0); transform-origin: left; }
.th-track:hover::before, .th-track:hover .th-buf, .th-track:hover .th-fill, .th-track:focus-visible::before, .th-track:focus-visible .th-buf, .th-track:focus-visible .th-fill { height: 8px; margin-top: -4px; }
.th-marks i { position: absolute; top: 50%; width: 3px; height: 12px; margin: -6px 0 0 -1.5px; border-radius: 2px; background: var(--card); opacity: .7; }
.th-chapters { display: none; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.th-chapters::-webkit-scrollbar { display: none; }
.theater.has-chapters .th-chapters { display: flex; }
.th-chapters button { flex: none; display: flex; gap: 8px; align-items: baseline; height: 34px; align-items: center; padding: 0 13px; border: 0; border-radius: var(--r-pill); background: oklch(1 0 0 / .07); color: oklch(1 0 0 / .78); font-size: 13.5px; font-weight: 600; transition: background-color .2s, color .2s; }
.th-chapters button b { font: 500 var(--t-label)/1 var(--mono); font-variant-numeric: tabular-nums; color: oklch(1 0 0 / .45); }
.th-chapters button:hover { background: oklch(1 0 0 / .14); }
.th-chapters button.is-on { background: var(--card); color: var(--ink); } .th-chapters button.is-on b { color: var(--signal); }
/* the reel: five equal stills, short names, duration on the frame */
.th-reel { display: flex; justify-content: center; gap: 12px; padding: 14px 28px 22px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.th-reel::-webkit-scrollbar { display: none; }
.th-reel button { flex: none; width: 128px; display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; color: oklch(1 0 0 / .58); font-size: 13px; font-weight: 600; line-height: 1.25; text-align: left; scroll-snap-align: center; transition: color .2s; }
.th-reel button:focus-visible { outline: none; }
.th-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; background: var(--dark-2); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.th-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .2s, scale .5s cubic-bezier(.2, 0, 0, 1); }
.th-reel [data-reel="blizzcon"] img { object-position: 50% 30%; }
.th-thumb i { position: absolute; right: 5px; bottom: 5px; padding: 3px 5px; border-radius: 6px; font: 500 var(--t-label)/1 var(--mono); font-style: normal; font-variant-numeric: tabular-nums; color: var(--on-dark); background: oklch(0.165 0.008 70 / .72); }
.th-rname { display: flex; align-items: flex-start; gap: 6px; text-wrap: balance; }
.th-reel button:hover { color: var(--on-dark); } .th-reel button:hover img { opacity: .9; scale: 1.04; }
.th-reel button:focus-visible .th-thumb { outline-color: var(--card); }
.th-reel button.is-on { color: var(--on-dark); }
.th-reel button.is-on .th-thumb { outline-color: var(--signal); }
.th-reel button.is-on img { opacity: 1; }
.th-reel button.is-on .th-rname::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .45em; border-radius: 50%; background: var(--signal); }
@media (min-width: 1200px) {
  /* wide screens: title block left, the story beside it, so the screen keeps its height */
  .th-title { display: grid; grid-template-columns: auto minmax(0, 54ch); column-gap: 48px; align-items: end; }
  .th-line { grid-column: 1; grid-row: 1; }
  .th-name { grid-column: 1; grid-row: 2; }
  .th-story { grid-column: 2; grid-row: 1 / 3; margin: 0; padding-left: 24px; box-shadow: inset 1px 0 oklch(1 0 0 / .12); }
}
::view-transition-group(th-screen) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, 0, 0, 1); }
::view-transition-old(th-screen), ::view-transition-new(th-screen) { height: 100%; object-fit: cover; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (max-width: 620px) {
  .th-top { gap: 12px; padding: 14px 16px 2px; }
  .th-line { margin-bottom: 6px; gap: 6px 10px; }
  .th-line span { font-size: 12px; }
  .th-name { font-size: 21px; }
  .th-story { margin-top: 6px; font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  /* phones: the whole column (title, screen, controls, reel) is one centred stack,
     so no dead band opens between the screen and its controls */
  .theater[open] { grid-template-rows: auto auto auto; align-content: center; }
  .th-stage { --reserve: 392px; --sw: min(100cqw, (100dvh - var(--reserve)) * var(--ar, 1.7778)); container-type: inline-size; gap: 10px; padding: 8px 12px; }
  .theater.has-chapters .th-stage { --reserve: 436px; }
  .th-screen { border-radius: var(--r-s); }
  .th-controls, .th-chapters { width: 100cqw; }
  .th-controls { gap: 8px; }
  [data-th-full] { display: none; }
  .th-time { min-width: 34px; font-size: 12px; }
  .th-reel { justify-content: flex-start; gap: 10px; padding: 10px 16px 18px; scroll-padding-inline: 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, oklch(0 0 0) 16px, oklch(0 0 0) calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, oklch(0 0 0) 16px, oklch(0 0 0) calc(100% - 28px), transparent); }
  .th-reel button { width: 104px; font-size: 12.5px; }
  .th-rname { min-height: 2.5em; }
}
@media (max-height: 600px) and (orientation: landscape) {
  /* short landscape phones: the film gets the room; the grid and [ ] still switch films */
  .th-story, .th-line, .th-reel, .theater.has-chapters .th-chapters { display: none; }
  .th-top { padding: 10px 16px 0; align-items: center; }
  .th-name { font-size: 18px; }
  .th-x { width: 38px; height: 38px; }
  .theater.has-chapters .th-stage, .th-stage { --below: 50px; padding: 6px 16px 10px; gap: 8px; }
}
/* time chart: leave room for the labels on mid-size screens */
@media (min-width: 621px) and (max-width: 1180px) {
  .tc-bar i { width: calc(var(--w) * .6); }
  .tc-bar strong { margin-left: calc(var(--w) * .6 + 14px); }
}

/* =========================================================
   v9 basics: one brief, two ways side by side, one tabbed card
   (overrides the earlier basics rules; scoped to #background)
   ========================================================= */
.bg3 { padding: 112px 0 96px; }
.bg3-head { margin-bottom: 40px; }
.bg3-head > p:last-child { max-width: 640px; }

/* the duel: one sheet. brief on top, two ways below, mix note at the foot */
.bg3 .duel { padding: 0; border-radius: var(--r-xl); background: var(--card); overflow: hidden; box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .08), 0 40px 80px -56px oklch(0.185 0.01 70 / .45); }
.duel-brief { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-bottom: 1px solid var(--line); }
.duel-req, .duel-note { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; padding: 22px 28px 24px; }
.duel-note { box-shadow: inset 1px 0 var(--line); }
.duel-k { display: flex; align-items: center; gap: 10px; font: 500 var(--t-label) var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.duel-k i { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; letter-spacing: 0; background: var(--ink); color: var(--on-dark); }
.duel-note .duel-k i { background: var(--signal); }
.duel-q { font-size: 19px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.duel-send { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 56px; padding: 7px 7px 7px 20px; border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--on-dark); text-align: left; box-shadow: 0 16px 30px -18px oklch(0.185 0.01 70 / .7); transition: background-color .25s, color .25s, box-shadow .25s, scale .15s; }
.duel-send:hover { background: var(--dark-3); }
.duel-send:active { scale: .98; }
.duel-msg { display: flex; align-items: center; min-width: 0; }
.duel-msg .ic { width: 0; height: 18px; color: var(--signal); opacity: 0; transition: width .3s, margin .3s, opacity .3s; }
.duel-send q { quotes: "“" "”"; font-size: var(--t-body); font-weight: 600; line-height: 1.3; }
.duel-go { flex: none; display: inline-grid; padding: 11px 18px; border-radius: var(--r-pill); background: var(--signal); color: var(--ink); font-size: var(--t-small); font-weight: 700; transition: background-color .25s; }
.duel-go > span { grid-area: 1 / 1; text-align: center; transition: opacity .2s; }
.duel-go .db-1 { opacity: 0; }
.duel.is-noted .duel-go .db-0 { opacity: 0; }
.duel.is-noted .duel-go .db-1 { opacity: 1; }
.duel.is-noted .duel-send { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.duel.is-noted .duel-send:hover { background: var(--card); box-shadow: 0 0 0 1px var(--line-2); }
.duel.is-noted .duel-go { background: var(--ink); }
.duel.is-noted .duel-msg .ic { width: 18px; margin-right: 8px; opacity: 1; }

.bg3 .duel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.way-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 22px 28px 24px; }
.way-col + .way-col { box-shadow: inset 1px 0 var(--line); }
.way-top { display: flex; align-items: center; gap: 12px; min-height: 28px; }
.way-tag { flex: none; padding: 4px 9px; border-radius: var(--r-pill); background: var(--paper); color: var(--soft); font: 500 var(--t-label) var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.wc-2 .way-tag { background: var(--signal-soft); color: var(--signal-ink); }
.way-t { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; font-size: var(--t-small); color: var(--soft); }
.way-t b { font-size: 19px; color: var(--ink); letter-spacing: -0.015em; }
.bg3 .way-screen { border-radius: var(--r-s); }
.way-badge { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: var(--r-pill); background: oklch(0.165 0.008 70 / .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--on-dark); font: 500 var(--t-label) var(--mono); letter-spacing: .02em; }
.duel .s1 { display: none; }
.duel.is-noted .s0 { display: none; }
.duel.is-noted .s1 { display: inline; }
.bg3 .hl-box em { position: absolute; left: 100%; top: 50%; translate: 8px -50%; padding: 3px 8px; border-radius: var(--r-pill); background: var(--signal); color: var(--ink); font: 500 var(--t-label) var(--mono); font-style: normal; white-space: nowrap; }

/* what changed: the same four-row read-out under both screens */
.way-rows { display: grid; gap: 7px; padding-top: 14px; border-top: 1px solid var(--line); }
.wr-sum { margin-left: auto; flex: none; align-items: center; gap: 7px; font: 500 var(--t-label) var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); white-space: nowrap; animation: none; }
.duel.is-noted .wr-sum.s1 { display: inline-flex; animation: wr-pop .45s cubic-bezier(.2, 0, 0, 1) .15s backwards; }
@keyframes wr-pop { from { opacity: 0; scale: .9; } }
.wr-sum b { padding: 3px 9px; border-radius: var(--r-pill); color: var(--on-dark); background: var(--ink); letter-spacing: .02em; }
.wc-2 .wr-sum b { background: var(--signal); }
.wr { display: grid; grid-template-columns: 76px 1fr 54px; align-items: center; gap: 12px; }
.wr > em { font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--soft); white-space: nowrap; }
.wr-ruler { font: 500 var(--t-label) var(--mono); color: var(--soft); }
.wr-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wr-ruler .wr-pair span { transition: color .3s; }
.duel.is-noted .wr-ruler .wr-pair span + span { color: var(--ink); }
.wr-pair::after { content: ""; grid-area: 1 / 2; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); background: repeating-linear-gradient(135deg, transparent 0 5px, oklch(0.185 0.01 70 / .04) 5px 10px); }
.wr-ruler .wr-pair::after { display: none; }
.sw { display: flex; align-items: center; justify-content: center; height: 20px; border-radius: 5px; font-style: normal; overflow: hidden; white-space: nowrap; }
.wr-pair .sw:nth-child(2) { grid-area: 1 / 2; z-index: 1; opacity: 0; clip-path: inset(0 100% 0 0 round 5px); transition: opacity .2s, clip-path .6s cubic-bezier(.2, 0, 0, 1); }
.duel.is-noted .wr-pair .sw:nth-child(2) { opacity: 1; clip-path: inset(0 0 0 0 round 5px); }
.duel.is-noted .wr:nth-child(3) .sw:nth-child(2) { transition-delay: 0s, .08s; }
.duel.is-noted .wr:nth-child(4) .sw:nth-child(2) { transition-delay: 0s, .16s; }
.duel.is-noted .wr:nth-child(5) .sw:nth-child(2) { transition-delay: 0s, .24s; }
.sky-1 { background: linear-gradient(90deg, #1b2140, #57436a 40%, #c77a5e 78%, #f1b981); }
.sky-2 { background: linear-gradient(90deg, #5a92c9, #a8cbe4 65%, #e3ece6); }
.bld-1 { background: radial-gradient(circle, #ffcf8f 0 1.2px, transparent 1.8px) 3px 4px / 10px 8px, #2a2033; }
.bld-2 { background: repeating-linear-gradient(90deg, #f2e8d8 0 3px, #b3634b 3px 12px); }
.ttl-1 { background: #2a2335; color: #fff6e8; font: 700 12px Georgia, "Times New Roman", serif; letter-spacing: .06em; }
.ttl-2 { background: #6f9fcc; color: #fff; font: italic 14px "Snell Roundhand", "Brush Script MT", cursive; }
.pal-1 { background: linear-gradient(90deg, #1b2140 0 25%, #57436a 0 50%, #c77a5e 0 75%, #f1b981 0); }
.pal-2 { background: linear-gradient(90deg, #5a92c9 0 25%, #b3634b 0 50%, #5c8a3e 0 75%, #f2c14e 0); }
.wr-time { display: grid; grid-template-columns: repeat(5, 1fr) 0; }
.wr-time span:last-child { width: 0; overflow: visible; translate: -14px 0; }
.wr-track { position: relative; height: 20px; border-radius: 5px; background: repeating-linear-gradient(90deg, var(--paper-2) 0 calc(20% - 1px), var(--line) calc(20% - 1px) 20%); }
.wb, .wb-ghost { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.wb { transition: left .7s cubic-bezier(.2, 0, 0, 1), background-color .3s, opacity .4s; }
.wb-head { left: 0; right: 0; background: var(--line-2); }
.wb-mail { left: 12%; right: 0; background: var(--mute); }
.wb-thanks { left: 40%; right: 0; background: var(--signal-soft); }
.wb-voice { left: 0; right: 8%; background: repeating-linear-gradient(90deg, var(--signal-soft) 0 3px, transparent 3px 5px); }
.wb-ghost { left: 40%; right: 0; box-shadow: inset 0 0 0 1.5px oklch(0.52 0.105 80 / .55); background: repeating-linear-gradient(135deg, transparent 0 4px, oklch(0.86 0.165 92 / .12) 4px 8px); opacity: 0; transition: opacity .3s; }
.duel.is-noted .wb-thanks { left: 48%; background: var(--signal); }
.duel.is-noted .wb-ghost { opacity: 1; }
.duel.is-noted .wr:not(.wr-hit) .wb { opacity: .6; }
.duel.is-noted .wr-hit > em { color: var(--signal-ink); }
.wr-st { justify-self: end; padding: 2px 8px; border-radius: var(--r-pill); font: 500 var(--t-label) var(--mono); color: var(--soft); opacity: 0; translate: -4px 0; transition: opacity .3s, translate .3s; }
.wc-1 .wr-st, .wr-hit .wr-st { background: var(--signal-soft); color: var(--signal-ink); }
.duel.is-noted .wr-st { opacity: 1; translate: 0 0; }
.duel.is-noted .wr:nth-child(3) .wr-st { transition-delay: .08s; }
.duel.is-noted .wr:nth-child(4) .wr-st { transition-delay: .16s; }
.duel.is-noted .wr:nth-child(5) .wr-st { transition-delay: .24s; }

.way-say { display: grid; font-size: var(--t-body); line-height: 1.4; font-weight: 600; color: var(--ink); text-wrap: balance; }
.way-say span { grid-area: 1 / 1; transition: opacity .35s, translate .35s, visibility .35s; }
.way-say .r1 { opacity: 0; visibility: hidden; translate: 0 6px; }
.duel.is-noted .way-say .r0 { opacity: 0; visibility: hidden; translate: 0 -6px; }
.duel.is-noted .way-say .r1 { opacity: 1; visibility: visible; translate: 0 0; }
.duel.is-noted .wc-1 .way-say .r1 { color: var(--signal-ink); }
.way-fit { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; color: var(--soft); text-wrap: balance; }
.way-fit b { margin-right: 6px; font: 500 var(--t-label) var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.wc-2 .way-fit b { color: var(--signal-ink); }
.bg3 .duel-mix { margin: 0; padding: 16px 28px; justify-content: center; gap: 10px; border-top: 1px solid var(--line); background: var(--paper); font-size: var(--t-small); text-align: center; }

/* go deeper: one tabbed card, panels stacked in one grid cell so the height never jumps */
.bg3 .bgtabs { margin-top: 56px; }
.bgt-card { border-radius: var(--r-xl); background: var(--card); overflow: hidden; box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .08), 0 40px 80px -56px oklch(0.185 0.01 70 / .45); }
.bgt-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper-2); box-shadow: inset 0 -1px var(--line); }
.bgt-tabs [role="tab"] { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: baseline; min-width: 0; padding: 15px 24px 14px; border: 0; background: none; color: var(--soft); text-align: left; transition: background-color .2s, color .2s; }
.bgt-tabs [role="tab"] + [role="tab"] { box-shadow: inset 1px 0 var(--line); }
.bgt-tabs [role="tab"] i { grid-row: span 2; font: 500 var(--t-label) var(--mono); font-style: normal; color: var(--soft); }
.bgt-tabs [role="tab"] b { font-size: var(--t-body); font-weight: 650; color: inherit; white-space: nowrap; }
.bgt-tabs [role="tab"] small { font-size: 14px; line-height: 1.35; color: var(--soft); }
.bgt-tabs [role="tab"]:hover { color: var(--ink); background: oklch(0.985 0.01 88 / .55); }
.bgt-tabs [role="tab"]:focus-visible { outline-offset: -4px; border-radius: 0; }
.bgt-tabs [aria-selected="true"] { color: var(--ink); background: var(--card); box-shadow: inset 1px 0 var(--line), inset -1px 0 var(--line); }
.bgt-tabs [aria-selected="true"]:hover { background: var(--card); }
.bgt-tabs [aria-selected="true"]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--signal); }
.bgt-tabs [aria-selected="true"] i { color: var(--signal-ink); }
.bgt-short { display: none; }
.bgt-panels { display: grid; }
.bgp { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; padding: 32px 44px 38px; }
.bgtabs .bgp[hidden] { display: none; }
.bgtabs .bgp:not([hidden]) { animation: bgt9-in .4s cubic-bezier(.2, 0, 0, 1); }
@keyframes bgt9-in { from { opacity: 0; translate: 0 8px; } }
@media (min-width: 981px) {
  .bgtabs .bgp[hidden] { display: flex; visibility: hidden; animation: none; }
  .bgp-hood .pipe { margin-top: auto; }
  .bgp-hood .pipe-loop { margin-bottom: auto; }
  .bgp-words .w2-list { margin-block: auto; }
}
.bgp-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.bgp-k { margin-bottom: 10px; font: 500 var(--t-label) var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--signal-ink); }
.bgp-head h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; margin-bottom: 10px; }
.bgp-sub { max-width: 60em; font-size: var(--t-body); color: var(--soft); }

/* panel 1: the pipeline, with the note loop drawn back to you */
.bgp-hood .pipe { margin-top: 4px; }
.pipe-loop { position: relative; height: 58px; margin: 16px calc((100% - 132px) / 8.3) 22px; border: 1.5px dashed var(--signal-strong); border-top: 0; border-radius: 0 0 var(--r-m) var(--r-m); }
.pipe-loop::before { content: ""; position: absolute; left: -6px; top: -8px; border: 5px solid transparent; border-bottom: 8px solid var(--signal-strong); border-top: 0; }
.pipe-loop span { position: absolute; left: 50%; bottom: 0; translate: -50% 50%; display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: var(--r-pill); background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: var(--t-small); font-weight: 600; color: var(--ink); white-space: nowrap; }
.pipe-loop svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--signal-strong); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* panel 2: the three ways sit on one axis, from your files to painted footage */
.land-ends { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; font: 500 var(--t-label) var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.le-a { color: var(--signal-ink); }
.le-a::before { content: "← "; }
.le-b::after { content: " →"; }
.lcols { display: grid; grid-template-columns: 1.15fr 1.15fr .9fr; box-shadow: inset 0 1.5px var(--line-2); }
.lcol { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 26px 28px 0; }
.lcol:first-child { padding-left: 0; }
.lcol:last-child { padding-right: 0; }
.lcol + .lcol { box-shadow: inset 1px 0 var(--line); }
.lcol::before { content: ""; position: absolute; top: -5px; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--mute); }
.lcol:first-child::before { left: 0; background: var(--signal); box-shadow: 0 0 0 4px var(--card); }
.lcol-here { position: absolute; top: -11px; left: 20px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--signal); color: var(--ink); font: 500 var(--t-label) var(--mono); letter-spacing: .04em; white-space: nowrap; }
.lcol-vis { height: 68px; margin-bottom: 16px; border-radius: var(--r-m); background: var(--paper); display: flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden; }
.lcol-us .lcol-vis { background: var(--signal-soft); }
.vg-shot { width: 136px; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-s); box-shadow: 0 12px 22px -12px oklch(0.185 0.01 70 / .55); }
.lcol h4 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.015em; color: var(--ink); }
.lcol > p { margin-bottom: 12px; font-size: var(--t-small); line-height: 1.5; color: var(--text); }
.lcol .lc-note { margin-top: 12px; }

/* panel 3: a glossary, one ruled line per word */
.w2-list { list-style: none; margin: -10px 0 0; padding: 0; }
.w2-row { display: grid; grid-template-columns: 40px 150px 1fr 240px; align-items: center; column-gap: 24px; padding: 11px 0; }
.w2-row + .w2-row { border-top: 1px solid var(--line); }
.w2-n { font: 500 var(--t-label) var(--mono); color: var(--signal-ink); }
.w2-t { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.w2-d { font-size: var(--t-body); line-height: 1.45; color: var(--text); }
.w2-v { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 14px; border-radius: var(--r-s); background: var(--paper); overflow: hidden; }
.w2-v.v-export { flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; }
.w2-v .vs-card { rotate: -2deg; }
.w2-v .vt-wave { height: 34px; }

@media (max-width: 1099px) {
  .duel-brief { grid-template-columns: 1fr; }
  .duel-note { box-shadow: inset 0 1px var(--line); }
}
@media (max-width: 999px) {
  .bgp-head h3 span { display: block; }
}
@media (max-width: 980px) {
  .bg3 { padding: 88px 0 72px; }
  .bgt-tabs [role="tab"] small { display: none; }
  .bgt-tabs [role="tab"] { padding: 16px 18px 15px; }
  .pipe-loop { height: auto; margin: 26px 0 4px; border: 0; text-align: center; }
  .pipe-loop::before { display: none; }
  .pipe-loop span { position: static; translate: none; white-space: normal; text-align: left; }
  .w2-row { grid-template-columns: 36px 1fr 200px; grid-template-areas: "n t v" ". d v"; row-gap: 2px; }
  .w2-n { grid-area: n; } .w2-t { grid-area: t; } .w2-d { grid-area: d; } .w2-v { grid-area: v; }
}
@media (max-width: 899px) {
  .bg3 .duel-grid { grid-template-columns: 1fr; }
  .way-col + .way-col { box-shadow: inset 0 1px var(--line); }
  .land-map { display: flex; flex-direction: column; }
  .land-ends { display: contents; }
  .le-a { order: 0; margin-bottom: 18px; }
  .le-b { order: 2; margin-top: 14px; padding-left: 0; }
  .le-a, .le-b { font: 500 var(--t-label) var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  .le-b { color: var(--soft); }
  .le-a::before { content: "↑ "; }
  .le-b::after { content: ""; }
  .le-b::before { content: "↓ "; }
  .lcols { order: 1; grid-template-columns: 1fr; margin-left: 6px; box-shadow: inset 1.5px 0 var(--line-2); }
  .lcol, .lcol:first-child, .lcol:last-child { padding: 0 0 30px 26px; box-shadow: none; }
  .lcol + .lcol { box-shadow: none; padding-top: 26px; border-top: 1px solid var(--line); }
  .lcol::before, .lcol:first-child::before { top: 2px; left: -5.25px; }
  .lcol + .lcol::before { top: 28px; }
  .lcol-here { position: static; align-self: flex-start; margin-bottom: 12px; }
  .lcol-us::before { top: 6px !important; }
}
@media (max-width: 620px) {
  .bg3-head h2 span { text-wrap: balance; }
  .bg3 .duel { border-radius: var(--r-l); }
  .duel-req, .duel-note { padding: 18px 18px 20px; }
  .duel-q { font-size: var(--t-body); }
  .duel-send { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 8px 8px; border-radius: var(--r-l); text-align: center; }
  .duel-msg { justify-content: center; padding: 0 8px; }
  .duel-send q { font-size: 16px; }
  .way-col { gap: 16px; padding: 20px 18px 22px; }
  .way-t b { font-size: 18px; }
  .wr { grid-template-columns: 66px 1fr 46px; gap: 8px; }
  .wr > em { font-size: 13px; }
  .wr-st { padding: 2px 6px; }
  .way-say { font-size: 16px; }
  .bg3 .duel-mix { padding: 14px 18px; align-items: flex-start; text-align: left; }
  .bg3 .bgtabs { margin-top: 56px; }
  .bgt-card { border-radius: var(--r-l); }
  .bgt-tabs [role="tab"] { display: block; padding: 15px 6px 14px; text-align: center; }
  .bgt-tabs [role="tab"] i { display: none; }
  .bgt-tabs [role="tab"] b { font-size: 14.5px; }
  .bgt-long { display: none; }
  .bgt-short { display: inline; }
  .bgp { padding: 28px 18px 30px; }
  .bgp-head { margin-bottom: 26px; padding-bottom: 22px; }
  .bgp-head h3 { font-size: 24px; }
  .bgp-sub { font-size: 16px; }
  .w2-list { margin-top: -10px; }
  .w2-row { grid-template-columns: 30px 1fr; grid-template-areas: "n t" ". d" ". v"; row-gap: 4px; padding: 16px 0; }
  .w2-t { font-size: 21px; }
  .w2-d { font-size: var(--t-small); }
  .w2-v { height: 54px; margin-top: 8px; justify-content: flex-start; }
  .w2-v.v-export { max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .bgtabs .bgp:not([hidden]) { animation: none; }
  .wb, .wr-st, .wr-pair .sw, .way-say span, .duel-send, .duel-go > span { transition: none; }
}
.bgp-land .lc-links a { padding-block: 9px; }
.bgp-land .vc-card { width: 84px; padding: 8px; gap: 5px; }
.bgp-land .vc-frame { width: 96px; }
.bgp-land .va-win { width: 170px; padding: 6px; }
.bgp-land .va-prev { height: 24px; }
.bgp-land .vc-card { gap: 4px; }
.bgp-land .vc-frame { width: 88px; }
.vg-shot { width: 112px; }

/* tablets and phones: pipeline as a compact list, mini visuals beside the words */
@media (max-width: 980px) {
  .bgp-hood .pipe { gap: 0; max-width: 560px; }
  .bgp-hood .pnode { display: grid; grid-template-columns: 184px 1fr; grid-template-rows: auto auto; column-gap: 24px; align-items: center; text-align: left; }
  .bgp-hood .pn-vis { grid-row: 1 / 3; width: 230px; height: 174px; min-height: 0; margin: 0; zoom: .8; }
  .bgp-hood .pnode > b { align-self: end; }
  .bgp-hood .pnode > small { align-self: start; }
  .bgp-hood .pl { height: 18px; margin: 6px 0 6px 91px; }
  .pipe-loop { max-width: 560px; text-align: left; }
}
@media (max-width: 620px) {
  .bgp-hood .pipe { gap: 0; }
  .bgp-hood .pnode { display: grid; grid-template-columns: 138px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; text-align: left; }
  .bgp-hood .pn-vis { grid-row: 1 / 3; height: 104px; min-height: 0; margin: 0; zoom: .6; width: 230px; }
  .bgp-hood .pnode > b { align-self: end; font-size: var(--t-body); }
  .bgp-hood .pnode > small { align-self: start; font-size: 14px; }
  .bgp-hood .pn-vis { height: 174px; }
  .bgp-hood .pl { height: 18px; margin: 6px 0 6px 68px; }
  .pipe-loop { margin-top: 20px; }
  .pipe-loop span { font-size: 14.5px; }
  .lcol-vis { height: 76px; }
  .w2-row { grid-template-columns: 30px 1fr auto; grid-template-areas: "n t v" ". d d"; column-gap: 10px; row-gap: 6px; }
  .w2-v { height: 56px; margin: 0; padding: 0 10px; zoom: .8; }
  .w2-v .vs-card { rotate: 0deg; }
  .w2-v.v-export { width: 150px; }
}
.way-t { min-width: 0; }
@media (max-width: 620px) { .wr-sum { font-size: 0; gap: 0; } .wr-sum b { font-size: 12px; } }
@media (max-width: 620px) { .wbk { display: none; } .duel-send q { font-size: var(--t-small); } }
.w2-v .vs-card { padding: 5px 10px 7px; gap: 3px; }
.w2-v .vs-card b { line-height: 1.3; }
@media (min-width: 621px) and (max-width: 899px) {
  .lcol, .lcol:first-child, .lcol:last-child { display: grid; grid-template-columns: 1fr 200px; grid-template-areas: "h v" "p v" "l l" "n n"; column-gap: 28px; align-content: start; }
  .lcol-us { grid-template-areas: "c c" "h v" "p v" "l l" "n n" !important; }
  .lcol-here { grid-area: c; justify-self: start; }
  .lcol-vis { grid-area: v; align-self: start; margin: 0; }
  .lcol h4 { grid-area: h; align-self: end; }
  .lcol > p:not(.lc-note) { grid-area: p; }
  .lcol .lc-links { grid-area: l; margin-top: 4px; }
  .lcol .lc-note { grid-area: n; }
}

/* =========================================================
   v10 story + method
   How it started: one rail, six aligned rows (subgrid), one ink band for what never changed.
   The method on one page: a fixed-ratio map (circle stays a circle), phase brackets,
   the loop's centre names the Direct phase; phones get a compact rail with the loop drawn back.
   ========================================================= */
.og-sec, .mm-sec { --og-pad: 14px; --og-gap: 12px; }
.og-head, .mm-head { text-align: center; margin: 0 auto 44px; max-width: 760px; }
.og-head > p:last-child, .mm-head > p:last-child { max-width: 640px; margin: 0 auto; text-wrap: balance; }

/* ---------- how it started ---------- */
.og { position: relative; padding: 26px 26px 22px; border-radius: var(--r-xl); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .07), 0 40px 90px -56px oklch(0.185 0.01 70 / .45); }
.og-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); grid-template-rows: repeat(6, auto); column-gap: var(--og-gap); }
.og-stop { position: relative; display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; padding: 14px var(--og-pad) 18px; border-radius: var(--r-l); }
.og-when { font: 500 var(--t-label)/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: 14px; }
.og-when span { color: var(--signal-ink); }
.og-when span::before { content: "\00B7"; margin-right: .6em; color: var(--soft); }
.og-rail { position: relative; display: block; height: 40px; margin-bottom: 14px; }
.og-rail::after { content: ""; position: absolute; top: 19px; left: 40px; right: calc(-2 * var(--og-pad) - var(--og-gap)); height: 2px; background: var(--line); }
.og-now .og-rail::after { right: 0; background: repeating-linear-gradient(90deg, var(--signal) 0 4px, transparent 4px 9px); opacity: .55; }
.og-mono { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-s); background: var(--ink); color: var(--on-dark); font: 700 14px/1 var(--sans); letter-spacing: -0.01em; box-shadow: 0 0 0 5px var(--card); }
.og-now .og-mono { background: var(--signal); box-shadow: 0 0 0 5px var(--signal-soft); }
.og-hand { position: absolute; z-index: 1; top: 20px; left: calc(20px + 50% + var(--og-pad) + var(--og-gap) / 2); transform: translate(-50%, -50%); padding: 3px 9px; border-radius: var(--r-pill); background: var(--card); box-shadow: 0 0 0 1px var(--line); font: 500 var(--t-label)/1.2 var(--mono); letter-spacing: .04em; color: var(--soft); white-space: nowrap; }
.og-tool { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.og-tool b { font-size: 18px; line-height: 1.2; color: var(--ink); letter-spacing: -0.015em; }
.og-model { font: 500 var(--t-label)/1.3 var(--mono); letter-spacing: .02em; color: var(--soft); }
.og-now .og-model { color: var(--signal-ink); }
.og-film { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; margin: 0; }
.og-frame { display: block; margin-bottom: 12px; }
.og-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-s); outline: 1px solid oklch(0.185 0.01 70 / .1); outline-offset: -1px; box-shadow: 0 12px 24px -16px oklch(0.185 0.01 70 / .55); }
.og-pair { position: relative; contain: size; align-self: stretch; min-height: 0; }
.og-pair img { position: absolute; top: 0; bottom: 0; left: 0; width: calc(38% - 4px); height: 100%; aspect-ratio: auto; }
.og-pair img + img { left: auto; right: 0; width: calc(62% - 4px); }
.og-film figcaption { font-size: var(--t-small); font-weight: 700; line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 6px; }
.og-note { font-size: 14.5px; line-height: 1.5; color: var(--text); }
.og-now { background: var(--signal-soft); box-shadow: inset 0 0 0 1.5px var(--signal-strong); }
.og-now .og-when { color: var(--signal-ink); }

/* what never changed: one ink band, two equal cells */
.og-constant { display: grid; grid-template-columns: 1fr 1.9fr; margin-top: 16px; border-radius: var(--r-l); background: var(--ink); overflow: hidden; }
.og-const { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px 22px; }
.og-const + .og-const { box-shadow: inset 1px 0 0 oklch(1 0 0 / .1); }
.og-const-k { font: 500 var(--t-label)/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.og-const b { font-size: 19px; line-height: 1.3; color: var(--on-dark); letter-spacing: -0.015em; }
.og-const-d { font-size: var(--t-small); line-height: 1.5; color: var(--on-dark-2); }
.og-pips { display: flex; gap: 5px; margin-top: 6px; }
.og-pips i { width: 18px; height: 6px; border-radius: var(--r-pill); background: oklch(1 0 0 / .22); }
.og-pips i.on { background: var(--signal); }
.og-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin: 26px auto 0; max-width: 980px; text-align: center; font-size: var(--t-body); line-height: 1.5; color: var(--soft); text-wrap: balance; }
.og-foot b { color: var(--ink); font-weight: 700; }
.og-down { flex: none; width: 28px; height: 28px; margin-left: 4px; padding: 5px; border-radius: 50%; background: var(--signal-soft); fill: none; stroke: var(--signal-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 1000px) and (max-width: 1199px) {
  .og-sec { --og-pad: 10px; --og-gap: 8px; }
  .og { padding: 20px 18px 18px; }
  .og-note { font-size: 14px; }
}

/* tablets and phones: the rail turns vertical, each film sits beside its words */
@media (max-width: 999px) {
  .og { padding: 22px 22px 18px; }
  .og-track { display: flex; flex-direction: column; gap: 10px; }
  .og-stop { grid-row: auto; display: grid; grid-template-columns: 40px minmax(0, 220px) minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; grid-template-areas: "rail when when" "rail tool tool" "rail img cap" "rail img note" "rail img ."; column-gap: 16px; padding: 12px 14px 14px 12px; align-items: start; }
  .og-when { grid-area: when; margin: 0 0 4px; }
  .og-rail { grid-area: rail; height: 100%; margin: 0; }
  .og-rail::after, .og-now .og-rail::after { top: 46px; left: 19px; right: auto; bottom: -32px; width: 2px; height: auto; background: var(--line); opacity: 1; }
  .og-now .og-rail::after { display: none; }
  .og-hand { display: none; }
  .og-tool { grid-area: tool; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin: 0 0 12px; }
  .og-film { display: contents; }
  .og-frame { grid-area: img; margin: 0; }
  .og-film figcaption { grid-area: cap; margin: 0 0 4px; }
  .og-note { grid-area: note; }
  .og-now { grid-template-rows: auto; grid-template-areas: "rail when when" "rail tool tool" "rail img img" "rail cap cap" "rail note note"; }
  .og-now .og-frame { margin-bottom: 12px; }
  .og-pair { contain: none; display: grid; grid-template-columns: .62fr 1fr; gap: 8px; }
  .og-pair img, .og-pair img + img { position: static; width: 100%; height: 160px; }
  .og-constant { grid-template-columns: 1fr 1.6fr; }
}
@media (min-width: 621px) and (max-width: 999px) {
  .og-stop:not(.og-now) { grid-template-columns: 40px 240px minmax(0, 1fr); grid-template-areas: "rail img when" "rail img tool" "rail img cap" "rail img note" "rail img ."; column-gap: 20px; }
  .og-stop:not(.og-now) .og-when { margin-top: 2px; }
}
@media (max-width: 620px) {
  .og-head, .mm-head { margin-bottom: 32px; }
  .og { padding: 10px 10px 10px; border-radius: var(--r-l); }
  .og-stop { grid-template-columns: 34px minmax(0, 38%) minmax(0, 1fr); column-gap: 12px; padding: 12px 10px 14px 8px; }
  .og-mono { width: 34px; height: 34px; font-size: 13px; }
  .og-rail::after, .og-now .og-rail::after { top: 40px; left: 16px; }
  .og-when { align-self: end; }
  .og-tool b { font-size: var(--t-body); }
  .og-film figcaption { font-size: 14.5px; }
  .og-note { font-size: 14px; line-height: 1.45; }
  .og-pair img, .og-pair img + img { height: 128px; }
  .og-const { padding: 16px 18px 18px; }
  .og-constant { grid-template-columns: 1fr; }
  .og-const + .og-const { box-shadow: inset 0 1px 0 oklch(1 0 0 / .1); }
  .og-const b { font-size: var(--t-body); }
  .og-foot { font-size: 16px; margin-top: 22px; }
}

/* ---------- the method on one page ---------- */
.mmap { position: relative; width: 100%; aspect-ratio: 1200 / 430; margin: 0 0 28px; }
.mm-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mm-svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.mm-rail { stroke: var(--line-2); stroke-width: 2; }
.mm-pass { stroke: var(--signal-strong); stroke-width: 3; }
.mm-return { stroke: var(--signal-strong); stroke-width: 2; stroke-dasharray: 2 8; }
.mm-arrow { stroke: var(--signal-strong); stroke-width: 2; }
.mm-brk { stroke: var(--line-2); stroke-width: 1.5; }
.mm-dot { fill: var(--signal); }
@media (prefers-reduced-motion: reduce) { .mm-dot { display: none; } }
.mm-loop { display: contents; }
.mm-back { display: none; }
.mm-phase { position: absolute; left: var(--x); top: 94%; transform: translate(-50%, -50%); margin: 0; font: 500 var(--t-label)/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.mm-phase-loop { top: 53.488%; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 150px; white-space: normal; text-align: center; }
.mm-phase-loop span { color: var(--signal-ink); }
.mm-phase-loop b { font: 700 15px/1.3 var(--sans); letter-spacing: -0.01em; text-transform: none; color: var(--ink); text-wrap: balance; }

.mn { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; text-decoration: none; color: var(--ink); }
.mn:focus-visible { outline: none; }
.mn:focus-visible .mn-ic { outline: 3px solid var(--signal-ink); outline-offset: 4px; }
.mn-ic { position: absolute; left: 0; top: 0; width: 56px; height: 56px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: var(--r-m); background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .09), 0 12px 24px -14px oklch(0.185 0.01 70 / .5); transition: transform .2s, box-shadow .2s; }
.mn-ic .ic { width: 25px; height: 25px; }
.mn-ic em { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--on-dark); font: 500 var(--t-label)/22px var(--mono); text-align: center; font-style: normal; box-shadow: 0 0 0 2px var(--paper); }
.mn-in .mn-ic { background: var(--signal); color: var(--ink); box-shadow: 0 14px 26px -12px oklch(0.52 0.105 80 / .6); }
.mn-in .mn-ic em { background: var(--card); color: var(--signal-ink); box-shadow: 0 0 0 1px oklch(0.52 0.105 80 / .25); }
.mn-t { position: absolute; left: 0; top: 40px; transform: translateX(-50%); width: 150px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.mn-t b { font-size: 16px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; transition: color .2s; }
.mn-t small { font-size: 13.5px; line-height: 1.35; color: var(--soft); text-wrap: balance; }
.mn-left .mn-t { left: auto; right: 42px; top: 0; transform: translateY(-50%); align-items: flex-end; text-align: right; width: 140px; }
.mn-right .mn-t { left: 42px; top: 0; transform: translateY(-50%); align-items: flex-start; text-align: left; width: 160px; }
.mn-top .mn-t { top: auto; bottom: 40px; width: 170px; }
.mn:hover .mn-ic { transform: translate(-50%, calc(-50% - 3px)); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .12), 0 18px 28px -14px oklch(0.185 0.01 70 / .55); }
.mn:hover .mn-t b { color: var(--signal-ink); }
.mn.is-done .mn-ic { box-shadow: 0 0 0 2px var(--ink); }

@media (min-width: 1000px) and (max-width: 1199px) {
  .mn-t { width: 118px; }
  .mn-t small { font-size: 13px; }
  .mn-left .mn-t { width: 124px; }
  .mn-right .mn-t { width: 140px; }
}

/* who does what */
.mroles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 0; }
.mrole { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; border-radius: var(--r-l); }
.mrole-h { display: flex; align-items: center; gap: 12px; }
.mrole-h b { font-size: 20px; letter-spacing: -0.02em; }
.mrole-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-s); flex: none; }
.mrole-ic .ic { width: 21px; height: 21px; }
.mrole-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mrole-list li { font-size: 14.5px; font-weight: 600; line-height: 1.2; padding: 7px 12px; border-radius: var(--r-pill); }
.mrole-you { background: var(--ink); }
.mrole-you b { color: var(--on-dark); }
.mrole-you .mrole-ic { background: var(--signal); color: var(--ink); }
.mrole-you li { background: oklch(1 0 0 / .09); color: var(--on-dark); }
.mrole-ai { background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .08); }
.mrole-ai b { color: var(--ink); }
.mrole-ai .mrole-ic { background: var(--signal-soft); color: var(--signal-ink); }
.mrole-ai li { background: var(--paper); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

/* tablets and phones: one compact rail; the loop is a tinted stretch with its way back drawn in */
@media (max-width: 999px) {
  .mmap { aspect-ratio: auto; max-width: 560px; margin: 0 auto 28px; display: flex; flex-direction: column; }
  .mmap::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 30px; width: 2px; background: var(--line-2); }
  .mm-svg { display: none; }
  .mm-phase, .mm-phase-loop { position: static; transform: none; width: auto; margin: 14px 0 4px 60px; text-align: left; }
  .mmap > .mm-phase:first-child { margin-top: 0; }
  .mm-loop { display: block; position: relative; margin: 10px -10px 4px; padding: 10px 44px 8px 10px; border-radius: var(--r-l); background: var(--signal-soft); box-shadow: inset 0 0 0 1px oklch(0.52 0.105 80 / .16); }
  .mm-phase-loop { display: flex; flex-direction: row; align-items: baseline; gap: 10px; margin: 2px 0 4px 60px; }
  .mm-phase-loop b { font: 500 var(--t-label)/1.2 var(--mono); letter-spacing: .02em; color: var(--signal-ink); text-transform: none; }
  .mm-back { display: block; position: absolute; right: 12px; top: 40px; bottom: 26px; width: 22px; height: calc(100% - 66px); overflow: visible; }
  .mm-back path { fill: none; stroke: var(--signal-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .mn, .mn-left, .mn-right, .mn-top { position: relative; left: auto; top: auto; width: auto; height: auto; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; padding: 6px 0; }
  .mn-ic { position: relative; transform: none; width: 44px; height: 44px; border-radius: var(--r-s); }
  .mn-ic .ic { width: 21px; height: 21px; }
  .mn-ic em { top: -6px; right: -7px; width: 20px; height: 20px; font-size: 12px; line-height: 20px; }
  .mn:hover .mn-ic { transform: translateY(-2px); }
  .mn-t, .mn-left .mn-t, .mn-right .mn-t, .mn-top .mn-t { position: static; transform: none; width: auto; align-items: flex-start; text-align: left; gap: 1px; }
  .mn-t small { font-size: 14px; }
  .mroles { max-width: 560px; margin: 0 auto; grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .mrole { padding: 18px 18px 20px; gap: 12px; }
  .mrole-list li { font-size: 14px; padding: 6px 11px; }
}

/* =========================================================
   v11 truths + setup
   01 the lottery is one machine: console (pull, model, counters) on top, three 16:9 reels
   of real drafts, a status line below. A section that lands is kept and stays put.
   02 and 03 sit on the dark band as two open columns, each led by one diagram.
   Setup is one recommended-stack strip: the two tools you need, then an optional tray.
   Fresh prefixes (lx-, tx-, rv-, sv-, st-) so no older !important rule reaches in.
   ========================================================= */
.tx .section-head { margin-bottom: 44px; }
.tx-num { display: block; margin-bottom: 14px; font: 500 var(--t-label)/1 var(--mono); letter-spacing: .12em; color: var(--signal); }
.tx-lab { margin: 0 0 10px; font: 500 var(--t-label)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); white-space: nowrap; }
.tx-lab em { margin-left: 6px; font-style: normal; text-transform: none; letter-spacing: .01em; color: var(--on-dark-soft); }

/* ---------- 01 the lottery ---------- */
.lx { display: grid; gap: 28px; }
.lx-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 64px; align-items: end; }
.lx-head h3 { color: var(--on-dark); font-size: clamp(34px, 3.7vw, 50px); line-height: 1.04; letter-spacing: -0.035em; }
.lx-lede { max-width: 470px; justify-self: end; font-size: 18px; line-height: 1.55; color: var(--on-dark-2); }
.lx-machine { padding: 14px; border-radius: var(--r-xl); background: var(--dark-2); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .07), 0 40px 80px -50px oklch(0 0 0 / .9); transition: box-shadow .4s; }
.lx.is-jackpot .lx-machine { box-shadow: inset 0 0 0 1px oklch(0.86 0.165 92 / .55), 0 40px 80px -50px oklch(0 0 0 / .9); }
.lx-console { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 6px 6px 18px; }
.lx-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lx-pull { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px 0 30px; border: 0; border-radius: var(--r-pill); background: var(--signal); color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; transition: background .2s, transform .15s; }
.lx-pull:hover { background: var(--signal-strong); }
.lx-pull:active { transform: translateY(1px) scale(.98); }
.lx-pull:focus-visible { outline: 2px solid var(--card); outline-offset: 3px; }
.lx-pull .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.lx.is-busy .lx-pull { cursor: progress; }
.lx.is-busy .lx-pull .ic { animation: lxTurn .8s linear infinite; }
@keyframes lxTurn { to { transform: rotate(360deg); } }
.lx-model { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: oklch(1 0 0 / .05); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .12); }
.lx-model button { height: 46px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--on-dark-2); font-size: var(--t-small); font-weight: 650; white-space: nowrap; transition: background .2s, color .2s; }
.lx-model button:hover { color: var(--on-dark); }
.lx-model button.is-on { background: var(--paper); color: var(--ink); }
.lx-model button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.lx-count { display: flex; gap: 8px; margin: 0; }
.lx-count > div { min-width: 124px; padding: 10px 16px 11px; border-radius: var(--r-m); background: oklch(1 0 0 / .04); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .08); }
.lx-count dt { font: 500 var(--t-label)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); white-space: nowrap; }
.lx-count dd { margin: 7px 0 0; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.lx-count small { margin-left: 2px; font-size: 16px; font-weight: 600; color: var(--on-dark-soft); }

.lx-reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lx.is-jackpot .lx-reels { animation: lxWin .8s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes lxWin { 35% { transform: scale(1.012); } }
.lx-reel { margin: 0; min-width: 0; }
.lx-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px 9px; font: 500 var(--t-label)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.lx-name { color: var(--on-dark); }
.lx-state { color: var(--on-dark-soft); transition: color .3s; }
.lx-reel.is-hit .lx-state { color: var(--signal); }
.lx-reel.is-spin .lx-state { color: var(--on-dark-2); }
.lx-win { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-m); background: var(--dark); isolation: isolate; }
.lx-win::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(oklch(0 0 0 / .55), transparent 24%, transparent 76%, oklch(0 0 0 / .55)); opacity: 0; transition: opacity .25s; }
.lx-win::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px oklch(1 0 0 / .08); transition: box-shadow .3s; }
.lx-reel.is-spin .lx-win::before { opacity: 1; }
.lx-reel.is-hit .lx-win::after { box-shadow: inset 0 0 0 3px var(--signal); }
.lx-strip { position: absolute; top: 0; left: 0; right: 0; will-change: transform; }
.lx-strip img { display: block; width: 100%; height: var(--fh, 200px); object-fit: cover; transition: filter .35s; }
.lx-reel.is-miss .lx-strip img { filter: saturate(.75) brightness(.82); }
.lx-cap { min-height: 30px; align-items: center; padding-bottom: 8px; }
.lx-state { display: inline-flex; align-items: center; gap: 6px; padding: 0 2px; border-radius: var(--r-pill); transition: color .3s, background .3s, box-shadow .3s; }
.lx-reel.is-hit .lx-state, .lx-reel.is-miss .lx-state { padding: 6px 10px; animation: lxPop .4s cubic-bezier(.34, 1.56, .64, 1); }
.lx-reel.is-hit .lx-state { background: var(--signal); color: var(--ink); }
.lx-reel.is-hit .lx-state::before { content: ""; width: 8px; height: 4px; margin-top: -3px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.lx-reel.is-miss .lx-state { color: var(--on-dark); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .22); }
@keyframes lxPop { from { transform: scale(.85); opacity: 0; } }
.lx-read { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: 16px 6px 4px; }
.lx-status { min-height: 1.5em; color: var(--on-dark); font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.lx-odds { font: 500 var(--t-label)/1 var(--mono); letter-spacing: .06em; color: var(--on-dark-soft); }
.lx-foot { text-align: center; color: var(--on-dark); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }

/* ---------- 02 and 03: two open columns ---------- */
.tx-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; margin-top: 72px; border-top: 1px solid oklch(1 0 0 / .1); }
.tx-truth { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 28px; min-width: 0; padding: 40px 48px 0 0; }
.tx-truth + .tx-truth { padding: 40px 0 0 48px; border-left: 1px solid oklch(1 0 0 / .1); }
.tx-text h3 { margin-bottom: 12px; color: var(--on-dark); font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -0.03em; }
.tx-text p { max-width: 530px; font-size: var(--t-body); line-height: 1.6; color: var(--on-dark-2); }
.tx-truth { container-type: inline-size; }
.tx-vis { position: relative; display: grid; align-content: center; padding: 22px; border-radius: var(--r-l); background: var(--dark-2); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .07); }

/* 02: a pile of files, one gate, what went into the film */
.rv { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); align-items: center; column-gap: 16px; }
.rv-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.rv-files li { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-s); background: oklch(1 0 0 / .045); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .08); }
.rv-files li:not(.is-in)::before { content: ""; position: absolute; left: 22%; right: 30%; top: 36%; height: 3px; border-radius: 2px; background: oklch(1 0 0 / .12); box-shadow: 0 7px 0 oklch(1 0 0 / .08); }
.rv-files img, .rv-in img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.rv-files .is-in { box-shadow: 0 0 0 2px var(--signal); }
.rv-gate { position: relative; align-self: stretch; display: grid; place-items: center; }
.rv-gate::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed oklch(0.86 0.165 92 / .45); }
.rv-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 10px; border-radius: var(--r-pill); background: var(--signal); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.rv-chip .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.rv-in { position: relative; display: grid; gap: 8px; margin: 0; padding: 0 0 0 18px; list-style: none; }
.rv-in::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 2px; border-radius: 1px; background: oklch(1 0 0 / .14); }
.rv-in li { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 12px; }
.rv-in li::before { content: ""; position: absolute; left: -18px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--dark-2); box-shadow: inset 0 0 0 2px var(--signal); }
.rv-in img { height: auto; aspect-ratio: 4 / 3; border-radius: var(--r-s); }
.rv-in span { font-size: 14.5px; font-weight: 650; line-height: 1.25; color: var(--on-dark); }
.rv-in em { display: block; margin-top: 4px; font: 500 var(--t-label)/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); }
.rv-in .is-late { margin-top: 14px; }

/* 03: a reference, three things borrowed, your own frame */
.sv { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 22px; }
.sv-side { display: contents; }
.sv-side:first-child > * { grid-column: 1; }
.sv-side:last-child > * { grid-column: 3; }
.sv .tx-lab { grid-row: 1; }
.sv-tile { grid-row: 2; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-s); }
.sv-ref { background: var(--dark); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .1); }
.sv-out { box-shadow: 0 0 0 2px var(--signal); }
.sv-out img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sv-aa { position: absolute; left: 9%; top: 10%; color: var(--on-dark); font-size: clamp(22px, 8cqw, 44px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.sv-meter { position: absolute; right: 9%; top: 14%; display: flex; align-items: flex-end; gap: 3px; height: 24%; }
.sv-meter i { width: 4px; border-radius: 1px; background: var(--signal); }
.sv-meter i:nth-child(1) { height: 40%; } .sv-meter i:nth-child(2) { height: 75%; } .sv-meter i:nth-child(3) { height: 100%; } .sv-meter i:nth-child(4) { height: 60%; } .sv-meter i:nth-child(5) { height: 85%; }
.sv-cuts { position: absolute; left: 8%; right: 8%; bottom: 14%; height: 2px; border-radius: 1px; background: oklch(1 0 0 / .28); }
.sv-cuts i { position: absolute; top: -4px; width: 2px; height: 10px; border-radius: 1px; background: var(--card); }
.sv-out .sv-cuts { background: oklch(0.185 0.01 70 / .25); }
.sv-out .sv-cuts i { background: var(--signal); }
.sv-cuts i:nth-child(1) { left: 0; } .sv-cuts i:nth-child(2) { left: 22%; } .sv-cuts i:nth-child(3) { left: 34%; } .sv-cuts i:nth-child(4) { left: 43%; } .sv-cuts i:nth-child(5) { left: 64%; } .sv-cuts i:nth-child(6) { left: 72%; } .sv-cuts i:nth-child(7) { left: calc(100% - 2px); }
.sv-lanes { grid-column: 2; grid-row: 2; align-self: center; display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; isolation: isolate; }
.sv-lanes li { position: relative; padding: 6px 10px; border-radius: var(--r-pill); background: var(--dark-3); box-shadow: inset 0 0 0 1px oklch(0.86 0.165 92 / .45); color: var(--on-dark); font: 500 var(--t-label)/1.1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.sv-lanes li::before { content: ""; position: absolute; left: -22px; right: -16px; top: 50%; z-index: -1; height: 1px; background: oklch(0.86 0.165 92 / .6); }
.sv-lanes li::after { content: ""; position: absolute; right: -21px; top: 50%; margin-top: -4px; border-left: 6px solid oklch(0.86 0.165 92 / .8); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.sv-lanes .is-no { background: transparent; box-shadow: inset 0 0 0 1px oklch(1 0 0 / .14); color: var(--on-dark-soft); text-decoration: line-through; text-decoration-thickness: 1px; }
.sv-lanes .is-no::before { right: 50%; background: oklch(1 0 0 / .14); }
.sv-lanes .is-no::after { display: none; }

@container (max-width: 470px) {
  .rv { grid-template-columns: 1fr; row-gap: 14px; }
  .rv-files { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
  .rv-files li { aspect-ratio: 1; border-radius: 6px; }
  .rv-gate { height: 34px; }
  .rv-gate::before { top: 50%; bottom: auto; left: 0; right: 0; border-left: 0; border-top: 2px dashed oklch(0.86 0.165 92 / .45); }
  .rv-in { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; }
  .rv-in::before, .rv-in li::before { display: none; }
  .rv-in li { grid-template-columns: 1fr; align-items: start; gap: 8px; }
  .rv-in .is-late { margin-top: 0; }
  .rv-in span { font-size: 13.5px; }
  .sv { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; column-gap: 12px; }
  .sv-side:last-child > * { grid-column: 2; }
  .sv-lanes { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
  .sv-lanes li::before, .sv-lanes li::after { display: none; }
  .sv .tx-lab em { display: none; }
}

/* ---------- setup: one recommended stack ---------- */
.st-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; margin-bottom: 36px; }
.st-head .eyebrow { margin-bottom: 14px; }
.st-sub { max-width: 440px; font-size: var(--t-body); line-height: 1.55; color: var(--text); }
.st-stack { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr) minmax(0, 1.8fr); padding: 8px; border-radius: var(--r-xl); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .08), 0 40px 90px -56px oklch(0.185 0.01 70 / .45); }
.st-cell { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px 26px 26px; color: var(--text); text-decoration: none; }
.st-cell h3 { color: var(--ink); font-size: 22px; letter-spacing: -0.025em; line-height: 1.15; }
.st-cell > p:last-child { font-size: var(--t-small); line-height: 1.5; }
.st-role { display: flex; align-items: center; gap: 8px; font: 500 var(--t-label)/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.st-role .ic { width: 16px; height: 16px; color: var(--signal-ink); }
.st-main { border-radius: var(--r-l); background: var(--ink); color: var(--on-dark-2); }
.st-main h3 { color: var(--on-dark); }
.st-main .st-role { color: var(--signal); }
.st-main .st-role .ic { color: var(--signal); }
.st-set { display: grid; margin: 4px 0 2px; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .14); }
.st-set div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 12px; }
.st-set div + div { border-top: 1px solid oklch(1 0 0 / .1); }
.st-set dt { font: 500 var(--t-label)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); }
.st-set dd { margin: 0; color: var(--on-dark); font-size: var(--t-small); font-weight: 700; }
.st-steps { display: grid; margin: 4px 0 2px; padding: 0; list-style: none; counter-reset: sts; border-radius: var(--r-s); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.st-steps li { counter-increment: sts; display: flex; align-items: baseline; gap: 12px; padding: 9px 12px; color: var(--ink); font-size: var(--t-small); font-weight: 650; line-height: 1.2; }
.st-steps li + li { border-top: 1px solid var(--line); }
.st-steps li::before { content: counter(sts); min-width: 12px; font: 500 var(--t-label)/1 var(--mono); color: var(--signal-ink); }
.st-opt { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; margin-left: 8px; border-radius: var(--r-l); background: var(--paper); }
.st-opt-lab { grid-column: 1 / -1; padding: 20px 26px 0; font: 500 var(--t-label)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--signal-ink); }
.st-opt .st-cell { padding-top: 16px; }
.st-opt .st-cell + .st-cell { border-left: 1px solid var(--line); }
.st-opt .st-cell > p:last-child { font-size: var(--t-small); }
.st-kit { border-radius: 0 var(--r-l) var(--r-l) 0; transition: background .2s; }
.st-kit h3 { display: flex; align-items: center; gap: 8px; transition: color .2s; }
.st-arrow { width: 18px; height: 18px; stroke-width: 2.2; color: var(--signal-ink); transition: transform .25s; }
.st-kit:hover { background: oklch(0.86 0.165 92 / .06); }
.st-kit:hover h3 { color: var(--signal-ink); }
.st-kit:hover .st-arrow { transform: translateY(3px); }
.st-kit:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: -2px; }

/* ---------- tablets and phones ---------- */
@media (max-width: 1080px) {
  .st-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-opt { grid-column: 1 / -1; margin: 8px 0 0; }
  .st-kit { border-radius: 0 0 var(--r-l) 0; }
}
@media (max-width: 900px) {
  .lx-head { grid-template-columns: 1fr; }
  .lx-lede { justify-self: start; max-width: 620px; }
  .tx-pair { grid-template-columns: 1fr; grid-template-rows: none; margin-top: 56px; }
  .tx-truth, .tx-truth + .tx-truth { grid-row: auto; grid-template-rows: none; padding: 36px 0 0; border-left: 0; }
  .tx-truth + .tx-truth { margin-top: 36px; border-top: 1px solid oklch(1 0 0 / .1); }
}
@media (max-width: 640px) {
  .lx { gap: 22px; }
  .lx-head h3 { font-size: clamp(30px, 8.6vw, 38px); }
  .lx-lede { font-size: var(--t-body); }
  .lx-machine { padding: 10px; border-radius: var(--r-l); }
  .lx-console { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 4px 2px 16px; }
  .lx-act { display: contents; }
  .lx-pull { grid-column: 1; grid-row: 1; height: 58px; padding: 0 20px; }
  .lx-count { grid-column: 2; grid-row: 1; gap: 6px; }
  .lx-count > div { min-width: 0; padding: 9px 12px 10px; }
  .lx-count dd { font-size: 22px; margin-top: 6px; }
  .lx-count dt { font-size: 12px; letter-spacing: .04em; }
  .lx-model { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; }
  .lx-model button { height: 44px; padding: 0 10px; }
  .lx-reels { grid-template-columns: 1fr; gap: 14px; }
  .lx-cap { padding-bottom: 7px; }
  .lx-read { padding: 14px 4px 2px; }
  .lx-status { font-size: var(--t-body); }
  .lx-foot { font-size: var(--t-body); }
  .tx-vis { padding: 16px; }
  .tx-text p { font-size: var(--t-body); }
  .st-head { margin-bottom: 28px; }
  .st-stack { grid-template-columns: 1fr; padding: 6px; border-radius: var(--r-l); }
  .st-main { border-radius: calc(var(--r-l) - 6px); }
  .st-cell { padding: 20px 20px 22px; }
  .st-opt { grid-template-columns: 1fr; margin-top: 6px; border-radius: calc(var(--r-l) - 6px); }
  .st-opt-lab { padding: 18px 20px 0; }
  .st-opt .st-cell + .st-cell { border-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .st-kit { border-radius: 0 0 calc(var(--r-l) - 6px) calc(var(--r-l) - 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .lx.is-busy .lx-pull .ic, .lx.is-jackpot .lx-reels { animation: none; }
  .lx-state { animation: none !important; }
}

/* =========================================================
   v12 replay
   The real Stripe production as one production log: a dark stage (latest frame, transport,
   latest note) above a light time chart, all in one card. The chart is drawn at its real
   pixel width so every label keeps its set size; phones get a compact log instead of the chart.
   ========================================================= */
.replay { padding: 104px 0 88px; }
.rp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-bottom: 32px; }
.rp-title > p:last-child { max-width: 620px; margin-top: 12px; font-size: 18px; text-wrap: pretty; }
.rp-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.rp-stats li { display: flex; flex-direction: column; min-width: 96px; padding-left: 16px; border-left: 1px solid var(--line); }
.rp-stats b { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rp-stats span { margin-top: 6px; font-size: 13px; line-height: 1.3; color: var(--soft); max-width: 120px; }

/* one card: stage on top, chart below, legend as the footer */
.rp-deck { padding: 10px; border-radius: var(--r-xl); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .07), 0 40px 80px -56px oklch(0.185 0.01 70 / .45); }
.rp-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "screen note" "bar bar"; padding: 12px; border-radius: calc(var(--r-xl) - 10px); background: var(--ink); color: var(--on-dark-2); }

.rp-screen { grid-area: screen; align-self: center; position: relative; margin: 0; border-radius: var(--r-m); overflow: hidden; background: oklch(0 0 0); aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px oklch(0.93 0.016 82 / .08); }
.rp-screen img { width: 100%; height: 100%; object-fit: cover; }
.rp-screen figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); display: flex; align-items: baseline; gap: 10px; padding: 6px 12px; border-radius: var(--r-pill); background: oklch(0.165 0.008 70 / .78); color: var(--on-dark); font: 500 var(--t-label)/1.35 var(--mono); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rp-cap-k { color: var(--signal); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }

/* transport: sits right under the frame */
.rp-bar { grid-area: bar; display: flex; align-items: center; gap: 18px; padding: 14px 6px 4px; }
.rp-play { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px 0 16px; border: 0; border-radius: var(--r-pill); background: var(--signal); color: var(--ink); font: 650 15.5px var(--sans); cursor: pointer; transition: background-color .2s, scale .15s; }
.rp-play:hover { background: var(--signal-strong); } .rp-play:active { scale: .96; }
.rp-play:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.rp-play span { min-width: 5.6em; text-align: left; }
.rp-play svg { width: 18px; height: 18px; fill: currentColor; }
.rp-play .i-pause, .replay.is-playing .rp-play .i-play { display: none; }
.replay.is-playing .rp-play .i-pause { display: block; }
.rp-track { position: relative; flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; }
.rp-scrub { --p: 0; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer; }
.rp-scrub::-webkit-slider-runnable-track { height: 6px; border-radius: var(--r-pill); background: linear-gradient(to right, var(--signal) calc(9px + (100% - 18px) * var(--p)), oklch(0.93 0.016 82 / .16) 0); }
.rp-scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border: 0; border-radius: 50%; background: var(--card); box-shadow: 0 1px 4px oklch(0 0 0 / .5); }
.rp-scrub::-moz-range-track { height: 6px; border-radius: var(--r-pill); background: oklch(0.93 0.016 82 / .16); }
.rp-scrub::-moz-range-progress { height: 6px; border-radius: var(--r-pill); background: var(--signal); }
.rp-scrub::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--card); box-shadow: 0 1px 4px oklch(0 0 0 / .5); }
.rp-scrub:focus { outline: none; }
.rp-scrub:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: var(--r-pill); }
.rp-ticks { position: absolute; left: 9px; right: 9px; top: 50%; height: 0; pointer-events: none; }
.rp-ticks i { position: absolute; left: calc(var(--at) * 100%); top: -12px; width: 2px; height: 6px; margin-left: -1px; border-radius: 1px; background: var(--signal); opacity: .75; }
.rp-clock { flex: none; min-width: 118px; text-align: right; font: 500 13px var(--mono); color: var(--on-dark); font-variant-numeric: tabular-nums; }
.rp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the latest note: my words in the site's serif italic, what happened next in plain text */
.rp-note { grid-area: note; display: grid; align-items: center; min-width: 0; padding: 24px 30px 24px 38px; }
.rp-note-in { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rp-ghost { visibility: hidden; pointer-events: none; }
.rp-note-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.rp-when, .rp-nnum, .rp-next-k { margin: 0; font: 500 var(--t-label)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.rp-when { color: var(--signal); }
.rp-nnum { color: var(--on-dark-soft); letter-spacing: .04em; white-space: nowrap; }
.rp-quote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 2.3vw, 33px); line-height: 1.17; letter-spacing: -0.005em; color: var(--on-dark); text-wrap: balance; }
.rp-note-in:not(.is-rest) .rp-quote { text-indent: -0.4em; }
.rp-note-in:not(.is-rest) .rp-quote::before { content: "\201C"; }
.rp-note-in:not(.is-rest) .rp-quote::after { content: "\201D"; }
.rp-note-in.is-rest .rp-quote { color: var(--on-dark); }
.rp-next { padding-top: 16px; border-top: 1px solid oklch(0.93 0.016 82 / .12); }
.rp-next-k { margin-bottom: 6px; color: var(--on-dark-soft); }
.rp-then { margin: 0; font-size: 16px; line-height: 1.5; color: var(--on-dark-2); text-wrap: pretty; }
.rp-note-in.is-rest .rp-next { padding-top: 0; border-top: 0; }
.rp-note-in.is-rest .rp-next-k { display: none; }

/* the chart */
.rp-chart { padding: 24px 22px 8px 24px; }
.rp-chart svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.rp-day { font: 500 var(--t-label) var(--mono); fill: var(--soft); letter-spacing: .04em; }
.rp-daydiv { stroke: var(--paper-2); stroke-width: 1; }
.rp-axis { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.rp-lane { stroke: var(--paper-2); stroke-width: 1; }
.rp-lane-main { stroke: var(--line); stroke-width: 2; }
.rp-lane-notes { stroke: var(--line); stroke-dasharray: 1 5; stroke-linecap: round; stroke-width: 1.5; }
.rp-sep { stroke: var(--line); stroke-width: 1; }
.rp-lname { font-size: 14px; fill: var(--text); }
.rp-lane-main-name { font-weight: 700; fill: var(--ink); }
.rp-lane-notes-name { font-weight: 700; fill: var(--signal-ink); }
.rp-lcount { font: 500 var(--t-label) var(--mono); fill: var(--soft); }
.rp-ph { pointer-events: none; }
.rp-ph line { stroke: var(--signal-strong); stroke-width: 2; }
.rp-ph path { fill: var(--signal); }
.rp-s { fill: var(--line); transition: fill .25s; }
.rp-s.is-on { fill: var(--ink); }
.rp-v circle, .rp-v path { fill: var(--card); stroke: var(--line-2); stroke-width: 1.5; transition: fill .25s, stroke .25s; }
.rp-v text, .rp-day { paint-order: stroke; stroke: var(--card); stroke-width: 5px; stroke-linejoin: round; }
.rp-v text { font-size: 12px; font-weight: 700; fill: var(--mute); transition: fill .25s; }
.rp-v.is-on text { fill: var(--ink); }
.rp-v.rp-chat.is-on circle { stroke: var(--ink); stroke-width: 2; }
.rp-v.rp-cc.is-on circle { fill: var(--mid); stroke: var(--mid); }
.rp-v.rp-cx.is-on circle { fill: var(--ink); stroke: var(--ink); }
.rp-v.rp-ok.is-on path { fill: var(--signal); stroke: var(--signal-strong); }
.rp-v.is-cur circle, .rp-v.is-cur path { stroke: var(--signal-strong); stroke-width: 3; }
.rp-v.is-cur text { fill: var(--signal-ink); }
.rp-pin { cursor: pointer; outline: none; }
.rp-pin circle { fill: var(--card); stroke: var(--line-2); stroke-width: 1.5; transition: fill .25s, stroke .25s; }
.rp-pin text { font: 500 var(--t-label) var(--mono); fill: var(--mute); pointer-events: none; transition: fill .25s; }
.rp-pin-lead { fill: none; stroke: var(--line-2); stroke-width: 1; }
.rp-pin:hover circle { stroke: var(--signal-ink); }
.rp-pin.is-on circle { stroke: var(--signal-strong); }
.rp-pin.is-on text { fill: var(--signal-ink); }
.rp-pin.is-on .rp-pin-lead { stroke: var(--signal-strong); }
.rp-pin.is-cur circle { fill: var(--signal); stroke: var(--signal-strong); }
.rp-pin.is-cur text { fill: var(--ink); }
.rp-pin.is-cur .rp-pin-lead { stroke: var(--signal-strong); }
.rp-pin:focus-visible circle { stroke: var(--ink); stroke-width: 3; }

/* legend: the card's footer */
.rp-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 14px 24px 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text); }
.rp-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; }
.lg-chat { box-shadow: inset 0 0 0 2px var(--ink); } .lg-cc { background: var(--mid); } .lg-cx { background: var(--ink); }
.lg-ok { background: var(--signal); border-radius: 2px; rotate: 45deg; width: 10px; height: 10px; }
.lg-pin { background: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.lg-gap { width: 20px; height: 2px; border-radius: 0; background: linear-gradient(to right, var(--mute) 0 7px, transparent 7px 13px, var(--mute) 13px); }

/* phone log: replaces the chart on small screens */
.rp-mini { display: none; }
.rm-block { padding: 16px 6px 14px; border-top: 1px solid var(--line); }
.rm-block:first-child { border-top: 0; }
.rm-k { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: var(--t-small); font-weight: 700; color: var(--ink); }
.rm-k b { font: 500 var(--t-label) var(--mono); color: var(--soft); letter-spacing: .02em; }
.rm-days { display: flex; gap: 6px; }
.rm-day { flex: var(--n, 1) 1 auto; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rm-day span { font: 500 var(--t-label) var(--mono); color: var(--soft); white-space: nowrap; }
.rm-vs { display: flex; flex-wrap: wrap; gap: 4px; min-height: 13px; padding-bottom: 8px; border-bottom: 1.5px solid var(--line); }
.rm-v { width: 11px; height: 11px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color .25s, box-shadow .25s; }
.rm-v.is-on.rm-chat { box-shadow: inset 0 0 0 2px var(--ink); }
.rm-v.is-on.rm-cc { background: var(--mid); box-shadow: none; }
.rm-v.is-on.rm-cx { background: var(--ink); box-shadow: none; }
.rm-v.rm-ok { width: 10px; height: 10px; margin: .5px 1px; border-radius: 2px; rotate: 45deg; }
.rm-v.is-on.rm-ok { background: var(--signal); box-shadow: none; }
.rm-v.is-cur { outline: 2px solid var(--signal-ink); outline-offset: 2px; }
.rm-pins { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.rm-pin { height: 36px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); color: var(--soft); font: 500 var(--t-label) var(--mono); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.rm-pin.is-on { color: var(--signal-ink); border-color: var(--signal-strong); }
.rm-pin.is-cur { background: var(--signal); border-color: var(--signal-strong); color: var(--ink); }
.rm-lanes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rm-lanes li { display: grid; grid-template-columns: 128px minmax(0, 1fr) 24px; align-items: center; gap: 10px; font-size: 14px; line-height: 1.2; color: var(--text); }
.rm-dots { display: flex; flex-wrap: wrap; gap: 3px; }
.rm-dots i { width: 4px; height: 14px; border-radius: 2px; background: var(--line); transition: background-color .25s; }
.rm-dots i.is-on { background: var(--ink); }
.rm-lanes b { font: 500 var(--t-label) var(--mono); color: var(--soft); text-align: right; }

@media (max-width: 1180px) {
  .rp-head { grid-template-columns: 1fr; }
}
@media (min-width: 701px) and (max-width: 900px) {
  /* frame and transport as one group beside the note */
  .rp-stage { grid-template-rows: 1fr auto auto 1fr; grid-template-areas: ". note" "screen note" "bar note" ". note"; }
  .rp-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "play clock" "track track"; gap: 6px 12px; padding: 12px 4px 0; }
  .rp-play { grid-area: play; } .rp-clock { grid-area: clock; min-width: 0; } .rp-track { grid-area: track; }
  .rp-cap-k { display: none; }
}
@media (max-width: 900px) {
  .rp-note { padding: 18px 16px 18px 26px; }
  .rp-note-in { gap: 14px; }
  .rp-quote { font-size: 25px; }
  .rp-then { font-size: var(--t-small); }
}
@media (max-width: 700px) {
  .replay { padding: 64px 0 56px; }
  .rp-head { margin-bottom: 24px; }
  .rp-stats { gap: 12px; } .rp-stats li { min-width: 0; padding-left: 10px; } .rp-stats b { font-size: 32px; }
  .rp-deck { padding: 8px; border-radius: var(--r-l); }
  .rp-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "screen" "bar" "note"; padding: 8px; border-radius: calc(var(--r-l) - 8px); }
  .rp-screen { border-radius: var(--r-s); }
  .rp-screen figcaption { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 5px 10px; }
  .rp-cap-k { display: none; }
  .rp-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "play clock" "track track"; gap: 6px 12px; padding: 12px 4px 2px; }
  .rp-play { grid-area: play; }
  .rp-clock { grid-area: clock; min-width: 0; }
  .rp-track { grid-area: track; }
  .rp-note { padding: 16px 10px 12px 18px; }
  .rp-quote { font-size: 23px; }
  .rp-then { font-size: var(--t-small); }
  .rp-legend .lg-gap-item { display: none; }
  .rp-chart { display: none; }
  .rp-mini { display: block; padding: 4px 4px 0; }
  .rp-legend { gap: 6px 16px; padding: 12px 10px 10px; font-size: 13px; }
}
@media (max-width: 380px) {
  .rm-days { gap: 4px; } .rm-vs { gap: 3px; } .rm-v { width: 9px; height: 9px; } .rm-v.rm-ok { width: 8px; height: 8px; }
  .rm-lanes li { grid-template-columns: 124px minmax(0, 1fr) 22px; gap: 8px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-s, .rp-v circle, .rp-v path, .rp-v text, .rp-pin circle, .rp-pin text, .rm-v, .rm-dots i, .rm-pin { transition: none; }
}

/* =========================================================
   v13 type + colour: film leader
   Three families: Fraunces for display (headlines, poster titles, big numbers, quotes),
   Schibsted Grotesk for text and UI, DM Mono for labels, timecodes and counters.
   Sizes come from the scale in :root (--t-*). Colours come from the OKLCH tokens.
   ========================================================= */
html { font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font: 400 var(--t-body)/1.6 var(--sans); color: var(--text); }
::selection { background: var(--signal); color: var(--ink); }
code { font: 500 .88em var(--mono); }

/* display: Fraunces, optical size follows the rendered size, a little softness on the terminals */
:where(main, dialog) :is(h1, h2, h3, h4), .fc-title, .w2-t, .po-bignum, .rp-stats b, .lx-count dd, .kit-stats b {
  font-family: var(--display); font-optical-sizing: auto; font-variation-settings: "SOFT" 30, "WONK" 0;
}
:where(main, dialog) :is(h1, h2) { font-weight: 500; line-height: 1.06; letter-spacing: -0.022em; text-wrap: balance; }
:where(main, dialog) :is(h3, h4) { font-weight: 560; line-height: 1.14; letter-spacing: -0.012em; text-wrap: balance; }

/* the scale, by role; each level is smaller than the one above it */
main h2.one, .section-head h2, .bg3-head h2 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.022em; }
.po-head h2, .recap2 h2 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.026em; }
.lx-head h3 { font-size: var(--t-feature); line-height: 1.06; letter-spacing: -0.02em; font-weight: 500; }
.tx-text h3, .bgp-head h3, .h2-head h3, .kit-sub, .support h2 { font-size: var(--t-h3); line-height: 1.12; letter-spacing: -0.016em; }
.st-cell h3, .tip h3, .lcol h4 { font-size: var(--t-h4); letter-spacing: -0.01em; }
.support h2 span + span { font-weight: 400; }
.th-name { font-weight: 520; letter-spacing: -0.016em; }

/* emphasis comes from the same family, the way the hero does it: lighter, softer, a little wonky */
.po-head h2 span + span, .recap2 h2 .rc-grad {
  font-family: var(--display); font-style: normal; font-weight: 300; font-size: 1em; line-height: inherit;
  letter-spacing: -0.015em; font-variation-settings: "SOFT" 100, "WONK" 1;
}
.po-head h2 span + span { color: var(--signal-ink); }
.recap2 h2 .rc-grad { color: var(--signal); }
/* the hero h1 stays the largest heading: optical size now follows the size, so the column fit is retuned */
.hero-title { font-size: min(72px, 100cqi / 11.8); }
@media (min-width: 621px) { .hero-title { font-size: min(64px, 100cqi / 11.2); } }
.ht-line { font-optical-sizing: auto; font-variation-settings: "SOFT" 0, "WONK" 0; }
.ht-second { font-variation-settings: "SOFT" 100, "WONK" 1; }

/* quotes stay a quote: Fraunces italic, only where the words are someone's note */
.rp-quote { font-family: var(--display); font-style: italic; font-weight: 360; font-optical-sizing: auto; font-variation-settings: "SOFT" 60, "WONK" 0; letter-spacing: -0.012em; line-height: 1.16; }

/* big numbers: Fraunces, lining and tabular */
.rp-stats b { font-size: var(--t-num); font-weight: 500; letter-spacing: -0.03em; }
.lx-count dd, .kit-stats b { font-weight: 500; letter-spacing: -0.02em; }
.rp-stats b, .lx-count dd, .kit-stats b, .po-bignum { font-variant-numeric: lining-nums tabular-nums; }
.po-bignum { font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 0; letter-spacing: -0.03em; }
.fc-title { font-weight: 520; letter-spacing: -0.012em; }
.fc-stripe .fc-title { font-weight: 500; letter-spacing: -0.022em; }
.w2-t { font-weight: 560; letter-spacing: -0.015em; }

/* labels: small mono caps with room between the letters, like a slate */
.eyebrow, .ch-label, .route-tag, .ls-tag, .o3-when, .also-label, .dl-or, .bf p { font-family: var(--mono); font-size: var(--t-label) !important; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.po-head .ch-step b { font-family: var(--mono); font-size: var(--t-label); font-weight: 500; letter-spacing: .12em; }
.po-foot .ch-joe span::before, .po-foot .ch-done b, .po-sign { font-family: var(--mono); font-size: var(--t-label); font-weight: 500; letter-spacing: .12em; }
/* the sans caps that were labels become mono labels too */
.ev-core-label, .ln-label, .bt-label, .tl-name, .prompt-top, .skill2 em, .ct-head > span, .skill-tag, .reel-label, .said::before,
.decision b, .status, .hud-label, .map-label, .tt-when, .tc-role, .tr-phase, .duel-ask span, .way-n, .bc-label span, .ev-tag,
.o3-bar span, .deck-next span, .rp-cap-k, .yt-count, .lcol-here, .lc-here, .rc-loop li:nth-child(4)::after {
  font-family: var(--mono); font-size: var(--t-label) !important; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}

/* numbers that change or line up: tabular */
.wr-ruler, .wr-time, .wr-sum b, .rp-day, .rm-day span, .rp-lcount, .lx-odds, .tc-bar strong, .rv-time, .dv-dur, .way-badge, .og-when, .rm-pin, .rp-pin text, .mn-ic em, .deck-pills i { font-variant-numeric: tabular-nums; }

/* lead paragraphs, capped near 65 characters */
.bg3-head > p:last-child, .og-head > p:last-child, .mm-head > p:last-child, .rp-title > p:last-child, .po-head .ch-sub, .lx-lede { font-size: var(--t-lead); line-height: 1.55; }
.bg3-head > p:last-child, .og-head > p:last-child, .mm-head > p:last-child, .rp-title > p:last-child, .po-head .ch-sub, .bgp-sub { max-width: 65ch; }

/* ---------- colour: text on a yellow fill is ink ---------- */
.chapter.is-current .ch-n, .rc-in-loop .rc-ic, .t-rem, .og-now .og-mono, .duel-note .duel-k i, .wc-2 .wr-sum b, .f0 .no span,
.cue-buttons button.is-playing, .cue-buttons button.is-playing span { color: var(--ink); }
.duel.is-noted .duel-go { color: var(--on-dark); }
.skill2-main, .skill2-main b, .skill2-main .sk-name, .skill2-main em, .skill2-main p { color: var(--ink); }
.skill2-main .sk-ic { background: oklch(0.185 0.01 70 / .1); color: var(--ink); }
.skill2-main code { background: oklch(0.185 0.01 70 / .1); color: var(--ink); }
.skill2-main:hover { box-shadow: 0 0 0 1px var(--signal-strong), 0 18px 36px -18px oklch(0 0 0 / .6); }

/* disclosure hints: mono caps; the open state swaps the word with font-size 0, so no !important here */
.yt > summary em, .drawer summary em { font-family: var(--mono); font-size: var(--t-label); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.yt[open] > summary em::after { font-size: var(--t-label); }

/* the kit panel label sits on the dark card: neutral words, a yellow pill with ink */
.bc-label { color: var(--on-dark-2); }
.bc-label span { background: var(--signal); color: var(--ink); }

/* 621 to 900px: the time chart stacks name over bar, so the bar, its value and its tag fit
   (at 701px the tag ran 41px past the viewport; this was the page overflow, not the steps deck) */
@media (min-width: 621px) and (max-width: 900px) {
  .timechart li { grid-template-columns: 1fr; gap: 6px; }
}

.tag-muted { color: var(--on-dark); }

/* light chips inside dark bands: accent text drops to ochre, play discs turn into yellow leader dots */
.th-chapters button.is-on b, .dl-hero i, .dl-main i { color: var(--signal-ink); }
.fcard:hover .fc-dur svg, .fcard:focus-visible .fc-dur svg { fill: var(--ink); }
.duel.is-noted .duel-msg .ic { color: var(--signal-ink); }
.hs-note b { color: var(--soft); }
.th-big, .lp-play, .hero-play { background: var(--signal); }
.th-big svg, .lp-play svg, .hero-play svg { fill: var(--ink); }

/* =========================================================
   v13 posters
   Each step is one poster that reads on its own as a screenshot:
   a chapter numeral, the headline, one visual, one "Done when" line.
   At 1440x900 a poster fits under the sticky deck bar; on phones it
   stays near one and a half screens. "What I did" sits under the poster,
   then any hands-on extras, then Your turn.
   Fresh class prefixes (pv-, s1- to s8-) so the older poster rules do not apply.
   ========================================================= */
.poster.pv { padding: 30px 40px 20px; }
.pv-head { display: grid; grid-template-columns: auto minmax(0, max-content) minmax(0, 1fr); grid-template-areas: "num kick sub" "num h2 sub"; column-gap: 28px; align-items: end; max-width: none; margin: 0 0 24px; text-align: left; }
.pv-num { grid-area: num; align-self: stretch; display: flex; align-items: flex-end; margin: 0; padding-right: 26px; border-right: 1px solid var(--line); font-family: var(--display); font-size: 118px; font-weight: 300; line-height: .76; letter-spacing: -0.045em; color: var(--ink); font-optical-sizing: auto; font-variation-settings: "SOFT" 100, "WONK" 0; font-variant-numeric: lining-nums tabular-nums; }
.pv-kick { grid-area: kick; display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 500 var(--t-label)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal-ink); }
.pv-kick::before { content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--signal); }
.pv-head h2 { grid-area: h2; margin: 0; font-size: var(--t-display); font-weight: 500; line-height: 1.02; letter-spacing: -0.026em; color: var(--ink); text-wrap: balance; }
.pv-head h2:focus { outline: none; }
.pv-head h2 span { display: block; }
.pv-head h2 span + span { color: var(--signal-ink); font-weight: 300; letter-spacing: -0.015em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.pv-head .ch-sub { grid-area: sub; align-self: end; justify-self: end; max-width: 34ch; margin: 0 0 4px; font-size: 16.5px; line-height: 1.5; color: var(--text); text-wrap: pretty; }
@media (min-width: 900px) { .pv-head h2 span { white-space: nowrap; } }
.pv-vis { position: relative; margin: 0; }
.pv-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.pv-foot .ch-done { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 16px; line-height: 1.4; color: var(--ink); }
.pv-foot .ch-done .ic { flex: none; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--signal); color: var(--ink); stroke-width: 2.6; }
.pv-foot .ch-done b { margin-right: 8px; font: 500 var(--t-label)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal-ink); }
.pv-mark { flex: none; margin: 0; font: 500 var(--t-label)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* under the poster: what I did, then the extras, then Your turn; all on the poster's width */
.pv-by.ch-joe { display: flex; justify-content: flex-start; gap: 14px; max-width: none; margin: 18px 0 0; padding: 0 6px; font-size: 16px; line-height: 1.55; color: var(--text); text-align: left; }
.pv-by.ch-joe img { flex: none; width: 36px; height: 36px; margin: 2px 0 0; border-radius: 50%; }
.pv-by.ch-joe span { max-width: 78ch; }
.pv-by.ch-joe span::before { content: "What I did"; display: block; margin: 0 0 4px; font: 500 var(--t-label)/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal-ink); }
.deck .chapter .ch-do { max-width: none; margin: 20px 0 0; }
.deck .chapter .ch-do .ch-act { max-width: none; margin: 0; }
.deck .chapter .pv-annex { margin: 24px 0 0; }
.pv-annex-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 0 0 14px; }
.pv-annex-t { margin: 0; font: 650 17px/1.3 var(--sans); letter-spacing: -0.005em; color: var(--ink); }
.pv-annex-t span { margin-left: 8px; font-weight: 400; color: var(--soft); }
.pv-annex-hint { margin: 0; font: 500 var(--t-label)/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.pv-annex.vague, .pv-annex .craft-card { padding: 20px; border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.pv-annex.vague .flip { border-radius: var(--r-m); background: var(--paper); border-color: var(--line); min-height: 118px; }
.pv-annex.vague .flip.is-on { background: var(--card); border-color: var(--signal-strong); }
.pv-annex.craft { gap: 16px; }
.pv-annex .craft-card .pv-annex-head { margin-bottom: 14px; }
.pv-annex .craft-q { margin: 14px 0 0; }
.pv-annex .craft-card .drawer { margin-top: 14px; }

/* 1. the brief in the middle, the proof on both sides */
.sv1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.s1-col { display: grid; gap: 10px; }
.s1-ev { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; margin: 0; padding: 7px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 10px 24px -20px oklch(0.185 0.01 70 / .5); }
.s1-ev img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-s); background: var(--paper-2); }
.s1-ev figcaption { font-size: 14px; line-height: 1.35; color: var(--soft); }
.s1-ev b { display: block; font-size: 15.5px; font-weight: 650; color: var(--ink); }
.s1-ev::after { content: ""; position: absolute; top: 50%; width: 44px; border-top: 1.5px dashed var(--signal-strong); }
.s1-l .s1-ev::after { left: 100%; }
.s1-r .s1-ev::after { right: 100%; }
.s1-brief { padding: 22px 24px; border-radius: var(--r-l); background: var(--dark); color: var(--on-dark-2); box-shadow: 0 24px 48px -30px oklch(0.185 0.01 70 / .7); }
.s1-label { margin: 0 0 14px; font: 500 var(--t-label)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal); }
.s1-brief dl { display: grid; gap: 12px; margin: 0; }
.s1-brief dt { font-size: 13px; color: var(--on-dark-soft); }
.s1-brief dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--on-dark); }
.s1-folder { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--signal); text-decoration: none; }
.s1-folder:hover { text-decoration: underline; text-underline-offset: 3px; }
.s1-folder .ic { width: 16px; height: 16px; flex: none; }

/* 2. the narration on top, each phrase dropping onto its picture */
.sv2 { --lab: 92px; padding: 18px 20px 16px; border-radius: var(--r-l); background: var(--dark); color: var(--on-dark-2); }
.s2-track { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 14px; }
.s2-label { font: 500 var(--t-label)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); }
.s2-wave { position: relative; height: 44px; }
.sv2 .bt-wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.sv2 .bt-wave rect { fill: var(--on-dark-soft); opacity: .55; }
.s2-head { position: absolute; top: -5px; bottom: -5px; left: 0; width: 2px; border-radius: 1px; background: var(--signal); animation: s2-head 8s linear infinite; }
@keyframes s2-head { from { left: 0; } to { left: 100%; } }
.s2-beats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: 12px; margin: 0 0 0 calc(var(--lab) + 14px); padding: 0; }
.s2-beats li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.s2-word { position: relative; margin: 0 0 16px; min-height: 64px; padding: 9px 11px; border-radius: var(--r-s); background: oklch(1 0 0 / .06); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .1); font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--on-dark); }
/* the phrase being spoken lights up as the playhead passes it */
.s2-word { animation: s2-word 8s linear infinite; animation-delay: calc(var(--i) * 2s - 8s); }
@keyframes s2-word { 0%, 24% { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--signal); } 25.5%, 100% { color: var(--on-dark-soft); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .1); } }
.s2-word::after { content: ""; position: absolute; left: 50%; top: 100%; height: 16px; border-left: 2px dotted var(--signal); }
.s2-beats img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-s); outline: 1px solid oklch(1 0 0 / .1); outline-offset: -1px; }
.s2-cap { margin: 8px 0 0; font-size: 13.5px; line-height: 1.3; color: var(--on-dark-soft); }

/* 3. the whole film once: a strip, what worked, what did not */
.sv3 .filmstrip { padding: 20px 0; }
.sv3 .fs-frames img { width: 250px; }
.sv3 .fs-stamps { margin: 18px 0 8px; }
.sv3 .fs-cap { margin: 0; font-size: 14.5px; }

/* 4. the paused frame and its numbered notes, a ruled list */
.sv4.review { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.sv4 .rv-screen { padding: 8px; }
.sv4 .rv-frame img { aspect-ratio: 16 / 9; object-fit: cover; }
.sv4 .rv-bar { padding: 9px 4px 1px; }
.sv4 .rv-notes .ch-label { margin: 0 0 8px; }
.sv4 .rv-notes ol { gap: 0; }
.sv4 .rv-notes li { grid-template-columns: 24px 1fr; gap: 12px; align-items: baseline; padding: 8px 8px; border-radius: var(--r-s); background: none; box-shadow: inset 0 -1px 0 var(--line); font-size: 15px; line-height: 1.4; cursor: default; transition: background-color .2s; }
.sv4 .rv-notes li.is-on { background: var(--signal-soft); box-shadow: none; }
.sv4 .pn { width: 22px; height: 22px; border-radius: 6px; font: 500 12px/1 var(--mono); translate: 0 -1px; }
.sv4 .rv-keep { margin: 10px 0 0; padding: 0 8px; background: none; box-shadow: none; font-size: 15px; }

/* 5. seven rounds on one opening: a ladder on the left, the frame, my note */
.sv5.ladder { display: grid; grid-template-columns: 150px minmax(0, 1.12fr) minmax(0, 1fr); gap: 26px; align-items: start; margin: 0; padding: 22px 24px; border-radius: var(--r-l); background: var(--dark); box-shadow: none; }
.s5-label { margin: 0 0 14px; font: 500 var(--t-label)/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.sv5 .ladder-tabs { position: relative; display: grid; gap: 2px; }
.sv5 .ladder-tabs::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; border-left: 1px solid var(--dark-3); }
.sv5 .ladder-tabs button { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; border: 0; border-radius: 0; background: none; color: var(--on-dark-soft); font: 500 15px/1.2 var(--sans); text-align: left; }
.sv5 .ladder-tabs button::before { content: ""; flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--dark); box-shadow: inset 0 0 0 1.5px var(--on-dark-soft); transition: background-color .2s, box-shadow .2s; }
.sv5 .ladder-tabs button.is-lock::before { border-radius: 4px; }
.sv5 .ladder-tabs button:hover { color: var(--on-dark); background: none; }
.sv5 .ladder-tabs button:has(~ [aria-selected="true"])::before { background: var(--on-dark-soft); }
.sv5 .ladder-tabs button[aria-selected="true"] { color: var(--on-dark); font-weight: 650; background: none; }
.sv5 .ladder-tabs button[aria-selected="true"]::before { background: var(--signal); box-shadow: 0 0 0 3px var(--dark), 0 0 0 4.5px var(--signal); }
.sv5 .ladder-tabs button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
.s5-shot { min-width: 0; }
.sv5 .ladder-stage { position: relative; }
.sv5 .ladder-stage img { border-radius: var(--r-m); }
.sv5 .ladder-stage figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); margin: 0; padding: 5px 9px; border-radius: var(--r-s); background: oklch(0.165 0.008 70 / .82); font: 500 11.5px/1.3 var(--mono); letter-spacing: .04em; color: var(--on-dark); }
.sv5 .ladder-nav { margin-top: 12px; gap: 8px; }
.sv5 .ladder-nav .btn, .sv5 .ladder-nav .btn-ghost { padding: 8px 14px; min-height: 0; font-size: 14px; }
.sv5 .ladder-note { min-width: 0; }
.sv5 .ln-label { margin: 0 0 10px; font: 500 var(--t-label)/1.4 var(--mono); letter-spacing: .12em; color: var(--signal); }
.sv5 .ln-text { min-height: 0; font-size: 15.5px; line-height: 1.5; color: var(--on-dark); }
.sv5 .ln-text ol { gap: 6px; padding-left: 20px; }
.sv5 .ln-text p[style] { margin-top: 10px !important; }
.sv5 .ln-text .lock { font-family: var(--display); font-size: 24px; font-weight: 400; line-height: 1.25; letter-spacing: -0.012em; font-variation-settings: "SOFT" 60, "WONK" 0; }

/* 6. the locked opening passes four things to every later section */
.sv6 { display: grid; grid-template-columns: minmax(0, 1.45fr) 150px minmax(0, 1fr); grid-template-rows: auto auto auto; align-items: start; }
.s6-src, .s6-dst { display: grid; grid-row: 1 / 4; grid-template-rows: subgrid; margin: 0; min-width: 0; }
.s6-label { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font: 500 var(--t-label)/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal-ink); }
.s6-label .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.s6-src img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-m); box-shadow: 0 0 0 2px var(--ink), 0 24px 44px -30px oklch(0.185 0.01 70 / .7); }
.s6-src figcaption { margin-top: 10px; font-size: 14px; color: var(--soft); }
.s6-flow { position: relative; grid-column: 2; grid-row: 2; align-self: stretch; display: grid; place-items: center; }
.s6-flow svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.s6-flow path { fill: none; stroke: var(--signal-strong); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.s6-spec { position: relative; display: grid; gap: 7px; margin: 0; padding: 12px 14px; list-style: none; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 10px 24px -18px oklch(0.185 0.01 70 / .5); }
.s6-spec li { display: flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.s6-spec li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--signal); }
.s6-dst { grid-column: 3; }
.s6-stack { grid-row: 2; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; height: 100%; contain: size; }
.s6-stack figure { position: relative; display: flex; align-items: center; gap: 14px; min-height: 0; margin: 0; }
.s6-stack img { flex: none; height: 100%; width: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-s); box-shadow: 0 0 0 1px var(--line), 0 10px 20px -16px oklch(0.185 0.01 70 / .6); }
.s6-stack figcaption { font-size: 15.5px; font-weight: 600; color: var(--ink); }

/* 7. the editor's timeline: short label, my note in the serif, cue cards aligned */
.sv7.tl { margin: 0; padding: 18px 22px 18px; }
.s7-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin: 0 0 40px; }
.s7-label { margin: 0; font: 500 var(--t-label)/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.s7-note { margin: 0; font-family: var(--display); font-style: italic; font-weight: 360; font-size: 17px; line-height: 1.3; color: var(--on-dark-2); font-variation-settings: "SOFT" 60, "WONK" 0; }
.sv7 .tl-rows { gap: 8px; }
.sv7 .tl-name { font: 500 var(--t-label)/1 var(--mono); letter-spacing: .12em; }
.sv7 .tl-segs { height: 66px; }
.sv7 .tl-voice { height: 20px; }
.sv7 #cue-svg { height: 86px; }
.sv7 .cue-buttons { gap: 8px; margin-top: 14px; }
.sv7 .cue-buttons button { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 4px; padding: 10px 12px; font-size: 14px; line-height: 1.3; text-align: left; }
.sv7 .cue-buttons button span { margin: 0; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; }
.sv7 .seam-pop { margin-top: 14px; }

/* 8. the same film on three screens, one baseline */
.sv8 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .62fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.sv8 figure { margin: 0; min-width: 0; }
.s8-frame { position: relative; overflow: hidden; border-radius: var(--r-s); box-shadow: 0 20px 40px -24px oklch(0.185 0.01 70 / .6); outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.s8-frame img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.s8-dur { position: absolute; right: 8px; bottom: 8px; padding: 3px 6px; border-radius: 4px; background: oklch(0 0 0 / .8); font: 500 12px/1 var(--mono); color: var(--on-dark); font-variant-numeric: tabular-nums; }
.s8-ig .s8-frame { aspect-ratio: 4 / 5; }
.s8-yt .s8-frame img, .s8-post .s8-frame img { aspect-ratio: 16 / 9; }
.s8-ig .s8-frame img { height: 100%; aspect-ratio: auto; object-position: 20% center; }
.s8-crop { position: absolute; inset: 14% 0; border: 2px dashed var(--signal-strong); border-radius: 6px; box-shadow: 0 0 0 999px oklch(0.185 0.01 70 / .28); }
.s8-post { padding: 14px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .08), 0 20px 40px -26px oklch(0.185 0.01 70 / .5); }
.s8-post p { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; color: var(--ink); }
.s8-post p img { width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); }
.s8-line { display: block; height: 8px; margin-bottom: 6px; border-radius: 4px; background: var(--line); }
.s8-line.short { width: 60%; margin-bottom: 12px; }
.s8-post .s8-frame { box-shadow: none; }
.sv8 figcaption { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--soft); }
.sv8 figcaption b { display: block; margin-bottom: 1px; font-size: 16px; font-weight: 650; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .s2-head { display: none; }
  .s2-word { animation: none; }
}

/* 900 to 1099px: the sub-line moves under the headline */
@media (max-width: 1099px) {
  .pv-head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num kick" "num h2" ". sub"; }
  .pv-head .ch-sub { justify-self: start; max-width: 60ch; margin: 12px 0 0; }
  .sv1 { gap: 32px; }
  .s1-ev { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .s1-ev img { width: 76px; }
  .s1-ev::after { width: 32px; }
  .sv5.ladder { grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
}

/* tablets: the visuals regroup */
@media (max-width: 899px) {
  .poster.pv { padding: 26px 26px 18px; }
  .pv-num { font-size: 88px; padding-right: 20px; }
  .sv1 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .s1-col { display: contents; }
  .s1-brief { grid-column: 1 / -1; order: -1; margin-bottom: 6px; }
  .s1-ev { grid-template-columns: 1fr; gap: 8px; align-items: start; padding: 6px; }
  .s1-ev img { width: 100%; aspect-ratio: 16 / 10; }
  .s1-ev::after { display: none; }
  .s1-ev figcaption { padding: 0 4px 4px; font-size: 13px; }
  .s1-ev b { font-size: 14px; }
  .sv5.ladder { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; }
  .s5-label { margin-bottom: 10px; }
  .sv5 .ladder-tabs { display: flex; flex-wrap: nowrap; gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 2px 4px 4px 2px; }
  .sv5 .ladder-tabs::-webkit-scrollbar { display: none; }
  .sv5 .ladder-tabs::before { display: none; }
  .sv5 .ladder-tabs button { flex: none; gap: 8px; padding: 4px 0; font-size: 14px; }
  .sv5 .ladder-tabs button::before { width: 12px; height: 12px; }
  .sv6 { grid-template-columns: minmax(0, 1.3fr) 120px minmax(0, 1fr); }
  .s6-stack figure { gap: 10px; }
  .s6-stack figcaption { font-size: 14px; }
}

/* phones */
@media (max-width: 700px) {
  .sv4.review { grid-template-columns: 1fr; gap: 18px; }
  .sv6 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 14px; }
  .s6-src, .s6-dst { display: block; grid-row: auto; grid-column: auto; }
  .s6-flow { grid-row: auto; grid-column: auto; }
  .s6-flow svg { display: none; }
  .s6-spec { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; padding: 10px 14px; background: none; box-shadow: none; }
  .s6-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; height: auto; contain: none; }
  .s6-stack figure { display: block; }
  .s6-stack img { width: 100%; height: auto; }
  .s6-stack figcaption { margin-top: 6px; font-size: 14px; }
  .poster.pv { padding: 20px 16px 14px; }
  .pv-head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num kick" "h2 h2" "sub sub"; column-gap: 12px; margin-bottom: 18px; }
  .pv-num { align-self: center; padding: 0 12px 0 0; font-size: 46px; line-height: .8; }
  .pv-kick { align-self: center; margin: 0; }
  .pv-head h2 { margin-top: 14px; font-size: 31px; line-height: 1.06; }
  .pv-head .ch-sub { margin-top: 10px; font-size: 15.5px; }
  .pv-foot { margin-top: 16px; padding-top: 12px; }
  .pv-foot .ch-done { align-items: flex-start; font-size: 15px; }
  .pv-foot .ch-done b { display: block; margin: 0 0 4px; }
  .pv-mark { display: none; }
  .pv-by.ch-joe { padding: 0 2px; font-size: 15px; }
  .pv-by.ch-joe img { width: 30px; height: 30px; }
  .pv-annex.vague, .pv-annex .craft-card { padding: 16px; }
  .s1-brief { padding: 16px 18px; }
  .s1-brief dl { gap: 8px; }
  .s1-brief dd { font-size: 15.5px; }
  .s1-folder { margin-top: 12px; font-size: 13.5px; }
  .s1-ev figcaption { padding: 0 2px 2px; font-size: 12px; line-height: 1.3; }
  .s1-ev b { font-size: 13px; }
  .sv2 { --lab: 0px; padding: 14px 14px 12px; }
  .s2-track { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 12px; }
  .s2-wave { height: 32px; }
  .s2-beats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; column-gap: 10px; row-gap: 14px; }
  .s2-word { min-height: 0; margin-bottom: 12px; padding: 7px 9px; font-size: 13.5px; }
  .s2-word::after { height: 12px; }
  .s2-cap { margin-top: 6px; font-size: 12.5px; }
  .sv3 .filmstrip { padding: 16px 0; }
  .sv3 .fs-frames img { width: 170px; }
  .sv3 .fs-stamps { gap: 6px; margin: 14px 0 6px; }
  .sv3 .stamp { padding: 6px 10px; font-size: 13.5px; }
  .sv3 .fs-cap { font-size: 13.5px; text-align: left; }
  .sv4 .rv-screen { padding: 6px; }
  .sv4 .pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11.5px; line-height: 22px; box-shadow: 0 0 0 2px var(--card); }
  .sv4 .rv-notes li { padding: 6px 4px; font-size: 14px; }
  .sv4 .rv-keep { padding: 0 4px; font-size: 14px; }
  .sv5.ladder { padding: 14px; gap: 12px; }
  .sv5 .ln-text { font-size: 14.5px; }
  .sv5 .ladder-nav { margin-top: 10px; }
  .s6-stack figcaption { font-size: 13px; }
  .s6-spec { gap: 6px 12px; padding: 4px 0; }
  .sv7.tl { padding: 14px; }
  .s7-head { margin-bottom: 36px; }
  .s7-note { font-size: 15.5px; }
  .sv7 .tl-segs { height: 48px; }
  .sv7 #cue-svg { height: 72px; }
  .sv7 .cue-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .sv7 .cue-buttons button { padding: 8px 10px; font-size: 13px; }
  .sv8 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 14px; align-items: start; }
  .s8-yt { grid-column: 1 / -1; }
  .sv8 figcaption { margin-top: 8px; font-size: 13px; }
  .sv8 figcaption b { font-size: 14.5px; }
  .s8-post { padding: 10px; }
  .s8-post p { margin-bottom: 8px; font-size: 13px; }
  .s8-post p img { width: 22px; height: 22px; }
  .s8-line { height: 6px; }
}
/* end v13 posters */

/* =========================================================
   v15 ending
   Lessons, Kit, Recap and Support, redone to match the posters:
   solid Fraunces numerals, one clean sheet per idea, DM Mono labels,
   hairline ledgers instead of rows of generic cards.
   Recap, Support and the footer read as one dark closing sequence.
   ========================================================= */

/* ---------- lessons: the time chart ---------- */
.tcx .tc-card { padding: 26px 30px 22px; border-radius: var(--r-xl); background: var(--ink); box-shadow: 0 40px 90px -50px oklch(0.185 0.01 70 / .55); }
.tcx .tc-head { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 24px; padding: 0 0 14px; margin: 0 0 8px; border-bottom: 1px solid var(--dark-line); font: 500 var(--t-label)/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); }
.tcx .timechart { padding: 0; margin: 0; border-radius: 0; background: none; gap: 0; }
.tcx .timechart li { grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 24px; padding: 14px 0; border-bottom: 1px solid oklch(1 0 0 / .06); }
.tcx .timechart li:last-child { border-bottom: 0; }
.tcx .tc-name b { font-size: var(--t-body); font-weight: 600; }
.tcx .tc-name em { font: 500 var(--t-label)/1.5 var(--mono); letter-spacing: .04em; color: var(--on-dark-soft); }
.tcx .tc-bar { position: relative; display: flex; align-items: center; min-height: 36px; }
.tcx .tc-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 30px; margin-top: -15px; border-radius: 8px; background: oklch(1 0 0 / .045); }
.tcx .tc-bar i { top: 50%; bottom: auto; height: 30px; margin-top: -15px; width: var(--w); min-width: 12px; border-radius: 8px; }
.tcx .tc-bar strong { margin-left: calc(var(--w) + 14px); font: 500 19px/1.2 var(--display); letter-spacing: -0.01em; font-variant-numeric: lining-nums; color: var(--on-dark); }
.tcx .tc-bar small { position: absolute; left: calc(100% + 24px); top: 50%; translate: 0 -50%; width: 200px; padding: 0; background: none; border-radius: 0; font: 500 var(--t-label)/1.45 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--signal); white-space: normal; }
.tcx .tc-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--dark-line); font-size: 14px; color: var(--on-dark-soft); }
@media (max-width: 1100px) {
  .tcx .tc-head { display: none; }
  .tcx .timechart li { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .tcx .tc-name { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
  .tcx .tc-bar { flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; min-height: 0; padding-bottom: 18px; }
  .tcx .tc-bar::before { top: auto; bottom: 0; height: 8px; margin-top: 0; border-radius: 4px; }
  .tcx .tc-bar i { top: auto; bottom: 0; height: 8px; margin-top: 0; border-radius: 4px; min-width: 8px; }
  .tcx .tc-bar strong { margin-left: 0; font-size: 18px; }
  .tcx .tc-bar small { display: block; position: static; translate: none; width: auto; text-align: right; }
}
@media (max-width: 620px) {
  .tcx .tc-card { padding: 18px 18px 16px; border-radius: var(--r-l); }
  .tcx .tc-bar { flex-direction: column; align-items: flex-start; }
  .tcx .tc-bar small { text-align: left; }
}

/* ---------- lessons: one sheet, eight rules (three shown, five listed) ---------- */
#lessons .ls-sheet { margin-top: 40px; border-radius: var(--r-xl); background: var(--card); box-shadow: 0 0 0 1px oklch(0.185 0.01 70 / .06), 0 2px 4px oklch(0.185 0.01 70 / .03), 0 40px 90px -50px oklch(0.185 0.01 70 / .45); overflow: hidden; }
#lessons .tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; counter-reset: tip; }
#lessons .tip { counter-increment: tip; padding: 30px 30px 32px; border-radius: 0; background: none; box-shadow: none; gap: 0; }
#lessons .tip + .tip { border-left: 1px solid var(--line); }
#lessons .tip::before { content: counter(tip, decimal-leading-zero); order: 1; margin: 26px 0 10px; font: 300 44px/.8 var(--display); letter-spacing: -0.04em; color: var(--ink); font-optical-sizing: auto; font-variation-settings: "SOFT" 100, "WONK" 0; font-variant-numeric: lining-nums tabular-nums; }
#lessons .tip h3 { order: 2; margin: 0 0 10px; font-size: var(--t-h4); line-height: 1.18; }
#lessons .tip p { order: 3; font-size: 16px; line-height: 1.55; color: var(--text); }
#lessons .tip-vis { order: 0; height: 184px; padding: 16px; border-radius: var(--r-m); background: var(--paper-2); box-shadow: none; }
/* first frames: three covers on one baseline, each named */
#lessons .f0 { grid-template-columns: 1.3fr .62fr 1.3fr; gap: 10px; align-items: end; }
#lessons .f0 figure { height: auto; flex-direction: column; justify-content: flex-end; gap: 8px; }
#lessons .f0 img { max-height: 118px; width: 100%; object-fit: contain; border-radius: 6px; outline: 1px solid oklch(0.185 0.01 70 / .12); background: var(--card); }
#lessons .f0 .no img { aspect-ratio: 16 / 9; object-fit: cover; }
#lessons .f0 figcaption { align-self: flex-start; font: 500 var(--t-label)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
#lessons .f0 .no figcaption { color: var(--signal-ink); }
#lessons .f0 figure span { top: -8px; right: -6px; width: 22px; height: 22px; font-size: 12px; box-shadow: 0 0 0 3px var(--paper-2); }
/* fifteen rounds: dots on a mono label */
#lessons .rounds { gap: 20px; }
#lessons .rd-label { font: 500 var(--t-label)/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }
#lessons .rd-dots { gap: 5px; }
#lessons .rd-dots i { width: 18px; height: 18px; border-radius: 5px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); }
#lessons .rd-dots i:last-child { background: var(--signal); box-shadow: inset 0 0 0 1.5px var(--signal-strong); }
/* review: a small ledger, video to what it left behind */
#lessons .revw { gap: 0; align-content: center; }
#lessons .revw div { grid-template-columns: 104px 16px 1fr; gap: 8px; padding: 11px 2px; border-radius: 0; background: none; border-top: 1px solid var(--line); }
#lessons .revw div:first-child { border-top: 0; }
#lessons .revw b { font: 500 var(--t-label)/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
#lessons .revw span { color: var(--mute); font-size: 14px; }
#lessons .revw em { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
#lessons .revw div:first-child em { color: var(--signal-ink); }
/* the five more rules continue the count: 04 to 08 */
#lessons .rules { margin: 0; padding: 28px 30px 12px; border-radius: 0; background: var(--paper); box-shadow: none; border-top: 1px solid var(--line); }
#lessons .rules > .ch-label { margin: 0 0 6px; color: var(--soft); }
#lessons .rules ol { counter-reset: r 3; }
#lessons .rules li { grid-template-columns: 56px 330px minmax(0, 1fr) 150px; gap: 6px 20px; padding: 18px 0; align-items: baseline; }
#lessons .rules li::before { font: 300 30px/.9 var(--display); letter-spacing: -0.03em; color: var(--ink); font-optical-sizing: auto; font-variation-settings: "SOFT" 100, "WONK" 0; font-variant-numeric: lining-nums tabular-nums; }
#lessons .rules b { font-weight: 650; }
#lessons .rules span { color: var(--text); }
#lessons .rules em { justify-self: end; font: 500 var(--t-label)/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
@media (max-width: 1100px) {
  #lessons .rules li { grid-template-columns: 48px minmax(0, 1fr); }
  #lessons .rules em { justify-self: start; }
}
@media (max-width: 1100px) {
  #lessons .revw div { grid-template-columns: 92px 14px 1fr; }
  #lessons .revw b { letter-spacing: .02em; }
  #lessons .tips { grid-template-columns: 1fr; }
  #lessons .tip + .tip { border-left: 0; border-top: 1px solid var(--line); }
  #lessons .tip { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 28px; }
  #lessons .tip-vis { grid-column: 1; grid-row: 1 / 4; }
  #lessons .tip::before { grid-column: 2; margin-top: 0; }
  #lessons .tip h3, #lessons .tip p { grid-column: 2; }
}
@media (max-width: 700px) {
  #lessons .ls-sheet { margin-top: 28px; border-radius: var(--r-l); }
  #lessons .tip { display: flex; padding: 22px 18px 26px; }
  #lessons .tip::before { margin-top: 22px; font-size: 38px; }
  #lessons .tip-vis { height: auto; min-height: 164px; }
  #lessons .rules { padding: 22px 18px 6px; }
  #lessons .rules li { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 12px; }
  #lessons .rules li::before { font-size: 26px; }
}

/* ---------- kit ---------- */
#kit { padding-bottom: clamp(72px, 7vw, 96px); }
#kit .kit-head { margin-bottom: 44px; }
#kit .kit-head p { font-size: var(--t-lead); }
#kit .kit-sub { margin: 72px 0 24px; font-size: var(--t-h3); }
/* your first hour: one line of four numbered moments */
#kit .hour2 { counter-reset: h; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin: 0 0 28px; }
#kit .hour2 li { padding: 58px 0 0; border-radius: 0; background: none; box-shadow: none; }
#kit .hour2 li::before { content: counter(h, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 300 40px/1 var(--display); letter-spacing: -0.04em; color: var(--on-dark); font-optical-sizing: auto; font-variation-settings: "SOFT" 100, "WONK" 0; font-variant-numeric: lining-nums tabular-nums; }
#kit .hour2 li::after { content: ""; display: block; position: absolute; left: 62px; right: -22px; top: 20px; width: auto; height: 1px; border-radius: 0; background: var(--dark-line); font-size: 0; }
#kit .hour2 li:last-child::before { color: var(--signal); }
#kit .hour2 li:last-child::after { display: none; }
#kit .hour2 li > p a { white-space: nowrap; }
#kit .hour2 li > b, #kit .hour2 li > p { padding: 0; }
#kit .hour2 li > b { margin-top: 18px; font-size: var(--t-body); font-weight: 650; color: var(--on-dark); }
#kit .hour2 li > b::before { content: none; }
#kit .hour2 li > p { margin-top: 4px; color: var(--on-dark-2); }
#kit .hour2 .hv { height: 148px; background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--dark-line); }
#kit .hour2 .hv-video { background: oklch(0 0 0); }
/* the setup prompt drawer sits under the four moments as one quiet row */
#kit #setup-prompt { margin: 0; border-radius: var(--r-m); background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--dark-line); }
#kit #setup-prompt summary { padding: 15px 18px; font-size: var(--t-small); }
#kit #setup-prompt[open] summary { border-bottom: 1px solid var(--dark-line); }
#kit #setup-prompt .prompt { border: 0; background: var(--dark); }
#kit #setup-prompt .prompt-top { background: var(--dark); }
/* the skills inside: a ledger, the first row marked as the one to start with */
#kit .skills2 { grid-template-columns: 1fr; gap: 0; border-radius: var(--r-l); background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--dark-line); overflow: hidden; }
#kit .skills2 .skill2 { display: grid; grid-template-columns: 44px 210px 250px minmax(0, 1fr) 110px; align-items: center; gap: 0 20px; padding: 18px 22px; border-radius: 0; background: none; box-shadow: none; color: var(--on-dark-2); translate: none; transition: background-color .2s; }
#kit .skills2 .skill2 + .skill2 { border-top: 1px solid var(--dark-line); }
#kit .skills2 .skill2:hover { background: oklch(1 0 0 / .035); box-shadow: none; translate: none; }
#kit .skills2 .sk-ic { width: 44px; height: 44px; background: var(--dark-3); color: var(--on-dark); }
#kit .skills2 .sk-name { font: 650 var(--t-body)/1.3 var(--sans); letter-spacing: -0.01em; color: var(--on-dark); }
#kit .skills2 code { justify-self: start; align-self: center; background: oklch(1 0 0 / .06); color: var(--on-dark-2); }
#kit .skills2 p { margin: 0; font-size: var(--t-small); line-height: 1.45; color: var(--on-dark-soft); }
#kit .skills2 em { justify-self: end; color: var(--on-dark-soft); }
#kit .skills2 .skill2-main { background: oklch(0.86 0.165 92 / .06); }
#kit .skills2 .skill2-main:hover { background: oklch(0.86 0.165 92 / .1); box-shadow: none; }
#kit .skills2 .skill2-main .sk-ic { background: var(--signal); color: var(--ink); }
#kit .skills2 .skill2-main .sk-name { color: var(--on-dark); }
#kit .skills2 .skill2-main code { background: oklch(0.86 0.165 92 / .14); color: var(--signal); }
#kit .skills2 .skill2-main p { color: var(--on-dark-2); }
#kit .skills2 .skill2-main em { padding: 5px 10px; border-radius: var(--r-pill); background: var(--signal); color: var(--ink); }
#kit .kit-foot { max-width: 68ch; margin: 18px 0 0 !important; text-align: left; }
@media (max-width: 1100px) {
  #kit .skills2 .skill2 { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ic name em" "ic code em" "ic p p"; gap: 6px 18px; align-items: start; }
  #kit .skills2 .sk-ic { grid-area: ic; }
  #kit .skills2 .sk-name { grid-area: name; }
  #kit .skills2 code { grid-area: code; }
  #kit .skills2 p { grid-area: p; }
  #kit .skills2 em { grid-area: em; align-self: start; }
}
@media (max-width: 1100px) {
  #kit .hour2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  #kit .hour2 li:nth-child(2)::after { display: none; }
}
@media (max-width: 620px) {
  #kit .kit-sub { margin: 56px 0 20px; }
  #kit .hour2 { grid-template-columns: 1fr; gap: 0; }
  #kit .hour2 li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 0 0 28px; }
  #kit .hour2 li::before { position: static; grid-column: 1; grid-row: 1 / 4; font-size: 32px; }
  #kit .hour2 li::after { left: 16px; right: auto; top: 40px; bottom: 8px; width: 1px; height: auto; }
  #kit .hour2 li:last-child::after { display: none; }
  #kit .hour2 li > .hv, #kit .hour2 li > b, #kit .hour2 li > p { grid-column: 2; }
  #kit .hour2 li > b { margin-top: 14px; }
  #kit .hour2 .hv { height: 132px; }
  #kit .skills2 .skill2 { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "ic name" "ic code" "ic p" "ic em"; padding: 18px 16px; }
  #kit .skills2 .sk-ic { width: 40px; height: 40px; }
  #kit .skills2 em { justify-self: start; margin-top: 4px; }
  #kit .tree li { row-gap: 2px; padding: 8px 10px 8px 12px; }
  #kit .tree ul { gap: 2px; }
}

/* ---------- recap: the six ideas, then the way out ---------- */
.recap2 { padding-bottom: 0 !important; }
.recap2 > .wrap { padding: clamp(72px, 7vw, 96px) 0 clamp(64px, 7vw, 88px); border-top: 1px solid var(--dark-line); }
.recap2 h2 .rc-grad { font-size: 1em; }
.recap2 .rc-sub { margin-top: 16px; font-size: var(--t-lead); color: var(--on-dark-2); }
.recap2 .rc-label { margin: 56px 0 18px; font: 500 var(--t-label)/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); }
.recap2 .rc-ideas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; text-align: left; background: none; border: 0; border-top: 1px solid var(--dark-line); border-radius: 0; overflow: visible; }
.recap2 .rc-ideas li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; align-content: start; padding: 26px 28px 28px 0; background: none; border-bottom: 1px solid var(--dark-line); font-size: var(--t-small); line-height: 1.5; color: var(--on-dark-soft); }
@media (min-width: 901px) {
  .recap2 .rc-ideas li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--dark-line); }
}
.recap2 .rc-ideas li::before { content: none; display: none; }
.recap2 .rc-ideas .rc-ic { grid-row: 1 / 3; width: 40px; height: 40px; margin: 0; border-radius: var(--r-s); background: var(--dark-2); color: var(--signal); box-shadow: inset 0 0 0 1px var(--dark-line); }
.recap2 .rc-ideas .rc-ic .ic { width: 20px; height: 20px; }
.recap2 .rc-ideas b { display: block; margin: 8px 0 4px; font-size: var(--t-body); font-weight: 650; letter-spacing: -0.01em; color: var(--on-dark); }
.recap2 .recap-cta { margin-top: 48px; }
.recap2 .deeper { max-width: 760px; margin: 40px auto 0; }
.recap2 .deeper details { padding: 0 20px; border-radius: var(--r-m); background: transparent; box-shadow: inset 0 0 0 1px var(--dark-line); }
.recap2 .deeper summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: var(--t-small); font-weight: 600; color: var(--on-dark-2); }
.recap2 .deeper summary::-webkit-details-marker { display: none; }
.recap2 .deeper summary::after { content: "+"; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--dark-line); font: 500 16px/1 var(--mono); color: var(--signal); transition: rotate .25s cubic-bezier(.2, 0, 0, 1); }
.recap2 .deeper details[open] summary::after { rotate: 45deg; }
.recap2 .deeper summary:hover { color: var(--on-dark); }
.recap2 .deeper details p { padding: 0 0 20px; font-size: var(--t-small); line-height: 1.6; color: var(--on-dark-soft); }
@media (max-width: 900px) {
  .recap2 .rc-ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recap2 .rc-ideas li { padding: 24px 22px 24px 0; }
  .recap2 .rc-ideas li:nth-child(even) { padding-left: 22px; padding-right: 0; border-left: 1px solid var(--dark-line); }
}
@media (max-width: 620px) {
  .recap2 .rc-label { margin-top: 40px; }
  .recap2 .rc-ideas { grid-template-columns: 1fr; }
  .recap2 .rc-ideas li, .recap2 .rc-ideas li:nth-child(even) { padding: 20px 0; border-left: 0; }
  .recap2 .recap-cta { flex-direction: column; align-items: stretch; }
  .recap2 .recap-cta a { justify-content: center; }
}

/* ---------- support: the last word before the footer ---------- */
#support { padding-bottom: 0; }
#support .support-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eyebrow cta" "title cta" "lead cta" "credit credit"; gap: 0 48px; align-items: center; padding: clamp(56px, 6vw, 80px) 0 clamp(56px, 6vw, 72px); border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--dark-line); }
#support .support-in > div { display: contents; }
#support .eyebrow { grid-area: eyebrow; margin-bottom: 18px; }
#support h2 { grid-area: title; font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.022em; color: var(--on-dark); }
#support h2 span + span { margin-top: 2px; color: var(--on-dark-2); font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.015em; }
#support .support-in > div > p:not(.eyebrow):not(.support-credit) { grid-area: lead; margin-top: 18px; max-width: 52ch; font-size: var(--t-lead); color: var(--on-dark-2); }
#support .support-credit { grid-area: credit; margin: 48px 0 0; padding-top: 18px; border-top: 1px solid var(--dark-line); font-size: 14px; color: var(--on-dark-soft) !important; }
#support .support-btn { grid-area: cta; justify-self: end; padding: 20px 30px; border-radius: var(--r-pill); font-size: 18px; font-weight: 650; gap: 12px; }
#support .support-btn .ic { width: 22px; height: 22px; fill: var(--ink); stroke: none; }
@media (max-width: 760px) {
  #support .support-in { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "lead" "cta" "credit"; }
  #support .support-btn { justify-self: stretch; justify-content: center; margin-top: 28px; }
  #support .support-credit { margin-top: 36px; }
}
/* end v15 ending */

/* Joe's avatar everywhere: the picture at 115% inside an unchanged circle, on a warm fill (never white) */
.av { display: inline-flex; flex: none; vertical-align: middle; line-height: 0; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, oklch(0.93 0.09 85), oklch(0.8 0.14 68)); }
.av > img { transform: scale(1.15); transform-origin: 50% 42%; background: none !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; }
.ch-joe .av { box-shadow: 0 0 0 2px var(--card), 0 0 0 3px oklch(0.52 0.105 80 / .35); margin-top: 2px; }
.footer-avatar-frame { background: radial-gradient(circle at 50% 30%, oklch(0.93 0.09 85), oklch(0.8 0.14 68)); }
/* the avatar's circle is a span too: keep the "What I did" label off it */
.ch-joe .av::before { content: none !important; display: none !important; }
.ch-joe .av { max-width: none !important; width: auto; }
/* the kit's sample film: its title sits bottom-left, so the file tag moves to the top */
#kit .hour2 .hvv-tag { top: 10px; bottom: auto; }
