:root {
  --surface-base: #f4f0e8;
  --surface-raised: #ffffff;
  --surface-overlay: #f8f6f2;
  --surface-panel: rgba(255, 255, 255, 0.94);
  --surface-soft: #fbfaf7;
  --cyan: #0f5f7a;
  --magenta: #7a3f78;
  --amber: #a05a00;
  --teal: #0f766e;
  --sev-critical: #9f1d20;
  --sev-high: #b45416;
  --sev-medium: #946200;
  --sev-low: #176b4c;
  --text-primary: #071323;
  --text-body: #263646;
  --text-muted: #6a7683;
  --text-dim: #8b949e;
  --text-ghost: #aeb4ba;
  --border-subtle: #e4ded3;
  --border-default: #d8d2c8;
  --border-strong: #bcb4a8;
  --brand-gradient-4: linear-gradient(90deg, #38bdf8 0%, #3b82f6 32%, #7c3aed 66%, #e879f9 100%);
  --brand-gradient-rule: linear-gradient(90deg, rgba(56, 189, 248, 0) 0%, rgba(56, 189, 248, 0.74) 18%, rgba(59, 130, 246, 0.78) 40%, rgba(124, 58, 237, 0.72) 64%, rgba(232, 121, 249, 0.68) 84%, rgba(232, 121, 249, 0) 100%);
  --gradient: var(--brand-gradient-rule);
  --gradient-text: var(--brand-gradient-4);
  --gradient-subtle: linear-gradient(135deg, rgba(6, 26, 47, 0.08) 0%, rgba(15, 95, 122, 0.06) 100%);
  --font-head: 'Inter', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  /* Prospectus slides use translateX(40px) on inactive slides; without
     containing overflow at the root, that creates a 40px horizontal
     scroll on the whole document. */
  overflow-x: hidden;
}
body {
  background:
    linear-gradient(180deg, #fbf8f2 0%, var(--surface-base) 42%, #eee7dc 100%);
  color: var(--text-body);
  font-family: var(--font-body);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.deck { position: relative; width: 100vw; height: 100vh; }
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 60px 100px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s cubic-bezier(0, 0, 0.2, 1), transform 0.5s cubic-bezier(0, 0, 0.2, 1);
  pointer-events: none;
  overflow: hidden;
}
.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  /* Allow vertical scroll on any slide whose content exceeds the
     viewport height (notably .closing-slide on short laptops), so
     nothing important (form, CTA, trust row) gets clipped. */
  overflow-y: auto;
  overscroll-behavior: contain;
}
.slide.prev {
  opacity: 0;
  transform: translateX(-40px);
}

.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 100;
  background: var(--gradient);
  transition: width 0.4s cubic-bezier(0, 0, 0.2, 1);
}
.slide-counter {
  position: fixed; bottom: 28px; right: 40px; z-index: 100;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.08em;
}
.nav-hint {
  position: fixed; bottom: 28px; left: 40px; z-index: 100;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-ghost); letter-spacing: 0.06em;
}
.nav-hint kbd {
  display: inline-block; padding: 2px 6px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-body); background: var(--surface-raised);
}
.nav-hint-arrow {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.nav-hint-arrow kbd {
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.nav-hint-arrow:hover kbd {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}
.nav-hint-arrow:focus-visible {
  outline: none;
}
.nav-hint-arrow:focus-visible kbd {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px;
}
.grad-text,
.title-raxe {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.title-raxe { display: inline-block; }
.deck-logo {
  width: min(240px, 44vw);
  height: auto;
  display: block;
  margin-bottom: 26px;
}
h1 {
  font-family: var(--font-head); font-weight: 900;
  color: var(--text-primary); line-height: 1.08;
  letter-spacing: -0.035em;
}
h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--text-primary); line-height: 1.15;
  letter-spacing: -0.025em; margin-bottom: 20px;
}
h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 18px; color: var(--text-primary);
  letter-spacing: -0.01em; margin-bottom: 8px;
}
.subtitle {
  font-size: 20px; color: var(--text-muted);
  line-height: 1.6; max-width: 760px;
}
.micro {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-dim);
}
.small-note {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}
.quote-lite {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.badge-cyan { background: rgba(15, 95, 122, 0.10); color: var(--cyan); }
.badge-magenta { background: rgba(122, 63, 120, 0.10); color: var(--magenta); }
.badge-amber { background: rgba(160, 90, 0, 0.10); color: var(--amber); }
.badge-teal { background: rgba(15, 118, 110, 0.10); color: var(--teal); }
.badge-red { background: rgba(159, 29, 32, 0.10); color: var(--sev-critical); }

.glass-card {
  background: var(--surface-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
}
.note-panel {
  background: var(--surface-panel);
  box-shadow: 0 18px 60px rgba(7, 19, 35, 0.08);
}
.pill-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 520px;
}
.pill-row .pill {
  display: grid;
  gap: 6px;
  min-height: 62px;
  align-content: center;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--surface-soft);
  color: var(--text-muted);
}
.pill-row .pill strong {
  display: block;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  line-height: 1.1;
  text-transform: uppercase;
}
.pill-row .pill span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.blob-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.10; }
.blob-cyan { background: rgba(15, 95, 122, 0.30); }
.blob-magenta { background: rgba(122, 63, 120, 0.22); }
.slide-content { position: relative; z-index: 1; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-wide { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 48px; align-items: center; }
.cover-layout { align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.check-list { list-style: none; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--text-body);
  margin-bottom: 12px; line-height: 1.5;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 3px;
  border-radius: 50%;
  background: rgba(15, 95, 122, 0.08);
  border: 1.5px solid rgba(15, 95, 122, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8l3 3 5-5' stroke='%230f5f7a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

.panel-card {
  position: relative;
  padding: 20px 18px;
  border-radius: var(--radius-xl);
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
}
.panel-card::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  background: var(--border-strong);
  border-radius: 999px;
  opacity: 0.7;
}
.panel-card.surface-gateway::before { background: var(--cyan); }
.panel-card.surface-sdk::before { background: var(--teal); }
.panel-card.surface-sensor::before { background: var(--magenta); }
.panel-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.product-entry-grid {
  position: relative;
  padding-top: 14px;
}
.product-entry-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--brand-gradient-rule);
  opacity: 0.72;
}

.persona-card {
  min-height: 152px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--surface-panel);
}
.persona-card h3 { font-size: 16px; margin-bottom: 10px; }
.persona-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.flow-shell {
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--surface-overlay);
  border: 1px solid var(--border-default);
  box-shadow: inset 0 0 0 1px rgba(6, 26, 47, 0.02);
}
.flow-grid {
  display: grid;
  grid-template-columns: 1.2fr auto 1fr auto 1.15fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}
.flow-node {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--surface-raised);
}
.flow-node h3 { font-size: 15px; margin-bottom: 8px; }
.flow-node p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
  opacity: 0.85;
}
.code-line {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-body);
  line-height: 1.8;
}
.example-record {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--border-default);
}
.example-record-item {
  min-height: 58px;
  padding: 10px 12px;
  background: var(--surface-raised);
}
.example-record-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.example-record-item strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.35;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.signal-card {
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--surface-panel);
}
.signal-card h3 { font-size: 13px; margin-bottom: 4px; }
.signal-card p {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}
.signal-card .micro { margin-bottom: 4px !important; }

.evidence-output {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  background: var(--border-default);
  border: 1px solid var(--border-default);
}
.evidence-output-item {
  min-height: 64px;
  padding: 11px 12px;
  background: var(--surface-raised);
}
.evidence-output-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.evidence-output-item strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.35;
  word-break: break-word;
}

.decision-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.decision-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.chip-cyan { color: var(--cyan); background: rgba(15, 95, 122, 0.09); border-color: rgba(15, 95, 122, 0.16); }
.chip-teal { color: var(--teal); background: rgba(15, 118, 110, 0.09); border-color: rgba(15, 118, 110, 0.16); }
.chip-amber { color: var(--amber); background: rgba(160, 90, 0, 0.09); border-color: rgba(160, 90, 0, 0.16); }
.chip-red { color: var(--sev-critical); background: rgba(159, 29, 32, 0.09); border-color: rgba(159, 29, 32, 0.16); }
.chip-magenta { color: var(--magenta); background: rgba(122, 63, 120, 0.09); border-color: rgba(122, 63, 120, 0.16); }

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.timeline-step {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--surface-panel);
  min-height: 180px;
}
.timeline-step .step-num {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 95, 122, 0.08);
  border: 1px solid rgba(15, 95, 122, 0.22);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 14px;
}
.timeline-step p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

.stat-box {
  text-align: center;
  padding: 20px 16px;
  border-radius: var(--radius-lg);
  background: var(--gradient-subtle);
  border: 1px solid var(--border-subtle);
}
.stat-value {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.closing-slide {
  justify-content: center;
  padding: 44px 72px;
}
.closing-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 42px;
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--border-default);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 100%),
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.10), transparent 34%),
    radial-gradient(circle at 86% 14%, rgba(232, 121, 249, 0.10), transparent 34%);
  box-shadow: 0 24px 80px rgba(7, 19, 35, 0.10);
}
.closing-board::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--brand-gradient-rule);
  opacity: 0.88;
  z-index: 2;
}
.closing-main {
  min-width: 0;
}
.closing-logo {
  width: 120px;
  height: auto;
  display: block;
  margin-bottom: 22px;
}
.closing-title {
  max-width: 650px;
  margin-bottom: 16px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.closing-title .closing-line {
  display: block;
  color: var(--text-primary);
}
.closing-title .closing-line-muted {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.closing-copy {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.58;
}
.closing-outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
  overflow: hidden;
  border: 0;
  background: transparent;
}
.closing-outcome {
  min-height: 124px;
  padding: 17px 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border-default);
  border-radius: 14px;
}
.closing-outcome span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.closing-outcome strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text-primary);
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.25;
}
.closing-outcome p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.closing-summary {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--cyan);
  background: rgba(15, 95, 122, 0.06);
  color: var(--text-body);
  font-size: 14.5px;
  line-height: 1.55;
}

