/* ---------------------------------------------------------------
   Memnis — partnership brief
   Full-screen slides, keyboard navigation, no external deps.
   --------------------------------------------------------------- */

:root {
  --bg:            #0a0d12;
  --bg-grid:       #0d1118;
  --surface:       #11151c;
  --surface-2:     #161b24;
  --surface-3:     #1c2230;
  --border:        #1f2632;
  --border-2:      #2a3344;
  --text:          #e6ecf3;
  --text-2:        #b3bcc9;
  --text-3:        #8a94a5;
  --text-4:        #5a6373;
  --accent:        #3B82F6;
  --accent-dim:    #1d4ed8;
  --accent-deep:   #1e3a8a;
  --signal:        #f0b429;
  --alert:         #f87171;
  --ok:            #6ee7b7;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono",
               "Roboto Mono", Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.7,.0,.2,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  animation: bodyFade 0.4s var(--ease);
}
@keyframes bodyFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  background-color: var(--bg);
  background-image: url("photo-world.avif");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background:
    radial-gradient(ellipse at 18% 12%, rgba(59, 130, 246, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 88%, rgba(30, 58, 138, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at center, rgba(10, 13, 18, 0.72) 0%, rgba(10, 13, 18, 0.90) 100%);
  pointer-events: none;
  z-index: 0;
}


::selection { background: var(--accent); color: var(--bg); }

/* ---------- Deck ---------- */

.deck {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.85s var(--ease);
  will-change: transform;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 7vh 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
  pointer-events: none;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0s;
}

/* ---------- HUD ---------- */

.hud {
  position: fixed;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-4);
  text-transform: uppercase;
}

.hud .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hud .mark {
  width: 36px;
  height: 36px;
  display: block;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.35));
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.hud .brand:hover .mark {
  transform: scale(1.08);
  filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.55));
}
.hud .brand { gap: 14px; }
.hud .counter { color: var(--text-2); }
.hud .nav-hint { color: var(--text-4); }
.hud .nav-hint kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--border-2);
  border-radius: 3px;
  background: var(--surface);
  color: var(--text-2);
  margin: 0 2px;
}

.arrows {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  pointer-events: none;
}
.arrows .arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-2);
  background: rgba(17, 21, 28, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: var(--text-3);
  font-family: var(--font-mono);
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s var(--ease);
  user-select: none;
}
.arrows .arrow:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.05); }
.arrows .arrow.left  { left: 24px; }
.arrows .arrow.right { right: 24px; }

/* ---------- Hint overlay ---------- */

.first-hint {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 24px;
  background: rgba(22, 27, 36, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-2);
  text-transform: uppercase;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: hintFade 8s var(--ease) forwards;
  pointer-events: none;
}
.first-hint kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--border-2);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text);
}
@keyframes hintFade {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* ---------- Typography primitives ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
 /* box-shadow: 0 0 10px var(--accent);*/
}
.eyebrow .idx { color: var(--accent); }

h1.headline {
  font-size: clamp(40px, 5.2vw, 84px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  max-width: 28ch;
}
h1.headline em { font-style: normal; color: var(--accent); font-weight: 400; }
h1.headline strong { font-weight: 500; color: var(--text); }

h2.subheadline {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

.lede {
  margin-top: 28px;
  max-width: 100ch;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--text-2);
  line-height: 1.55;
  font-weight: 300;
  text-align: justify;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-4);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pullquote {
  margin-top: 40px;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--text-2);
 
  font-weight: 300;
  line-height: 1.5;
  font-style: italic;
}

/* ---------- Cover slide ---------- */

.cover {
  align-items: flex-start;
  justify-content: center;
}
.cover-mark {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 32px;
  opacity: 1;
  filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.4));
}

.cover .wordmark {
  font-size: clamp(72px, 14vw, 220px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 0;
  margin-left: -0.08em;
  color: var(--text);
}
.cover .wordmark .accent { color: var(--accent); font-weight: 300; }

.cover .tagline {
  margin-top: 32px;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--text-2);
  font-weight: 300;
  letter-spacing: -0.01em;
  max-width: 38ch;
}

.cover .meta {
  position: absolute;
  bottom: 7vh;
  left: 8vw;
  right: 8vw;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  gap: 56px;
}
.cover.close-content .meta {
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}
.cover .meta .col .v { display: block; color: var(--text-2); margin-top: 6px; font-size: 13px; letter-spacing: 0.08em; }

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
  height: 100%;
}
.split-7-5 { grid-template-columns: 7fr 5fr; }
.split-5-7 { grid-template-columns: 5fr 7fr; }

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.bento.cols-6 { grid-template-columns: repeat(6, 1fr); }
.bento.cols-5 { grid-template-columns: repeat(5, 1fr); }
.bento.cols-3 { grid-template-columns: repeat(3, 1fr); }
.bento.cols-2 { grid-template-columns: repeat(2, 1fr); }

