deck-stage:not(:defined) { visibility: hidden; }

:root {
  /* Bright, brand-aligned palette — Sandstone surfaces, Charcoal ink, Ochre accent. */
  --bg: #FFFFFF;               /* Primary white */
  --bg-2: #FCEDE2;             /* Sandstone — brand secondary, used as alt surface */
  --bg-3: #F1F1F1;             /* Light Grey */
  --ink: #424242;              /* Charcoal — primary body ink */
  --ink-2: #6a6a6a;
  --muted: #8e8884;
  --line: rgba(66,66,66,0.10);
  --line-2: rgba(66,66,66,0.18);
  --accent: #e64626;           /* Ochre — primary brand colour */
  --accent-2: #CE3D20;         /* Accessible Ochre — for text on white/sandstone/grey */
  --accent-soft: rgba(230,70,38,0.10);

  /* Type scale (1920×1080). Brand mixing rule: Apercu Medium + Lyon Italic at SAME point size. */
  --type-display: 156px;
  --type-title: 92px;
  --type-subtitle: 44px;
  --type-body: 30px;
  --type-small: 24px;
  --type-micro: 24px;

  --pad-x: 110px;
  --pad-top: 96px;
  --pad-bottom: 88px;
  --gap-title: 40px;
  --gap-item: 24px;

  /* Brand-approved fallbacks. Apercu Pro → Source Sans 3 (Canva fallback) / Arial (Office).
     Lyon Display → Newsreader → Times New Roman. */
  --font-sans: "Source Sans 3", "Arial", system-ui, sans-serif;
  --font-serif: "Newsreader", "Times New Roman", Times, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

deck-stage {
  --deck-rail-w: 188px;
  background: var(--bg);
}

section[data-label] {
  background: var(--bg);
  color: var(--ink);
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  font-size: var(--type-body);
  line-height: 1.35;
}

/* Per-slide backgrounds — alternate white / sandstone with one ochre hero. */
section[data-label="02 Background"],
section[data-label="05 Pipeline"],
section[data-label="07 Evaluation"],
section[data-label="13 Appendix · Random Forest"],
section[data-label="14 Appendix · Deployment"],
section[data-label="16 Refs · Libraries"],
section[data-label="18 Acknowledgements"]      { background: var(--bg-2); }   /* Sandstone */
section[data-label="01 Title"],
section[data-label="10 Demo"],
section[data-label="12 Thank You"]              { background: var(--accent); color: #FCEDE2; }  /* Ochre hero */

/* Slide enter transition — .anim visible by default; .slide-out hides for entrance replay */
section[data-label] .anim {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
section[data-label].slide-out .anim {
  opacity: 0;
  transform: translateY(28px);
  transition: none;
}
section[data-label].slide-in .anim.a1 { transition-delay: 60ms; }
section[data-label].slide-in .anim.a2 { transition-delay: 180ms; }
section[data-label].slide-in .anim.a3 { transition-delay: 300ms; }
section[data-label].slide-in .anim.a4 { transition-delay: 420ms; }
section[data-label].slide-in .anim.a5 { transition-delay: 540ms; }
section[data-label].slide-in .anim.a6 { transition-delay: 660ms; }

/* shared atoms — brand-aligned */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--type-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0;
}
.eyebrow.muted { color: var(--muted); }
.title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--type-title);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
/* Brand mixing rule: italic accent words inherit the parent's point size */
.title .lyon, h1 .lyon, h2 .lyon, h3 .lyon {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--type-subtitle);
  line-height: 1.18;
  color: var(--ink-2);
  margin: 0;
  text-wrap: balance;
}
.body {
  font-size: var(--type-body);
  color: var(--ink);
  line-height: 1.4;
  max-width: 24ch;
}
.body.wide { max-width: 32ch; }
.small {
  font-size: var(--type-small);
  color: var(--ink-2);
}
.mono {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--type-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.accent { color: var(--accent-2); }
.ink { color: var(--ink); }
.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* layout primitives */
.col { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: row; }
.u-mt-0 { margin-top: 0; }
.u-mt-20 { margin-top: 20px; }
.u-mt-24 { margin-top: 24px; }
.u-max-26 { max-width: 26ch; }
.u-max-38 { max-width: 38ch; }
.u-max-full { max-width: 100%; }
.title-60 { font-size: 60px; }
.title-68 { font-size: 68px; }
.title-76 { font-size: 76px; }
.title-tight { line-height: 1.05; }
.title-tighter { line-height: 1.04; }
.support-ring-accent,
.support-ring-ink {
  fill: none;
  stroke-width: 1.6;
}
.support-ring-accent { stroke: var(--accent-2); }
.support-ring-ink { stroke: var(--ink); }
.rf-vote-box {
  fill: var(--accent-2);
  stroke: none;
}
.rf-vote-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.14em;
  fill: #FFFFFF;
  text-transform: uppercase;
}
.rf-vote-prediction {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  fill: #FFFFFF;
}
.rf-vote-math {
  width: 196px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}
.rf-vote-math .katex {
  color: #FFFFFF;
}

/* Slide 1 — Title (ochre hero, matches Thank You closer) */
.s-title {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  position: relative;
}
.s-title .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; }
.s-title .top .meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  color: rgba(255,255,255,0.82);
  text-align: right;
  line-height: 1.35;
  max-width: 24ch;
  margin: 0;
}
.s-title .mark {
  display: flex; align-items: center; gap: 18px;
}
.s-title .mark-dot {
  width: 56px; height: 56px;
  border-radius: 4px;
  background: #FFFFFF;
  display: grid; place-items: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 28px;
  color: var(--accent-2);
  letter-spacing: -0.02em;
}
.s-title .mark-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--type-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.s-title .mid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
}
.s-title h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 132px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 18.5ch;
  color: #FFFFFF;
}
/* Brand mix: italic accent at SAME point size, different family + color */
.s-title h1 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #FCEDE2;
  letter-spacing: 0;
}
.s-title h1 .sle-full {
  display: block;
  color: #FFFFFF;
}
.s-title .lede {
  font-family: var(--font-serif);
  font-size: 52px;
  font-style: italic;
  font-weight: 400;
  color: #FCEDE2;
  max-width: none;
  margin: 0;
  line-height: 1.18;
}
.s-title .lede .lede-line {
  display: block;
  white-space: nowrap;
}
.s-title .foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  border-top: 1px solid rgba(252,237,226,0.32);
  padding-top: 28px;
  font-family: var(--font-sans);
}
.s-title .foot .team-block { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; max-width: 60%; }
.s-title .foot .team-mark {
  font-weight: 600;
  font-size: var(--type-micro);
  letter-spacing: 0.18em;
  color: #FFFFFF;
  text-transform: uppercase;
}
.s-title .foot .team-mark strong { color: #FCEDE2; font-weight: 600; }
.s-title .foot .team-names {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: #FCEDE2;
  letter-spacing: 0;
  line-height: 1.35;
}
.s-title .foot .meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: #FCEDE2;
  text-align: right;
  line-height: 1.35;
  max-width: 24ch;
  margin: 0;
}