.closing-connect-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-default);
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(7, 19, 35, 0.12);
}
.closing-connect-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--brand-gradient-rule);
}
.closing-connect-card h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.closing-connect-copy {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.58;
}
.closing-agenda {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}
.agenda-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--border-subtle);
}
.agenda-item span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 95, 122, 0.08);
  border: 1px solid rgba(15, 95, 122, 0.18);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}
.agenda-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-family: var(--font-head);
  font-size: 15px;
}
.agenda-item p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.closing-form-wrap {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border-default);
}
.closing-form-heading {
  margin-bottom: 4px;
  color: var(--text-primary);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
}
.closing-form-sub {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}
.closing-form {
  display: block;
}
.closing-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.closing-input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.closing-input:focus {
  border-color: rgba(15, 95, 122, 0.55);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 95, 122, 0.10);
}
.closing-input::placeholder {
  color: var(--text-ghost);
}
.closing-submit {
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--text-primary);
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
}
.closing-submit:hover {
  background: #0c1d32;
  box-shadow: 0 10px 24px rgba(7, 19, 35, 0.18);
  transform: translateY(-1px);
}
.closing-form-status {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.closing-form-status.success {
  background: rgba(23, 107, 76, 0.08);
  color: var(--sev-low);
  border: 1px solid rgba(23, 107, 76, 0.18);
}
.closing-form-status.error {
  background: rgba(159, 29, 32, 0.08);
  color: var(--sev-critical);
  border: 1px solid rgba(159, 29, 32, 0.18);
}
.closing-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.closing-trust-row span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(15, 95, 122, 0.07);
  border: 1px solid rgba(15, 95, 122, 0.13);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-shell {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--surface-overlay);
  border: 1px solid var(--border-default);
}
.trust-shell .boundary {
  border: 1px dashed rgba(15, 95, 122, 0.28);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-top: 14px;
}
.trust-shell .boundary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.trust-node {
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
}
.trust-node p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   Merge components (2026-04-19) - trace, scorecard, thread,
   boundary diagram, code block, verdict strip, friction tag.
   All ACME-branded example artifacts; no live metrics.
   ═══════════════════════════════════════════════════════════ */

/* ── Entry-stagger animation (CSS-only, slide-activated) ─────
   Auto-staggers direct children of .slide-content so every
   slide gains a gentle cascaded entrance without touching
   the template markup. Also respects manual .anim .d1-.d8 for
   custom sequencing within nested components. ─────────────── */
.slide:not(.active) .slide-content > * {
  opacity: 0;
  transform: translateY(14px);
}
.slide.active .slide-content > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slide.active .slide-content > *:nth-child(1) { transition-delay: 0.06s; }
.slide.active .slide-content > *:nth-child(2) { transition-delay: 0.16s; }
.slide.active .slide-content > *:nth-child(3) { transition-delay: 0.26s; }
.slide.active .slide-content > *:nth-child(4) { transition-delay: 0.36s; }
.slide.active .slide-content > *:nth-child(5) { transition-delay: 0.46s; }
.slide.active .slide-content > *:nth-child(6) { transition-delay: 0.56s; }
.slide.active .slide-content > *:nth-child(7) { transition-delay: 0.66s; }
.slide.active .slide-content > *:nth-child(n+8) { transition-delay: 0.76s; }

/* Opt-in manual stagger for fine-grained sequencing */
.anim {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slide.active .anim { opacity: 1; transform: none; }
.slide.active .anim.d1 { transition-delay: 0.08s; }
.slide.active .anim.d2 { transition-delay: 0.18s; }
.slide.active .anim.d3 { transition-delay: 0.30s; }
.slide.active .anim.d4 { transition-delay: 0.42s; }
.slide.active .anim.d5 { transition-delay: 0.54s; }
.slide.active .anim.d6 { transition-delay: 0.66s; }
.slide.active .anim.d7 { transition-delay: 0.78s; }
.slide.active .anim.d8 { transition-delay: 0.90s; }

/* ── Pulse on live indicators ──────────────────────────────── */
@keyframes raxePulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 95, 122, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(15, 95, 122, 0); }
}
.slide.active .thread-event::before {
  animation: raxePulseDot 2.4s ease-out infinite;
}
.slide.active .thread-event.is-verdict::before {
  animation: raxePulseDotRed 1.8s ease-out infinite;
}
@keyframes raxePulseDotRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(159, 29, 32, 0.42); }
  50% { box-shadow: 0 0 0 6px rgba(159, 29, 32, 0); }
}
.slide.active .thread-event.is-resolved::before {
  animation: raxePulseDotTeal 2.4s ease-out infinite;
}
@keyframes raxePulseDotTeal {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.38); }
  50% { box-shadow: 0 0 0 6px rgba(15, 118, 110, 0); }
}

/* Leak chip pulse (Slide 2 trace card) */
@keyframes raxeLeakPulse {
  0%, 100% { background: rgba(159, 29, 32, 0.05); }
  50% { background: rgba(159, 29, 32, 0.14); }
}
.slide.active .trace-cell.is-leak {
  animation: raxeLeakPulse 2.2s ease-in-out infinite;
}

/* Verdict flash on scorecard (Slide 5 ESCALATE) */
@keyframes raxeVerdictFlash {
  0% { transform: scale(0.96); opacity: 0.6; }
  50% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.slide.active .scorecard-verdict .v-v {
  animation: raxeVerdictFlash 0.9s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  display: inline-block;
}

/* Packet travel in outcomes flow (Slide 9) */
.outcomes-flow-row { position: relative; }
.outcomes-flow-row::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(15, 95, 122, 0.2);
  opacity: 0;
  pointer-events: none;
}
.slide.active .outcomes-flow-row::after {
  animation: raxePacket 5.5s 0.8s ease-in-out infinite;
}
@keyframes raxePacket {
  0% { left: 0; opacity: 0; background: var(--cyan); }
  12% { opacity: 1; }
  38% { left: calc(50% - 5px); background: var(--magenta); box-shadow: 0 0 0 3px rgba(122, 63, 120, 0.24); }
  62% { left: calc(50% - 5px); background: var(--magenta); }
  88% { left: calc(100% - 10px); background: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.24); opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .slide:not(.active) .slide-content > *,
  .slide.active .slide-content > *,
  .anim {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .slide.active .thread-event::before,
  .slide.active .thread-event.is-verdict::before,
  .slide.active .thread-event.is-resolved::before,
  .slide.active .trace-cell.is-leak,
  .slide.active .scorecard-verdict .v-v,
  .slide.active .outcomes-flow-row::after {
    animation: none;
  }
  .slide.active .outcomes-flow-row::after { opacity: 0; }
}


.acme-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(160, 90, 0, 0.08);
  border: 1px solid rgba(160, 90, 0, 0.22);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.acme-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.7;
}

/* ── Slide 2 Gap - gap-layout + prompt-scene lanes ─────────── */
.scene.gap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 700px);
  gap: 48px;
  align-items: center;
}
.gap-list {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}
.gap-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
}
.gap-item:first-child { border-top: 0; padding-top: 0; }
.gap-item .n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.gap-item h4 {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.gap-item p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.prompt-scene {
  width: 100%;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f6efe2 100%);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(7, 19, 35, 0.10);
  overflow: hidden;
  padding: 26px 26px 106px;
}
.prompt-scene .sc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
  gap: 14px;
  flex-wrap: wrap;
}
.prompt-scene .sc-head .pills { display: flex; gap: 6px; flex-shrink: 0; }
.prompt-scene .sc-head .p {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 95, 122, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(15, 95, 122, 0.18);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
}
.prompt-scene .lane {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
}
.prompt-scene .lane .lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.prompt-scene .lane.prompt { background: rgba(15, 95, 122, 0.05); }
.prompt-scene .lane.tool { background: rgba(15, 118, 110, 0.05); }
.prompt-scene .lane.data { background: rgba(160, 90, 0, 0.06); }
.prompt-scene .lane.net { background: rgba(122, 63, 120, 0.05); }
.prompt-scene .lane.expose {
  background: rgba(159, 29, 32, 0.05);
  margin-top: 14px;
}
.prompt-scene .bar {
  position: relative;
  height: 30px;
  background: rgba(7, 19, 35, 0.03);
  border-radius: 6px;
  overflow: hidden;
}
.prompt-scene .bar .event {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 4px;
  background: var(--cyan);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.04em;
  transform: scaleX(0);
  transform-origin: left;
}
.slide.active .prompt-scene .bar .event {
  animation: raxeGapDrawBar 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.slide.active .prompt-scene .bar .event.e2 { animation-delay: 0.4s; }
.slide.active .prompt-scene .bar .event.e3 { animation-delay: 0.8s; }
.slide.active .prompt-scene .bar .event.e4 { animation-delay: 1.2s; }
.slide.active .prompt-scene .bar .event.e5 { animation-delay: 1.6s; }
@keyframes raxeGapDrawBar {
  to { transform: scaleX(1); }
}
.prompt-scene .bar .event.tool { background: var(--teal); }
.prompt-scene .bar .event.data { background: var(--amber); }
.prompt-scene .bar .event.net { background: var(--magenta); }
.prompt-scene .bar .event.block { background: var(--sev-critical); }

.prompt-scene .brace {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  border: 1px dashed rgba(15, 95, 122, 0.4);
  border-radius: 14px;
  background: rgba(15, 95, 122, 0.04);
  padding: 12px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
}
.slide.active .prompt-scene .brace {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease 1.8s, transform 0.6s ease 1.8s;
}
.prompt-scene .brace h5 {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 2px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.prompt-scene .brace p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}
.prompt-scene .brace .badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-gradient-4);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Reduced motion: skip draw-in animation */
@media (prefers-reduced-motion: reduce) {
  .slide.active .prompt-scene .bar .event {
    animation: none !important;
    transform: scaleX(1);
  }
  .slide.active .prompt-scene .brace {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Narrow viewports: stack columns */
@media (max-width: 1180px) {
  .scene.gap-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .prompt-scene { padding-bottom: 128px; }
}

/* ── Slide 3 What Changes - 4 pillars with unique viz per card ── */
.pillars-wrap { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 30px; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pillar {
  position: relative;
  padding: 28px 26px 26px;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  min-height: 300px;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}
.pillar.c1::before { background: var(--cyan); }
.pillar.c2::before { background: var(--magenta); }
.pillar.c3::before { background: var(--amber); }
.pillar.c4::before { background: var(--teal); }
.pillar .num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.pillar h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.pillar p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.pillar .viz { height: 130px; margin-bottom: 18px; position: relative; }

/* 01 Visibility - scanning beam over dot mesh */
.viz-visibility {
  background: linear-gradient(180deg, rgba(15, 95, 122, 0.03), transparent);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.viz-visibility .dots { position: absolute; inset: 0; }
.viz-visibility .dots i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(15, 95, 122, 0.35);
}
.viz-visibility .beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  left: -40px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.35), transparent);
}
.slide.active .viz-visibility .beam { animation: raxePillarScan 2.6s ease-in-out infinite; }
@keyframes raxePillarScan {
  0% { left: -40px; }
  50% { left: calc(100% + 40px); }
  100% { left: calc(100% + 40px); }
}

