/* ============================================================
   Team of Silicons — niche deck
   Frame chrome, intro/loader/scene, slide-leave/active machinery
   are 1:1 with the original landing presentation.
   ============================================================ */

:root {
  --bg: #ede8e0;
  --bg-2: #e5e0d7;
  --fg: #1a1a1a;
  --fg-muted: #5a5a5a;
  --fg-dim: #8b8b8b;
  --border: #d4cfc7;
  --terminal-bg: #1a1a1a;
  --terminal-fg: #ede8e0;
  --green: #5a9a6b;
  --transition: 0.18s ease;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --c-tech:    #2e6f8e;
  --c-growth:  #b96a3a;
  --c-ops:     #5a7d5a;
  --c-finance: #a06c2a;
  --c-revenue: #7a4d8e;

  --accent: var(--fg);

  --page-pad: clamp(20px, 4vw, 56px);
  --max-w:    min(1720px, 96vw);
  --deck-pad: clamp(20px, 3vw, 48px);
  --nav-h:    clamp(54px, 5.5vw, 64px);
}

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

*:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

@keyframes mount-head-in {
  from { height: 0; transform: translateY(-100%); }
  to   { height: var(--nav-h); transform: translateY(0); }
}
@keyframes mount-head-popdown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
@keyframes mount-shell-pad {
  from {
    max-width: 100vw;
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
  }
  to {
    max-width: var(--max-w);
    padding-top: clamp(16px, 2vw, 28px);
    padding-right: var(--page-pad);
    padding-bottom: clamp(28px, 3.5vw, 52px);
    padding-left: var(--page-pad);
  }
}
@keyframes mount-frame-chrome {
  from { border-color: transparent; box-shadow: 0 0 0 0 rgba(26, 26, 26, 0); }
  to   { border-color: var(--border); box-shadow: 0 28px 80px rgba(26, 26, 26, 0.08); }
}
@keyframes mount-frame-in {
  from { opacity: 0; transform: translateY(10px) scale(0.992); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes mount-controls-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mount-slide-child-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mount-deep-child-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--bg);
  height: 100dvh;
  overflow: hidden;
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

a { color: var(--fg); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.55; }

::selection { background: var(--terminal-bg); color: var(--terminal-fg); }

img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; color: inherit; background: transparent; border: 0; }

.hidden { display: none !important; }

/* ---- Header ---- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  flex-shrink: 0;
  background: rgba(237, 232, 224, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--page-pad);
  gap: 16px;
  overflow: hidden;
  animation: mount-head-in 900ms cubic-bezier(0.2, 0.9, 0.32, 1) 2200ms both;
}
.site-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(14px, 1vw, 16px);
}
.site-logo img { background: var(--terminal-bg); padding: 3px; }
.slide-nav {
  display: flex; gap: clamp(12px, 2vw, 24px); align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.slide-nav::-webkit-scrollbar { display: none; }
.slide-nav a {
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.78vw, 11px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), opacity var(--transition);
}
.slide-nav a:hover { opacity: 1; border-color: var(--fg); }
.slide-nav a.active { border-color: var(--fg); opacity: 1; }
.slide-nav .nav-cta {
  background: var(--terminal-bg);
  color: var(--terminal-fg);
  padding: 8px 14px;
  border: 0;
}
.slide-nav .nav-cta:hover { opacity: 0.85; border: 0; }

/* ---- CTAs ---- */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13px, 1vw, 15px);
  border: 1px solid transparent;
  transition: opacity var(--transition), background var(--transition);
}
.cta i { font-size: 18px; line-height: 1; }
.cta.primary { background: var(--terminal-bg); color: var(--terminal-fg); }
.cta.primary:hover { opacity: 0.88; }
.cta.ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.cta.ghost:hover { background: var(--fg); color: var(--terminal-fg); opacity: 1; }
.cta.tiny { padding: 8px 12px; font-size: 12px; }
.cta.big { padding: 16px 26px; font-size: clamp(14px, 1.1vw, 16px); }
.cta.is-disabled {
  pointer-events: none;
  opacity: 0.38;
  cursor: not-allowed;
}
.cta .kbd-hint {
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-left: 2px;
  opacity: 0.6;
}

/* ============================================================
   Slide 1 — Overview (centered title + capabilities chip row)
   ============================================================ */
.slide-overview {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--deck-pad);
  padding-bottom: var(--deck-pad);
}
.overview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 3vw, 36px);
  width: 100%;
}
.overview-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 96px);
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--fg);
}
.overview-caps {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  /* Mask the edges so anything past the visible area fades out. */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.overview-caps::-webkit-scrollbar { display: none; }
.overview-caps-row {
  display: inline-flex;
  gap: clamp(8px, 0.9vw, 12px);
  flex-wrap: nowrap;
  white-space: nowrap;
  padding: 4px clamp(40px, 6vw, 80px);
  /* No min-width — the row sizes to its content so we can scroll past the
     midpoint in either direction. deck.js centers the scroll position on
     mount / resize. */
}
.cap-chip {
  flex-shrink: 0;
  padding: 9px 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.cap-chip:hover {
  background: var(--bg-2);
  border-color: var(--fg);
}

/* ---- Deck shell + frame ---- */
.deck-shell {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2vw, 28px) var(--page-pad) clamp(28px, 3.5vw, 52px);
  animation: mount-shell-pad 900ms cubic-bezier(0.2, 0.9, 0.32, 1) 2200ms both;
}
.deck-frame {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg);
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(26, 26, 26, 0.08);
  animation:
    mount-frame-in 300ms cubic-bezier(0.2, 0.9, 0.32, 1) both,
    mount-frame-chrome 900ms cubic-bezier(0.2, 0.9, 0.32, 1) 2200ms both;
}

