/* Ground Control #9 — talk styles. Dark inFuture tokens (house-style/tokens.css,
   copied so the folder runs on its own), plus three semantic talk colours:
   sun, heat and pass. Stage is 1920×1080; sizes below are stage pixels. */
:root {
  color-scheme: dark;
  --paper: #071219; --surface: #0E1D28; --surface-2: #152836;
  --ink: #E2ECF4; --ink-soft: #9CB1C2; --ink-faint: #778EA3;
  --rule: #21384A; --rule-firm: #3D5C77; --stroke: #5A7E9C; --numeral: #55799A;
  --blue: #7CB6E3; --blue-dim: #10303F;
  --brass: #D6AC4E; --brass-dim: #2E2510;
  /* talk semantics */
  --sun: #F2C84B;  --heat: #EF7D5B; --heat-dim: #3A1C14;
  --pass: #79C99A; --cold: #7CB6E3; --space: #03080C;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* an author display: flex must not beat the hidden attribute */
html, body { margin: 0; height: 100%; background: #000; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }

/* ── The deck: stage beside the reading panel (layout.js sets sizes) ───── */
body.deck { overflow: hidden; background: var(--paper); }
#viewport { position: fixed; left: 0; top: 0; overflow: hidden; background: var(--paper); }
#stage {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  transform-origin: 0 0; background: var(--paper); overflow: hidden;
  font-size: 32px; line-height: 1.4;
}
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.scene.on { opacity: 1; visibility: visible; transition: opacity .45s ease; }
/* a scene's way out (its leave() returned ms): it stays on top of the next one, then dissolves into it (shell.js OUTRO_FADE_MS) */
.scene.outro { opacity: 1; visibility: visible; z-index: 5; transition: none; }
.scene.outro-out { z-index: 5; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.err { position: absolute; inset: 40px; color: var(--heat); font: 18px var(--mono); white-space: pre-wrap; }

/* ── Scene furniture ──────────────────────────────────────────────────── */
.frame { position: absolute; inset: 0; padding: 72px 110px 90px; display: flex; flex-direction: column; }
.kicker { font: 500 26px/1.2 var(--sans); color: var(--ink-soft); margin: 0 0 14px; }
.headline { font: 500 72px/1.05 var(--display); font-variant-numeric: lining-nums; margin: 0 0 28px; color: var(--ink); max-width: 1500px; }
/* em in a headline marks the one number the slide is about: upright, in sun */
.headline em { color: var(--sun); font-style: normal; font-variant-numeric: lining-nums; }
/* question while the scene builds, then the finding in the same place (GC9.ui.headline) */
.headline.swap { display: grid; max-width: none; white-space: nowrap; }
.headline.swap > span { grid-area: 1 / 1; transition: opacity .5s ease; }
.headline.swap .ha, .headline.swap.answered .hq { opacity: 0; }
.headline.swap.answered .ha { opacity: 1; }
.lede { font-size: 32px; color: var(--ink-soft); max-width: 1200px; margin: 0; }
.cols { display: grid; grid-template-columns: 1fr 560px; gap: 60px; flex: 1; min-height: 0; }
/* a column of readouts on the paper itself: no card */
.panel { display: flex; flex-direction: column; gap: 22px; }
.panel h3 { margin: 0; font: 500 26px/1.2 var(--sans); color: var(--ink-soft); }
.big { font: 600 120px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mid { font: 600 56px/1.05 var(--sans); font-variant-numeric: tabular-nums; }
.unit { font-size: .45em; font-weight: 500; color: var(--ink-soft); margin-left: 8px; }
.note { font-size: 24px; color: var(--ink-faint); }
.sun { color: var(--sun); } .heat { color: var(--heat); } .pass { color: var(--pass); } .cold { color: var(--cold); } .brass { color: var(--brass); } .soft { color: var(--ink-soft); }
.eq { font: 400 34px/1.5 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.eq .v { color: var(--sun); }
.src { font: 500 18px/1 var(--sans); color: var(--ink-faint); margin-left: 4px; vertical-align: super; letter-spacing: 0; }
/* my own assumption: a quiet word in brackets, not a badge */
.est { font: italic 400 .72em/1 var(--sans); color: var(--ink-soft); margin-left: 8px; letter-spacing: 0; white-space: nowrap; }
.est::before { content: '('; } .est::after { content: ')'; }
.readout { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; align-items: baseline; font-size: 28px; }
.readout dt { color: var(--ink-soft); }
.readout dd { margin: 0; text-align: right; font: 600 34px/1.1 var(--sans); font-variant-numeric: tabular-nums; }

/* ── Sliders ──────────────────────────────────────────────────────────── */
.slider { display: flex; flex-direction: column; gap: 10px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.slider-label { font-size: 24px; color: var(--ink-soft); }
.slider-val { white-space: nowrap; font: 600 32px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.slider-track { position: relative; height: 34px; }
.slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 0; background: transparent; cursor: pointer; }
.slider input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--rule-firm); }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); margin-top: -11px; border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--sun); }
.slider input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--rule-firm); }
.slider input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--sun); border: 3px solid var(--paper); }
.slider input[type=range]:focus { outline: none; }
.slider-marker { display: none; position: absolute; top: -4px; width: 4px; height: 42px; margin-left: -2px; background: var(--pass); border-radius: 2px; pointer-events: none; }
.slider-marker::after { content: attr(data-label); position: absolute; top: 44px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 18px/1 var(--sans); color: var(--pass); }