/* 02 Sovereignty - boundary ring with pulsing core */
.viz-sov { display: grid; place-items: center; position: relative; }
.viz-sov .boundary {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1.5px dashed rgba(122, 63, 120, 0.5);
  display: grid;
  place-items: center;
  position: relative;
}
.viz-sov .boundary .core {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-gradient-4);
  box-shadow: 0 0 0 8px rgba(232, 121, 249, 0.08);
}
.slide.active .viz-sov .boundary { animation: raxePillarBoundarySpin 30s linear infinite; }
.slide.active .viz-sov .core { animation: raxePillarCorePulse 2.8s ease-in-out infinite; }
@keyframes raxePillarBoundarySpin { to { transform: rotate(360deg); } }
@keyframes raxePillarCorePulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(232, 121, 249, 0.06); }
  50% { box-shadow: 0 0 0 14px rgba(232, 121, 249, 0.12); }
}
.viz-sov .cloud-x {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sev-critical);
  opacity: 0.75;
  font-weight: 800;
}

/* 03 Control - three ascending posture bars */
.viz-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: end;
  padding: 10px 0 22px;
}
.viz-control .bar-post {
  background: rgba(160, 90, 0, 0.1);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.viz-control .bar-post.b1 { height: 30%; }
.viz-control .bar-post.b2 { height: 60%; }
.viz-control .bar-post.b3 { height: 92%; background: rgba(160, 90, 0, 0.18); }
.viz-control .bar-post::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: var(--amber);
}
.slide.active .viz-control .bar-post::after { animation: raxePillarFill 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.slide.active .viz-control .bar-post.b2::after { animation-delay: 0.2s; }
.slide.active .viz-control .bar-post.b3::after { animation-delay: 0.4s; }
@keyframes raxePillarFill { to { height: 100%; } }
.viz-control .lbls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--amber);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}

/* 04 Evidence - stacked verdict records */
.viz-evidence {
  padding: 10px 0;
  display: grid;
  gap: 6px;
}
.viz-evidence .rec {
  height: 22px;
  border-radius: 4px;
  background: rgba(15, 118, 110, 0.08);
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-20px);
}
.slide.active .viz-evidence .rec { animation: raxePillarSlideInRec 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.slide.active .viz-evidence .rec:nth-child(2) { animation-delay: 0.15s; }
.slide.active .viz-evidence .rec:nth-child(3) { animation-delay: 0.30s; }
.slide.active .viz-evidence .rec:nth-child(4) { animation-delay: 0.45s; }
@keyframes raxePillarSlideInRec { to { opacity: 1; transform: none; } }
.viz-evidence .rec .st {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  justify-self: end;
}

/* Reduced motion: skip pillar animations */
@media (prefers-reduced-motion: reduce) {
  .slide.active .viz-visibility .beam,
  .slide.active .viz-sov .boundary,
  .slide.active .viz-sov .core,
  .slide.active .viz-control .bar-post::after,
  .slide.active .viz-evidence .rec {
    animation: none !important;
  }
  .slide.active .viz-evidence .rec { opacity: 1; transform: none; }
  .slide.active .viz-control .bar-post::after { height: 100%; }
}

/* Narrow viewports: collapse to 2 columns */
@media (max-width: 1180px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ── Slide 4 Architecture - 3 surfaces + pipeline flow ─────── */
.scene.arch-layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
.surfaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.surface {
  position: relative;
  padding: 26px;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
}
.surface::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.surface.s1::before { background: var(--cyan); }
.surface.s2::before { background: var(--teal); }
.surface.s3::before { background: var(--magenta); }
.surface h3 {
  font-size: 22px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.surface p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}
.surface .tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.surface.s1 .tag-badge { background: rgba(15, 95, 122, 0.08); color: var(--cyan); }
.surface.s2 .tag-badge { background: rgba(15, 118, 110, 0.08); color: var(--teal); }
.surface.s3 .tag-badge { background: rgba(122, 63, 120, 0.08); color: var(--magenta); }
.surf-ill {
  height: 110px;
  margin: 10px 0 16px;
  position: relative;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

/* Gateway illustration - 3 lanes with flowing blue light */
.ill-gateway {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.ill-gateway .ln {
  height: 8px;
  border-radius: 3px;
  background: rgba(15, 95, 122, 0.12);
  position: relative;
  overflow: hidden;
}
.ill-gateway .ln::after {
  content: '';
  position: absolute;
  left: -40%;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), transparent);
}
.slide.active .ill-gateway .ln::after { animation: raxeArchLaneFlow 2.4s linear infinite; }
.slide.active .ill-gateway .ln:nth-child(2)::after { animation-delay: 0.3s; }
.slide.active .ill-gateway .ln:nth-child(3)::after { animation-delay: 0.6s; }
@keyframes raxeArchLaneFlow { 0% { left: -40%; } 100% { left: 120%; } }

/* SDK illustration - code lines fading in */
.ill-sdk {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-primary);
  line-height: 1.6;
}
.ill-sdk .ln { opacity: 0; transform: translateY(6px); }
.slide.active .ill-sdk .ln { animation: raxeArchCodeLn 0.6s forwards; }
.slide.active .ill-sdk .ln:nth-child(1) { animation-delay: 0.2s; }
.slide.active .ill-sdk .ln:nth-child(2) { animation-delay: 0.5s; }
.slide.active .ill-sdk .ln:nth-child(3) { animation-delay: 0.8s; }
@keyframes raxeArchCodeLn { to { opacity: 1; transform: none; } }
.ill-sdk .kw { color: var(--magenta); font-weight: 700; }
.ill-sdk .st { color: var(--teal); }
.ill-sdk .cm { color: var(--text-dim); }

/* Host illustration - container grid with pulsing cells */
.ill-host {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 14px 16px;
}
.ill-host .cell {
  height: 22px;
  border-radius: 4px;
  background: rgba(122, 63, 120, 0.08);
  border: 1px solid rgba(122, 63, 120, 0.18);
  position: relative;
}
.slide.active .ill-host .cell { animation: raxeArchCellPulse 3s ease-in-out infinite; }
.slide.active .ill-host .cell:nth-child(3n+1) { animation-delay: 0.2s; }
.slide.active .ill-host .cell:nth-child(3n+2) { animation-delay: 0.5s; }
@keyframes raxeArchCellPulse {
  0%, 100% { background: rgba(122, 63, 120, 0.08); }
  50% { background: rgba(122, 63, 120, 0.22); }
}
.ill-host .cell.alert {
  background: rgba(159, 29, 32, 0.15);
  border-color: rgba(159, 29, 32, 0.3);
}

/* Pipeline flow */
.pipeline {
  display: grid;
  grid-template-columns: 1fr 30px 1fr 30px 1fr 30px 1fr;
  gap: 0;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--border-default);
  border-radius: 18px;
  background: var(--surface-overlay);
}
.pipe-stage {
  padding: 18px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.pipe-stage .micro { margin-bottom: 10px; }
.pipe-stage h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.25;
}
.pipe-stage p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.pipe-arrow {
  display: grid;
  place-items: center;
  color: var(--cyan);
}
.pipe-arrow svg { width: 20px; height: 20px; opacity: 0.7; }

