/* ============================================================
   STYLE.CSS  -  Unified HAX Presentation Styles
   Dawn Technology Conference 2026  -  V2 (No Reveal.js)
   ============================================================ */

/* ─── Custom Properties ──────────────────────────────── */
:root {
  --ground:        #0B0A09;
  --ground-light:  #12110F;
  --ground-rule:   #1E1C19;
  --ground-subtle: #2A2824;
  --text-primary:  #E8E0D4;
  --text-secondary:#9B9488;
  --text-tertiary: #918A84;
  --accent:        #C2552A;
  --accent-dim:    rgba(194, 85, 42, 0.15);
  --accent-glow:   rgba(194, 85, 42, 0.06);
  --white-08:      rgba(232, 224, 212, 0.08);
  --white-04:      rgba(232, 224, 212, 0.04);
  --white-15:      rgba(232, 224, 212, 0.15);
  --danger:        #C23B2A;
  --success:       #3B8C5A;
  --sans:  "Albert Sans", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono:  "JetBrains Mono", monospace;
  --slide-pad: 56px;
  --gutter: 24px;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: rgba(194, 85, 42, 0.3); color: var(--text-primary); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--ground-subtle); border-radius: 3px; }

html, body {
  background: var(--ground);
  color: var(--text-primary);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

/* ─── Slide Container ────────────────────────────────── */
#slides {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: var(--slide-pad);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.slide.active {
  opacity: 1;
}

.slide.entering {
  opacity: 0;
  animation: slideEnter 0.45s ease forwards;
}

.slide.leaving {
  opacity: 1;
  animation: slideLeave 0.45s ease forwards;
}

