/* CA presentation deck, storyboard v2. Fixed 1920x1080 stage, scaled to fit.
   Motion rule: only opacity, transform (translate / scale / rotate) and stroke-dashoffset animate. */

:root {
  --paper: #F6F5F1;
  --paper-2: #ECEAE3;
  --paper-3: #E2DFD5;
  --ink: #121417;
  --ink-2: #4A4F58;
  --ink-3: #8B9099;
  --rule: #D8D5CC;
  --mcp: #2F5BEA;
  --utcp: #0E9F7E;
  --code: #7C5CE0;
  --nb: #F05A1A;
  --pass: #0E9F7E;
  --fail: #C8322B;
  --letterbox: #E3E1D9;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
  --t: 620ms;
  --lift: 0 1px 0 rgba(18,20,23,.04), 0 2px 6px -2px rgba(18,20,23,.08), 0 24px 48px -24px rgba(18,20,23,.28);
  --lift-2: 0 1px 0 rgba(18,20,23,.05), 0 4px 10px -4px rgba(18,20,23,.10), 0 40px 80px -36px rgba(18,20,23,.34);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--letterbox); color: var(--ink); font-family: var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---------- stage and slides ---------- */
#viewport { position: fixed; inset: 0; overflow: hidden; }
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; background: var(--paper); overflow: hidden; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  translate: 28px 0;
  transition: opacity 720ms var(--ease), translate 720ms var(--ease), visibility 0s linear 720ms;
}
.slide.prev-side { translate: -28px 0; }
.slide.active { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 720ms var(--ease), translate 720ms var(--ease), visibility 0s; }
/* parallax: the hero plane travels further than the slide, the headline a little less */
.slide .hero { translate: 36px 0; transition: translate 820ms var(--ease); }
.slide.prev-side .hero { translate: -36px 0; }
.slide.active .hero { translate: 0 0; }
.slide .hl { translate: 10px 0; transition: translate 760ms var(--ease); }
.slide.prev-side .hl { translate: -10px 0; }
.slide.active .hl { translate: 0 0; }
/* a static render settles descendants instantly; the slide's own fade is untouched */
.instant * { transition: none !important; }

/* ---------- type ---------- */
.hl { position: absolute; left: 120px; right: 120px; top: 92px; margin: 0; font-size: 72px; line-height: 1.06; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.lab { font-size: 26px; line-height: 1.3; color: var(--ink-2); letter-spacing: -0.005em; }
.lab.s { font-size: 24px; color: var(--ink-3); }
.mono { font-family: var(--mono); letter-spacing: 0; }
.num { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: -0.03em; }
.c-mcp { color: var(--mcp); } .c-utcp { color: var(--utcp); } .c-code { color: var(--code); } .c-nb { color: var(--nb); }
.pdot { width: 18px; height: 18px; border-radius: 4px; display: inline-block; flex: none; }
.pdot.mcp { background: var(--mcp); } .pdot.utcp { background: var(--utcp); } .pdot.code { background: var(--code); } .pdot.nb { background: var(--nb); }
.abs { position: absolute; }
svg { overflow: visible; }
.fb { transform-box: fill-box; transform-origin: center; }

/* ---------- builds: state lives in classes, CSS transitions animate both ways ---------- */
[data-b] { opacity: 0; translate: 0 18px; transition: opacity var(--t) var(--ease), translate var(--t) var(--ease); }
[data-b].on { opacity: 1; translate: 0 0; }
[data-b][data-fx="fade"] { translate: 0 0; }
[data-b][data-fx="pop"] { translate: 0 0; scale: .9; transition: opacity var(--t) var(--ease), scale 760ms var(--spring); }
[data-b][data-fx="pop"].on { scale: 1; }
[data-b][data-fx="left"] { translate: -28px 0; }
[data-b][data-fx="left"].on { translate: 0 0; }
.dimmable:not([data-b]) { transition: opacity 700ms var(--ease); }
::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--vt, 150ms); animation-timing-function: ease-out; }
.dimmed { opacity: .26 !important; }

/* ---------- chrome ---------- */
#chrome-foot { position: absolute; right: 120px; bottom: 34px; display: flex; align-items: center; gap: 22px; font-family: var(--mono); font-size: 22px; color: var(--ink-3); z-index: 5; }
#progress { display: flex; gap: 4px; }
#progress i { width: 9px; height: 9px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px var(--rule); transition: background 400ms; }
#progress i.done { background: var(--ink-3); box-shadow: none; }
#progress i.cur { background: var(--nb); box-shadow: none; }
#demo-status { position: absolute; left: 120px; bottom: 34px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 22px; color: var(--ink-3); z-index: 5; opacity: 0; transition: opacity 500ms var(--ease); }
#demo-status.show { opacity: 1; }
#demo-status .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-3); }
#demo-status.live .dot { background: var(--pass); }
#toast { position: absolute; left: 50%; bottom: 90px; translate: -50% 10px; opacity: 0; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 24px; padding: 12px 20px; border-radius: 8px; transition: opacity 240ms, translate 240ms; z-index: 20; pointer-events: none; }
#toast.show { opacity: 1; translate: -50% 0; }
#goto-buf { position: absolute; right: 120px; top: 34px; font-family: var(--mono); font-size: 32px; color: var(--ink-2); background: var(--paper-2); padding: 6px 14px; border-radius: 6px; display: none; z-index: 20; }
#goto-buf.show { display: block; }