/* Reduced motion + responsive */
@media (prefers-reduced-motion: reduce) {
  .slide.active .ill-gateway .ln::after,
  .slide.active .ill-sdk .ln,
  .slide.active .ill-host .cell { animation: none !important; }
  .slide.active .ill-sdk .ln { opacity: 1; transform: none; }
}
@media (max-width: 1180px) {
  .surfaces { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .pipe-arrow { transform: rotate(90deg); min-height: 20px; }
}

/* ── Slide 5 Detection - score card + method list ──────────── */
.scene.detect-layout {
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}
.detect-scene {
  width: 520px;
  position: relative;
  background: linear-gradient(180deg, #ffffff, #faf6ed);
  border: 1px solid var(--border-default);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(7, 19, 35, 0.10);
  padding: 28px;
  overflow: hidden;
}
.detect-scene .sc-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}
.detect-scene .sc-title .name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 800;
}
.detect-scene .sc-title .badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-gradient-4);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.detect-scene .signal {
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.detect-scene .signal .sh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.detect-scene .signal .sh .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.detect-scene .signal .sh .sev {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 4px;
}
.detect-scene .signal .desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.detect-scene .signal .mono {
  font-family: var(--font-mono);
  color: var(--text-body);
  background: rgba(7, 19, 35, 0.04);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}
.detect-scene .signal .pb {
  height: 6px;
  background: rgba(7, 19, 35, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.detect-scene .signal .pb i {
  display: block;
  height: 100%;
  border-radius: 4px;
  width: 0;
}
.slide.active .detect-scene .signal .pb i {
  animation: raxeDetPbFill 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.slide.active .detect-scene .signal.s2 .pb i { animation-delay: 0.2s; }
.slide.active .detect-scene .signal.s3 .pb i { animation-delay: 0.4s; }
@keyframes raxeDetPbFill { to { width: var(--pb, 50%); } }
.detect-scene .signal.s1 .pb i { background: var(--cyan); }
.detect-scene .signal.s1 .sh .sev { background: rgba(15, 95, 122, 0.12); color: var(--cyan); }
.detect-scene .signal.s2 .pb i { background: var(--magenta); }
.detect-scene .signal.s2 .sh .sev { background: rgba(122, 63, 120, 0.12); color: var(--magenta); }
.detect-scene .signal.s3 .pb i { background: var(--amber); }
.detect-scene .signal.s3 .sh .sev { background: rgba(160, 90, 0, 0.14); color: var(--amber); }

.detect-scene .verdict {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 95, 122, 0.08), rgba(122, 63, 120, 0.08));
  border: 1px solid rgba(15, 95, 122, 0.18);
  opacity: 0;
  transform: translateY(8px);
}
.slide.active .detect-scene .verdict {
  animation: raxeDetVUp 0.7s 0.9s forwards;
}
@keyframes raxeDetVUp { to { opacity: 1; transform: none; } }
.detect-scene .verdict .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.detect-scene .verdict .row strong {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 700;
}
.detect-scene .verdict .row .val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.detect-scene .verdict .reason {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

.detect-copy h2 { line-height: 1.05; }
.detect-copy ul {
  list-style: none;
  margin-top: 20px;
  padding: 0;
}
.detect-copy ul li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}
.detect-copy ul li:last-child { border-bottom: 0; }
.detect-copy ul li .k {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  background: rgba(15, 95, 122, 0.1);
  color: var(--cyan);
  margin-top: 2px;
}
.detect-copy ul li h4 {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 3px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.detect-copy ul li p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Reduced motion + responsive */
@media (prefers-reduced-motion: reduce) {
  .slide.active .detect-scene .signal .pb i {
    animation: none !important;
    width: var(--pb, 50%);
  }
  .slide.active .detect-scene .verdict {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1180px) {
  .scene.detect-layout { grid-template-columns: 1fr; gap: 32px; }
  .detect-scene { width: 100%; max-width: 520px; }
}

/* ── Slide 6 Evidence / Analyst View - investigation thread + facets ── */
.evidence-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.investigation {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.inv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}
.inv-head .t {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 800;
}
.inv-head h3 {
  font-size: 20px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.inv-head .rid {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  padding: 6px 10px;
  background: rgba(15, 95, 122, 0.08);
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  height: fit-content;
}

.investigation .trace {
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 18px;
}
.investigation .trace::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta), var(--teal));
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
}
.slide.active .investigation .trace::before {
  animation: raxeEvTraceLine 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes raxeEvTraceLine { to { transform: scaleY(1); } }

.investigation .trace .step {
  position: relative;
  padding: 12px 14px 12px 18px;
  border-radius: 10px;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateX(-8px);
}
.slide.active .investigation .trace .step { animation: raxeEvTraceStep 0.5s forwards; }
.slide.active .investigation .trace .step:nth-child(1) { animation-delay: 0.3s; }
.slide.active .investigation .trace .step:nth-child(2) { animation-delay: 0.55s; }
.slide.active .investigation .trace .step:nth-child(3) { animation-delay: 0.80s; }
.slide.active .investigation .trace .step:nth-child(4) { animation-delay: 1.05s; }
.slide.active .investigation .trace .step:nth-child(5) { animation-delay: 1.30s; }
.slide.active .investigation .trace .step:nth-child(6) { animation-delay: 1.55s; }
@keyframes raxeEvTraceStep { to { opacity: 1; transform: none; } }

.investigation .trace .step::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--cyan);
}
.investigation .trace .step.tool::before { border-color: var(--teal); }
.investigation .trace .step.data::before { border-color: var(--amber); }
.investigation .trace .step.verdict::before { border-color: var(--magenta); }
.investigation .trace .step .k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 800;
}
.investigation .trace .step .v {
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
}
.investigation .trace .step .meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.45;
}
.investigation .trace .step.verdict {
  background: rgba(122, 63, 120, 0.05);
  border: 1px solid rgba(122, 63, 120, 0.15);
}

.evidence-facets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}
.facet {
  padding: 18px;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 14px;
}
.facet .hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}
.facet .micro { margin: 0; }
.facet h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.facet p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.facet .mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(122, 63, 120, 0.08);
}
.facet.c1 .micro { color: var(--cyan); }
.facet.c2 .micro { color: var(--magenta); }
.facet.c3 .micro { color: var(--amber); }
.facet.c4 .micro { color: var(--teal); }
.facet.c5 .micro { color: var(--cyan); }
.facet.c6 .micro { color: var(--magenta); }
.facet .platform {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(122, 63, 120, 0.1);
  color: var(--magenta);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Reduced motion + responsive */
@media (prefers-reduced-motion: reduce) {
  .slide.active .investigation .trace::before {
    animation: none !important;
    transform: scaleY(1);
  }
  .slide.active .investigation .trace .step {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1180px) {
  .evidence-layout { grid-template-columns: 1fr; gap: 24px; }
  .evidence-facets { grid-template-columns: 1fr; }
}

/* ── Slide 7 Walkthrough - example flow + traveling packet ─── */
.example-flow {
  padding: 26px;
  border-radius: 22px;
  background: var(--surface-overlay);
  border: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
}
.example-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  gap: 0;
  align-items: stretch;
  position: relative;
}
.ex-node {
  padding: 20px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.ex-node::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
}
.ex-node.n1::after { background: var(--cyan); }
.ex-node.n2::after { background: var(--amber); }
.ex-node.n3::after { background: var(--sev-critical); }
.ex-node.n4::after { background: var(--teal); }
.ex-node .micro { margin-bottom: 10px; }
.ex-node.n1 .micro { color: var(--cyan); }
.ex-node.n2 .micro { color: var(--amber); }
.ex-node.n3 .micro { color: var(--sev-critical); }
.ex-node.n4 .micro { color: var(--teal); }
.ex-node h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.25;
}
.ex-node .code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-body);
  background: rgba(7, 19, 35, 0.04);
  padding: 8px 10px;
  border-radius: 6px;
  margin: 8px 0;
  line-height: 1.5;
  word-break: break-all;
}
.ex-node .code .red { color: var(--sev-critical); }
.ex-node p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.ex-arrow {
  display: grid;
  place-items: center;
  position: relative;
}
.ex-arrow .line {
  width: 100%;
  height: 2px;
  background: var(--border-strong);
  position: relative;
  overflow: hidden;
}
.ex-arrow .line::after {
  content: '';
  position: absolute;
  left: -30%;
  top: 0;
  bottom: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.slide.active .ex-arrow .line::after { animation: raxeExFlow 2s linear infinite; }
.slide.active .example-grid > .ex-arrow:nth-child(4) .line::after { animation-delay: 0.3s; }
.slide.active .example-grid > .ex-arrow:nth-child(6) .line::after { animation-delay: 0.6s; }
@keyframes raxeExFlow { 0% { left: -30%; } 100% { left: 100%; } }

.ex-packet {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--sev-critical);
  box-shadow: 0 6px 20px rgba(159, 29, 32, 0.2);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--sev-critical);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  left: 0;
}
.slide.active .ex-packet { animation: raxeExPacketMove 8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes raxeExPacketMove {
  0%, 10% { left: 0; background: #fff; border-color: var(--cyan); color: var(--cyan); }
  22% { left: calc(25% - 18px); border-color: var(--cyan); color: var(--cyan); }
  30%, 40% { left: calc(25% + 22px); border-color: var(--amber); color: var(--amber); }
  52% { left: calc(50% - 18px); }
  60%, 70% { left: calc(50% + 22px); border-color: var(--sev-critical); color: var(--sev-critical); background: rgba(159, 29, 32, 0.08); }
  82% { left: calc(75% - 18px); }
  90%, 100% { left: calc(75% + 22px); border-color: var(--teal); color: var(--teal); background: rgba(15, 118, 110, 0.06); }
}

.ex-record {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border-default);
}
.ex-record > div { background: #fff; padding: 14px 16px; }
.ex-record .k {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.ex-record .v {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Slide 8 Operating Model - track + postures + chips ─────── */
.scene.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 640px);
  gap: 60px;
  align-items: center;
}
.ops-layout .posture {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 22px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.posture-track {
  position: relative;
  height: 72px;
  margin-bottom: 20px;
}
.posture-track .rail {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 36px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(15, 95, 122, 0.3), rgba(160, 90, 0, 0.3), rgba(15, 118, 110, 0.3));
}
.posture-track .rail-fill {
  position: absolute;
  left: 40px;
  top: 36px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber), var(--teal));
  width: 0;
}
.slide.active .posture-track .rail-fill { animation: raxeOpsRailFill 3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes raxeOpsRailFill { to { width: calc(100% - 80px); } }
.posture-stop {
  position: absolute;
  top: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  color: var(--text-primary);
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.posture-stop.s1 { left: calc(0% - 20px + 40px); border-color: var(--cyan); }
.posture-stop.s2 { left: calc(50% - 20px); border-color: var(--amber); }
.posture-stop.s3 { left: calc(100% - 20px - 40px); border-color: var(--teal); }
.slide.active .posture-stop.s1 { animation: raxeOpsStopPop 0.6s 0.5s both; }
.slide.active .posture-stop.s2 { animation: raxeOpsStopPop 0.6s 1.5s both; }
.slide.active .posture-stop.s3 { animation: raxeOpsStopPop 0.6s 2.5s both; }
@keyframes raxeOpsStopPop {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.posture-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.plabel h4 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.plabel p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.plabel.c1 h4 { color: var(--cyan); }
.plabel.c2 h4 { color: var(--amber); }
.plabel.c3 h4 { color: var(--teal); }
.chips-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.chips-section .micro { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.chip.allow { color: var(--teal); background: rgba(15, 118, 110, 0.08); border-color: rgba(15, 118, 110, 0.18); }
.chip.log { color: var(--cyan); background: rgba(15, 95, 122, 0.08); border-color: rgba(15, 95, 122, 0.18); }
.chip.review { color: var(--amber); background: rgba(160, 90, 0, 0.1); border-color: rgba(160, 90, 0, 0.18); }
.chip.block { color: var(--sev-critical); background: rgba(159, 29, 32, 0.08); border-color: rgba(159, 29, 32, 0.18); }
.chip.escalate { color: var(--magenta); background: rgba(122, 63, 120, 0.08); border-color: rgba(122, 63, 120, 0.18); }

/* ── Slide 9 Executive Outcomes - 4 outcome cards with SVG vizs ── */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.outcome {
  position: relative;
  padding: 28px 24px;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.outcome::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
}
.outcome.c1::before { background: var(--cyan); }
.outcome.c2::before { background: var(--magenta); }
.outcome.c3::before { background: var(--amber); }
.outcome.c4::before { background: var(--teal); }
.outcome .role {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.outcome.c1 .role { color: var(--cyan); }
.outcome.c2 .role { color: var(--magenta); }
.outcome.c3 .role { color: var(--amber); }
.outcome.c4 .role { color: var(--teal); }
.outcome h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.outcome p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.outcome .viz {
  height: 90px;
  margin-top: 20px;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 16px;
  display: flex;
  align-items: center;
}
.role-viz { width: 100%; height: 100%; }

/* ── Slide 10 Sovereignty - layout + boundary diagram ─────── */
.scene.sov-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(560px, 860px);
  gap: 60px;
  align-items: center;
}
.sov-scene {
  position: relative;
  height: 560px;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(7, 19, 35, 0.10);
  padding: 30px;
  overflow: hidden;
}
.sov-scene .outer-lbl {
  position: absolute;
  top: 20px;
  left: 30px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 800;
}
.sov-scene .cloud-lbl {
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sev-critical);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.sov-scene .cloud-lbl::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sev-critical);
}
.sov-scene .boundary-wrap {
  position: absolute;
  left: 30px;
  right: 30px;
  top: 62px;
  bottom: 30px;
  border: 2px dashed rgba(15, 95, 122, 0.35);
  border-radius: 18px;
  background: rgba(15, 95, 122, 0.02);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 24px;
}
.sov-scene .boundary-wrap::before {
  content: 'CUSTOMER CONTROL BOUNDARY';
  position: absolute;
  top: -10px;
  left: 20px;
  padding: 2px 10px;
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  font-weight: 800;
}
.sov-node {
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.sov-node .micro { margin-bottom: 8px; }
.sov-node h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.sov-node p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.sov-node.c1 .micro { color: var(--cyan); }
.sov-node.c2 .micro { color: var(--magenta); }
.sov-node.c3 .micro { color: var(--amber); }
.sov-node.c4 .micro { color: var(--teal); }
.sov-scene .sov-cloud {
  position: absolute;
  top: 70px;
  right: 10px;
  width: 132px;
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(159, 29, 32, 0.06);
  border: 1px dashed rgba(159, 29, 32, 0.3);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--sev-critical);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  transform: translateX(120%);
  line-height: 1.3;
}
.slide.active .sov-scene .sov-cloud { animation: raxeSovPushCloud 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards; }
@keyframes raxeSovPushCloud { to { transform: translateX(0); } }
.sov-scene .sov-cloud::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -30px;
  width: 24px;
  height: 2px;
  background: rgba(159, 29, 32, 0.35);
  transform: translateY(-50%);
}
.sov-scene .sov-cloud strong {
  display: block;
  font-size: 14px;
  color: var(--sev-critical);
  margin-bottom: 2px;
}
.sov-copy ul { list-style: none; margin-top: 18px; padding: 0; }
.sov-copy li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}
.sov-copy li:last-child { border-bottom: 0; }
.sov-copy li::before {
  content: '\2713';
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(15, 95, 122, 0.1);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}
.sov-copy li span {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.55;
}

