/* Color carries meaning: amber = models, mint = capabilities, lavender = peers. */
:root {
  color-scheme: dark;
  --ground: #0d141c;
  --surface: #16212c;
  --ink: #f2efe7;
  --dim: #adb9c6;
  --line: #3c4d5f;
  --model: #ffbb71;
  --tool: #79dfc4;
  --agent: #c3adff;
  --payment: #ffbb71;
  --accent: var(--tool);
  --mono: ui-monospace, "DejaVu Sans Mono", Consolas, monospace;
  --sans: "Inter", "Aptos", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); }
.reveal-viewport { background: var(--ground); }
.reveal { color: var(--ink); font: 27px var(--sans); }
.reveal .slides > section, .reveal .slides > section > section { padding: 50px 70px 64px; height: 720px; text-align: left; }
.reveal .slides > section#appendix { padding: 0; }
.reveal .slides section { line-height: 1.35; }
.reveal h1, .reveal h2, .reveal h3 { font-family: var(--sans); font-weight: 650; text-transform: none; color: var(--ink); margin: 0; letter-spacing: -0.045em; }
.reveal h2 { font-size: 50px; line-height: 1.1; max-width: 1100px; margin: 12px 0 30px; text-wrap: balance; }
.reveal h3 { font-size: 36px; line-height: 1.12; }
.reveal p { margin: 16px 0; }
.reveal strong { color: var(--accent); font-weight: 650; }
.reveal a, .sources-page a { color: var(--tool); text-underline-offset: 5px; }
.reveal .eyebrow, .kicker, .era { font-family: var(--mono); font-size: 15px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.reveal .eyebrow:before { content: ''; display: inline-block; height: 8px; width: 8px; border-radius: 50%; background: var(--accent); margin: 0 12px 1px 0; }
.model-slide { --accent: var(--model); }
.tool-slide { --accent: var(--tool); }
.agent-slide { --accent: var(--agent); }
.payment-slide { --accent: var(--payment); }
.reveal .landing { margin: 24px 0 0; padding-top: 19px; border-top: 1px solid var(--line); font-size: 29px; letter-spacing: -.025em; }
.reveal .micro, .reveal .small { font-size: 19px; color: var(--dim); }
.reveal .micro { margin: 10px 0 0; font-family: var(--mono); font-size: 16px; }
.muted { color: var(--dim); }
.stamp { display: inline-block; font: 17px var(--mono); padding: 7px 11px; border: 1px solid currentColor; border-radius: 5px; letter-spacing: .01em; }
.model, .model-text { color: var(--model); }
.tool, .tool-text { color: var(--tool); }
.agent, .agent-text { color: var(--agent); }
.diagram-wrap { width: 100%; }
.diagram-svg { display: block; width: 100%; height: auto; overflow: visible; }
.deck-footer { position: fixed; pointer-events: none; display: flex; justify-content: space-between; left: 5.5%; right: 5.5%; bottom: 18px; font: 11px var(--mono); letter-spacing: .13em; color: var(--dim); z-index: 5; }
.reveal .controls { color: var(--tool); right: 8px; bottom: 30px; }
.reveal .progress { height: 3px; color: var(--tool); }
.reveal .fragment { transition: opacity .28s ease, visibility .28s ease; }
.reveal .fragment.fade-out.visible { opacity: 0; visibility: hidden; }
.cover .eyebrow { display: none; }
.cover-type { position: relative; z-index: 2; width: 700px; }
.reveal .cover h1 { font-size: 108px; line-height: .91; letter-spacing: -.065em; margin: 27px 0; }
.reveal .cover h1 span { color: var(--tool); }
.reveal .subtitle { font-size: 30px; line-height: 1.2; margin-top: 30px; color: var(--dim); }
.cover .diagram-wrap { position: absolute; width: 570px; right: 22px; top: 110px; }
.reveal .byline { position: absolute; bottom: 74px; font-size: 21px; }
.byline span { color: var(--tool); margin: 0 16px; }
.speaker-grid, .primitive-grid, .file-grid, .bets-grid { display: grid; gap: 22px; margin: 40px 0 0; }
.speaker-grid { grid-template-columns: 1fr 1fr; }
.speaker-grid article { padding: 26px 30px; background: var(--surface); border-top: 3px solid var(--model); border-radius: 0 0 12px 12px; }
.speaker-grid article:last-child { border-color: var(--agent); }
.speaker-grid h3 { font-size: 44px; }
.speaker-grid article p:not(.kicker) { font-size: 24px; color: var(--dim); line-height: 1.5; }
.speaker-grid .kicker { margin: 0 0 22px; }
.history-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin: 55px 0 50px; }
.history-grid article { border-top: 1px solid var(--line); padding-top: 22px; }
.history-grid h3 { margin: 34px 0; font-size: 31px; }
.history-grid p { font: 19px var(--mono); color: var(--tool); }
.statement.paper { --ground: #f2eee5; --surface: #e5dfd3; --ink: #17232b; --dim: #56636a; --line: #b9beb9; --accent: #076b5a; background: var(--ground); color: var(--ink); }
.deck-footer.on-paper { color: #56636a; }
.statement .eyebrow { display: none; }
.statement .kicker { margin-top: 38px; }
.reveal .big-statement { font-size: 75px; font-weight: 580; line-height: 1.13; letter-spacing: -.048em; margin: 44px 0 36px; }
.reveal .statement-caption { font-size: 28px; margin-top: 45px; }
.reveal .closing-text { font-size: 74px; }
/* Closing correction: the teacher's red pen strikes "application" and writes "Agent" above it. */
.reveal .correction { position: relative; display: inline-block; padding-top: .34em; }
.reveal .correction-strike { position: absolute; left: -3%; right: -3%; top: 55%; height: .06em; background: #c1272d; border-radius: 99px; transform-origin: 8% center; transform: rotate(-1.8deg) scaleX(0); transition: opacity .2s ease, transform .26s ease-in .04s; }
.reveal .correction-strike.visible { transform: rotate(-1.8deg) scaleX(1); }
.reveal .correction-fix { position: absolute; left: 50%; bottom: 88%; font-size: .58em; font-weight: 700; font-style: italic; color: #c1272d; white-space: nowrap; transform-origin: 50% 100%; transform: translateX(-45%) rotate(-5deg) translateY(.22em); transition: opacity .3s ease .18s, transform .32s cubic-bezier(.2,.85,.3,1.15) .18s; }
.reveal .correction-fix.visible { transform: translateX(-45%) rotate(-5deg) translateY(0); }
.three-labels { display: flex; gap: 14px; margin: 15px 0 20px; }
.three-labels span { padding: 10px 18px; border: 1px solid var(--line); border-radius: 7px; color: var(--accent); font-size: 22px; }
#a2a .three-labels { margin: 8px 0 12px; }
#a2a .landing { margin-top: 16px; padding-top: 16px; }
.reveal .analogy { font-size: 29px; margin: 22px 0 0; color: var(--accent); }
.analogy span { color: var(--dim); font-size: 24px; margin-left: 25px; }
.primitive-grid { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.primitive-grid article { background: var(--surface); padding: 30px 26px; border-radius: 12px; border: 1px solid var(--line); }
.primitive-grid h3 { font-size: 54px; margin: 29px 0 24px; }
.primitive-grid p { font-size: 22px; color: var(--dim); min-height: 59px; }
.example { color: var(--tool); font-size: 21px; padding-top: 18px; border-top: 1px solid var(--line); }
.reveal .request { font-size: 48px; line-height: 1.18; margin-top: 40px; letter-spacing: -.035em; }
.reveal .small-request { color: var(--dim); font-size: 35px; margin-top: 45px; }
.handoff { --accent: var(--agent); }
.duo-caption { display: flex; gap: 60px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 12px; }
.duo-caption p { font-size: 25px; }
.duo-caption .stamp { margin-right: 14px; }
.ui-labels { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; margin-top: 8px; }
.ui-labels p { font-size: 21px; color: var(--dim); padding-top: 12px; border-top: 1px solid var(--line); }
.ui-labels strong { font-size: 26px; }
.file-grid { grid-template-columns: repeat(3,1fr); margin: 32px 0; }
.file-grid article { padding: 26px; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); }
.file-icon { font: 40px var(--mono); color: var(--tool); border: 1px solid var(--line); border-radius: 5px; height: 90px; width: 76px; display: flex; align-items: center; justify-content: center; margin-bottom: 23px; }
.file-grid h3 { font-size: 31px; }
.file-grid p { font-size: 22px; }
.file-grid .micro { font-family: var(--sans); font-size: 17px; }
.payment-heading { display: flex; align-items: center; gap: 30px; margin: 15px 0 20px; }
.http-code { font: 100px var(--mono); color: var(--payment); letter-spacing: -.08em; }
.payment-heading h3 { font-size: 35px; }
.payment-heading p { color: var(--dim); font-size: 24px; }
.bets-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; margin-top: 50px; }
.bets-grid article { border-top: 2px solid var(--line); padding-top: 20px; }
.bets-grid .kicker { font-size: 13px; letter-spacing: .065em; }
.bets-grid h3 { margin: 27px 0 12px; font-size: 38px; }
.bets-grid p { color: var(--dim); font-size: 25px; line-height: 1.5; }
.qa-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; margin-top: 35px; }
.reveal .qa-prompt { font-size: 45px; line-height: 1.18; margin: 0 0 32px; }
.qa-layout p:not(.qa-prompt) { font-size: 23px; }
.qr-card { text-align: center; margin: 0; }
.qr-card img { width: 230px; height: 230px; background: #fff; padding: 12px; border-radius: 10px; }
.qr-card figcaption { font-size: 23px; line-height: 1.45; margin-top: 16px; }
.qr-card a { font: 16px var(--mono); }
.reveal table { font-size: 23px; width: 100%; border-collapse: collapse; margin-top: 40px; }
.reveal th { font-weight: 600; color: var(--tool); }
.reveal th, .reveal td { padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.reveal td:first-child { color: var(--ink); }
#comparison table { font-size: 21px; margin-top: 28px; }
#comparison th, #comparison td { padding: 13px 22px 13px 0; }
#comparison td:first-child { width: 28%; }
.reveal ol { margin: 45px 0 40px 42px; font-size: 31px; line-height: 1.8; }
.sources-page { font: 18px/1.6 var(--sans); }
.sources-page main { max-width: 900px; margin: auto; padding: 55px 25px; }
.sources-page h1 { font-size: 44px; line-height: 1.15; }
.sources-page section { border-top: 1px solid var(--line); padding: 20px 0; }
.sources-page h2 { font-size: 24px; }
.sources-page p { color: var(--dim); }
@media (prefers-reduced-motion: reduce) { .reveal *, .reveal *::before { transition: none !important; animation: none !important; } }
@media print {
  .deck-footer { display: none; }
  .reveal .fragment, .reveal .fragment.visible { opacity: 1 !important; visibility: visible !important; }
  .reveal .correction-strike { transform: rotate(-1.8deg) scaleX(1) !important; }
  .reveal .correction-fix { transform: translateX(-45%) rotate(-5deg) translateY(0) !important; }
  .reveal .fragment.fade-out { opacity: 0 !important; visibility: hidden !important; }
  .reveal .slides section.paper { background: #f2eee5 !important; }
}