.cell {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  overflow: hidden;
  transition: border-color .25s, transform .25s, background .25s;
}
.is-active .cell { animation: cellRise 0.7s var(--ease) backwards; }
.is-active .cell:nth-child(1) { animation-delay: 0.10s; }
.is-active .cell:nth-child(2) { animation-delay: 0.18s; }
.is-active .cell:nth-child(3) { animation-delay: 0.26s; }
.is-active .cell:nth-child(4) { animation-delay: 0.34s; }
.is-active .cell:nth-child(5) { animation-delay: 0.42s; }
.is-active .cell:nth-child(6) { animation-delay: 0.50s; }
.is-active .cell:nth-child(7) { animation-delay: 0.58s; }
.is-active .cell:nth-child(8) { animation-delay: 0.66s; }
.is-active .cell:nth-child(9) { animation-delay: 0.74s; }
.is-active .cell:nth-child(10) { animation-delay: 0.82s; }
@keyframes cellRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cell .corner {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-4);
  text-transform: uppercase;
}
.cell h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text);
}
.cell p {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.55;
}
.cell-p {
  text-align: justify;
}
.cell .num {
  font-size: 40px;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin: 4px 0 14px;
  font-family: var(--font-mono);
  line-height: 1;
}
.cell .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-4);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cell-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.35));
}

/* ---------- Generic feature row: text left, visual absolute right ---------- */
.arch-row {
  position: relative;
  min-height: 360px;
  margin-bottom: 28px;
}
.arch-row > .stagger {
  max-width: 58%;
}

/* S5 hypergraph 3D */
.hypergraph-3d {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  overflow: hidden;
  display: block;
  pointer-events: none;
}
.hypergraph-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* S15 Positioning visual — agency network schema */
.positioning-visual {
  margin-top: 28px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.positioning-visual svg {
  width: 100%;
  max-width: 760px;
  max-height: 58vh;
  height: auto;
  display: block;
}

/* S18 About — PDF download link */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 10px 18px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.06);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: fit-content;
}
.pdf-link:hover {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.75);
  transform: translateY(-1px);
}
.pdf-link .pdf-icon {
  display: inline-flex;
  color: #3B82F6;
}
.pdf-link .pdf-label {
  font-weight: 500;
}
.pdf-link .pdf-ext {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--text-3);
  text-transform: uppercase;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* S18 About — portrait + text two-column layout */
.about-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}
.about-text .lede {
  max-width: 64ch;
}
.about-portrait {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.about-portrait img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  filter: saturate(0.92) contrast(1.02);
  display: block;
}
.about-portrait figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.about-portrait figcaption .name {
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.about-portrait figcaption .role {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--text-3);
  text-transform: uppercase;
}

/* S17 Communication strategy — posture evolution timeline */
.comms-evolution {
  margin-top: 28px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.comms-evolution svg {
  width: 100%;
  max-width: 1120px;
  max-height: 22vh;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* S16 Roadmap visual — 3-phase horizontal timeline */
.roadmap-visual {
  margin-top: 28px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.roadmap-visual svg {
  width: 100%;
  max-width: 1120px;
  max-height: 50vh;
  height: auto;
  display: block;
}

/* S15 Positioning — bullet lists (legacy, kept in case useful) */
.positioning-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.positioning-list li {
  font-size: 13.5px;
  color: var(--text-2);
  padding: 8px 0 8px 18px;
  position: relative;
  line-height: 1.55;
  border-bottom: 0;
  display: block;
}
.positioning-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--accent);
  font-weight: 500;
}
.positioning-list.neg li::before {
  content: "×";
  color: var(--text-4);
}

/* S14 — give the visualization much more horizontal room (architecture + federation hierarchy side by side) */
[data-tech] .arch-row > .stagger {
  max-width: 50%;
}
[data-tech] .techstack-visual {
  width: 56%;
}

/* S14 Tech stack visual — distributed architecture */
.techstack-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  overflow: hidden;
  display: block;
  pointer-events: none;
}
.techstack-visual svg { width: 100%; height: 100%; display: block; }
.techstack-visual .worker-pulse {
  animation: workerPulse 2.8s ease-in-out infinite;
}
@keyframes workerPulse {
  0%, 100% { opacity: 0.95; }
  50%      { opacity: 0.35; }
}

/* S13 Comms visual — 4-panel HUD */
.comms-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  overflow: hidden;
  display: block;
  pointer-events: none;
}
.comms-visual svg { width: 100%; height: 100%; display: block; }

/* S12 Sim layers visual — branching futures */
.simlayers-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  overflow: hidden;
  display: block;
  pointer-events: none;
}
.simlayers-visual svg { width: 100%; height: 100%; display: block; }

