/* kairoslabs.sg dark palette, plus one signal colour for the red lights */
:root {
  --bg: #0d0b08;
  --surface: #13110d;
  --raised: #1a1813;
  --line: #33302b;
  --ink: #e1ded7;
  --muted: #a8a49c;
  --subtle: #726e67;
  --faint: #514d45;
  --paper: #faf8f4;
  --signal: #e4572e;
  --go: #5fc583;
  --font: "Apfel Grotezk", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --left: 176px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); overflow: hidden; -webkit-font-smoothing: antialiased; }
#viewport { position: fixed; inset: 0; overflow: hidden; }
#stage { position: absolute; left: 50%; top: 50%; width: 1600px; height: 900px; transform-origin: center center; }

#field { position: absolute; inset: 0; width: 1600px; height: 900px; pointer-events: none; z-index: 2; }
#marker { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .5s; z-index: 3; }
#marker i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px rgba(228, 87, 46, .22); }
#marker span { position: absolute; left: 16px; top: -16px; white-space: nowrap; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); background: var(--bg); padding: 2px 8px; }
#marker.show { opacity: 1; }
#marker.up span { left: -10px; top: -52px; }

.brand { position: absolute; left: 64px; top: 34px; z-index: 5; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bg); background: var(--paper); border: 1px solid var(--paper); padding: 8px 12px 7px; text-decoration: none; transition: background .2s, color .2s; }
.brand:hover, .brand:focus-visible { background: var(--bg); color: var(--paper); }   /* invert, keep the box */
#rail { position: absolute; left: 12px; top: 370px; display: grid; gap: 22px; z-index: 4; }
#rail::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
#rail i { position: relative; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--subtle); background: var(--bg); }
#rail i.on { background: var(--ink); border-color: var(--ink); }

.slide { position: absolute; inset: 0; padding: 118px 176px 0 var(--left); opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; z-index: 1; }
.slide.active { opacity: 1; visibility: visible; }