/* Slide 2 — Problem */
.s-problem {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 100px;
  height: 100%;
  align-items: center;
}
.s-problem .stat-card {
  border-top: 2px solid var(--ink);
  padding: 28px 0 0;
  background: transparent;
}
.s-problem .stat-stack { gap: 28px; }
.s-problem .stat-num {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 144px;
  line-height: 1;
  color: var(--accent-2);
  letter-spacing: -0.04em;
  margin: 0;
}
.s-problem .stat-num .katex {
  font-size: 0.86em;
}
.s-problem .stat-num .small-unit {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  color: var(--ink);
  margin-left: 12px;
  letter-spacing: 0;
}
.s-problem .stat-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 26px;
  color: var(--ink);
  margin: 18px 0 0;
  line-height: 1.3;
}
.s-problem .copy {
  display: flex; flex-direction: column; gap: 32px;
}

/* Slide 3 — Approach (Sandstone surface) */
.s-approach {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  gap: 24px;
  position: relative;
}
.s-approach .head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform-origin: center top;
  transition: opacity 420ms ease, transform 500ms cubic-bezier(.18,.78,.22,1);
}
.s-approach .head .title {
  max-width: 1420px;
  font-size: 72px;
  line-height: 1.02;
}
.s-approach .head .subtitle {
  max-width: 980px;
  font-size: 36px;
  line-height: 1.16;
}
.s-approach .triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  min-height: 0;
  transform-origin: center bottom;
  will-change: transform, opacity;
  transition: opacity 420ms ease, transform 520ms cubic-bezier(.18,.78,.22,1);
}
.s-approach .card {
  border: 1px solid var(--line-2);
  background: #FFFFFF;
  padding: 30px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.s-approach .card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 900ms cubic-bezier(.2,.7,.2,1) 400ms;
}
section.slide-in .s-approach .card::before { transform: scaleX(1); }
.s-approach .card .idx {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--type-micro);
  letter-spacing: 0.16em;
  color: var(--accent-2);
  text-transform: uppercase;
}
.s-approach .card h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.04;
  margin: 0;
  letter-spacing: 0;
  color: var(--ink);
}
.s-approach .substeps {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.s-approach .substeps li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-2);
  background: #FFFFFF;
  font-size: 20px;
  line-height: 1.1;
  color: var(--ink);
  min-width: 0;
}
.s-approach .substeps strong {
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.10em;
}
.s-approach .substeps span {
  min-width: 0;
  color: var(--ink-2);
}
/* Pipeline-card icon (rubric 3.2 — visualise each disciplinary stage) */
.s-approach .card .p-icon {
  width: 62px;
  height: 62px;
  display: block;
  margin-bottom: -2px;
}
.s-approach .card .p-icon svg { width: 100%; height: 100%; overflow: visible; display: block; }
.s-approach .p-icon .ink-stroke { stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.s-approach .p-icon .acc-stroke { stroke: var(--accent-2); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.s-approach .p-icon .acc-fill   { fill: var(--accent-2); stroke: none; }
.s-approach .p-icon .ink-fill   { fill: var(--ink); stroke: none; }
.s-approach .p-icon .muted-fill { fill: var(--line-2); stroke: none; }
.s-approach .p-icon .pop {
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .40s ease, transform .40s cubic-bezier(.3, 1.4, .5, 1);
}
section.slide-in .s-approach .p-icon .pop { opacity: 1; transform: scale(1); }
.s-approach .p-icon .draw {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1);
}
section.slide-in .s-approach .p-icon .draw { stroke-dashoffset: 0; }
.s-approach .p-icon .row-slide {
  transform: translateX(-12px);
  opacity: 0;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .55s ease;
}
section.slide-in .s-approach .p-icon .row-slide { transform: translateX(0); opacity: 1; }
.s-approach .p-icon .grow {
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
}
section.slide-in .s-approach .p-icon .grow { transform: scaleY(1); }
.s-approach .p-icon .pulse-dot {
  transform-box: fill-box;
  transform-origin: center;
}
section.slide-in .s-approach .p-icon .pulse-dot { animation: p-pulse 2.4s ease-in-out infinite; }
@keyframes p-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.6); opacity: .55; }
}
/* Stagger across the three cards (a3, a4, a5) */
.s-approach .card.anim.a3 .p-icon .pop,
.s-approach .card.anim.a3 .p-icon .draw,
.s-approach .card.anim.a3 .p-icon .row-slide,
.s-approach .card.anim.a3 .p-icon .grow { transition-delay: 380ms; }
.s-approach .card.anim.a4 .p-icon .pop,
.s-approach .card.anim.a4 .p-icon .draw,
.s-approach .card.anim.a4 .p-icon .row-slide,
.s-approach .card.anim.a4 .p-icon .grow { transition-delay: 520ms; }
.s-approach .card.anim.a5 .p-icon .pop,
.s-approach .card.anim.a5 .p-icon .draw,
.s-approach .card.anim.a5 .p-icon .row-slide,
.s-approach .card.anim.a5 .p-icon .grow { transition-delay: 660ms; }
.s-approach .card.anim.a3 .p-icon .row-slide.r2 { transition-delay: 480ms; }
.s-approach .card.anim.a3 .p-icon .row-slide.r3 { transition-delay: 580ms; }
.s-approach .card.anim.a4 .p-icon .row-slide.r2 { transition-delay: 620ms; }
.s-approach .card.anim.a4 .p-icon .row-slide.r3 { transition-delay: 720ms; }
.s-approach .card.anim.a5 .p-icon .row-slide.r2 { transition-delay: 760ms; }
.s-approach .card.anim.a5 .p-icon .row-slide.r3 { transition-delay: 860ms; }

