@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --bg: #071014;
  --panel: #0c181e;
  --panel-2: #102128;
  --text: #f1f5f6;
  --muted: #9aabb2;
  --faint: #587079;
  --rule: #26404a;
  --accent: #55c7db;
  --accent-2: #8bd8e6;
  --measured: #68d5a5;
  --limited: #e5ba60;
  --absent: #e87e77;
  --blue: #68aee8;
  --purple: #bda0ea;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --max: 1180px;
  --radius: 12px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.light {
  color-scheme: light;
  --bg: #f4f1e9;
  --panel: #fffdf7;
  --panel-2: #e9eee9;
  --text: #17252a;
  --muted: #53666c;
  --faint: #7d8e92;
  --rule: #c8d3d1;
  --accent: #087e91;
  --accent-2: #09687a;
  --measured: #147b57;
  --limited: #9b6711;
  --absent: #a4433e;
  --blue: #246fa9;
  --purple: #6e55a2;
  --shadow: 0 22px 60px rgba(33, 45, 44, 0.16);
}

body {
  min-width: 280px;
  background:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent-2);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--limited);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.back-to-writing,
.utility-bar,
.notes-toggle {
  position: fixed;
  z-index: 120;
  top: calc(1.15rem + env(safe-area-inset-top, 0px));
}

.back-to-writing {
  left: calc(1.15rem + env(safe-area-inset-left, 0px));
  padding: 0.48rem 0.82rem;
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.utility-bar {
  right: calc(1.15rem + env(safe-area-inset-right, 0px));
  display: flex;
  gap: 0.45rem;
}

.theme-toggle,
.mode-toggle {
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(12px);
}

.theme-toggle,
.mode-toggle button,
.notes-toggle {
  color: var(--muted);
  font: 600 0.72rem/1 var(--font);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.theme-toggle {
  padding: 0.66rem 0.85rem;
}

.mode-toggle {
  display: flex;
  overflow: hidden;
}

.mode-toggle button {
  border: 0;
  padding: 0.66rem 0.85rem;
  background: transparent;
}

.mode-toggle button.active {
  background: var(--accent);
  color: #041216;
}

.notes-toggle {
  display: none;
  right: calc(10.8rem + env(safe-area-inset-right, 0px));
  border: 1px solid var(--rule);
  border-radius: 99px;
  padding: 0.66rem 0.85rem;
  background: var(--panel);
}

.speaker-notes {
  position: fixed;
  z-index: 250;
  top: 0;
  right: 0;
  width: min(460px, 92vw);
  height: 100dvh;
  border-left: 1px solid var(--rule);
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.notes-open .speaker-notes {
  transform: translateX(0);
}

.speaker-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.speaker-notes-head button {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}

.speaker-notes-body {
  height: calc(100dvh - 4rem);
  overflow-y: auto;
  padding: 1.3rem 1.4rem 4rem;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.75;
}

.speaker-notes-body p + p {
  margin-top: 1.15rem;
}

body.present-mode .speaker-notes .narration {
  display: block;
  margin: 0;
}

.progress-dots {
  display: none;
  position: fixed;
  z-index: 110;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: var(--faint);
  opacity: 0.55;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, opacity 120ms ease;
}

.dot.active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.4);
}

main {
  width: 100%;
}

section {
  border-bottom: 1px solid var(--rule);
}

.slide-inner {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  padding: 7rem 0 6rem;
}

.slide-header {
  margin-bottom: 2rem;
}

.topic-num,
.figure-kicker,
.stage-label,
.report-label {
  display: block;
  color: var(--accent);
  font: 700 0.7rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  max-width: 940px;
  margin-top: 0.55rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h3 {
  line-height: 1.2;
}

.narration {
  max-width: 76ch;
  margin-bottom: 2.2rem;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-size: 1rem;
}

.narration p + p {
  margin-top: 1rem;
}

.evidence-figure,
.three-records article,
.classification-example,
.method-matrix,
.score-vector,
.choice-cards article {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
}

.evidence-figure {
  overflow: hidden;
  padding: 1.35rem;
}

figcaption {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.source-line {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.evidence-ruler,
.provenance-strip,
.protocol-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin-top: 0.8rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font: 600 0.67rem/1.4 var(--mono);
}

.evidence-ruler span,
.provenance-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.evidence-ruler i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.evidence-ruler .measured { background: var(--measured); }
.evidence-ruler .limited { background: var(--limited); }
.evidence-ruler .absent { background: var(--absent); }

.provenance-strip span + span {
  padding-left: 1.2rem;
  border-left: 1px solid var(--rule);
}

.provenance-strip b {
  color: var(--text);
}

.viz-grid {
  display: grid;
  gap: 1rem;
}

.viz-grid.two,
.efficacy-grid,
.safety-grid,
.benchmark-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Door picker */
.doors-section {
  min-height: 100dvh;
}

.doors-slide {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: center;
}

.doors {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 0;
}

.doors img {
  display: block;
  width: 100%;
  height: auto;
}

.door-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.door {
  cursor: pointer;
}

.door:focus {
  outline: none;
}

.door-hit {
  fill: rgba(255, 214, 64, 0);
  pointer-events: all;
}

.door-wash {
  fill: transparent;
  pointer-events: none;
  transition: fill 100ms steps(2);
}

.door-halo,
.door-shape {
  fill: none;
  pointer-events: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: stroke 100ms steps(2), stroke-width 100ms steps(2), filter 100ms steps(2);
}

.door-halo {
  stroke: rgba(0, 0, 0, 0.62);
  stroke-width: 5;
}

.door-shape {
  stroke: rgba(255, 225, 70, 0.24);
  stroke-width: 1.7;
}

.door:hover .door-wash,
.door:focus-visible .door-wash {
  fill: rgba(255, 214, 64, 0.1);
}

.door:hover .door-halo,
.door:focus-visible .door-halo {
  stroke: rgba(0, 0, 0, 0.92);
  stroke-width: 7;
}

.door:hover .door-shape,
.door:focus-visible .door-shape {
  stroke: #ffe146;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 4px rgba(255, 220, 50, 0.9));
}

@media (hover: none) {
  .door-halo {
    stroke: rgba(0, 0, 0, 0.92);
    stroke-width: 7;
  }

  .door-shape {
    stroke: #ffe146;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 3px rgba(255, 220, 50, 0.8));
  }
}

.door-plate {
  opacity: 0;
  pointer-events: none;
  transition: opacity 100ms steps(2);
}

.door:hover .door-plate,
.door:focus-visible .door-plate {
  opacity: 1;
}

.door-plate rect {
  fill: rgba(8, 9, 7, 0.94);
  stroke: #ffd640;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.door-plate text {
  text-anchor: middle;
  font-family: var(--font);
}

.pl-title {
  fill: #ffd640;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 2.2px;
}

.pl-sub {
  fill: #f0eee7;
  font-size: 19px;
}

.doors-caption {
  margin-top: 1rem;
  color: var(--muted);
  font: 700 0.68rem/1.3 var(--mono);
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.doors-list {
  display: none;
  margin-top: 1rem;
  list-style: none;
}

.doors-list a {
  display: block;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
}

.doors-list b {
  margin-right: 0.45rem;
  color: #d7a900;
  font: 700 0.68rem/1 var(--mono);
  text-transform: uppercase;
}

/* Topic 1 */
.claim-map {
  padding: 0;
}

.claim-map-head,
.claim-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.claim-map-head {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font: 700 0.65rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.claim-row {
  min-height: 4.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.claim-row:last-of-type {
  border-bottom: 0;
}

.claim-row b,
.study-row b {
  display: block;
  font-size: 0.88rem;
}

.claim-row small,
.study-row span,
.study-row small {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.status span {
  flex: 0 0 auto;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
}

.status-measured { color: var(--measured); }
.status-limited { color: var(--limited); }
.status-absent { color: var(--absent); }
.status-measured span { background: var(--measured); }
.status-limited span { background: var(--limited); }
.status-absent span { background: var(--absent); }

.people-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.55rem;
  margin: 1.4rem 0 1.2rem;
}

.people-grid span {
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--panel-2);
}

.people-grid .hit {
  border-color: var(--measured);
  background: var(--measured);
  box-shadow: 0 0 14px color-mix(in srgb, var(--measured) 38%, transparent);
}

.big-ratio {
  display: grid;
  grid-template-columns: auto auto;
  width: max-content;
  align-items: baseline;
  gap: 0.55rem;
}

.big-ratio b {
  color: var(--measured);
  font-size: 3.8rem;
  line-height: 0.9;
}

.big-ratio span {
  font-size: 1.1rem;
  font-weight: 700;
}

.big-ratio small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.68rem;
}

.signal-card {
  display: grid;
  align-content: center;
}

.signal-metric {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0 0.55rem;
}

.signal-metric span {
  grid-column: 1 / -1;
  color: var(--muted);
  font: 700 0.65rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-metric b {
  color: var(--accent);
  font-size: 3.4rem;
  line-height: 1;
}

.signal-metric em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.signal-metric.compact {
  margin-left: auto;
}

.signal-metric.compact b {
  font-size: 2.4rem;
}

.wave {
  width: 100%;
  height: 100px;
  margin: 0.4rem 0;
  overflow: visible;
}

.wave path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 42%, transparent));
}

.study-ladder {
  padding: 0;
}

.study-row {
  display: grid;
  grid-template-columns: 70px 1.4fr 1fr 110px;
  gap: 0.8rem;
  align-items: center;
  min-height: 5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.study-year {
  color: var(--accent);
  font: 700 0.76rem/1 var(--mono);
}

.study-grade {
  padding: 0.4rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 99px;
  font: 700 0.62rem/1 var(--mono);
  text-align: center;
  text-transform: uppercase;
}

.grade-low { color: var(--absent); }
.grade-indirect { color: var(--limited); }

.company-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--rule);
}

.company-results div {
  display: grid;
  min-height: 7.5rem;
  align-content: center;
  padding: 1rem;
  background: var(--panel);
}

.company-results span,
.company-results small {
  color: var(--muted);
  font-size: 0.68rem;
}

.company-results b {
  color: var(--limited);
  font-size: 2.5rem;
  line-height: 1.1;
}

.iqube-figure {
  padding: 0.9rem 1rem 1rem;
}

.iqube-cutaway {
  display: block;
  width: 100%;
  max-height: 25rem;
  margin-top: 0.25rem;
}

.cutaway-scroll-hint {
  display: none;
}

.iqube-cutaway text {
  fill: var(--text);
  font: 700 12px var(--mono);
  letter-spacing: 0.04em;
  text-anchor: middle;
}

.iqube-cutaway .cutaway-sub {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.iqube-cutaway .cutaway-sub.left,
.iqube-cutaway .cutaway-labels text {
  text-anchor: start;
}

.cutaway-signal rect {
  fill: var(--panel-2);
  stroke: var(--rule-strong);
}

.cutaway-signal path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  marker-end: url(#cutaway-arrow);
}

.cutaway-signal marker path {
  fill: var(--accent);
}

.cutaway-case rect {
  fill: color-mix(in srgb, var(--panel-2) 84%, transparent);
  stroke: var(--rule-strong);
  stroke-width: 2;
}

.cutaway-case text {
  fill: var(--muted);
  text-anchor: start;
}

.cutaway-case circle {
  fill: var(--measured);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--measured) 65%, transparent));
}