/* transcript overlay (T) */
.txbtn { position: absolute; right: 120px; top: 52px; z-index: 6; font-family: var(--mono); font-size: 20px; color: var(--ink-3); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.txbtn:hover { color: var(--ink); border-color: var(--ink-3); }
.txov { position: absolute; left: 96px; right: 96px; top: 210px; bottom: 96px; z-index: 7; background: rgba(255,255,255,.97); border-radius: 18px; box-shadow: var(--lift-2), 0 0 0 1px var(--rule); padding: 34px 44px; overflow: hidden;
  opacity: 0; translate: 0 24px; scale: .985; pointer-events: none; transition: opacity 480ms var(--ease), translate 600ms var(--ease), scale 600ms var(--ease); }
.txov.show { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; }
.txov h4 { margin: 0 0 18px; font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--ink-3); }
.tx { font-family: var(--mono); font-size: 21px; line-height: 1.38; color: var(--ink); }
.tx .ln { display: grid; grid-template-columns: 82px 1fr; column-gap: 8px; }
.tx .ln .tag { color: var(--ink-3); }
.tx .ln .tx-t { white-space: pre-wrap; word-break: break-word; }
.tx .ln.result .tx-t, .tx .ln.out .tx-t { color: var(--ink-3); }
.tx .ln.pending .tx-t::after, .caret::after { content: ""; display: inline-block; width: .55em; height: 1em; vertical-align: -0.12em; background: var(--ink-2); margin-left: 2px; }
.txrow { display: grid; grid-template-columns: 250px 1fr; column-gap: 24px; padding: 12px 0; border-top: 1px solid var(--rule); }
.txrow:first-of-type { border-top: 0; }
.txrow .nm { font-size: 26px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.txrow .pm { font-family: var(--mono); font-size: 20px; color: var(--ink-3); }

/* highlight that fades its background in (opacity only) */
mark.hl2 { position: relative; isolation: isolate; background: none; color: inherit; }
mark.hl2::before { content: ""; position: absolute; inset: -4px -6px; border-radius: 6px; background: color-mix(in srgb, var(--nb) 22%, transparent); z-index: -1; opacity: 0; transition: opacity 700ms var(--ease) 350ms; }
.on mark.hl2::before, mark.hl2.on::before { opacity: 1; }

/* ---------- 1 · cover ---------- */
#cover .cv-title { position: absolute; left: 120px; top: 232px; width: 940px; }
#cover h1 { font-size: 112px; line-height: .98; font-weight: 600; letter-spacing: -0.045em; margin: 0; }
#cover .sub { font-size: 44px; line-height: 1.18; color: var(--ink-2); margin-top: 40px; letter-spacing: -0.018em; }
#cover .meta { position: absolute; left: 120px; top: 790px; font-size: 26px; line-height: 1.55; color: var(--ink-2); }
#cover .meta b { display: block; font-size: 34px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
#cover .meta .mono { font-size: 22px; color: var(--ink-3); }
#cover .cv-stage { position: absolute; left: 1100px; top: 96px; width: 1100px; height: 1100px; perspective: 2200px; pointer-events: none; }
#cover .cv-grid { position: absolute; left: 0; top: 0; display: grid; grid-template-columns: repeat(13, 66px); gap: 12px; transform: rotateY(-16deg) rotateX(7deg); transform-origin: 0 30%; }
#cover .cv-grid i { width: 66px; height: 66px; border-radius: 12px; background: #fff; position: relative; display: block;
  box-shadow: inset 0 0 0 1px rgba(18,20,23,.05), 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 22px -8px rgba(18,20,23,.16); }
#cover .cv-grid i.d { background: #FBFAF7; }
#cover .cv-grid i.o { background: var(--nb); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--nb) 70%, transparent); }
#cover .cv-grid i b { position: absolute; inset: 0; border-radius: 12px; background: var(--c); opacity: 0; }
/* soft key light from the upper left, falling off toward the bleed */
#cover .cv-light { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 1300px 1000px at 1240px 240px, rgba(255,255,255,.18) 0%, rgba(245,243,238,0) 40%, rgba(236,233,226,.30) 85%, rgba(230,226,218,.42) 100%); }
#cover .cv-title, #cover .meta { z-index: 2; }
#cover .cv-cap { position: absolute; left: 1102px; top: 632px; font-family: var(--mono); font-size: 22px; color: var(--ink-3); display: flex; gap: 16px; align-items: center; }
#cover .cv-cap i { width: 16px; height: 16px; border-radius: 3px; background: var(--nb); display: inline-block; }