/* ── Slide 11 Proof of Value - week cards + stat tiles ─────── */
.scene.pov-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.weeks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  margin-top: 28px;
}
.weeks::before {
  content: '';
  position: absolute;
  left: 30px;
  right: 30px;
  top: 48px;
  height: 2px;
  background: var(--border-strong);
  border-radius: 2px;
  z-index: 0;
}
.weeks::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 48px;
  height: 2px;
  background: var(--brand-gradient-4);
  border-radius: 2px;
  z-index: 1;
  width: 0;
}
.slide.active .weeks::after { animation: raxePovWeeksLine 3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards; }
@keyframes raxePovWeeksLine { to { width: calc(100% - 60px); } }
.week {
  position: relative;
  padding: 28px 22px 22px;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  z-index: 2;
  min-height: 220px;
}
.week .wn {
  position: absolute;
  top: -20px;
  left: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--cyan);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan);
  z-index: 3;
}
.week.w2 .wn { border-color: var(--amber); color: var(--amber); }
.week.w3 .wn { border-color: var(--magenta); color: var(--magenta); }
.week.w4 .wn { border-color: var(--teal); color: var(--teal); }
.week .t {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 14px;
  margin-bottom: 12px;
}
.week h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.week p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

.pov-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.pov-stat {
  text-align: center;
  padding: 22px 18px;
  border-radius: 14px;
  background: var(--surface-overlay);
  border: 1px solid var(--border-subtle);
}
.pov-stat .v {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}
.pov-stat .v span {
  background: var(--brand-gradient-4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pov-stat .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 800;
}

/* ── Slide 12 Closing - exec decision + CTA panel ─────────── */
.scene.closing-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 60px;
  align-items: center;
  min-height: 100%;
}
.closing-new h1 {
  font-size: clamp(56px, 6vw, 84px);
  line-height: 0.98;
  margin-bottom: 22px;
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}
.closing-new h1 .line2 {
  display: block;
  background: var(--brand-gradient-4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.closing-new .lede {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 640px;
  margin-bottom: 36px;
}
.closing-new .lede .title-raxe {
  background: var(--brand-gradient-4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
  max-width: 720px;
}
.next-step {
  padding: 20px;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}
.next-step .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.next-step h4 {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.next-step p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

.cta-panel {
  padding: 32px;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(7, 19, 35, 0.12);
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--brand-gradient-4);
}
.cta-panel .hdr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-panel h2 {
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.cta-panel > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}
.cta-panel .agenda { margin-bottom: 22px; }
.cta-panel .agenda-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
}
.cta-panel .agenda-item:first-of-type { border-top: 0; padding-top: 0; }
.cta-panel .agenda-item > span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  font-weight: 800;
  padding-top: 2px;
}
.cta-panel .agenda-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 3px;
  font-weight: 700;
}
.cta-panel .agenda-item p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--brand-gradient-4);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.35);
}
.cta-meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.cta-trust-row {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cta-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cta-trust-row span::before {
  content: '\2713';
  color: var(--teal);
  font-weight: 800;
  font-size: 10px;
}

/* Reduced motion for slides 7-11 */
@media (prefers-reduced-motion: reduce) {
  .slide.active .ex-arrow .line::after,
  .slide.active .ex-packet,
  .slide.active .posture-track .rail-fill,
  .slide.active .posture-stop,
  .slide.active .sov-scene .sov-cloud,
  .slide.active .weeks::after { animation: none !important; }
  .slide.active .posture-track .rail-fill { width: calc(100% - 80px); }
  .slide.active .weeks::after { width: calc(100% - 60px); }
  .slide.active .sov-scene .sov-cloud { transform: none; }
}

/* Responsive stacking for slides 7-12 */
@media (max-width: 1180px) {
  .example-grid { grid-template-columns: 1fr; gap: 12px; }
  .example-grid > .ex-arrow { display: none; }
  .example-grid > .ex-packet { display: none; }
  .ex-record { grid-template-columns: 1fr; }
  .scene.ops-layout { grid-template-columns: 1fr; gap: 32px; }
  .ops-layout .posture { width: 100%; }
  .outcomes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene.sov-layout { grid-template-columns: 1fr; gap: 32px; }
  .sov-scene { height: auto; min-height: 440px; }
  .sov-scene .boundary-wrap { position: relative; left: 0; right: 0; top: 40px; margin-top: 28px; }
  .weeks { grid-template-columns: repeat(2, 1fr); }
  .weeks::before, .weeks::after { display: none; }
  .pov-stats { grid-template-columns: repeat(2, 1fr); }
  .scene.closing-new { grid-template-columns: 1fr; gap: 32px; }
  .next-steps { grid-template-columns: 1fr; }
}

/* ── Trace card (Slide 2, legacy - unused after Gap redesign) ──── */
.trace-card {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--surface-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 30px rgba(7, 19, 35, 0.04);
}
.trace-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-default);
}
.trace-card-id {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.trace-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.trace-cell {
  position: relative;
  padding: 12px 13px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  min-height: 82px;
}
.trace-cell + .trace-cell::before {
  content: '→';
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-ghost);
  font-family: var(--font-mono);
  font-size: 14px;
}
.trace-cell .micro { margin-bottom: 6px; }
.trace-cell .trace-val {
  display: block;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}
.trace-cell.is-leak {
  background: rgba(159, 29, 32, 0.05);
  border-color: rgba(159, 29, 32, 0.22);
}
.trace-cell.is-leak .trace-val {
  color: var(--sev-critical);
  font-weight: 800;
}
.trace-annotate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.trace-annotate span:first-child { text-align: left; }
.trace-annotate span:last-child {
  text-align: right;
  color: var(--sev-critical);
}