.cutaway-coils path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.cutaway-coils path:nth-child(n + 4) {
  stroke: var(--limited);
}

.cutaway-core path {
  fill: color-mix(in srgb, var(--accent) 24%, var(--panel));
  stroke: var(--accent);
  stroke-width: 2;
}

.cutaway-core text {
  fill: var(--accent);
  font-size: 13px;
}

.cutaway-labels path,
.cutaway-brace path {
  fill: none;
  stroke: var(--rule-strong);
  stroke-width: 1.4;
}

.cutaway-labels circle {
  fill: var(--accent);
}

.cutaway-brace text {
  fill: var(--muted);
  font-size: 9px;
}

.construction-record {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) - 2px);
  background: var(--rule);
}

.construction-record div {
  min-height: 4.2rem;
  padding: 0.7rem;
  background: var(--panel-2);
}

.construction-record b,
.construction-record span {
  display: block;
}

.construction-record b {
  color: var(--measured);
  font: 700 0.66rem/1.2 var(--mono);
  text-transform: uppercase;
}

.construction-record span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.67rem;
}

.construction-record .record-missing b {
  color: var(--absent);
}

.photonic-definition {
  display: grid;
  grid-template-columns: auto auto auto auto auto 1fr;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.65rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel-2);
  font: 700 0.64rem/1.2 var(--mono);
}

.photonic-definition span {
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  color: var(--text);
}

.photonic-definition i {
  color: var(--muted);
  font-style: normal;
}

.photonic-definition b {
  color: var(--limited);
}

.photonic-definition em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 500;
}

/* Topic 2 */
.three-records {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.three-records article {
  position: relative;
  min-height: 14rem;
  padding: 1.2rem;
  overflow: hidden;
}

.record-num {
  position: absolute;
  top: -1rem;
  right: 0.4rem;
  color: color-mix(in srgb, var(--accent) 13%, transparent);
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
}

.three-records h3 {
  position: relative;
  margin-top: 3.4rem;
  font-size: 1.35rem;
}

.three-records p {
  position: relative;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.record-inputs {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  left: 1.2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  color: var(--accent);
  font: 600 0.64rem/1.5 var(--mono);
}

.classification-example {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
}

.classification-example span {
  color: var(--limited);
  font: 700 0.68rem/1 var(--mono);
  text-transform: uppercase;
}

.classification-example p {
  font-size: 0.78rem;
}

.erdman-figure {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0.8rem 1rem;
}

.testimony-record {
  display: grid;
  align-content: center;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--limited);
  background: var(--panel-2);
}

.testimony-record span,
.testimony-record em {
  font: 600 0.62rem/1.35 var(--mono);
}

.testimony-record span {
  color: var(--limited);
  text-transform: uppercase;
}

.testimony-record b {
  margin-top: 0.25rem;
  font-size: 1rem;
}

.testimony-record em {
  margin-top: 0.25rem;
  color: var(--muted);
  font-style: normal;
}

.analyst-vote {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) - 2px);
}