/* ---------- 2 · why ---------- */
#why svg.hero { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
#why .badge circle.bg { fill: #fff; stroke: var(--rule); stroke-width: 1.5; }
#why .tlab { font-family: var(--sans); font-size: 26px; fill: var(--ink-2); }
#why .cap { position: absolute; font-size: 26px; color: var(--ink-3); }

/* ---------- 3 · a tool call ---------- */
#call .chat { position: absolute; left: 120px; top: 250px; width: 1120px; height: 680px; background: #fff; border-radius: 22px; box-shadow: var(--lift-2), 0 0 0 1px var(--rule); overflow: hidden; }
#call .chat .bar { height: 56px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 9px; padding: 0 22px; }
#call .chat .bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--paper-3); }
#call .chat .bar span { margin-left: 14px; font-family: var(--mono); font-size: 20px; color: var(--ink-3); }
#call .ubub { position: absolute; right: 36px; top: 88px; max-width: 760px; background: var(--ink); color: var(--paper); font-size: 30px; line-height: 1.3; padding: 18px 26px; border-radius: 22px 22px 6px 22px; }
#call .flow { position: absolute; left: 40px; top: 230px; right: 40px; }
#call .cl { font-family: var(--mono); font-size: 28px; line-height: 1.3; min-height: 37px; color: var(--ink); white-space: pre; margin-bottom: 4px; }
#call .cl .code { display: inline-block; vertical-align: top; white-space: pre; }
#call .cl .who { display: inline-block; vertical-align: top; padding-top: 5px; width: 120px; color: var(--ink-3); font-size: 22px; }
#call .res { font-family: var(--mono); font-size: 22px; color: var(--ink-3); margin: 6px 0 26px 120px; opacity: 0; translate: 0 8px; transition: opacity 500ms var(--ease), translate 500ms var(--ease); white-space: pre; }
#call .res.on { opacity: 1; translate: 0 0; }
#call .doneb { margin-left: 120px; display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 24px; color: var(--pass); border: 1.5px solid var(--pass); border-radius: 999px; padding: 4px 16px; opacity: 0; scale: .9; transition: opacity 500ms var(--ease), scale 700ms var(--spring); }
#call .doneb.on { opacity: 1; scale: 1; }
#call svg.side { position: absolute; left: 1240px; top: 250px; width: 560px; height: 680px; }
#call .glab { font-family: var(--sans); font-size: 26px; fill: var(--ink-2); }
#call .src { position: absolute; left: 120px; top: 952px; font-family: var(--mono); font-size: 22px; color: var(--ink-3); }

/* ---------- 4 · the catch ---------- */
#catch .desk { position: absolute; left: 120px; top: 300px; width: 1140px; height: 620px; border-radius: 22px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule), inset 0 18px 40px -30px rgba(18,20,23,.25); }
#catch .desk .dl { position: absolute; left: 30px; top: -46px; font-size: 26px; color: var(--ink-3); }
#catch .sheets { position: absolute; left: 34px; top: 34px; display: grid; grid-template-columns: repeat(4, 180px); grid-template-rows: repeat(3, 174px); gap: 14px; }
#catch .sheet { width: 180px; height: 174px; border-radius: 8px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 8px 18px -10px rgba(18,20,23,.35), 0 0 0 1px var(--rule); padding: 12px 11px; opacity: 0; translate: 0 -40px; rotate: -4deg; transition: opacity 500ms var(--ease), translate 760ms var(--spring), rotate 760ms var(--spring); }
#catch .sheet.on { opacity: 1; translate: 0 0; rotate: var(--r, 0deg); }
#catch .sheet i { display: block; height: 7px; border-radius: 4px; background: var(--mcp); opacity: .5; margin-bottom: 10px; }
#catch .sheet i:first-child { opacity: 1; width: 60%; }
#catch .req { position: absolute; left: 826px; top: 230px; width: 284px; height: 100px; border-radius: 10px; border: 2px dashed var(--ink-3); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--ink-2); text-align: center; line-height: 1.2; }
#catch .big { position: absolute; left: 1340px; top: 420px; }
#catch .big .n { font-size: 200px; font-weight: 600; letter-spacing: -0.06em; line-height: .9; color: var(--mcp); }
#catch .big .ab { font-size: 32px; color: var(--ink-3); display: block; margin-bottom: 8px; }
#catch .big .lab { margin-top: 18px; font-size: 32px; color: var(--ink); max-width: 440px; }

/* ---------- 5 · the goal ---------- */
#goal svg.hero { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
#goal .st { position: absolute; width: 330px; text-align: center; }
#goal .st .t { font-size: 30px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.2; }
#goal .st .d { font-size: 24px; color: var(--ink-3); margin-top: 6px; line-height: 1.3; }
#goal .st .d2 { font-family: var(--mono); font-size: 19px; color: var(--ink-3); margin-top: 10px; letter-spacing: .02em; }
#goal .pulse { opacity: 0; transform-box: fill-box; transform-origin: center; }
#goal.k3 .pulse { animation: goal-pulse 2800ms cubic-bezier(.22,.8,.24,1) 900ms infinite; }
#goal.k3 .pulse.p2 { animation-delay: 2300ms; }
@keyframes goal-pulse { 0% { opacity: .55; scale: 1; } 100% { opacity: 0; scale: 1.42; } }
body.print #goal .pulse { animation: none; }
#goal .bigp { position: absolute; left: 640px; top: 300px; width: 400px; text-align: center; }
#goal .bigp .n { font-size: 120px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
#goal .bigp .u { font-size: 26px; color: var(--ink-3); }

