/* ============================================================
   Knicks in 5 — programming talk deck
   New York Knicks palette · Oswald / Inter / JetBrains Mono.
   Fixed 1280×720 stage scaled to any screen for projection.
   Engine behavior adapted from the agentic-vc reference deck;
   design is original.
   ============================================================ */

:root {
  /* ---- Knicks palette ---- */
  --knicks-blue: #006BB6;   /* primary brand blue */
  --blue-deep:   #1D428A;   /* heading ink-blue */
  --blue-wash:   #e7eef7;   /* faint blue panel tint */
  --orange:      #F58426;   /* accent */
  --orange-deep: #E1640E;   /* accent deep / hover */
  --orange-wash: #fcefe1;   /* accent tint */
  --silver:      #BEC0C2;   /* hairline / muted chrome */
  --ink:         #15233b;   /* body text, near-navy */
  --ink-soft:    #4a5670;   /* secondary text */
  --ink-faint:   #8b93a6;   /* tertiary / muted */
  --paper:       #f7f8fa;   /* slide background */
  --paper-2:     #eef1f6;   /* faint panel */
  --rule:        #d9dee8;   /* hairlines */
  --court:       #0b1b33;   /* dark editor/code panel */
  --court-2:     #0f2742;   /* dark editor toolbar */
  --court-line:  #1c3357;   /* dark panel hairline */
  --backdrop:    #0a1526;   /* letterbox around stage */
  --code-text:   #dce6f5;   /* code base text on dark */

  /* code token colors (on dark court) */
  --tok-comment: #6f86a8;
  --tok-string:  #f5b27a;   /* warm orange-tint */
  --tok-keyword: #6fb7ff;   /* knicks-blue tint, bright */
  --tok-number:  #9ad5b0;
  --tok-fn:      #ffd089;

  /* ---- type ---- */
  --display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --pad: 88px;
}

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

html, body {
  height: 100%;
  background: var(--backdrop);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

#app { position: fixed; inset: 0; display: grid; place-items: center; }

/* ---------- scaling stage ---------- */
#stage {
  position: relative;
  width: 1280px;
  height: 720px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  transform-origin: center center;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.7);
  background-image:
    radial-gradient(110% 80% at 100% 0%, rgba(0,107,182,.06), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(245,132,38,.05), transparent 60%);
}
/* thin Knicks blue/orange court line across the top of the stage */
#stage::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--knicks-blue) 0 70%, var(--orange) 70% 100%);
  z-index: 6;
}

/* ---------- chrome ---------- */
.chrome {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  z-index: 5;
}
.chrome--top {
  top: 38px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.chrome--top .run-head { justify-self: start; }
.chrome--top .counter { justify-self: end; }
.run-eyebrow {
  justify-self: center;
  text-align: center;
  color: var(--orange-deep);
  font-weight: 600;
}
.chrome--bottom { bottom: 30px; gap: 26px; }
.run-head { color: var(--knicks-blue); }
.counter { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.counter b { color: var(--orange); font-weight: 700; }

.brand { white-space: nowrap; font-weight: 600; }
.brand--right { text-align: right; }
.progress {
  flex: 1; height: 3px;
  background: var(--rule);
  position: relative; overflow: hidden; border-radius: 2px;
}
.progress__bar {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, var(--knicks-blue), var(--orange));
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}

/* ---------- "Knicks in 5" footer overlay (every slide) ---------- */
.footer-overlay {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 8;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: .8;
  pointer-events: none;
  user-select: none;
}
.footer-overlay .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}

/* ---------- slides ---------- */
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  padding: calc(var(--pad) + 22px) var(--pad) calc(var(--pad) - 2px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease;
}
.slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

/* staggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.75,.2,1);
  transition-delay: calc(var(--ri, 0) * 70ms);
}
.is-active .reveal { opacity: 1; transform: none; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 22px;
}
.headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: .002em;
  color: var(--blue-deep);
  text-transform: uppercase;
  max-width: 20ch;
}
.headline--wide { max-width: none; }
.headline em, .display em, .statement em {
  font-style: normal;
  color: var(--orange);
}
.lead {
  font-size: 25px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-top: 22px;
  max-width: 42ch;
}
.body-lg {
  font-size: 23px;
  line-height: 1.5;
  margin-top: 18px;
  max-width: 40ch;
  color: var(--ink);
}
.body-lg strong { font-weight: 600; color: var(--blue-deep); }
.muted { color: var(--ink-faint); }

.punch {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: 26px;
  line-height: 1.2;
  margin-top: 30px;
  color: var(--blue-deep);
  max-width: 30ch;
}
.punch em { font-style: normal; color: var(--orange); }
.punch--center { max-width: none; text-align: center; align-self: center; margin-top: 32px; }

/* ---------- title slides ---------- */
.slide--title { justify-content: center; }
.title-block { max-width: 1000px; }
.kicker {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--orange-deep);
  margin-bottom: 18px;
}
.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: 150px;
  line-height: .92;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--knicks-blue);
}
.display .five {
  color: var(--orange);
  -webkit-text-stroke: 0;
}
.title-sub {
  font-family: var(--sans);
  font-size: 27px;
  line-height: 1.35;
  color: var(--ink-soft);
  margin-top: 26px;
  max-width: 34ch;
}
.title-sub em { font-style: normal; color: var(--blue-deep); font-weight: 600; }
.title-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
  margin-top: 34px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.title-meta .dot { color: var(--orange); }
.meta-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.meta-link:hover {
  color: var(--orange);
  text-decoration-color: var(--orange-deep);
}
.title-spine {
  position: absolute;
  bottom: 64px;
  right: var(--pad);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- demo divider slide ---------- */
.slide--demo { justify-content: center; align-items: center; }
.demo-word {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 220px;
  line-height: 1;
  color: var(--orange);
}

/* ---------- statement slides ---------- */
.slide--statement { justify-content: center; }
.statement {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: .004em;
  color: var(--blue-deep);
  max-width: none;
  margin-top: 6px;
}
.statement--sm { font-size: 44px; max-width: 26ch; }
.attribution {
  font-family: var(--sans);
  font-size: 20px;
  color: var(--ink-faint);
  margin-top: 30px;
  letter-spacing: .02em;
}
.attribution em { font-style: normal; color: var(--orange-deep); font-weight: 600; }

/* ---------- scoreboard / stat strip ---------- */
.scoreboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
  max-width: 920px;
}
.scoreboard.scoreboard--3 { grid-template-columns: repeat(3, 1fr); max-width: 720px; }
.stat {
  background: var(--blue-deep);
  border-radius: 8px;
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.stat::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0; height: 4px; width: 100%;
  background: var(--orange);
}
.stat__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.stat__label {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 14px;
  color: #cdd9ef;
  margin-top: 10px;
}

/* ---------- lists ---------- */
.checklist, .steps { list-style: none; margin-top: 26px; }
.checklist li {
  font-size: 23px;
  line-height: 1.3;
  padding: 13px 0 13px 44px;
  position: relative;
  max-width: 42ch;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 6px; top: 20px;
  width: 16px; height: 9px;
  border-left: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg);
}
.checklist li em { font-style: normal; color: var(--knicks-blue); font-weight: 600; }
.checklist li .muted { color: var(--ink-faint); }

.steps { counter-reset: step; margin-top: 22px; }
.steps li {
  font-size: 24px;
  line-height: 1.3;
  padding: 14px 0 14px 62px;
  position: relative;
  counter-increment: step;
  border-bottom: 1px solid var(--rule);
  max-width: none;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--knicks-blue);
  color: #fff;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
}
.steps li em { font-style: normal; color: var(--orange-deep); font-weight: 600; }

/* ---------- split layout (text + element) ---------- */
.slide--split {
  flex-direction: row;
  align-items: center;
  gap: 54px;
}
.split__text { flex: 1 1 40%; min-width: 0; }
.split__main { flex: 1 1 60%; min-width: 0; }
.slide--split .headline { font-size: 46px; max-width: 16ch; }

