:root {
  --bg: #161616;
  --bg-2: #222222;
  --deep: #131a20;
  --panel: #313131;
  --line: #4b4b4b;
  --ink: #f7f7f7;
  --text: #e0e0e0;
  --muted: #a7a7a7;
  --brand: #76b900;
  --on-chip: #161616;
  --loop1: #7cd7fe;
  --loop2: #fcde7b;
  --loop3: #cd8ef0;
  --loop4: #df6500;
  --claim: #76b900;
  --accent: #76b900;
  --accent-text: #76b900;
  --accent-line: rgba(118, 185, 0, 0.35);
  --accent-soft: rgba(118, 185, 0, 0.10);
}

/* Section accents: opening, claims and "after" in brand green; each loop in its own colour. */
.lo { --accent: #76b900; --accent-text: #76b900; --accent-line: rgba(118, 185, 0, 0.35); --accent-soft: rgba(118, 185, 0, 0.10); }
.l1 { --accent: #7cd7fe; --accent-text: #7cd7fe; --accent-line: rgba(124, 215, 254, 0.35); --accent-soft: rgba(124, 215, 254, 0.10); }
.l2 { --accent: #fcde7b; --accent-text: #fcde7b; --accent-line: rgba(252, 222, 123, 0.35); --accent-soft: rgba(252, 222, 123, 0.10); }
.l3 { --accent: #cd8ef0; --accent-text: #cd8ef0; --accent-line: rgba(205, 142, 240, 0.35); --accent-soft: rgba(205, 142, 240, 0.10); }
.l4 { --accent: #df6500; --accent-text: #ff8a3d; --accent-line: rgba(223, 101, 0, 0.40); --accent-soft: rgba(223, 101, 0, 0.12); }
.lc { --accent: #76b900; --accent-text: #76b900; --accent-line: rgba(118, 185, 0, 0.35); --accent-soft: rgba(118, 185, 0, 0.10); }
.la { --accent: #76b900; --accent-text: #76b900; --accent-line: rgba(118, 185, 0, 0.35); --accent-soft: rgba(118, 185, 0, 0.10); }
.lb { --accent: #a7a7a7; --accent-text: #a7a7a7; --accent-line: rgba(167, 167, 167, 0.35); --accent-soft: rgba(167, 167, 167, 0.08); }

body { font-family: 'Inter', Arial, sans-serif; font-size: 30px; line-height: 1.35; color: var(--text); }

section { background: var(--bg); padding: 128px 128px 160px; display: flex; flex-direction: column; gap: 40px; box-sizing: border-box; }
section.hood { background: var(--bg-2); }
section.deep { background: var(--deep); gap: 28px; }
section.centered { justify-content: center; }
section.statement { background: var(--brand); color: var(--on-chip); justify-content: center; }

/* Moving backdrops: two soft glows drift slowly behind every slide (Present mode only). */
.glow { position: absolute; border-radius: 50%; }
.glow.g1 { left: 1040px; top: 0px; width: 880px; height: 880px; animation: drift-a 38s ease-in-out infinite alternate; }
.glow.g2 { left: 0px; top: 420px; width: 660px; height: 660px; animation: drift-b 46s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate(0px, 0px) scale(1) } to { transform: translate(-160px, 90px) scale(1.18) } }
@keyframes drift-b { from { transform: translate(0px, 0px) scale(1.1) } to { transform: translate(180px, -80px) scale(0.92) } }

.lo .g1 { background: radial-gradient(rgba(118, 185, 0, 0.30), rgba(118, 185, 0, 0) 70%); }
.lo .g2 { background: radial-gradient(rgba(124, 215, 254, 0.20), rgba(124, 215, 254, 0) 70%); }
.l1 .g1 { background: radial-gradient(rgba(124, 215, 254, 0.30), rgba(124, 215, 254, 0) 70%); }
.l1 .g2 { background: radial-gradient(rgba(205, 142, 240, 0.18), rgba(205, 142, 240, 0) 70%); }
.l2 .g1 { background: radial-gradient(rgba(252, 222, 123, 0.26), rgba(252, 222, 123, 0) 70%); }
.l2 .g2 { background: radial-gradient(rgba(223, 101, 0, 0.22), rgba(223, 101, 0, 0) 70%); }
.l3 .g1 { background: radial-gradient(rgba(205, 142, 240, 0.30), rgba(205, 142, 240, 0) 70%); }
.l3 .g2 { background: radial-gradient(rgba(124, 215, 254, 0.18), rgba(124, 215, 254, 0) 70%); }
.l4 .g1 { background: radial-gradient(rgba(223, 101, 0, 0.32), rgba(223, 101, 0, 0) 70%); }
.l4 .g2 { background: radial-gradient(rgba(252, 222, 123, 0.18), rgba(252, 222, 123, 0) 70%); }
.lc .g1 { background: radial-gradient(rgba(118, 185, 0, 0.30), rgba(118, 185, 0, 0) 70%); }
.lc .g2 { background: radial-gradient(rgba(205, 142, 240, 0.18), rgba(205, 142, 240, 0) 70%); }
.la .g1 { background: radial-gradient(rgba(124, 215, 254, 0.24), rgba(124, 215, 254, 0) 70%); }
.la .g2 { background: radial-gradient(rgba(118, 185, 0, 0.22), rgba(118, 185, 0, 0) 70%); }
.lb .g1 { background: radial-gradient(rgba(167, 167, 167, 0.14), rgba(167, 167, 167, 0) 70%); }
.lb .g2 { background: radial-gradient(rgba(118, 185, 0, 0.14), rgba(118, 185, 0, 0) 70%); }
.statement .g1 { background: radial-gradient(rgba(252, 222, 123, 0.45), rgba(252, 222, 123, 0) 70%); }
.statement .g2 { background: radial-gradient(rgba(22, 22, 22, 0.28), rgba(22, 22, 22, 0) 70%); }

/* Deep dives: a faint blueprint grid over the glows. */
.grid-h { position: absolute; left: 0px; top: 0px; width: 1920px; height: 1080px; background: repeating-linear-gradient(0deg, rgba(124, 215, 254, 0.05) 0px, rgba(124, 215, 254, 0.05) 1px, rgba(124, 215, 254, 0) 1px, rgba(124, 215, 254, 0) 64px); }
.grid-v { position: absolute; left: 0px; top: 0px; width: 1920px; height: 1080px; background: repeating-linear-gradient(90deg, rgba(124, 215, 254, 0.05) 0px, rgba(124, 215, 254, 0.05) 1px, rgba(124, 215, 254, 0) 1px, rgba(124, 215, 254, 0) 64px); }

/* Hero slides: a generated image, a live particle flow and a scrim behind the title. */
.hero-img { position: absolute; left: 0px; top: 0px; width: 1920px; height: 1080px; object-fit: cover; animation: kenburns 60s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: translate(0px, 0px) scale(1) } to { transform: translate(-48px, -24px) scale(1.07) } }
.scrim { position: absolute; left: 0px; top: 0px; width: 1920px; height: 1080px; background: linear-gradient(90deg, rgba(22, 22, 22, 0.90) 0%, rgba(22, 22, 22, 0.55) 42%, rgba(22, 22, 22, 0) 78%); }

h1 { font-size: 112px; font-weight: 700; line-height: 1.05; letter-spacing: -2px; color: var(--ink); }
h2 { font-size: 64px; font-weight: 700; line-height: 1.1; letter-spacing: -1px; color: var(--ink); }
h3 { font-size: 40px; font-weight: 600; line-height: 1.15; color: var(--ink); }
.statement h2 { color: var(--on-chip); }

.eyebrow { font-size: 24px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-text); }
.lead { font-size: 40px; line-height: 1.3; color: var(--text); }
.statement .lead { color: var(--on-chip); }
.say { font-size: 64px; font-weight: 700; line-height: 1.15; letter-spacing: -1px; color: var(--ink); }
.small { font-size: 24px; color: var(--muted); }
.mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
.big { font-size: 112px; font-weight: 700; line-height: 1; color: var(--accent-text); }
.num { font-size: 64px; font-weight: 700; line-height: 1.1; color: var(--accent-text); }
.dgsteps { font-size: 28px; line-height: 1.35; color: var(--text); }
.dgsteps li { margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
a { color: var(--loop1); }
table { font-size: 28px; color: var(--text); }
tr.head { background: var(--accent-soft); }
tr.band { background: rgba(255, 255, 255, 0.05); }
.line { font-size: 40px; line-height: 1.3; color: var(--ink); }
.prooftext { font-size: 28px; line-height: 1.35; color: var(--text); }

.hood-tag { font-size: 24px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-text); background: var(--panel); padding: 8px 20px; border-radius: 24px; align-self: flex-start; }
.deep-tag { font-size: 24px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-text); border: 2px solid var(--accent); padding: 6px 18px; border-radius: 24px; align-self: flex-start; }
.source { position: absolute; left: 128px; bottom: 64px; width: 1664px; font-size: 24px; color: var(--muted); }
.statement .source { color: var(--on-chip); }

.cards { display: flex; gap: 32px; }
.card { flex: 1; background: var(--bg-2); border: 1px solid var(--accent-line); border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.hood .card { background: var(--panel); }
.card x-icon { width: 56px; height: 56px; color: var(--accent-text); }

.fragment { opacity: 0; transition: opacity 300ms ease-out; }
.fragment.visible { opacity: 1; }
.answer { color: var(--brand); font-weight: 600; }
.answer.no { color: #ff8a3d; }

.claims { display: flex; flex-direction: column; gap: 20px; }
.claim { background: var(--bg-2); border-left: 6px solid var(--claim); border-radius: 12px; padding: 24px 32px; display: flex; flex-direction: column; gap: 12px; }
.label { font-size: 24px; font-weight: 600; padding: 4px 16px; border-radius: 24px; align-self: flex-start; color: var(--on-chip); }
.label.documented { background: var(--brand); }
.label.inferred { background: var(--loop1); }
.label.speculation { background: var(--loop4); }
.asof { font-size: 24px; color: var(--muted); }

.timeline { display: flex; gap: 24px; }
.year { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.year-label { font-size: 40px; font-weight: 700; color: var(--ink); }
.pill { font-size: 24px; line-height: 1.25; padding: 10px 16px; border-radius: 12px; }
.pill.grey { background: var(--panel); color: var(--muted); }
.pill.loop1 { background: var(--loop1); color: var(--on-chip); }
.pill.loop2 { background: var(--loop2); color: var(--on-chip); }
.pill.loop3 { background: var(--loop3); color: var(--on-chip); }
.pill.loop4 { background: var(--loop4); color: var(--on-chip); }
.pill.claim-pill { background: var(--claim); color: var(--on-chip); }
.pill.now { animation: pop 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 160ms + 250ms); }
.pill.loop1.now { box-shadow: 0 0 32px rgba(124, 215, 254, 0.55); }
.pill.loop2.now { box-shadow: 0 0 32px rgba(252, 222, 123, 0.50); }
.pill.loop3.now { box-shadow: 0 0 32px rgba(205, 142, 240, 0.55); }
.pill.loop4.now { box-shadow: 0 0 32px rgba(223, 101, 0, 0.60); }
@keyframes pop { from { opacity: 0; transform: translate(0px, 14px) } }
.legend { display: flex; gap: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pill.chip { font-weight: 700; padding: 8px 16px; }
.takeaway-text { color: var(--ink); font-weight: 600; }
.closing { font-size: 30px; font-style: italic; color: var(--muted); }

.step { background: var(--bg); display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
.step-count { font-size: 40px; color: var(--ink); }
.track { height: 12px; background: var(--panel); border-radius: 6px; }
.track-fill { height: 12px; background: var(--accent); border-radius: 6px; }
.ticks { display: flex; justify-content: space-between; }
.tick { font-size: 24px; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 20px; }
.bar-row { display: flex; align-items: center; gap: 24px; }
.bar-label { width: 360px; }
.bar-track { flex: 1; height: 40px; background: var(--panel); border-radius: 8px; overflow: hidden; }
.bar-fill { height: 40px; background: var(--accent); }
.bar-value { width: 160px; font-weight: 700; color: var(--ink); text-align: right; }
.twist { color: var(--accent-text); font-weight: 700; }

/* Arrival: blocks rise in, staged by --i, the whole slide shown within about a second. */
.rise { animation: rise 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translate(0px, 18px) } }

/* Deep-dive building blocks: equations, notes, code and two-column layouts. */
.cols { display: flex; gap: 40px; }
.col { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.eqbox { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--accent-line); border-radius: 16px; padding: 24px 32px; display: flex; flex-direction: column; gap: 14px; }
.cap { font-size: 26px; font-weight: 700; color: var(--accent-text); }
.why { font-size: 28px; line-height: 1.35; color: var(--text); }
.key { font-size: 30px; line-height: 1.3; color: var(--ink); font-weight: 600; }
.hl { color: var(--accent-text); }
.code { background: #0b0f14; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 24px 32px; display: flex; flex-direction: column; gap: 2px; }
.cl { font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 26px; line-height: 1.45; color: var(--text); white-space: nowrap; }
.kw { color: #cd8ef0; }
.cm { color: #8b949e; }
.ty { color: #7cd7fe; }
.ok { color: #76b900; }
.bad { color: #ff8a3d; }

/* Diagrams: pinned nodes in a position:relative host, joined by x-connectors. */
.dg { position: relative; }
.node { position: absolute; box-sizing: border-box; background: var(--bg-2); border: 2px solid var(--accent); border-radius: 14px; padding: 10px 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.node.quiet { border-color: var(--line); }
.node.solid { background: var(--accent); }
.nt { font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--ink); text-align: center; }
.ns { font-size: 24px; line-height: 1.25; color: var(--muted); text-align: center; }
.solid .nt { color: var(--on-chip); }
.solid .ns { color: var(--on-chip); }
.elabel { position: absolute; font-size: 24px; line-height: 1.2; color: var(--muted); }
x-connector { color: var(--muted); border-width: 3px; }

/* Charts: an inline <svg> with its labels as real text pinned over it. */
.chart { position: relative; }
.axis { position: absolute; font-size: 24px; color: var(--muted); }
.series { position: absolute; font-size: 24px; font-weight: 600; }
