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

:root {
  --cream: #FDFCF9;
  --paper: #FFFFFF;
  --blue: #2451C9;
  --blue-deep: #1A3D9E;
  --blue-soft: #EEF3FF;
  --gold: #ECBB2D;
  --gold-deep: #8A6700;
  --gold-soft: #FFF8DD;
  --ink: #374151;
  --ink-strong: #1F2937;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --line: rgba(55, 65, 81, 0.12);
  --line-strong: rgba(36, 81, 201, 0.24);
  --success: #0F8A61;
  --danger: #C94B45;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --slide-pad-x: clamp(3.5rem, 6vw, 7.5rem);
  --slide-pad-y: clamp(2.75rem, 5vh, 5rem);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body { position: relative; }

a {
  color: inherit;
  text-decoration: none;
}

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

.slide {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  background: var(--cream);
  isolation: isolate;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(0.65rem, 0.9vw, 1.15rem);
  background: var(--blue);
}

.slide::after {
  content: '';
  position: absolute;
  top: clamp(3.25rem, 6vh, 5.5rem);
  left: 0;
  width: clamp(0.65rem, 0.9vw, 1.15rem);
  height: clamp(4.5rem, 10vh, 7rem);
  background: var(--gold);
}

.slide.is-active { display: block; }

.slide__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 120rem);
  height: 100%;
  padding: var(--slide-pad-y) var(--slide-pad-x) clamp(2.5rem, 4vh, 4rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 2.4vh, 2.3rem);
}