.workflow-progress {
  border-top: 1px solid var(--line-2);
  padding-top: 16px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  color: var(--ink);
}
.workflow-progress-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.workflow-progress-label .status {
  color: var(--accent-2);
}
.workflow-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  min-height: 70px;
  transform-origin: center bottom;
}
section.slide-in .s-approach .workflow-rail {
  animation: workflow-settle 360ms cubic-bezier(.18,.78,.22,1) 60ms both;
}
.flow-node {
  --node-fill: transparent;
  --node-stroke: var(--line-2);
  appearance: none;
  border: 1.5px solid var(--node-stroke);
  background: var(--node-fill);
  color: var(--ink);
  min-width: 0;
  height: 100%;
  padding: 0 20px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font: inherit;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 160ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.flow-node:hover,
.flow-node:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent-2);
  box-shadow: 0 10px 24px rgba(66,66,66,0.12);
  outline: none;
}
.flow-node.is-current {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(66,66,66,0.12);
}
.flow-node.data,
.flow-node.prep,
.flow-node.models,
.flow-node.evidence,
.flow-node.api,
.flow-node.console { --node-fill: transparent; --node-stroke: var(--line-2); }
.node-kicker {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  flex: 0 0 auto;
}
.node-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.05;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.node-detail {
  display: none;
}
.flow-node.is-current .node-kicker,
.flow-node.is-current .node-title {
  color: #FFFFFF;
}
.workflow-progress .flow-node:not(.is-current) {
  background: transparent;
}
.workflow-progress .flow-node.is-current {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #FFFFFF;
}
.flow-link {
  display: none;
}
.flow-link::after {
  content: none;
}
@keyframes workflow-settle {
  0% { opacity: 0.78; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

.s-approach > .workflow-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transform: translateY(28px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease 60ms, transform 360ms cubic-bezier(.18,.78,.22,1) 40ms, visibility 0ms linear 360ms;
}
.s-approach:not(.is-compressed) > .workflow-progress {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.s-approach.is-compressed > .workflow-progress {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 40ms, 20ms, 0ms;
}
.s-approach > .workflow-progress .workflow-rail {
  min-height: 70px;
}
.s-approach > .workflow-progress .flow-node {
  min-height: 68px;
}

section[data-label="05 Pipeline"],
section[data-label="06 Models"],
section[data-label="07 Evaluation"],
section[data-label="08 Results"],
section[data-label="09 Architecture"],
section[data-label="10 Demo"],
section[data-label="11 Future"] {
  padding-bottom: 168px;
}
.workflow-progress--persistent {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 42px;
  z-index: 8;
  padding-top: 10px;
}
.workflow-progress--persistent .workflow-progress-label {
  display: none;
}
.workflow-progress--persistent .workflow-rail {
  min-height: 64px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.workflow-progress--persistent .flow-node {
  min-height: 60px;
  padding: 0 14px;
  gap: 9px;
  border-radius: 999px;
}
.workflow-progress--persistent .flow-node.is-current {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #FFFFFF;
}
.workflow-progress--persistent .node-kicker {
  font-size: 13px;
  letter-spacing: 0.10em;
}
.workflow-progress--persistent .node-title {
  font-size: 19px;
}
section[data-label="10 Demo"] .workflow-progress--persistent {
  border-top-color: rgba(255,255,255,0.32);
}
section[data-label="10 Demo"] .workflow-progress--persistent .flow-node {
  --node-fill: transparent;
  --node-stroke: rgba(255,255,255,0.34);
  color: #FFFFFF;
}
section[data-label="10 Demo"] .workflow-progress--persistent .node-kicker,
section[data-label="10 Demo"] .workflow-progress--persistent .node-title {
  color: #FFFFFF;
}
section[data-label="10 Demo"] .workflow-progress--persistent .flow-node.is-current {
  border-color: #FFFFFF;
  background: #FFFFFF;
  color: var(--accent-2);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}
section[data-label="10 Demo"] .workflow-progress--persistent .flow-node.is-current .node-kicker,
section[data-label="10 Demo"] .workflow-progress--persistent .flow-node.is-current .node-title {
  color: var(--accent-2);
}

/* Slide 4 — Methods / pipeline */
.s-methods {
  display: flex; flex-direction: column; height: 100%; gap: 56px;
}
.s-methods .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; }
.s-methods .pipe {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: stretch;
  flex: 1;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.s-methods .step {
  padding: 32px 28px;
  border-right: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.s-methods .step:last-child { border-right: none; }
.s-methods .step .num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--type-micro);
  color: var(--accent-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.s-methods .step h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 34px;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.s-methods .step p {
  font-size: 24px;
  color: var(--ink);
  margin: 0;
  line-height: 1.38;
}
.s-methods .step .tag {
  margin-top: auto;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink-2);
}

/* Slide 5 — Validation */
.s-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  height: 100%;
  align-items: stretch;
}
.s-results .left { display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.s-results .right { display: flex; flex-direction: column; gap: 0; justify-content: center; }
.s-results .metric-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-2);
  gap: 24px;
}
.s-results .metric-row.head {
  padding: 12px 0 14px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--type-micro);
  color: var(--ink-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
}
.s-results .metric-row .name {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
}
.s-results .metric-row .v {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  letter-spacing: 0;
  color: var(--ink);
}
.s-results .metric-row .v.accent { color: var(--accent-2); }
.s-results .metric-row .v.muted { color: var(--ink-2); font-size: 36px; font-family: var(--font-sans); font-style: normal; font-weight: 500; }
.s-results .legend {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink-2);
  margin-top: 16px;
}
.s-results .big {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 240px;
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--accent-2);
  margin: 0;
}
.s-results .big-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 42px;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 18ch;
  margin: 0;
}
.s-results .micro-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-2);
  letter-spacing: 0;
  text-transform: none;
}