@keyframes slideEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideLeave {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ─── Fragments ──────────────────────────────────────── */
[data-fragment-index] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
[data-fragment-index].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Typography ─────────────────────────────────────── */
.hero-title {
  font-family: var(--sans);
  font-size: clamp(48px, 5.5vw, 88px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.slide-title {
  font-family: var(--sans);
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-head {
  font-family: var(--sans);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
}
.slide-subtitle {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 900px;
}
.body-text {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 30px);
  line-height: 1.45;
  color: var(--text-secondary);
}
.def-term {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}
.def-body {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-secondary);
}
.margin-note {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-tertiary);
}
.mono-label {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 500;
}
.text-accent   { color: var(--accent); }
.text-primary  { color: var(--text-primary); }
.text-secondary{ color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-danger   { color: var(--danger); }
.text-success  { color: var(--success); }

/* ─── Components ─────────────────────────────────────── */
.definition-block {
  border-left: 2px solid var(--accent);
  padding: 16px 0 16px 24px;
  margin: 24px 0;
}
.card {
  background: var(--ground-light);
  border: 1px solid var(--ground-rule);
  border-radius: 6px;
  padding: 24px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.card:hover {
  border-color: var(--ground-subtle);
  background: rgba(18, 17, 15, 0.8);
}
.card--interactive {
  cursor: pointer;
}
.card--interactive:hover,
.card--interactive:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
.card--interactive:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.card-title {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.card-subtitle {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Section label */
.section-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.section-label .number { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; color: var(--accent); font-weight: 500; }
.section-label .text { font-family: var(--sans); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 600; }

/* Chapter badge */
.chapter-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 8px 20px;
  border-radius: 3px;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Chapter divider */
.chapter-divider {
  text-align: center;
}

/* ─── Persistent Header ─────────────────────────────── */
.slide-header {
  position: fixed;
  top: 20px;
  left: var(--slide-pad);
  z-index: 100;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* ─── Persistent Footer ─────────────────────────────── */
.slide-footer {
  position: fixed;
  bottom: 20px;
  left: var(--slide-pad);
  z-index: 100;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  opacity: 0.45;
  pointer-events: none;
}

/* ─── Nav Trigger ────────────────────────────────────── */
.nav-trigger {
  position: fixed;
  bottom: 14px;
  right: 120px;
  z-index: 110;
  background: transparent;
  border: 1px solid rgba(155, 148, 136, 0.25);
  border-radius: 5px;
  color: var(--text-tertiary);
  padding: 5px 7px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nav-trigger:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: rgba(194, 85, 42, 0.1);
}

/* ─── Nav Overlay ────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 10, 9, 0.97);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 40px 60px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.nav-close {
  position: fixed;
  top: 20px;
  right: 28px;
  font-size: 28px;
  color: var(--text-tertiary);
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s;
  line-height: 1;
  font-weight: 300;
}
.nav-close:hover {
  color: var(--text-primary);
}
.nav-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 960px;
  width: 100%;
}
.nav-chapter-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(194, 85, 42, 0.25);
  margin-bottom: 6px;
}
.nav-slides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 5px;
}
.nav-slide-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(232, 224, 212, 0.03);
  border: 1px solid rgba(232, 224, 212, 0.06);
  border-radius: 5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}
.nav-slide-btn:hover {
  background: rgba(194, 85, 42, 0.12);
  border-color: var(--accent);
  color: var(--text-primary);
}
.nav-slide-btn.active {
  background: rgba(194, 85, 42, 0.18);
  border-color: var(--accent);
  color: var(--text-primary);
}
.nav-slide-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  min-width: 20px;
  flex-shrink: 0;
}
.nav-slide-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Progress Bar ───────────────────────────────────── */
#hax-progress {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--ground-rule);
  z-index: 100;
  pointer-events: none;
}
#hax-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
  width: 0;
}
#hax-counter {
  position: fixed;
  bottom: 20px; right: var(--slide-pad);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  z-index: 100;
  pointer-events: none;
  opacity: 0.6;
}

/* ─── Canvas containers ──────────────────────────────── */
.canvas-container {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 280px;
}
.canvas-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.bg-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.three-container {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.three-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 10%;
  margin-top: 8px;
}

/* QR / Profile images */
.qr-img { width: 160px; border-radius: 8px; border: 1px solid var(--ground-rule); }
.profile-img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }

/* ────────────────────────────────────────────────────────
   SLIDE-SPECIFIC LAYOUTS
   ──────────────────────────────────────────────────────── */

/* ─── Cover (S1, S35) ────────────────────────────────── */
.cover-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 1;
}
.cover-logo-topright {
  position: absolute;
  top: var(--slide-pad);
  right: var(--slide-pad);
}
.cover-logo { margin-bottom: 32px; }
.cover-content { max-width: 800px; }
.cover-meta {
  position: absolute;
  bottom: var(--slide-pad);
  right: var(--slide-pad);
  display: flex;
  align-items: flex-end;
  gap: 40px;
}
.cover-speaker {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cover-profile-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.cover-speaker-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.cover-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cover-qr .qr-img { width: 120px; }
.cover-mesh-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── ChatGPT Interface (S2) ─────────────────────────── */
.chatgpt-interface {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.chatgpt-circle {
  width: min(275px, 30vw);
  height: min(275px, 30vw);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(180, 220, 255, 0.9) 15%,
    rgba(80, 160, 255, 0.85) 35%,
    rgba(30, 100, 220, 0.8) 55%,
    rgba(10, 50, 150, 0.7) 75%,
    rgba(5, 20, 80, 0.6) 100%);
  box-shadow:
    0 0 30px rgba(80, 160, 255, 0.2),
    0 0 60px rgba(50, 120, 220, 0.12),
    0 0 100px rgba(30, 80, 180, 0.06),
    inset 0 0 40px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: sphere-pulse 4s ease-in-out infinite;
}
.chatgpt-circle::before {
  content: '';
  position: absolute;
  top: -10%; left: -10%;
  width: 120%; height: 120%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 25%,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.08) 30%,
    transparent 60%);
  animation: sphere-shimmer 6s ease-in-out infinite;
}
.chatgpt-circle::after {
  content: '';
  position: absolute;
  bottom: 15%; right: 20%;
  width: 40%; height: 30%;
  border-radius: 50%;
  background: radial-gradient(ellipse,
    rgba(100, 180, 255, 0.15) 0%,
    transparent 70%);
  filter: blur(15px);
  animation: sphere-shimmer 5s ease-in-out 1.5s infinite;
}
.chatgpt-orb-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  mix-blend-mode: soft-light;
  opacity: 0.3;
}
.chatgpt-waveform {
  display: none;
}
.chatgpt-waveform span {
  display: none;
}