.slide__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.eyebrow,
.meta,
.source-chip,
.tag,
.axis-label,
.node__label,
.chapter__number,
.cover__meta,
.deck-counter,
.os-item span,
.metric__label,
.chart-note {
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: clamp(0.8rem, 1vw, 1rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.meta {
  color: var(--faint);
  font-size: clamp(0.75rem, 0.9vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slide__body {
  min-height: 0;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide__body--center { justify-content: center; }

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 20ch;
  margin-bottom: clamp(1rem, 2vh, 1.6rem);
  color: var(--ink-strong);
  font-size: clamp(3.25rem, 5vw, 6.4rem);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 .blue,
.blue { color: var(--blue); }

h1 .gold,
.gold { color: var(--gold-deep); }

.lead {
  max-width: 58ch;
  margin-bottom: clamp(1.2rem, 2.3vh, 2rem);
  color: var(--muted);
  font-size: clamp(1.35rem, 1.75vw, 2rem);
  font-weight: 450;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.lead strong { color: var(--ink-strong); font-weight: 650; }

.lead--after-visual {
  margin-top: clamp(1.25rem, 2.5vh, 2rem);
}

.disclaimer-box {
  width: min(100%, 78rem);
  margin-top: clamp(1rem, 2vh, 1.5rem);
  padding: 1rem 1.2rem;
  border: 1px solid rgba(236, 187, 45, 0.55);
  border-left: 0.35rem solid var(--gold);
  border-radius: 0.7rem;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
  line-height: 1.4;
}

.disclaimer-box strong {
  color: var(--gold-deep);
}

.points {
  width: min(100%, 78rem);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.points li {
  position: relative;
  min-height: clamp(3.5rem, 6.4vh, 5.2rem);
  padding: clamp(0.7rem, 1.35vh, 1.2rem) 0 clamp(0.7rem, 1.35vh, 1.2rem) clamp(2.2rem, 3vw, 3.4rem);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.2rem, 1.55vw, 1.75rem);
  font-weight: 520;
  line-height: 1.32;
}

.points li::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0.2rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.18rem;
  background: var(--gold);
  transform: translateY(-50%);
}

.points li span,
.points li small {
  color: var(--muted);
  font-weight: 450;
}

.points--compact li {
  min-height: auto;
  font-size: clamp(1.05rem, 1.3vw, 1.45rem);
}

.slide__footer {
  min-height: 1.85rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.cites {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--blue-deep);
  font-size: clamp(0.65rem, 0.72vw, 0.82rem);
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease;
}

.source-chip::after {
  content: '↗';
  margin-left: 0.35rem;
  font-size: 0.85em;
}

.source-chip:hover,
.source-chip:focus-visible {
  border-color: var(--blue);
  background: var(--blue-soft);
  outline: none;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.05rem;
  border-radius: 0.65rem;
  background: var(--blue);
  color: var(--paper);
  box-shadow: 0 0.7rem 1.7rem rgba(36, 81, 201, 0.22);
  font-size: clamp(0.82rem, 0.95vw, 1rem);
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.slide-cta::after {
  content: '↗';
  margin-left: 0.45rem;
}

.slide-cta:hover,
.slide-cta:focus-visible {
  background: var(--blue-deep);
  box-shadow: 0 0.9rem 2rem rgba(36, 81, 201, 0.28);
  outline: none;
  transform: translateY(-0.1rem);
}


.deck-counter {
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(0.8rem, 1.5vh, 1.4rem);
  z-index: 20;
  color: rgba(55, 65, 81, 0.38);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  pointer-events: none;
}

/* Cover */
.slide--cover {
  background: var(--blue);
  color: var(--cream);
}

.slide--cover::before { background: var(--gold); }
.slide--cover::after { display: none; }

.cover {
  width: 100%;
  height: 100%;
  padding: var(--slide-pad-y) var(--slide-pad-x);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.series-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--cream);
  font-size: clamp(0.8rem, 1vw, 1rem);
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.series-lockup__mark {
  position: relative;
  width: 2.1rem;
  height: 2.1rem;
  border: 2px solid rgba(253, 252, 249, 0.86);
  border-radius: 0.5rem;
}

.series-lockup__mark::after {
  content: '';
  position: absolute;
  inset: 0.58rem;
  border-radius: 0.18rem;
  background: var(--gold);
}

.cover__body {
  align-self: center;
  max-width: 78rem;
}

.cover__kicker {
  margin: 0 0 1.3rem;
  color: var(--gold);
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cover h1 {
  max-width: 14ch;
  margin-bottom: 1.4rem;
  color: var(--cream);
  font-size: clamp(4.4rem, 7.6vw, 9.6rem);
  letter-spacing: -0.065em;
}

.cover__dek {
  max-width: 35ch;
  margin: 0;
  color: rgba(253, 252, 249, 0.78);
  font-size: clamp(1.35rem, 1.8vw, 2rem);
  line-height: 1.42;
}

.cover__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  border-top: 1px solid rgba(253, 252, 249, 0.22);
  padding-top: 1.2rem;
}

.cover__meta {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  color: rgba(253, 252, 249, 0.72);
  font-size: clamp(0.85rem, 1vw, 1.05rem);
}

.cover__meta strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gold);
  font-size: 0.72em;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cover__id {
  color: rgba(253, 252, 249, 0.5);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* Host introduction */
.host-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  width: min(100%, 82rem);
}

.host-copy h1 { margin-bottom: 0.65rem; }

.host-role {
  margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
  color: var(--gold-deep);
  font-size: clamp(1.2rem, 1.6vw, 1.7rem);
  font-weight: 720;
  letter-spacing: -0.02em;
}

.host-bio {
  max-width: 59ch;
  margin-bottom: clamp(1.2rem, 2.2vh, 1.8rem);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  line-height: 1.45;
}

.host-credentials {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.host-credentials li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ink);
  font-size: clamp(0.85rem, 1.03vw, 1.08rem);
  line-height: 1.32;
}

.host-credentials li::before {
  content: '';
  position: absolute;
  top: 0.48em;
  left: 0.1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}

.host-credentials a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(36, 81, 201, 0.35);
  text-underline-offset: 0.16em;
}

.host-photo {
  align-self: stretch;
  min-height: clamp(22rem, 48vh, 34rem);
  margin: 0;
  overflow: hidden;
  border-radius: 1.1rem;
  box-shadow: 0 0 0 1px var(--line), 1rem 1rem 0 var(--gold-soft);
}

.host-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Chapter */
.slide--chapter {
  background: var(--blue);
  color: var(--cream);
}

.slide--chapter::before { background: var(--gold); }
.slide--chapter::after { display: none; }

.chapter {
  height: 100%;
  padding: var(--slide-pad-y) var(--slide-pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.chapter__number {
  margin-bottom: clamp(1.4rem, 3vh, 2.5rem);
  color: var(--gold);
  font-size: clamp(1rem, 1.3vw, 1.4rem);
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--cream);
  font-size: clamp(4rem, 7vw, 8.6rem);
}

.chapter p {
  max-width: 38ch;
  margin: clamp(1.4rem, 3vh, 2.4rem) 0 0;
  padding-top: clamp(1rem, 2vh, 1.6rem);
  border-top: 0.3rem solid var(--gold);
  color: rgba(253, 252, 249, 0.74);
  font-size: clamp(1.3rem, 1.7vw, 1.85rem);
  line-height: 1.4;
}

/* Visual primitives */
.definition {
  display: grid;
  gap: clamp(1.1rem, 2vh, 1.8rem);
}

.definition__line {
  max-width: 21ch;
  color: var(--ink-strong);
  font-size: clamp(2.2rem, 3.4vw, 4.4rem);
  font-weight: 720;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.definition__line em {
  color: var(--blue);
  font-style: normal;
}

.token-stream {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: clamp(1.2rem, 2vh, 2rem);
}

.token {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.2vw, 1.3rem);
}

.token--next {
  border: 2px solid var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 750;
}

.token-arrow { color: var(--gold-deep); font-size: 1.8rem; font-weight: 800; }

.concept-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.2vw, 1rem);
  width: min(100%, 78rem);
  margin-bottom: clamp(1rem, 2vh, 1.6rem);
}

.concept-strip--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.concept {
  min-height: clamp(7.5rem, 14vh, 10rem);
  padding: clamp(0.9rem, 1.4vw, 1.3rem);
  border: 1px solid var(--line);
  border-top: 0.3rem solid var(--blue);
  border-radius: 0.75rem;
  background: var(--paper);
}

.concept--outside {
  border-top-color: var(--gold);
  background: var(--gold-soft);
}

.concept svg {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  color: var(--blue);
  stroke: currentColor;
}

.concept--outside svg { color: var(--gold-deep); }

.concept strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-strong);
  font-size: clamp(0.95rem, 1.15vw, 1.25rem);
}