/* S10 Command visual — chain of command (cells / roles / operators) */
.command-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  overflow: hidden;
  display: block;
  pointer-events: none;
}
.command-visual svg { width: 100%; height: 100%; display: block; }

/* S11 Workflow visual — orchestration tree */
.workflow-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  overflow: hidden;
  display: block;
  pointer-events: none;
}
.workflow-visual svg { width: 100%; height: 100%; display: block; }

.workflow-visual .wf-status-active {
  animation: wfStatusActive 1.8s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.workflow-visual .wf-status-blocked {
  animation: wfStatusBlocked 2.4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes wfStatusActive {
  0%, 100% { opacity: 0.95; r: 3; }
  50%      { opacity: 0.55; r: 4.5; }
}
@keyframes wfStatusBlocked {
  0%, 100% { opacity: 0.95; }
  50%      { opacity: 0.50; }
}

/* tickets flowing along the workflow tree (3 staggered particles) */
.workflow-visual .wf-ticket-1 {
  animation: wfTicket1 6s linear infinite;
  offset-path: path("M 180 90 L 180 130 L 80 200 L 80 320 L 180 430");
  offset-rotate: 0deg;
}
.workflow-visual .wf-ticket-2 {
  animation: wfTicket2 6s linear infinite;
  animation-delay: -2s;
  offset-path: path("M 180 90 L 180 130 L 180 200 L 180 320 L 180 430");
  offset-rotate: 0deg;
}
.workflow-visual .wf-ticket-3 {
  animation: wfTicket3 6s linear infinite;
  animation-delay: -4s;
  offset-path: path("M 180 90 L 180 130 L 280 200 L 280 320 L 180 430");
  offset-rotate: 0deg;
}
@keyframes wfTicket1 {
  0%        { offset-distance: 0%;   opacity: 0; }
  10%       { opacity: 0.9; }
  90%       { opacity: 0.9; }
  100%      { offset-distance: 100%; opacity: 0; }
}
@keyframes wfTicket2 {
  0%        { offset-distance: 0%;   opacity: 0; }
  10%       { opacity: 0.9; }
  90%       { opacity: 0.9; }
  100%      { offset-distance: 100%; opacity: 0; }
}
@keyframes wfTicket3 {
  0%        { offset-distance: 0%;   opacity: 0; }
  10%       { opacity: 0.9; }
  90%       { opacity: 0.9; }
  100%      { offset-distance: 100%; opacity: 0; }
}

/* S9 Risk hex visual — H3 grid + hazard front */
.risk-hex-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  overflow: hidden;
  display: block;
  pointer-events: none;
}
.risk-hex-visual svg { width: 100%; height: 100%; display: block; }
.risk-hex-visual .risk-pulse-hi {
  animation: riskPulseHi 2.6s ease-in-out infinite;
}
.risk-hex-visual .risk-pulse-med {
  animation: riskPulseMed 3.4s ease-in-out infinite;
}
.risk-hex-visual .hazard-front {
  animation: hazardEdgeFlow 6s linear infinite;
}
@keyframes riskPulseHi {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.95; }
}
@keyframes riskPulseMed {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 0.95; }
}
@keyframes hazardEdgeFlow {
  to { stroke-dashoffset: -45; }
}

/* S8 COP visual — Three.js 3D globe */
.cop-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  overflow: hidden;
  display: block;
  pointer-events: none;
}
.cop-visual canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* S7 hub visual — Three.js layered topology */
.hub-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  overflow: hidden;
  display: block;
  pointer-events: none;
}
.hub-visual canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* S6 timeline visual */
.timeline-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  overflow: hidden;
  display: block;
  pointer-events: none;
}
.timeline-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}
.timeline-visual .now-cursor {
  animation: timelineScrub 18s ease-in-out infinite alternate;
}
.timeline-visual .now-halo {
  animation: nowHalo 2.6s ease-in-out infinite;
}
@keyframes timelineScrub {
  0%   { transform: translateY(-140px); }
  100% { transform: translateY(140px); }
}
@keyframes nowHalo {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.10; }
}

.cell.feature {
  background: linear-gradient(155deg, var(--surface-2) 0%, var(--surface) 100%);
  border-color: var(--border-2);
}
.cell.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px circle at 0% 0%, rgba(59, 130, 246, 0.08), transparent 50%);
  pointer-events: none;
}
.cell.feature > * { position: relative; }

/* Cell spans */
.c-2 { grid-column: span 2; }
.c-3 { grid-column: span 3; }
.c-4 { grid-column: span 4; }
.c-6 { grid-column: span 6; }
.r-2 { grid-row: span 2; }

/* ---------- Hypergraph schematic (big) ---------- */