.chatgpt-transcript {
  margin-top: 32px;
  text-align: center;
  max-width: 500px;
}
.chatgpt-user-msg {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text-primary);
  min-height: 30px;
  line-height: 1.5;
}
.chatgpt-ai-msg {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text-tertiary);
  margin-top: 16px;
  min-height: 30px;
  line-height: 1.5;
}
.thinking-dots {
  display: inline-flex;
  gap: 4px;
}
.thinking-dots span {
  animation: dot-bounce 1.4s ease-in-out infinite;
  font-size: 24px;
  color: var(--text-tertiary);
}
.thinking-dots span:nth-child(2) { animation-delay: 0.15s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.3s; }

/* ─── Millions Grid (S3) ─────────────────────────────── */
.millions-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.millions-grid {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 4px;
  width: 100vw;
  transform: scale(10);
  transition: transform 3s cubic-bezier(0.22, 1, 0.36, 1);
}
.millions-grid.zoomed-out {
  transform: scale(1);
}
.mini-chatgpt {
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 35%,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(180, 220, 255, 0.85) 15%,
    rgba(80, 160, 255, 0.8) 35%,
    rgba(30, 100, 220, 0.7) 55%,
    rgba(10, 50, 150, 0.6) 75%,
    rgba(5, 20, 80, 0.5) 100%);
  border-radius: 50%;
  border: 1px solid rgba(100, 180, 255, 0.15);
  box-shadow: 0 0 6px rgba(80, 160, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-chatgpt .mini-bars {
  display: none;
}
.mini-chatgpt .mini-bars span {
  display: none;
}

.millions-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(11, 10, 9, 0.7);
  padding: 40px;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  z-index: 2;
}
.millions-overlay.visible { opacity: 1; }

/* ─── Pause / Rewind (S4) ────────────────────────────── */
.rewind-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  cursor: pointer;
  position: relative;
}
.pause-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}
.pause-button:hover { transform: scale(1.05); }
.rewind-effect {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 5;
  overflow: hidden;
}
.rewind-effect.is-active { display: flex; }
.rewind-stage {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
}
.rewind-stage .rewind-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: grayscale(0.5) brightness(0.35) contrast(1.1);
}
.rewind-stage .rewind-frame.active {
  opacity: 1;
}
.rewind-effect .scanlines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(232,224,212,0.03) 2px, rgba(232,224,212,0.03) 4px);
  animation: scanline-scroll 0.15s linear infinite;
  pointer-events: none;
  z-index: 2;
}
.rewind-text {
  text-align: center;
  z-index: 3;
  position: relative;
  padding: 30px 60px;
  background: radial-gradient(ellipse at center, rgba(11,10,9,0.7) 0%, transparent 70%);
  border-radius: 12px;
}
.rewind-text .hero-title { text-shadow: 0 0 80px rgba(194,85,42,0.5), 0 0 40px rgba(194,85,42,0.3); font-size: 5rem; }

/* ─── Statement layout (S12) ─────────────────────────── */
.statement-layout {
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* ─── Paradigm Shifts (S13) ──────────────────────────── */
.paradigm-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
  max-width: 900px;
}
.paradigm-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--white-04);
}
.paradigm-old {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text-tertiary);
  width: 280px;
  text-align: right;
  text-decoration: line-through;
  text-decoration-color: var(--ground-subtle);
}
.paradigm-arrow { color: var(--accent); font-size: 22px; font-weight: 700; }
.paradigm-new {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── Demo cover (S14, S21, S23, S29, S32) ───────────── */
.demo-cover-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}
.demo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
  margin-bottom: 16px;
}