.concept small {
  color: var(--muted);
  font-size: clamp(0.72rem, 0.86vw, 0.92rem);
  line-height: 1.35;
}

.tool-suite-grid .concept {
  border: 0;
  border-top: 0;
  background: var(--paper);
  box-shadow: 0 0.9rem 2.2rem rgba(36, 81, 201, 0.11), 0 0.15rem 0.4rem rgba(55, 65, 81, 0.08);
}


.tool-suite-grid .concept img {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.8rem;
}
.tuning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.4vw, 1.2rem);
  width: min(100%, 76rem);
}

.tuning-card {
  position: relative;
  min-height: clamp(9rem, 16vh, 11.5rem);
  padding: clamp(1rem, 1.6vw, 1.5rem) clamp(1rem, 1.7vw, 1.6rem) clamp(1rem, 1.6vw, 1.5rem) clamp(4rem, 5vw, 5.2rem);
  border-radius: 0.9rem;
  background: var(--paper);
  box-shadow: 0 0.9rem 2.2rem rgba(36, 81, 201, 0.10), 0 0.15rem 0.4rem rgba(55, 65, 81, 0.07);
}

.tuning-card__num {
  position: absolute;
  top: clamp(1rem, 1.6vw, 1.5rem);
  left: clamp(1rem, 1.5vw, 1.4rem);
  color: var(--gold-deep);
  font-size: clamp(1.5rem, 2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.tuning-card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink-strong);
  font-size: clamp(1.1rem, 1.35vw, 1.5rem);
}