.analyst-icons {
  display: grid;
  grid-template-columns: repeat(7, minmax(22px, 1fr));
  gap: 0.35rem;
}

.analyst-icons span {
  position: relative;
  aspect-ratio: 0.78;
  border: 1px solid var(--rule-strong);
  border-radius: 50% 50% 34% 34%;
  background: var(--panel-2);
}

.analyst-icons span::after {
  content: '';
  position: absolute;
  right: 18%;
  bottom: -0.28rem;
  left: 18%;
  height: 0.38rem;
  border-radius: 4px 4px 0 0;
  background: inherit;
}

.analyst-icons .lab {
  border-color: var(--limited);
  background: var(--limited);
  box-shadow: 0 0 10px color-mix(in srgb, var(--limited) 25%, transparent);
}

.vote-number {
  min-width: 9rem;
  text-align: right;
}

.vote-number b,
.vote-number span,
.vote-number small {
  display: block;
}

.vote-number b {
  color: var(--limited);
  font-size: 2.35rem;
  line-height: 0.95;
}

.vote-number span {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.vote-number small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.58rem;
}

.analytic-flow {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.5rem;
  align-items: stretch;
}

.analytic-flow > div {
  min-height: 6.3rem;
  padding: 0.75rem;
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) - 2px);
  background: var(--panel-2);
}

.analytic-flow > i {
  display: grid;
  color: var(--muted);
  font-style: normal;
  place-items: center;
}

.analytic-flow span,
.analytic-flow b,
.analytic-flow small {
  display: block;
}

.analytic-flow span {
  color: var(--accent);
  font: 700 0.58rem/1 var(--mono);
}

.analytic-flow b {
  margin-top: 0.55rem;
  font-size: 0.8rem;
}

.analytic-flow small {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.35;
}

.analytic-flow .management {
  border-color: color-mix(in srgb, var(--absent) 58%, var(--rule));
}

.analytic-flow .management span,
.analytic-flow .management b {
  color: var(--absent);
}

.analytic-flow .published span {
  color: var(--muted);
}

.testimony-quote {
  display: grid;
  align-content: center;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--limited);
  border-radius: calc(var(--radius) - 2px);
  background: color-mix(in srgb, var(--limited) 7%, var(--panel));
}

.testimony-quote p {
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.testimony-quote cite {
  margin-top: 0.4rem;
  color: var(--muted);
  font: 600 0.58rem/1.2 var(--mono);
  font-style: normal;
}

.testimony-status {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) - 2px);
  background: var(--rule);
}

.testimony-status div {
  padding: 0.55rem 0.65rem;
  background: var(--panel-2);
}

.testimony-status b,
.testimony-status span {
  display: block;
}

.testimony-status b {
  color: var(--measured);
  font: 700 0.57rem/1.2 var(--mono);
  text-transform: uppercase;
}

.testimony-status div:nth-child(n + 3) b {
  color: var(--absent);
}

.testimony-status span {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.58rem;
}

.erdman-figure figcaption {
  grid-column: 1 / -1;
}

.origin-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 3.4rem;
}

.timeline-line {
  position: absolute;
  top: 5.25rem;
  right: 8%;
  left: 8%;
  height: 2px;
  background: var(--rule);
}

.timeline-event {
  position: relative;
  padding-top: 3.1rem;
}

.timeline-event::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  left: 0;
  width: 0.9rem;
  height: 0.9rem;
  border: 3px solid var(--panel);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.event-testimony::before { background: var(--limited); box-shadow: 0 0 0 2px var(--limited); }
.event-legal::before { background: var(--absent); box-shadow: 0 0 0 2px var(--absent); }

.timeline-event time,
.timeline-event em {
  display: block;
  font: 700 0.62rem/1.3 var(--mono);
}

.timeline-event time {
  color: var(--accent);
}