/* ---- Intro ---- */
.deck-intro {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
  padding: var(--page-pad);
  padding-bottom: clamp(180px, 26dvh, 280px);
  text-align: center;
  position: relative;
  z-index: 2;
}
.intro-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800;
  font-size: clamp(14px, 1.2vw, 17px);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  cursor: pointer;
  transition: opacity var(--transition);
  animation: intro-brand-in 360ms cubic-bezier(0.2, 0.9, 0.32, 1.1) 400ms both;
}
.intro-brand:hover { opacity: 0.85; }
.intro-brand img { display: block; background: var(--terminal-bg); padding: 4px; }
@keyframes intro-brand-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.intro-line {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 22ch;
  line-height: 1.25;
  min-height: 1.4em;
  text-align: center;
  animation: intro-line-fade 260ms ease-out 580ms both;
}
@keyframes intro-line-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.intro-text { white-space: pre-wrap; }
.intro-caret {
  display: inline-block;
  width: 0;
  overflow: visible;
  margin-left: 2px;
  font-weight: 400;
  color: var(--fg);
  visibility: hidden;
  animation: caret-blink 1.05s steps(2, jump-none) infinite;
  transition: opacity 220ms ease;
}
.intro-caret.show { visibility: visible; }
.intro-caret.done { visibility: hidden; opacity: 0; animation: none; }
@keyframes caret-blink {
  0%, 50%       { opacity: 1; }
  50.01%, 100%  { opacity: 0; }
}

#btn-show-me {
  opacity: 0;
  transform-origin: 50% 50%;
  position: relative;
  overflow: hidden;
  transition: transform 220ms cubic-bezier(0.34, 1.5, 0.5, 1),
              background-color 220ms ease;
}
#btn-show-me.appear { animation: intro-btn-pop 620ms cubic-bezier(0.34, 1.7, 0.5, 1) both; }
#btn-show-me.appear:hover { transform: translateY(-2px) scale(1.04); background-color: #2d2d2d; }
#btn-show-me.appear:active { transform: translateY(0) scale(0.985); transition-duration: 60ms; }
@keyframes intro-btn-pop {
  0%   { opacity: 0; transform: translateY(8px) scale(0.78); }
  55%  { opacity: 1; transform: translateY(0)   scale(1.06); }
  80%  {              transform: translateY(0)   scale(0.985); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}
#btn-show-me.appear .kbd-hint { animation: kbd-fade 520ms ease 240ms both; }
@keyframes kbd-fade {
  from { opacity: 0;   transform: translateY(2px); }
  to   { opacity: 0.6; transform: translateY(0); }
}

/* ---- Loader ---- */
.deck-loader {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: var(--page-pad);
  padding-bottom: clamp(180px, 26dvh, 280px);
  position: relative;
  z-index: 2;
}
.loader-status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.loader-bar {
  width: min(420px, 70%);
  height: 4px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.loader-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--fg);
  transition: width 0.18s ease-out;
}
.loader-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
}

/* ---- Procedural pixel scene ---- */
.proc-scene {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  /* Scale height with viewport WIDTH (not dvh) so narrow phones don't get a
     squat strip and ultrawide desktops don't get a giant one — the canvas
     re-derives its logical W from cssW/cssH so pixels stay square. */
  height: clamp(110px, 16vw, 240px);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.proc-scene.mounted { opacity: 1; }
.proc-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  object-fit: fill;
}
.proc-scene.hidden { display: none; }
.proc-scene.fade-out { opacity: 0; }

/* ---- Slides ---- */
.deck-slides { flex: 1; min-height: 0; position: relative; }
.slide {
  position: absolute; inset: 0;
  padding: var(--deck-pad);
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: clamp(8px, 1vw, 14px);
}
.slide.active { display: flex; }

.slide.leaving {
  animation: slide-leave 220ms cubic-bezier(0.4, 0, 0.6, 1) both;
  pointer-events: none;
}
@keyframes slide-leave {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}

.slide.active > * {
  animation: mount-slide-child-in 540ms cubic-bezier(0.22, 0.9, 0.32, 1.02) both;
}
.slide.active > *:nth-child(1) { animation-delay:  40ms; }
.slide.active > *:nth-child(2) { animation-delay: 110ms; }
.slide.active > *:nth-child(3) { animation-delay: 180ms; }
.slide.active > *:nth-child(4) { animation-delay: 250ms; }
.slide.active > *:nth-child(5) { animation-delay: 320ms; }
.slide.active > *:nth-child(6) { animation-delay: 390ms; }
.slide.active > *:nth-child(7) { animation-delay: 460ms; }

