/* ================================================================
   AI Decoded — styles.css
   Forked from civic-preso engine. Same dark terminal aesthetic,
   Geist Mono primary. No Civic branding, no mascot.
   ================================================================ */

/* ----- fonts ----- */
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Italic-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Italic-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ----- design tokens ----- */
:root {
  --bg-dark: #030711;
  --bg-surface: #050B18;
  --bg-card: #0A1120;
  --bg-hover: #111C30;
  --slate: #1C2A3A;
  --border-accent: #2A3A50;

  --accent: #7C3BED;
  --accent-dim: #5B2BB3;
  --accent-glow: rgba(124, 59, 237, 0.32);
  --blue: #0BBFEF;
  --accent-bg: rgba(124, 59, 237, 0.12);

  --text-primary: #DDE4EF;
  --text-secondary: #728096;
  --text-muted: #3A4A5C;

  --ok: #7C3BED;
  --ok-bg: rgba(124, 59, 237, 0.12);
  --block: #EF4343;
  --block-bg: rgba(239, 67, 67, 0.10);
  --warn: #F59F0A;
  --warn-bg: rgba(245, 159, 10, 0.10);

  --mono: "Geist Mono", "SF Mono", "JetBrains Mono", ui-monospace, "Courier New", monospace;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --slide-pad-x: clamp(24px, 5vw, 96px);
  --slide-pad-y: clamp(40px, 6vh, 96px);
  --gap: 16px;
  --radius: 6px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.1s;
  --t-med: 0.3s;
}

