/* ============================================================
   Becoming an Agentic VC — editorial deck
   Paper + ink + one vermilion accent. Fraunces / Hanken Grotesk.
   Fixed 1280×720 stage scaled to any screen for projection.
   ============================================================ */

:root {
  /* palette */
  --paper:      #f6f3ec;   /* warm ivory */
  --paper-2:    #efeadf;   /* faint panel */
  --ink:        #1c1815;   /* warm near-black */
  --ink-soft:   #5d544a;   /* secondary text */
  --ink-faint:  #948b7e;   /* tertiary / muted */
  --accent:     #b7411e;   /* burnt vermilion */
  --accent-deep:#8f3015;
  --accent-wash:#f0e2dc;   /* accent tint for panels */
  --rule:       #ddd5c6;   /* hairlines */
  --backdrop:   #14110e;   /* letterbox around the stage */
  --good:       #4f6f3a;   /* affirmative tick */

  /* type */
  --serif: "Fraunces", "Iowan Old Style", "Palatino", "Georgia", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* base stage geometry (px in 1280×720 space) */
  --pad: 92px;
}

* { 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;
}

/* ---------- the 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,.6);
  /* faint paper grain via layered gradients */
  background-image:
    radial-gradient(120% 80% at 100% 0%, rgba(183,65,30,.04), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(28,24,21,.035), transparent 60%);
}

/* ---------- chrome (running heads, progress) ---------- */
.chrome {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  z-index: 5;
}
.chrome--top { top: 40px; }
.chrome--bottom { bottom: 36px; gap: 28px; }
.run-head { color: var(--accent); }
.counter { font-variant-numeric: tabular-nums; }

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

/* ---------- slides ---------- */
.slides { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  padding: calc(var(--pad) + 26px) var(--pad) calc(var(--pad) - 6px);
  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 of children */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.75,.2,1);
  transition-delay: calc(var(--ri, 0) * 65ms);
}
.is-active .reveal { opacity: 1; transform: none; }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.headline {
  font-family: var(--serif);
  font-weight: 480;
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: -.012em;
  max-width: 19ch;
}
.headline em, .display em, .statement em, .title-sub em { font-style: italic; color: var(--accent); }
.amp { color: var(--accent); font-style: italic; }

.lead {
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: 26px;
  max-width: 40ch;
}
.body-lg {
  font-size: 25px;
  line-height: 1.48;
  margin-top: 20px;
  max-width: 34ch;
}
.body-lg strong { font-weight: 600; }
.muted { color: var(--ink-faint); }
.body-lg.muted, p.muted { color: var(--ink-faint); }

.punch {
  font-family: var(--serif);
  font-style: italic;
  font-size: 27px;
  line-height: 1.35;
  margin-top: 34px;
  color: var(--ink);
  max-width: 32ch;
}
.punch em { font-style: italic; color: var(--accent); }

.kicker-note {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 34px;
  max-width: 46ch;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
}
.kicker-note em { color: var(--ink); font-style: italic; }

/* ---------- title slides ---------- */
.slide--title { justify-content: center; }
.title-block { max-width: 900px; }
.display {
  font-family: var(--serif);
  font-weight: 460;
  font-size: 100px;
  line-height: .97;
  letter-spacing: -.02em;
  max-width: none;
}
.slide--close .display { font-size: 84px; max-width: none; }
.title-sub {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.35;
  color: var(--ink-soft);
  margin-top: 30px;
  max-width: 30ch;
}
.title-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
  margin-top: 40px;
  font-size: 17px;
  letter-spacing: .04em;
  color: var(--ink-soft);
  font-weight: 500;
}
.title-meta .dot { color: var(--accent); }
.title-meta--close { font-size: 19px; }
.title-spine {
  position: absolute;
  bottom: 78px;
  right: var(--pad);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- statement slides ---------- */
.slide--statement { justify-content: center; }
.statement {
  font-family: var(--serif);
  font-weight: 450;
  font-size: 52px;
  line-height: 1.18;
  letter-spacing: -.01em;
  max-width: 24ch;
  margin-top: 8px;
}
.statement--sm { font-size: 40px; max-width: 28ch; }
.example-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--accent);
  margin-top: 36px;
}
.example-q em { color: var(--ink); }
.slide--example .statement em { color: var(--accent); }