.tuning-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.86rem, 1.02vw, 1.1rem);
  line-height: 1.45;
}

.diagram {
  width: min(100%, 82rem);
  margin-top: clamp(1.2rem, 2.1vh, 2rem);
  padding: clamp(1.2rem, 2.2vw, 2.2rem);
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
}

.diagram--tight { padding: clamp(1rem, 1.6vw, 1.5rem); }

.diagram__caption {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: clamp(0.82rem, 0.95vw, 1rem);
  line-height: 1.4;
}

.flow {
  display: flex;
  align-items: stretch;
  gap: clamp(0.5rem, 1vw, 1rem);
}

.flow--wrap { flex-wrap: wrap; }

.flow__node {
  flex: 1 1 0;
  min-width: 0;
  min-height: clamp(5.5rem, 10vh, 8rem);
  padding: clamp(0.9rem, 1.5vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.diagram + .lead {
  margin-top: clamp(1.25rem, 2.5vh, 2rem);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.25vw, 1.1rem);
  width: min(100%, 78rem);
}

.workflow-card {
  min-height: clamp(9rem, 16vh, 11.5rem);
  padding: clamp(1rem, 1.5vw, 1.4rem);
  border: 1px solid var(--line);
  border-top: 0.32rem solid var(--blue);
  border-radius: 0.8rem;
  background: var(--paper);
}

.workflow-card--featured {
  border-top-color: var(--gold);
  background: var(--gold-soft);
}

.workflow-card__label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--blue);
  font-size: clamp(0.72rem, 0.82vw, 0.88rem);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-card--featured .workflow-card__label { color: var(--gold-deep); }

.workflow-card strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ink-strong);
  font-size: clamp(1rem, 1.22vw, 1.35rem);
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.82rem, 0.96vw, 1.02rem);
  line-height: 1.42;
}

.flow__node strong {
  color: var(--ink-strong);
  font-size: clamp(1rem, 1.28vw, 1.45rem);
  line-height: 1.22;
}

.flow__node small {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: clamp(0.72rem, 0.88vw, 0.95rem);
  line-height: 1.35;
}

.flow__node--blue {
  border: 2px solid var(--blue);
  background: var(--blue-soft);
}

.flow__node--gold {
  border: 2px solid var(--gold);
  background: var(--gold-soft);
}

.flow__arrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--blue);
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  font-weight: 800;
}

.stack-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: center;
}

.stack-flow__step {
  min-height: clamp(5.5rem, 9vh, 7.4rem);
  padding: 0.8rem;
  border-top: 0.28rem solid var(--blue);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}

.stack-flow__step strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink-strong);
  font-size: clamp(0.85rem, 1.05vw, 1.1rem);
}

.stack-flow__step small {
  color: var(--muted);
  font-size: clamp(0.67rem, 0.77vw, 0.85rem);
  line-height: 1.35;
}

.stack-flow__step:last-child { border-top-color: var(--gold); }

.harness-map {
  position: relative;
  min-height: clamp(17rem, 35vh, 25rem);
  border: 2px solid var(--blue);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(36, 81, 201, 0.035), rgba(36, 81, 201, 0.08));
}

