/* ==========================================================================
   AI-Native Future: deck stylesheet
   Design space is a fixed 1920 x 1080 stage scaled to the viewport.
   ========================================================================== */

:root {
  --bg: #05060a;
  --bg-2: #0b0e15;
  --ink: #eeebe4;
  --ink-2: #c9c6bf;
  --mute: #8b909a;
  --dim: #4a4f59;
  --line: rgba(238, 235, 228, 0.12);
  --line-2: rgba(238, 235, 228, 0.22);
  --blue: #5d8bff;
  --blue-2: #a9c1ff;
  --blue-deep: #1a2a5c;
  --red: #ff4b3e;
  --red-2: #ff9a90;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in: cubic-bezier(0.6, 0, 0.8, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- background layers ---------- */
#field { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(2, 3, 6, 0.75) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, 0) 70%, rgba(5, 6, 10, 0.6) 100%); }
.grain { position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -2%); } 60% { transform: translate(-2%, -4%); } 80% { transform: translate(4%, 2%); } 100% { transform: translate(0, 0); } }

/* ---------- stage ---------- */
#viewport { position: fixed; inset: 0; z-index: 3; overflow: hidden; }
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: center center; transform: translate(-50%, -50%) scale(0.5); }

.slide { position: absolute; inset: 0; padding: 120px 140px 110px; visibility: hidden; pointer-events: none; }
.slide.active { visibility: visible; pointer-events: auto; }
.slide.leaving { visibility: visible; }

/* every direct animated child */
.slide [data-a] { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(10px);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), filter 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms + 250ms); }
.slide [data-a="left"] { transform: translate3d(-60px, 0, 0); }
.slide [data-a="right"] { transform: translate3d(60px, 0, 0); }
.slide [data-a="zoom"] { transform: scale(0.92); }
.slide [data-a="fade"] { transform: none; filter: none; }
.slide.active [data-a] { opacity: 1; transform: none; filter: none; }
.slide.leaving [data-a] { opacity: 0; transform: translate3d(0, -26px, 0); filter: blur(8px);
  transition-duration: 0.45s; transition-timing-function: var(--ease-in); transition-delay: 0ms; }
.slide.back.leaving [data-a] { transform: translate3d(0, 26px, 0); }

/* fragments (step-by-step builds) */
.slide .f { opacity: 0.0; transform: translate3d(0, 22px, 0); filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease), filter 0.7s var(--ease); }
.slide .f.shown { opacity: 1; transform: none; filter: none; }
.slide .f.dim-after.shown.past { opacity: 0.35; }

/* ---------- chrome (HUD) ---------- */
.hud { position: fixed; z-index: 10; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); pointer-events: none; }
.hud-tl { top: 22px; left: 28px; display: flex; gap: 14px; align-items: center; }
.hud-tr { top: 22px; right: 28px; text-align: right; }
.hud-bl { bottom: 22px; left: 28px; }
.hud-br { bottom: 14px; right: 18px; pointer-events: auto; display: flex; gap: 6px; }
.hud .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); animation: pulse 2.4s ease-in-out infinite; }
.hud.red .dot { background: var(--red); box-shadow: 0 0 12px var(--red); }
@keyframes pulse { 50% { opacity: 0.35; } }
.hud .chap { color: var(--ink-2); transition: opacity 0.4s; }
.hud .num b { color: var(--ink); font-weight: 500; }
.navbtn { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--mute); transition: all 0.25s; background: rgba(5, 6, 10, 0.4); backdrop-filter: blur(6px); }
.navbtn:hover { color: var(--ink); border-color: var(--line-2); }
.navbtn svg { width: 16px; height: 16px; }

.progress { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; height: 3px; display: flex; gap: 3px; padding: 0; pointer-events: none; }
.progress .seg { position: relative; flex: var(--n) 1 0; background: rgba(238, 235, 228, 0.08); overflow: hidden; }
.progress .seg i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--blue); transition: transform 0.6s var(--ease); }
.progress .seg.red i { background: var(--red); }