/* ─── Introduction (S11) ─────────────────────────────── */
.intro-layout {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: center;
  height: 100%;
}
.intro-photo { flex-shrink: 0; }
.intro-bio { max-width: 560px; }
.intro-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ─── Slide 16 scrollable ─────────────────────────────── */
#blocks-slide {
  overflow-y: auto;
  justify-content: flex-start;
  padding-top: 32px;
}
/* ─── Blocks grid (S16) ──────────────────────────────── */
.blocks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.block-card {
  text-align: center;
  padding: 16px;
}
.block-detail {
  margin-top: 16px;
  background: var(--ground-light);
  border: 1px solid var(--ground-rule);
  border-radius: 6px;
  padding: 24px;
  display: none;
  animation: fadeUp 0.4s ease;
}
.block-detail.visible {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.block-detail .detail-info { flex: 1; }
.block-detail .detail-items { display: flex; flex-wrap: wrap; gap: 8px; }
.block-detail .detail-chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--white-08);
  padding: 4px 10px;
  border-radius: 3px;
}

/* ─── Foundations grid (S19) ─────────────────────────── */
.foundations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.found-card {
  text-align: center;
  padding: 14px 8px;
  transition: border-color 0.25s, background 0.25s;
}
.found-card.active {
  border-color: var(--accent);
  background: rgba(194,85,42,0.06);
}
.found-detail {
  margin-top: 14px;
  background: var(--ground-light);
  border: 1px solid var(--ground-rule);
  border-radius: 6px;
  padding: 20px 24px;
  display: none;
  animation: fadeUp 0.4s ease;
}
.found-detail.visible {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.found-detail .found-subtitle {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 14px;
  max-width: 560px;
  text-align: center;
  line-height: 1.5;
}
.found-detail .found-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}
.found-detail .found-chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--white-08);
  padding: 4px 10px;
  border-radius: 3px;
}