/* ── Bars ─────────────────────────────────────────────────────────────── */
.bar { display: flex; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.bar > span { display: flex; align-items: center; justify-content: center; font: 600 22px/1 var(--sans); color: var(--paper); white-space: nowrap; overflow: hidden; transition: flex-basis .5s cubic-bezier(.2,.8,.2,1); }
.legend { display: flex; gap: 28px; font-size: 22px; color: var(--ink-soft); }
.legend i { display: inline-block; width: 18px; height: 18px; border-radius: 4px; margin-right: 8px; vertical-align: -2px; }

/* text inputs on stage */
.field { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 24px; color: var(--ink-soft); }
.field input { width: 170px; font: 600 30px/1 var(--sans); color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--rule-firm); border-radius: 8px; padding: 8px 12px; text-align: right; }
.toggle { display: flex; align-items: center; gap: 14px; font-size: 24px; color: var(--ink-soft); cursor: pointer; }
.toggle input { width: 26px; height: 26px; accent-color: var(--sun); }

/* SVG cartoon strokes */
svg .ol { stroke: #02060A; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
svg text { font-family: var(--sans); }

/* ── Presenter window ─────────────────────────────────────────────────── */
body.presenter { background: var(--paper); padding: 24px 36px; font-size: 22px; line-height: 1.45; display: flex; flex-direction: column; min-height: 100vh; }
.presenter header { display: flex; gap: 36px; align-items: baseline; font-variant-numeric: tabular-nums; }
#p-n { color: var(--ink-faint); font-size: 22px; }
#p-elapsed { font: 600 64px/1 var(--sans); color: var(--sun); }
#p-clock { font-size: 28px; color: var(--ink-soft); }
#p-blank { display: none; background: var(--heat); color: var(--paper); padding: 4px 10px; border-radius: 6px; font-weight: 700; }
#p-pace { color: var(--ink-faint); margin-top: 6px; }
#p-pace.over { color: var(--heat); }
#p-title { font: 500 48px/1.1 var(--display); margin: 18px 0 8px; }
#p-presets { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
#p-presets span { border: 1.5px solid var(--rule-firm); border-radius: 999px; padding: 3px 12px; font-size: 18px; color: var(--ink-soft); }
#p-presets span.on { background: var(--brass); color: var(--paper); border-color: var(--brass); }
#p-notes { flex: 1; font-size: 26px; max-width: 1100px; }
#p-notes b { color: var(--sun); font-weight: 600; }
#p-notes ul { padding-left: 1.1em; margin: 8px 0; }
#p-notes li { margin: 6px 0; }
.presenter footer { display: flex; gap: 20px; align-items: center; border-top: 1px solid var(--rule); padding-top: 14px; }
.presenter button { font: 600 28px/1 var(--sans); background: var(--surface-2); color: var(--ink); border: 1.5px solid var(--rule-firm); border-radius: 10px; padding: 10px 22px; cursor: pointer; }
#p-next { color: var(--ink-soft); flex: 1; }
#p-sync { color: var(--heat); }

/* compact panel (3D scene) */
.panel.compact .slider { gap: 2px; }
/* scene 4: the controls are the speaker's; faint until touched */
.s4-ctrls { display: flex; flex-direction: column; gap: 8px; }
.panel.compact .slider-label { font-size: 22px; }
.panel.compact .slider-val { font-size: 28px; }
.panel.compact .slider-track { height: 30px; }

/* ── Builds within a scene: a part fades in when its step comes ───────── */
.build { opacity: 0; transition: opacity .3s ease; }
.build.on { opacity: 1; }

/* scene 1: the megawatt cutaway */
.b1-panel { position: absolute; left: 1330px; top: 222px; width: 480px; bottom: 64px; gap: 14px; }
.b1-row { display: flex; flex-direction: column; gap: 8px; }
.b1-head { display: flex; align-items: baseline; gap: 12px; font-size: 26px; color: var(--ink-soft); }
.b1-head i { flex: none; width: 13px; height: 13px; border-radius: 50%; align-self: center; }
.b1-lab { flex: 1; }
.b1-head b, .b1-yr b { font: 600 30px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.b1-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; }
.b1-bar { display: block; height: 8px; border-radius: 4px; opacity: .85; }
.b1-sub .est { margin-left: 0; }
.b1-total { border-top: 1.5px solid var(--rule); padding-top: 18px; margin-top: 4px; }
.b1-big { font: 600 84px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.b1-total .note { margin-top: 8px; font-size: 21px; }
.b1-year { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.b1-year h3 { margin-bottom: 4px; }
.b1-yr b.sun { color: var(--sun); } .b1-yr b.pass { color: var(--pass); }
.b1-yr { display: flex; justify-content: space-between; align-items: baseline; font-size: 26px; color: var(--ink-soft); }
@keyframes b1-rise { 0% { transform: translateY(6px); opacity: 0; } 35% { opacity: .75; } 100% { transform: translateY(-12px); opacity: 0; } }
.b1-heat { animation: b1-rise 2.8s ease-in-out infinite; }

/* scene 2: one megawatt, twenty years */
.b2-instant * { transition: none !important; }
.b2-dim { transition: opacity .5s ease; }
.b2-prize .b2-dim { opacity: .28; }
.b2-power .b2-fill { transition: fill-opacity .6s ease; }
.b2-prize .b2-power .b2-fill { fill-opacity: 1; }
.b2-cursor { opacity: 0; transition: opacity .25s ease; }
.b2-cursor.on { opacity: 1; }
.b2-nc { opacity: 0; transition: opacity .35s ease; }
.b2-nc.on { opacity: 1; }
.b2-bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.build.on .b2-bar { transform: none; transition-delay: var(--d); }
.b2-wlab { opacity: 0; transition: opacity .3s ease; }
.build.on .b2-wlab { opacity: 1; transition-delay: var(--d); }
.b2-cap.build.on { transition-delay: var(--d); }
.b2-side { position: absolute; left: 1420px; top: 0; width: 440px; }
.b2-lab { position: absolute; left: 0; width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 6px; opacity: 0; transition: opacity .5s ease; }
.b2-drawn .b2-side .b2-lab { opacity: 1; }
.b2-prize .b2-side .b2-dim { opacity: .28; }
.b2-lab > span { display: block; font-size: 22px; line-height: 1.1; color: var(--ink-soft); white-space: nowrap; }
.b2-lab i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 10px; vertical-align: -1px; }
.b2-lab b { font: 600 32px/1 var(--sans); font-variant-numeric: tabular-nums; }
.b2-tot b { font-size: 56px; letter-spacing: -.02em; color: var(--ink); }
.b2-cap { position: absolute; left: 1420px; top: 818px; width: 440px; }
.b2-narrow .b2-call p { display: none; }
.b2-cap p { margin: 0; font-size: 26px; line-height: 1.3; color: var(--ink-soft); }
.b2-cap b { display: block; margin: 6px 0 10px; font: 600 46px/1 var(--sans); color: var(--blue); }
.b2-cap .note { font-size: 22px; color: var(--ink-faint); }
.b2-call { position: absolute; left: 236px; top: 292px; width: max-content; padding: 4px 18px 6px 0;
  /* masks the staircase behind the text, but leaves a clear stripe for the $100 M gridline (126 px below the box top) */
  background: linear-gradient(to bottom, var(--paper) 0 122px, transparent 122px 130px, var(--paper) 130px); }
.b2-call p:first-of-type { margin-top: 26px; }   /* the $100 M gridline runs in the gap under the big number */
.b2-call h3 { margin: 0 0 10px; font: 500 26px/1.2 var(--sans); color: var(--ink-soft); }
.b2-call-big { display: flex; align-items: baseline; gap: 14px; }
.b2-call-big b { font: 600 72px/1 var(--sans); letter-spacing: -.02em; color: var(--sun); font-variant-numeric: tabular-nums; }
.b2-call-big span { font-size: 24px; color: var(--ink-soft); }
.b2-call p { margin: 8px 0 0; font-size: 22px; line-height: 1.2; color: var(--ink-soft); }

/* scene 6: three ways to put a megawatt in orbit */
.b6-instant * { transition: none !important; }
.b6-col.build.on { transition-duration: .2s; }
.b6-head { position: absolute; top: 222px; }
.b6-head h3 { margin: 0; font: 600 32px/1.1 var(--sans); color: var(--ink); }
.b6-head p { margin: 6px 0 0; font-size: 22px; line-height: 1.2; color: var(--ink-faint); }
.b6-icon { position: absolute; right: 0; top: -4px; }
/* step 0: the three designs large, a bearing before the charts; → moves them up into the headers (transforms only, so it glides) */
.b6-head, .b6-head h3, .b6-head p, .b6-icon { transform-origin: 0 0; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.b6-intro .b6-head { transform: translateY(340px); opacity: 1; }
.b6-intro .b6-icon { transform: translate(calc(120px - var(--colw, 530px)), -200px) scale(3); }
.b6-intro .b6-head h3 { transform: scale(1.4); }
.b6-intro .b6-head p { transform: translateY(18px) scale(1.15); }
.b6-chrome { transition: opacity .6s ease .45s; }
.b6-intro .b6-chrome { opacity: 0; transition: opacity .3s ease; }
.b6-legend { position: absolute; left: 110px; right: 110px; top: 314px; display: flex; flex-wrap: nowrap; gap: 34px; align-items: baseline; font-size: 21px; color: var(--ink-soft); white-space: nowrap; }
.b6-item { transition: opacity .35s ease; }
.b6-item.off { opacity: .32; }
.b6-item i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 9px; vertical-align: -1px; }
.b6-item .est { margin-left: 6px; }
.b6-earth { margin-left: auto; }
.b6-earth i { width: 26px; height: 0; border-radius: 0; border-top: 2.5px dashed rgba(226, 236, 244, .65); vertical-align: 5px; }
.b6-verdict { position: absolute; top: 754px; display: flex; align-items: center; gap: 14px; }
.b6-verdict.build.on { transition: opacity .4s ease .75s; }
.b6-verdict b { font: 600 72px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 2.55em; }
.b6-verdict span { font-size: 22px; line-height: 1.2; color: var(--ink-soft); }
.b6-rule { position: absolute; left: 110px; right: 110px; top: 848px; height: 1.5px; background: var(--rule); }
.b6-ctrl { position: absolute; left: 110px; top: 860px; width: 600px; }
.b6-ctrl .slider { gap: 6px; }
.b6-ctrl .slider-label { font-size: 22px; }
.b6-tick { position: absolute; top: 25px; width: 0; pointer-events: none; }
.b6-tick i { position: absolute; left: -1px; top: 0; width: 2px; height: 9px; background: var(--ink-faint); }
.b6-tick em { position: absolute; top: 11px; left: 0; transform: translateX(-50%); font: 500 18px/1 var(--sans); font-style: normal; color: var(--ink-faint); white-space: nowrap; }
.b6-tick .src { font-size: 14px; }
.b6-be { margin: 30px 0 0; font-size: 20px; line-height: 1; color: var(--pass); white-space: nowrap; }
/* the realistic break-even is "none": not good news, so not green (scenes 3, 6, 7) */
.be-none, .b6-be.be-none { color: var(--heat); }
.b6-level { position: absolute; right: 110px; top: 70px; width: 560px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.b6-levelrow { display: flex; align-items: center; gap: 16px; }
.b6-levellab { font-size: 24px; color: var(--ink-soft); }
/* a caption, not a switch: C changes it */
.b6-seg { display: flex; }
.b6-seg span { display: none; font: 600 26px/1 var(--sans); color: var(--ink); }
.b6-seg span.on { display: inline; }
.b6-levelnote { font-size: 20px; color: var(--ink-faint); white-space: nowrap; }
.b6-hedge { position: absolute; left: 800px; right: 110px; top: 872px; }
.b6-hedge-big { font-size: 30px; color: var(--ink-soft); }
.b6-hedge-big b { font: 600 56px/1 var(--sans); color: var(--sun); margin-right: 14px; font-variant-numeric: tabular-nums; }
.b6-hedge-if { margin-top: 12px; font-size: 24px; color: var(--ink-soft); }
.b6-hedge-if em { font-style: normal; font-weight: 600; color: var(--ink); }
.b6-tonnes h3 { margin: 0 0 10px; font: 500 24px/1.2 var(--sans); color: var(--ink-soft); }
.b6-tcells { display: flex; justify-content: space-between; }
.b6-tcells div { display: flex; flex-direction: column; gap: 5px; }
.b6-tcells b { font: 600 42px/1 var(--sans); letter-spacing: -.01em; color: var(--sun); font-variant-numeric: tabular-nums; white-space: nowrap; }
.b6-tcells b.heat { color: var(--heat); }
.b6-tcells span { margin-top: 3px; font-size: 20px; line-height: 1.15; color: var(--ink-soft); white-space: nowrap; }
.b6-tcells em { font-style: normal; font-size: 19px; line-height: 1.15; color: var(--ink-faint); white-space: nowrap; }
.b6-verdict .est { font-size: 14px; }
/* "never serviced" steps back once the serviced column is on (after its wipe has started) */
.b6-narrow .headline { font-size: 56px; }
.b6-narrow .b6-level { top: 140px; gap: 6px; }
.b6-narrow .b6-legend { flex-wrap: wrap; row-gap: 6px; gap: 6px 24px; top: 296px; font-size: 19px; }
.b6-narrow .b6-head h3 { font-size: 28px; }
.b6-narrow .b6-head p { font-size: 19px; }
.b6-narrow .b6-icon { width: 96px; }
/* narrow stage: the header has no room for the icon beside the name, so it shows only in the intro */
.b6-narrow:not(.b6-intro) .b6-icon { opacity: 0; transition: opacity .3s ease; }
.b6-dim, .b6-dim.build.on { opacity: .28; transition: opacity .6s ease .5s; }

/* scene 8: the tonnes, then the references */
.b8-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,18,25,.94) 0%, rgba(7,18,25,.86) 50%, rgba(7,18,25,.6) 100%); transition: opacity .9s ease; }
.b8-shade.refs { background: rgba(7,18,25,.96); }
.b8-shade.clear { opacity: 0; }
.b8-thanks { z-index: 1; }
.b8-frame { z-index: 1; }
.b8-tons { position: absolute; left: 110px; right: 110px; top: 220px; display: flex; flex-direction: column; gap: 22px; }
.b8-tons h3 { margin: 0 0 6px; font: 500 30px/1.2 var(--sans); color: var(--ink-soft); }
.b8-row { display: grid; grid-template-columns: 460px 1fr; align-items: center; gap: 30px; }
.b8-lab { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px; }
.b8-lab span { flex-basis: 100%; font-size: 23px; line-height: 1.2; color: var(--ink-soft); }
.b8-lab b { font: 600 40px/1.05 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.b8-lab b.sun { color: var(--sun); } .b8-lab b.heat { color: var(--heat); }
.b8-lab em { font-style: normal; font-size: 23px; color: var(--ink-faint); white-space: nowrap; }
.b8-blocks { display: flex; gap: 4px; height: 46px; }
.b8-blocks i { flex: none; height: 100%; border-radius: 3px; }
.b8-blocks i.ref { background: var(--ink); }
.b8-blocks i.claim { border: 2px solid var(--sun); }
.b8-blocks i.sun { background: var(--sun); }
.b8-blocks i.heat { background: var(--heat); }
.b8-ask { margin: 30px 0 0; font: 400 44px/1.15 var(--display); color: var(--ink); }
.b8-ask em { color: var(--sun); }
.b8-refbox { position: absolute; left: 110px; right: 110px; top: 176px; bottom: 40px; display: flex; flex-direction: column; }
.b8-refs { columns: 2; column-gap: 48px; font-size: 14px; line-height: 1.22; color: var(--ink-soft); margin: 0; padding-left: 28px; }
.b8-refs li { break-inside: avoid; margin-bottom: 3px; }
.b8-url { color: var(--ink-faint); word-break: break-all; font-size: 11.5px; }

/* scene 5 */
.s5-panel { gap: 20px; padding: 28px 32px; }
.s5-fact { display: flex; flex-direction: column; gap: 4px; }
.s5-head { font: 500 24px/1.2 var(--sans); color: var(--ink-soft); }
.s5-val b { font: 600 38px/1.1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.s5-sub { font-size: 21px; line-height: 1.3; color: var(--ink-soft); }
.s5-quote { margin: 0; font: 400 italic 26px/1.3 var(--display); color: var(--ink); }
.s5-quote em { display: inline-block; margin-top: 8px; font: 500 normal 19px/1 var(--sans); color: var(--ink-faint); }
.s5-verdict { margin: 4px 0 0; font: 400 40px/1.15 var(--display); color: var(--ink); }
.s5-verdict em { color: inherit; }
.s5-legend { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 24px; color: var(--ink-soft); }
.s5-legend i { display: inline-block; width: 16px; height: 16px; border-radius: 3px; margin-left: 12px; }
/* scene 4: mass per kW of compute */
.s4-mass { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.s4-mass-head { display: flex; flex-direction: column; gap: 6px; font-size: 24px; color: var(--ink-soft); white-space: nowrap; }
.s4-mass-total { font: 600 60px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.s4-heatline { margin-top: 14px; font-size: 22px; color: var(--ink-soft); }
.s4-heatline.broken { font-size: 34px; font-weight: 600; color: var(--ink); }
.s4-mass-wrap { position: relative; padding-top: 24px; }
.s4-mass-bar { display: flex; height: 30px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.s4-mass-bar span { flex: 0 0 0%; height: 100%; transition: flex-basis .5s ease; }
.s4-mass-mark { position: absolute; top: 2px; bottom: -4px; border-left: 3px dashed var(--ink); }
.s4-mass-mark span { position: absolute; top: 0; left: 6px; font: 600 17px/1 var(--sans); white-space: nowrap; color: var(--ink); }
.s4-mass-mark.claim { border-left-color: var(--sun); }
.s4-mass-mark.claim span { color: var(--sun); }
.s4-mass-mark.claim .src { font-size: 14px; }
.s4-mass-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 19px; color: var(--ink-soft); }
.s4-mass-legend i { display: inline-block; width: 13px; height: 13px; border-radius: 3px; margin-right: 6px; }
.s4-mass-legend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Scene 3: the weight, the price curve, the finish lines ── */
.s3-cols { display: flex; gap: 50px; flex: 1; min-height: 0; }
.s3-left { width: 380px; flex: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.s3-right { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 12px; }
.s3-hero { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.s3-s0 .s3-hero { opacity: 1; }
.s3-big { margin: 0; font: 500 280px/1 var(--display); color: var(--sun); font-variant-numeric: lining-nums tabular-nums; }
.s3-big-u { font-size: 110px; margin-left: 20px; color: var(--ink-soft); }
.s3-hero-sub { margin: 0 0 34px; font: 500 46px/1.2 var(--sans); color: var(--ink); }
.s3-hero .lede { max-width: 1050px; }
.s3-layer, .s3-step, .s3-fc, .s3-fc-cap { opacity: 0; transition: opacity .4s ease; }
.s3-layer.on, .s3-step.on, .s3-s2 .s3-fc, .s3-future .s3-fc, .s3-s2 .s3-fc-cap, .s3-future .s3-fc-cap { opacity: 1; }
.s3-chart { display: block; overflow: visible; }
.s3-cap { margin: 0; font-size: 20px; }
.s3-under { display: flex; gap: 44px; align-items: flex-end; }
.s3-usd { width: 540px; flex: none; }
.s3-eq { font-size: 30px; }
.s3-verdict { margin: 0; font-size: 30px; }
.s3-instant * { transition: none !important; }
.s3-layer:not(.on), .s3-step:not(.on) { pointer-events: none; }
.s3-halo { paint-order: stroke; stroke: var(--paper); stroke-width: 7px; stroke-linejoin: round; }

/* Scene 4: the 3D view fills the frame for the orbit view (step 0), then shrinks into its grid slot */
.s4-view { position: absolute; z-index: 1; overflow: hidden; background: #03080C; border-radius: 18px;
  transition-property: left, top, width, height, border-radius; transition-duration: 1.5s; transition-timing-function: cubic-bezier(.65, 0, .35, 1); }
.s4-ui { transition: opacity .9s ease; }
.s4-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s4-cap { position: absolute; left: 110px; top: 72px; pointer-events: none; transition: opacity .9s ease; text-shadow: 0 2px 14px #000; }
.s4-cap .kicker { margin-bottom: 14px; }
.s4-cap-line { margin: 0; font: 500 46px/1.15 var(--display); color: var(--ink); }

/* Scene 0: the title over scene 4's orbit view (the canvas is lent to .t0-bg while the title is on) */
.t0-bg { position: absolute; inset: 0; background: #03080C; }
.t0-text { z-index: 1; justify-content: center; padding-bottom: 150px; pointer-events: none; text-shadow: 0 2px 18px #000, 0 0 4px #000; transition: opacity .7s ease; }
.t0-text.gone { opacity: 0; }
.t0-head { font-size: 100px; max-width: 900px; }
.t0-sub { font: italic 40px/1.2 var(--display); max-width: 760px; }
.t0-by { margin-top: 56px; font-size: 28px; line-height: 1.45; max-width: 760px; }
.t0-kick a { color: inherit; text-decoration: none; pointer-events: auto; border-bottom: 1px solid var(--rule-firm); }
.t0-kick a:hover { color: var(--ink); border-color: var(--stroke); }
.t0-made { position: absolute; left: 110px; bottom: 72px; display: flex; align-items: center; gap: 40px; pointer-events: auto; font-size: 22px; color: var(--ink-faint); text-shadow: none; }
.t0-made a { display: block; opacity: .85; transition: opacity .2s; }
.t0-made a:hover { opacity: 1; }
.t0-tekna { height: 50px; display: block; }
.t0-spn { height: 92px; display: block; }

/* ── Reading panel (CSS px, not stage px) ─────────────────────────────── */
#panel { position: fixed; top: 0; right: 0; bottom: 0; width: var(--panel-w, 400px); display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--rule); font: 400 16.5px/1.6 var(--sans); color: var(--ink-soft); z-index: 20; }
#panel button { font: inherit; color: inherit; cursor: pointer; }
.pn-progress { display: flex; gap: 3px; padding: 18px 24px 0; }
.pn-seg { flex: 1 1 0; height: 14px; padding: 5px 0; background: none; border: 0; }
.pn-seg::before { content: ''; display: block; height: 4px; border-radius: 2px; background: var(--rule); }
.pn-seg i { display: block; height: 4px; margin-top: -4px; border-radius: 2px; background: var(--brass); width: 0; transition: width .35s ease; }
.pn-seg:hover::before { background: var(--rule-firm); }
.pn-head { padding: 14px 24px 6px; }
.pn-chap { background: none; border: 0; padding: 0; font-size: 13px !important; letter-spacing: .06em; color: var(--ink-faint) !important; }
.pn-chap::after { content: ' ▾'; }
.pn-chap[aria-expanded="true"]::after { content: ' ▴'; }
.pn-title { margin: 6px 0 0; font: 500 30px/1.12 var(--display); color: var(--ink); text-wrap: balance; }
.pn-contents { flex: 1; overflow: auto; margin: 6px 0 0; padding: 0 24px 16px 48px; color: var(--ink-faint); }
.pn-contents li { margin: 2px 0; }
.pn-contents button { background: none; border: 0; padding: 6px 0; text-align: left; color: var(--ink-soft) !important; }
.pn-contents button:hover, .pn-contents li.here button { color: var(--ink) !important; }
.pn-contents li.here button { font-weight: 600; }
.pn-body { flex: 1; overflow: auto; padding: 8px 24px 20px; }
.pn-body p { margin: 0 0 .8em; }
.pn-body ul { margin: 0 0 .8em; padding-left: 1.1em; }
.pn-body li { margin: .35em 0; }
.pn-body b { color: var(--ink); font-weight: 600; }
.pn-body a { color: var(--blue); }
.pn-body .src, .gloss-pop .src { font-size: 11px; }
.pn-text { color: var(--ink); font-size: 17.5px; }
.pn-scen { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.pn-scenario { padding: 7px 13px; border-radius: 999px; background: none; border: 1px solid var(--rule-firm); font-size: 14px !important; line-height: 1.2 !important; color: var(--ink) !important; }
.pn-scenario:hover { border-color: var(--stroke); }
.pn-scenario.on { border-color: var(--brass); color: var(--brass) !important; }
.pn-reset { color: var(--ink-faint) !important; border-style: dashed; }
.pn-knobs { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 16px; }
.pn-knobs .slider { display: block; }
.pn-knobs .slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; }
.pn-knobs .slider-label { color: var(--ink-soft); font-size: 14.5px; }
.pn-knobs .slider-val { color: var(--ink); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pn-knobs .slider-track { display: block; position: relative; height: 22px; margin-top: 6px; }
.pn-knobs input[type=range] { width: 100%; height: 22px; }
.pn-knobs input[type=range]::-webkit-slider-runnable-track { height: 4px; }
.pn-knobs input[type=range]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -7px; border-width: 2px; }
.pn-knobs .slider-marker { height: 18px; top: 2px; }
.pn-knobs .slider-marker::after { font-size: 11px; top: 20px; }
.pn-toggle { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); cursor: pointer; }
.pn-toggle input { margin-top: 3px; accent-color: var(--sun); }
.pn-switch-wrap { display: flex; flex-direction: column; gap: 8px; }
.pn-switch { display: flex; border: 1px solid var(--rule-firm); border-radius: 999px; overflow: hidden; }
.pn-switch button { flex: 1; padding: 8px 6px; background: none; border: 0; font-size: 14px !important; color: var(--ink-soft) !important; }
.pn-switch button + button { border-left: 1px solid var(--rule-firm); }
.pn-switch.grid2 { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; }
.pn-switch.grid2 button + button { border-left: 0; }
.pn-switch.grid2 button:nth-child(even) { border-left: 1px solid var(--rule-firm); }
.pn-switch.grid2 button:nth-child(n+3) { border-top: 1px solid var(--rule-firm); }
.pn-switch button.on { background: var(--brass); color: var(--paper) !important; font-weight: 600 !important; }
.pn-blurb { margin: -4px 0 12px; font-size: 14.5px; color: var(--ink-soft); }
.pn-readout { margin: 6px 0 16px; padding: 2px 0 2px 14px; border-left: 2px solid var(--brass); color: var(--ink); }
.pn-readout p:last-child { margin-bottom: 0; }
.pn-deeper { margin-top: 8px; border-top: 1px solid var(--rule); padding-top: 10px; }
.pn-deeper summary { cursor: pointer; color: var(--blue); font-weight: 500; }
.pn-deeper-body { margin-top: 10px; font-size: 15.5px; }
.pn-foot { display: flex; align-items: center; gap: 10px; padding: 12px 24px 16px; border-top: 1px solid var(--rule); }
.pn-btn { padding: 9px 16px; border-radius: 999px; background: none; border: 1px solid var(--rule-firm); color: var(--ink) !important; }
.pn-btn:hover:not(:disabled) { border-color: var(--stroke); }
.pn-btn:disabled { opacity: .35; cursor: default !important; }
.pn-next { margin-left: auto; background: var(--brass); border-color: var(--brass); color: var(--paper) !important; font-weight: 600 !important; }
.pn-step { font-size: 13px; color: var(--ink-faint); }
.pn-handle { display: none; }
#panel :focus-visible, .scene :focus-visible, .refs-overlay :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.slider input[type=range]:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: 4px; }

/* drawer: the panel becomes a sheet over the stage's bottom; the handle opens it */
body.mode-drawer #panel { top: auto; left: 0; width: auto; height: var(--sheet-h, 150px); border-left: 0; border-top: 1px solid var(--rule-firm);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, .45); transition: height .3s ease; }
body.mode-drawer #panel.open, body.mode-drawer #panel.contents-open { height: 72vh; }
body.mode-drawer .pn-handle { display: block; position: absolute; top: 0; left: 50%; width: 64px; height: 22px; margin-left: -32px; background: none; border: 0; }
body.mode-drawer .pn-handle::before { content: ''; display: block; width: 40px; height: 4px; margin: 9px auto 0; border-radius: 2px; background: var(--rule-firm); }
body.mode-drawer .pn-progress { padding-top: 22px; }
body.mode-drawer #panel:not(.open) .pn-progress, body.mode-drawer #panel:not(.open) .pn-scen, body.mode-drawer #panel:not(.open) .pn-blurb, body.mode-drawer #panel:not(.open) .pn-deeper { display: none; }
body.mode-drawer #panel:not(.open) .pn-head { display: none; }
body.mode-drawer #panel:not(.open) .pn-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 22px; }
body.mode-drawer #panel:not(.open) .pn-text p:not(:first-child) { display: none; }
body.mode-drawer .pn-handle::after { content: 'Read more ▴'; position: absolute; right: 24px; top: 5px; font-size: 13px; color: var(--blue); white-space: nowrap; }
body.mode-drawer #panel.open .pn-handle::after { content: 'Less ▾'; }
body.mode-drawer .pn-handle { width: 100%; left: 0; margin-left: 0; text-align: left; }
body.mode-drawer #panel:not(.open) .pn-body { padding-top: 0; padding-bottom: 0; }
body.mode-drawer #panel:not(.open) .pn-foot { padding-top: 6px; padding-bottom: 8px; }
body.mode-drawer .pn-head { display: flex; align-items: baseline; gap: 14px; padding-top: 8px; }
body.mode-drawer .pn-title { font-size: 22px; margin: 0; }
body.mode-drawer #panel:not(.open) .pn-body { -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }

/* a phone held upright gets a note */
#phone-note { display: none; }
body.mode-phone #phone-note { display: flex; position: fixed; inset: 0; z-index: 30; flex-direction: column; justify-content: center; padding: 32px;
  background: var(--paper); font: 500 34px/1.15 var(--display); color: var(--ink); }
body.mode-phone #phone-note .sub { font: 400 17px/1.5 var(--sans); color: var(--ink-soft); }
body.mode-phone #panel, body.mode-phone #viewport { display: none; }

/* ── References (CSS px) ──────────────────────────────────────────────── */
.src[data-ref] { cursor: pointer; }
.src[data-ref]:hover { color: var(--blue); }
.refs-overlay { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end; background: rgba(3, 8, 12, .6); }
.refs-overlay[hidden] { display: none; }
.refs-sheet { width: min(560px, 100%); height: 100%; overflow: auto; background: var(--surface); border-left: 1px solid var(--rule-firm);
  padding: 20px 28px 40px; font: 400 15px/1.5 var(--sans); color: var(--ink-soft); }
.refs-sheet header { display: flex; align-items: baseline; justify-content: space-between; position: sticky; top: -20px; background: var(--surface); padding: 6px 0 10px; }
.refs-sheet h2 { margin: 0; font: 500 28px/1.1 var(--display); color: var(--ink); }
.refs-close { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--ink-faint); cursor: pointer; }
.refs-list { margin: 0; padding-left: 2.2em; }
.refs-list li { margin: 0 0 12px; padding: 6px 8px; border-radius: 6px; }
.refs-list li::marker { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.refs-list li.here { background: var(--surface-2); }
.refs-list a { color: var(--ink); text-decoration-color: var(--rule-firm); text-underline-offset: 3px; }
.refs-list a:hover { color: var(--blue); }
.refs-took { display: block; margin-top: 2px; }

/* Chapter "Why would anyone build it?": a quiet table, one row per motive */
.w7-table { display: flex; flex-direction: column; margin-top: 6px; }
.w7-row { display: grid; grid-template-columns: minmax(360px, 30%) 150px 1fr; gap: 0 40px; align-items: baseline; padding: 11px 0; border-top: 1.5px solid var(--rule); }
.w7-name b { display: block; font: 600 28px/1.2 var(--sans); color: var(--ink); }
.w7-name span { display: block; margin-top: 4px; font-size: 20px; color: var(--ink-faint); }
.w7-verdict { font: 500 italic 30px/1.2 var(--display); color: var(--ink-soft); }
.w7-verdict.heat { color: var(--heat); }
.w7-why { font-size: 23px; line-height: 1.3; color: var(--ink-soft); }
.b8-about { margin-top: 28px; font-size: 26px; max-width: 600px; pointer-events: auto; }
.b8-about a { color: var(--ink); }
.b8-thanks .t0-made { pointer-events: auto; }
.y9-lede { margin: -6px 0 26px; font-size: 26px; }
.y9-chart { display: block; overflow: visible; }
.b8-refs a:hover { text-decoration: underline !important; }

/* Title, step 2: the scale ladder over the darkened orbit view */
.t0-bg::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s ease;
  background: linear-gradient(90deg, rgba(3, 8, 12, .95) 0%, rgba(3, 8, 12, .92) 70%, rgba(3, 8, 12, .8) 100%); }
.t0-bg.dim::after { opacity: 1; }
.t0-text.away { opacity: 0; }
.t0-text.away .t0-made { pointer-events: none; }
.t0-scale { z-index: 1; opacity: 0; pointer-events: none; transition: opacity .7s ease; }
.t0-scale.on { opacity: 1; pointer-events: auto; }
.t0-scale.on.gone { opacity: 0; }
.sc-rows { display: flex; flex-direction: column; max-width: 1560px; margin-top: 8px; }
.sc-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 210px 360px; align-items: baseline; padding: 20px 0 20px 0; border-top: 1px solid var(--rule);
  opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 130ms + 250ms); }
.t0-scale.on .sc-row { opacity: 1; transform: none; }
.sc-row.sc-cols { border-top: 0; padding: 0 0 10px; font-size: 21px; color: var(--ink-faint); transition-delay: 150ms; }
.sc-times { align-self: start; margin-top: -40px; font: 500 24px/1 var(--sans); color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.sc-name b { display: block; font: 600 33px/1.15 var(--sans); color: var(--ink); }
.sc-name > span { display: block; margin-top: 4px; font-size: 22px; line-height: 1.25; color: var(--ink-soft); }
.sc-pow { font: 600 44px/1 var(--sans); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-homes { padding-left: 44px; font-size: 27px; color: var(--ink-soft); white-space: nowrap; }
.sc-cols .sc-pow { font: inherit; color: inherit; }
.sc-cols .sc-homes { font-size: inherit; }
.sc-row.sc-here { background: linear-gradient(90deg, rgba(124, 182, 227, .10), rgba(124, 182, 227, 0) 85%); box-shadow: inset 4px 0 0 var(--blue); }
.sc-here .sc-homes { color: var(--ink); }

/* The ladder in one line, in the reading panel */
.sc-mini { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-faint); }
.sc-mini-r b { font-weight: 600; color: var(--ink-soft); }
.sc-mini-r.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); }
.sc-mini-r.on b { color: var(--ink); }
.sc-mini-x { color: var(--rule-firm); }

/* Glossary words and their pop-up (glossary.js) */
.term { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: help; text-align: inherit;
  border-bottom: 1.5px dotted var(--ink-faint); border-radius: 0; line-height: inherit; }
.term:hover, .term[aria-expanded="true"] { border-bottom-color: var(--ink); border-bottom-style: solid; }
.gloss-pop { position: fixed; z-index: 35; padding: 12px 16px 4px; background: var(--surface-2); border: 1px solid var(--rule-firm); border-radius: 10px;
  font: 400 15px/1.5 var(--sans); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.gloss-pop .gloss-term { display: block; margin-bottom: 4px; font-weight: 600; color: var(--ink); }
.gloss-pop p { margin: 0 0 10px; color: var(--ink-soft); }
.gloss-pop b { color: var(--ink); }
.gloss-pop :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* A slider's one-line explanation of its unit */
.slider-hint { display: block; font-size: 13.5px; line-height: 1.35; color: var(--ink-faint); margin: -2px 0 4px; }
.scene .slider-hint { font-size: 20px; margin: 0; }