/* Slide 6 — Demo (Ochre hero — brand "lead with ochre" moment) */
.s-demo {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  height: 100%;
  align-items: center;
  color: #FCEDE2;
}
.s-demo .demo-stage {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 44px;
}
.s-demo .eyebrow { color: #FCEDE2; }
.s-demo .demo-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 136px;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  color: #FFFFFF;
}
.s-demo .demo-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #FCEDE2;
  letter-spacing: 0;
}
.s-demo .pulse-row {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--type-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FCEDE2;
}
.pulse {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.55);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.55); }
  70% { box-shadow: 0 0 0 32px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.s-demo .check-list {
  display: flex; flex-direction: column; gap: 22px;
  font-family: var(--font-sans);
  font-size: 30px;
  color: #FCEDE2;
}
.s-demo .check-list .it {
  display: flex; gap: 20px; align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid rgba(252,237,226,0.32);
}
.s-demo .check-list .it:last-child { border-bottom: 1px solid rgba(252,237,226,0.32); }
.s-demo .check-list .it .n {
  font-family: var(--font-sans);
  font-weight: 600;
  color: #FFFFFF;
  font-size: var(--type-micro);
  letter-spacing: 0.16em;
  min-width: 56px;
}
.s-demo .check-list .it strong { color: #FFFFFF; font-weight: 600; }

/* Slide 7 — Limitations */
.s-limit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  height: 100%;
  align-items: center;
}
.s-limit .col-pair { display: flex; flex-direction: column; gap: 28px; }
.s-limit h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 56px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.s-limit h2 .lyon {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.s-limit .item {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line-2);
}
.s-limit .item .lab {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--type-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.s-limit .item p {
  margin: 0;
  font-size: 26px;
  color: var(--ink);
  line-height: 1.38;
}

/* Slide 8 — Team & Acks */
.s-team {
  display: flex; flex-direction: column; gap: 56px; height: 100%;
  justify-content: space-between;
}
.s-team .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 80px; }
.s-team .row-people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 40px;
}
.s-team .person {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.s-team .person .name {
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.s-team .person .role {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink-2);
  letter-spacing: 0;
  text-transform: none;
}
.s-team .acks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  font-family: var(--font-sans);
  font-size: 24px;
  color: var(--ink);
  letter-spacing: 0;
  border-top: 1px solid var(--line-2);
  padding-top: 24px;
  line-height: 1.42;
}
.s-team .acks strong { color: var(--accent-2); font-weight: 600; display: block; margin-bottom: 8px; letter-spacing: 0.14em; text-transform: uppercase; font-size: var(--type-micro); }

/* Thank you slide — final on-screen, ochre hero, names + invite to Q&A */
.s-thanks {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  gap: 56px;
}
.s-thanks .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; }
.s-thanks .top .meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  color: rgba(255,255,255,0.82);
  text-align: right;
  line-height: 1.35;
  max-width: 24ch;
  margin: 0;
}
.s-thanks .mid { display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.s-thanks .eyebrow {
  color: rgba(255,255,255,0.85);
}
.s-thanks h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 188px;
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin: 0;
  color: #FFFFFF;
  max-width: 18ch;
}
.s-thanks h1 .lyon {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #FCEDE2;
  letter-spacing: 0;
}
.s-thanks .lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 44px;
  color: #FCEDE2;
  line-height: 1.22;
  max-width: 34ch;
  margin: 0;
}
.s-thanks .foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  border-top: 1px solid rgba(252,237,226,0.32);
  padding-top: 28px;
}
.s-thanks .foot .team-block { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; max-width: 60%; }
.s-thanks .foot .team-mark {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--type-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.s-thanks .foot .team-mark strong { color: #FCEDE2; font-weight: 600; }
.s-thanks .foot .team-names {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: #FCEDE2;
  letter-spacing: 0;
  line-height: 1.35;
}
.s-thanks .foot .meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: #FCEDE2;
  text-align: right;
  line-height: 1.35;
  max-width: 24ch;
  margin: 0;
}

/* References — shared layout for the 4 appendix slides */
.s-refs { display: flex; flex-direction: column; height: 100%; gap: 24px; justify-content: flex-start; }
.s-refs .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; border-bottom: 1px solid var(--line-2); padding-bottom: 20px; }
.s-refs .head .col { display: flex; flex-direction: column; gap: 10px; }
.s-refs .head .slide-tag {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.s-refs .head h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 60px;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
}
.s-refs .head h2 .lyon {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.s-refs .ref-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink-2);
  max-width: 28ch;
  text-align: right;
  line-height: 1.4;
  margin: 0;
}
.s-refs .ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.s-refs .ref-list li {
  display: block;
  border-top: 0;
  padding-top: 0;
}
.s-refs .ref-list li .ref-body {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.28;
  text-indent: -1.25em;
  padding-left: 1.25em;
}
.s-refs .ref-list li .ref-body strong { font-weight: 600; color: var(--ink); }
.s-refs .ref-list li .ref-body em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
}
.s-refs .ref-list li .ref-body a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  word-break: break-all;
}
.s-refs .footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 20px;
  color: var(--ink-2);
  letter-spacing: 0;
}
.s-refs .footer strong { font-weight: 600; color: var(--ink); }

/* Slide 19 — Acknowledgements (card grids for team + thanks) */
.s-acks { display: flex; flex-direction: column; height: 100%; gap: 28px; }
.s-acks .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; border-bottom: 1px solid var(--line-2); padding-bottom: 18px; }
.s-acks .head .col { display: flex; flex-direction: column; gap: 10px; }
.s-acks .head .slide-tag {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.s-acks .head h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 64px;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
}
.s-acks .head h2 .lyon {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.s-acks .head .meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink-2);
  text-align: right;
  line-height: 1.4;
  max-width: 28ch;
  margin: 0;
}
/* Two-panel split — team (left) vs acknowledgements (right) */
.s-acks .split {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: 40px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.s-acks .panel { display: flex; flex-direction: column; gap: 18px; min-height: 0; height: 100%; }
.s-acks .panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 12px;
}
.s-acks .panel-head .lab {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.s-acks .panel-head .sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
}
.s-acks .team-box,
.s-acks .ack-box {
  background: #FFFFFF;
  border: 2px solid var(--accent-2);
  box-shadow: 0 0 0 8px var(--accent-soft);
}
.s-acks .team-box {
  padding: 22px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  height: 100%;
  box-sizing: border-box;
}
.s-acks .box-head {
  padding-bottom: 15px;
  margin-bottom: 2px;
  border-bottom: 2px solid var(--accent-2);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}