/* ---------- 6 · four ways ---------- */
#ways .col { position: absolute; top: 250px; width: 380px; }
#ways .col .pn { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 14px; }
#ways .col .ps { font-size: 26px; color: var(--ink-3); margin: 6px 0 24px; }
#ways .page { width: 380px; background: #fff; border-radius: 12px; box-shadow: var(--lift), 0 0 0 1px var(--rule); padding: 12px 18px; overflow: hidden; transform-origin: top; scale: 1 0; transition: scale 1100ms var(--ease); border-top: 6px solid var(--c); }
#ways .on .page { scale: 1 1; }
#ways .page .ln { height: 6px; border-radius: 3px; background: var(--c); opacity: .28; margin: 0 0 8px; }
#ways .page .tt { text-overflow: ellipsis; font-family: var(--mono); font-size: 15px; line-height: 18px; color: var(--ink) !important; color: var(--ink-2); white-space: pre; overflow: hidden; margin-bottom: 4px; }
#ways .note { position: absolute; left: 120px; top: 950px; font-size: 24px; color: var(--ink-3); }

/* ---------- 7 · the Notebook ---------- */
#nb .win { position: absolute; left: 300px; top: 240px; width: 1320px; height: 700px; background: #fff; border-radius: 22px; box-shadow: var(--lift-2), 0 0 0 1px var(--rule); overflow: hidden; }
#nb .win .bar { height: 56px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 9px; padding: 0 22px; }
#nb .win .bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--paper-3); }
#nb .win .bar span { margin-left: 14px; font-family: var(--mono); font-size: 20px; color: var(--ink-3); }
#nb .body { position: absolute; left: 44px; right: 44px; top: 86px; font-family: var(--mono); font-size: 29px; line-height: 1.45; }
#nb .sec { font-family: var(--sans); font-size: 22px; color: var(--ink-3); margin-bottom: 8px; letter-spacing: .02em; }
#nb .grp { position: relative; padding: 2px 12px; margin: 0 -12px; border-radius: 8px; color: var(--ink-2); }
#nb .grp.notes::before { content: ""; position: absolute; inset: 0; border-radius: 8px; background: color-mix(in srgb, var(--nb) 13%, transparent); opacity: 0; transition: opacity 600ms var(--ease); }
#nb .k1 .grp.notes::before, #nb.k1 .grp.notes::before { opacity: 1; }
#nb .grp b { color: var(--ink); font-weight: 500; }
#nb .acc { margin: 6px 0 0 34px; padding-left: 20px; border-left: 2px solid var(--nb); font-size: 24px; color: var(--ink-2); transform-origin: top; opacity: 0; scale: 1 .2; transition: opacity 500ms var(--ease), scale 650ms var(--ease); }
#nb.k1 .acc { opacity: 1; scale: 1 1; }
#nb .cells { margin-top: 26px; translate: 0 -118px; transition: translate 700ms var(--ease); }
#nb.k1 .cells { translate: 0 0; }
#nb .cell { display: grid; grid-template-columns: 96px 1fr; padding: 10px 0; border-top: 1px solid var(--rule); }
#nb .cell .in { color: var(--ink-3); font-size: 22px; padding-top: 6px; }
#nb .cell .out { color: var(--ink-3); font-size: 22px; }
#nb .bet { position: absolute; left: 300px; top: 962px; font-size: 32px; color: var(--ink); }
#nb .bet b { color: var(--nb); font-weight: 600; }

/* ---------- 8 · a fair test ---------- */
#fair svg.hero { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
#fair .slab { font-family: var(--sans); font-size: 24px; fill: var(--ink-3); }
#fair .slab.b { fill: var(--ink); font-weight: 600; font-size: 26px; }
#fair .n24 { position: absolute; left: 1430px; top: 860px; font-size: 30px; color: var(--ink-3); display: flex; align-items: baseline; gap: 18px; }
#fair .n24 .num { display: block; font-size: 120px; color: var(--ink); font-weight: 500; line-height: 1; letter-spacing: -0.05em; font-family: var(--sans); }