/* ---------- type ---------- */
.kicker { font-family: var(--mono); font-size: 20px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blue-2); display: inline-flex; align-items: center; gap: 16px; }
.kicker::before { content: ""; width: 44px; height: 1px; background: currentColor; opacity: 0.7; }
.kicker.red { color: var(--red-2); }
.kicker.plain::before { display: none; }
.serif { font-family: var(--serif); font-weight: 400; }
.h-xxl { font-family: var(--serif); font-size: 230px; line-height: 0.86; letter-spacing: -0.035em; font-weight: 400; }
.h-xl { font-family: var(--serif); font-size: 150px; line-height: 0.9; letter-spacing: -0.03em; font-weight: 400; }
.h-l { font-family: var(--serif); font-size: 104px; line-height: 0.95; letter-spacing: -0.025em; font-weight: 400; }
.h-m { font-family: var(--serif); font-size: 72px; line-height: 1.0; letter-spacing: -0.02em; font-weight: 400; }
.h-s { font-family: var(--serif); font-size: 50px; line-height: 1.06; letter-spacing: -0.012em; font-weight: 400; }
em, .it { font-style: italic; }
.accent { color: var(--blue-2); }
.hot { color: var(--red); }
.muted { color: var(--mute); }
.lead { font-size: 36px; line-height: 1.4; color: var(--ink-2); font-weight: 300; max-width: 1180px; }
.body { font-size: 28px; line-height: 1.45; color: var(--ink-2); font-weight: 300; }
.small { font-size: 22px; line-height: 1.45; color: var(--mute); }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 16px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.src { position: absolute; left: 140px; right: 140px; bottom: 54px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; color: var(--dim); line-height: 1.5; }
.src a { color: var(--mute); text-decoration: none; border-bottom: 1px solid var(--line); }
.src a:hover { color: var(--ink); }
.underline { background-image: linear-gradient(var(--blue), var(--blue)); background-size: 0% 3px; background-position: 0 92%; background-repeat: no-repeat; transition: background-size 1.2s var(--ease) 1s; }
.slide.active .underline { background-size: 100% 3px; }
.underline.red { background-image: linear-gradient(var(--red), var(--red)); }

/* ---------- layout helpers ---------- */
.stack > * + * { margin-top: var(--gap, 28px); }
.row { display: flex; gap: var(--gap, 40px); }
.col { display: flex; flex-direction: column; gap: var(--gap, 24px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap, 48px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap, 28px); }
.center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 160px; }
.bottom-left { position: absolute; left: 140px; bottom: 130px; right: 140px; }
.top-left { position: absolute; left: 140px; top: 120px; right: 140px; }
.right-half { position: absolute; right: 140px; top: 0; bottom: 0; width: 760px; display: flex; flex-direction: column; justify-content: center; }
.left-half { position: absolute; left: 140px; top: 0; bottom: 0; width: 900px; display: flex; flex-direction: column; justify-content: center; }
.w-900 { max-width: 900px; } .w-1100 { max-width: 1100px; } .w-1300 { max-width: 1300px; }
.mt-s { margin-top: 20px; } .mt-m { margin-top: 44px; } .mt-l { margin-top: 80px; }
.hr { height: 1px; background: var(--line); }

/* ---------- chapter slide ---------- */
.chapter-no { font-family: var(--mono); font-size: 22px; letter-spacing: 0.3em; color: var(--blue-2); }
.chapter-no.red { color: var(--red-2); }
.chapter-giant { position: absolute; right: 120px; bottom: 40px; font-family: var(--serif); font-size: 560px; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px rgba(238, 235, 228, 0.14); letter-spacing: -0.04em; }

/* ---------- stat ---------- */
.stat .v { font-family: var(--serif); font-size: 168px; line-height: 0.9; letter-spacing: -0.04em; }
.stat .v small { font-size: 0.45em; letter-spacing: 0; }
.stat .k { margin-top: 16px; font-size: 24px; line-height: 1.4; color: var(--ink-2); font-weight: 300; max-width: 460px; }
.stat .k b { color: var(--ink); font-weight: 500; }
.stat.sm .v { font-size: 112px; }
.stat.xs .v { font-size: 84px; }
.stat .tag { font-family: var(--mono); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }

/* ---------- cards ---------- */
.card { position: relative; border: 1px solid var(--line); border-radius: 4px; padding: 34px 34px 32px; background: linear-gradient(180deg, rgba(11, 14, 21, 0.72), rgba(5, 6, 10, 0.55)); backdrop-filter: blur(10px); }
.card .card-k { font-family: var(--mono); font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-2); }
.card .card-k.red { color: var(--red-2); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.02; margin: 14px 0 14px; letter-spacing: -0.01em; }
.card p { font-size: 23px; line-height: 1.45; color: var(--ink-2); font-weight: 300; }
.card .big { font-family: var(--serif); font-size: 78px; line-height: 1; letter-spacing: -0.03em; margin-top: 8px; }
.card.hl { border-color: rgba(93, 139, 255, 0.45); box-shadow: 0 0 0 1px rgba(93, 139, 255, 0.12), 0 30px 80px -40px rgba(93, 139, 255, 0.5); }
.card.warn { border-color: rgba(255, 75, 62, 0.4); box-shadow: 0 30px 80px -40px rgba(255, 75, 62, 0.45); }
.card .corner { position: absolute; top: 14px; right: 16px; font-family: var(--mono); font-size: 13px; color: var(--dim); letter-spacing: 0.1em; }

/* ---------- quote ---------- */
.quote-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 80px; align-items: center; }
.portrait { position: relative; width: 340px; height: 420px; border-radius: 3px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(0.92); mix-blend-mode: luminosity; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(93, 139, 255, 0.0) 30%, rgba(93, 139, 255, 0.35)); mix-blend-mode: color; }
.portrait.red::after { background: linear-gradient(180deg, rgba(255, 75, 62, 0) 30%, rgba(255, 75, 62, 0.35)); }
.portrait .mono-ini { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 150px; color: rgba(238, 235, 228, 0.18); }
.portrait .credit { position: absolute; left: 10px; bottom: 8px; right: 10px; font-family: var(--mono); font-size: 10px; color: rgba(238, 235, 228, 0.55); letter-spacing: 0.02em; z-index: 2; }
.q { font-family: var(--serif); font-size: 78px; line-height: 1.04; letter-spacing: -0.02em; }
.q.m { font-size: 62px; } .q.s { font-size: 50px; line-height: 1.1; }
.q::before { content: "\201C"; display: block; font-size: 1.6em; line-height: 0.5; color: var(--blue); margin-bottom: 18px; height: 0.45em; }
.q.red::before { color: var(--red); }
.who { margin-top: 40px; display: flex; flex-direction: column; gap: 6px; }
.who b { font-size: 30px; font-weight: 500; }
.who span { font-family: var(--mono); font-size: 17px; letter-spacing: 0.08em; color: var(--mute); }

/* ---------- post card (X / social) ---------- */
.post { width: 880px; border: 1px solid var(--line-2); border-radius: 18px; padding: 34px 38px; background: rgba(9, 11, 17, 0.82); backdrop-filter: blur(12px); box-shadow: 0 40px 120px -60px rgba(0, 0, 0, 0.9); }
.post .ph { display: flex; gap: 18px; align-items: center; }
.post .av { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); flex: none; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; color: var(--mute); }
.post .av img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.post .nm b { display: block; font-size: 26px; font-weight: 600; }
.post .nm span { font-size: 20px; color: var(--mute); }
.post .pt { margin-top: 24px; font-size: 31px; line-height: 1.42; font-weight: 400; color: var(--ink); }
.post .pt p + p { margin-top: 16px; }
.post .pm { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 15px; color: var(--mute); letter-spacing: 0.04em; }

/* ---------- timeline (horizontal river) ---------- */
.tl { position: absolute; left: 0; right: 0; top: 330px; height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 140px, #000 calc(100% - 80px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 140px, #000 calc(100% - 80px), transparent); }
.tl-track { position: absolute; left: 140px; top: 0; height: 100%; display: flex; gap: 0; transition: transform 1.2s var(--ease); }
.tl-axis { position: absolute; left: 0; right: 0; top: 96px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent); }
.tl-m { position: relative; width: 360px; flex: none; padding-right: 30px; }
.tl-m .mo { font-family: var(--mono); font-size: 18px; letter-spacing: 0.2em; color: var(--mute); text-transform: uppercase; height: 70px; }
.tl-m .pin { position: absolute; left: 0; top: 88px; width: 17px; height: 17px; border-radius: 50%; background: var(--bg); border: 2px solid var(--blue); }
.tl-m.hot .pin { border-color: var(--red); box-shadow: 0 0 18px var(--red); }
.tl-m .ev { margin-top: 70px; }
.tl-m .ev h4 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.05; letter-spacing: -0.01em; }
.tl-m .ev p { margin-top: 12px; font-size: 20px; line-height: 1.45; color: var(--ink-2); font-weight: 300; }
.tl-m .ev p + p { margin-top: 8px; }
.tl-m .ev .n { color: var(--blue-2); font-family: var(--mono); font-size: 18px; }
.tl-m.hot .ev .n { color: var(--red-2); }