.slide.active .silicon-define-item,
.slide.active .pillar-row,
.slide.active .ctab,
.slide.active .problems-list > *,
.slide.active .vs-body .vs-row,
.slide.active .step-flow .step-flow-item,
.slide.active .price-split .price-split-block,
.slide.active .price-row .price-card,
.slide.active .try-card > * {
  animation: mount-deep-child-in 460ms cubic-bezier(0.22, 0.9, 0.32, 1.02) both;
}
.slide.active .silicon-define-item:nth-child(1),
.slide.active .pillar-row:nth-child(1),
.slide.active .ctab:nth-child(1),
.slide.active .problems-list > *:nth-child(1),
.slide.active .vs-body .vs-row:nth-child(1),
.slide.active .step-flow .step-flow-item:nth-child(1),
.slide.active .price-split .price-split-block:nth-child(1),
.slide.active .price-row .price-card:nth-child(1),
.slide.active .try-card > *:nth-child(1) { animation-delay: 360ms; }
.slide.active .silicon-define-item:nth-child(2),
.slide.active .pillar-row:nth-child(2),
.slide.active .ctab:nth-child(2),
.slide.active .problems-list > *:nth-child(2),
.slide.active .vs-body .vs-row:nth-child(2),
.slide.active .step-flow .step-flow-item:nth-child(2),
.slide.active .price-split .price-split-block:nth-child(3),
.slide.active .price-row .price-card:nth-child(2),
.slide.active .try-card > *:nth-child(2) { animation-delay: 430ms; }
.slide.active .silicon-define-item:nth-child(3),
.slide.active .pillar-row:nth-child(3),
.slide.active .ctab:nth-child(3),
.slide.active .problems-list > *:nth-child(3),
.slide.active .vs-body .vs-row:nth-child(3),
.slide.active .step-flow .step-flow-item:nth-child(3) { animation-delay: 500ms; }
.slide.active .silicon-define-item:nth-child(4),
.slide.active .pillar-row:nth-child(4),
.slide.active .ctab:nth-child(4),
.slide.active .problems-list > *:nth-child(4),
.slide.active .vs-body .vs-row:nth-child(4),
.slide.active .step-flow .step-flow-item:nth-child(4) { animation-delay: 570ms; }
.slide.active .ctab:nth-child(5),
.slide.active .problems-list > *:nth-child(5),
.slide.active .vs-body .vs-row:nth-child(5),
.slide.active .ctab:nth-child(6),
.slide.active .problems-list > *:nth-child(6),
.slide.active .vs-body .vs-row:nth-child(6) { animation-delay: 710ms; }
.slide.active .vs-body .vs-row:nth-child(7) { animation-delay: 780ms; }
.slide.active .vs-body .vs-row:nth-child(8) { animation-delay: 850ms; }
.slide.active .ctab:nth-child(7),
.slide.active .problems-list > *:nth-child(7) { animation-delay: 780ms; }
.slide.active .ctab:nth-child(8),
.slide.active .problems-list > *:nth-child(8) { animation-delay: 850ms; }
.slide.active .problems-list > *:nth-child(9)  { animation-delay: 920ms; }
.slide.active .problems-list > *:nth-child(10) { animation-delay: 990ms; }
.slide.active .problems-list > *:nth-child(11) { animation-delay: 1060ms; }
.slide.active .problems-list > *:nth-child(12) { animation-delay: 1130ms; }

.slide-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.slide-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 24ch;
}
.slide-title em { font-style: normal; color: inherit; }
.slide-title.big {
  font-size: clamp(28px, 4.2vw, 58px);
  max-width: 18ch;
  line-height: 1.05;
}
.slide-sub {
  color: var(--fg-muted);
  font-size: clamp(13px, 1.15vw, 16px);
  max-width: 64ch;
  line-height: 1.45;
}
.slide-sub.italic { font-style: italic; }
.slide-body {
  font-size: clamp(13px, 1.1vw, 16px);
  max-width: 76ch;
  line-height: 1.5;
}
.slide-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(6px, 0.8vw, 14px); }

/* ---- Slide 4: Silicon anatomy (animated 1-line statement) ---- */
.slide-anatomy { justify-content: center; align-items: center; }
.anatomy-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 40px) 0;
}
.anatomy-statement {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.55;
  text-align: center;
  color: var(--fg);
  max-width: clamp(40ch, 80vw, 56ch);
}
.anatomy-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  white-space: pre;
}
.anatomy-word .accent { color: var(--accent); font-style: italic; }
.slide.active .anatomy-word {
  animation: anatomy-word-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 75ms + 200ms);
}
@keyframes anatomy-word-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .anatomy-word { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ---- Slide 4 legacy (kept for backwards compat) ---- */
.silicon-define {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(16px, 2vw, 28px) 0 clamp(60px, 8vw, 100px);
}

.silicon-define-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.8vw, 40px);
  text-align: left;
  width: 100%;
}
@media (max-width: 980px) {
  .silicon-define-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
@media (max-width: 540px) {
  .silicon-define-list {
    grid-template-columns: 1fr;
  }
}

.silicon-define-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--fg);
}
.silicon-define-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
}
.silicon-define-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.silicon-define-title {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.22;
  color: var(--fg);
}
.silicon-define-body {
  font-size: clamp(13px, 1.05vw, 14.5px);
  line-height: 1.55;
  color: var(--fg-muted);
}