.timeline-event b {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.timeline-event span {
  display: block;
  min-height: 3.3rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.timeline-event em {
  width: fit-content;
  margin-top: 0.65rem;
  padding: 0.28rem 0.42rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--muted);
  font-style: normal;
}

.origin-timeline figcaption {
  grid-column: 1 / -1;
}

.agency-confidence {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 0.7rem 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.confidence-label b,
.confidence-label span {
  display: block;
}

.confidence-label b {
  font-size: 0.78rem;
}

.confidence-label span,
.agency-confidence small {
  color: var(--muted);
  font-size: 0.64rem;
}

.confidence-cells {
  display: grid;
  grid-template-columns: 5fr 2fr 2fr;
  overflow: hidden;
  border-radius: 5px;
}

.confidence-cells span {
  display: grid;
  padding: 0.55rem 0.3rem;
  place-items: center;
  color: #071014;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
}

.confidence-cells span b {
  font-size: 1.05rem;
  line-height: 1;
}

.confidence-cells .natural { background: var(--measured); }
.confidence-cells .lab { background: var(--limited); }
.confidence-cells .open { background: var(--faint); color: var(--text); }
.agency-confidence small { grid-column: 1 / -1; }

.trial-bars {
  display: grid;
  align-content: start;
}

.trial-row {
  display: grid;
  grid-template-columns: 60px 1fr 105px;
  gap: 0.5rem 0.7rem;
  align-items: center;
  margin-top: 1.15rem;
}

.bar-label {
  font-size: 0.72rem;
  font-weight: 700;
}

.bar-track {
  height: 0.8rem;
  overflow: hidden;
  border-radius: 99px;
  background: var(--panel-2);
}

.bar-track i {
  display: block;
  height: 100%;
  min-width: 5px;
  border-radius: inherit;
  background: var(--faint);
}

.bar-track i.vaccine {
  background: var(--measured);
}

.trial-row b {
  font: 700 0.7rem/1 var(--mono);
  text-align: right;
}

.trial-row small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 0.62rem;
}

.efficacy-number {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 0.7rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}

.efficacy-number b {
  grid-row: 1 / 3;
  color: var(--measured);
  font-size: 3rem;
  line-height: 1;
}

.efficacy-number span {
  font-size: 0.78rem;
  font-weight: 700;
}

.efficacy-number small {
  color: var(--muted);
  font-size: 0.66rem;
}

.waning-chart svg {
  display: block;
  width: 100%;
  max-height: 330px;
}

/* One line telling the reader what the y axis actually measures. The first
   draft omitted this and a reader read the falling lines as falling case
   counts, which is the opposite of what the chart says. */
.chart-readme {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
  margin: 0.15rem 0 0.5rem;
  max-width: 46ch;
}

.waning-chart .axis-title,
.waning-chart .axis-title-x {
  fill: var(--muted);
  font: 700 14px var(--font);
  letter-spacing: 0.03em;
  text-anchor: middle;
}

.waning-chart .anchor-note {
  fill: var(--muted);
  font: 500 11px var(--font);
  opacity: 0.75;
}

.waning-chart .tick-y text { text-anchor: end; }
.waning-chart .tick-x text { text-anchor: middle; }
.waning-chart .value { text-anchor: middle; }

.waning-chart .bin-note {
  font: 600 10.5px var(--font);
  text-anchor: middle;
  opacity: 0.9;
}
.waning-chart .bin-note.hospital { fill: var(--measured); }
.waning-chart .bin-note.ed { fill: var(--limited); }

.grid-lines line.grid-base,
.grid-lines line.grid-top { stroke: var(--muted); opacity: 0.5; }

/* An imprecise estimate should not look as solid as a firm one. */
.line-loose { stroke-dasharray: 9 7; opacity: 0.75; }
/* Declared with the series class so it wins over `.point-ed` below,
   which is defined later in this file. */
.waning-chart .point-ed.point-loose {
  fill: var(--panel);
  stroke: var(--limited);
  stroke-width: 3.5;
}
/* Confidence intervals. The source publishes them; the first version of this
   chart wrongly said it did not. */
.ci line {
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.75;
}
.ci-hospital line { stroke: var(--measured); }
.ci-ed line { stroke: var(--limited); }

/* The >=5 month interval runs below zero, off the plot. An arrow is honest
   about that; clipping it silently would not be. */
.ci-runoff {
  stroke: var(--limited);
  stroke-width: 2.5;
  stroke-dasharray: 5 5;
  opacity: 0.8;
}
.ci-arrow-head { fill: var(--limited); }

/* Wins over the .value / .bin-note anchors declared above. */
.waning-chart text.anchor-end { text-anchor: end; }
.waning-chart text.anchor-start { text-anchor: start; }
.ci-runoff-cap { stroke: var(--limited); stroke-width: 2.5; opacity: 0.8; }
.bin-leader { fill: none; stroke: var(--measured); stroke-width: 1.5; opacity: 0.7; }

.chart-legend .loose-key::before {
  background: transparent;
  border-top: 2px dashed var(--muted);
  border-radius: 0;
  height: 0;
  width: 0.9rem;
  vertical-align: 0.22rem;
}

.grid-lines line {
  stroke: var(--rule);
  stroke-width: 1;
}

.axis-labels text,
.waning-chart .value {
  fill: var(--muted);
  font: 600 13px var(--font);
}

.line-hospital,
.line-ed {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-hospital { stroke: var(--measured); }
.line-ed { stroke: var(--limited); }
.point-hospital { fill: var(--measured); }
.point-ed { fill: var(--limited); }
.waning-chart .value { font-weight: 800; }
.waning-chart .value.hospital { fill: var(--measured); }
.waning-chart .value.ed { fill: var(--limited); }

.chart-legend {
  display: flex;
  gap: 1.3rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.chart-legend span::before {
  content: '';
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  vertical-align: -0.04rem;
}

.chart-legend .hospital::before { background: var(--measured); }
.chart-legend .ed::before { background: var(--limited); }

.hbar {
  display: grid;
  grid-template-columns: 110px 1fr 42px;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.hbar span {
  font-size: 0.7rem;
  font-weight: 700;
}

.hbar i {
  position: relative;
  height: 0.9rem;
  border-radius: 2px;
  background: var(--panel-2);
}

.hbar i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  border-radius: inherit;
  background: var(--accent);
}

.hbar i.moderna::after {
  background: var(--purple);
}

.hbar b {
  font: 700 0.7rem/1 var(--mono);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.outcome-grid .figure-kicker,
.outcome-grid figcaption {
  grid-column: 1 / -1;
}

.outcome-stat {
  text-align: center;
}

.ring {
  display: grid;
  width: 84px;
  height: 84px;
  margin: 0.8rem auto;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--panel) 55%, transparent 57%),
              conic-gradient(var(--measured) calc(var(--p) * 1%), var(--panel-2) 0);
}

.ring.caution {
  background: radial-gradient(circle at center, var(--panel) 55%, transparent 57%),
              conic-gradient(var(--limited) calc(var(--p) * 1%), var(--panel-2) 0);
}

.ring.limit {
  background: radial-gradient(circle at center, var(--panel) 55%, transparent 57%),
              conic-gradient(var(--absent) calc(var(--p) * 1%), var(--panel-2) 0);
}

.ring span {
  font-size: 1.05rem;
  font-weight: 800;
}

.outcome-stat p {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.4;
}

.outcome-stat p b {
  display: block;
  color: var(--text);
}

.signal-chain {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
}

.masked-signals {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 1px;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--rule);
}

.masked-signals > * {
  padding: 0.7rem 0.8rem;
  background: var(--panel);
}

.masked-signals div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: center;
}

.masked-signals b {
  color: var(--limited);
  font-size: 1.65rem;
  line-height: 1;
}

.masked-signals span,
.masked-signals p {
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.4;
}

.signal-chain span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font: 600 0.65rem/1.2 var(--mono);
}

.signal-chain span b {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
}

.signal-chain i {
  height: 1px;
  background: var(--rule);
}

/* Topic 3 */
.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1.3rem;
}

.pipeline div {
  padding: 0.75rem 0.4rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-align: center;
}

.pipeline b,
.pipeline span {
  display: block;
}

.pipeline b {
  color: var(--accent);
  font-size: 1.45rem;
}

.pipeline span {
  color: var(--muted);
  font-size: 0.58rem;
}

.pipeline i {
  color: var(--muted);
  font-style: normal;
}

.pipeline-total {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-top: 1rem;
}

.pipeline-total b {
  color: var(--measured);
  font-size: 2.6rem;
  line-height: 1;
}

.pipeline-total span {
  color: var(--muted);
  font-size: 0.72rem;
}

.refusal-compare {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.68rem;
}

.refusal-compare b {
  color: var(--limited);
}

.motion-row {
  display: grid;
  grid-template-columns: 75px 1fr 55px 52px;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
}

.motion-row span,
.motion-row small {
  color: var(--muted);
  font-size: 0.65rem;
}

.motion-row i {
  height: 0.8rem;
  border-radius: 2px;
  background: var(--accent);
}

.motion-row b {
  font: 700 0.66rem/1 var(--mono);
  text-align: right;
}

.motion-total {
  display: grid;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.motion-total b {
  color: var(--measured);
  font-size: 1.4rem;
}

.motion-total span {
  color: var(--muted);
  font-size: 0.68rem;
}

.method-matrix {
  display: grid;
  margin-top: 1rem;
  overflow: hidden;
}

.method-matrix > div {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
}

.method-matrix > div + div {
  border-top: 1px solid var(--rule);
}

.method-matrix span,
.method-matrix b {
  padding: 0.55rem 0.8rem;
  font-size: 0.68rem;
}

.method-matrix span + span,
.method-matrix b + b {
  border-left: 1px solid var(--rule);
}

.method-matrix > div:first-child {
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
}

.design-flow {
  display: grid;
  grid-template-columns: 1.2fr 65px 1fr 65px 1fr;
  gap: 0.8rem;
  align-items: stretch;
}

.design-stage {
  position: relative;
  display: grid;
  gap: 0.55rem;
  align-content: center;
  padding-top: 1.4rem;
}

.design-stage .stage-label {
  position: absolute;
  top: 0;
}

.design-stage > div {
  padding: 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 7px;
}

.design-stage b,
.design-stage small {
  display: block;
}

.design-stage b {
  font-size: 0.75rem;
}

.design-stage small {
  color: var(--muted);
  font-size: 0.58rem;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--muted);
  font: 600 0.55rem/1.3 var(--mono);
  text-align: center;
}