/* ---------- list ---------- */
.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 46px; font-size: 30px; line-height: 1.4; color: var(--ink-2); font-weight: 300; }
.ticks li + li { margin-top: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 24px; height: 1px; background: var(--blue); }
.ticks.red li::before { background: var(--red); }
.ticks li b { color: var(--ink); font-weight: 500; }
.num-list { list-style: none; counter-reset: n; }
.num-list li { counter-increment: n; position: relative; padding-left: 86px; font-size: 30px; line-height: 1.38; color: var(--ink-2); font-weight: 300; }
.num-list li + li { margin-top: 26px; }
.num-list li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 4px; font-family: var(--mono); font-size: 20px; color: var(--blue-2); letter-spacing: 0.1em; }
.num-list li b { color: var(--ink); font-weight: 500; }

/* ---------- bars ---------- */
.bars { display: flex; flex-direction: column; gap: 22px; }
.bar { display: grid; grid-template-columns: 300px 1fr 190px; gap: 28px; align-items: center; }
.bar .bl { font-size: 26px; color: var(--ink-2); }
.bar .bl small { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--mute); margin-top: 4px; text-transform: uppercase; }
.bar .bt { height: 40px; background: rgba(238, 235, 228, 0.05); position: relative; border-radius: 2px; overflow: hidden; }
.bar .bt i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: linear-gradient(90deg, var(--blue-deep), var(--blue)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease); transition-delay: calc(var(--d, 0) * 120ms + 500ms); }
.bar.trad .bt i { background: linear-gradient(90deg, #2a2d33, #6b7079); }
.bar.red .bt i { background: linear-gradient(90deg, #4a1410, var(--red)); }
.slide.active .bar .bt i { transform: scaleX(1); }
.bar .bv { font-family: var(--mono); font-size: 24px; color: var(--ink); text-align: right; }

/* ---------- loop diagram ---------- */
.loop-svg { width: 820px; height: 820px; overflow: visible; }
.loop-svg .ring { fill: none; stroke: rgba(238, 235, 228, 0.16); stroke-width: 1.5; }
.loop-svg .ring-hot { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 160 2200; filter: drop-shadow(0 0 10px var(--blue)); animation: orbit 5.5s linear infinite; }
@keyframes orbit { to { stroke-dashoffset: -2357; } }
.loop-node { position: absolute; width: 270px; text-align: center; transform: translate(-50%, -50%); }
.loop-node .ln-dot { width: 22px; height: 22px; border-radius: 50%; margin: 0 auto 16px; background: var(--bg); border: 2px solid var(--blue); box-shadow: 0 0 22px rgba(93, 139, 255, 0.6); }
.loop-node h4 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; }
.loop-node p { font-size: 19px; line-height: 1.4; color: var(--mute); margin-top: 8px; }

/* ---------- debate ---------- */
.debate-q { font-family: var(--serif); font-size: 104px; line-height: 0.98; letter-spacing: -0.025em; max-width: 1500px; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 70px; border-top: 1px solid var(--line); }
.side { padding: 36px 50px 0 0; }
.side + .side { padding: 36px 0 0 50px; border-left: 1px solid var(--line); }
.side .sk { font-family: var(--mono); font-size: 18px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blue-2); display: flex; justify-content: space-between; align-items: baseline; }
.side.no .sk { color: var(--red-2); }
.side .tally { font-family: var(--serif); font-size: 64px; letter-spacing: 0; color: var(--ink); line-height: 1; min-width: 60px; text-align: right; }
.side p { margin-top: 18px; font-size: 26px; line-height: 1.45; color: var(--ink-2); font-weight: 300; }
.debate-badge { display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px 12px 18px; border: 1px solid rgba(255, 75, 62, 0.5); border-radius: 100px; font-family: var(--mono); font-size: 17px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red-2); }
.debate-badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: pulse 1.4s ease-in-out infinite; }
.timer { position: absolute; right: 140px; top: 120px; font-family: var(--mono); font-size: 40px; color: var(--mute); letter-spacing: 0.05em; opacity: 0; transition: opacity 0.4s; }
.timer.run, .timer.done { opacity: 1; color: var(--red-2); }
.timer-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform-origin: left; transform: scaleX(0); }
.keys-hint { font-family: var(--mono); font-size: 14px; color: var(--dim); letter-spacing: 0.08em; }