/* ---- Slide 6: Security grid (centered chips, icon + title only) ---- */
.security-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(32px, 3vw, 40px);
}
.security-card { width: clamp(220px, 22vw, 280px); }
@media (max-width: 980px) {
  .security-card { width: calc(50% - 12px); }
}
@media (max-width: 540px) {
  .security-card { width: 100%; }
}
.security-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 2px solid var(--border);
  background: var(--bg);
  transition: border-color var(--transition), transform var(--transition);
}
.security-card:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}
.security-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--fg);
}
.security-card-title {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--fg);
}
.security-card-body {
  font-size: clamp(13px, 1.05vw, 14.5px);
  line-height: 1.5;
  color: var(--fg-muted);
}

/* ---- Slide 7: pillar grid (2x2 cards) ---- */
.pillar-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  width: 100%;
  margin-top: clamp(32px, 3vw, 40px);
}
@media (max-width: 720px) {
  .pillar-stack { grid-template-columns: 1fr; }
}
.pillar-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 30px);
  border: 2px solid var(--border);
  background: var(--bg);
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.pillar-row::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--fg);
}
.pillar-row:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}
.pillar-icon-big {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--fg);
  font-size: 32px;
  flex-shrink: 0;
}
.pillar-title {
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--fg);
}
.pillar-body {
  font-size: clamp(13.5px, 1.1vw, 15.5px);
  line-height: 1.55;
  color: var(--fg-muted);
}

/* D3 chart shell (interactive case-study diagram with zoom/pan/drag) */
.chart-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: clamp(220px, 32dvh, 340px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background:
    linear-gradient(var(--bg-2) 1px, transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg, var(--bg-2) 1px, transparent 1px) 0 0/24px 24px,
    var(--bg);
  overflow: hidden;
}
.chart-mount {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  cursor: grab;
  touch-action: none;
}
.chart-mount:active { cursor: grabbing; }
.chart-mount .d3-svg { display: block; width: 100%; height: 100%; }
.cnode { cursor: grab; }
.cnode:active { cursor: grabbing; }
.chart-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: rgba(237, 232, 224, 0.85);
}

/* Simulation caption banner — floats at the top center of the chart shell. */
.chart-caption {
  position: absolute;
  top: 16px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 9px 18px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.45);
  transition: opacity 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.chart-caption.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.chart-caption.is-reject {
  background: #b85c5c;
}
.chart-caption.is-done {
  background: var(--green);
}
.chart-caption-step {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  padding-right: 12px;
  margin-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}
.chart-help-text { color: var(--fg-dim); }
.chart-help-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.chart-sim-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  font: inherit;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: none;
  transition: opacity var(--transition), transform var(--transition);
}
.chart-sim-btn i { font-size: 14px; line-height: 1; }
.chart-sim-btn:hover { transform: translateY(-1px); }
.chart-sim-btn:active { transform: translateY(0); }
.chart-sim-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.case-chart-shell { min-height: clamp(240px, 36dvh, 380px); }
@media (max-width: 800px) {
  /* Vertical case-study diagrams need vertical room — give the shell most
     of the screen so the rotated flow doesn't collapse into a tiny strip. */
  .case-chart-shell { min-height: clamp(440px, 64dvh, 620px); }
}

/* ---- Slide 2: tabs (numbered, prominent) ---- */
.case-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.case-tabs-center {
  justify-content: center;
  border-bottom: 0;
  padding-bottom: 0;
  margin-top: 0;
}

/* Slide-2 specific: minimal layout, problem statement front and center */
.slide-cases {
  gap: clamp(18px, 2.4vw, 32px);
  padding-top: clamp(28px, 4vw, 48px);
}
.case-problem-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.case-problem-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 700;
  text-align: center;
}
.case-problem-statement {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  text-align: center;
  color: var(--fg);
  max-width: 70ch;
  margin: 0 auto;
}
.ctab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13px, 1.05vw, 14.5px);
  letter-spacing: -0.005em;
  color: var(--fg-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}
.ctab .ctab-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  font-weight: 700;
}
.ctab:hover {
  color: var(--fg);
  border-color: var(--fg);
  transform: translateY(-1px);
}
.ctab:hover .ctab-num { color: var(--fg); }
.ctab.active {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}
.ctab.active .ctab-num { color: var(--bg); opacity: 0.7; }

/* Tight case content area — diagram dominant */
.case-area {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 18px);
  padding-top: clamp(8px, 1vw, 14px);
  padding-bottom: clamp(20px, 3vw, 40px);
}

.case-lede {
  font-style: italic;
  font-weight: 600;
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--fg);
  max-width: 80ch;
}