.flow-arrow::after {
  content: '→';
  color: var(--accent);
  font-size: 1.6rem;
}

.mirror-pair {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.3rem;
  color: var(--text);
  font-size: 0.65rem;
  text-align: center;
}

.mirror-pair i {
  color: var(--accent);
  font-style: normal;
}

.design-total {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 0.75rem;
  margin-top: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}

.design-total b {
  grid-row: 1 / 3;
  color: var(--measured);
  font-size: 2.4rem;
  line-height: 1;
}

.design-total span {
  font-size: 0.75rem;
  font-weight: 700;
}

.design-total small {
  color: var(--muted);
  font: 600 0.62rem/1.3 var(--mono);
}

.protocol-strip {
  justify-content: space-between;
  color: var(--accent);
  text-transform: uppercase;
}

.analysis-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}

.delta-equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.4rem;
}

.delta-equation > div {
  padding: 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-align: center;
}

.delta-equation span,
.delta-equation b {
  display: block;
}

.delta-equation span {
  color: var(--muted);
  font-size: 0.58rem;
}

.delta-equation b {
  margin-top: 0.25rem;
  font-size: 1.7rem;
}

.delta-equation i {
  color: var(--muted);
  font-style: normal;
}

.delta-equation .delta-result {
  border-color: var(--accent);
}

.delta-equation .delta-result b {
  color: var(--accent);
}

.score-vector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.score-vector div {
  min-height: 5rem;
  padding: 0.8rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.score-vector div:nth-child(even) {
  border-right: 0;
}

.score-vector div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.score-vector span,
.score-vector b {
  display: block;
}

.score-vector span {
  color: var(--accent);
  font: 700 0.6rem/1.2 var(--mono);
  text-transform: uppercase;
}

.score-vector b {
  margin-top: 0.35rem;
  font-size: 0.7rem;
}

.report-mock {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 0.7rem;
  align-items: center;
  margin-top: 1rem;
}

.report-mock > div:not(.report-label) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 7px;
}

.report-mock span {
  color: var(--muted);
  font-size: 0.62rem;
}

.report-mock b {
  font-size: 1.2rem;
}

.report-mock .good { color: var(--measured); }
.report-mock .warn { color: var(--limited); }
.report-mock .muted { color: var(--muted); }
.report-mock figcaption { grid-column: 1 / -1; }

/* Recommendation */
.choice-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.choice-cards article {
  min-height: 13rem;
  padding: 1.15rem;
}

.choice-cards article.recommended {
  border-color: var(--measured);
  background: color-mix(in srgb, var(--measured) 8%, var(--panel));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--measured) 28%, transparent);
}

.choice-cards article > span {
  color: var(--accent);
  font: 700 0.62rem/1.3 var(--mono);
  text-transform: uppercase;
}

.choice-cards h3 {
  margin-top: 2.5rem;
  font-size: 1.2rem;
}

.choice-cards p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.score-dots {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.score-dots i {
  width: 1.1rem;
  height: 0.32rem;
  border-radius: 99px;
  background: var(--measured);
}

.score-dots i.off {
  background: var(--rule);
}

.final-line {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--measured);
  background: color-mix(in srgb, var(--measured) 7%, var(--panel));
  font-size: 0.82rem;
  font-weight: 600;
}

/* Presentation mode */
body.present-mode {
  height: 100dvh;
  overflow: hidden;
}

body.present-mode .back-to-writing {
  opacity: 0;
  pointer-events: none;
}

body.present-mode .notes-toggle,
body.present-mode .progress-dots {
  display: flex;
}

body.present-mode #deck {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
}