/* ---------- video ---------- */
.yt { position: relative; width: 1280px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: 0 60px 140px -60px rgba(93, 139, 255, 0.45); cursor: pointer; }
.yt.sm { width: 980px; }
.yt.xs { width: 860px; }
.yt img.poster { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; transition: opacity 0.4s, transform 1.2s var(--ease); }
.yt:hover img.poster { opacity: 0.9; transform: scale(1.02); }
.yt .play { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6); display: grid; place-items: center; backdrop-filter: blur(8px); background: rgba(5, 6, 10, 0.35); transition: transform 0.3s var(--ease), background 0.3s; }
.yt:hover .play { transform: scale(1.08); background: rgba(93, 139, 255, 0.35); }
.yt .play svg { width: 36px; height: 36px; margin-left: 6px; }
.yt .cap { position: absolute; left: 24px; bottom: 20px; right: 24px; font-family: var(--mono); font-size: 16px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.85); text-shadow: 0 2px 12px #000; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- misc components ---------- */
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border: 1px solid var(--line-2); border-radius: 100px; font-family: var(--mono); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.pill.blue { border-color: rgba(93, 139, 255, 0.5); color: var(--blue-2); }
.pill.red { border-color: rgba(255, 75, 62, 0.5); color: var(--red-2); }
.vs-col h5 { font-family: var(--mono); font-size: 16px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.vs-col.blue h5 { color: var(--blue-2); border-color: rgba(93, 139, 255, 0.4); }
.vs-col.red h5 { color: var(--red-2); border-color: rgba(255, 75, 62, 0.4); }
.ticker { position: absolute; left: 0; right: 0; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker .tk { display: inline-flex; gap: 60px; animation: tick 60s linear infinite; font-family: var(--mono); font-size: 18px; letter-spacing: 0.08em; color: var(--dim); }
.ticker .tk span b { color: var(--mute); font-weight: 400; }
.ticker.rev .tk { animation-direction: reverse; animation-duration: 75s; }
@keyframes tick { to { transform: translateX(-50%); } }
.subjects { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.subjects span { position: absolute; max-width: 420px; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 15px; color: rgba(238, 235, 228, 0.3); white-space: nowrap; letter-spacing: 0.02em; opacity: 0; }
.slide.active .subjects span { animation: rain 7s linear forwards; }
@keyframes rain { 0% { opacity: 0; transform: translateY(-40px); } 12% { opacity: 1; } 80% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(120px); } }
.gauge { height: 6px; background: rgba(238, 235, 228, 0.08); border-radius: 3px; overflow: hidden; }
.gauge i { display: block; height: 100%; width: var(--w); background: var(--blue); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) 0.6s; }
.slide.active .gauge i { transform: scaleX(1); }
.gauge.red i { background: var(--red); }

/* ---------- model swimlanes ---------- */
.lanes { position: relative; height: 560px; }
.ln-month { position: absolute; top: 0; height: 548px; border-left: 1px dashed rgba(238, 235, 228, 0.08); padding-left: 8px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.ln-row { position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(238, 235, 228, 0.16), rgba(238, 235, 228, 0.04)); }
.ln-row span { position: absolute; left: 0; top: -12px; font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.ln-dot { position: absolute; width: 0; height: 0; opacity: 0; transform: scale(0.4); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--o) * 55ms + 600ms); }
.slide.active .ln-dot { opacity: 1; transform: none; }
.ln-dot i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--blue); box-shadow: 0 0 14px rgba(93, 139, 255, 0.55); }
.ln-dot.big i { left: -10px; top: -10px; width: 20px; height: 20px; background: var(--blue); }
.ln-dot.red i { border-color: var(--red); box-shadow: 0 0 16px var(--red); }
.ln-dot b { position: absolute; left: 0; top: -40px; transform: translateX(-50%); white-space: nowrap; font-weight: 400; font-size: 17px; color: var(--ink-2); font-family: var(--sans); }
.ln-dot.flip b { top: 16px; }
.ln-dot.big b { color: var(--ink); font-weight: 500; }
.ln-dot.red b { color: var(--red-2); }