/* Chart-shell header strip */
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(237, 232, 224, 0.85);
}
.chart-head-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  font-weight: 700;
}
.case-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.legend-key { display: inline-flex; align-items: center; gap: 8px; }
.legend-key .line {
  display: inline-block;
  width: 22px;
  height: 0;
  border-top: 1.5px solid currentColor;
  color: var(--fg);
}
.legend-key.reject { color: #b85c5c; }
.legend-key.reject .line { color: #b85c5c; border-top-style: dashed; }
.legend-key.human { color: var(--fg-dim); }
.legend-key .human-line { color: var(--fg-dim); border-top-style: dotted; border-top-width: 2px; }

/* Compact 3-column row: Problem | Setup | Outcome */
.case-tri {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg);
}
.case-tri-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(12px, 1.4vw, 16px) clamp(14px, 1.6vw, 18px);
  border-left: 1px solid var(--border);
  position: relative;
}
.case-tri-cell:first-child { border-left: 0; }
.case-tri-problem {
  background: var(--bg-2);
}
.case-tri-problem::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.case-tri-outcome::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}
.case-tri-outcome .case-tri-label i { color: var(--accent); }
.case-tri-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 700;
}
.case-tri-label i {
  font-size: 12px;
  color: var(--accent);
}
.case-tri-body {
  font-size: clamp(12.5px, 1vw, 14px);
  line-height: 1.45;
  color: var(--fg);
}
@media (max-width: 720px) {
  .case-tri {
    grid-template-columns: 1fr;
  }
  .case-tri-cell { border-left: 0; border-top: 1px solid var(--border); }
  .case-tri-cell:first-child { border-top: 0; }
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-2);
  padding: 3px 8px;
  border: 1px solid var(--border);
}

/* Centered title + sub variants — used across slides 3-10 */
.slide-title-center {
  align-self: center;
  text-align: center;
  max-width: 32ch;
  margin-top: clamp(20px, 4vw, 56px);
}
.slide-sub-center {
  align-self: center;
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 40px);
}

/* ---- Slide 3: problems grid (4 per row on desktop) ---- */
.problems-list,
.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(32px, 5vw, 72px);
}
@media (max-width: 1100px) {
  .problems-list,
  .problems-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .problems-list,
  .problems-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .problems-list,
  .problems-grid { grid-template-columns: 1fr; }
}

/* Custom problem input row — taller, prominent */
.problems-custom {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--border);
  background: var(--bg);
  margin-top: clamp(16px, 2vw, 24px);
  transition: border-color var(--transition);
}
.problems-custom:focus-within {
  border-color: var(--fg);
}
.problems-custom input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: clamp(20px, 2.2vw, 26px) clamp(18px, 2vw, 22px);
  font: inherit;
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 500;
  color: var(--fg);
  outline: none;
}
.problems-custom input::placeholder {
  color: var(--fg-dim);
  font-weight: 400;
}
.problems-custom-add {
  appearance: none;
  width: clamp(60px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  cursor: pointer;
  font-size: 22px;
  transition: opacity var(--transition);
}
.problems-custom-add:hover { opacity: 0.85; }
.problems-custom-add:disabled,
.problems-custom-add[disabled] {
  background: var(--border);
  color: var(--fg-dim);
  cursor: not-allowed;
}
.problem-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(18px, 2vw, 24px) clamp(18px, 2vw, 22px);
  min-height: clamp(72px, 6vw, 88px);
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--fg);
  font-family: inherit;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--transition),
              border-color var(--transition),
              color var(--transition),
              transform var(--transition),
              box-shadow var(--transition);
}
.problem-chip::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.problem-chip:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.32);
}
.problem-chip:hover::before { transform: scaleY(1); }

.problem-chip .pc-label {
  flex: 1;
  min-width: 0;
}

.problem-chip .pc-box {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  background: transparent;
  transition: background var(--transition), border-color var(--transition);
}
.problem-chip:hover .pc-box { border-color: var(--fg); }
.problem-chip .pc-box i {
  font-size: 16px;
  font-weight: 800;
  color: var(--bg);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.34, 1.6, 0.5, 1);
}

/* SELECTED — whole chip inverts to dark fill with cream text + filled check */
.problem-chip.is-on {
  background: var(--fg);
  color: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.4);
}
.problem-chip.is-on:hover { transform: translateY(-2px); }
.problem-chip.is-on::before { transform: scaleY(1); }
.problem-chip.is-on .pc-box {
  background: var(--bg);
  border-color: var(--bg);
}
.problem-chip.is-on .pc-box i {
  color: var(--fg);
  opacity: 1;
  transform: scale(1);
}

