:root {
  color-scheme: dark;
  --ink: #0a0a0a;
  --surface: #171717;
  --surface-2: #1f1f1f;
  --line: #2a2a2a;
  --line-bright: #44413d;
  --cream: #f5f3ed;
  --muted: #a8a39a;
  --dim: #88837a;
  --cyan: #50c8dc;
  --violet: #b478ff;
  --green: #78d6a8;
  --amber: #e7c56e;
  --red: #ec8f88;
  --display: "Fraunces", Georgia, serif;
  --sans: "Geist", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --chrome-h: 62px;
  --nav-h: 52px;
  --gutter: clamp(22px, 3.2vw, 58px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; }

html { background: var(--ink); }

body {
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a { -webkit-tap-highlight-color: transparent; }

button {
  border: 0;
  color: inherit;
  font: inherit;
}

button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  left: 16px;
  top: -80px;
  padding: 10px 14px;
  background: var(--cream);
  color: var(--ink);
  transition: top .2s ease;
}

.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.chrome {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  height: calc(var(--chrome-h) + var(--safe-top));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: var(--safe-top) calc(18px + var(--safe-right)) 0 calc(18px + var(--safe-left));
  background: rgba(10, 10, 10, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand-button, .chrome-actions button, .deck-nav button, .icon-button {
  background: transparent;
  cursor: pointer;
}

.brand-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 8px 0;
}

.brand-button img { width: 92px; height: auto; display: block; filter: invert(1); }

.brand-button span, .chrome-center, .chrome-actions button, .nav-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brand-button span { color: var(--muted); }

.chrome-center {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.chrome-actions {
  justify-self: end;
  display: flex;
  gap: 8px;
}

.chrome-actions button {
  padding: 8px 10px;
  color: var(--muted);
  border: 1px solid transparent;
}

.chrome-actions button:hover,
.chrome-actions button[aria-expanded="true"],
.chrome-actions button[aria-pressed="true"] { color: var(--cream); border-color: var(--line-bright); }

.progress-track {
  position: fixed;
  z-index: 90;
  inset: calc(var(--chrome-h) + var(--safe-top)) 0 auto;
  height: 2px;
  background: #202020;
}

.progress-track > div {
  width: 2.564%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width .35s cubic-bezier(.2, .7, .2, 1);
}

.deck {
  position: fixed;
  inset: calc(var(--chrome-h) + var(--safe-top) + 2px) 0 calc(var(--nav-h) + var(--safe-bottom));
  overflow: hidden;
  background: var(--ink);
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  padding: clamp(24px, 3.2vw, 54px) max(var(--gutter), calc(var(--safe-right) + 12px)) clamp(24px, 3.2vw, 54px) max(var(--gutter), calc(var(--safe-left) + 12px));
  isolation: isolate;
}

.slide.active { display: block; animation: slide-in .38s ease both; }

.slide-inner {
  width: 100%;
  height: 100%;
  max-width: 1680px;
  margin: 0 auto;
  min-height: 0;
}

.slide-kicker, .eyebrow, .micro-label {
  font-family: var(--mono);
  font-size: clamp(9px, .75vw, 12px);
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--cyan);
}

.slide h1, .slide h2, .slide h3, .panel-head h2, .lightbox-head h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.slide-title {
  margin: 7px 0 0;
  max-width: 24ch;
  font-size: clamp(32px, 4.2vw, 70px);
  line-height: .98;
}

.slide-lede {
  max-width: 68ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 22px);
  line-height: 1.5;
}

.deck-nav {
  position: fixed;
  z-index: 78;
  inset: auto 0 0;
  height: calc(var(--nav-h) + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(10, 10, 10, .95);
  border-top: 1px solid var(--line);
  padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left);
}

.deck-nav button {
  width: 38px;
  height: 34px;
  color: var(--cream);
  font-size: 20px;
}

.deck-nav button:disabled { opacity: .25; cursor: default; }
.nav-hint { color: var(--dim); min-width: 150px; text-align: center; }

/* Opening sequence */
.cover-grid {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(0, .8fr) minmax(520px, 1.25fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: center;
}

.cover-copy { align-self: center; }

.cover-copy h1 {
  max-width: 10ch;
  margin: 12px 0 24px;
  font-size: clamp(46px, 6vw, 100px);
  line-height: .9;
}

.cover-copy h1 em { color: var(--cyan); font-style: normal; }

.cover-copy p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 21px);
  line-height: 1.45;
}