body.present-mode section {
  display: flex;
  height: 100dvh;
  min-height: 100dvh;
  align-items: center;
  overflow: hidden;
  border: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body.present-mode .slide-inner {
  width: min(1180px, calc(100% - 8rem));
  max-height: 100dvh;
  padding: calc(4.4rem + env(safe-area-inset-top, 0px)) 0 calc(2.4rem + env(safe-area-inset-bottom, 0px));
}

body.present-mode .narration {
  display: none;
}

body.present-mode .slide-header {
  margin-bottom: 1.2rem;
}

body.present-mode h2 {
  max-width: 1000px;
  font-size: clamp(1.8rem, 3.25vw, 3rem);
}

body.present-mode .evidence-figure {
  padding: 1rem;
}

body.present-mode .claim-map,
body.present-mode .study-ladder {
  padding: 0;
}

body.present-mode .source-line {
  margin-top: 0.65rem;
  font-size: 0.65rem;
}

body.present-mode figcaption {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  font-size: 0.66rem;
}

body.present-mode .doors-slide {
  width: min(1180px, calc(100% - 8rem));
  padding-top: 3.8rem;
  padding-bottom: 2rem;
}

body.present-mode .doors {
  max-height: calc(100dvh - 7rem);
}

body.present-mode .doors img {
  max-height: calc(100dvh - 7rem);
  object-fit: contain;
}

body.present-mode .doors-list,
body.present-mode .doors-caption {
  display: none;
}

@media (max-height: 760px) and (min-width: 801px) {
  body.present-mode .slide-inner {
    transform: scale(0.88);
    width: min(1340px, calc(100% - 4rem));
  }
}

@media (max-width: 900px) {
  .slide-inner {
    width: min(100% - 2rem, var(--max));
  }

  .viz-grid.two,
  .efficacy-grid,
  .safety-grid,
  .benchmark-grid {
    grid-template-columns: 1fr;
  }

  .three-records,
  .choice-cards {
    grid-template-columns: 1fr;
  }

  .three-records article,
  .choice-cards article {
    min-height: 10rem;
  }

  .three-records h3,
  .choice-cards h3 {
    margin-top: 1.8rem;
  }

  .origin-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .erdman-figure {
    grid-template-columns: 1fr;
  }

  .analytic-flow,
  .erdman-figure figcaption {
    grid-column: 1;
  }

  .analytic-flow {
    grid-template-columns: 1fr;
  }

  .analytic-flow > i {
    height: 0.8rem;
    transform: rotate(90deg);
  }

  .analytic-flow > div {
    min-height: 0;
  }

  .timeline-line {
    display: none;
  }

  .timeline-event {
    padding: 0 0 0 1.5rem;
  }

  .timeline-event::before {
    top: 0.25rem;
  }

  .analysis-layout {
    grid-template-columns: 1fr;
  }

  body.present-mode .slide-inner,
  body.present-mode .doors-slide {
    width: min(100% - 4.5rem, 760px);
  }

  body.present-mode .viz-grid.two,
  body.present-mode .efficacy-grid,
  body.present-mode .safety-grid,
  body.present-mode .benchmark-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.present-mode .three-records,
  body.present-mode .choice-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.present-mode .three-records article,
  body.present-mode .choice-cards article {
    min-height: 11rem;
  }
}

@media (max-width: 620px) {
  .back-to-writing {
    top: calc(0.75rem + env(safe-area-inset-top, 0px));
    left: calc(0.75rem + env(safe-area-inset-left, 0px));
  }

  .utility-bar {
    top: calc(0.75rem + env(safe-area-inset-top, 0px));
    right: calc(0.75rem + env(safe-area-inset-right, 0px));
  }

  .theme-toggle {
    display: none;
  }

  .slide-inner {
    width: calc(100% - 2rem);
    padding: 5.5rem 0 4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .doors-slide {
    min-height: auto;
    padding-top: 5rem;
  }

  .doors-list {
    display: block;
  }

  .doors-caption {
    display: none;
  }

  body:not(.present-mode) .iqube-figure {
    overflow-x: auto;
  }

  body:not(.present-mode) .iqube-cutaway {
    width: 650px;
    max-width: none;
  }

  body:not(.present-mode) .cutaway-scroll-hint {
    display: block;
    margin-top: 0.45rem;
    color: var(--muted);
    font: 600 0.58rem/1.3 var(--mono);
  }

  .analyst-vote {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    padding: 0.55rem;
  }

  .analyst-icons {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.2rem;
  }

  .vote-number {
    min-width: 7.2rem;
  }

  .construction-record {
    grid-template-columns: repeat(2, 1fr);
  }

  .photonic-definition {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .claim-map-head {
    display: none;
  }

  .claim-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .study-row {
    grid-template-columns: 44px 1fr auto;
  }

  .study-n {
    grid-column: 2;
  }

  .study-grade {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .company-results {
    grid-template-columns: 1fr;
  }

  .company-results div {
    min-height: 5.5rem;
  }

  .three-records {
    grid-template-columns: 1fr;
  }

  .classification-example {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .origin-timeline {
    grid-template-columns: 1fr;
  }

  .timeline-event span {
    min-height: 0;
  }

  .agency-confidence {
    grid-template-columns: 1fr;
  }

  .trial-row {
    grid-template-columns: 54px 1fr 94px;
  }

  .outcome-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ring {
    width: 67px;
    height: 67px;
  }

  .signal-chain {
    grid-template-columns: 1fr;
  }

  .signal-chain i {
    width: 1px;
    height: 12px;
    margin-left: 0.7rem;
  }

  .masked-signals {
    grid-template-columns: 1fr;
  }

  .method-matrix {
    overflow-x: auto;
  }

  .method-matrix > div {
    min-width: 590px;
  }

  .design-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
  }

  .flow-arrow::after {
    content: '↓';
  }

  .delta-equation {
    gap: 0.3rem;
  }

  .delta-equation > div {
    padding: 0.5rem 0.25rem;
  }

  .report-mock {
    grid-template-columns: 1fr;
  }

  .report-mock figcaption {
    grid-column: 1;
  }

  .choice-cards {
    grid-template-columns: 1fr;
  }

  body.present-mode .notes-toggle {
    top: calc(0.75rem + env(safe-area-inset-top, 0px));
    right: calc(9.65rem + env(safe-area-inset-right, 0px));
    padding: 0.58rem 0.65rem;
  }

  .speaker-notes {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(72dvh, 620px);
    border-top: 1px solid var(--rule);
    border-left: 0;
    transform: translateY(105%);
  }

  .notes-open .speaker-notes {
    transform: translateY(0);
  }

  .speaker-notes-body {
    height: calc(min(72dvh, 620px) - 4rem);
  }

  body.present-mode .progress-dots {
    display: none;
  }

  body.present-mode section {
    overflow: hidden;
  }

  body.present-mode .slide-inner,
  body.present-mode .doors-slide {
    width: calc(100% - 1.5rem);
    padding-top: calc(4.1rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  }

  body.present-mode .slide-header {
    margin-bottom: 0.7rem;
  }

  body.present-mode .topic-num {
    font-size: 0.54rem;
  }

  body.present-mode h2 {
    margin-top: 0.3rem;
    font-size: clamp(1.2rem, 6vw, 1.55rem);
    line-height: 1.02;
  }

  body.present-mode .evidence-figure {
    padding: 0.65rem;
  }

  body.present-mode .viz-grid.two,
  body.present-mode .efficacy-grid,
  body.present-mode .safety-grid,
  body.present-mode .benchmark-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  body.present-mode .three-records,
  body.present-mode .choice-cards {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  body.present-mode .three-records article,
  body.present-mode .choice-cards article {
    min-height: 0;
    padding: 0.55rem 0.7rem;
  }

  body.present-mode .record-num {
    top: -0.15rem;
    font-size: 2.5rem;
  }

  body.present-mode .three-records h3,
  body.present-mode .choice-cards h3 {
    margin-top: 0;
    font-size: 0.85rem;
  }

  body.present-mode .three-records p,
  body.present-mode .choice-cards p {
    margin-top: 0.15rem;
    padding-right: 2.5rem;
    font-size: 0.58rem;
  }

  body.present-mode .record-inputs {
    position: static;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    font-size: 0.52rem;
  }

  body.present-mode .classification-example {
    margin-top: 0.45rem;
    padding: 0.5rem 0.65rem;
  }

  body.present-mode .classification-example p {
    font-size: 0.58rem;
  }

  body.present-mode .claim-row {
    min-height: 0;
    padding: 0.45rem 0.65rem;
  }

  body.present-mode .claim-row b {
    font-size: 0.66rem;
  }

  body.present-mode .claim-row small,
  body.present-mode .status {
    font-size: 0.56rem;
  }

  body.present-mode .evidence-ruler,
  body.present-mode .provenance-strip,
  body.present-mode .protocol-strip {
    margin-top: 0.4rem;
    padding: 0.38rem 0.2rem;
    gap: 0.35rem 0.6rem;
    font-size: 0.5rem;
  }

  body.present-mode .source-line,
  body.present-mode figcaption {
    font-size: 0.5rem;
    line-height: 1.35;
  }

  body.present-mode .people-grid {
    gap: 0.3rem;
    margin: 0.55rem 0;
  }

  body.present-mode .big-ratio b,
  body.present-mode .signal-metric b {
    font-size: 2rem;
  }

  body.present-mode .wave {
    height: 50px;
  }

  body.present-mode .study-row {
    min-height: 0;
    padding: 0.4rem 0.55rem;
  }

  body.present-mode .study-row b {
    font-size: 0.62rem;
  }

  body.present-mode .study-row span,
  body.present-mode .study-row small,
  body.present-mode .study-grade {
    font-size: 0.5rem;
  }

  body.present-mode .company-results {
    margin-top: 0.45rem;
    grid-template-columns: repeat(3, 1fr);
  }

  body.present-mode .company-results div {
    min-height: 4rem;
    padding: 0.4rem;
  }

  body.present-mode .company-results b {
    font-size: 1.35rem;
  }

  body.present-mode .company-results span,
  body.present-mode .company-results small {
    font-size: 0.48rem;
  }

  body.present-mode .origin-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    padding: 0.65rem;
  }

  body.present-mode .erdman-figure {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  body.present-mode .analytic-flow,
  body.present-mode .erdman-figure figcaption {
    grid-column: 1;
  }

  body.present-mode .analytic-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }

  body.present-mode .analytic-flow > i {
    display: none;
  }

  body.present-mode .analytic-flow > div {
    min-height: 3.8rem;
    padding: 0.38rem;
  }

  body.present-mode .construction-record {
    grid-template-columns: repeat(4, 1fr);
  }

  body.present-mode .construction-record div {
    min-height: 2.5rem;
    padding: 0.35rem;
  }

  body.present-mode .construction-record b,
  body.present-mode .construction-record span {
    font-size: 0.43rem;
  }

  body.present-mode .photonic-definition {
    grid-template-columns: auto auto auto auto auto 1fr;
    gap: 0.2rem;
    margin-top: 0.35rem;
    padding: 0.35rem;
    font-size: 0.42rem;
    text-align: left;
  }

  body.present-mode .photonic-definition span {
    padding: 0.2rem;
  }

  body.present-mode .photonic-definition em {
    font-size: 0.4rem;
  }

  body.present-mode .testimony-record,
  body.present-mode .analyst-vote,
  body.present-mode .testimony-quote,
  body.present-mode .testimony-status div {
    padding: 0.4rem;
  }

  body.present-mode .vote-number b {
    font-size: 1.4rem;
  }

  body.present-mode .analytic-flow b,
  body.present-mode .testimony-quote p {
    font-size: 0.56rem;
  }

  body.present-mode .analytic-flow small,
  body.present-mode .testimony-record span,
  body.present-mode .testimony-record em,
  body.present-mode .testimony-quote cite,
  body.present-mode .testimony-status b,
  body.present-mode .testimony-status span,
  body.present-mode .vote-number span,
  body.present-mode .vote-number small {
    font-size: 0.44rem;
  }

  body.present-mode .timeline-event {
    padding-left: 1rem;
  }

  body.present-mode .timeline-event::before {
    width: 0.5rem;
    height: 0.5rem;
  }

  body.present-mode .timeline-event time,
  body.present-mode .timeline-event em,
  body.present-mode .timeline-event span {
    font-size: 0.48rem;
  }

  body.present-mode .timeline-event b {
    font-size: 0.64rem;
  }

  body.present-mode .agency-confidence {
    margin-top: 0.45rem;
    padding: 0.45rem 0.55rem;
    grid-template-columns: 1fr 1.5fr;
  }

  body.present-mode .confidence-cells {
    grid-template-columns: 5fr 2fr 2fr;
  }

  body.present-mode .confidence-cells span {
    padding: 0.35rem 0.2rem;
    font-size: 0.46rem;
  }

  body.present-mode .trial-row {
    margin-top: 0.55rem;
  }

  body.present-mode .efficacy-number {
    margin-top: 0.6rem;
    padding-top: 0.5rem;
  }

  body.present-mode .efficacy-number b {
    font-size: 1.8rem;
  }

  body.present-mode .waning-chart svg {
    max-height: 175px;
  }

  body.present-mode .hbar {
    margin-top: 0.5rem;
  }

  body.present-mode .ring {
    width: 55px;
    height: 55px;
    margin: 0.35rem auto;
  }

  body.present-mode .outcome-stat p {
    font-size: 0.5rem;
  }

  body.present-mode .signal-chain {
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    margin-top: 0.45rem;
  }

  body.present-mode .masked-signals {
    grid-template-columns: 1fr 1fr;
    margin-top: 0.45rem;
  }

  body.present-mode .masked-signals > p {
    display: none;
  }

  body.present-mode .masked-signals > * {
    padding: 0.35rem 0.4rem;
  }

  body.present-mode .masked-signals b {
    font-size: 1.05rem;
  }

  body.present-mode .masked-signals span,
  body.present-mode .masked-signals p {
    font-size: 0.5rem;
  }

  body.present-mode .signal-chain i {
    width: auto;
    height: 1px;
    margin: 0;
  }

  body.present-mode .signal-chain span {
    font-size: 0.45rem;
  }

  body.present-mode .pipeline {
    margin-top: 0.55rem;
  }

  body.present-mode .pipeline-total b {
    font-size: 1.6rem;
  }

  body.present-mode .method-matrix > div {
    min-width: 0;
  }

  body.present-mode .method-matrix span,
  body.present-mode .method-matrix b {
    padding: 0.32rem;
    font-size: 0.48rem;
  }

  body.present-mode .design-flow {
    grid-template-columns: 1.2fr 40px 1fr 40px 1fr;
    gap: 0.35rem;
  }

  body.present-mode .flow-arrow {
    display: grid;
  }

  body.present-mode .flow-arrow::after {
    content: '→';
  }

  body.present-mode .design-stage > div {
    padding: 0.38rem;
  }

  body.present-mode .design-total b {
    font-size: 1.5rem;
  }

  body.present-mode .analysis-layout {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  body.present-mode .delta-equation {
    margin-top: 0.55rem;
  }

  body.present-mode .score-vector div {
    min-height: 0;
    padding: 0.4rem;
  }

  body.present-mode .report-mock {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    margin-top: 0.45rem;
  }

  body.present-mode .report-mock > div:not(.report-label) {
    padding: 0.4rem;
  }

  body.present-mode .choice-cards article > span {
    font-size: 0.48rem;
  }

  body.present-mode .score-dots {
    margin-top: 0.25rem;
  }

  body.present-mode .final-line {
    margin-top: 0.45rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .back-to-writing,
  .utility-bar,
  .notes-toggle,
  .progress-dots,
  .speaker-notes {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  section {
    break-inside: avoid;
  }
}

/* Topic 3 · reel gallery */
.reel-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.reel-card,
.pilot-card {
  display: flex;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) - 3px);
  background: color-mix(in srgb, var(--panel-2) 82%, transparent);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.reel-card:hover,
.reel-card:focus-visible,
.pilot-card:hover,
.pilot-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--rule));
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.reel-card {
  gap: 1rem;
  overflow: hidden;
}

.reel-thumb {
  position: relative;
  flex: 0 0 132px;
  overflow: hidden;
}

.reel-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 178px;
  object-fit: cover;
}

.reel-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 55%, rgba(0, 0, 0, 0.42));
}

.reel-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}

.reel-play::before {
  content: '';
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 45%, transparent);
  backdrop-filter: blur(3px);
}