.problems-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-top: auto;
  padding-top: clamp(14px, 1.6vw, 20px);
  padding-bottom: clamp(10px, 1.4vw, 18px);
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: var(--bg);
  z-index: 4;
}
.problems-cta-buttons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.problems-total {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ---- Slide 5: vs Others ---- */
.vs-table {
  width: 100%;
  border: 2px solid var(--border);
  background: var(--bg);
  margin-top: clamp(12px, 2vw, 24px);
}
.vs-head, .vs-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
}
.vs-head {
  background: var(--bg-2);
  border-bottom: 2px solid var(--border);
}
.vs-row + .vs-row {
  border-top: 2px solid var(--border);
}
.vs-cell {
  padding: 14px 18px;
  font-size: clamp(13px, 1.05vw, 15px);
  color: var(--fg);
}
.vs-head .vs-cell {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 700;
}
.vs-cell-silicon, .vs-cell-others {
  text-align: center;
  border-left: 1px solid var(--border);
  font-weight: 700;
}
.vs-cell-silicon { color: var(--accent); }
.vs-cell-others  { color: var(--fg-dim); }
.vs-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 14px;
}
.vs-yes { background: var(--fg); color: var(--bg); }
.vs-no  { background: var(--bg-2); color: var(--fg-dim); border: 1px solid var(--border); }
.vs-text {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 700;
  letter-spacing: -0.005em;
  border-radius: 999px;
  white-space: nowrap;
}
.vs-cell-silicon .vs-text { background: var(--fg); color: var(--bg); }
.vs-cell-others  .vs-text { background: var(--bg-2); color: var(--fg-dim); border: 1px solid var(--border); }
@media (max-width: 540px) {
  /* Tight mobile layout for the vs-table: the "Subscriptions + API" pill
     needs to stay on one line, so we shrink its padding + font, give the
     silicon/others columns more room, and trim cell gutters. */
  .vs-head, .vs-row { grid-template-columns: 1.2fr 1fr 1fr; }
  .vs-cell { padding: 10px 8px; font-size: 12.5px; }
  .vs-text { padding: 4px 8px; font-size: 11px; letter-spacing: 0; }
}

/* ---- Slide 8: step-flow (horizontal connected-dot timeline) ---- */
.step-flow {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 32px);
  margin-top: clamp(32px, 3vw, 40px);
  padding: 0 clamp(8px, 2vw, 24px);
  position: relative;
  width: 100%;
  max-width: 1040px;
  align-self: center;
}
.step-flow::before {
  content: "";
  position: absolute;
  top: clamp(28px, 3vw, 36px);
  left: clamp(60px, 9vw, 110px);
  right: clamp(60px, 9vw, 110px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step-flow-item {
  flex: 1 1 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 1.6vw, 20px);
}
.step-flow-dot {
  width: clamp(56px, 6vw, 72px);
  height: clamp(56px, 6vw, 72px);
  background: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: 0.04em;
  border-radius: 50%;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--border);
  transition: transform var(--transition);
}
.step-flow-item:hover .step-flow-dot { transform: translateY(-3px); }
.step-flow-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(14px, 1.3vw, 19px);
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--fg);
  max-width: 16ch;
}
@media (max-width: 760px) {
  .step-flow {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: clamp(18px, 3vw, 28px);
  }
  .step-flow::before {
    top: 0;
    bottom: 0;
    left: clamp(28px, 6vw, 36px);
    right: auto;
    width: 2px;
    height: auto;
  }
  .step-flow-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 18px;
  }
  .step-flow-title { max-width: none; }
}
.step-flow-eta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  margin-top: clamp(28px, 3.5vw, 44px);
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.05vw, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.step-flow-eta i { font-size: 18px; color: var(--fg); }

/* ---- Slide 8: pricing ---- */
.price-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: 8px;
}
@media (min-width: 900px) { .price-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 32px);
  border: 2px solid var(--border);
  background: var(--bg);
}
.price-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}
.price-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-top: 4px;
}
.price-amount {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.price-sub {
  font-size: clamp(13px, 1vw, 15px);
  color: var(--fg-muted);
  line-height: 1.5;
}
.price-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-2);
  padding: 4px 10px;
  border: 1px solid var(--border);
  margin-top: auto;
}
.guarantee-chip {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid var(--border);
  background: var(--bg-2);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 600;
  margin-top: clamp(12px, 2vw, 24px);
}
.guarantee-chip i { color: var(--green); font-size: 18px; }

.s8-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: clamp(20px, 3vw, 36px);
}

/* ---- Slide 9 (Pricing — minimal) ---- */
.slide-pricing-min {
  align-items: center;
}
/* Spacing mirrors slide 8 (.step-flow): the content block sits flush under
   the title with the same margin-top, and uses the same eta-style gap rhythm
   between the price-split / guarantee-chip / CTA. */