/* ---------- code slide (centered headline + full-bleed code) ---------- */
.slide--code {
  justify-content: flex-start;
  align-items: stretch;
  gap: 20px;
}
.slide--code .headline {
  text-align: center;
  align-self: center;
  font-size: 42px;
  line-height: 1.05;
  max-width: 28ch;
  flex: 0 0 auto;
}
.slide--code .codecard {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.slide--code .codecard pre {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slide--code .codecard code {
  font-size: 21px;
  line-height: 1.62;
}
.slide--code .codecard--dense code {
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- code card (dark editor panel) ---------- */
.codecard {
  background: var(--court);
  border: 1px solid var(--court-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 26px 60px -30px rgba(0,0,0,.8);
  width: 100%;
}
.codecard__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--court-2);
  border-bottom: 1px solid var(--court-line);
}
.codecard__lights { display: flex; gap: 7px; }
.codecard__lights i {
  width: 12px; height: 12px; border-radius: 50%; display: block;
}
.codecard__lights i:nth-child(1) { background: #ff5f57; }
.codecard__lights i:nth-child(2) { background: #febc2e; }
.codecard__lights i:nth-child(3) { background: #28c840; }
.codecard__name {
  font-family: var(--mono);
  font-size: 14px;
  color: #9fb2cf;
  letter-spacing: .02em;
}
.codecard__lang {
  margin-left: auto;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}
.codecard pre {
  margin: 0;
  padding: 22px 24px;
  overflow: auto;
}
.codecard code {
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.62;
  color: var(--code-text);
  display: block;
  white-space: pre;
  counter-reset: ln;
}
.codecard code .ln {
  display: inline-block;
  width: 2.2em;
  margin-right: 1.2em;
  text-align: right;
  color: #4a6286;
  user-select: none;
}
.tok-comment { color: var(--tok-comment); font-style: italic; }
.tok-string  { color: var(--tok-string); }
.tok-keyword { color: var(--tok-keyword); font-weight: 500; }
.tok-number  { color: var(--tok-number); }
.tok-fn      { color: var(--tok-fn); }
.code-cap {
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 18px;
  line-height: 1.45;
  max-width: 36ch;
}
.code-cap em { font-style: normal; color: var(--orange-deep); font-weight: 600; }

/* ---------- markdown split ---------- */
.mdsplit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 30px;
  width: 100%;
  align-items: start;
}
.md-pane { min-width: 0; }
.md-pane__label {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
/* raw source pane uses the dark editor look */
.md-source {
  background: var(--court);
  border: 1px solid var(--court-line);
  border-radius: 10px;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.6;
  color: #b9c8e0;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 420px;
}
/* rendered pane is a clean light card */
.md-rendered {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--knicks-blue);
  border-radius: 10px;
  padding: 24px 26px;
  max-height: 420px;
  overflow: auto;
}
.md-rendered h1, .md-rendered h2, .md-rendered h3 {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--blue-deep);
  line-height: 1.1;
  letter-spacing: .01em;
}
.md-rendered h1 { font-size: 30px; margin: 2px 0 12px; }
.md-rendered h2 { font-size: 23px; margin: 18px 0 10px; }
.md-rendered h3 { font-size: 18px; margin: 16px 0 8px; color: var(--orange-deep); }
.md-rendered p { font-size: 17px; line-height: 1.5; color: var(--ink); margin: 10px 0; }
.md-rendered ul { margin: 10px 0 10px 4px; list-style: none; }
.md-rendered li {
  font-size: 17px; line-height: 1.45; color: var(--ink);
  padding: 4px 0 4px 22px; position: relative;
}
.md-rendered li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 8px; height: 8px; background: var(--orange); border-radius: 50%;
}
.md-rendered strong { font-weight: 700; color: var(--blue-deep); }
.md-rendered em { font-style: italic; color: var(--ink-soft); }
.md-rendered a { color: var(--knicks-blue); text-decoration: underline; text-underline-offset: 2px; }
.md-rendered code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--blue-wash);
  color: var(--blue-deep);
  padding: 1px 6px;
  border-radius: 4px;
}
.md-rendered pre {
  background: var(--court);
  border-radius: 8px;
  padding: 14px 16px;
  overflow: auto;
  margin: 12px 0;
}
.md-rendered pre code {
  background: none; color: var(--code-text); font-size: 14px; padding: 0;
}
.md-rendered blockquote {
  border-left: 3px solid var(--orange);
  padding: 4px 0 4px 16px;
  margin: 12px 0;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- spectrum (determinism tension) ---------- */
.spectrum {
  margin-top: 30px;
  width: 100%;
}
.spectrum__bar {
  height: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--knicks-blue) 0%, #5a7fa6 46%, #d98a4e 54%, var(--orange) 100%);
}
.spectrum__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 26px;
}
.spectrum__col { padding-right: 40px; }
.spectrum__col--non {
  padding-right: 0;
  padding-left: 40px;
  border-left: 1px solid var(--rule);
}
.spectrum__cap {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 22px;
  margin-bottom: 16px;
}
.spectrum__col--det .spectrum__cap { color: var(--knicks-blue); }
.spectrum__col--non .spectrum__cap { color: var(--orange-deep); }
.spectrum__list { display: flex; flex-direction: column; gap: 22px; }
.spectrum__list dt {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 23px;
  line-height: 1.05;
  color: var(--blue-deep);
}
.spectrum__col--non .spectrum__list dt { color: var(--ink); }
.spectrum__list dd {
  margin-top: 3px;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink-faint);
}

