:root {
  color-scheme: light;
  --canvas: #f7f6f3;
  --surface: #ffffff;
  --surface-soft: #fbfbfa;
  --ink: #171716;
  --ink-soft: #2f3437;
  --muted: #787774;
  --line: #eaeaea;
  --line-strong: #d9d7d3;
  --accent: #d95f28;
  --accent-dark: #93401e;
  --accent-soft: #f7e9e1;
  --positive: #346538;
  --positive-soft: #edf3ec;
  --warning: #956400;
  --warning-soft: #fbf3db;
  --danger: #9f2f2d;
  --danger-soft: #fdebec;
  --blue: #1f6c9f;
  --blue-soft: #e1f3fe;
  --font-ui: "SF Pro Display", "Helvetica Neue", "Switzer", sans-serif;
  --font-editorial: "Iowan Old Style", "Newsreader", "Times New Roman", serif;
  --font-mono: "SF Mono", "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink-soft);
  background: var(--canvas);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
code, kbd { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 9px 12px; transform: translateY(-160%); color: #fff; background: var(--ink); border-radius: 4px; }
.skip-link:focus { transform: translateY(0); }
.ambient-field { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .38; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23171716' fill-opacity='.055'/%3E%3C/svg%3E"); }
.shell { width: min(100% - 40px, 1440px); margin: 0 auto; padding: 18px 0 0; }

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  min-height: 70px;
  padding: 10px 12px 10px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand-mark { width: 38px; height: 38px; position: relative; display: block; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
.brand-mark i { position: absolute; width: 14px; height: 20px; border: 4px solid var(--accent); }
.brand-mark i:first-child { top: 5px; left: 6px; border-right: 0; border-radius: 12px 0 0 12px; }
.brand-mark i:last-child { right: 6px; bottom: 5px; border-left: 0; border-radius: 0 12px 12px 0; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { color: var(--ink); font-size: 16px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.page-nav { display: flex; gap: 30px; color: var(--muted); font-size: 12px; font-weight: 600; }
.page-nav a:hover, .author-link:hover { color: var(--accent-dark); }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.live-status, .engine-badge, .status-chip, .count-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.live-status { padding: 7px 10px; color: var(--positive); background: var(--positive-soft); }
.live-status i, .engine-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.author-link { color: var(--muted); font-size: 11px; font-weight: 650; }
.api-link, .primary-action, .submission-links a:first-child { padding: 10px 14px; border: 1px solid var(--ink); border-radius: 5px; color: #fff; background: var(--ink); font-size: 11px; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.api-link:hover, .primary-action:hover, .submission-links a:first-child:hover { background: #333; }
.api-link:active, .primary-action:active, .submission-links a:active { transform: scale(.98); }

.hero { margin-top: 20px; padding: clamp(64px,8vw,112px) clamp(28px,6vw,88px); display: grid; grid-template-columns: minmax(330px,.82fr) minmax(620px,1.18fr); gap: clamp(48px,6vw,96px); align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.hero-copy { max-width: 620px; }
.course-label, .eyebrow, .section-index { margin: 0; color: var(--muted); font-size: 10px; font-weight: 780; letter-spacing: .11em; text-transform: uppercase; }
.course-label span { margin-right: 7px; padding: 5px 8px; color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; }
.hero h1, .section-intro h2, .operations-heading h2, .submission-note h2, .empty-state h2 { color: var(--ink); font-family: var(--font-editorial); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.hero h1 { margin: 24px 0; font-size: clamp(72px,7.4vw,112px); }
.hero h1 em { color: var(--accent); font-weight: inherit; }
.hero-lede { max-width: 540px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.author-credit { width: fit-content; margin-top: 28px; padding: 9px 10px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.author-monogram { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: var(--accent-dark); background: var(--accent-soft); border-radius: 6px; font-family: var(--font-mono); font-size: 10px; font-weight: 800; }
.author-credit p, .submission-author p { margin: 0; display: grid; line-height: 1.2; }
.author-credit small, .submission-author small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.author-credit strong, .submission-author strong { margin-top: 3px; color: var(--ink); font-size: 11px; }
.author-credit a { margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--accent-dark); font-size: 10px; font-weight: 700; }
.hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 20px; }
.primary-action { cursor: pointer; padding: 12px 17px; }
.text-action { color: var(--muted); font-size: 11px; font-weight: 650; }
.text-action:hover { color: var(--ink); }
.hero-facts { margin: 42px 0 0; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.hero-facts div { padding: 15px 10px 0 0; }
.hero-facts dt { color: var(--muted); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.hero-facts dd { margin: 4px 0 0; color: var(--ink); font-family: var(--font-mono); font-size: 9px; }

.decision-lab { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lab-header { padding: 5px 4px 16px; display: flex; justify-content: space-between; align-items: center; }
.lab-header h2, .panel-head h2 { margin: 3px 0 0; color: var(--ink); font-size: 18px; letter-spacing: -.025em; }
.engine-badge { padding: 7px 9px; color: var(--positive); background: var(--positive-soft); }
.decision-lab[data-error] .engine-badge { color: var(--danger); background: var(--danger-soft); }
.scenario-switcher { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.scenario-switcher button { min-height: 38px; border: 0; border-right: 1px solid var(--line); color: var(--muted); background: var(--surface-soft); cursor: pointer; font-size: 9px; font-weight: 700; }
.scenario-switcher button:last-child { border-right: 0; }
.scenario-switcher button:hover { color: var(--ink); background: var(--surface); }
.scenario-switcher button.active { color: var(--accent-dark); background: var(--accent-soft); }
.decision-stage { min-height: 230px; padding: 34px 10px; display: grid; grid-template-columns: 92px 1fr 132px 1fr 92px; align-items: center; }
.stage-node { min-height: 92px; padding: 13px 8px; display: grid; align-content: center; justify-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); text-align: center; }
.stage-node span, .stage-node small, .safety-gate small { color: var(--muted); font-size: 7px; letter-spacing: .07em; text-transform: uppercase; }
.stage-node strong { margin: 3px 0; color: var(--ink); font-family: var(--font-mono); font-size: 30px; line-height: 1; }
.approved-node { border-color: #e8d9d1; background: #fcf7f4; }
.approved-node strong { color: var(--accent-dark); }
.particle-track { position: relative; height: 72px; border-top: 1px solid var(--line-strong); }
.particle-track > span { position: absolute; top: -20px; width: 100%; color: var(--muted); font-size: 6px; text-align: center; text-transform: uppercase; }
.particle-track i { position: absolute; top: -3px; left: 0; width: 6px; height: 6px; border: 1px solid var(--accent); border-radius: 50%; background: var(--surface); opacity: 0; animation: call-flow 2.4s calc(var(--i) * 70ms) ease-in-out infinite; }
.particle-track i.held { border-color: var(--line-strong); animation-name: call-held; }
.outgoing::after { content: ""; position: absolute; top: -4px; right: 8%; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); animation: outgoing 2.4s ease-in-out infinite; }
.safety-gate { display: grid; justify-items: center; gap: 9px; text-align: center; }
.gate-ring { width: 74px; height: 74px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; background: var(--accent-soft); }
.gate-ring::before { content: ""; width: 28px; height: 35px; border: 3px solid var(--accent-dark); border-radius: 5px 5px 10px 10px; }
.gate-ring i { display: none; }
.safety-gate strong { display: block; max-width: 130px; margin-top: 2px; color: var(--accent-dark); font-size: 8px; line-height: 1.35; }
.lab-readout { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lab-readout div { min-height: 64px; padding: 11px; display: grid; align-content: center; border-right: 1px solid var(--line); }
.lab-readout div:last-child { border-right: 0; }
.lab-readout span { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.lab-readout strong { margin-top: 4px; color: var(--ink); font-family: var(--font-mono); font-size: 11px; }
.mode-readout strong { color: var(--accent-dark); text-transform: capitalize; }
.lab-explanation { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.lab-explanation p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.lab-explanation small { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; }
.lab-explanation small span { margin-right: 6px; color: var(--accent-dark); font-weight: 800; text-transform: uppercase; }
.lab-controls { margin-top: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.lab-controls label { display: grid; gap: 8px; color: var(--muted); font-size: 8px; font-weight: 700; }
.lab-controls label span { display: flex; justify-content: space-between; }
.lab-controls output { color: var(--ink); font-family: var(--font-mono); }
.lab-controls input { width: 100%; accent-color: var(--accent); cursor: pointer; }
.lab-footnote { margin: 18px 2px 0; color: var(--muted); font-size: 7px; line-height: 1.6; }
.lab-footnote code { color: var(--accent-dark); background: var(--accent-soft); }
.decision-lab.loading { opacity: .75; }

.proof-rail { margin: 20px auto 0; display: grid; grid-template-columns: repeat(5,1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.proof-rail div { min-height: 106px; padding: 22px; display: grid; align-content: center; border-right: 1px solid var(--line); }
.proof-rail div:last-child { border-right: 0; }
.proof-rail strong { color: var(--ink); font-family: var(--font-editorial); font-size: 31px; font-weight: 500; }
.proof-rail span { color: var(--muted); font-size: 9px; }

.problem-section { padding: 128px 6%; display: grid; grid-template-columns: .9fr 1.1fr; gap: 6%; align-items: center; }
.section-intro { max-width: 620px; }
.section-intro.wide { max-width: 920px; margin: 0 auto; text-align: center; }
.section-intro h2, .operations-heading h2 { margin: 18px 0 20px; font-size: clamp(47px,5vw,72px); }
.problem-section .section-intro h2 { max-width: 560px; font-size: clamp(40px,4vw,58px); line-height: 1.02; }
.section-intro > p:last-child, .operations-heading > div > p:last-child { color: var(--muted); line-height: 1.8; }
.capacity-illustration { min-height: 400px; padding: 24px; display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.call-cloud, .human-bank { position: relative; min-height: 320px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.cloud-label, .bank-label { position: absolute; top: 20px; left: 20px; max-width: 150px; color: var(--muted); font-size: 9px; font-weight: 700; }
.call-cloud { display: grid; place-items: center; padding: 74px 24px 48px; }
.answer-grid { width: min(100%,210px); display: grid; grid-template-columns: repeat(6,1fr); gap: 15px; align-items: center; justify-items: center; }
.answer-dot { width: 16px; height: 16px; border: 1px solid var(--accent); border-radius: 50%; background: var(--surface); }
.answer-dot:nth-child(3n), .answer-dot:nth-child(7), .answer-dot:nth-child(14) { background: var(--accent-soft); }
.diagram-meta { position: absolute; bottom: 18px; left: 20px; color: var(--muted); font-family: var(--font-mono); font-size: 7px; letter-spacing: .02em; }
.curve-line { position: relative; height: 1px; background: var(--line-strong); }
.curve-line::after { content: ""; position: absolute; top: -6px; left: calc(50% - 6px); width: 12px; height: 12px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); }
.curve-line span { position: absolute; bottom: 14px; left: 50%; width: 86px; transform: translateX(-50%); color: var(--accent-dark); font-size: 7px; font-weight: 750; text-align: center; text-transform: uppercase; }
.human-bank { padding: 78px 24px 50px; display: grid; grid-template-columns: repeat(2,1fr); align-content: center; gap: 13px; }
.human-bank > i { height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.human-bank b { width: 11px; height: 11px; border: 2px solid var(--accent); border-radius: 50%; position: relative; }
.human-bank b::after { content: ""; position: absolute; top: 13px; left: -5px; width: 17px; height: 7px; border: 2px solid var(--accent); border-bottom: 0; border-radius: 8px 8px 0 0; }

.architecture-section { padding: 110px 6%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.architecture-flow { margin-top: 68px; display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr; align-items: stretch; }
.architecture-flow article { min-height: 320px; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.architecture-flow .flow-focus { border-color: #e8d9d1; background: #fcf7f4; }
.flow-number { color: var(--accent); font-family: var(--font-mono); font-size: 10px; }
.architecture-flow h3 { margin: 32px 0 13px; color: var(--ink); font-family: var(--font-editorial); font-size: 27px; font-weight: 500; line-height: 1.1; }
.architecture-flow article > p:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.7; }
.architecture-flow code { display: block; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--accent-dark); font-size: 8px; line-height: 1.6; }
.flow-arrow { align-self: center; color: var(--line-strong); font-style: normal; text-align: center; }
.fallback-line { margin-top: 24px; padding: 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 9px; }
.fallback-line strong { color: var(--ink); }
.fallback-line i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.fallback-line b { color: var(--accent-dark); }

.operations-section { padding: 140px 0 30px; }
.operations-heading { padding: 0 6% 52px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.operations-heading > div:first-child { max-width: 760px; }
.sync-card { min-width: 230px; padding: 15px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.sync-card > i { width: 7px; height: 7px; grid-row: span 2; border-radius: 50%; background: var(--positive); }
.sync-card span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.sync-card strong { color: var(--ink); font-family: var(--font-mono); font-size: 10px; }
.sync-card button { grid-column: 1 / -1; margin-top: 11px; padding: 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--surface-soft); cursor: pointer; font-size: 8px; }
.metric-rail { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.metric-rail article { min-height: 128px; padding: 25px; display: grid; align-content: center; border-right: 1px solid var(--line); }
.metric-rail article:last-child { border-right: 0; }
.metric-rail span { color: var(--muted); font-size: 9px; }
.metric-rail strong { color: var(--ink); font-family: var(--font-editorial); font-size: 35px; font-weight: 500; line-height: 1; }
.metric-rail em { color: var(--muted); font-size: 19px; font-style: normal; }
.metric-rail small { margin-top: 8px; color: var(--muted); font-size: 8px; }
.metric-rail .warning { background: var(--warning-soft); }
.evidence-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.operations-grid { margin-top: 20px; display: grid; grid-template-columns: 1.45fr .55fr; gap: 20px; }
.panel, .campaign-strip, .empty-state { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.panel { overflow: hidden; }
.panel:hover, .proof-rail:hover, .decision-lab:hover { box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.panel-head { min-height: 78px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.panel-head > code, .panel-note { color: var(--muted); font-family: var(--font-mono); font-size: 7px; }
.receipt-visual { min-height: 225px; padding: 27px; display: grid; grid-template-columns: 160px 1fr; gap: 30px; align-items: center; }
.receipt-orbit { width: 150px; height: 150px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; background: var(--accent-soft); }
.receipt-orbit span { display: grid; justify-items: center; }
.receipt-orbit strong { color: var(--accent-dark); font-family: var(--font-editorial); font-size: 48px; font-weight: 500; line-height: 1; }
.receipt-orbit small { color: var(--muted); font-size: 8px; }
.status-chip { width: fit-content; padding: 5px 8px; color: var(--positive); background: var(--positive-soft); }
.status-chip.reduced { color: var(--warning); background: var(--warning-soft); }
.status-chip.rejected { color: var(--danger); background: var(--danger-soft); }
.receipt-copy h3 { margin: 12px 0 2px; color: var(--ink); font-family: var(--font-editorial); font-size: 27px; font-weight: 500; text-transform: capitalize; }
.receipt-copy > p { margin: 0; color: var(--muted); font-size: 9px; }
.receipt-copy dl { margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.receipt-copy dl div { padding-top: 10px; border-top: 1px solid var(--line); }
.receipt-copy dt { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.receipt-copy dd { margin: 3px 0 0; color: var(--ink); font-family: var(--font-mono); font-size: 10px; }
.reason-row { margin: 0; padding: 13px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.reason-row span { margin-right: 8px; color: var(--accent-dark); font-weight: 800; text-transform: uppercase; }
.capacity-bar { height: 7px; margin: 25px 22px 15px; display: flex; overflow: hidden; border-radius: 4px; background: var(--canvas); }
.capacity-bar span { width: var(--state-width); }
.state-available { background: #8daa8d; }
.state-reserved { background: #d8a17f; }
.state-busy { background: #b1b7c0; }
.state-paused { background: #d8cfb0; }
.state-offline { background: #d3d1ce; }
.state-legend { padding: 0 22px 18px; display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 7px; }
.state-legend span { display: flex; align-items: center; gap: 5px; }
.state-legend i { width: 6px; height: 6px; border-radius: 2px; }
.state-legend strong { color: var(--ink); }
.agent-list { max-height: 245px; overflow: auto; border-top: 1px solid var(--line); }
.agent-row { min-height: 54px; padding: 8px 22px; display: grid; grid-template-columns: 30px 1fr auto 58px; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.avatar, .provider-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--accent-dark); background: var(--accent-soft); font-family: var(--font-mono); font-size: 8px; font-weight: 800; }
.agent-row div { display: grid; }
.agent-row strong, .provider-list strong, .incident-list strong, table strong { color: var(--ink); font-size: 9px; }
.agent-row small, .provider-list small, .incident-list small, table small { color: var(--muted); font-size: 7px; }
.agent-state, .call-state { font-size: 7px; font-weight: 800; text-transform: uppercase; }
.state-text-available, .state-text-completed, .state-text-answered { color: var(--positive); }
.state-text-reserved, .state-text-ringing, .state-text-initiated { color: var(--accent-dark); }
.state-text-busy { color: var(--blue); }
.state-text-failed { color: var(--danger); }
.state-text-offline, .state-text-paused { color: var(--muted); }
.heartbeat { color: var(--muted); font-family: var(--font-mono); font-size: 7px; text-align: right; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 16px; color: var(--muted); background: var(--surface-soft); font-size: 7px; text-align: left; text-transform: uppercase; }
td { min-width: 90px; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }
td code { color: var(--ink); font-size: 7px; }
td small { display: block; margin-top: 3px; }
.receipt-code { color: var(--accent-dark); }
.side-stack { display: grid; gap: 20px; }
.provider-list > div { min-height: 58px; padding: 10px 16px; display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; border-bottom: 1px solid var(--line); }
.provider-list p, .incident-list p, .clear-state p { margin: 0; display: grid; }
.health { display: flex; align-items: center; gap: 5px; color: var(--positive); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.health i, .incident-list i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.health.open { color: var(--danger); }
.health.half_open { color: var(--warning); }
.count-badge { min-width: 25px; min-height: 25px; justify-content: center; color: var(--accent-dark); background: var(--accent-soft); }
.incident-list > div { min-height: 52px; padding: 9px 18px; display: grid; grid-template-columns: 8px 1fr; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.incident-list i { color: var(--accent); }
.clear-state { min-height: 105px; padding: 20px; display: flex; align-items: center; gap: 12px; }
.clear-state > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; color: var(--positive); background: var(--positive-soft); font-family: var(--font-mono); font-size: 9px; }
.campaign-strip { margin-top: 20px; padding: 24px; display: grid; grid-template-columns: 190px 1fr; gap: 30px; }
.campaign-strip h2 { margin: 3px 0 0; color: var(--ink); font-family: var(--font-editorial); font-size: 24px; font-weight: 500; }
.campaign-list { display: grid; gap: 7px; }
.campaign-list article { min-height: 52px; padding: 9px 12px; display: grid; grid-template-columns: 3px minmax(180px,1fr) 90px 90px; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.campaign-list .lane { width: 3px; height: 26px; background: var(--accent); }
.campaign-list div { display: grid; }
.campaign-list strong { color: var(--ink); font-size: 9px; }
.campaign-list small { color: var(--muted); font-size: 7px; }
.campaign-list article > span:not(.lane) { color: var(--accent-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.campaign-list code { justify-self: end; color: var(--muted); font-size: 7px; }
.panel-empty { min-height: 120px; padding: 25px; display: grid; place-content: center; color: var(--muted); font-size: 9px; text-align: center; }
.empty-state { min-height: 320px; padding: 55px; display: grid; grid-template-columns: 150px 1fr; gap: 45px; align-items: center; }
.empty-orbit { width: 140px; height: 140px; display: grid; place-content: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-soft); }
.empty-orbit span { width: 32px; height: 32px; border: 5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 2s linear infinite; }
.empty-state h2 { margin: 5px 0; font-size: 42px; }
.empty-state p { color: var(--muted); }
.empty-evidence strong { color: var(--accent-dark); }

.submission-note { margin-top: 110px; padding: 50px; display: grid; grid-template-columns: 1.2fr .9fr; gap: 35px 60px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.submission-note h2 { max-width: 650px; margin: 14px 0 0; font-size: 48px; }
.submission-note > p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.submission-author { display: flex; align-items: center; gap: 11px; }
.submission-links { justify-self: end; display: flex; align-items: center; gap: 11px; }
.submission-links a:last-child { padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--ink); font-size: 10px; font-weight: 700; }
footer { min-height: 100px; padding: 0 5px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
footer a { color: var(--accent-dark); font-weight: 700; }

.reveal { opacity: 1; transform: none; }
@keyframes call-flow { 0% { transform: translateX(0) scale(.7); opacity: 0; } 15%,80% { opacity: 1; } 100% { transform: translateX(100px) scale(1); opacity: 0; } }
@keyframes call-held { 0% { transform: translateX(0) scale(.7); opacity: 0; } 20% { opacity: .6; } 70%,100% { transform: translateX(45px) scale(.7); opacity: 0; } }
@keyframes outgoing { 0%,100% { transform: translateX(-55px); opacity: 0; } 25%,75% { opacity: 1; } 90% { transform: translateX(0); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 820px; }
  .decision-lab { width: min(820px,100%); justify-self: center; }
  .problem-section { grid-template-columns: 1fr; }
  .capacity-illustration { width: min(820px,100%); justify-self: end; }
  .architecture-flow { grid-template-columns: 1fr 18px 1fr; }
  .architecture-flow article:nth-of-type(n+3) { margin-top: 20px; }
  .architecture-flow .flow-arrow:nth-of-type(2) { display: none; }
  .evidence-grid, .operations-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .shell { width: min(100% - 22px,1440px); padding-top: 10px; }
  .topbar { top: 7px; grid-template-columns: 1fr auto; }
  .page-nav, .live-status, .author-link { display: none; }
  .hero { margin-top: 12px; padding: 54px 22px; gap: 48px; }
  .hero h1 { font-size: clamp(55px,15vw,82px); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { padding-bottom: 12px; }
  .decision-lab { padding: 12px; }
  .scenario-switcher { grid-template-columns: 1fr 1fr; }
  .scenario-switcher button:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .scenario-switcher button:first-child { border-bottom: 1px solid var(--line); }
  .decision-stage { min-height: 225px; grid-template-columns: 64px 1fr 94px 1fr 64px; padding-inline: 2px; }
  .stage-node { min-height: 78px; }
  .stage-node strong { font-size: 22px; }
  .particle-track > span { display: none; }
  .gate-ring { width: 56px; height: 56px; }
  .gate-ring::before { width: 21px; height: 27px; }
  .lab-readout { grid-template-columns: 1fr 1fr; }
  .lab-readout div:nth-child(2) { border-right: 0; }
  .lab-readout div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lab-controls { grid-template-columns: 1fr; }
  .proof-rail { grid-template-columns: 1fr 1fr; }
  .proof-rail div { border-bottom: 1px solid var(--line); }
  .proof-rail div:nth-child(even) { border-right: 0; }
  .proof-rail div:last-child { grid-column: span 2; border: 0; }
  .problem-section { padding: 100px 12px; }
  .section-intro h2, .operations-heading h2 { font-size: 46px; }
  .problem-section .section-intro h2 { font-size: clamp(39px,8vw,54px); }
  .capacity-illustration { min-height: 340px; grid-template-columns: 1fr 60px 1fr; padding: 12px; }
  .call-cloud, .human-bank { min-height: 300px; }
  .human-bank { padding: 75px 10px 16px; gap: 8px; }
  .architecture-section { padding: 75px 20px; }
  .architecture-flow { margin-top: 45px; grid-template-columns: 1fr; }
  .architecture-flow article { min-height: auto; }
  .flow-arrow { transform: rotate(90deg); }
  .architecture-flow .flow-arrow:nth-of-type(2) { display: block; }
  .architecture-flow article:nth-of-type(n+3) { margin-top: 0; }
  .operations-section { padding-top: 100px; }
  .operations-heading { padding-inline: 12px; grid-template-columns: 1fr; }
  .sync-card { min-width: 0; }
  .metric-rail { grid-template-columns: 1fr 1fr; }
  .metric-rail article:nth-child(even) { border-right: 0; }
  .metric-rail article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .receipt-visual { grid-template-columns: 125px 1fr; padding: 20px; gap: 17px; }
  .receipt-orbit { width: 120px; height: 120px; }
  .receipt-orbit strong { font-size: 38px; }
  .side-stack { grid-template-columns: 1fr; }
  .campaign-strip { grid-template-columns: 1fr; }
  .campaign-list article { grid-template-columns: 3px 1fr auto; }
  .campaign-list code { display: none; }
  .submission-note { margin-top: 75px; padding: 36px 24px; grid-template-columns: 1fr; }
  .submission-note h2 { font-size: 39px; }
  .submission-links { justify-self: start; }
  footer { padding: 25px 4px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
}
@media (max-width: 500px) {
  .brand-copy small { display: none; }
  .api-link span { display: none; }
  .author-credit { width: 100%; }
  .author-credit a { margin-left: auto; }
  .decision-stage { grid-template-columns: 52px 1fr 82px 1fr 52px; }
  .stage-node > span, .stage-node small, .safety-gate small { font-size: 5px; }
  .stage-node strong { font-size: 18px; }
  .safety-gate strong { font-size: 6px; }
  .lab-footnote { font-size: 6px; }
  .capacity-illustration { grid-template-columns: 1fr 42px 1fr; }
  .cloud-label, .bank-label { left: 11px; max-width: 100px; }
  .human-bank { grid-template-columns: 1fr; }
  .human-bank > i:nth-of-type(n+5) { display: none; }
  .answer-grid { grid-template-columns: repeat(3,1fr); gap: 10px 16px; }
  .metric-rail { grid-template-columns: 1fr; }
  .metric-rail article { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-rail article:last-child { border-bottom: 0; }
  .receipt-visual { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .receipt-copy dl { text-align: left; }
  .agent-row { grid-template-columns: 30px 1fr auto; }
  .heartbeat { display: none; }
  .submission-links { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