/* ---------- overlays: notes, overview, help ---------- */
.overlay { position: fixed; z-index: 30; inset: 0; background: rgba(4, 5, 8, 0.92); backdrop-filter: blur(14px); display: none; overflow: auto; padding: 60px 70px; }
.overlay.open { display: block; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px 22px; }
.ov-ch { grid-column: 1 / -1; margin-top: 26px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.24em; color: var(--blue-2); text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.ov-item { text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 15px; color: var(--ink-2); line-height: 1.35; }
.ov-item:hover, .ov-item.cur { border-color: var(--blue); color: var(--ink); }
.ov-item i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--mute); margin-right: 8px; }
.notes-panel { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; max-height: 42vh; overflow: auto; background: rgba(4, 5, 8, 0.94); border-top: 1px solid var(--line-2); padding: 22px 34px 30px; display: none; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.notes-panel.open { display: block; }
.notes-panel .nh { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.notes-panel .clock { color: var(--blue-2); }
.notes-panel p + p { margin-top: 8px; }
.notes-panel b { color: var(--ink); }
.slide aside.notes { display: none; }
.help { position: fixed; z-index: 31; right: 24px; bottom: 70px; width: 340px; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(4, 5, 8, 0.95); font-family: var(--mono); font-size: 13px; line-height: 1.9; color: var(--ink-2); display: none; }
.help.open { display: block; }
.help kbd { display: inline-block; min-width: 26px; padding: 0 6px; margin-right: 10px; border: 1px solid var(--line-2); border-radius: 3px; text-align: center; color: var(--ink); }
.blackout { position: fixed; inset: 0; z-index: 40; background: #000; display: none; }
.blackout.on { display: block; }

/* intro hint for web visitors */
.start-hint { position: fixed; z-index: 11; left: 50%; bottom: 46px; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); transition: opacity 0.8s; pointer-events: none; }
.start-hint.gone { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .slide [data-a], .slide .f { transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .grain { animation: none; }
}

/* ---------- open / closed loop chips ---------- */
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.flow span { padding: 14px 22px; border: 1px solid var(--line-2); border-radius: 100px; font-size: 24px; color: var(--ink); }
.flow span.ghost { border-style: dashed; color: var(--dim); }
.flow span.hl { border-color: var(--blue); color: var(--blue-2); box-shadow: 0 0 24px rgba(93, 139, 255, 0.3); }
.flow i { font-style: normal; color: var(--mute); font-size: 26px; }

/* ---------- contrast table ---------- */
.contrast { max-width: 1640px; }
.contrast .cr { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 28px; line-height: 1.35; font-weight: 300; }
.contrast .cr span:first-child { color: var(--mute); }
.contrast .cr span:last-child { color: var(--ink); }
.contrast .cr b { font-weight: 500; color: var(--blue-2); }
.contrast .cr.head { font-family: var(--mono); font-size: 16px; letter-spacing: 0.22em; text-transform: uppercase; padding-top: 0; }
.contrast .cr.head span:last-child { color: var(--blue-2); }

/* ---------- loop diagram placement ---------- */
.loop-box { position: absolute; left: 885px; top: 130px; width: 820px; height: 820px; }
.loop-box .loop-svg { position: absolute; inset: 0; }

/* ---------- loop cards ---------- */
.loops .card { padding: 28px 26px; }
.loops .card h3 { font-size: 38px; }
.loops dl { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; margin-top: 8px; }
.loops dt { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-2); padding-top: 5px; }
.loops dd { font-size: 20px; line-height: 1.4; color: var(--ink-2); font-weight: 300; }

/* ---------- line chart ---------- */
.chart { width: 100%; height: auto; overflow: visible; }
.chart .axis line { stroke: rgba(238, 235, 228, 0.25); stroke-width: 1; }
.chart .axis line.g { stroke: rgba(238, 235, 228, 0.07); stroke-dasharray: 4 6; }
.chart .axis text { fill: var(--mute); font-family: var(--mono); font-size: 15px; }
.chart .line { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 12px rgba(93, 139, 255, 0.7)); stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.4s var(--ease) 0.6s; }
.chart .area { fill: url(#none); fill: rgba(93, 139, 255, 0.08); opacity: 0; transition: opacity 1.5s ease 1.8s; }
.chart .pt { fill: var(--bg); stroke: var(--blue-2); stroke-width: 3; opacity: 0; transition: opacity 0.5s ease 2.6s; }
.chart .pt.big { fill: var(--blue); }
.slide.active .chart .line { stroke-dashoffset: 0; }
.slide.active .chart .area, .slide.active .chart .pt { opacity: 1; }

/* ---------- memo wave ---------- */
.memos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 70px; }
.mm { display: grid; grid-template-columns: 120px 250px 1fr; gap: 18px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mm span { font-family: var(--mono); font-size: 15px; color: var(--mute); letter-spacing: 0.06em; }
.mm b { font-weight: 500; font-size: 22px; }
.mm p { font-size: 20px; line-height: 1.35; color: var(--ink-2); font-weight: 300; }

/* ---------- rogue agents grid ---------- */
.rogue .card { padding: 22px 24px; }
.rogue .card p { font-size: 20px; margin-top: 8px; }
.rogue .card p b { color: var(--ink); font-weight: 500; }

/* ---------- timeline spectrum ---------- */
.spectrum { position: relative; height: 330px; margin-left: 20px; margin-right: 150px; }
.sp-axis { position: absolute; left: 0; right: 0; top: 280px; height: 2px; background: linear-gradient(90deg, var(--blue), rgba(93, 139, 255, 0.15)); }
.sp-yr { position: absolute; top: 298px; transform: translateX(-50%); font-family: var(--mono); font-size: 15px; color: var(--mute); }
.sp-m { position: absolute; top: calc(var(--row) * 88px); width: 300px; transform: translateX(-12px); padding-left: 16px; border-left: 1px solid rgba(93, 139, 255, 0.5); height: calc(280px - var(--row) * 88px); }
.sp-m::after { content: ""; position: absolute; left: -7px; bottom: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.sp-m b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.sp-m span { display: block; margin-top: 6px; font-size: 17px; line-height: 1.35; color: var(--ink-2); }
.sp-m.off { border-left-style: dashed; border-color: var(--red); }
.sp-m.off::after { background: var(--red); box-shadow: 0 0 14px var(--red); }

/* ---------- sources slide ---------- */
.sources h5 { font-family: var(--mono); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-2); margin: 22px 0 8px; font-weight: 400; }
.sources h5:first-child { margin-top: 0; }
.sources p { font-size: 17px; line-height: 1.55; color: var(--ink-2); font-weight: 300; }
.sources a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.sources a:hover { border-color: var(--blue); }

/* compact card grids */
.compact .card { padding: 24px 28px 24px; }
.compact .card h3 { font-size: 40px; margin: 10px 0 8px; }
.compact .card p { font-size: 21px; }
.bars.wide .bar { grid-template-columns: 420px 1fr 170px; }
.sp-m.r { transform: translateX(calc(-100% + 12px)); border-left: 0; border-right: 1px solid rgba(93, 139, 255, 0.5); padding-left: 0; padding-right: 16px; text-align: right; }
.sp-m.r::after { left: auto; right: -7px; }
.sp-m.off.r { border-right: 1px dashed var(--red); }

/* phones held upright: the 16:9 stage gets small, so suggest landscape */
.rotate-hint { display: none; }
@media (orientation: portrait) and (max-width: 760px) {
  .rotate-hint { display: block; position: fixed; z-index: 12; left: 16px; right: 16px; top: 64px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-2); }
  .hud-bl, .start-hint { display: none; }
}