/* ---------- 9 · two traps ---------- */
#traps .divider { position: absolute; left: 960px; top: 300px; width: 1px; height: 620px; background: var(--rule); }
#traps .side { position: absolute; top: 290px; width: 760px; }
#traps .side h3 { margin: 0; font-size: 36px; font-weight: 600; letter-spacing: -0.015em; }
#traps .side .lab { margin-top: 8px; }
#traps .ticks { display: grid; grid-template-columns: repeat(10, 54px); gap: 10px; margin-top: 52px; }
#traps .ticks i { width: 54px; height: 54px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--rule); position: relative; display: block; }
#traps .ticks i b { position: absolute; inset: 0; border-radius: 10px; background: var(--pass); opacity: 0; scale: .5; transition: opacity 420ms var(--ease), scale 620ms var(--spring); }
#traps .ticks i b::after { content: ""; position: absolute; left: 20px; top: 11px; width: 11px; height: 22px; border: solid #fff; border-width: 0 4px 4px 0; rotate: 45deg; }
#traps.k1 .ticks i b { opacity: 1; scale: 1; }
#traps.k2 .ticks i b { opacity: 0; scale: .7; }
#traps .tally { position: absolute; left: 0; top: 400px; font-size: 30px; color: var(--ink-2); }
#traps .tally b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
#traps .stampc { position: absolute; left: 330px; top: 380px; background: var(--paper); font-size: 44px; font-weight: 600; color: var(--fail); border: 3px solid var(--fail); border-radius: 12px; padding: 6px 22px; rotate: -4deg; }
#traps .dice { margin-top: 40px; height: 330px; position: relative; }
#traps .bigq { position: absolute; left: 0; top: 0; }

/* ---------- 10 · gauge ---------- */
#gauge svg.hero { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
#gauge .read { position: absolute; left: 660px; width: 600px; top: 800px; text-align: center; }
#gauge .read .n { color: var(--nb); font-size: 120px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-family: var(--sans); font-feature-settings: "tnum" 1; }
#gauge .read .w { font-size: 28px; color: var(--ink-3); margin-top: 8px; }
#gauge .gl { font-family: var(--sans); font-size: 26px; fill: var(--ink-3); }

/* ---------- 11 · glasses ---------- */
#glass .tube { position: absolute; top: 300px; width: 150px; height: 520px; border-radius: 75px 75px 26px 26px; background: #fff; box-shadow: var(--lift), inset 0 0 0 1px var(--rule); overflow: hidden; }
#glass .tube .fill { position: absolute; left: 0; right: 0; bottom: 0; background: var(--c); transform-origin: bottom; scale: 1 0; transition: scale 1300ms var(--ease); }
#glass.k1 .tube .fill { scale: 1 1; }
#glass .tube .seed { position: absolute; left: 22px; right: 22px; height: 3px; border-radius: 2px; background: #fff; opacity: 0; transition: opacity 500ms var(--ease) 1200ms; }
#glass.k1 .tube .seed { opacity: .9; }
#glass .tname { position: absolute; top: 846px; width: 240px; text-align: center; font-size: 32px; font-weight: 600; letter-spacing: -0.015em; }
#glass .floor { position: absolute; left: 300px; width: 1320px; top: 820px; height: 1px; background: var(--ink); opacity: .5; }
#glass .cav { position: absolute; left: 120px; right: 120px; top: 960px; text-align: center; font-size: 32px; }
#glass .cav b { font-weight: 600; }
#glass .ph { position: absolute; left: 120px; top: 300px; width: 270px; font-size: 26px; line-height: 1.35; color: var(--ink-2); font-weight: 500; }
#glass .ph span { display: inline-block; margin-top: 10px; font-size: 21px; color: var(--ink-3); font-weight: 400; }
#glass .gval { position: absolute; top: 246px; width: 240px; text-align: center; font-size: 34px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
#glass .gref { position: absolute; left: 410px; width: 1100px; height: 0; border-top: 2px dotted var(--ink-3); z-index: 2; }
#glass .gref span { position: absolute; left: calc(100% + 14px); top: -15px; width: 270px; line-height: 1.2; font-size: 21px; color: var(--ink-3) !important; color: var(--ink-2); white-space: normal; }