/* ---------- card grid (layers / buckets / lessons) ---------- */
.cardgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
  width: 100%;
}
.cardgrid--2 { grid-template-columns: 1fr 1fr; max-width: 940px; }
.cardgrid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--knicks-blue);
  border-radius: 8px;
  padding: 20px 22px 22px;
  background: #fff;
}
.card--accent { border-top-color: var(--orange); }
.card__n {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 8px;
}
.card__title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1.1;
  color: var(--blue-deep);
  margin-bottom: 8px;
}
.card__body { font-size: 17px; line-height: 1.45; color: var(--ink-soft); }
.card__body em { font-style: normal; color: var(--knicks-blue); font-weight: 600; }
.card__body code {
  font-family: var(--mono); font-size: .85em;
  background: var(--blue-wash); color: var(--blue-deep);
  padding: 1px 5px; border-radius: 4px;
}
/* compact lessons grid */
.cardgrid--lessons { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cardgrid--lessons .card { border-top-width: 3px; padding: 16px 16px 18px; }
.cardgrid--lessons .card__title { font-size: 18px; }

/* ---------- eval scorecard table ---------- */
.scoretable {
  margin-top: 26px;
  width: 100%;
  max-width: 1000px;
  border-collapse: collapse;
  font-size: 19px;
}
.scoretable th {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: left;
  padding: 0 16px 12px;
  border-bottom: 2px solid var(--rule);
}
.scoretable th.num, .scoretable td.num { text-align: center; font-variant-numeric: tabular-nums; }
.scoretable td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.scoretable td.pattern { font-family: var(--mono); font-size: 16px; color: var(--blue-deep); }
.scoretable .pill {
  display: inline-block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.pill--helped { background: var(--orange); color: #fff; }
.pill--natural { background: var(--blue-wash); color: var(--blue-deep); }
.pill--weak { background: #e6e8ee; color: var(--ink-soft); }
.scoretable td.delta { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.scoretable td.delta.up { color: var(--orange-deep); }
.scoretable td.delta.flat { color: var(--ink-faint); }
.scoretable caption {
  caption-side: bottom;
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-faint);
  text-align: left;
}
.scoretable caption b { color: var(--blue-deep); }
.scoreline {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 8px;
  color: var(--blue-deep);
}
.scoreline b { color: var(--orange-deep); }

/* ---------- full-bleed screenshot slide ---------- */
.slide--shot {
  padding: 60px 40px 48px;
  justify-content: center;
  align-items: center;
}
.slide--shot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--rule);
  box-shadow: 0 22px 60px -28px rgba(0,0,0,.45);
  background: #fff;
}

/* ---------- eval architecture flow ---------- */
.evalflow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  width: 100%;
}
.evalflow__node {
  flex: 1 1 0;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--knicks-blue);
  border-radius: 8px;
  background: #fff;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  text-align: center;
}
.evalflow__node b {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 21px;
  color: var(--blue-deep);
}
.evalflow__node span { font-size: 15px; line-height: 1.35; color: var(--ink-soft); }
.evalflow__node.node--accent { border-top-color: var(--orange); }
.evalflow__node.node--accent b { color: var(--orange-deep); }
.evalflow__arrow {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: 30px;
  color: var(--orange);
  flex: 0 0 auto;
}
.evalflow__split { flex: 1.4 1 0; display: flex; flex-direction: column; gap: 10px; }
.evalflow__splitcap {
  font-family: var(--display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-faint);
  text-align: center;
}
.evalflow__split .evalflow__node { padding: 14px 16px; gap: 4px; }
.evalflow__split .evalflow__node b { font-size: 18px; }
.evalflow__split .evalflow__node span { font-size: 13px; }
.node--ctrl { border-top-color: var(--silver); }
.node--ctrl b { color: var(--ink-soft); }
.node--treat { border-top-color: var(--orange); }
.node--treat b { color: var(--orange-deep); }