.s-acks .box-head .lab {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.s-acks .box-head .sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
}
.s-acks .member-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.s-acks .box-head + .member-row { border-top: 0; }
.s-acks .member-row:last-child { padding-bottom: 0; }
.s-acks .member-name {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.04;
}
.s-acks .member-email,
.s-acks .member-address {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.s-acks .ack-panel {
  display: flex;
  flex-direction: column;
  gap: 64px;
  height: 100%;
}
.s-acks .ack-box {
  padding: 28px 30px;
  box-sizing: border-box;
}
.s-acks .supervisor-thanks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.s-acks .ack-box .lab {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.s-acks .supervisors {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
}
.s-acks .thanks-copy {
  font-family: var(--font-serif);
  font-size: 25px;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.34;
  margin: 0;
}
.s-acks .broader-thanks {
  flex: 1;
}
.s-acks .broader-thanks ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.s-acks .broader-thanks li {
  font-family: var(--font-sans);
  font-size: 23px;
  color: var(--ink);
  line-height: 1.34;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.s-acks .broader-thanks li:first-child {
  padding-top: 0;
  border-top: 0;
  margin: 0;
}

/* Removed: corner slide-number watermark and brand-corner per request */

/* Slide 2 — gap list */
.gap-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 32ch;
}
.gap-list li {
  font-family: var(--font-sans);
  font-size: 26px;
  color: var(--ink);
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
  line-height: 1.32;
}
.gap-list li:last-child { border-bottom: 1px solid var(--line-2); }
.gap-list .lab {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--type-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: block;
  margin-bottom: 5px;
}
.gap-list .desc {
  display: block;
}

/* Slide 3 — multidisciplinary chip row */
.multi-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 4px;
}
.multi-row .multi-eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--type-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-right: 8px;
}
.multi-row .chip {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Slide 05 — Multidisciplinary (own slide, lifted from Approach footer) */
.s-multi { display: flex; flex-direction: column; height: 100%; gap: 44px; justify-content: center; }
.s-multi .head { display: flex; flex-direction: column; gap: 14px; max-width: 36ch; }
.s-multi .grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: stretch;
}
.s-multi .d-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  padding: 30px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
}
.s-multi .d-card .lab {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.s-multi .d-card h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.s-multi .d-card h4 .lyon {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.s-multi .d-card p {
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.s-multi .d-card .tag {
  margin-top: auto;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
  line-height: 1.35;
}

/* Slide 5 — flow + deploy */
.s-results .left {
  gap: 24px;
}
.s-results .flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.s-results .flow-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px;
  border: 1px solid var(--line-2);
  background: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.s-results .flow-step.accent {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}
.s-results .flow-step.accent .flow-num { color: rgba(255,255,255,0.78); }
.s-results .flow-num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
}
.s-results .flow-arrow {
  align-self: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 32px;
  color: var(--ink-2);
}
.s-results .deploy {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
  max-width: 38ch;
}
.s-results .deploy strong {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  color: var(--accent-2);
  font-size: var(--type-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: 8px;
}

/* ===== Slides added for expanded timing plan ===== */

/* Data collection */
.s-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  height: 100%;
  align-items: center;
}
.s-data .col-pair { display: flex; flex-direction: column; gap: 28px; }
.s-data .prep-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 8px;
}
.s-data .prep-row .chip {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
}
.s-data .data-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.s-data .data-card {
  border-top: 2px solid var(--ink);
  padding: 22px 0 0;
  display: flex; flex-direction: column; gap: 4px;
}
.s-data .data-card .num {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 88px;
  line-height: 1;
  color: var(--accent-2);
  letter-spacing: -0.03em;
}
.s-data .data-card .num .katex {
  font-size: 0.9em;
}
.s-data .data-card .num .unit {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  color: var(--ink);
  margin-left: 8px;
}
.s-data .data-card .lab {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  margin-top: 10px;
  line-height: 1.32;
}

/* Candidate models */
.s-models { display: flex; flex-direction: column; height: 100%; gap: 28px; min-height: 0; }
.s-models .head { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.s-models .grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  flex: 1;
}
/* 2x2 variant for the candidate models slide */
.s-models .grid2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  flex: 1;
  min-height: 0;
}
.s-models .grid2x2 .m-card { padding: 24px 28px; gap: 12px; min-height: 0; }
.s-models .grid2x2 .m-card h4 { font-size: 38px; }
.s-models .grid2x2 .m-card p { font-size: 24px; }
.s-models .grid2x2 .m-diagram { height: 130px; margin-bottom: 4px; }
.s-models .grid2x2 .m-card .tag { font-size: 22px; letter-spacing: 0.12em; }
.s-models .m-card {
  border: 1px solid var(--line-2);
  background: #FFFFFF;
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.s-models .m-card.winner {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.s-models .m-card .badge {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.s-models .m-card.winner .badge { color: #FFFFFF; }
.s-models .m-card h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 38px;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.s-models .m-card.winner h4 { color: #FFFFFF; }
.s-models .m-card p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.35;
}
.s-models .m-card.winner p { color: #FCEDE2; }
.s-models .m-card .tag {
  margin-top: auto;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.s-models .m-card.winner .tag { color: #FFFFFF; }
.s-models .metrics-row {
  display: flex;
  gap: 14px 24px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 26px;
  color: var(--ink);
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.s-models .metrics-row .label {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-right: 8px;
}

/* Slide 07 — Evaluation (sandstone, four metric cards) */
.s-eval { display: flex; flex-direction: column; height: 100%; gap: 44px; justify-content: center; }
.s-eval .head { display: flex; flex-direction: column; gap: 14px; max-width: none; }
.s-eval .head .title {
  font-size: 60px;
  white-space: nowrap;
}
.s-eval .head .subtitle {
  font-size: 34px;
  white-space: nowrap;
  max-width: none;
}
.s-eval .grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: stretch;
}
.s-eval .e-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-2);
  padding: 28px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
}
.s-eval .e-icon {
  width: 72px;
  height: 72px;
  display: block;
  margin-bottom: 4px;
}
.s-eval .e-icon svg { width: 100%; height: 100%; overflow: visible; display: block; }
/* Icon strokes — accessible ochre, charcoal accents */
.s-eval .e-icon .ink-stroke { stroke: var(--ink); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.s-eval .e-icon .acc-stroke { stroke: var(--accent-2); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.s-eval .e-icon .acc-fill   { fill: var(--accent-2); stroke: none; }
.s-eval .e-icon .ink-fill   { fill: var(--ink); stroke: none; }
/* Entrance choreography — match model-diagram timing curves */
.s-eval .e-icon .pop {
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .40s ease, transform .40s cubic-bezier(.3, 1.4, .5, 1);
}
section.slide-in .s-eval .e-icon .pop { opacity: 1; transform: scale(1); }
.s-eval .e-icon .draw {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 1.1s cubic-bezier(.2,.7,.2,1);
}
section.slide-in .s-eval .e-icon .draw { stroke-dashoffset: 0; }
.s-eval .e-icon .swing {
  transform-box: view-box;
  transform-origin: 36px 18px;
  transform: rotate(0deg);
  transition: transform 1.2s cubic-bezier(.45,.05,.55,.95);
}
section.slide-in .s-eval .e-icon .swing { animation: e-swing 2.6s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes e-swing {
  0%   { transform: rotate(-12deg); }
  50%  { transform: rotate(12deg); }
  100% { transform: rotate(-12deg); }
}
.s-eval .e-icon .spin {
  transform-box: fill-box;
  transform-origin: center;
}
section.slide-in .s-eval .e-icon .spin { animation: e-spin 8s linear infinite; }
@keyframes e-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.s-eval .e-icon .tick {
  transform-box: view-box;
  transform-origin: 36px 40px;
}
section.slide-in .s-eval .e-icon .tick { animation: e-tick 1.6s steps(12) infinite; }
@keyframes e-tick {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.s-eval .e-icon .bolt-flash {
  opacity: 0;
  transition: opacity .25s ease;
}
section.slide-in .s-eval .e-icon .bolt-flash { animation: e-flash 1.6s ease-in-out infinite; }
@keyframes e-flash {
  0%, 60%, 100% { opacity: 0; }
  10%, 30%      { opacity: 1; }
}
/* Per-icon entrance delays (matches a3/a4/a5/a6 cadence) */
.s-eval .e-card.anim.a3 .e-icon .pop,
.s-eval .e-card.anim.a3 .e-icon .draw { transition-delay: 360ms; }
.s-eval .e-card.anim.a4 .e-icon .pop,
.s-eval .e-card.anim.a4 .e-icon .draw { transition-delay: 480ms; }
.s-eval .e-card.anim.a5 .e-icon .pop,
.s-eval .e-card.anim.a5 .e-icon .draw { transition-delay: 600ms; }
.s-eval .e-card.anim.a6 .e-icon .pop,
.s-eval .e-card.anim.a6 .e-icon .draw { transition-delay: 720ms; }
.s-eval .e-card .idx {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.s-eval .e-card h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  min-height: 42px;
  display: flex;
  align-items: center;
}
.s-eval .e-card h4 .katex {
  font-size: 0.94em;
  line-height: 1;
  vertical-align: baseline;
}
.s-eval .e-card h4 .lyon {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.s-eval .e-card p {
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.s-eval .e-card .why {
  margin-top: auto;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-2);
  line-height: 1.35;
}
.s-eval .rule-row {
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 24px;
  color: var(--ink);
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.s-eval .rule-row .label {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-right: 4px;
}
.s-eval .rule-row .rule-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  color: var(--ink);
}

/* Model diagrams */
.m-diagram {
  height: 122px;
  margin-bottom: 4px;
  display: flex;
  align-items: stretch;
}
.m-diagram svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
/* default stroke / fill colours — overridden on the winner card */
.m-diag .axis { stroke: var(--line-2); stroke-width: 1; fill: none; }
.m-diag .tree-stroke { stroke: var(--ink); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.m-diag .dot { fill: var(--ink); }
.m-diag .dot-acc { fill: var(--accent-2); }
.m-diag .draw {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.m-diag .threshold {
  stroke: var(--ink-2);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  fill: none;
}
.m-diag .margin-line {
  stroke: var(--ink-2);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  fill: none;
}
.m-diag .hyperplane {
  stroke: var(--accent-2);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
}
.m-diag .bar { fill: var(--accent-2); }
.m-diag .bar.muted { fill: var(--line-2); }
.m-diag .vote {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  fill: var(--accent-2);
}
.m-diag .vote-final {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  fill: var(--accent-2);
}
.m-diag .resid-line { stroke: var(--line-2); stroke-width: 1; fill: none; }

/* Winner card recolours: high-contrast on ochre */
.m-card.winner .m-diag .axis { stroke: rgba(255,255,255,0.32); }
.m-card.winner .m-diag .tree-stroke { stroke: #FFFFFF; }
.m-card.winner .m-diag .dot { fill: #FFFFFF; }
.m-card.winner .m-diag .dot-acc { fill: #FCEDE2; }
.m-card.winner .m-diag .draw { stroke: #FFFFFF; }
.m-card.winner .m-diag .threshold { stroke: rgba(255,255,255,0.55); }
.m-card.winner .m-diag .margin-line { stroke: rgba(255,255,255,0.55); }
.m-card.winner .m-diag .hyperplane { stroke: #FFFFFF; }
.m-card.winner .m-diag .bar { fill: #FFFFFF; }
.m-card.winner .m-diag .bar.muted { fill: rgba(255,255,255,0.32); }
.m-card.winner .m-diag .vote,
.m-card.winner .m-diag .vote-final { fill: #FFFFFF; }
.m-card.winner .m-diag .resid-line { stroke: rgba(255,255,255,0.3); }

/* Entrance choreography — runs only when the slide is active. */
.m-diag .pop {
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .35s ease, transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
section.slide-in .m-diag .pop { opacity: 1; transform: scale(1); }

.m-diag .grow-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1);
}
section.slide-in .m-diag .grow-line { stroke-dashoffset: 0; }

.m-diag .grow-bar {
  transform: scaleX(0);
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
section.slide-in .m-diag .grow-bar { transform: scaleX(1); }

.m-diag .fade-in {
  opacity: 0;
  transition: opacity .45s ease;
}
section.slide-in .m-diag .fade-in { opacity: 1; }

/* Stagger helpers */
.m-diag .d1 { transition-delay: 0.20s; }
.m-diag .d2 { transition-delay: 0.30s; }
.m-diag .d3 { transition-delay: 0.40s; }
.m-diag .d4 { transition-delay: 0.50s; }
.m-diag .d5 { transition-delay: 0.60s; }
.m-diag .d6 { transition-delay: 0.70s; }
.m-diag .d7 { transition-delay: 0.80s; }
.m-diag .d8 { transition-delay: 0.90s; }
.m-diag .d9 { transition-delay: 1.00s; }
.m-diag .d10 { transition-delay: 1.10s; }
.m-diag .d11 { transition-delay: 1.20s; }
.m-diag .d12 { transition-delay: 1.30s; }

/* Final architecture (centered big flow) */
.s-arch { display: flex; flex-direction: column; height: 100%; gap: 48px; justify-content: center; }
.s-arch .head { display: flex; flex-direction: column; gap: 14px; }
.s-arch .big-flow {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.s-arch .big-flow .step {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--line-2);
  background: #FFFFFF;
  padding: 32px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.s-arch .big-flow .step.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.s-arch .big-flow .num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.16em;
  color: var(--accent-2);
}
.s-arch .big-flow .step.accent .num { color: rgba(255,255,255,0.85); }
.s-arch .big-flow h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.s-arch .big-flow .step.accent h4 { color: #FFFFFF; }
.s-arch .big-flow p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink-2);
  line-height: 1.34;
}
.s-arch .big-flow .step.accent p { color: #FCEDE2; }
.s-arch .legend {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink-2);
  margin: 0;
}

/* Results — big numbers */
.s-headlines { display: flex; flex-direction: column; height: 100%; gap: 40px; justify-content: center; }
.s-headlines .head { display: flex; flex-direction: column; gap: 12px; }
.s-headlines .row3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.s-headlines .big-card {
  border-top: 2px solid var(--ink);
  padding: 24px 0 0;
  display: flex; flex-direction: column; gap: 14px;
}
.s-headlines .big-card .label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
/* Bar chart above the headline number — 4 metrics from the repo */
.s-headlines .bar-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 4px;
}
.s-headlines .bar-chart .bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  align-items: center;
  column-gap: 12px;
}
.s-headlines .bar-chart .bar-row .name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.s-headlines .bar-chart .bar-row .track {
  position: relative;
  height: 14px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.s-headlines .bar-chart .bar-row .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--val, 0%);
  background: var(--ink);
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.s-headlines .bar-chart .bar-row.is-headline .fill { background: var(--accent-2); }
section.slide-in .s-headlines .bar-chart .bar-row .fill { transform: scaleX(1); }
.s-headlines .bar-chart .bar-row.r1 .fill { transition-delay: 200ms; }
.s-headlines .bar-chart .bar-row.r2 .fill { transition-delay: 320ms; }
.s-headlines .bar-chart .bar-row.r3 .fill { transition-delay: 440ms; }
.s-headlines .bar-chart .bar-row.r4 .fill { transition-delay: 560ms; }
.s-headlines .bar-chart .bar-row .val {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  text-align: right;
  letter-spacing: 0.02em;
}
.s-headlines .bar-chart .bar-row.is-headline .val { color: var(--accent-2); font-weight: 600; }
.s-headlines .big-card .auc {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 132px;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--accent-2);
  margin: 4px 0 0 0;
}
.s-headlines .big-card .auc-suffix {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin-left: 10px;
}
.s-headlines .big-card .sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.s-headlines .big-card .sub > span { display: block; }
.s-headlines .big-card .sub .src {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 18px;
  color: var(--muted);
}
.s-headlines .footnote {
  display: flex; align-items: baseline; gap: 28px;
  font-family: var(--font-sans);
  font-size: 26px;
  color: var(--ink);
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.s-headlines .footnote strong {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* Deployment */
.s-deploy { display: flex; flex-direction: column; height: 100%; gap: 40px; justify-content: center; }
.s-deploy .head { display: flex; flex-direction: column; gap: 14px; }
.s-deploy .arch {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.s-deploy .block {
  border: 1px solid var(--line-2);
  background: #FFFFFF;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
}
.s-deploy .block .badge {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.s-deploy .block h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.s-deploy .block p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink-2);
  line-height: 1.4;
}
.s-deploy .block .stack {
  margin-top: auto;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
}
.s-deploy .flow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}
.s-deploy .flow-row .step {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
}
.s-deploy .flow-row .step.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.s-deploy .flow-row .arrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  color: var(--ink-2);
}

/* Random Forest deep-dive */
.s-rf {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  height: 100%;
  align-items: center;
}
.s-rf .rf-stage {
  background: #FFFFFF;
  border: 1px solid var(--line-2);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.s-rf .rf-diagram {
  width: 100%;
  height: 500px;
}
.s-rf .rf-diagram svg { width: 100%; height: 100%; display: block; overflow: visible; }
.s-rf .rf-cap {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.35;
}
.s-rf .rf-copy { display: flex; flex-direction: column; gap: 22px; }
.s-rf .rf-copy h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 76px;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
}
.s-rf .rf-copy h2 .lyon {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.s-rf .rf-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.s-rf .rf-points li {
  padding: 18px 0;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.s-rf .rf-points li:last-child { border-bottom: 1px solid var(--line-2); }
.s-rf .rf-points .lab {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.s-rf .rf-points p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 26px;
  color: var(--ink);
  line-height: 1.38;
}

/* Larger diagram styling (re-use .m-diag classes) */
.s-rf .rf-diagram .tree-stroke { stroke-width: 1.8; }
.s-rf .rf-diagram .vote { font-size: 22px; }
.s-rf .rf-diagram .vote-final {
  font-size: 22px;
  font-weight: 600;
  fill: var(--accent-2);
}
.s-rf .m-diag-rf .rf-lane-bg {
  fill: #FFFFFF;
  stroke: var(--line-2);
  stroke-width: 1.2;
}
.s-rf .m-diag-rf .rf-tree-label,
.s-rf .m-diag-rf .rf-stage-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--muted);
}
.s-rf .m-diag-rf .rf-stage-label {
  fill: var(--accent-2);
  font-size: 18px;
}
.s-rf .m-diag-rf .rf-vote-chip {
  fill: var(--accent-2);
  stroke: none;
}
.s-rf .m-diag-rf .rf-vote-chip.muted { fill: var(--ink-2); }
.s-rf .m-diag-rf .rf-vote-chip-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  fill: #FFFFFF;
}
.s-rf .m-diag-rf .rf-arrow {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: 0.85;
}
.s-rf .m-diag-rf .rf-aggregate-band {
  fill: #FFFFFF;
  stroke: var(--accent-2);
  stroke-width: 1.4;
}
.s-rf .m-diag-rf .rf-token {
  fill: var(--accent-2);
}
.s-rf .m-diag-rf .rf-token.muted { fill: var(--ink-2); }
.s-rf .m-diag-rf .rf-token-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  fill: #FFFFFF;
}
.s-rf .m-diag-rf .rf-vote-prediction { font-size: 20px; }
.s-rf .m-diag-rf .d1 { transition-delay: 0.10s; }
.s-rf .m-diag-rf .d2 { transition-delay: 0.24s; }
.s-rf .m-diag-rf .d3 { transition-delay: 0.40s; }
.s-rf .m-diag-rf .d4 { transition-delay: 0.58s; }
.s-rf .m-diag-rf .d5 { transition-delay: 0.80s; }
.s-rf .m-diag-rf .d6 { transition-delay: 1.02s; }
.s-rf .m-diag-rf .d7 { transition-delay: 1.24s; }
.s-rf .m-diag-rf .d8 { transition-delay: 1.52s; }
.s-rf .m-diag-rf .d9 { transition-delay: 1.74s; }
.s-rf .m-diag-rf .d10 { transition-delay: 1.94s; }
.s-rf .m-diag-rf .d11 { transition-delay: 2.14s; }
.s-rf .m-diag-rf .d12 { transition-delay: 2.34s; }

/* ------------------------------------------------------------------ */
/* Slide 02 — Background (merged Context + Gaps, static vertical evidence) */
/* ------------------------------------------------------------------ */
.s-bg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  height: 100%;
  align-items: stretch;
}
.s-bg .bg-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line-2);
  border-top: 4px solid var(--accent-2);
  padding: 36px 40px 38px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  min-height: 0;
}
.s-bg .bg-card .eyebrow { color: var(--accent-2); }
.s-bg .bg-card h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 58px;
  letter-spacing: -0.018em;
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
  max-width: 16ch;
  min-height: 122px;
}
.s-bg .bg-card h2 .title-line {
  display: block;
  white-space: nowrap;
}
.s-bg .bg-card h2 .lyon {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.s-bg .bg-card .more {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(66,66,66,0.18);
  padding-top: 18px;
}
.s-bg .bg-card .stat-row,
.s-bg .bg-card .gap-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.s-bg .bg-card .stat,
.s-bg .bg-card .gap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.s-bg .bg-card .stat .num,
.s-bg .bg-card .gap .tag {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 40px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  line-height: 1.06;
  margin: 0;
}
.s-bg .bg-card .stat .num .katex {
  font-size: 1em;
}
.s-bg .bg-card .stat .lab,
.s-bg .bg-card .gap .text {
  font-family: var(--font-sans);
  font-size: 24px;
  color: var(--ink);
  line-height: 1.32;
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* Slide 05 — Pipeline · how each MODEL STAGE is done                 */
/* (3 columns: M1 Diagnosis · M2 Flare risk · M3 Treatment response)  */
/* ------------------------------------------------------------------ */
.s-pipe {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 28px;
}
.s-pipe .head { display: flex; flex-direction: column; gap: 14px; }
.s-pipe .stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  flex: 1;
  min-height: 0;
}
.s-pipe .stage-col {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent-2);
  padding: 26px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-height: 0;
}
.s-pipe .stage-col .badge {
  position: absolute;
  top: -16px;
  left: 24px;
  background: var(--accent-2);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
}
.s-pipe .stage-col h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 4px 0 0;
  color: var(--ink);
}
.s-pipe .stage-col h3 .lyon {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.s-pipe .stage-col .prompt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
  line-height: 1.32;
  margin: 0 0 4px 0;
}
.s-pipe .flow-mini {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.s-pipe .flow-mini .step {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.36;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, transform 180ms ease;
}
.s-pipe .flow-mini .step:last-child { border-bottom: 1px solid var(--line); }
.s-pipe .flow-mini .step .lab {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.s-pipe .flow-mini .step strong { font-weight: 600; color: var(--ink); }
.s-pipe.is-workflow-focused .flow-mini .step {
  opacity: 0.48;
}
.s-pipe.is-workflow-focused .flow-mini .step.is-workflow-focus {
  background: #FFFFFF;
  border-color: var(--accent-2);
  box-shadow: 0 10px 24px rgba(66,66,66,0.10);
  opacity: 1;
  transform: translateY(-2px);
}
.s-pipe.is-workflow-focused .flow-mini .step.is-workflow-focus .lab {
  color: var(--accent-2);
}
.s-pipe .flow-mini .step.accent {
  background: var(--accent-soft);
  margin: 6px -10px 0;
  padding: 14px 10px;
  border-top: 1px solid var(--line);
  border-radius: 2px;
}
.s-pipe .flow-mini .step.accent .lab { color: var(--accent-2); }
.s-pipe .flow-mini .step.accent strong { color: var(--accent-2); }
.s-pipe .legend {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 0;
}
.s-pipe .legend strong {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--accent-2);
  margin-right: 12px;
}

/* ------------------------------------------------------------------ */
/* Slide 05 — Stage-card clickable affordance + pop-up modal          */
/* ------------------------------------------------------------------ */
.s-pipe .stage-col[data-modal-target] {
  cursor: pointer;
  transition: box-shadow .35s ease, transform .35s ease, border-color .25s ease;
}
.s-pipe .stage-col[data-modal-target]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(206,61,32,0.10);
  border-color: var(--accent-2);
}
.s-pipe .stage-col[data-modal-target]:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 4px;
}
.s-pipe .stage-col .open-hint {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.s-pipe .stage-col .open-hint .arr {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-2);
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.s-pipe .stage-col[data-modal-target]:hover .open-hint .arr {
  background: var(--accent-2);
  color: #FFFFFF;
  transform: translateX(2px);
}

/* Pop-up modal — absolutely positioned inside the slide section so it
   scales with the deck-stage transform. */
.pipe-modal {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.pipe-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.pipe-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,20,20,0.45);
  cursor: pointer;
}
.pipe-modal .modal-panel {
  position: relative;
  background: #FFFFFF;
  border-top: 6px solid var(--accent-2);
  width: 100%;
  max-width: 1640px;
  max-height: 100%;
  padding: 56px 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
  transform: translateY(28px) scale(0.96);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  overflow: auto;
}
.pipe-modal[aria-hidden="false"] .modal-panel {
  transform: translateY(0) scale(1);
}
.pipe-modal .modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.pipe-modal .modal-head .titling { display: flex; flex-direction: column; gap: 8px; }
.pipe-modal .modal-head .badge {
  align-self: flex-start;
  background: var(--accent-2);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
}
.pipe-modal .modal-head h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 52px;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 6px 0 0;
  color: var(--ink);
}
.pipe-modal .modal-head h3 .lyon {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.pipe-modal .modal-head .sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink-2);
  line-height: 1.32;
  margin: 0;
  max-width: 46ch;
}
.pipe-modal .modal-close {
  appearance: none;
  background: transparent;
  border: 1.5px solid var(--ink);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pipe-modal .modal-close:hover {
  background: var(--ink);
  color: #FFFFFF;
}
.pipe-modal .modal-foot {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
  border-top: 1px solid var(--line-2);
  padding-top: 18px;
  margin: 0;
}
.pipe-modal .modal-foot strong {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 17px;
  color: var(--accent-2);
  margin-right: 12px;
}

/* Horizontal 6-stage flow inside the modal (revives the original design) */
.pipe-modal .flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  position: relative;
}
.pipe-modal .flow::before {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  top: 22px;
  height: 2px;
  background: var(--accent-2);
  opacity: 0.18;
  z-index: 0;
}
.pipe-modal .flow .stage {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.pipe-modal .flow .stage .node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  margin: -42px 0 4px 0;
  align-self: flex-start;
  box-shadow: 0 0 0 6px #FFFFFF;
}
.pipe-modal .flow .stage[data-step="datasets"] .node,
.pipe-modal .flow .stage[data-step="deploy"]   .node {
  background: var(--ink);
}
.pipe-modal .flow .stage .tag {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.pipe-modal .flow .stage h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.pipe-modal .flow .stage h4 .lyon {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.pipe-modal .flow .stage p.what {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.36;
  margin: 0;
}
.pipe-modal .flow .stage .how {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.32;
}
.pipe-modal .flow .stage .how strong {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