.harness-map__label {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.harness-map__model {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(10rem, 19vw, 16rem);
  min-height: clamp(6rem, 12vh, 8.5rem);
  padding: 1.2rem;
  border-radius: 0.9rem;
  background: var(--blue);
  color: var(--paper);
  display: grid;
  place-items: center;
  text-align: center;
  transform: translate(-50%, -50%);
}

.harness-map__model strong { font-size: clamp(1.3rem, 2vw, 2rem); }
.harness-map__model small { color: rgba(255, 255, 255, 0.72); font-size: 0.85rem; }

.tool-node {
  position: absolute;
  min-width: clamp(8rem, 13vw, 12rem);
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.7rem;
  background: var(--paper);
  color: var(--ink-strong);
  font-size: clamp(0.85rem, 1vw, 1.1rem);
  font-weight: 650;
  text-align: center;
}

.tool-node::after {
  content: '';
  position: absolute;
  background: var(--line-strong);
}

.tool-node--top { top: 3.5rem; left: 50%; transform: translateX(-50%); }
.tool-node--left { top: 50%; left: 2.2rem; transform: translateY(-50%); }
.tool-node--right { top: 50%; right: 2.2rem; transform: translateY(-50%); }
.tool-node--bottom-left { bottom: 2.1rem; left: 15%; }
.tool-node--bottom-right { right: 15%; bottom: 2.1rem; }

.tool-node--gate {
  border: 2px solid var(--gold);
  background: var(--gold-soft);
}

.loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.2vw, 1.1rem);
}

.loop__step {
  position: relative;
  min-height: clamp(10rem, 20vh, 14rem);
  padding: clamp(1rem, 1.6vw, 1.5rem);
  border-top: 0.35rem solid var(--blue);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}

.loop__step:last-child { border-top-color: var(--gold); }

.loop__number {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--blue);
  font-size: clamp(2.2rem, 3.3vw, 3.8rem);
  font-weight: 760;
  letter-spacing: -0.05em;
}

.loop__step h3 {
  margin-bottom: 0.5rem;
  color: var(--ink-strong);
  font-size: clamp(1.2rem, 1.5vw, 1.65rem);
}

.loop__step p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.85rem, 1vw, 1.08rem);
  line-height: 1.4;
}

.true-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  width: min(100%, 80rem);
}

.contrast {
  padding-top: 1rem;
  border-top: 0.35rem solid var(--line-strong);
}

.contrast--agent { border-top-color: var(--blue); }

.contrast__label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--faint);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contrast h2 {
  margin-bottom: 1rem;
  color: var(--ink-strong);
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.contrast p {
  max-width: 30ch;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.35vw, 1.45rem);
  line-height: 1.45;
}

.contrast__result {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-strong);
  font-weight: 650;
}

/* Charts */
.scoreboard,
.bar-chart,
.comparison-list {
  width: min(100%, 82rem);
  margin-top: clamp(1rem, 2vh, 1.7rem);
}

.score-row {
  display: grid;
  grid-template-columns: minmax(14rem, 1.25fr) minmax(22rem, 2fr) minmax(5rem, 0.35fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  min-height: clamp(4.3rem, 7.4vh, 6rem);
  border-top: 1px solid var(--line);
}

.score-row:last-child { border-bottom: 1px solid var(--line); }

.metric__label {
  color: var(--ink-strong);
  font-size: clamp(0.95rem, 1.18vw, 1.28rem);
  font-weight: 640;
  line-height: 1.25;
}

.metric__bars { display: grid; gap: 0.55rem; }

.metric__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 0.82vw, 0.9rem);
}

.metric__track {
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.08);
  overflow: hidden;
}

.metric__fill {
  display: block;
  width: var(--value, 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--faint);
}

.metric__bar--after .metric__fill { background: var(--blue); }
.metric__bar--after { color: var(--blue); font-weight: 700; }

.metric__win {
  color: var(--blue);
  font-size: clamp(1.25rem, 1.8vw, 2rem);
  font-weight: 760;
  text-align: right;
  letter-spacing: -0.04em;
}

.hero-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
}