/* ─── Opaque chatbot (S17) ───────────────────────────── */
.opaque-chatbot {
  width: min(520px, 90vw);
  margin: 24px auto 0;
  background: var(--ground-light);
  border: 1px solid var(--ground-rule);
  border-radius: 8px;
  overflow: hidden;
}
.opaque-messages {
  padding: 16px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.opaque-msg {
  padding: 10px 14px;
  border-radius: 8px;
  max-width: 80%;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  animation: fadeUp 0.3s ease;
}
.opaque-msg.user {
  background: var(--accent-dim);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.opaque-msg.agent {
  background: var(--white-08);
  color: var(--text-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.opaque-msg.error {
  background: rgba(194, 59, 42, 0.12);
  color: var(--danger);
  border: 1px solid rgba(194, 59, 42, 0.2);
}
.opaque-thinking {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  align-self: flex-start;
}
.opaque-thinking span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: dot-bounce 1.4s ease-in-out infinite;
}
.opaque-thinking span:nth-child(2) { animation-delay: 0.15s; }
.opaque-thinking span:nth-child(3) { animation-delay: 0.3s; }

/* ─── Full-viewport Three.js (S18 car, S30 atc) ──────── */
.car-demo-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.car-canvas {
  width: 100%; height: 100%;
}
.car-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.car-overlay-text {
  font-family: var(--sans);
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
  max-width: 700px;
  animation: fadeUp 0.6s ease;
}

/* ─── ATC / AURA Demo (S30) ──────────────────────────── */
.atc-demo-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.atc-canvas {
  width: 100%; height: 100%;
}
.atc-overlay {
  position: absolute;
  bottom: 56px; left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
  text-align: center;
  background: linear-gradient(to top, rgba(11,10,9,0.9) 0%, rgba(11,10,9,0.5) 50%, transparent 100%);
  padding: 80px 56px 24px;
}

/* ─── Interface Primitives (S22) ─────────────────────── */
.primitives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.primitive-card { padding: 20px; }
.primitive-mock {
  background: var(--ground);
  border: 1px solid var(--ground-rule);
  border-radius: 4px;
  padding: 12px;
  margin-top: 12px;
  font-size: 14px;
}
.prim-form-row { margin-bottom: 4px; font-family: var(--mono); font-size: 13px; }
.prim-check { font-family: var(--mono); font-size: 13px; margin-bottom: 4px; }
.prim-step { font-family: var(--mono); font-size: 13px; margin-bottom: 4px; }
.prim-step.done { opacity: 0.6; }
.prim-step.active { color: var(--accent); }
.prim-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.prim-btn {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid var(--ground-rule);
  border-radius: 4px;
  background: var(--ground);
  color: var(--text-secondary);
  cursor: pointer;
}
.prim-btn--approve { border-color: var(--success); color: var(--success); }
.prim-btn--stop { border-color: var(--danger); color: var(--danger); }
.prim-btn--revert { border-color: var(--accent); color: var(--accent); }
.prim-memory { font-family: var(--mono); font-size: 13px; margin-bottom: 6px; }
.prim-action { cursor: pointer; margin-left: 8px; }
.prim-action:hover { color: var(--accent); }
.prim-trace { font-family: var(--mono); font-size: 12px; margin-bottom: 4px; }
.prim-escalation {
  position: relative;
  display: flex;
  gap: 0;
  height: 28px;
}
.esc-level {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--ground-rule);
}
.esc-low { color: var(--success); }
.esc-med { color: var(--accent); }
.esc-high { color: var(--danger); }

/* ─── Org diagram (S24) ──────────────────────────────── */
.org-diagram {
  width: 100%;
  flex: 1;
  min-height: 350px;
}
.org-diagram canvas {
  width: 100%;
  height: 100%;
}

/* ─── Orchestration (S25) ────────────────────────────── */
.orch-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.pattern-card {
  text-align: center;
  padding: 14px;
}
.pattern-card.active {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.pattern-anim-container {
  margin-top: 16px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}
.pattern-anim-container.visible,
.pattern-anim-container.is-visible {
  max-height: 400px;
}
.pattern-anim-container canvas {
  width: 100%;
  height: 320px;
  border-radius: 6px;
  border: 1px solid var(--ground-rule);
}

/* ─── Protocols (S26) ────────────────────────────────── */
.protocol-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.protocol-card canvas {
  width: 100%;
  height: 160px;
  margin-top: 12px;
}

/* ─── Economy (S27) ──────────────────────────────────── */
.economy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.economy-card canvas {
  width: 100%;
  height: 260px;
  margin-top: 12px;
}

/* ─── Governance (S28) ───────────────────────────────── */
.gov-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.gov-stat .stat-value {
  font-family: var(--sans);
  font-size: 52px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number { /* animated counter */ }
.stat-contrast {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-tertiary);
}
.stat-bar {
  width: 100%;
  height: 8px;
  background: var(--ground-rule);
  border-radius: 4px;
  margin-top: 16px;
  overflow: hidden;
}
.stat-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease;
}
.monitoring-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  margin-top: 16px;
}
.mon-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  height: 0;
  transition: height 1.5s ease;
  position: relative;
  min-height: 2px;
}
.mon-bar--high { background: var(--danger); }
.mon-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.stat-small {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}

/* ─── Superintelligence (S31) ────────────────────────── */
.superintelligence-container {
  width: 100%;
  flex: 1;
  min-height: 300px;
}
.superintelligence-container canvas {
  width: 100%;
  height: 100%;
}
.si-concepts {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ─── Checklist (S33) ────────────────────────────────── */
.checklist-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.checklist-bar {
  flex: 1;
  height: 6px;
  background: var(--ground-rule);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.checklist-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0;
  transition: width 0.4s ease;
}
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.checklist-group h4 { margin-bottom: 12px; }
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 0;
}
.hax-check {
  accent-color: var(--accent);
  width: 16px; height: 16px;
}