/* ----- light theme overrides ----- */
[data-theme="light"] {
  --bg-dark: #F4F5F7;
  --bg-surface: #EBEDF0;
  --bg-card: #FFFFFF;
  --bg-hover: #F0F1F4;
  --slate: #D4D8E0;
  --border-accent: #C0C5CF;

  --accent: #6D28D9;
  --accent-dim: #5B21B6;
  --accent-glow: rgba(109, 40, 217, 0.18);
  --accent-bg: rgba(109, 40, 217, 0.08);

  --text-primary: #1A1B2E;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;

  --ok: #6D28D9;
  --ok-bg: rgba(109, 40, 217, 0.08);
  --block: #DC2626;
  --block-bg: rgba(220, 38, 38, 0.08);
  --warn: #D97706;
  --warn-bg: rgba(217, 119, 6, 0.08);
}
[data-theme="light"] .terminal-dot:nth-child(1) { background: #EF4444; }
[data-theme="light"] .terminal-dot:nth-child(2) { background: #F59E0B; }
[data-theme="light"] .terminal-dot:nth-child(3) { background: #22C55E; }
[data-theme="light"] .terminal {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 8px 30px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .help {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .help::backdrop {
  background: rgba(244, 245, 247, 0.7);
}
[data-theme="light"] ::selection { background: var(--accent); color: #fff; }

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
code, kbd, pre { font-family: var(--mono); }

/* ----- html / body ----- */
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100dvh;
  background: var(--bg-dark);
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}
a[href^="mailto:"], a[href^="http"], code, .cta-contact {
  user-select: text;
  -webkit-user-select: text;
}
::selection { background: var(--accent); color: #fff; }

/* ----- chrome (persistent UI) ----- */
.chrome {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}
.chrome > * { pointer-events: auto; }

.wordmark {
  position: fixed;
  top: clamp(20px, 3vh, 32px);
  left: clamp(24px, 3vw, 40px);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.75;
  transition: opacity var(--t-fast);
}
.wordmark:hover { opacity: 1; }

.theme-toggle {
  position: fixed;
  top: clamp(20px, 3vh, 32px);
  right: clamp(60px, 6vw, 90px);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 16px;
  border-radius: 50%;
  border: 1px solid var(--slate);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  z-index: 42;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-icon--light { display: none; }
[data-theme="light"] .theme-icon--dark { display: none; }
[data-theme="light"] .theme-icon--light { display: inline; }

.dots {
  position: fixed;
  right: clamp(18px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}
.dots a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 22px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-left: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.dots a:hover { color: var(--text-secondary); }
.dots a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 4px;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 45;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s linear;
}

/* ----- toast ----- */
.toast {
  position: fixed;
  bottom: clamp(20px, 3vh, 32px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  padding: 8px 14px;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .toast-sep { color: var(--text-muted); margin: 0 4px; }
.toast kbd {
  font-size: 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border-accent);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--text-primary);
}

/* ----- help dialog ----- */
.help {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 13px;
  z-index: 60;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.help::backdrop { background: rgba(3, 7, 17, 0.7); }
.help h3 { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.help table { border-collapse: collapse; width: 100%; }
.help td { padding: 6px 12px 6px 0; color: var(--text-secondary); }
.help td:first-child { color: var(--text-primary); white-space: nowrap; }
.help kbd { font-size: 11px; background: var(--bg-hover); border: 1px solid var(--border-accent); border-radius: 3px; padding: 1px 6px; margin-right: 2px; }
.help button { margin-top: 16px; padding: 6px 14px; border: 1px solid var(--slate); border-radius: var(--radius); font-size: 11px; color: var(--text-secondary); }
.help button:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   slide structure
   ============================================================ */
.slide {
  position: relative;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: var(--slide-pad-y) var(--slide-pad-x);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.slide-inner {
  width: 100%;
  max-width: 1240px;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vh, 30px);
}

/* ----- typography ----- */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.kicker .caret {
  display: inline-block;
  animation: caret-blink 1s steps(2) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.display {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(2.4rem, 7.5vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}
.display-line {
  display: block;
  word-spacing: -0.15em;
}
.display-word { display: inline-block; }
.display-word--accent { color: var(--accent); }

.heading {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  word-spacing: -0.15em;
  margin: 0;
  text-wrap: balance;
}

.subheading {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0;
}

.lede {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 1.55vw, 1.5rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0;
}
.lede strong { font-weight: 700; color: var(--text-primary); }

.pullquote {
  font-family: var(--sans);
  font-style: italic;
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-secondary);
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 18px;
  margin: 4px 0 0;
  max-width: 70ch;
}

/* ----- hero ----- */
.slide--hero .slide-inner { gap: clamp(16px, 2vh, 24px); }
.hero-meta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: clamp(24px, 4vh, 64px);
}
.hero-meta .meta-sep { color: var(--text-muted); }

/* ----- compare columns (S3, S7) ----- */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: stretch;
  margin-top: clamp(12px, 2vh, 24px);
}
.compare-col {
  padding: clamp(20px, 2.2vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.compare-col--bad { border-color: rgba(239, 67, 67, 0.20); }
.compare-col--good { border-color: rgba(124, 59, 237, 0.28); }
.compare-header {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--slate);
}
.compare-col--bad .compare-header { color: #C4856A; }
.compare-col--good .compare-header { color: var(--accent); }
.compare-list { display: flex; flex-direction: column; gap: 14px; }
.compare-list li {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  line-height: 1.5;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.compare-col--bad .compare-list li { color: var(--text-secondary); }
.compare-sign { font-family: var(--mono); font-weight: 600; flex: 0 0 auto; }
.compare-sign--bad { color: var(--block); }
.compare-sign--good { color: var(--accent); }
.compare-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--slate) 15%, var(--slate) 85%, transparent 100%);
}

/* ----- tile grid (S2, S5, S9) ----- */
.tile-grid { display: grid; gap: 14px; margin-top: clamp(12px, 2vh, 24px); }
.tile-grid--3x2 { grid-template-columns: repeat(3, 1fr); }
.tile-grid--2x2 { grid-template-columns: repeat(2, 1fr); }
.tile {
  background: var(--bg-card);
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 1.8vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.tile:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  transform: translateY(-2px);
}
.tile h3 {
  font-family: var(--mono);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--accent);
}
.tile p {
  font-family: var(--sans);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* ----- stepper (S4) ----- */
.steps { display: flex; flex-direction: column; gap: 20px; margin-top: clamp(12px, 2vh, 24px); }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--slate);
}
.step:first-child { border-top: 1px solid var(--border-accent); }
.step-num {
  font-family: var(--mono);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.step-title {
  font-family: var(--mono);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0;
  word-spacing: -0.1em;
}
.step-body p {
  font-family: var(--sans);
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--text-secondary);
  margin: 4px 0 0;
  line-height: 1.55;
}

/* LLM footer (S4) */
.llm-footer {
  margin-top: clamp(12px, 2vh, 24px);
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: clamp(13px, 1vw, 16px);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.llm-names { color: var(--accent); font-weight: 600; word-spacing: -0.1em; }
.llm-note { color: var(--text-secondary); }

/* ----- limits list (S6) ----- */
.limits-list { display: flex; flex-direction: column; gap: 16px; margin-top: clamp(12px, 2vh, 24px); }
.limit {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--slate);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
}
.limit-marker {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--warn);
  align-self: start;
  padding-top: 2px;
}
.limit-body h3 {
  font-family: var(--mono);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-primary);
  word-spacing: -0.1em;
}
.limit-body p {
  font-family: var(--sans);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* ----- terminal window (S7) ----- */
.terminal {
  background: var(--bg-surface);
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: clamp(12px, 2vh, 24px);
  box-shadow: 0 0 0 1px rgba(124, 59, 237, 0.06), 0 20px 60px rgba(0, 0, 0, 0.4);
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--slate);
}
.terminal-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-accent); }
.terminal-dot:nth-child(1) { background: #3A2A44; }
.terminal-dot:nth-child(2) { background: #3A3A2A; }
.terminal-dot:nth-child(3) { background: #2A3A2A; }
.terminal-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
}
.terminal-body { padding: 16px 18px; }
.term-line {
  font-family: var(--mono);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
  margin: 0;
  color: var(--text-secondary);
}
.term-line--user { color: var(--text-primary); }
.term-line--ok { color: var(--accent); }
.term-prompt {
  color: var(--text-muted);
  margin-right: 8px;
}
.term-line--user .term-prompt { color: var(--accent); }
.chip { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 3px; }
.chip--ok { color: var(--ok); background: var(--ok-bg); border: 1px solid currentColor; }

/* agent examples callout (S7) */
.agent-examples {
  font-family: var(--sans);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  color: var(--text-secondary);
  margin: clamp(8px, 1.5vh, 16px) 0 0;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
}
.agent-examples strong { color: var(--accent); font-weight: 600; }

/* ----- flow grid / horizontal stepper (S8, S10) ----- */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: clamp(12px, 2vh, 24px);
}
.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.flow-step:hover { border-color: var(--accent); transform: translateY(-2px); }
.flow-num {
  font-family: var(--mono);
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.flow-title {
  font-family: var(--mono);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  word-spacing: -0.1em;
}
.flow-step p {
  font-family: var(--sans);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}
.flow-connector {
  align-self: center;
  height: 1px;
  width: 100%;
  background: var(--slate);
  position: relative;
}
.flow-connector span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.8s var(--ease) 0.2s;
}
.slide.is-active .flow-connector span { transform: scaleX(1); }
.slide.is-active .flow-connector:nth-of-type(2) span { transition-delay: 0.35s; }
.slide.is-active .flow-connector:nth-of-type(3) span { transition-delay: 0.5s; }

/* ----- scope strip / chips (S8) ----- */
.scope-strip {
  margin-top: clamp(12px, 2vh, 20px);
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  word-spacing: -0.1em;
}
.scope-label { color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; font-size: 11px; margin-right: 8px; }
.scope-chip { padding: 4px 10px; border: 1px solid var(--slate); border-radius: 3px; color: var(--accent); background: var(--accent-bg); }
.scope-sep { color: var(--text-muted); }

/* ----- CTA footer (S11) ----- */
.display--close { font-size: clamp(3rem, 10vw, 8rem); }
.cta-footer {
  margin-top: auto;
  padding-top: clamp(20px, 4vh, 48px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 14px;
}
.cta-contact { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cta-contact a { color: var(--text-primary); border-bottom: 1px solid var(--slate); }
.cta-contact a:hover { border-bottom-color: var(--accent); }
.cta-role { color: var(--text-muted); }
.meta-sep { color: var(--text-muted); }

/* ============================================================
   reveal / entrance animations
   ============================================================ */
[data-reveal], [data-reveal-line] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.slide.is-active [data-reveal],
.slide.is-active [data-reveal-line] {
  opacity: 1;
  transform: translateY(0);
}
.slide.is-active [data-reveal]:nth-of-type(2) { transition-delay: 0.08s; }
.slide.is-active [data-reveal]:nth-of-type(3) { transition-delay: 0.16s; }
.slide.is-active [data-reveal]:nth-of-type(4) { transition-delay: 0.24s; }
.slide.is-active [data-reveal]:nth-of-type(5) { transition-delay: 0.32s; }

.display-word {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.slide.is-active .display-word { opacity: 1; transform: translateY(0); }
.slide.is-active .display-line .display-word:nth-child(1) { transition-delay: 0.04s; }
.slide.is-active .display-line .display-word:nth-child(2) { transition-delay: 0.14s; }

/* terminal line stream-in (S7) */
.term-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.slide.is-active .term-line { opacity: 1; transform: translateY(0); }
.slide.is-active .term-line:nth-child(1) { transition-delay: 0.05s; }
.slide.is-active .term-line:nth-child(2) { transition-delay: 0.4s; }
.slide.is-active .term-line:nth-child(3) { transition-delay: 0.8s; }
.slide.is-active .term-line:nth-child(4) { transition-delay: 1.2s; }

/* ----- overview mode ----- */
html.overview { scroll-snap-type: none; overflow: auto; }
html.overview body { padding: 24px; }
html.overview .chrome, html.overview .toast, html.overview .notes { display: none; }
html.overview .deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
html.overview .slide {
  min-height: 260px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast);
  overflow: hidden;
}
html.overview .slide:hover { border-color: var(--accent); transform: translateY(-3px); }
html.overview .slide-inner { transform: scale(0.28); transform-origin: top left; width: 357%; height: 357%; pointer-events: none; }

/* ----- notes panel ----- */
.notes {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--slate);
  padding: 16px 24px;
  max-height: 32vh;
  overflow-y: auto;
  z-index: 55;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}
.notes.is-visible { transform: translateY(0); }
.notes-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; color: var(--text-secondary); letter-spacing: 0.05em; text-transform: uppercase; }
.notes-counter { color: var(--accent); }
.notes [data-notes-close] { margin-left: auto; font-size: 18px; color: var(--text-secondary); padding: 0 6px; }
.notes [data-notes-close]:hover { color: var(--accent); }
[data-notes] { display: none; }

/* ----- mono word-spacing tightening ----- */
.heading, .step-title, .flow-title, .limit-body h3, .scope-strip,
.llm-names, .hero-meta, .cta-contact, .cta-role, .compare-header {
  word-spacing: -0.1em;
}

/* ----- live / letterbox ----- */
html.live { background: #000; }
html.live body { max-width: 177.77vh; margin: 0 auto; background: var(--bg-dark); }
[data-theme="light"] html.live { background: #D4D8E0; }

/* ============================================================
   reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal-line], .display-word,
  .term-line { opacity: 1; transform: none; }
  .flow-connector span { transform: scaleX(1) !important; }
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 900px) {
  .dots { display: none; }
  .compare { grid-template-columns: 1fr; }
  .compare-divider { display: none; }
  .tile-grid--3x2 { grid-template-columns: 1fr; }
  .tile-grid--2x2 { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-connector { display: none; }
}

/* ============================================================
   print / PDF
   ============================================================ */
@media print {
  html, body { background: var(--bg-dark) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html { scroll-snap-type: none !important; }
  .chrome, .toast, .notes, .help { display: none !important; }
  .slide { min-height: auto; height: 100vh; width: 100vw; page-break-after: always; page-break-inside: avoid; }
  .slide:last-child { page-break-after: auto; }
  [data-reveal], [data-reveal-line], .display-word, .term-line { opacity: 1 !important; transform: none !important; }
  .flow-connector span { transform: scaleX(1) !important; }
  @page { size: landscape; margin: 0; }
}