/* ── Scorecard (Slide 5) ───────────────────────────────────── */
.scorecard {
  margin-top: 22px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  background: var(--surface-raised);
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(7, 19, 35, 0.06);
}
.scorecard-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border-subtle);
}
.scorecard-hd .scorecard-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
}
.scorecard-body {
  display: grid;
  grid-template-columns: 1fr;
}
.scorecard-row {
  display: grid;
  grid-template-columns: 160px 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.scorecard-row:last-child { border-bottom: 0; }
.scorecard-row .signal-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.scorecard-row .signal-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.signal-score.level-high { color: var(--sev-critical); background: rgba(159, 29, 32, 0.09); border: 1px solid rgba(159, 29, 32, 0.18); }
.signal-score.level-med { color: var(--amber); background: rgba(160, 90, 0, 0.09); border: 1px solid rgba(160, 90, 0, 0.18); }
.signal-score.level-novel { color: var(--magenta); background: rgba(122, 63, 120, 0.09); border: 1px solid rgba(122, 63, 120, 0.18); }
.scorecard-row .signal-explain {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.scorecard-verdict {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: var(--gradient-subtle);
  border-top: 1px solid var(--border-default);
}
.verdict-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.verdict-label .v-k {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.verdict-label .v-v {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--sev-critical);
}
.verdict-latency {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.verdict-latency strong {
  color: var(--text-primary);
  font-weight: 700;
  margin-left: 6px;
}
.scorecard-note {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-soft);
}

/* ── Investigation thread (Slide 6) ────────────────────────── */
.investigation-thread {
  position: relative;
  margin-top: 18px;
  padding: 18px 22px 16px 48px;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 36px rgba(7, 19, 35, 0.05);
}
.investigation-thread-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  margin-left: -26px;
  padding-left: 26px;
  border-bottom: 1px dashed var(--border-default);
}
.investigation-thread-title strong {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.investigation-thread-title span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.thread-events {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.thread-events::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(15, 95, 122, 0.35) 0%, rgba(15, 118, 110, 0.35) 100%);
  border-radius: 2px;
}
.thread-event {
  position: relative;
  padding-bottom: 12px;
}
.thread-event::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 3px rgba(15, 95, 122, 0.10);
}
.thread-event:last-child { padding-bottom: 0; }
.thread-event .thread-ts {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.thread-event strong {
  display: block;
  color: var(--text-primary);
  font-family: var(--font-head);
  font-size: 13px;
  margin-bottom: 2px;
  line-height: 1.3;
}
.thread-event p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}
.thread-event code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-body);
  background: var(--surface-soft);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
}
.thread-event.is-verdict::before {
  border-color: var(--sev-critical);
  box-shadow: 0 0 0 3px rgba(159, 29, 32, 0.12);
}
.thread-event.is-resolved::before {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

/* ── Sealed record (Slide 6 footer) ───────────────────────── */
.sealed-record {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--teal);
}
.sealed-record::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.sealed-record strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ── Boundary diagram (Slide 10) ───────────────────────────── */
.boundary-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 22px;
}
.boundary-side {
  padding: 22px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  background: var(--surface-raised);
  box-shadow: 0 10px 34px rgba(7, 19, 35, 0.05);
}
.boundary-side.is-customer {
  border-color: rgba(15, 118, 110, 0.35);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.04) 0%, rgba(255, 255, 255, 0.96) 70%),
    var(--surface-raised);
}
.boundary-side.is-vendor {
  opacity: 0.68;
  background: var(--surface-soft);
  border-style: dashed;
  position: relative;
}
.boundary-side.is-vendor::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(122, 63, 120, 0.06) 0px,
    rgba(122, 63, 120, 0.06) 6px,
    transparent 6px,
    transparent 12px
  );
  pointer-events: none;
}
.boundary-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.boundary-side.is-customer .boundary-label { color: var(--teal); }
.boundary-side.is-vendor .boundary-label { color: var(--magenta); }
.boundary-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.boundary-item {
  padding: 12px 13px;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
}
.boundary-side.is-vendor .boundary-item {
  background: rgba(232, 226, 216, 0.6);
  text-decoration: line-through;
  text-decoration-color: rgba(122, 63, 120, 0.5);
  text-decoration-thickness: 1.5px;
}
.boundary-item .micro { margin-bottom: 4px; }
.boundary-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.boundary-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  text-align: center;
}
.boundary-divider-x {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sev-critical);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(159, 29, 32, 0.32);
  margin-bottom: 10px;
}
.boundary-divider-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--sev-critical);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Code block (Slide 4) ──────────────────────────────────── */
.code-block {
  margin: 10px 0 12px;
  padding: 12px 14px;
  background: #0f1419;
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: #e4ded3;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.code-block .c-prompt { color: #8b949e; }
.code-block .c-kw { color: #e879f9; }
.code-block .c-fn { color: #38bdf8; }
.code-block .c-str { color: #a9d08e; }

/* ── Verdict strip (Slide 3 Evidence pillar) ───────────────── */
.verdict-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.verdict-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.verdict-strip-item .v-id { color: var(--text-dim); }
.verdict-strip-item .v-act {
  font-weight: 800;
  text-transform: uppercase;
}
.verdict-strip-item.v-review .v-act { color: var(--amber); }
.verdict-strip-item.v-block .v-act { color: var(--sev-critical); }
.verdict-strip-item.v-log .v-act { color: var(--cyan); }
.verdict-strip-item.v-allow .v-act { color: var(--teal); }

/* ── Friction tag (Slide 4 surface cards) ──────────────────── */
.friction-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.friction-tag::before {
  content: '↳';
  color: var(--text-dim);
  font-weight: 700;
}

/* ── NO VENDOR CLOUD mini-tag (Slide 3) ────────────────────── */
.no-cloud-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 4px 9px;
  border-radius: var(--radius-md);
  background: rgba(159, 29, 32, 0.07);
  border: 1px solid rgba(159, 29, 32, 0.2);
  color: var(--sev-critical);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.no-cloud-tag::before { content: '✕'; font-weight: 900; }

/* ═══════════════════════════════════════════════════════════
   Cover HUD (Slide 1 right panel) - EXACT PORT of design bundle
   Source: /Users/mh/Downloads/RAXE Prospectus.html
   Container scaled with `zoom` so inner pixel positions match
   the 960×840 original design. All numbers illustrative (ACME).
   ═══════════════════════════════════════════════════════════ */

.cover-layout.cover-with-hud {
  grid-template-columns: minmax(0, 1fr) minmax(520px, 780px);
  align-items: center;
  gap: 40px;
}

/* Hero viz container - original is 960x840 fixed, we use CSS zoom
   to fit within max-width 780px while preserving all internal
   pixel-based absolute positions exactly as designed. */
.hero-viz {
  position: relative;
  width: 960px;
  height: 840px;
  zoom: 0.8125; /* 780/960 - fits within right column */
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf8 0%, #faf5ea 60%, #f4ecda 100%);
  border: 1px solid var(--border-default);
  box-shadow: inset 0 0 0 1px rgba(7, 19, 35, 0.02), 0 30px 80px rgba(7, 19, 35, 0.12);
  overflow: hidden;
  font-family: var(--font-mono);
}

/* Header bar */
.hero-viz .hv-hd { position: absolute; top: 0; left: 0; right: 0; height: 44px; padding: 0 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--border-subtle); background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)); z-index: 7; }
.hero-viz .hv-hd .ttl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
.hero-viz .hv-hd .ttl strong { color: var(--text-primary); }
.hero-viz .hv-hd .ttl .hv-acme-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 3px; background: rgba(160, 90, 0, 0.14); border: 1px solid rgba(160, 90, 0, 0.32); color: var(--amber); font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; }
.hero-viz .hv-hd .ttl .hv-acme-chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.hero-viz .hv-hd .ttl .hv-ttl-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hero-viz .hv-hd .live { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #16a34a; font-weight: 800; }
.hero-viz .hv-hd .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); animation: raxeHvPulseDot 1.6s infinite; }
@keyframes raxeHvPulseDot {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* HUD strip - 4 metric cards */
.hero-viz .hud { position: absolute; top: 58px; left: 14px; right: 14px; z-index: 6; display: grid; grid-template-columns: 1.25fr minmax(0, 1fr) minmax(0, 1fr) 1.25fr; gap: 10px; pointer-events: none; }
.hero-viz .hud-card { background: rgba(255, 253, 248, 0.97); border: 1px solid var(--border-default); border-radius: 10px; padding: 10px 12px; min-height: 104px; box-shadow: 0 6px 16px rgba(7, 19, 35, 0.06); font-family: var(--font-mono); display: flex; flex-direction: column; gap: 8px; }
.hero-viz .hud-card .hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.hero-viz .hud-card .hd .k { font-size: 8.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.hero-viz .hud-card .hd .pill { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: #16a34a; font-weight: 800; padding: 2px 6px; border-radius: 3px; background: rgba(22, 163, 74, 0.1); white-space: nowrap; }
.hero-viz .hud-card .hd .pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); animation: raxeHvPulseDot 1.6s infinite; }
.hero-viz .hud-card .hd .pill.warn { color: var(--amber); background: rgba(160, 90, 0, 0.1); }
.hero-viz .hud-card .hd .pill.warn::before { background: var(--amber); box-shadow: 0 0 0 0 rgba(160, 90, 0, 0.5); }

.hero-viz .hud-counters { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.hero-viz .hud-counters .row { display: flex; flex-direction: column; gap: 1px; }
.hero-viz .hud-counters .row .l { font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.hero-viz .hud-counters .row .v { font-family: var(--font-head); font-size: 15px; font-weight: 900; letter-spacing: -0.02em; color: var(--text-primary); line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.hero-viz .hud-counters .row .v .tick { font-size: 8px; color: #16a34a; letter-spacing: 0.05em; font-family: var(--font-mono); font-weight: 800; }
.hero-viz .hud-counters .row.ok .v { color: var(--teal); }
.hero-viz .hud-counters .row.warn .v { color: var(--amber); }

.hero-viz .hud-big { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.hero-viz .hud-big .n { font-family: var(--font-head); font-size: 30px; font-weight: 900; letter-spacing: -0.03em; color: var(--text-primary); line-height: 1; display: inline-flex; align-items: baseline; gap: 2px; }
.hero-viz .hud-big .n.cyan { color: var(--cyan); }
.hero-viz .hud-big .n.teal { color: var(--teal); }
.hero-viz .hud-big .unit { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.hero-viz .hud-big .sub { font-size: 9px; color: var(--text-muted); letter-spacing: 0.1em; font-weight: 700; }
.hero-viz .hud-big .bar { width: 100%; height: 5px; border-radius: 3px; background: rgba(7, 19, 35, 0.06); overflow: hidden; margin-top: 5px; position: relative; }
.hero-viz .hud-big .bar .fill { position: absolute; inset: 0; width: 62%; background: var(--brand-gradient-4); border-radius: 3px; animation: raxeHvCovGrow 14s ease-in-out infinite; }
@keyframes raxeHvCovGrow { 0%, 100% { width: 58%; } 50% { width: 66%; } }

.hero-viz .ct { display: inline-block; }

/* Lanes */
.hero-viz .lanes { position: absolute; left: 14px; right: 14px; top: 184px; bottom: 118px; display: grid; grid-template-rows: 1fr 1fr 1fr; gap: 10px; }
.hero-viz .surf { position: relative; border: 1px solid var(--border-subtle); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 253, 248, 0.4)); overflow: hidden; display: grid; grid-template-columns: 154px 1fr 128px; }
.hero-viz .surf.s-app::after, .hero-viz .surf.s-host::after, .hero-viz .surf.s-gw::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.hero-viz .surf.s-app::after { background: var(--teal); }
.hero-viz .surf.s-host::after { background: var(--magenta); }
.hero-viz .surf.s-gw::after { background: var(--cyan); }
.hero-viz .surf-lbl { padding: 10px 14px; border-right: 1px dashed var(--border-subtle); display: flex; flex-direction: column; justify-content: center; gap: 3px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent); }
.hero-viz .surf-lbl .row1 { display: flex; align-items: center; gap: 8px; }
.hero-viz .surf-lbl .glyph { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(15, 95, 122, 0.08); border: 1px solid rgba(15, 95, 122, 0.18); }
.hero-viz .surf-lbl .glyph svg { width: 14px; height: 14px; }
.hero-viz .surf-lbl .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; color: var(--text-primary); }
.hero-viz .surf-lbl .v { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; color: var(--text-muted); line-height: 1.4; margin-top: 2px; }
.hero-viz .surf-lbl .meter { margin-top: 6px; height: 5px; border-radius: 3px; background: rgba(7, 19, 35, 0.06); overflow: hidden; position: relative; }
.hero-viz .surf-lbl .meter::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 60%); background: var(--brand-gradient-4); border-radius: 3px; }
.hero-viz .surf-lbl .mrow { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 8.5px; color: var(--text-muted); letter-spacing: 0.08em; font-weight: 700; margin-top: 3px; }
.hero-viz .surf-lbl .mrow strong { color: var(--text-primary); font-weight: 800; }
.hero-viz .surf-lbl.app .glyph { background: rgba(15, 118, 110, 0.08); border-color: rgba(15, 118, 110, 0.2); color: var(--teal); }
.hero-viz .surf-lbl.host .glyph { background: rgba(122, 63, 120, 0.08); border-color: rgba(122, 63, 120, 0.2); color: var(--magenta); }
.hero-viz .surf-lbl.gw .glyph { background: rgba(15, 95, 122, 0.08); border-color: rgba(15, 95, 122, 0.2); color: var(--cyan); }
.hero-viz .surf-metrics { padding: 9px 12px; border-left: 1px solid var(--border-subtle); background: linear-gradient(270deg, rgba(255, 253, 248, 0.95), rgba(255, 253, 248, 0.7)); border-top-right-radius: 13px; border-bottom-right-radius: 13px; display: grid; grid-template-rows: repeat(3, 1fr); gap: 2px; }
.hero-viz .surf-metrics .mrow { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-family: var(--font-mono); font-size: 8px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.hero-viz .surf-metrics .mrow strong { color: var(--text-primary); font-family: var(--font-head); font-size: 13px; font-weight: 900; letter-spacing: -0.02em; text-transform: none; }
.hero-viz .surf-metrics .mrow strong.teal { color: var(--teal); }
.hero-viz .surf-metrics .mrow strong.cyan { color: var(--cyan); }
.hero-viz .surf-metrics .mrow strong.amber { color: var(--amber); }
.hero-viz .surf-metrics .mrow strong.mag { color: var(--magenta); }
.hero-viz .surf-metrics .mrow strong.red { color: var(--sev-critical); }

.hero-viz .surf-lbl .tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; max-width: 100%; }
.hero-viz .surf-lbl .tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 4px; border-radius: 3px; font-family: var(--font-mono); font-size: 7.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(7, 19, 35, 0.05); color: var(--text-body); border: 1px solid var(--border-subtle); white-space: nowrap; flex-shrink: 0; }
.hero-viz .surf-lbl .tag .d { width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0; }
.hero-viz .surf-lbl .tag.py .d { background: #3776ab; }
.hero-viz .surf-lbl .tag.node .d { background: #43853d; }
.hero-viz .surf-lbl .tag.go .d { background: #00add8; }
.hero-viz .surf-lbl .tag.ts .d { background: #3178c6; }
.hero-viz .surf-lbl .tag.k8s .d { background: #326ce5; }
.hero-viz .surf-lbl .tag.docker .d { background: #2496ed; }
.hero-viz .surf-lbl .tag.systemd .d { background: #30d475; }
.hero-viz .surf-lbl .tag.lambda .d { background: #ff9900; }
.hero-viz .surf-lbl .tag.ec2 .d { background: #ff9900; }
.hero-viz .surf-lbl .tag.openai .d { background: #10a37f; }
.hero-viz .surf-lbl .tag.anth .d { background: #d97757; }
.hero-viz .surf-lbl .tag.bedrock .d { background: #7a3f78; }
.hero-viz .surf-lbl .tag.azure .d { background: #0078d4; }

/* Rails + packets */
.hero-viz .rails { position: relative; overflow: hidden; }
.hero-viz .rail { position: absolute; left: 0; right: 0; height: 50%; display: flex; align-items: center; }
.hero-viz .rail.a { top: 0; }
.hero-viz .rail.b { top: 50%; }
.hero-viz .rail .r-lbl { position: absolute; left: 14px; top: 6px; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; z-index: 2; }
.hero-viz .rail .r-lbl .runtime { margin-left: 6px; padding: 1px 4px; border-radius: 2px; background: rgba(7, 19, 35, 0.05); color: var(--text-body); border: 1px solid var(--border-subtle); }
.hero-viz .pkt { position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--border-default); font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; color: var(--text-primary); white-space: nowrap; box-shadow: 0 2px 6px rgba(7, 19, 35, 0.05); max-width: 180px; will-change: left, opacity; }
.hero-viz .pkt.c-teal, .hero-viz .pkt.c-cyan { animation: raxeHvFlowPass 14s linear infinite, raxeHvVerdictFlashPass 14s linear infinite; }
.hero-viz .pkt.c-amb, .hero-viz .pkt.c-mag { animation: raxeHvFlowPass 14s linear infinite, raxeHvVerdictFlashReview 14s linear infinite; }
.hero-viz .pkt.c-red { animation: raxeHvFlowBlock 14s linear infinite, raxeHvVerdictFlashBlock 14s linear infinite; }
.hero-viz .pkt .dt { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.hero-viz .pkt .posture { margin-left: 2px; padding: 1px 4px; border-radius: 3px; font-size: 8px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid; }
.hero-viz .posture.obs { color: var(--cyan); border-color: rgba(15, 95, 122, 0.3); background: rgba(15, 95, 122, 0.06); }
.hero-viz .posture.sup { color: var(--amber); border-color: rgba(160, 90, 0, 0.3); background: rgba(160, 90, 0, 0.06); }
.hero-viz .posture.enf { color: var(--teal); border-color: rgba(15, 118, 110, 0.3); background: rgba(15, 118, 110, 0.06); }
.hero-viz .posture.blk { color: var(--sev-critical); border-color: rgba(159, 29, 32, 0.3); background: rgba(159, 29, 32, 0.06); }
.hero-viz .pkt .lat { font-family: var(--font-mono); font-size: 8px; color: var(--text-dim); margin-left: 1px; letter-spacing: 0.02em; }
.hero-viz .pkt.c-teal .dt { background: var(--teal); }
.hero-viz .pkt.c-teal { border-color: rgba(15, 118, 110, 0.22); }
.hero-viz .pkt.c-cyan .dt { background: var(--cyan); }
.hero-viz .pkt.c-cyan { border-color: rgba(15, 95, 122, 0.22); }
.hero-viz .pkt.c-amb .dt { background: var(--amber); }
.hero-viz .pkt.c-amb { border-color: rgba(160, 90, 0, 0.3); background: rgba(254, 249, 231, 0.95); }
.hero-viz .pkt.c-mag .dt { background: var(--magenta); }
.hero-viz .pkt.c-mag { border-color: rgba(122, 63, 120, 0.28); }
.hero-viz .pkt.c-red .dt { background: var(--sev-critical); }
.hero-viz .pkt.c-red { border-color: rgba(159, 29, 32, 0.3); background: rgba(253, 238, 238, 0.95); color: var(--sev-critical); }

@keyframes raxeHvFlowPass {
  0% { left: -200px; opacity: 0; }
  6% { left: -160px; opacity: 0; }
  12% { left: -120px; opacity: 1; }
  45% { left: calc(50% - 180px); opacity: 1; }
  55% { left: calc(50% + 70px); opacity: 1; }
  92% { left: calc(100% - 40px); opacity: 1; }
  97% { left: calc(100% + 20px); opacity: 0; }
  100% { left: calc(100% + 40px); opacity: 0; }
}
@keyframes raxeHvFlowBlock {
  0% { left: -200px; opacity: 0; }
  6% { left: -160px; opacity: 0; }
  12% { left: -120px; opacity: 1; }
  45% { left: calc(50% - 180px); opacity: 1; }
  55% { left: calc(50% + 40px); opacity: 1; }
  62% { left: calc(50% + 60px); opacity: 1; transform: translateY(-50%) scale(1.05); }
  78% { left: calc(50% + 60px); opacity: 0.3; transform: translateY(-50%) scale(0.94); }
  100% { left: calc(50% + 60px); opacity: 0; }
}
@keyframes raxeHvVerdictFlashPass {
  0%, 38% { box-shadow: 0 0 0 0 transparent; }
  48% { box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.32); }
  58% { box-shadow: 0 0 0 6px rgba(15, 118, 110, 0); }
  65%, 100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes raxeHvVerdictFlashReview {
  0%, 38% { box-shadow: 0 0 0 0 transparent; }
  48% { box-shadow: 0 0 0 3px rgba(160, 90, 0, 0.35); }
  58% { box-shadow: 0 0 0 6px rgba(160, 90, 0, 0); }
  65%, 100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes raxeHvVerdictFlashBlock {
  0%, 44% { box-shadow: 0 0 0 0 transparent; }
  55% { box-shadow: 0 0 0 5px rgba(159, 29, 32, 0.55); background: rgba(253, 210, 210, 0.98); }
  68% { box-shadow: 0 0 0 10px rgba(159, 29, 32, 0); background: rgba(253, 238, 238, 0.95); }
  75%, 100% { box-shadow: 0 0 0 0 transparent; }
}

/* Gate column */
.hero-viz .gate { position: absolute; top: 184px; bottom: 118px; left: 50%; transform: translateX(-50%); width: 104px; z-index: 4; background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.88)); border: 1px solid var(--border-default); border-radius: 14px; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; padding: 12px 8px; backdrop-filter: blur(3px); box-shadow: 0 8px 24px rgba(7, 19, 35, 0.08); }
.hero-viz .gate .g-top { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cyan); font-weight: 800; text-align: center; line-height: 1; }
.hero-viz .gate .g-mark { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--border-default); box-shadow: 0 6px 16px rgba(7, 19, 35, 0.1); display: grid; place-items: center; font-family: var(--font-head); font-weight: 900; font-size: 22px; letter-spacing: -0.03em; position: relative; flex-shrink: 0; align-self: center; }
.hero-viz .gate .g-mark span { background: var(--brand-gradient-4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-viz .gate .g-mark::after { content: ''; position: absolute; inset: -5px; border: 1px dashed rgba(124, 58, 237, 0.3); border-radius: 20px; animation: raxeHvSpinGate 18s linear infinite; }
@keyframes raxeHvSpinGate { to { transform: rotate(360deg); } }
.hero-viz .gate .g-kpis { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.hero-viz .gate .g-kpis .kpi { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 7px; background: #fff; border: 1px solid var(--border-subtle); min-width: 0; overflow: hidden; text-align: center; }
.hero-viz .gate .g-kpis .kpi strong { font-family: var(--font-head); font-size: 18px; font-weight: 900; letter-spacing: -0.02em; color: var(--text-primary); line-height: 1; }
.hero-viz .gate .g-kpis .kpi span { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; line-height: 1.1; }
.hero-viz .gate .g-kpis .kpi.cy strong { color: var(--cyan); }
.hero-viz .gate .g-kpis .kpi.tl strong { color: var(--teal); }
.hero-viz .gate .g-kpis .kpi.mg strong { color: var(--magenta); }
.hero-viz .gate .g-kpis .kpi.cy { border-top: 2px solid var(--cyan); }
.hero-viz .gate .g-kpis .kpi.tl { border-top: 2px solid var(--teal); }
.hero-viz .gate .g-kpis .kpi.mg { border-top: 2px solid var(--magenta); }

/* Plan + footer */
.hero-viz .plan { position: absolute; left: 14px; right: 14px; bottom: 46px; height: 58px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--border-default); border-radius: 12px; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.hero-viz .plan .pl-ttl { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); font-weight: 800; }
.hero-viz .plan .phase { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-primary); font-weight: 800; }
.hero-viz .plan .phase .c { font-size: 8px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: none; font-weight: 700; }
.hero-viz .plan .phase.amb { color: var(--amber); }
.hero-viz .plan .phase.teal { color: var(--teal); }
.hero-viz .plan .track { flex: 1; height: 10px; border-radius: 6px; background: rgba(7, 19, 35, 0.05); position: relative; overflow: hidden; }
.hero-viz .plan .track .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-gradient-4); border-radius: 6px; width: 62%; animation: raxeHvTrackGrow 14s ease-in-out infinite; }
@keyframes raxeHvTrackGrow { 0%, 100% { width: 58%; } 50% { width: 66%; } }
.hero-viz .plan .track .pin { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--cyan); }
.hero-viz .plan .track.small { flex: 0 0 90px; }
.hero-viz .plan .track.small .fill { width: 32%; animation: none; }
.hero-viz .plan .track.small .pin { border-color: var(--amber); }

.hero-viz .hv-ft { position: absolute; bottom: 0; left: 0; right: 0; height: 36px; padding: 0 22px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-subtle); background: rgba(255, 253, 248, 0.9); z-index: 5; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.hero-viz .hv-ft .legend { display: flex; gap: 14px; }
.hero-viz .hv-ft .legend span { display: inline-flex; align-items: center; gap: 6px; }
.hero-viz .hv-ft .legend .d { width: 7px; height: 7px; border-radius: 50%; }
.hero-viz .hv-ft .legend .d.obs { background: var(--cyan); }
.hero-viz .hv-ft .legend .d.sup { background: var(--amber); }
.hero-viz .hv-ft .legend .d.enf { background: var(--teal); }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-viz .hv-hd .live::before,
  .hero-viz .hud-card .hd .pill::before,
  .hero-viz .hud-big .bar .fill,
  .hero-viz .pkt,
  .hero-viz .gate .g-mark::after,
  .hero-viz .plan .track .fill {
    animation: none !important;
  }
  .hero-viz .pkt { left: 20%; opacity: 0.85; }
}

/* Responsive: stack HUD below on narrow viewports */
@media (max-width: 1280px) {
  .cover-layout.cover-with-hud { grid-template-columns: minmax(0, 1fr); }
  .hero-viz { max-width: 780px; }
}

/* ── Cover proof card (Slide 1 right panel) ────────────────── */
.cover-proof-card { padding: 22px 22px 20px; }
.cover-proof-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-default);
}
.cover-proof-record {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--border-default);
}
.cpr-cell {
  padding: 10px 12px;
  background: var(--surface-raised);
  min-height: 54px;
}
.cpr-cell span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cpr-cell strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
}
.cover-proof-surfaces { margin-top: 0; }
.cover-proof-rollout {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-default);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-body);
  letter-spacing: 0.04em;
}

/* ── Outcomes flow mini-graphic (Slide 9) ──────────────────── */
.outcomes-flow {
  margin-top: 22px;
  padding: 18px 22px;
  background: var(--surface-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 30px rgba(7, 19, 35, 0.04);
}
.outcomes-flow-row {
  display: grid;
  grid-template-columns: 1fr auto 1.1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}
.of-node {
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62px;
}
.of-node .micro { margin-bottom: 4px; }
.of-node strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.35;
}
.of-node.of-app .micro { color: var(--cyan); }
.of-node.of-raxe {
  border-color: rgba(15, 95, 122, 0.3);
  background:
    linear-gradient(180deg, rgba(15, 95, 122, 0.05) 0%, rgba(255, 255, 255, 0.96) 70%),
    var(--surface-raised);
  box-shadow: 0 6px 16px rgba(15, 95, 122, 0.08);
}
.of-node.of-raxe .micro { color: var(--magenta); }
.of-node.of-llm .micro { color: var(--teal); }
.of-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 15px;
  opacity: 0.75;
}
.outcomes-flow-records {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-default);
}
.of-rec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.of-rec::before {
  content: '\2713';
  opacity: 0.7;
}
.of-rec-teal { color: var(--teal); background: rgba(15, 118, 110, 0.08); border: 1px solid rgba(15, 118, 110, 0.2); }
.of-rec-cyan { color: var(--cyan); background: rgba(15, 95, 122, 0.08); border: 1px solid rgba(15, 95, 122, 0.2); }
.of-rec-amber { color: var(--amber); background: rgba(160, 90, 0, 0.08); border: 1px solid rgba(160, 90, 0, 0.2); }
.of-rec-red { color: var(--sev-critical); background: rgba(159, 29, 32, 0.08); border: 1px solid rgba(159, 29, 32, 0.2); }
.of-rec-magenta { color: var(--magenta); background: rgba(122, 63, 120, 0.08); border: 1px solid rgba(122, 63, 120, 0.2); }