/* ---------- 12 · salon ---------- */
#salon .cam { position: absolute; inset: 0; transform-origin: 960px 640px; transition: opacity 900ms var(--ease), scale 1200ms var(--ease); }
#salon.zoom .cam { opacity: .14; scale: .94; }
#salon .bub { position: absolute; left: 120px; top: 232px; background: var(--ink); color: var(--paper); font-size: 34px; padding: 18px 30px; border-radius: 26px 26px 26px 8px; box-shadow: var(--lift); }
#salon .lane { position: absolute; left: 120px; width: 330px; height: 80px; display: flex; flex-direction: column; justify-content: center; }
#salon .lane .nm { font-size: 34px; font-weight: 600; display: flex; align-items: center; gap: 12px; letter-spacing: -0.015em; }
#salon .lane .badge { position: absolute; right: 0; top: 18px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; font-weight: 700; opacity: 0; scale: .5; transition: opacity 400ms var(--ease), scale 700ms var(--spring); }
#salon .lane .badge.on { opacity: 1; scale: 1; }
#salon .lane .badge.pass { background: var(--pass); }
#salon .lane .badge.fail { background: var(--fail); }
#salon .card { position: absolute; left: 1290px; width: 510px; height: 92px; border-radius: 16px; background: #fff; box-shadow: var(--lift), 0 0 0 1px var(--rule); display: flex; align-items: center; gap: 20px; padding: 0 22px; transition: box-shadow 500ms var(--ease), translate 600ms var(--spring); }
#salon .card .ic { width: 56px; height: 56px; flex: none; }
#salon .card .cn { font-family: var(--mono); font-size: 23px; color: var(--ink); }
#salon .card.decl .cn { font-family: var(--sans); font-size: 30px; font-weight: 500; }
#salon .card .ra { margin-left: auto; font-size: 20px; color: var(--pass); font-family: var(--mono); }
#salon .card .ring { position: absolute; inset: -3px; border-radius: 18px; box-shadow: 0 0 0 3px var(--c, var(--ink)); opacity: 0; transition: opacity 500ms var(--ease); pointer-events: none; }
#salon .card.hit .ring { opacity: 1; }
#salon .card.hit { translate: -6px 0; }
#salon .tools-l { position: absolute; left: 1290px; top: 420px; font-size: 22px; color: var(--ink-3); }
#salon svg.arrows { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; }
#salon .arr { fill: none; stroke-width: 3; stroke-linecap: round; opacity: 0; transition: opacity 500ms var(--ease); }
#salon .arr.on { opacity: 1; }
#salon .head { opacity: 0; transition: opacity 300ms var(--ease); }
#salon .head.on { opacity: 1; }
#salon .lens { opacity: 0; scale: .4; transition: opacity 400ms var(--ease), scale 700ms var(--spring); }
#salon .lens.on { opacity: 1; scale: 1; }
#salon .verb { position: absolute; left: 50%; top: 470px; width: 1640px; margin-left: -820px; text-align: center; background: #fff; border-radius: 26px; padding: 44px 40px 52px; box-shadow: var(--lift-2), 0 0 0 1px var(--rule); opacity: 0; scale: .82; translate: 0 40px; transition: opacity 900ms var(--ease) 250ms, scale 1300ms var(--ease) 150ms, translate 1300ms var(--ease) 150ms; pointer-events: none; }
#salon.zoom .verb { opacity: 1; scale: 1; translate: 0 0; }
#salon .verb .code { font-family: var(--mono); font-size: 54px; letter-spacing: -0.02em; color: var(--ink); }
#salon .verb .who { font-size: 28px; color: var(--ink-3); margin-bottom: 26px; display: flex; gap: 12px; justify-content: center; align-items: center; }
#salon .verb mark.hl2::before { transition-delay: 1100ms; }
#salon.zoom .verb mark.hl2::before { opacity: 1; }
#salon .src { position: absolute; left: 120px; top: 960px; font-size: 22px; color: var(--ink-3); font-family: var(--mono); }

/* ---------- 13 · the pattern ---------- */
#pattern .grid2 { position: absolute; top: 280px; width: 600px; }
#pattern .grid2 h3 { margin: 0 0 14px 180px; font-size: 36px; font-weight: 600; display: flex; gap: 12px; align-items: center; letter-spacing: -0.015em; }
#pattern svg.g { width: 600px; height: 590px; }
#pattern .cl { font-family: var(--sans); font-size: 24px; fill: var(--ink-3); }
#pattern .ok { fill: color-mix(in srgb, var(--pass) 9%, #fff); }
#pattern .no { fill: #fff; }
#pattern .dot { transform-box: fill-box; transform-origin: center; scale: 0; opacity: 0; transition: scale 900ms var(--spring), opacity 400ms var(--ease); }
#pattern .on .dot, #pattern .dot.on { scale: 1; opacity: 1; }
#pattern .donut { position: absolute; left: 1420px; top: 330px; width: 380px; text-align: center; }
#pattern .donut .n { font-size: 64px; font-weight: 600; letter-spacing: -0.04em; }
#pattern .donut .lab { font-size: 24px; color: var(--ink-3); }
#pattern .donut .ph { font-family: var(--mono); font-size: 20px; margin-top: 10px; letter-spacing: .04em; }
#pattern .src { position: absolute; left: 120px; top: 980px; font-size: 22px; color: var(--ink-3); font-family: var(--mono); }