.reel-play::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--text);
}

.reel-card:hover .reel-play::before,
.reel-card:focus-visible .reel-play::before {
  background: color-mix(in srgb, var(--accent) 30%, var(--bg));
}

.reel-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1rem 0;
}

.reel-meta b {
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.reel-meta span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.reel-meta small {
  color: var(--faint);
  font: 600 0.66rem/1.4 var(--mono);
  letter-spacing: 0.04em;
}

/* Topic 3 · pilot gallery */
.pilot-group + .pilot-group {
  margin-top: 1.15rem;
}

.pilot-question {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.9rem 0 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pilot-question span {
  color: var(--accent);
  font: 700 0.66rem/1 var(--mono);
  letter-spacing: 0.1em;
}

.pilot-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.pilot-card {
  flex-direction: column;
  overflow: hidden;
}

.pilot-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.pilot-head b {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.pilot-head span {
  color: var(--faint);
  font: 600 0.62rem/1 var(--mono);
  letter-spacing: 0.05em;
}

.pilot-thumb {
  display: block;
  height: 104px;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: #0a0a0a;
}

.pilot-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0.94;
}

.pilot-verdict {
  display: block;
  padding: 0.5rem 0.75rem;
  font: 600 0.68rem/1.35 var(--mono);
  letter-spacing: 0.03em;
}

.pilot-verdict.v-yes { color: var(--blue); }
.pilot-verdict.v-no { color: var(--limited); }
.pilot-verdict.v-mixed { color: var(--purple); }

/* Lightbox */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 78%, black);
  opacity: 0.94;
  backdrop-filter: blur(6px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 1.1rem 1.1rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: lightbox-in 0.22s ease;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.965);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-panel {
    animation: none;
  }
}