.hero-metric__value {
  color: var(--blue);
  font-size: clamp(7rem, 15vw, 16rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.09em;
}

.hero-metric__value small {
  display: block;
  margin-top: 1.2rem;
  color: var(--gold-deep);
  font-size: clamp(0.9rem, 1.2vw, 1.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-metric__bars { display: grid; gap: 1.5rem; }

.big-bar label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.25rem);
}

.big-bar label strong { color: var(--ink-strong); }

.big-bar__track {
  height: clamp(1rem, 1.8vh, 1.5rem);
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.08);
  overflow: hidden;
}

.big-bar__fill { display: block; width: var(--value); height: 100%; background: var(--faint); }
.big-bar--after .big-bar__fill { background: var(--blue); }

.version-chart {
  display: grid;
  gap: 0.55rem;
  width: min(100%, 80rem);
}

.version-row {
  display: grid;
  grid-template-columns: minmax(11rem, 1.15fr) minmax(18rem, 2.5fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 3.7rem;
}

.version-row__label {
  color: var(--ink-strong);
  font-size: clamp(0.9rem, 1.08vw, 1.15rem);
  font-weight: 650;
}

.version-row__track {
  height: 1.2rem;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.08);
  overflow: hidden;
}

.version-row__fill {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--faint);
}

.version-row--pass .version-row__fill { background: var(--blue); }
.version-row__value { color: var(--muted); font-family: var(--mono); font-size: 0.9rem; white-space: nowrap; }
.version-row--pass .version-row__value { color: var(--blue); font-weight: 700; }

.chart-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.72rem, 0.82vw, 0.88rem);
  line-height: 1.45;
}

/* Topology */
.topology-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.topology-svg .edge {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  marker-end: url('#topology-arrow');
}

.topology-svg .edge--both { marker-start: url('#topology-arrow'); }
.topology-svg .edge--dashed { stroke-dasharray: 9 8; }

.topology-svg .edge--server {
  stroke: var(--ink-strong);
  stroke-width: 5;
  marker-end: none;
}

.topology-svg marker path { fill: var(--blue); }

.topology-svg .edge-label {
  fill: var(--blue-deep);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 650;
}

.topology-svg .svg-node rect {
  fill: var(--cream);
  stroke: var(--line-strong);
  stroke-width: 2;
}

.topology-svg .svg-node--human rect {
  fill: var(--gold-soft);
  stroke: var(--gold);
  stroke-width: 3;
}

.topology-svg .svg-node--model rect {
  fill: var(--blue-soft);
  stroke: var(--blue);
  stroke-width: 3;
}

.topology-svg .svg-node--server rect {
  fill: var(--ink-strong);
  stroke: var(--ink-strong);
}

.topology-svg .svg-node__title {
  fill: var(--ink-strong);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
}

.topology-svg .svg-node__body {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
}

.topology-svg .svg-node--server .svg-node__title { fill: var(--paper); }
.topology-svg .svg-node--server .svg-node__body { fill: rgba(255, 255, 255, 0.66); }

.harness-svg .edge { marker-end: url('#harness-arrow'); }

.desktop-harness-svg .edge { marker-end: url('#desktop-arrow'); }
.desktop-harness-svg .edge--both { marker-start: url('#desktop-arrow'); }

.harness-svg .harness-boundary {
  fill: rgba(36, 81, 201, 0.035);
  stroke: var(--blue);
  stroke-width: 3;
}

.harness-svg .harness-label {
  fill: var(--blue);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.harness-svg .svg-node--gate rect {
  fill: var(--gold-soft);
  stroke: var(--gold);
  stroke-width: 3;
}

/* Tags, ladders, process */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.65rem; width: min(100%, 78rem); }

.tag {
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--blue-deep);
  font-size: clamp(0.8rem, 0.95vw, 1.05rem);
  font-weight: 650;
}

.tag--gold { border-color: rgba(236, 187, 45, 0.62); background: var(--gold-soft); color: var(--gold-deep); }

.ladder {
  display: grid;
  width: min(100%, 76rem);
  border-top: 1px solid var(--line);
}