/* ─── Glossary (S34) ─────────────────────────────────── */
.glossary-search { margin-bottom: 16px; }
.glossary-input {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 14px;
  background: var(--ground-light);
  border: 1px solid var(--ground-rule);
  border-radius: 6px;
  color: var(--text-primary);
  outline: none;
}
.glossary-input:focus { border-color: var(--accent); }
.glossary-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 60vh;
  overflow-y: auto;
}
.glossary-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--ground-light);
}
.glossary-icon { color: var(--accent); font-size: 10px; }
.glossary-term {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.glossary-def {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* ─── Governing cards (S9) ───────────────────────────── */
.governing-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.governing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.governing-card {
  text-align: left;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}
.governing-card.converging {
  opacity: 0;
}
.sphere-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  transform: none;
}
.sphere-container[data-fragment-index].visible {
  opacity: 0;
  transform: none;
}
.sphere-container.active,
.sphere-container[data-fragment-index].visible.active {
  opacity: 1;
  pointer-events: auto;
}
.sphere-label {
  margin-top: 24px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease 0.6s;
}
.sphere-container.active .sphere-label {
  opacity: 1;
}

/* ─── Essence (S10) ──────────────────────────────────── */
#essence-slide {
  align-items: center;
  text-align: center;
}
#essence-slide .section-label {
  justify-content: center;
}
#essence-slide .slide-title {
  margin-bottom: 32px;
}
.essence-statement {
  border-left: none;
  border-top: 2px solid var(--accent);
  padding: 32px 0 0;
  max-width: 900px;
  text-align: center;
}
.essence-statement .body-text {
  font-size: clamp(24px, 2.6vw, 42px);
  line-height: 1.5;
  color: var(--text-secondary);
}
.essence-container {
  width: 100%;
  flex: 1;
  min-height: 300px;
}

/* ─── Balance (S8) ───────────────────────────────────── */
.balance-container {
  width: 100%;
  flex: 1;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.balance-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10%;
  margin-top: 8px;
}

/* ────────────────────────────────────────────────────────
   KEYFRAMES
   ──────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}
@keyframes waveform {
  0%, 100% { height: 8px; }
  25%      { height: 30px; }
  50%      { height: 50px; }
  75%      { height: 20px; }
}
@keyframes sphere-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(80,160,255,0.2), 0 0 60px rgba(50,120,220,0.12), 0 0 100px rgba(30,80,180,0.06), inset 0 0 40px rgba(255,255,255,0.05); }
  50%      { transform: scale(1.02); box-shadow: 0 0 40px rgba(80,160,255,0.25), 0 0 80px rgba(50,120,220,0.15), 0 0 120px rgba(30,80,180,0.08), inset 0 0 50px rgba(255,255,255,0.07); }
}
@keyframes sphere-shimmer {
  0%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
  50%      { opacity: 0.7; transform: translate(5%, 3%) scale(1.05); }
}
@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-8px); opacity: 1; }
}
@keyframes blink-cursor {
  0%, 50% { border-color: var(--accent); }
  51%, 100% { border-color: transparent; }
}
.typewriter-cursor::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink-cursor 1s step-end infinite;
}
@keyframes scanline-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(4px); }
}
@keyframes vhs-glitch {
  0%   { clip-path: inset(40% 0 50% 0); transform: translateX(-4px); }
  20%  { clip-path: inset(60% 0 20% 0); transform: translateX(3px); }
  40%  { clip-path: inset(70% 0 10% 0); transform: translateX(-3px); }
  60%  { clip-path: inset(80% 0 5%  0); transform: translateX(4px); }
  80%  { clip-path: inset(50% 0 30% 0); transform: translateX(-2px); }
  100% { clip-path: inset(45% 0 40% 0); transform: translateX(-3px); }
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1200px) {
  .primitives-grid { grid-template-columns: repeat(2, 1fr); }
  .checklist-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  :root { --slide-pad: 32px; }
  .governing-cards,
  .protocol-cards,
  .gov-stats { grid-template-columns: 1fr; }
  .orch-cards,
  .blocks-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-layout { flex-direction: column; }
  .paradigm-old { width: auto; text-align: left; }
  .glossary-list { grid-template-columns: 1fr; }
}

/* ─── SR only ────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