.cover-proof {
  position: relative;
  height: min(67vh, 720px);
  border: 1px solid var(--line-bright);
  overflow: hidden;
  background: var(--surface);
}

.cover-collage { width: 100%; height: 100%; display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--line); }
.cover-collage img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; object-position: center; filter: saturate(.88) contrast(1.02); }
.cover-collage img:first-child { grid-row: 1 / -1; }

.cover-proof::after {
  content: "OFFICIAL DIRECTORY + PROVIDER EVIDENCE · JUL 2026";
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 8px 10px;
  background: rgba(10, 10, 10, .86);
  color: var(--cream);
  border: 1px solid var(--line-bright);
  font: 500 9px/1.3 var(--mono);
  letter-spacing: .14em;
}

.cover-meta {
  display: flex;
  gap: 22px;
  margin-top: 34px;
  color: var(--dim);
  font: 500 10px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.thesis-layout, .terminology-layout, .anatomy-layout, .map-layout, .agency-layout, .beacon-layout, .closing-layout {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.sequence-heading { margin-bottom: clamp(20px, 3vw, 42px); }

.verb-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line-bright);
  min-height: 0;
}

.verb {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 46px);
  border-right: 1px solid var(--line);
}

.verb:last-child { border-right: 0; }
.verb span { color: var(--dim); font: 500 11px/1 var(--mono); letter-spacing: .12em; }
.verb strong { font: 500 clamp(28px, 4.1vw, 68px)/1 var(--display); }
.verb p { max-width: 24ch; margin: 30px 0 0; color: var(--muted); line-height: 1.45; }
.verb.active strong { color: var(--cyan); }

.term-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  min-height: 0;
  border-top: 1px solid var(--line-bright);
}

.terms { display: grid; grid-template-rows: repeat(3, 1fr); min-height: 0; }

.term-row {
  display: grid;
  grid-template-columns: minmax(170px, .45fr) 1fr;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 16px 26px 16px 0;
}

.term-row h3 { margin: 0; font-size: clamp(22px, 2.3vw, 38px); }
.term-row p { margin: 0; color: var(--muted); line-height: 1.45; }

.term-proof { border-left: 1px solid var(--line); padding-left: clamp(22px, 3vw, 42px); display: flex; flex-direction: column; min-height: 0; }
.term-proof img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: center top; border: 1px solid var(--line); }
.term-proof p { color: var(--muted); line-height: 1.45; margin: 14px 0 0; }

.anatomy-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
  min-height: 0;
}

.anatomy-rail::before {
  content: "";
  position: absolute;
  left: 7%; right: 7%; top: 50%;
  height: 1px;
  background: var(--line-bright);
}

.anatomy-node {
  position: relative;
  z-index: 1;
  min-height: 230px;
  padding: clamp(20px, 2.4vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink);
  border: 1px solid var(--line-bright);
}

.anatomy-node .node-index { color: var(--cyan); font: 500 11px/1 var(--mono); }
.anatomy-node h3 { margin: 20px 0 10px; font-size: clamp(24px, 2.5vw, 40px); }
.anatomy-node p { margin: 0; color: var(--muted); line-height: 1.45; }
.anatomy-node:last-child { border-color: rgba(180, 120, 255, .7); }

.atlas-map {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 36px;
  min-height: 0;
}

.category-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  border-top: 1px solid var(--line-bright);
  border-left: 1px solid var(--line);
  min-height: 0;
}