.ladder__row {
  display: grid;
  grid-template-columns: clamp(2.6rem, 4vw, 4rem) minmax(10rem, 0.8fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: center;
  min-height: clamp(4.4rem, 7.4vh, 6rem);
  border-bottom: 1px solid var(--line);
}

.ladder__num { color: var(--gold-deep); font-size: clamp(1.4rem, 1.8vw, 2rem); font-weight: 760; }
.ladder__row strong { color: var(--ink-strong); font-size: clamp(1rem, 1.18vw, 1.3rem); }
.ladder__row p { margin: 0; color: var(--muted); font-size: clamp(0.85rem, 1vw, 1.08rem); line-height: 1.4; }

.decision-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  width: min(100%, 82rem);
}

.decision {
  min-height: clamp(8.5rem, 17vh, 12rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-top: 0.35rem solid var(--blue);
  background: var(--paper);
}

.decision:last-child { border-top-color: var(--gold); }
.decision strong { display: block; margin-bottom: 0.6rem; color: var(--ink-strong); font-size: clamp(1rem, 1.2vw, 1.3rem); }
.decision p { margin: 0; color: var(--muted); font-size: clamp(0.8rem, 0.95vw, 1rem); line-height: 1.42; }

/* Desktop and membership */
.desktop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.55fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  width: min(100%, 86rem);
}

.screenshot-frame {
  aspect-ratio: 16 / 9;
  padding: 0.65rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 1.1rem;
  background: var(--paper);
  box-shadow: 0 1.2rem 3rem rgba(36, 81, 201, 0.11);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.65rem;
  object-fit: cover;
  object-position: top;
}

.os-lockup { display: grid; gap: 0.7rem; }

.os-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.6rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-strong);
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  font-weight: 650;
}

.os-symbol {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.48rem;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 800;
}

.offer {
  display: grid;
  gap: 0;
  width: min(100%, 80rem);
  border-top: 1px solid var(--line);
}