/* ---------- definition (vocabulary) slides ---------- */
.slide--define { justify-content: center; }
.term {
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 460;
  line-height: 1;
  letter-spacing: -.02em;
  margin: 6px 0 10px;
}
.term::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  background: var(--accent);
  margin-top: 26px;
}
.def {
  font-size: 32px;
  line-height: 1.35;
  max-width: 30ch;
  margin-top: 30px;
  font-weight: 500;
}
.def-detail {
  font-size: 24px;
  color: var(--ink-soft);
  margin-top: 18px;
  max-width: 40ch;
}
.def-detail span { color: var(--accent); font-weight: 600; }
.aside {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink-soft);
  margin-top: 30px;
  max-width: 38ch;
}
.aside em { color: var(--accent); }

/* ---------- lists ---------- */
.checklist, .ask-list, .poll, .trail, .steps { list-style: none; margin-top: 30px; }
.checklist li, .ask-list li {
  font-size: 25px;
  line-height: 1.32;
  padding: 13px 0 13px 44px;
  position: relative;
  max-width: 40ch;
  border-bottom: 1px solid var(--rule);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 22px;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.checklist--good li::before { border-color: var(--good); }
.checklist--bad li::before {
  width: 14px; height: 14px;
  border: none;
  border-top: 2.5px solid var(--accent);
  transform: none;
  top: 26px; left: 8px;
  background:
    linear-gradient(var(--accent),var(--accent)) center/14px 2.5px no-repeat;
}
.checklist li em, .ask-list li em { font-style: italic; color: var(--accent); }
.checklist li .muted { color: var(--ink-faint); }

.ask-list li::before {
  content: "?";
  position: absolute;
  left: 0; top: 11px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}

.poll li {
  font-size: 30px;
  font-weight: 500;
  padding: 16px 0 16px 50px;
  position: relative;
  border-bottom: 1px solid var(--rule);
  max-width: 30ch;
}
.poll li::before {
  content: "";
  position: absolute;
  left: 4px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border: 2px solid var(--ink-faint);
  border-radius: 50%;
}
.poll li .muted { font-size: 22px; font-weight: 400; }

.trail {
  counter-reset: trail;
  margin-top: 28px;
}
.trail li {
  font-size: 26px;
  line-height: 1.3;
  padding: 12px 0 12px 56px;
  position: relative;
  counter-increment: trail;
}
.trail li::before {
  content: counter(trail, decimal-leading-zero);
  position: absolute;
  left: 0; top: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.trail li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9px; top: 36px; bottom: -2px;
  width: 1px;
  background: var(--rule);
}
.trail li span { font-weight: 600; }

.steps { counter-reset: step; margin-top: 24px; }
.steps li {
  font-size: 27px;
  line-height: 1.3;
  padding: 15px 0 15px 64px;
  position: relative;
  counter-increment: step;
  border-bottom: 1px solid var(--rule);
  max-width: 36ch;
}
.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(--accent);
  color: var(--paper);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}
.steps li em { font-style: italic; color: var(--accent); }

/* ---------- split layout (text + figure) ---------- */
.slide--split {
  flex-direction: row;
  align-items: center;
  gap: 64px;
}
.split__text { flex: 1 1 52%; min-width: 0; }
.slide--split .ph { flex: 1 1 48%; }