/* ── Responsive adjustments for new components ─────────────── */
@media (max-width: 1180px) {
  .boundary-diagram { grid-template-columns: 1fr; }
  .boundary-divider {
    flex-direction: row;
    gap: 12px;
    min-height: 44px;
  }
  .boundary-divider-text {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .trace-card-grid { grid-template-columns: repeat(3, 1fr); }
  .trace-cell + .trace-cell::before {
    display: none;
  }
  .scorecard-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .trace-annotate { grid-template-columns: 1fr; text-align: left !important; }
  .trace-annotate span:last-child { text-align: left; }
}

@media (max-width: 1180px) {
  .outcomes-flow-row { grid-template-columns: 1fr; }
  .of-arrow { transform: rotate(90deg); }
}

@media (max-width: 760px) {
  .trace-card-grid { grid-template-columns: 1fr; }
  .boundary-items { grid-template-columns: 1fr; }
  .investigation-thread { padding-left: 40px; }
  .cover-proof-record { grid-template-columns: 1fr; }
  .outcomes-flow-records { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1180px) {
  .slide { padding: 48px 56px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .closing-slide { padding: 38px 48px; }
  .closing-board {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    gap: 30px;
    padding: 32px;
  }
  .closing-title { max-width: 760px; }
  .split, .split-wide { grid-template-columns: 1fr; gap: 26px; }
  .flow-grid {
    grid-template-columns: 1fr;
  }
  .flow-arrow { transform: rotate(90deg); min-height: 24px; }
}

@media (max-width: 920px) {
  .closing-board {
    grid-template-columns: 1fr;
  }
  .closing-connect-card {
    width: 100%;
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  body { overflow: auto; }
  .slide,
  .slide.active,
  .slide.prev {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
    min-height: auto;
    overflow: visible;
    padding: 32px 22px 64px;
  }
  .deck { height: auto; }
  .progress-bar, .slide-counter, .nav-hint { display: none; }
  .grid-4, .grid-3, .grid-2, .signal-grid, .timeline-grid, .pill-row, .closing-outcomes, .example-record { grid-template-columns: 1fr; }
  .evidence-output { grid-template-columns: 1fr; }
  .trust-shell .boundary-grid { grid-template-columns: 1fr; }
  .subtitle { font-size: 18px; }
  .closing-slide { padding: 32px 20px 72px; }
  .closing-board {
    padding: 24px;
    border-radius: 0;
  }
  .closing-title {
    font-size: clamp(40px, 13vw, 58px);
  }
  .closing-connect-card {
    padding: 22px;
    border-radius: 18px;
  }
  .closing-trust-row span {
    font-size: 8px;
  }
}