.category-block { padding: clamp(15px, 1.8vw, 28px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 0; }
.category-block header { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.category-block h3 { margin: 0; font: 500 clamp(18px, 1.7vw, 28px)/1.1 var(--display); }
.category-block strong { color: var(--cyan); font: 500 12px/1 var(--mono); }
.category-block p { margin: 12px 0 0; color: var(--muted); font-size: clamp(11px, .85vw, 14px); line-height: 1.5; }

.legend { border-top: 1px solid var(--line-bright); }
.legend-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.legend-item p { margin: 9px 0 0; color: var(--muted); line-height: 1.45; font-size: 14px; }
.legend-note { color: var(--dim); font: 500 10px/1.5 var(--mono); letter-spacing: .05em; margin-top: 20px; }

/* Case slides */
.case-slide { padding-top: clamp(18px, 2.2vw, 38px); padding-bottom: clamp(16px, 2vw, 34px); }

.case-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.92fr) minmax(300px, .82fr);
  gap: clamp(20px, 2.6vw, 44px);
}

.case-visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #111;
  border: 1px solid var(--line-bright);
  overflow: hidden;
  cursor: zoom-in;
}

.case-visual img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; background: #101010; }

.annotation-strip {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  background: rgba(10, 10, 10, .9);
  border-top: 1px solid var(--line-bright);
  color: var(--muted);
  font: 500 9px/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: opacity .2s ease, transform .2s ease;
}

.annotation-strip span:first-child { color: var(--cream); }
.hide-annotations .annotation-strip { opacity: 0; transform: translateY(100%); pointer-events: none; }

.case-copy { display: flex; flex-direction: column; min-height: 0; }

.case-head { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.case-head > div { min-width: 0; }
.case-number { color: var(--dim); font: 500 10px/1.4 var(--mono); letter-spacing: .14em; }
.case-head h2 { margin: 4px 0 0; font-size: clamp(30px, 3vw, 52px); line-height: .98; overflow-wrap: anywhere; }

.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line-bright);
  background: var(--surface);
  white-space: nowrap;
  color: var(--cream);
  font: 600 8.5px/1 var(--mono);
  letter-spacing: .11em;
  cursor: help;
}

/* The longest grade label would otherwise squeeze the case title column. */
.case-head .evidence-connector { white-space: normal; max-width: 92px; line-height: 1.45; }
.case-head .evidence-connector::before { flex: 0 0 auto; }

.evidence-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.evidence-live::before { background: var(--green); box-shadow: 0 0 0 3px rgba(120,214,168,.12); }
.evidence-directory::before { background: var(--cyan); }
.evidence-connector::before { background: var(--red); }
.evidence-provider::before { background: var(--amber); }
.evidence-concept::before { background: var(--violet); }

[data-tooltip] { position: relative; }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 8px);
  width: min(260px, 72vw);
  padding: 9px 10px;
  background: var(--cream);
  color: var(--ink);
  font: 500 10px/1.45 var(--sans);
  letter-spacing: 0;
  white-space: normal;
  text-transform: none;
}

.case-experience { margin: 14px 0 0; color: var(--muted); font-size: clamp(13px, 1vw, 17px); line-height: 1.45; }