.graphviz {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(800px circle at 50% 50%, rgba(59, 130, 246, 0.05), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.graphviz svg { width: 100%; height: 100%; display: block; }

.graphviz .node-pulse {
  transform-origin: center;
  animation: pulseRing 3.5s ease-in-out infinite;
}
@keyframes pulseRing {
  0%, 100% { opacity: 0.4; r: 6; }
  50%      { opacity: 1; r: 9; }
}
.graphviz .edge {
  stroke-dasharray: 4 6;
  animation: dashFlow 18s linear infinite;
}
@keyframes dashFlow {
  to { stroke-dashoffset: -200; }
}

.graphviz .corner-label {
  position: absolute;
  top: 18px; left: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-4);
  text-transform: uppercase;
}
.graphviz .corner-label.right { left: auto; right: 18px; }

/* ---------- Silo diagram ---------- */

.silos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 36px;
  position: relative;
}
.silo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
}
.silo .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-4);
  text-transform: uppercase;
}
.silo .name {
  margin-top: 10px;
  font-weight: 500;
  font-size: 16px;
}
.silo .examples {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.silo::after {
  content: "";
  position: absolute;
  bottom: -32px;
  left: 50%;
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--border-2), transparent);
}

.orchestration-bar {
  margin-top: 60px;
  padding: 24px 28px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.orchestration-bar .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.orchestration-bar .t {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.005em;
}

/* ---------- Pillars (3-column) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.pillar {
  padding: 28px;
  border: 1px solid var(--border);
  border-top: 1px solid var(--accent);
  border-radius: 0 0 12px 12px;
  background: var(--surface);
}
.pillar .nb {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.pillar h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.pillar p {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.55;
}

/* ---------- Roadmap ---------- */

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}
.roadmap::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep), var(--border));
}
.phase {
  padding: 0 28px 0 0;
}
.phase .pnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  background: var(--bg);
  color: var(--accent);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  margin-top: -54px;
  margin-bottom: 20px;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.3);
}
.phase.future .pnum { border-color: var(--border-2); color: var(--text-3); box-shadow: none; }
.phase h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.phase .when {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.phase.future .when { color: var(--text-4); }
.phase p {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ---------- Tech stack list ---------- */

.specs {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
}
.spec-row .name { color: var(--text); }
.spec-row .role {
  color: var(--text-4);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Federation diagram ---------- */

.fednode {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 1.2;
}
.fednode.dim { stroke: var(--border-2); }
.fednode-label {
  fill: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fedlink {
  stroke: var(--border-2);
  stroke-width: 0.8;
  fill: none;
}
.fedlink.active {
  stroke: var(--accent);
  stroke-dasharray: 3 5;
  animation: dashFlow 14s linear infinite;
}

/* ---------- Market grid ---------- */

.market {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.market-cell {
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  position: relative;
}
.market-cell .layer {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.market-cell h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.market-cell p {
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.55;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---------- Animations on slide enter ---------- */

.is-active .stagger > * {
  animation: rise 0.65s var(--ease) backwards;
}
.is-active .stagger > *:nth-child(1) { animation-delay: 0.10s; }
.is-active .stagger > *:nth-child(2) { animation-delay: 0.22s; }
.is-active .stagger > *:nth-child(3) { animation-delay: 0.34s; }
.is-active .stagger > *:nth-child(4) { animation-delay: 0.46s; }
.is-active .stagger > *:nth-child(5) { animation-delay: 0.58s; }
.is-active .stagger > *:nth-child(6) { animation-delay: 0.70s; }
.is-active .stagger > *:nth-child(7) { animation-delay: 0.82s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* large number metric */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.metric {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.metric .v {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 200;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: var(--font-sans);
}
.metric .k {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  text-transform: uppercase;
}
.metric .d {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}

/* close slide */
.close-content {
  align-items: flex-start;
}
.close-tag {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--text-3);
  text-transform: uppercase;
}



/* ---------- Default scrollbar (sober, slate) ---------- */
html, body, * {
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) var(--surface-2);
}

::-webkit-scrollbar {
  width: 4px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--surface-2);
}
::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-4);
}

/* responsive */
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .silos { grid-template-columns: repeat(2, 1fr); }
  .market { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: 1fr; gap: 32px; }
  .roadmap::before { display: none; }
  .specs { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .slide { padding: 6vh 6vw; overflow-y: auto; }
}

@media (max-width: 640px) {
  .arrows .arrow { display: none; }
  .hud .nav-hint { display: none; }
  .slide { padding: 5vh 5vw; }
  .bento, .bento.cols-6, .silos, .market, .metrics { grid-template-columns: 1fr; }
  .c-2, .c-3, .c-4, .c-6 { grid-column: span 1; }
  .cover .meta { flex-direction: column; gap: 14px; align-items: flex-start; }
}