.lightbox-media {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius) - 4px);
}

.lightbox-video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 11rem);
  object-fit: contain;
  border-radius: calc(var(--radius) - 4px);
  background: black;
}

.lightbox-caption {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  flex-shrink: 0;
}

.lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: color-mix(in srgb, var(--panel-2) 88%, transparent);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.lightbox-close:hover {
  transform: scale(1.06);
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.lightbox-open {
  overflow: hidden;
}

/* Present-mode fits for the new Topic 3 slides */
body.present-mode .pilot-thumb {
  height: clamp(56px, 9dvh, 96px);
}

body.present-mode .pilot-question {
  margin: 0.55rem 0 0.4rem;
  font-size: 0.8rem;
}

body.present-mode .pilot-group + .pilot-group {
  margin-top: 0.6rem;
}

body.present-mode .reel-thumb img {
  min-height: 128px;
}

body.present-mode .bench-card p {
  font-size: 0.74rem;
}

@media (max-width: 900px) {
  .pilot-cards {
    gap: 0.6rem;
  }

  .pilot-head span {
    display: none;
  }
}

@media (max-width: 720px) {
  .reel-cards,
  .bench-shelf {
    grid-template-columns: 1fr;
  }

  .pilot-cards {
    grid-template-columns: 1fr;
  }

  .pilot-thumb {
    height: 84px;
  }

  .lightbox {
    padding: 0.7rem;
  }

  .lightbox-video {
    max-height: calc(100dvh - 8rem);
  }

}

/* Topic 3 · question ledger */
.question-ledger .ledger-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.72rem 0.2rem;
}

.question-ledger .ledger-row + .ledger-row {
  border-top: 1px solid var(--rule);
}

.ledger-row span {
  color: var(--accent);
  font: 700 0.68rem/1 var(--mono);
  letter-spacing: 0.1em;
}

.ledger-row code {
  font: 500 0.86rem/1.5 var(--mono);
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
  overflow-wrap: anywhere;
}

.ledger-row em {
  color: var(--faint);
  font: 600 0.64rem/1.3 var(--mono);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.harness-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.harness-strip div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) - 3px);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
}

.harness-strip b {
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.harness-strip span {
  color: var(--faint);
  font: 600 0.64rem/1.4 var(--mono);
  letter-spacing: 0.05em;
}

/* Topic 3 · findings */
.findings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.finding-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
}

.finding-num {
  color: var(--accent);
  font: 700 0.68rem/1 var(--mono);
  letter-spacing: 0.12em;
}

.finding-card h3 {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.finding-card p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.finding-tag {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--rule);
  color: var(--purple);
  font: 600 0.68rem/1.4 var(--mono);
  letter-spacing: 0.04em;
}

body.present-mode .findings-grid {
  gap: 0.8rem;
}

@media (max-width: 720px) {
  .harness-strip,
  .findings-grid {
    grid-template-columns: 1fr;
  }

  .ledger-row em {
    display: none;
  }
}

/* Milestone progress dots — title + each topic intro */
.dot.milestone {
  width: 13px;
  height: 13px;
  background: color-mix(in srgb, var(--limited) 75%, var(--faint));
  opacity: 0.75;
}

.dot.milestone.active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.3);
}

/* Source-quote tooltips — same element and behavior in read and present modes */
.tipped {
  position: relative;
}

.tipped::before {
  content: '\201D';
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--rule));
  border-radius: 50%;
  color: var(--accent);
  font: 700 0.95rem/0.4 Georgia, serif;
  padding-top: 0.3rem;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.tipped:hover::before,
.tipped:focus-within::before,
.tipped:focus::before {
  opacity: 1;
}

.src-tip {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  z-index: 60;
  width: min(56ch, calc(100% - 1.2rem));
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--rule));
  border-radius: calc(var(--radius) - 3px);
  background: color-mix(in srgb, var(--panel-2) 97%, var(--accent));
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%) translateY(-4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.tipped:hover .src-tip,
.tipped:focus .src-tip,
.tipped:focus-within .src-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.src-tip q {
  display: block;
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.55;
  quotes: '\201C' '\201D';
}

.src-tip cite {
  display: block;
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--rule);
  color: var(--muted);
  font: 600 0.64rem/1.4 var(--mono);
  font-style: normal;
  letter-spacing: 0.04em;
}

/* Topic 2 · captured-reel bubbles */
.reel-bubbles .bubble-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.35rem;
  padding: 0.4rem 0.2rem 0.2rem;
}

.reel-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 86px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.bubble-thumb {
  position: relative;
  width: 78px;
  height: 78px;
  overflow: hidden;
  border: 2px solid var(--rule);
  border-radius: 50%;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.bubble-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bubble-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(165deg, transparent 55%, rgba(0, 0, 0, 0.45));
}

.bubble-thumb::before {
  content: '';
  position: absolute;
  right: 6px;
  bottom: 8px;
  z-index: 1;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.reel-bubble:hover .bubble-thumb,
.reel-bubble:focus-visible .bubble-thumb {
  border-color: var(--accent);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1.05);
}

.reel-bubble small {
  color: var(--muted);
  font: 600 0.62rem/1.3 var(--mono);
  letter-spacing: 0.03em;
  text-align: center;
}

.reel-bubble:hover small,
.reel-bubble:focus-visible small {
  color: var(--text);
}

body.present-mode .bubble-thumb {
  width: 66px;
  height: 66px;
}

@media (max-width: 720px) {
  .reel-bubbles .bubble-row {
    gap: 0.8rem;
    justify-content: center;
  }

  .src-tip {
    width: calc(100% - 0.8rem);
  }
}

/* See-more index link on gallery figures */
.see-more {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 99px;
  color: var(--muted);
  font: 600 0.68rem/1 var(--mono);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.see-more:hover,
.see-more:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--rule));
  color: var(--accent);
}