.pricing-min-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 3.5vw, 44px);
  width: min(880px, 100%);
  text-align: center;
  align-self: center;
  margin-top: clamp(32px, 3vw, 40px);
}
.price-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: 100%;
}
.price-split-divider {
  width: 1px;
  height: clamp(140px, 16vw, 180px);
  background: var(--border);
  justify-self: center;
}
.price-split-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(8px, 1vw, 14px);
}
.price-split-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.price-split-amount {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(28px, 5.4vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
  white-space: nowrap;
}
.price-split-sub {
  font-size: clamp(13px, 1vw, 15px);
  color: var(--fg-muted);
  line-height: 1.5;
  max-width: 30ch;
}
@media (max-width: 720px) {
  .price-split {
    grid-template-columns: 1fr;
    gap: clamp(24px, 5vw, 36px);
  }
  .price-split-divider {
    width: 100%;
    height: 1px;
  }
}
.guarantee-chip-big {
  font-size: clamp(15px, 1.6vw, 20px);
  padding: 16px 28px;
}
.guarantee-chip-big i { font-size: 24px; }
.pricing-min-line {
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 56ch;
}

/* ---- Slide 10 (Talk to team — minimal) ---- */
.slide-book-min {
  justify-content: center;
  align-items: center;
}
.book-min-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  max-width: min(960px, 100%);
  text-align: center;
  margin: auto 0;
}
.slide-book-min .slide-title.big {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(20px, 6vw, 58px);
}
.book-min-meta {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}
.book-min-meta span { display: inline-flex; align-items: center; gap: 6px; }
.book-min-meta i { font-size: 16px; color: var(--fg); }
.book-min-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: clamp(8px, 1.4vw, 16px);
}
.book-min-email-label { color: var(--fg-dim); }
.s8-cta-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ---- Slide 9: try-card (mirrors landing's slide 7) ---- */
.try-card {
  margin-top: 14px;
  padding: clamp(22px, 2.6vw, 34px);
  border: 2px solid var(--border);
  background: var(--bg-2);
  display: flex; gap: clamp(16px, 2vw, 32px);
  align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.try-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.try-summary {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
  max-width: 60ch;
}
.try-summary .muted { color: var(--fg-muted); font-style: italic; }
.try-summary li strong { font-weight: 700; }
.slide-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity var(--transition);
}
.slide-link:hover { opacity: 0.65; }
.try-alt {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}
.alt-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  padding: 4px 10px;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg);
  cursor: pointer;
  text-transform: none;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.alt-chip:hover { background: var(--bg-2); opacity: 1; }
.alt-chip i { font-size: 13px; line-height: 1; }
.email-copy .email-icon { transition: transform 220ms cubic-bezier(0.34, 1.5, 0.5, 1); }
.email-copy.copied {
  background: var(--fg);
  color: var(--terminal-fg);
  border-color: var(--border);
}
.email-copy.copied .email-icon { transform: scale(1.15); }

/* ---- Controls ---- */
.deck-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.deck-controls:not(.hidden) {
  animation: mount-controls-in 420ms cubic-bezier(0.2, 0.9, 0.32, 1) both;
}
.ctrl {
  position: relative;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition);
}
.ctrl:hover:not(:disabled) { border-color: var(--border); background: var(--bg-2); }

/* Slide-1 attention treatment on the next-arrow — solid black fill so the
   first-time visitor sees where to go. Pulse kicks in 3s after slide 1 loads
   and stops as soon as they advance. */
#next.attention {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
#next.attention i { color: var(--bg); }
#next.attention.pulsing {
  animation: ctrl-attention-pulse 1.1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transform-origin: center;
}
/* Tight heartbeat — quick pulse then short rest. */
@keyframes ctrl-attention-pulse {
  0%, 55%, 100% { transform: scale(1); }
  25%           { transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  #next.attention.pulsing { animation: none; }
}
.ctrl:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
}
.ctrl i { font-size: 18px; line-height: 1; }
.ctrl-hint {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--terminal-bg);
  color: var(--terminal-fg);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.ctrl-key {
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-left: 4px;
  opacity: 0.75;
}
.ctrl:hover .ctrl-hint,
.ctrl:focus-visible .ctrl-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.counter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ---- Mobile nav collapse ---- */
/* Hide the slide-nav links (overview / case studies / …) once the viewport
   gets tight enough that they'd jam against the logo + CTA. */
@media (max-width: 1400px) {
  .slide-nav > a[data-slide] { display: none; }
}
@media (max-width: 900px) {
  :root { --nav-h: clamp(50px, 14vw, 60px); }
  .site-head { padding: 0 16px; gap: 10px; }
  .slide-nav { gap: 0; flex-shrink: 0; }
  .slide-nav .nav-cta {
    padding: 7px 12px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-mono);
  }
  .site-logo { font-size: 14px; gap: 8px; min-width: 0; }
  .site-logo span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
/* Below 1000px, the prev/next chrome shouldn't gain hover styles or show the
   floating Back/Next tooltip — touch devices don't have a meaningful hover. */