/* ---------- placeholder figure ---------- */
.ph { margin: 0; }
.ph__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--accent);
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(183,65,30,.035) 18px 19px),
    var(--accent-wash);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 30px;
  transition: transform .35s cubic-bezier(.2,.75,.2,1), box-shadow .35s ease;
}
.is-active .ph:hover .ph__frame {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(143,48,21,.6);
}
.ph__tag {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--paper);
  background: var(--accent);
  padding: 5px 11px;
  border-radius: 100px;
}
.ph__what {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  color: var(--accent-deep);
  max-width: 24ch;
}
.ph__what code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-style: normal;
  font-size: .9em;
  background: rgba(143,48,21,.1);
  padding: 1px 6px;
  border-radius: 4px;
}
.ph figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-faint);
  text-align: center;
  letter-spacing: .02em;
}
.ph--code .ph__frame { aspect-ratio: 5 / 3.4; }
.ph--inline { margin-top: 24px; max-width: 360px; }
.ph--inline .ph__frame { aspect-ratio: 16 / 5; }

/* ---------- the spine (workflow → data → insight) ---------- */
.spine {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 22px;
  margin-top: 44px;
}
.spine__step {
  flex: 1;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  background: var(--paper-2);
  border-radius: 4px;
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spine__n {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.spine__label {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
}
.spine__sub { font-size: 16px; color: var(--ink-faint); }
.spine__arrow {
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 38px;
  color: var(--accent);
}
.spine--sm { margin-top: 34px; }
.spine--sm .spine__step { padding: 18px 22px; }
.spine--sm .spine__label { font-size: 26px; }

/* ---------- primitives row ---------- */
.prims {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
  max-width: 760px;
}
.prims li {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  padding: 16px 20px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.prims__n {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.prims--sm { grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 24px; }
.prims--sm li {
  font-size: 16px;
  padding: 12px 6px;
  justify-content: center;
  text-align: center;
}

/* ---------- proof intro grid ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}
.proof-grid article {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 26px 24px;
  background: var(--paper-2);
}
.proof-grid h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 10px;
}
.proof-grid p { font-size: 18px; color: var(--ink-soft); line-height: 1.4; }

/* ---------- app slides (workflow/data/insight DL) ---------- */
.app-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--accent);
  margin-top: 12px;
}
.slide--app .headline { font-size: 64px; }
.wdi {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.wdi > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.wdi dt {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
}
.wdi dd {
  font-size: 22px;
  line-height: 1.36;
}
.wdi dd em { font-style: italic; color: var(--ink); font-weight: 500; }
.tw {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--ink-soft);
  margin-top: 22px;
}
.tw em { color: var(--accent); }

/* ---------- navigation arrows ---------- */
.nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border: none;
  background: rgba(246,243,236,.08);
  color: rgba(246,243,236,.55);
  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: rgba(246,243,236,.18); color: var(--paper); }
.nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; opacity: 1; }
.nav--prev { left: 24px; }
.nav--next { right: 24px; }

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

/* ---------- overview grid ---------- */
.overview {
  position: fixed;
  inset: 0;
  background: rgba(20,17,14,.97);
  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: 6px;
  padding: 18px 18px 20px;
  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(--accent); }
.ov-card.is-current { border-color: var(--accent); }
.ov-card__n {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.ov-card__title {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
  overflow: hidden;
}

/* ---------- help + hint ---------- */
.help {
  position: fixed;
  inset: 0;
  background: rgba(20,17,14,.8);
  display: grid;
  place-items: center;
  z-index: 60;
}
.help[hidden] { display: none; }
.help__card {
  background: var(--paper);
  border-radius: 8px;
  padding: 38px 44px;
  min-width: 360px;
  border-top: 4px solid var(--accent);
}
.help__card h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 22px;
}
.help__card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 28px;
  font-size: 17px;
}
.help__card dt { font-weight: 600; color: var(--accent); }
.help__close { margin-top: 24px; font-size: 14px; color: var(--ink-faint); }
kbd {
  font-family: var(--sans);
  font-size: .85em;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 7px;
  font-weight: 600;
}

.hint {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(246,243,236,.08);
  color: rgba(246,243,236,.5);
  border: none;
  font-family: inherit;
  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(246,243,236,.16); color: var(--paper); }
.hint kbd { background: rgba(246,243,236,.12); border-color: rgba(246,243,236,.2); color: inherit; }
.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; }
  .ph__frame, .ov-card, .nav { transition: none; }
}