.kicker { font-size: 15px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; display: flex; align-items: center; gap: 12px; }
h1, h2 { font-weight: 500; text-wrap: balance; }
h2 { font-size: 60px; line-height: 1.04; letter-spacing: -0.04em; max-width: 1248px; }
.display { font-size: 100px; line-height: .98; letter-spacing: -0.045em; font-weight: 500; }
.dim { color: var(--subtle); }
.lede, .caption { text-wrap: balance; }
.lede { font-size: 30px; line-height: 1.35; letter-spacing: -0.01em; color: var(--muted); max-width: 1000px; margin-top: 30px; }
.sub { font-size: 17px; color: var(--subtle); }
.foot { position: absolute; left: var(--left); right: 176px; bottom: 76px; display: flex; justify-content: space-between; align-items: baseline; font-size: 22px; font-weight: 500; border-top: 1px solid var(--line); padding-top: 22px; }
.abs { position: absolute; left: var(--left); bottom: 34px; }
.num { font-size: 15px; font-weight: 500; letter-spacing: .08em; color: var(--subtle); }
.rk { font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.step { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.step.on { opacity: 1; transform: none; }

/* hook */
#s-hook .quotes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: opacity .6s; }
.quote { padding: 34px 0 40px; display: flex; flex-direction: column; gap: 18px; }
.quote + .quote { border-left: 1px solid var(--line); padding-left: 40px; }
.quote .co { font-size: 15px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.quote .amt { font-size: 112px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.quote.odd .amt { color: var(--signal); }
.vote { margin-top: 48px; display: flex; gap: 40px; align-items: center; font-size: 30px; }
.vote .q { color: var(--muted); margin-right: 12px; }
.vote b, .abc b { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); font-size: 20px; font-weight: 500; margin-right: 12px; }
.caption { position: absolute; left: var(--left); bottom: 66px; font-size: 24px; color: var(--muted); }
#s-hook.pulled .quotes, #s-hook.pulled .vote { opacity: 0; transition: opacity .35s; }

/* thesis rows */
.rows { list-style: none; margin-top: 58px; border-top: 1px solid var(--line); }
.lights li { display: grid; grid-template-columns: 70px 40px 420px 1fr; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); }
.lights b { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; }
.lights span:last-child { font-size: 24px; color: var(--muted); }
.lamp { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(228, 87, 46, .18); flex: none; }
.lamp.sm { width: 10px; height: 10px; box-shadow: 0 0 0 3px rgba(228, 87, 46, .18); }

/* red light 1 */
.abc { display: flex; gap: 34px; font-size: 30px; margin-top: 22px; }
.lanes { margin-top: 34px; }
.lane-group { display: grid; grid-template-columns: 1fr 140px; column-gap: 24px; margin-bottom: 16px; }
.lane-label { grid-column: 1 / -1; font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.track { position: relative; height: 120px; border-left: 1px solid var(--line); }
.bar { position: absolute; height: 24px; transform-origin: left center; transform: scaleX(0); }
.lane-group.on .bar { animation: grow var(--d) linear forwards; animation-delay: var(--delay); }
@keyframes grow { to { transform: scaleX(1); } }
.bar.think { background: var(--ink); }
.bar.save { background: var(--signal); }
.bar.idle { background: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 9px); }
.total { align-self: center; font-size: 64px; font-weight: 500; letter-spacing: -0.04em; opacity: 0; transition: opacity .3s; }
.total.show { opacity: 1; }
.total.bad { color: var(--signal); }
.legend { display: flex; gap: 36px; font-size: 18px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 10px; }
.sw { display: inline-block; width: 26px; height: 12px; }
.sw.think { background: var(--ink); } .sw.save { background: var(--signal); }
.sw.idle { background: repeating-linear-gradient(135deg, var(--subtle) 0 2px, transparent 2px 6px); }
.rule { position: absolute; left: var(--left); bottom: 56px; font-size: 30px; color: var(--muted); letter-spacing: -0.01em; }
.rule b { color: var(--ink); font-weight: 500; }

/* red light 2: the record + two writers */
.record { margin-top: 48px; display: grid; grid-template-columns: 330px 1fr 200px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rcell { padding: 26px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.rcell + .rcell { border-left: 1px solid var(--line); padding-left: 36px; }
.ramt { font-size: 72px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--signal); padding-left: 30px; }
.raction { font-size: 34px; letter-spacing: -0.02em; line-height: 1.2; min-height: 82px; }
.raction s { text-decoration: none; display: block; transition: color .4s; }
.raction em { font-style: normal; display: block; color: var(--signal); opacity: 0; transition: opacity .4s; }
#s-stale.lost .raction s { text-decoration: line-through; color: var(--subtle); }
#s-stale.lost .raction em { opacity: 1; }
.rver { font-size: 72px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; transition: color .3s; }

.tl { position: relative; margin-top: 44px; height: 190px; --unit: 108.8px; --x0: 160px; }
.tl-axis { position: absolute; left: var(--x0); right: 0; top: 95px; height: 1px; background: var(--line); }
.lane { position: absolute; left: 0; right: 0; height: 60px; }
#lane-agent { top: 10px; } #lane-human { top: 120px; }
.who { position: absolute; left: 0; top: 18px; font-size: 15px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ev { position: absolute; top: 10px; left: calc(var(--x0) + var(--t) * var(--unit)); padding: 7px 12px 6px; border: 1px solid var(--subtle); font-size: 20px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; background: var(--bg); }
.ev.write { border-color: var(--ink); color: var(--bg); background: var(--ink); }
.tbar { position: absolute; top: 24px; height: 14px; left: calc(var(--x0) + var(--a) * var(--unit)); width: calc((var(--b) - var(--a)) * var(--unit)); transform-origin: left center; transform: scaleX(0); }
.tbar.think { background: var(--ink); transition: transform 2.6s linear; }
.tbar.review { background: repeating-linear-gradient(135deg, var(--muted) 0 2px, transparent 2px 7px); transition: transform 1s linear; }
.lane .on { opacity: 1; transform: none; }
.tbar.on { transform: scaleX(1); }
#ev-agent.bad { background: var(--signal); border-color: var(--signal); color: var(--bg); }
#ev-agent.rejected { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.verdict { margin-top: 18px; font-size: 32px; font-weight: 500; letter-spacing: -0.02em; min-height: 42px; }
.verdict.bad { color: var(--signal); } .verdict.good { color: var(--ink); }

/* red light 3 */
.dot-labels { position: absolute; left: var(--left); width: 1248px; top: 724px; display: grid; grid-template-columns: repeat(3, 1fr); opacity: 0; transition: opacity .5s; }
#s-dots.labels .dot-labels { opacity: 1; }
.dot-labels div { display: flex; flex-direction: column; gap: 2px; }
.dot-labels b { font-size: 52px; font-weight: 500; letter-spacing: -0.04em; }
.dot-labels div:nth-child(1) b { color: var(--subtle); }
.dot-labels div:nth-child(2) b { color: var(--muted); }
.dot-labels span { font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.question { position: absolute; left: var(--left); top: 360px; width: 500px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0 28px; display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.question p { font-size: 34px; line-height: 1.15; letter-spacing: -0.025em; }
.question .answer { font-size: 22px; color: var(--muted); opacity: 0; transition: opacity .5s; }
#s-dots.ask .question { opacity: 1; transform: none; }
#s-dots.answered .question .answer { opacity: 1; color: var(--ink); }

/* close */
#s-close h2, #s-qr h2 { max-width: 640px; font-size: 52px; }
#s-close .display { font-size: 92px; margin-top: 44px; }
.qrs { position: absolute; right: 176px; top: 128px; display: grid; gap: 26px; z-index: 5; }
.qr { display: flex; flex-direction: column; gap: 10px; width: 190px; text-decoration: none; color: var(--ink); }
.qr svg { display: block; width: 190px; height: 190px; background: #fff; padding: 10px; }
.qr span { font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

#hud { position: fixed; right: 20px; bottom: 14px; display: flex; gap: 22px; font-size: 12px; color: var(--faint); font-family: var(--mono); }
:fullscreen #hud { display: none; }

/* slide 2, build 0: a real-looking spreadsheet */
.sheet { position: absolute; left: var(--left); top: 282px; width: 1248px; background: #fff; color: #1f1f1f; font-family: Arial, "Helvetica Neue", sans-serif; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transition: opacity .5s ease, transform .6s ease; transform-origin: 62% 52%; }
.sheet .fx { display: flex; align-items: center; height: 40px; border-bottom: 1px solid #d4d4d4; font-size: 17px; }
.sheet .ref { width: 90px; padding-left: 12px; border-right: 1px solid #d4d4d4; height: 100%; display: flex; align-items: center; }
.sheet .fxi { width: 46px; text-align: center; color: #8a8a8a; font-style: italic; border-right: 1px solid #d4d4d4; height: 100%; display: flex; align-items: center; justify-content: center; }
.sheet .formula { padding-left: 14px; }
.sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 19px; }
.sheet th, .sheet td { border: 1px solid #e2e2e2; height: 38px; padding: 0 12px; white-space: nowrap; overflow: hidden; }
.sheet th { background: #f3f3f3; color: #6b6b6b; font-weight: 400; font-size: 15px; text-align: center; padding: 0; }
.sheet tr.cols th:nth-child(1) { width: 52px; }
.sheet tr.cols th:nth-child(2) { width: 344px; }
.sheet tr.cols th:nth-child(3) { width: 104px; }
.sheet tr.cols th:nth-child(n+4) { width: 249px; }
.sheet .n { text-align: right; font-variant-numeric: tabular-nums; }
.sheet tr.hdr td { font-weight: 700; background: #fafafa; }
.sheet tr.hot td { background: #fff7f3; }
.sheet td.sel { color: var(--signal); font-weight: 700; outline: 3px solid var(--signal); outline-offset: -2px; position: relative; }
.sheet tr.fade td, .sheet tr.fade th { color: #b0b0b0; }
.sheet .tabs { display: flex; align-items: stretch; height: 38px; background: #f3f3f3; border-top: 1px solid #d4d4d4; font-size: 15px; color: #555; }
.sheet .tabs span { padding: 0 18px; display: flex; align-items: center; border-right: 1px solid #d4d4d4; }
.sheet .tabs span.on { background: #fff; color: #1f1f1f; font-weight: 700; }
.sheet .tabs .count { margin-left: auto; border: 0; border-left: 1px solid #d4d4d4; color: #6b6b6b; }
#s-hook .sheet { opacity: 0; transform: scale(1.04); pointer-events: none; }
#s-hook.sheetview .sheet { opacity: 1; transform: none; }
#s-hook.sheetview .quotes { opacity: 0; }

/* slide 6, final build: twelve answers absorbed into one green light */
.decision { position: absolute; left: 1090px; top: 510px; z-index: 4; pointer-events: none; }
.decision i { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 10px rgba(95, 197, 131, .18), 0 0 60px 18px rgba(95, 197, 131, .35); transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.decision span { position: absolute; left: 44px; top: -30px; white-space: nowrap; font-size: 20px; color: var(--muted); opacity: 0; transition: opacity .5s; }
.decision b { display: block; font-size: 34px; font-weight: 500; letter-spacing: -0.02em; color: var(--go); }
#s-dots.answered .decision i { transform: scale(1); transition-delay: 2.05s; }
#s-dots.answered .decision span { opacity: 1; transition-delay: 2.35s; }
#s-dots .kicker .lamp { transition: background .4s 2.1s, box-shadow .4s 2.1s; }
#s-dots.answered .kicker .lamp { background: var(--go); box-shadow: 0 0 0 3px rgba(95, 197, 131, .22); }

/* isometric hairline figures, after hairline.lucasmarkes.com (MIT), inverted for the dark deck */
.iso .sil { fill: var(--bg); stroke: var(--subtle); stroke-width: 1.1; stroke-linejoin: round; transition: stroke .3s; }
.iso .lo { fill: none; stroke: var(--faint); stroke-width: 1; transition: stroke .3s; }
.iso .eye { fill: var(--subtle); transition: fill .3s; }
.iso .lbl { fill: var(--muted); font: 500 12px var(--font); letter-spacing: .12em; text-transform: uppercase; }
.iso .fig { transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.iso .fig.on { transform: translate(0, -9px); }
.iso .fig.on .sil { stroke: var(--ink); }
.iso .fig.on .lo { stroke: var(--muted); }
.iso .fig.on .eye { fill: var(--ink); }
.iso .fig.red .sil { stroke: var(--signal); }

#run-scene { position: absolute; left: var(--left); top: 290px; }
.mini { position: absolute; left: 1012px; top: 300px; width: 412px; }
.mini table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 18px; }
.mini th, .mini td { height: 40px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mini th { text-align: left; font-weight: 400; color: var(--muted); width: 154px; }
.mini td { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; position: relative; }
.mini td:empty::after { content: "·"; color: var(--faint); }
.mini tr.h th, .mini tr.h td { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); height: 34px; }
.mini td.fill { animation: cellin .6s ease; }
@keyframes cellin { from { background: rgba(225, 222, 215, .16); } to { background: transparent; } }
.mini td.hot { color: var(--signal); font-weight: 500; }
.mini td.hot::before { content: ""; position: absolute; left: 14px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(228, 87, 46, .22); }
.packet { position: absolute; width: 9px; height: 9px; margin: -4px 0 0 -4px; background: var(--ink); z-index: 6; pointer-events: none; }
.packet.hot { background: var(--signal); }
.packet.big { width: 18px; height: 18px; margin: -9px 0 0 -9px; box-shadow: 0 0 0 4px rgba(228, 87, 46, .25), 0 0 22px rgba(228, 87, 46, .7); }
.reds { position: absolute; left: var(--left); bottom: 70px; list-style: none; display: flex; gap: 56px; font-size: 28px; letter-spacing: -0.02em; }
.reds li { display: flex; align-items: center; gap: 14px; }
.reds li.on { transition-delay: 2.3s; } .reds li.on:nth-child(2) { transition-delay: 2.6s; } .reds li.on:nth-child(3) { transition-delay: 2.9s; }
.mini td.bump { animation: cellbump .9s ease-out; }
@keyframes cellbump {
  0% { transform: translateX(0); background: rgba(228, 87, 46, .38); }
  18% { transform: translateX(-7px); }
  36% { transform: translateX(6px); }
  54% { transform: translateX(-4px); }
  72% { transform: translateX(2px); }
  100% { transform: translateX(0); background: transparent; }
}


.glyph { width: 44px; height: 44px; vertical-align: middle; margin: -14px 6px -10px -6px; }
.track .glyph { position: absolute; left: -44px; margin: 0; width: 30px; height: 30px; }

.who { display: flex; align-items: center; }
.q-head { display: flex; align-items: center; }
#s-dots.answered #rl3-person { transform: translate(0, -9px); }
#s-dots.answered #rl3-person .sil { stroke: var(--go); }

.lane .glyph { width: 62px; height: 62px; margin: -24px 4px -20px -12px; }
#s-stale.kept #rl2-person .sil { stroke: var(--go); }

/* close: the three lessons, the slide people photograph */
.recap { list-style: none; margin-top: 40px; max-width: 920px; border-top: 1px solid var(--line); }
.recap li { display: grid; grid-template-columns: 60px 1fr; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 38px; font-weight: 500; letter-spacing: -0.03em; }
.recap .num { font-size: 15px; }

/* phones and tablets */
#mnav { display: none; }
body.portrait #viewport { bottom: 96px; }
body.portrait #mnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 96px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px calc(env(safe-area-inset-bottom) + 8px); border-top: 1px solid var(--line); font-size: 13px; color: var(--subtle); text-align: center; }
#mnav button { flex: none; width: 56px; height: 56px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 22px var(--font); }
#mnav button:active { background: var(--raised); }
@media (hover: none) { #hud { display: none; } }

/* title: the terrain table */
#s-title .display { font-size: 112px; }
#s-title .lede { max-width: 560px; }
#terrain { position: absolute; left: 760px; top: 150px; }
.iso .hotc { stroke: var(--signal); }
.iso .chk { stroke: var(--ink); }
.iso .cell polygon { transition: stroke .4s; }

/* lesson 02: one clock, one colour meaning each (ivory = work, red = damage, green = protected) */
.playhead { position: absolute; top: -6px; bottom: -6px; left: var(--x0); width: 1px; background: var(--muted); opacity: 0; }
.playhead.run { opacity: .8; }
.tl .tbar, .tl .ev { transition: none; }
.tl .tbar.grow { transition: transform var(--dur) linear; }
.tl .ev.show { transition: opacity .3s, transform .3s; }
.rver.bump, .raction.bump { animation: bump .9s ease; }
@keyframes bump { 0% { background: rgba(225, 222, 215, .22); } 100% { background: transparent; } }
.rver.bad { color: var(--signal); }
.rver.kept { color: var(--go); }
#ev-agent.bad { background: var(--signal); border-color: var(--signal); color: var(--bg); }
#ev-agent.rejected { background: var(--bg); color: var(--muted); border-color: var(--subtle); border-style: dashed; }
#ev-human.kept { background: var(--go); border-color: var(--go); color: var(--bg); transition: background .4s, border-color .4s; }
#s-stale .raction.kept s { color: var(--ink); }

/* last slide: two QR codes; dots form them first, then the crisp codes fade in on top */
.qrrow { position: absolute; left: var(--left); right: 176px; top: 380px; display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: 160px; }
.qrcard { display: flex; flex-direction: column; align-items: center; gap: 18px; text-decoration: none; color: var(--ink); }
.qrbox { display: block; width: 360px; height: 360px; }
.qrbox svg { display: block; width: 360px; height: 360px; opacity: 0; transition: opacity .8s; }
#s-qr.active .qrbox svg { opacity: 1; transition-delay: 2.1s; }
.qrlabel { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
#s-close .recap { max-width: 640px; margin-top: 56px; }
#s-close .recap li { font-size: 30px; padding: 14px 0; grid-template-columns: 48px 1fr; }
.qrbox { position: relative; }
.qrlogo { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; padding: 6px; background: #fff; border-radius: 10px; z-index: 3; }
.qrlogo svg { display: block; width: 54px; height: 54px; opacity: 1 !important; }

/* close: the same table, resolved, with the way back to Kairos */
#terrain2 { position: absolute; left: 800px; top: 140px; }
.iso .goc { stroke: var(--go); }
#marker.go i { background: var(--go); box-shadow: 0 0 0 5px rgba(95, 197, 131, .22); }

/* close: mapped terrain */
.iso .settled { stroke: var(--faint); }
.iso .peakc { stroke: var(--ink); }
.iso .flagpole { stroke-width: 1.2; }
.iso .flag { fill: var(--go); }

/* agents: capable background workers; people: the strongest figure on screen */
.iso .fig.agent .sil { stroke: #5f5b54; }
.iso .fig.agent .eye { fill: #6f6a62; }
.iso .light { fill: var(--faint); stroke: none; transition: fill .3s; }
.iso .fig.agent.on .light { fill: var(--ink); }
.iso .fig.agent.red .sil { stroke: var(--signal); }
.iso .fig.agent.red .light { fill: var(--signal); }
.iso .fig.person .sil { stroke: var(--muted); stroke-width: 1.25; }
.iso .fig.person.on .sil { stroke: var(--ink); }

/* the slides QR on the title and the playground QR on the close: a nudge to look again later */
.slidesqr { position: absolute; right: 64px; bottom: 40px; z-index: 6; display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.slidesqr img { width: 160px; height: 160px; display: block; }
.slidesqr.playqr span { color: var(--ink); font-size: 15px; }
.slidesqr.playqr img { width: 148px; height: 148px; }
/* the matching toy sits in the corner of each lesson */
.toyhint { position: absolute; right: 64px; bottom: 34px; z-index: 6; display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--subtle); font-size: 13px; letter-spacing: .04em; opacity: .9; }
.toyhint:hover { color: var(--ink); opacity: 1; }
.iso .fig.lock .sil, .iso .fig.checker .sil, .iso .fig.sorter .sil { stroke: var(--muted); }
.iso .fig.lock .shackle { fill: none; }
.iso .fig.checker .tick, .iso .fig .mark { fill: none; stroke: var(--muted); stroke-width: 1.3; }
.toyhint svg { transition: transform .5s cubic-bezier(.3, 1.5, .5, 1), filter .5s; }
.toyhint .sil, .toyhint .lo, .toyhint .tick, .toyhint .mark { transition: stroke .5s; }
.toyhint.lit { color: var(--go); opacity: 1; }
.toyhint.lit svg { transform: translateY(-6px) scale(1.12); filter: drop-shadow(0 0 10px rgba(95, 197, 131, .55)); animation: toyglow 1.6s ease-out 1; }
.toyhint.lit svg.iso .fig .sil, .toyhint.lit svg.iso .fig .lo, .toyhint.lit svg.iso .fig .tick, .toyhint.lit svg.iso .fig .mark, .toyhint.lit svg.iso .fig .shackle { stroke: var(--go); }
.toyhint.lit svg.iso .fig .eye { fill: var(--go); }
@keyframes toyglow { 0% { filter: drop-shadow(0 0 0 rgba(95, 197, 131, 0)); } 30% { filter: drop-shadow(0 0 22px rgba(95, 197, 131, .9)); } 100% { filter: drop-shadow(0 0 10px rgba(95, 197, 131, .55)); } }
/* motion plays regardless of the OS reduce-motion setting: this is presented live */

/* the lesson in one line: the last step of each lesson covers the slide and states it plainly; the lesson label and its toy stay on top */
.oneliner { position: absolute; inset: 0; z-index: 8; pointer-events: none; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--left); background: rgba(13, 11, 8, .94); transform: none; }
.oneliner > * { transform: translateY(14px); transition: transform .5s ease; }
.oneliner.on > * { transform: none; }
.oneliner .ol-k { display: block; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--go); margin-bottom: 22px; }
.oneliner p { margin: 0; max-width: 1300px; font-size: 68px; line-height: 1.12; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.slide:has(.oneliner.on) > .kicker { position: relative; z-index: 9; }
.slide:has(.oneliner.on) > .toyhint { z-index: 9; }