/* ---------- 14 · git ---------- */
#git svg.hero { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
#git .att { opacity: 0; transition: opacity 500ms var(--ease); }
#git .att.on { opacity: var(--o, 1); }
#git .wall { transform-box: fill-box; transform-origin: center; transition: opacity 700ms var(--ease), scale 800ms var(--ease); }
#git.fixed .wall { opacity: .18; }
#git.fixed .fail.on { opacity: calc(var(--o, 1) * .38); }
#git.fixed .cap.fail.on { opacity: 0; }
#git .pill { transition: opacity 400ms var(--ease); }
#git .cap { opacity: 0; transition: opacity 500ms var(--ease); }
#git .cap.on { opacity: 1; }
#git .branch { transition: opacity 500ms var(--ease); }
#git .term { position: absolute; left: 1250px; top: 790px; width: 420px; background: var(--ink); color: #E9E7E0; font-family: var(--mono); font-size: 22px; line-height: 1.45; padding: 16px 22px; border-radius: 12px; white-space: pre; box-shadow: var(--lift); opacity: 0; translate: 0 14px; transition: opacity 600ms var(--ease), translate 600ms var(--ease); }
#git .term.on { opacity: 1; translate: 0 0; }
#git .term .pr { color: #8EE3C8; }
#git .verb { display: none; position: absolute; left: 120px; top: 860px; font-family: var(--mono); font-size: 50px; letter-spacing: -0.02em; opacity: 0; translate: 0 18px; transition: opacity 700ms var(--ease), translate 700ms var(--ease); }
#git .verb.on { opacity: 1; translate: 0 0; }
#git .verb .who { display: block; font-family: var(--sans); font-size: 24px; color: var(--ink-3); margin-bottom: 10px; letter-spacing: 0; }
#git.fixed .verb.on { opacity: .5; }
#git .solved { position: absolute; left: 1250px; top: 330px; width: 550px; }
#git .solved .n { font-size: 96px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
#git .solved .lab { font-size: 26px; color: var(--ink-3); margin-top: 6px; }
#git .fixsw { position: absolute; left: 120px; top: 284px; display: flex; gap: 16px; align-items: center; font-size: 26px; color: var(--ink-2); }
.switch { width: 66px; height: 36px; border-radius: 999px; background: var(--rule); position: relative; flex: none; overflow: hidden; }
.switch::before { content: ""; position: absolute; inset: 0; background: var(--nb); opacity: 0; transition: opacity 400ms var(--ease); }
.switch::after { content: ""; position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: translate 500ms var(--spring); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on::before { opacity: 1; }
.switch.on::after { translate: 30px 0; }
#git .src { position: absolute; left: 330px; top: 290px; font-family: var(--mono); font-size: 22px; color: var(--ink-3); }

/* ---------- 15 · what I tried ---------- */
#tried .pg { position: absolute; top: 300px; width: 520px; height: 600px; background: #fff; border-radius: 22px; box-shadow: var(--lift), 0 0 0 1px var(--rule); overflow: hidden; }
#tried .pg .k { position: absolute; left: 40px; top: 36px; font-family: var(--mono); font-size: 20px; color: var(--ink-3); }
#tried .pg .t { position: absolute; left: 40px; right: 36px; top: 70px; font-size: 32px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
#tried .pg svg { position: absolute; left: 40px; top: 190px; width: 440px; height: 230px; overflow: visible; }
#tried .pg .v { position: absolute; left: 40px; right: 36px; top: 470px; font-size: 28px; color: var(--ink-2); line-height: 1.25; }
#tried .span { transform-box: fill-box; transform-origin: center; }

/* ---------- 16 · suspects ---------- */
#sus .card3 { position: absolute; top: 300px; width: 386px; height: 520px; perspective: 1600px; }
#sus .flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: rotate 1000ms var(--ease); rotate: y 0deg; }
#sus .card3.flipped .flip { rotate: y 180deg; }
#sus .face { position: absolute; inset: 0; border-radius: 20px; background: #fff; box-shadow: var(--lift), 0 0 0 1px var(--rule); backface-visibility: hidden; padding: 34px 32px; }
#sus .face.back { rotate: y 180deg; background: var(--ink); color: var(--paper); box-shadow: var(--lift); }
#sus .face .k { font-family: var(--mono); font-size: 22px; color: var(--ink-3); }
#sus .face svg { display: block; margin: 40px 0 34px; width: 150px; height: 150px; }
#sus .face .t { font-size: 34px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.18; }
#sus .face.back .k { color: #9AA0A8; }
#sus .face.back .bn { font-size: 28px; color: #C9CDD3; margin-top: 10px; line-height: 1.2; font-weight: 500; }
#sus .face.back .k2 { font-family: var(--mono); font-size: 20px; color: var(--nb); margin-top: 120px; text-transform: uppercase; letter-spacing: .08em; }
#sus .face.back .t { font-size: 32px; font-weight: 500; line-height: 1.28; margin-top: 12px; }

/* ---------- 17 · the road ---------- */
#road svg.hero { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
#road .ml { font-family: var(--sans); font-size: 24px; fill: var(--ink-2); }
#road .ml.b { font-weight: 600; fill: var(--ink); }
#road .ml.d { font-family: var(--mono); font-size: 20px; fill: var(--ink-3); }
#road .gpu { position: absolute; left: 120px; top: 830px; display: flex; align-items: baseline; gap: 26px; }
#road .gpu .n { font-size: 120px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
#road .gpu .lab { font-size: 28px; color: var(--ink-3); }

/* ---------- 18 · the answer ---------- */
#answer .recap { position: absolute; left: 120px; top: 330px; transform-origin: 0 0; transition: transform 1100ms var(--ease), opacity 900ms var(--ease); }
#answer.k3 .recap { transform: translateY(-50px) scale(.4); opacity: .55; }
#answer .recap .r { display: flex; gap: 28px; align-items: baseline; font-size: 84px; line-height: 1.25; letter-spacing: -0.035em; font-weight: 600; }
#answer .recap .r span { width: 460px; color: var(--ink-3); font-weight: 500; }
#answer .a1 { position: absolute; left: 120px; top: 440px; width: 1660px; font-size: 104px; line-height: 1.06; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); }
#answer .a2 { position: absolute; left: 120px; top: 694px; width: 1660px; font-size: 104px; line-height: 1.06; font-weight: 600; letter-spacing: -0.04em; color: var(--nb); }

/* ---------- backups ---------- */
.bk .hl { font-size: 48px; letter-spacing: -0.02em; top: 120px; }
.bk .act { position: absolute; left: 120px; top: 70px; font-family: var(--mono); font-size: 22px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.btab { position: absolute; left: 120px; right: 120px; top: 230px; border-collapse: collapse; font-size: 24px; width: 1680px; }
.btab th { text-align: right; font-weight: 600; padding: 8px 14px; border-bottom: 2px solid var(--ink); }
.btab th:first-child, .btab td:first-child { text-align: left; }
.btab td { padding: 6px 14px; border-bottom: 1px solid var(--rule); text-align: right; font-family: var(--mono); font-feature-settings: "tnum" 1; }
.btab td:first-child { font-family: var(--sans); }
.btab tr.grp td { font-family: var(--sans); color: var(--ink-3); border-bottom: 0; padding-top: 12px; font-style: italic; }
.btab tr.pool td { font-weight: 600; }
.btab b { font-weight: 700; }
.btab.wide td, .btab.wide th { text-align: left; font-family: var(--sans); vertical-align: top; line-height: 1.3; }
.bcols { position: absolute; left: 120px; right: 120px; top: 250px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; font-size: 24px; line-height: 1.4; color: var(--ink-2); }
.bcols h3 { font-size: 32px; color: var(--ink); margin: 0 0 12px; font-weight: 600; letter-spacing: -0.01em; }
.bcols p { margin: 0 0 22px; }
.bcols .num { color: var(--ink); }
.blist { position: absolute; left: 120px; right: 120px; top: 230px; font-size: 24px; line-height: 1.36; color: var(--ink-2); counter-reset: t; }
.blist div { display: grid; grid-template-columns: 56px 1fr; padding: 12px 0; border-top: 1px solid var(--rule); }
.blist div::before { counter-increment: t; content: counter(t); font-family: var(--mono); color: var(--ink-3); }
.blist b { color: var(--ink); font-weight: 600; }
.bsrc { position: absolute; left: 120px; right: 120px; top: 990px; font-size: 24px; color: var(--ink-3); }
.small { font-size: 24px; line-height: 1.35; color: var(--ink-3); }
.ink3 { color: var(--ink-3); }

/* ---------- print ---------- */
body.print { background: var(--paper); overflow: visible; height: auto; }
body.print #viewport { position: static; overflow: visible; }
body.print #stage { position: relative; transform: none !important; height: auto; background: none; overflow: visible; }
body.print .slide { position: relative; display: block; width: 1920px; height: 1080px; opacity: 1; visibility: visible; translate: none; overflow: hidden; background: var(--paper); break-after: page; page-break-after: always; }
body.print .slide .hero, body.print .slide .hl { translate: none; }
body.print #chrome-foot, body.print #demo-status, body.print #toast, body.print .txbtn, body.print .txov { display: none; }
body.print .slide .pfoot { display: block; }
.pfoot { display: none; position: absolute; right: 120px; bottom: 34px; font-family: var(--mono); font-size: 22px; color: var(--ink-3); }
@page { size: 1920px 1080px; margin: 0; }
@media print { body { background: var(--paper); } }
#sus .face.back .k2 { position: absolute; left: 32px; top: 236px; margin: 0; }
#sus .face.back .t { position: absolute; left: 32px; right: 32px; top: 272px; margin: 0; }

/* ---------- 14 · where the gap sits ---------- */
#gap svg.hero { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
#gap .src { position: absolute; left: 120px; top: 960px; font-size: 22px; color: var(--ink-3); font-family: var(--mono); }

/* 7 · the adjacency cue */
#nb .recent { position: absolute; right: -8px; width: 26px; border: 2.5px solid var(--nb); border-left: 0; border-radius: 0 10px 10px 0; pointer-events: none; }
#nb .recent span { position: absolute; right: 40px; top: 50%; translate: 0 -50%; white-space: nowrap; font-family: var(--sans); font-size: 21px; color: var(--nb); font-weight: 500; }
/* 15 · the wrong-case chip */
#git .chip { position: absolute; left: 1250px; top: 510px; font-size: 19px; color: var(--ink-2); background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 18px; box-shadow: var(--lift); }
#git .chip code { font-family: var(--mono); font-size: 18px; color: var(--ink); }
/* 5 · the request arrives into the space that is left, slowly enough to be seen */
#catch .req[data-b] { translate: 60px 0; scale: 1; transition: opacity 650ms var(--ease), translate 700ms var(--ease); }
#catch .req[data-b].on { translate: 0 0; }
#ways .page .tt:last-child { margin-bottom: 0; line-height: 16px; }

/* demo source tag is for the presenter only */
#demo-status { display: none !important; }