.offer__row {
  display: grid;
  grid-template-columns: minmax(11rem, 0.75fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: baseline;
  min-height: clamp(4rem, 7vh, 5.6rem);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.offer__row strong { color: var(--blue); font-size: clamp(1.1rem, 1.45vw, 1.55rem); }
.offer__row p { margin: 0; color: var(--ink); font-size: clamp(1rem, 1.25vw, 1.35rem); line-height: 1.35; }

/* Close */
.slide--close {
  background: var(--blue);
  color: var(--cream);
}

.slide--close::before { background: var(--gold); }
.slide--close::after { display: none; }

.close {
  height: 100%;
  padding: var(--slide-pad-y) var(--slide-pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.close__label {
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-size: clamp(0.9rem, 1.1vw, 1.15rem);
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.close h1 {
  max-width: none;
  width: min(100%, 90rem);
  margin-bottom: clamp(1.6rem, 3vh, 2.5rem);
  color: var(--cream);
  font-size: clamp(3.8rem, 6.5vw, 7.8rem);
  line-height: 0.94;
}

.close__tagline-primary,
.close__tagline-secondary {
  display: block;
  white-space: nowrap;
}

.close__tagline-secondary {
  margin-top: 0.5rem;
  font-size: 0.72em;
  color: rgba(253, 252, 249, 0.88);
}

.close__url {
  padding-bottom: 0.35rem;
  border-bottom: 0.3rem solid var(--gold);
  color: var(--cream);
  font-size: clamp(1.4rem, 2.2vw, 2.5rem);
  font-weight: 650;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .slide__header,
  .slide.is-active h1,
  .slide.is-active .lead,
  .slide.is-active .points,
  .slide.is-active .diagram,
  .slide.is-active .scoreboard,
  .slide.is-active .hero-metric,
  .slide.is-active .true-split,
  .slide.is-active .ladder,
  .slide.is-active .loop,
  .slide.is-active .desktop-layout,
  .slide.is-active .offer,
  .slide.is-active .decision-path,
  .slide.is-active .version-chart,
  .slide.is-active .tag-row {
    animation: rise 420ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  }

  .slide.is-active .lead { animation-delay: 60ms; }
  .slide.is-active .points,
  .slide.is-active .diagram,
  .slide.is-active .scoreboard,
  .slide.is-active .hero-metric,
  .slide.is-active .true-split,
  .slide.is-active .ladder,
  .slide.is-active .loop,
  .slide.is-active .desktop-layout,
  .slide.is-active .offer,
  .slide.is-active .decision-path,
  .slide.is-active .version-chart,
  .slide.is-active .tag-row { animation-delay: 110ms; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(0.8rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-aspect-ratio: 4 / 3) {
  :root { --slide-pad-x: clamp(2rem, 5vw, 4rem); --slide-pad-y: clamp(2rem, 4vh, 3.5rem); }
  h1 { font-size: clamp(2.8rem, 7.2vw, 5.2rem); }
  .points li { font-size: clamp(1.05rem, 2.4vw, 1.45rem); }
  .flow { flex-wrap: wrap; }
  .flow__arrow { transform: rotate(90deg); }
}

@media (max-width: 760px) {
  :root { --slide-pad-x: 1.65rem; --slide-pad-y: 1.5rem; }
  .slide { overflow-y: auto; }
  .slide::before,
  .slide::after { width: 0.4rem; }
  .slide::after { height: 4rem; }
  .slide__header { align-items: flex-start; }
  .meta { display: none; }
  h1 { max-width: none; overflow-wrap: anywhere; font-size: clamp(2.3rem, 10vw, 3.8rem); }
  .lead { font-size: clamp(1rem, 4.5vw, 1.3rem); }
  .points li { min-height: auto; padding-left: 1.7rem; font-size: clamp(0.95rem, 4vw, 1.15rem); }
  .true-split,
  .loop,
  .decision-path,
  .desktop-layout,
  .host-layout { grid-template-columns: 1fr; }
  .host-photo { min-height: 19rem; max-height: 24rem; }
  .stack-flow,
  .concept-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-row { grid-template-columns: 1fr; gap: 0.45rem; padding: 0.6rem 0; }
  .metric__win { text-align: left; }
  .version-row { grid-template-columns: 1fr; gap: 0.35rem; padding: 0.55rem 0; }
  .version-row__value { justify-self: start; }
  .hero-metric { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-metric__value { font-size: clamp(5rem, 24vw, 8rem); }
  .harness-map { min-height: 22rem; }
  .tool-node { min-width: 7rem; font-size: 0.72rem; }
  .tool-node--left { left: 0.65rem; }
  .tool-node--right { right: 0.65rem; }
  .tool-node--bottom-left { left: 5%; }
  .tool-node--bottom-right { right: 5%; }
  .os-lockup { grid-template-columns: 1fr; }
  .offer__row { grid-template-columns: 1fr; gap: 0.3rem; }
  .source-chip { font-size: 0.58rem; }
  #questions h1 { font-size: clamp(3rem, 14vw, 4.5rem) !important; }
  .diagram:has(.topology-svg) { overflow-x: auto; }
  .topology-svg { width: 54rem; max-width: none; }
  .cover__footer { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .workflow-grid,
  .tuning-grid { grid-template-columns: 1fr; }

  .close__tagline-primary,
  .close__tagline-secondary { white-space: normal; }
  .cover__meta { flex-wrap: wrap; }
}

@media print {
  @page { size: 13.333in 7.5in; margin: 0; }
  html,
  body { width: auto; height: auto; overflow: visible; background: var(--cream); }
  .slide {
    position: relative;
    inset: auto;
    display: block !important;
    width: 13.333in;
    height: 7.5in;
    page-break-after: always;
    break-after: page;
    overflow: hidden;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .slide:last-of-type { page-break-after: auto; }
  .deck-counter { display: none; }
  .source-chip { background: var(--paper); }
}