.prompt-box {
  margin-top: clamp(14px, 1.5vw, 22px);
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prompt-head button { padding: 4px 0; color: var(--cyan); background: transparent; cursor: pointer; font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.prompt-box blockquote { margin: 9px 0 0; font-size: clamp(11px, .83vw, 14px); line-height: 1.42; color: var(--cream); }

.case-detail-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; min-height: 0; }

.capabilities h3, .boundary h3, .agency h3 { margin: 0 0 8px; color: var(--dim); font: 500 9px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.capabilities ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.capabilities li { position: relative; padding-left: 13px; color: var(--muted); font-size: clamp(11px, .78vw, 13px); line-height: 1.34; }
.capabilities li::before { content: ""; position: absolute; left: 0; top: .52em; width: 5px; height: 1px; background: var(--cyan); }

.boundary-bar { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.boundary-side { padding: 9px; min-width: 0; }
.boundary-side + .boundary-side { border-left: 1px solid var(--line); }
.boundary-side strong { display: block; margin-bottom: 5px; color: var(--cream); font: 500 8px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.boundary-side:last-child strong { color: var(--violet); }
.boundary-side p { margin: 0; color: var(--muted); font-size: clamp(9.5px, .66vw, 11.5px); line-height: 1.32; }

.case-foot { margin-top: auto; padding-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.primitive { color: var(--muted); font-size: clamp(10px, .72vw, 12px); line-height: 1.3; }
.primitive strong { display: block; margin-bottom: 4px; color: var(--dim); font: 500 8px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }

.agency { min-width: 128px; }
.agency-dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.agency-dots i { display: block; height: 4px; background: var(--line-bright); }
.agency-dots i.on { background: var(--cyan); }
.agency-label { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; color: var(--dim); font: 500 7.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.agency-label strong { color: var(--cream); font-weight: 500; }

/* Synthesis */
.matrix-shell { height: 100%; display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.matrix-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 20px; }
.matrix-heading .slide-title { font-size: clamp(30px, 3.4vw, 54px); }
.matrix-heading p { max-width: 54ch; margin: 0; color: var(--muted); line-height: 1.4; font-size: 13px; }

.matrix {
  width: 100%;
  height: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-height: 0;
  border: 1px solid var(--line);
}

.matrix-cell { min-width: 0; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; text-align: left; vertical-align: middle; }
.matrix-head { height: 36px; color: var(--dim); font: 500 8px/1.25 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.matrix-head:first-child, .matrix-category { width: 15%; }
.matrix-category { font-weight: 400; }
.matrix-category strong { font: 500 15px/1.1 var(--display); }
.matrix-category span { display: block; margin-top: 5px; color: var(--dim); font: 500 8px/1 var(--mono); }
.matrix-apps { display: flex; min-height: 48px; flex-wrap: wrap; align-content: center; gap: 4px; }
.matrix-chip { max-width: 100%; padding: 4px 5px; background: var(--surface); color: var(--muted); border: 1px solid var(--line-bright); font: 500 7.5px/1.2 var(--mono); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matrix-chip:hover { color: var(--cream); border-color: var(--cyan); }

.ladder {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  min-height: 330px;
  border-bottom: 1px solid var(--line-bright);
}

.rung { position: relative; align-self: end; min-height: calc(120px + var(--rung) * 32px); padding: 20px 18px; border-top: 1px solid var(--line-bright); border-left: 1px solid var(--line); background: var(--surface); }
.rung:last-child { border-right: 1px solid var(--line); }
.rung-index { color: var(--cyan); font: 500 9px/1 var(--mono); }
.rung h3 { margin: 13px 0 8px; font-size: clamp(18px, 1.8vw, 28px); }
.rung p { margin: 0; color: var(--muted); font-size: clamp(10px, .78vw, 13px); line-height: 1.4; }

.beacon-grid { align-self: stretch; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-bright); border-left: 1px solid var(--line); min-height: 0; }
.beacon-step { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 2.5vw, 42px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.beacon-step .step-index { color: var(--cyan); font: 500 10px/1 var(--mono); }
.beacon-step h3 { margin: 22px 0 10px; font-size: clamp(26px, 2.7vw, 45px); }
.beacon-step p { margin: 0; color: var(--muted); font-size: clamp(12px, .95vw, 16px); line-height: 1.5; }
.concept-boundary { grid-column: 1 / -1; padding: 12px 18px; display: flex; gap: 16px; align-items: center; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.4; }

.closing-main { align-self: center; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 7vw, 120px); align-items: end; }
.closing-copy h1 { margin: 10px 0 24px; max-width: 13ch; font-size: clamp(48px, 6vw, 96px); line-height: .92; }
.closing-copy p { max-width: 58ch; color: var(--muted); font-size: clamp(15px, 1.2vw, 20px); line-height: 1.5; }
.closing-actions { border-top: 1px solid var(--line-bright); }
.closing-actions button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; background: transparent; color: var(--cream); border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
.closing-actions button span { font-family: var(--display); font-size: clamp(19px, 1.8vw, 28px); }
.closing-actions button small { color: var(--cyan); font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.closing-foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; color: var(--dim); font: 500 8px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* Panels and lightbox */
.index-panel, .source-drawer {
  position: fixed;
  z-index: 100;
  top: 0;
  bottom: 0;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  width: min(680px, 92vw);
  padding: max(clamp(22px, 3vw, 42px), var(--safe-top)) max(clamp(22px, 3vw, 42px), var(--safe-right)) max(clamp(22px, 3vw, 42px), var(--safe-bottom)) max(clamp(22px, 3vw, 42px), var(--safe-left));
  background: #111;
  border: 0;
  color: var(--cream);
  overflow: auto;
  visibility: hidden;
  transform: translateX(104%);
  transition: transform .08s ease, visibility .08s;
}

.index-panel { left: 0; right: auto; transform: translateX(-104%); border-right: 1px solid var(--line-bright); }
.source-drawer { left: auto; right: 0; border-left: 1px solid var(--line-bright); }
.index-panel[open], .source-drawer[open], .index-panel.open, .source-drawer.open { visibility: visible; transform: translateX(0); }
.index-panel::backdrop, .source-drawer::backdrop { background: rgba(0,0,0,.64); }

.panel-head, .lightbox-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line-bright); }
.panel-head h2, .lightbox-head h2 { margin: 5px 0 0; font-size: clamp(28px, 3vw, 44px); }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line-bright); font-size: 24px; line-height: 1; }

.index-group { padding: 22px 0; border-bottom: 1px solid var(--line); }
.index-group header { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 10px; }
.index-group h3 { margin: 0; font-family: var(--display); font-size: 23px; }
.index-group span { color: var(--dim); font: 500 9px/1 var(--mono); letter-spacing: .1em; }
.index-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; }
.index-items button { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; background: transparent; color: var(--muted); cursor: pointer; text-align: left; border-bottom: 1px solid transparent; }
.index-items button:hover { color: var(--cream); border-bottom-color: var(--line-bright); }
.index-items button small { color: var(--dim); font: 500 8px/1 var(--mono); }

.source-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.source-section h3 { margin: 0 0 9px; color: var(--dim); font: 500 9px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.source-section p, .source-section li { color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.source-section p { margin: 0; }
.source-section ul { margin: 0; padding-left: 18px; }
.source-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--cyan); font: 500 10px/1.4 var(--mono); text-decoration: none; overflow-wrap: anywhere; }
.source-link:hover { text-decoration: underline; }

.ledger-table { width: 100%; border-collapse: collapse; }
.ledger-table th, .ledger-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 11px; }
.ledger-table th { position: sticky; top: -1px; background: #111; color: var(--dim); font: 500 8px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ledger-table td { color: var(--muted); }
.ledger-table a { color: var(--cyan); text-decoration: none; }

.lightbox {
  width: min(94vw, 1700px);
  height: min(92vh, 1000px);
  padding: 20px;
  background: #0d0d0d;
  color: var(--cream);
  border: 1px solid var(--line-bright);
}
.lightbox::backdrop { background: rgba(0,0,0,.86); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; }
.lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox p { margin: 0; color: var(--muted); font-size: 12px; }

.toast { position: fixed; z-index: 150; left: 50%; bottom: 70px; transform: translate(-50%, 18px); padding: 10px 14px; background: var(--cream); color: var(--ink); opacity: 0; pointer-events: none; transition: .2s ease; font: 600 10px/1.2 var(--mono); letter-spacing: .08em; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes slide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .case-layout { grid-template-columns: minmax(0, 1.45fr) minmax(310px, .85fr); }
  .case-head h2 { font-size: clamp(27px, 3.3vw, 42px); }
  .case-experience { font-size: 12px; }
  .prompt-box blockquote { font-size: 10.5px; }
  .cover-grid { grid-template-columns: .9fr 1.1fr; }
  .cover-proof { height: min(61vh, 600px); }
  .matrix-head:first-child, .matrix-category { width: 130px; }
}

@media (max-width: 1024px) {
  :root { --chrome-h: 58px; --nav-h: 48px; --gutter: clamp(20px, 3vw, 34px); }
  .slide { overflow-y: auto; }
  .cover-grid { grid-template-columns: .82fr 1.18fr; gap: 28px; }
  .cover-copy h1 { font-size: clamp(42px, 6.6vw, 70px); }
  .cover-proof { height: min(58vh, 520px); }
  .verb { padding: 24px 18px; }
  .term-grid { grid-template-columns: 1fr .65fr; }
  .anatomy-node { min-height: 210px; padding: 20px; }
  .atlas-map { grid-template-columns: 1.25fr .75fr; gap: 24px; }
  .case-layout { grid-template-columns: minmax(0, 1.3fr) minmax(300px, .8fr); }
  .case-copy { overflow-y: auto; padding-right: 4px; }
  .boundary-side p { font-size: 9px; }
  .matrix-heading { margin-bottom: 12px; }
  .matrix-cell { padding: 5px; }
  .rung { padding: 16px 12px; }
  .beacon-step { padding: 24px 18px; }
}

@media (max-width: 768px) {
  .chrome { grid-template-columns: auto 1fr auto; padding: var(--safe-top) calc(12px + var(--safe-right)) 0 calc(12px + var(--safe-left)); }
  .brand-button img { width: 78px; }
  .brand-button span { display: none; }
  .chrome-center { justify-self: center; font-size: 8px; }
  .chrome-actions { gap: 2px; }
  .chrome-actions button { width: 36px; height: 36px; padding: 0; overflow: hidden; text-indent: -9999px; position: relative; }
  .chrome-actions button::after { position: absolute; inset: 0; display: grid; place-items: center; text-indent: 0; color: var(--muted); font-size: 13px; }
  #annotationsButton::after { content: "◎"; }
  #sourcesButton::after { content: "↗"; }
  .slide { padding: 20px max(var(--gutter), calc(var(--safe-right) + 12px)) 20px max(var(--gutter), calc(var(--safe-left) + 12px)); }
  .slide-title { font-size: clamp(28px, 8vw, 48px); }
  .cover-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: stretch; gap: 22px; }
  .cover-copy h1 { max-width: 12ch; font-size: clamp(42px, 12vw, 68px); margin-bottom: 15px; }
  .cover-meta { margin-top: 18px; }
  .cover-proof { height: auto; min-height: 0; }
  .verb-rail { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
  .verb { border-bottom: 1px solid var(--line); }
  .term-grid { grid-template-columns: 1fr; }
  .term-proof { display: none; }
  .term-row { grid-template-columns: 130px 1fr; }
  .anatomy-rail { grid-template-columns: repeat(2, 1fr); align-content: center; }
  .anatomy-rail::before { display: none; }
  .anatomy-node { min-height: 165px; }
  .atlas-map { grid-template-columns: 1fr; }
  .category-map { min-height: 440px; }
  .legend { display: grid; grid-template-columns: repeat(2, 1fr); }
  .legend-item { padding: 12px; border-right: 1px solid var(--line); }
  .legend-note { grid-column: 1 / -1; }
  .case-slide { overflow-y: auto; }
  .case-layout { height: auto; min-height: 100%; grid-template-columns: 1fr; grid-template-rows: minmax(280px, 40vh) auto; gap: 20px; }
  .case-visual { min-height: 280px; }
  .case-copy { overflow: visible; }
  .case-head h2 { font-size: clamp(31px, 8vw, 46px); }
  .case-detail-grid { grid-template-columns: 1fr 1fr; }
  .boundary { grid-column: 1 / -1; }
  .matrix-shell { height: auto; min-height: 100%; }
  .matrix-heading { display: block; }
  .matrix-heading p { margin-top: 10px; }
  .matrix { min-width: 920px; height: 620px; }
  .matrix-shell { overflow-x: auto; }
  .ladder { grid-template-columns: repeat(3, 1fr); min-height: 0; align-self: start; }
  .rung { min-height: 160px !important; align-self: stretch; }
  .beacon-grid { grid-template-columns: repeat(2, 1fr); min-height: 560px; }
  .closing-main { grid-template-columns: 1fr; align-items: start; }
  .closing-copy h1 { font-size: clamp(44px, 11vw, 74px); }
  .closing-actions { margin-top: 20px; }
}

@media (max-width: 480px) {
  :root { --chrome-h: 54px; --nav-h: 46px; --gutter: 16px; }
  .chrome-center #categoryLabel, .chrome-center > span[aria-hidden] { display: none; }
  .slide { padding-top: 17px; padding-bottom: 18px; }
  .sequence-heading { margin-bottom: 18px; }
  .slide-kicker { font-size: 8px; }
  .slide-lede { margin-top: 14px; font-size: 13px; }
  .cover-grid { grid-template-rows: auto minmax(240px, 1fr); }
  .cover-copy h1 { font-size: clamp(38px, 12vw, 56px); }
  .cover-copy p { font-size: 13px; }
  .cover-meta { gap: 12px; font-size: 8px; }
  .cover-proof::after { font-size: 7px; right: 8px; bottom: 8px; }
  .verb { padding: 18px 12px; }
  .verb strong { font-size: 31px; }
  .verb p { margin-top: 14px; font-size: 11px; }
  .term-row { grid-template-columns: 1fr; gap: 7px; padding: 12px 0; }
  .term-row h3 { font-size: 24px; }
  .term-row p { font-size: 11px; }
  .anatomy-rail { gap: 8px; }
  .anatomy-node { min-height: 150px; padding: 14px; }
  .anatomy-node h3 { font-size: 22px; margin: 12px 0 7px; }
  .anatomy-node p { font-size: 10px; }
  .category-map { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .category-block { min-height: 88px; }
  .legend { grid-template-columns: 1fr; }
  .legend-note { grid-column: auto; }
  .case-layout { grid-template-rows: minmax(225px, 34vh) auto; gap: 16px; }
  .case-visual { min-height: 225px; }
  .case-head { grid-template-columns: 1fr; }
  .evidence-badge { justify-self: start; grid-row: 1; }
  .case-head > div { grid-row: 2; }
  .case-experience { margin-top: 10px; }
  .case-detail-grid { grid-template-columns: 1fr; }
  .boundary { grid-column: auto; }
  .case-foot { grid-template-columns: 1fr; }
  .agency { min-width: 0; }
  .prompt-box blockquote { font-size: 10px; }
  .matrix-heading { width: calc(100vw - 32px - var(--safe-left) - var(--safe-right)); position: sticky; left: 0; z-index: 2; background: var(--ink); padding-bottom: 10px; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .rung { min-height: 140px !important; }
  .beacon-grid { grid-template-columns: 1fr; min-height: 0; }
  .beacon-step { min-height: 170px; }
  .concept-boundary { display: block; }
  .concept-boundary .evidence-badge { margin-bottom: 8px; }
  .closing-foot { display: block; }
  .closing-foot span { display: block; margin-top: 5px; }
  .index-items { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: light) {
  /* This artifact intentionally preserves Beacon's dark presentation canvas. */
  :root { color-scheme: dark; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

@media print {
  body { overflow: visible; }
  .chrome, .deck-nav, .progress-track, .index-panel, .source-drawer { display: none !important; }
  .deck { position: static; }
  .slide { position: relative; display: block !important; width: 16in; height: 9in; page-break-after: always; }
}