@media (max-width: 1000px) {
  .ctrl:hover:not(:disabled) { border-color: var(--border); background: transparent; }
  .ctrl-hint { display: none; }
}
@media (max-width: 380px) {
  .site-logo span { display: none; }
}
@media (max-width: 900px) {
  /* Edge-to-edge slides on mobile + tablet — drop the viewport padding so
     content (charts, tables, tile grids) can reach the screen edges. Text
     elements keep a small inline cushion so they don't kiss the bezel. */
  .slide {
    padding-left: 0;
    padding-right: 0;
    padding-top: clamp(12px, 2.4vw, 24px);
    padding-bottom: clamp(12px, 2.4vw, 24px);
  }
  .slide-title,
  .slide-sub,
  .slide-title-center,
  .slide-sub-center,
  .slide-eyebrow,
  .slide-body {
    padding-left: 14px;
    padding-right: 14px;
  }
  /* Center-aligned content blocks stay flush with the slide edges. */
  .problems-list,
  .problems-grid,
  .vs-table,
  .security-grid,
  .pillar-stack,
  .step-flow,
  .price-row,
  .anatomy-wrap,
  .pricing-min-block,
  .book-min-block,
  .case-tabs,
  .case-problem-block,
  .chart-shell {
    padding-left: 14px;
    padding-right: 14px;
  }
  /* Slide-3 CTA strip needs the same gutter as the rest. */
  .problems-custom,
  .problems-cta { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 540px) {
  .slide-title.big { font-size: clamp(28px, 9vw, 42px); }
}

/* ============================================================
   Mobile UX polish — applies everywhere, harmless on desktop.
   Kills tap flashes, sizes touch targets, respects safe areas,
   prevents iOS auto-zoom on focus, and gives every interactive
   element a visible pressed state.
   ============================================================ */

* { -webkit-tap-highlight-color: transparent; }

/* Avoid pull-to-refresh ripping the user out of the deck mid-swipe. */
html, body { overscroll-behavior: contain; }

/* iOS zooms-in on inputs with font-size < 16px. Always ≥16 on inputs. */
input, textarea, select { font-size: 16px; }

/* Visible pressed state on every interactive control. Quick and snappy. */
.cta:active:not(:disabled),
.ctrl:active:not(:disabled),
.cap-chip:active,
.problem-chip:active,
.ctab:active,
.security-card:active,
.niche-tile:active,
.email-copy:active {
  transform: scale(0.97);
  transition: transform 80ms ease-out;
}

/* Mobile: collapse the shell padding and frame chrome so the slides span
   the entire viewport — no margin / border / shadow eating screen real-estate.
   `animation: none` on the shell + frame cancels the mount-shell-pad and
   mount-frame-chrome keyframes that would otherwise animate the padding /
   border back in at the 2.2s mark. */
@media (max-width: 768px) {
  .deck-shell {
    padding: 0;
    max-width: none;
    animation: none;
  }
  .deck-frame {
    border: 0;
    box-shadow: none;
    animation: mount-frame-in 300ms cubic-bezier(0.2, 0.9, 0.32, 1) both;
  }
  /* No keyboard on mobile → hide every "[↵]" Enter-shortcut hint. */
  .kbd-hint { display: none; }
  /* The intro hook deserves more real-estate when the viewport is small —
     desktop clamp bottoms out at 20px which feels timid on a phone. */
  .intro-line {
    font-size: clamp(26px, 6.4vw, 38px);
    max-width: 18ch;
  }

  /* Respect iPhone safe-areas: notch on top, home-indicator on bottom.
     Header height grows to absorb the inset so logo/CTA don't slide under. */
  .site-head {
    padding-top: env(safe-area-inset-top, 0);
    padding-left: max(16px, env(safe-area-inset-left, 0));
    padding-right: max(16px, env(safe-area-inset-right, 0));
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0));
    box-sizing: content-box;
  }
  .deck-controls {
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
    padding-left: max(12px, env(safe-area-inset-left, 0));
    padding-right: max(12px, env(safe-area-inset-right, 0));
  }

  /* Bigger thumb-friendly tap targets. Apple HIG: 44pt. We give 48. */
  .ctrl { width: 48px; height: 48px; }
  .ctrl i { font-size: 22px; }
  .problem-chip { min-height: 48px; }
  .cap-chip { min-height: 36px; }
  .cta.primary,
  .cta { min-height: 48px; }
  .ctab { min-height: 40px; }

  /* Suppress native text-selection during a swipe so iOS doesn't show the
     loupe / selection handles mid-gesture. */
  .deck-slides { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

  /* Slide transition: shorter on phones so the leave doesn't feel laggy
     against a finger flick. */
  .slide.leaving { animation-duration: 160ms; }
}

/* Stricter reduced-motion: kill the heavy decoration animations across the
   board so iOS Lower Power Mode / accessibility users get a clean ride. */
@media (prefers-reduced-motion: reduce) {
  .deck-shell, .deck-frame, .deck-controls,
  .niche-tile, .step-flow-item, .step-flow-dot,
  .anatomy-word, .cap-chip, .price-split-block,
  .security-card, .pillar-row, .vs-row,
  .proc-scene, #next.attention.pulsing {
    animation: none !important;
    transition: none !important;
  }
}

/* ---- Deep-link / instant-reveal ---- */
.instant-reveal .deck-shell { animation: none; }
.instant-reveal .deck-frame { animation: mount-frame-in 300ms cubic-bezier(0.2, 0.9, 0.32, 1) both; }
.instant-reveal .site-head {
  height: var(--nav-h);
  animation: mount-head-popdown 380ms cubic-bezier(0.2, 0.9, 0.32, 1) 180ms both;
}

@media (prefers-reduced-motion: reduce) {
  .site-head,
  .site-head > *,
  .deck-frame,
  .deck-controls:not(.hidden),
  .slide.active > *,
  .slide.leaving,
  .slide.active .silicon-define-item,
  .slide.active .pillar-row,
  .slide.active .ctab,
  .slide.active .problems-list > *,
  .slide.active .vs-body .vs-row,
  .slide.active .step-flow .step-flow-item,
  .slide.active .price-row .price-card,
  .slide.active .try-card > *,
  .intro-brand,
  .intro-line {
    animation: none !important;
  }
}