/* ---------- navigation arrows ---------- */
.nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border: none;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s, color .25s, opacity .25s;
  z-index: 30;
  opacity: 0;
}
#app:hover .nav { opacity: 1; }
.nav:hover { background: var(--orange); color: #fff; }
.nav:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; opacity: 1; }
.nav--prev { left: 22px; }
.nav--next { right: 22px; }

/* ---------- speaker notes ---------- */
.notes {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(10,21,38,.97);
  color: #e7eef9;
  padding: 22px 36px 26px;
  z-index: 40;
  border-top: 3px solid var(--orange);
  max-height: 38vh;
  overflow-y: auto;
}
.notes[hidden] { display: none; }
.notes__head {
  display: flex; justify-content: space-between;
  font-family: var(--display);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange); font-weight: 700; margin-bottom: 12px;
}
.notes__body { font-size: 19px; line-height: 1.5; max-width: 92ch; }

/* ---------- overview grid ---------- */
.overview {
  position: fixed; inset: 0;
  background: rgba(10,21,38,.98);
  z-index: 50; overflow-y: auto; padding: 48px;
}
.overview[hidden] { display: none; }
.overview__inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px; max-width: 1400px; margin: 0 auto;
}
.ov-card {
  background: var(--paper);
  border-radius: 8px;
  padding: 16px 16px 18px;
  cursor: pointer;
  border: 2px solid transparent;
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; overflow: hidden;
  text-align: left; font-family: inherit;
  transition: transform .2s, border-color .2s;
}
.ov-card:hover { transform: translateY(-3px); }
.ov-card:focus-visible { outline: none; border-color: var(--orange); }
.ov-card.is-current { border-color: var(--orange); }
.ov-card__n {
  font-family: var(--display);
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--knicks-blue);
  margin-bottom: 8px; display: flex; justify-content: space-between;
}
.ov-card__n span:last-child { color: var(--orange-deep); }
.ov-card__title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 17px; line-height: 1.15; color: var(--blue-deep);
  overflow: hidden;
}

/* ---------- help + hint ---------- */
.help {
  position: fixed; inset: 0;
  background: rgba(10,21,38,.82);
  display: grid; place-items: center; z-index: 60;
}
.help[hidden] { display: none; }
.help__card {
  background: var(--paper);
  border-radius: 10px;
  padding: 36px 44px;
  min-width: 380px;
  border-top: 5px solid var(--orange);
}
.help__card h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 28px; font-weight: 700; color: var(--blue-deep);
  margin-bottom: 22px;
}
.help__card dl {
  display: grid; grid-template-columns: auto 1fr;
  gap: 12px 28px; font-size: 17px;
}
.help__card dt { font-family: var(--display); font-weight: 600; letter-spacing: .04em; color: var(--knicks-blue); }
.help__close { margin-top: 24px; font-size: 14px; color: var(--ink-faint); }
kbd {
  font-family: var(--mono);
  font-size: .82em;
  background: #fff;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 7px;
  font-weight: 600;
  color: var(--ink);
}

.hint {
  position: fixed;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.65);
  border: none; font-family: var(--sans);
  font-size: 12px; letter-spacing: .04em;
  padding: 7px 14px; border-radius: 100px;
  cursor: pointer; z-index: 20;
  transition: opacity .4s, background .25s;
}
.hint:hover { background: rgba(255,255,255,.2); color: #fff; }
.hint kbd { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: #fff; }
.hint.is-faded { opacity: 0; pointer-events: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity .2s ease; transform: none; }
  .progress__bar { transition: none; }
  .ov-card, .nav { transition: none; }
}
