/* Alloy cinematic — Open Design tokens (design-system.html Pass 1) */

:root {
  --bg: #f5f0e8;
  --bg-deep: #1c1917;
  --surface: #e8e0d4;
  --fg: #1c1917;
  --fg-soft: #292524;
  --muted: #5a4e44;
  --line: #d4c9bc;
  --border: #d4c9bc;
  --accent: #c17f59;
  --accent-bright: #d4926a;
  --accent-gold: #b8860b;
  --walnut: #5c4a3a;
  --harbor: #8b9f7a;
  --lavender: #9a8bb8;
  --glass-bg: rgba(245, 240, 232, 0.78);
  --glass-border: rgba(92, 74, 58, 0.15);
  --glass: var(--glass-bg);
  --glass-border-mix: var(--glass-border);
  --blur: blur(18px) saturate(140%);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius: var(--radius-lg);
  --shadow: 0 28px 80px rgba(28, 25, 23, 0.12);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg width='220' height='220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.site-shell { position: relative; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.04;
  background: radial-gradient(circle at 20% 10%, rgba(193, 127, 89, 0.35), transparent 42%),
    radial-gradient(circle at 80% 90%, rgba(201, 162, 39, 0.2), transparent 38%);
}

/* Chapter rail */
.chapter-rail {
  position: fixed;
  left: clamp(10px, 2vw, 22px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chapter-rail a {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--walnut) 35%, transparent);
  background: transparent;
  transition: transform 0.3s var(--spring), background 0.3s ease, border-color 0.3s ease;
}

.chapter-rail a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.35);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Nav */
.glass-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
}

.glass-nav.scrolled {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo em { font-style: italic; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  text-decoration: none;
}

/* Typography */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.hero-wordmark {
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  font-weight: 600;
  max-width: 9ch;
}

.hero-wordmark span { display: block; }

.hero-wordmark .accent-line {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  max-width: 14ch;
}

.section-copy {
  margin-top: 1rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: color-mix(in srgb, var(--fg) 68%, transparent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--spring), box-shadow 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #fffaf4;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright) 55%, var(--accent-gold));
  box-shadow: 0 14px 36px color-mix(in srgb, var(--accent) 38%, transparent);
}

.btn-secondary {
  color: var(--fg);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1.5px solid var(--line);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.6rem;
}

.badge {
  font-size: 0.72rem;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, white);
  color: color-mix(in srgb, var(--fg) 72%, transparent);
}

/* Hero intro — split copy + step-0 DAG */
.hero-intro {
  min-height: 88vh;
  padding: 6rem clamp(1.5rem, 5vw, 3rem) 3rem;
  background:
    radial-gradient(ellipse 70% 45% at 30% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%),
    var(--bg);
}

.hero-intro.hero-immersive {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5.5rem clamp(1rem, 4vw, 2.5rem) 2.5rem clamp(2rem, 5vw, 3.5rem);
  text-align: left;
}

.hero-intro.hero-immersive .hero-split {
  width: 100%;
}

.hero-intro.hero-immersive .lane-legend {
  justify-content: flex-start;
}

.hero-intro-inner {
  max-width: 52ch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.hero-intro .hero-wordmark {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1.06;
  max-width: 12ch;
}

.hero-intro.hero-immersive .hero-wordmark {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  max-width: 11ch;
}

.hero-intro .lane-legend {
  justify-content: center;
}

.hero-intro .hero-cta-row {
  justify-content: center;
}

.hero-intro.hero-immersive .hero-cta-row {
  justify-content: flex-start;
}

.scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

/* Canvas story chapters — pinned scrollytelling (all 4 investor tabs) */
.canvas-story,
.signal-story {
  position: relative;
  background: var(--bg-deep);
  color: #f0ebe3;
}

.canvas-story .eyebrow,
.signal-story .eyebrow {
  color: color-mix(in srgb, var(--accent-bright) 80%, white);
}

.story-pin {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  min-height: 100vh;
  padding: 5rem clamp(1rem, 5vw, 3.5rem) 3rem clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.story-copy-col {
  position: relative;
  min-height: 320px;
}

.scenario-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.scenario-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(193, 127, 89, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(240, 235, 227, 0.65);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.scenario-chip:hover {
  border-color: var(--accent-bright);
  color: #fff;
}

.scenario-chip.is-active {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  border-color: var(--accent-bright);
  color: #fff;
}

.story-steps {
  position: relative;
  min-height: 260px;
}

.story-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}

.story-step.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.story-step.is-branch .lane-tag {
  border-color: color-mix(in srgb, var(--accent-gold) 45%, transparent);
  color: var(--accent-gold);
}

.story-step h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  max-width: 18ch;
  margin-bottom: 1rem;
  line-height: 1.08;
}

.story-step p {
  max-width: 48ch;
  color: rgba(240, 235, 227, 0.72);
  font-size: 1.05rem;
  line-height: 1.58;
}

.story-step .lane-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent-bright);
}

.story-step-counter {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(240, 235, 227, 0.45);
  letter-spacing: 0.08em;
}

.story-map-board {
  min-height: clamp(440px, 62vh, 720px);
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(14px, 2vw, 20px);
}

.story-board-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 235, 227, 0.5);
}

.story-board-header strong {
  font-size: 0.58rem;
  color: var(--accent-bright);
  text-align: right;
}

.story-canvas-zone {
  position: relative;
  min-height: clamp(380px, 54vh, 640px);
}

.story-dag {
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.story-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 1.5rem 0 0.5rem;
}

.story-progress i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.35s ease, transform 0.35s var(--spring);
}

.story-progress i.is-active {
  background: var(--accent-bright);
  transform: scale(1.35);
}

.story-demo-cta {
  text-align: center;
  padding: 2rem 1rem 4rem;
}

/* Hero — 40% copy / 60% DAG board (legacy compat) */
.hero-immersive {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5.5rem clamp(1rem, 4vw, 2.5rem) 2.5rem clamp(2rem, 5vw, 3.5rem);
  position: relative;
  background:
    radial-gradient(ellipse 70% 45% at 30% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 55%),
    var(--bg);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  width: 100%;
  align-items: center;
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 36ch;
}

.hero-board-col {
  min-height: clamp(400px, 62vh, 720px);
}

.hero-immersive .hero-wordmark {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.08;
}

.hero-line {
  display: block;
}

.hero-word {
  display: inline-block;
}

.hero-tagline {
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  color: color-mix(in srgb, var(--fg) 72%, transparent);
}

.hero-copy-col .hero-step-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Open Design glass card */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px 18px 22px 17px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.glass-card-dark {
  background: linear-gradient(160deg, #292524, var(--bg-deep) 65%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px 18px 22px 17px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.hero-immersive .hero-signal-board {
  min-height: clamp(400px, 62vh, 720px);
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(12px, 2vw, 18px);
  box-shadow: var(--shadow);
}

.hero-immersive .hero-dag {
  min-height: clamp(320px, 54vh, 620px);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-copy {
  width: 100%;
  text-align: center;
  opacity: 0.5;
  margin-top: 0.5rem;
  font-size: 0.78rem;
}

.lane-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lane-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.swatch-user { background: rgba(221, 212, 198, 0.55); }
.swatch-gates { background: rgba(193, 127, 89, 0.65); }
.swatch-brain { background: rgba(154, 139, 184, 0.65); }
.swatch-transparency { background: rgba(139, 159, 122, 0.65); }
.swatch-safety { background: rgba(201, 162, 39, 0.65); }

.hero-canvas-zone {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

/* Node detail panel */
.node-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 92%);
  max-height: 100%;
  overflow-y: auto;
  padding: 1.25rem 1.35rem 1.5rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--bg-deep) 94%, transparent);
  color: #f0ebe3;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 8;
  transform: translateX(12px);
  opacity: 1;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.node-panel.is-open {
  transform: translateX(0);
}

.node-panel-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(240, 235, 227, 0.7);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.node-panel-lane {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.35rem;
}

.node-panel-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  padding-right: 1.5rem;
}

.node-panel-body {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(240, 235, 227, 0.72);
}

.node-panel-hint {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(240, 235, 227, 0.38);
}

/* Legacy split hero — kept for demo compat */
.pin-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: 6.5rem clamp(1rem, 5vw, 3.5rem) 4rem clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
}

.hero-signal .hero-head {
  position: relative;
  z-index: 2;
}

.hero-signal-board {
  position: relative;
  z-index: 2;
  min-height: clamp(360px, 52vh, 520px);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--walnut) 22%, transparent);
  background: linear-gradient(160deg, #1e1a17, #12100e 65%);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: clamp(12px, 2vw, 18px);
}

.hero-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-board-header span,
.hero-board-header strong {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-board-header span { color: rgba(240, 235, 227, 0.42); }
.hero-board-header strong { color: color-mix(in srgb, var(--accent-bright) 85%, white); text-align: right; }

.hero-dag {
  position: relative;
  width: 100%;
  min-height: 260px;
  height: 100%;
}

.hero-step-label {
  font-size: 0.82rem;
  color: rgba(240, 235, 227, 0.62);
  padding: 0.65rem 0.25rem 0.35rem;
  font-family: var(--font-mono);
}

.hero-demo-link {
  justify-self: start;
  margin-top: 0.35rem;
  color: #f0ebe3;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  padding: 10px 18px;
}

.story-strip { position: relative; z-index: 2; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.ghost-note {
  font-size: 0.82rem;
  color: var(--muted);
  width: 100%;
  margin-top: 0.35rem;
}

/* Product theater — Discord ops glass card */
.product-theater { position: relative; z-index: 2; }

.alloy-window {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--walnut) 20%, transparent);
  background: color-mix(in srgb, var(--bg-deep) 92%, transparent);
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.alloy-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--bg-deep) 96%, transparent);
}

.alloy-titlebar strong {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: #f5f0e8;
}

.alloy-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: color-mix(in srgb, var(--accent-gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-gold) 25%, transparent);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.alloy-app {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.alloy-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.alloy-metric {
  padding: 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.45);
  margin-bottom: 0.3rem;
}

.alloy-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1;
  color: #f5f0e8;
}

.alloy-metric span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  color: rgba(245, 240, 232, 0.42);
}

.alloy-slips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.alloy-slip {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.55rem 0.45rem;
  min-height: 68px;
  display: grid;
  align-content: start;
  gap: 0.15rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.alloy-slip.is-active {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.alloy-slip b { font-size: 0.7rem; color: #f5f0e8; }
.alloy-slip small { font-family: var(--font-mono); font-size: 0.58rem; color: rgba(245, 240, 232, 0.42); }

.alloy-stage.discord-hud {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  transform: none;
  opacity: 1;
  animation: none;
  margin-top: 0;
}

/* Legacy command stage — kept for reference, unused */
.command-stage {
  position: relative;
  min-height: clamp(420px, 58vh, 640px);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, color-mix(in srgb, var(--surface) 80%, white), color-mix(in srgb, var(--bg) 40%, var(--walnut)));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, color-mix(in srgb, var(--bg) 35%, transparent) 100%);
  pointer-events: none;
  z-index: 4;
}

.command-titlebar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  font-size: 0.82rem;
  font-weight: 600;
}

.window-dots { display: flex; gap: 6px; }

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--walnut) 25%, transparent);
}

.window-dots span:first-child { background: #c17f59; }
.window-dots span:nth-child(2) { background: #c9a227; }
.window-dots span:nth-child(3) { background: #8b9f7a; }

.stage-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.grid-floor {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(900px) rotateX(62deg) translateY(120px) scale(1.4);
  transform-origin: center bottom;
  opacity: 0.55;
  z-index: 1;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: visible;
}

.route-svg path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.route-svg .thread-main {
  stroke: color-mix(in srgb, var(--accent) 75%, white);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 45%, transparent));
}

.route-svg .thread-side {
  stroke: color-mix(in srgb, var(--lavender) 70%, white);
  stroke-dasharray: 6 8;
}

.route-svg .thread-gold {
  stroke: color-mix(in srgb, var(--accent-gold) 80%, white);
}

/* Mini workflow nodes on hero stage */
.hero-workflow {
  position: absolute;
  left: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 10px);
}

.wf-node {
  min-height: 68px;
  display: grid;
  place-content: center;
  gap: 5px;
  text-align: center;
  padding: 8px 4px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--walnut) 18%, transparent);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 1vw, 0.62rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s var(--spring);
}

.wf-node::before {
  content: attr(data-step);
  width: 24px;
  height: 24px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.62rem;
  background: var(--fg);
  color: var(--accent-bright);
}

.wf-node.is-live {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  transform: translateY(-4px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 22%, transparent);
}

.wf-node.gate::before { background: var(--walnut); color: var(--accent-gold); }

/* Discord HUD floating */
.discord-hud {
  position: absolute;
  top: 18%;
  right: clamp(10px, 3vw, 24px);
  width: min(300px, 42%);
  z-index: 7;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background: color-mix(in srgb, var(--bg-deep) 88%, transparent);
  color: #f5f0e8;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(12px);
  opacity: 0;
  animation: hudIn 1s 0.6s var(--ease) forwards;
}

@keyframes hudIn {
  to { opacity: 1; transform: translateY(0); }
}

.discord-hud header {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-gold));
}

.discord-hud p { font-size: 0.76rem; line-height: 1.55; color: rgba(245, 240, 232, 0.78); }
.discord-hud strong { color: var(--accent-bright); font-weight: 500; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }

.pill {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: color-mix(in srgb, var(--accent-bright) 90%, white);
}

/* Signal journey — pinned scrollytelling */
.signal-journey {
  position: relative;
  background: var(--bg-deep);
  color: #f0ebe3;
}

.signal-journey .eyebrow { color: color-mix(in srgb, var(--accent-bright) 80%, white); }

.journey-pin {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  min-height: 100vh;
  padding: 5rem clamp(1rem, 5vw, 3.5rem) 3rem clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.journey-copy { position: relative; min-height: 280px; }

.journey-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}

.journey-step.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.journey-step h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}

.journey-step p {
  max-width: 46ch;
  color: rgba(240, 235, 227, 0.68);
  font-size: 1.02rem;
}

.journey-step .lane-tag {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent-bright);
}

.journey-board {
  position: relative;
  min-height: clamp(380px, 52vh, 560px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, #1e1a17, #12100e 65%);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.dag-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dag-edge {
  fill: none;
  stroke: rgba(193, 127, 89, 0.22);
  stroke-width: 1.5;
  transition: stroke 0.45s ease, stroke-width 0.45s ease;
}

.dag-edge.is-live {
  stroke: rgba(232, 160, 106, 0.85);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(232, 160, 106, 0.5));
}

.dag-edge.is-branch {
  stroke: rgba(193, 127, 89, 0.12);
  stroke-dasharray: 4 4;
}

.dag-node.is-branch circle {
  opacity: 0.55;
}

.dag-node.is-path circle {
  stroke: color-mix(in srgb, var(--accent-bright) 70%, white);
}

.dag-node.is-path text {
  fill: rgba(240, 235, 227, 0.9);
}

.dag-node circle {
  fill: #2a2420;
  stroke: rgba(193, 127, 89, 0.45);
  stroke-width: 2;
  transition: fill 0.4s ease, stroke 0.4s ease, r 0.4s var(--spring);
}

.dag-node.is-live circle {
  fill: color-mix(in srgb, var(--accent) 35%, #2a2420);
  stroke: var(--accent-bright);
  filter: drop-shadow(0 0 12px rgba(232, 160, 106, 0.55));
}

.dag-node.is-gate circle { stroke-dasharray: 4 3; }

.dag-node text {
  fill: rgba(240, 235, 227, 0.75);
  font-family: var(--font-mono);
  font-size: 9px;
  text-anchor: middle;
}

.dag-node.is-live text { fill: #fff; font-weight: 600; }

.swimlane-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: rgba(240, 235, 227, 0.28);
}

.journey-progress {
  position: absolute;
  left: clamp(2.5rem, 6vw, 4.5rem);
  bottom: 2rem;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.journey-progress i {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.35s ease, transform 0.35s ease;
}

.journey-progress i.is-active {
  background: var(--accent-bright);
  transform: scaleY(1.6);
}

.journey-demo-cta {
  text-align: center;
  padding: 0 2rem 3rem;
}

.journey-demo-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f0ebe3;
  border-color: rgba(255, 255, 255, 0.14);
}

/* Governance — tier table from investor canvas */
.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 5vw, 3.5rem) clamp(4rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
}

.governance-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.tier-table-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 65%, white);
  box-shadow: 0 12px 40px rgba(18, 14, 10, 0.06);
  overflow: hidden;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.tier-table th,
.tier-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.tier-table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 50%, var(--bg));
}

.tier-table code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
}

.governance-facts {
  list-style: none;
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.governance-facts li {
  font-size: 0.84rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}

.governance-facts li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* Consulting path */
.engage-scene {
  background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--surface) 60%, var(--bg)));
}

.path-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
  position: relative;
}

.path-rail::before {
  content: "";
  position: absolute;
  top: 2.2rem;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-gold), transparent);
  opacity: 0.35;
}

.path-card {
  position: relative;
  padding: 2rem 1.5rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, white);
  text-align: center;
  transition: transform 0.4s var(--spring), border-color 0.35s ease;
}

.path-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.path-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.path-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.path-card p { font-size: 0.88rem; color: var(--muted); }

.micro-pipeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.micro-pipeline em {
  font-style: normal;
  color: var(--accent);
}

/* Signal pipeline — scrollytelling board */
.signal-pipeline {
  background: var(--bg-deep);
  color: #f0ebe3;
  padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem) clamp(3rem, 6vw, 5rem);
  scroll-margin-top: 5rem;
}

.signal-pipeline .eyebrow { color: color-mix(in srgb, var(--accent-bright) 75%, white); }
.signal-pipeline .section-title { color: #f5f0e8; max-width: 16ch; }
.signal-pipeline .section-copy { color: rgba(240, 235, 227, 0.68); }

.pipeline-shell {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.pipeline-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
}

.pipeline-demo-cta {
  margin-top: 1rem;
  color: #f0ebe3;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.pipeline-stage { position: relative; isolation: isolate; }

.pipeline-board {
  position: relative;
  overflow: hidden;
  min-height: clamp(400px, 36vw, 500px);
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr 0.85fr 1fr;
  grid-template-rows: auto minmax(110px, 1fr) minmax(100px, 0.8fr) auto;
  gap: clamp(8px, 1.2vw, 14px);
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 14% 34%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 24%),
    radial-gradient(circle at 68% 18%, color-mix(in srgb, var(--accent-gold) 12%, transparent), transparent 28%),
    linear-gradient(155deg, #1e1a17, #12100e);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.pipeline-board-header {
  grid-column: 1 / -1;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pipeline-board-header span,
.pipeline-board-header strong {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.62rem;
}

.pipeline-board-header span { color: rgba(240, 235, 227, 0.42); }
.pipeline-board-header strong { color: color-mix(in srgb, var(--accent-bright) 85%, white); text-align: right; }

.pipeline-thread {
  position: absolute;
  inset: 72px 16px 88px;
  z-index: 0;
  width: calc(100% - 32px);
  height: calc(100% - 160px);
  pointer-events: none;
}

.thread-back,
.thread-live {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thread-back { stroke: rgba(255, 255, 255, 0.08); stroke-width: 14; }

.thread-live {
  stroke: var(--accent);
  stroke-width: 5;
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 45%, transparent));
  opacity: 0.7;
  transition: stroke-dashoffset 0.85s var(--ease), opacity 0.3s ease;
}

.pipeline-node {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: clamp(10px, 1.2vw, 14px);
  transform: translateY(8px) scale(0.985);
  transition: transform 0.45s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

.pipeline-node b {
  font-family: var(--font-display);
  font-size: 0.8rem;
  line-height: 1.2;
  color: #f5f0e8;
}

.prompt-node { grid-column: 1; grid-row: 2 / 4; align-self: center; }
.harness-node { grid-column: 2; grid-row: 2 / 4; align-self: center; }
.tools-node { grid-column: 3; grid-row: 2; align-self: end; }
.hitl-node { grid-column: 3; grid-row: 3; align-self: start; border-style: dashed; border-color: color-mix(in srgb, var(--accent-gold) 40%, transparent); }
.action-node { grid-column: 4 / 6; grid-row: 2 / 4; align-self: center; background: rgba(0, 0, 0, 0.22); }

.pipeline-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
  margin-top: 4px;
}

.pipeline-wave i {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-gold));
  animation: alloyWave 1.4s ease-in-out infinite;
}

.pipeline-wave i:nth-child(1) { height: 28%; animation-delay: -120ms; }
.pipeline-wave i:nth-child(2) { height: 72%; animation-delay: -40ms; }
.pipeline-wave i:nth-child(3) { height: 44%; animation-delay: -200ms; }
.pipeline-wave i:nth-child(4) { height: 88%; animation-delay: -80ms; }
.pipeline-wave i:nth-child(5) { height: 36%; animation-delay: -160ms; }
.pipeline-wave i:nth-child(6) { height: 64%; }

@keyframes alloyWave {
  0%, 100% { transform: scaleY(0.72); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

.tool-row { display: flex; flex-wrap: wrap; gap: 5px; }

.tool-row span {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent-bright);
}

.hitl-gate {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent-gold);
}

.hitl-gate::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px dashed var(--accent-gold);
  flex-shrink: 0;
}

.action-output { display: grid; gap: 6px; }

.action-output span {
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(245, 240, 232, 0.75);
  padding: 7px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.action-output em {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.52rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 3px;
}

.pipeline-steps {
  grid-column: 1 / -1;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.pipeline-step {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(240, 235, 227, 0.45);
  padding: 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.66rem;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.pipeline-step.is-active {
  color: #f5f0e8;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  transform: translateY(-2px);
}

.pipeline-step span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  flex-shrink: 0;
}

.signal-pipeline[data-stage="0"] .thread-live { stroke-dashoffset: 880; }
.signal-pipeline[data-stage="1"] .thread-live { stroke-dashoffset: 660; }
.signal-pipeline[data-stage="2"] .thread-live { stroke-dashoffset: 440; }
.signal-pipeline[data-stage="3"] .thread-live { stroke-dashoffset: 220; }
.signal-pipeline[data-stage="4"] .thread-live { stroke-dashoffset: 0; }

.signal-pipeline[data-stage="0"] [data-node="prompt"],
.signal-pipeline[data-stage="1"] [data-node="harness"],
.signal-pipeline[data-stage="2"] [data-node="tools"],
.signal-pipeline[data-stage="3"] [data-node="hitl"],
.signal-pipeline[data-stage="4"] [data-node="action"] {
  transform: translateY(0) scale(1);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), 0 0 28px color-mix(in srgb, var(--accent) 14%, transparent);
}

/* CTA */
.cta-cinema {
  position: relative;
  padding: clamp(4rem, 12vw, 7rem) clamp(1rem, 5vw, 3rem);
  text-align: center;
  background: var(--bg-deep);
  color: #f0ebe3;
  overflow: hidden;
}

.cta-cinema::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--lavender) 12%, transparent), transparent 45%);
  pointer-events: none;
}

.cta-cinema h2 {
  position: relative;
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 18ch;
  margin: 0 auto 1rem;
}

.cta-cinema p { position: relative; color: rgba(240, 235, 227, 0.62); max-width: 42ch; margin: 0 auto; }

.cta-buttons {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.cta-note {
  position: relative;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(240, 235, 227, 0.38);
}

.cta-cinema .btn-secondary {
  color: #f0ebe3;
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem clamp(1rem, 5vw, 3rem);
  background: #0e0c0a;
  color: rgba(240, 235, 227, 0.45);
  font-size: 0.78rem;
}

.footer a { color: rgba(240, 235, 227, 0.55); text-decoration: none; }
.footer a:hover { color: var(--accent-bright); }

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(240, 235, 227, 0.7);
}

/* Content is visible by default — GSAP may enhance, never gate visibility */
.reveal,
.hero-head,
.hero-signal-board,
.hero-immersive,
.hero-intro,
.lane-legend,
.glass-nav,
.pin-hero,
.story-pin {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 980px) {
  .chapter-rail { display: none; }
  .hero-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .story-pin {
    grid-template-columns: 1fr;
    padding-top: 4.5rem;
  }
  .story-copy-col { min-height: 240px; }
  .story-map-board { min-height: clamp(360px, 52vh, 520px); }
  .story-canvas-zone { min-height: clamp(320px, 48vh, 480px); }
  .hero-copy-col { max-width: none; }
  .hero-board-col { min-height: clamp(340px, 52vh, 520px); }
  .pin-hero,
  .governance-grid,
  .pipeline-intro,
  .journey-pin {
    grid-template-columns: 1fr;
  }

  .hero-canvas-zone {
    min-height: clamp(340px, 52vh, 520px);
  }

  .node-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-height: 42vh;
    border-radius: var(--radius) var(--radius) 0 0;
    transform: translateY(100%);
  }

  .node-panel.is-open {
    transform: translateY(0);
  }

  .hero-board-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-board-header strong { text-align: left; }
  .journey-copy { min-height: 220px; }
  .journey-board { min-height: 320px; }
  .dag-svg { overflow: visible; }
  .alloy-metrics { grid-template-columns: 1fr; }
  .alloy-slips { grid-template-columns: repeat(2, 1fr); }
  .pipeline-board {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }
  .prompt-node, .harness-node, .tools-node, .hitl-node, .action-node { grid-column: auto; grid-row: auto; }
  .pipeline-thread { display: none; }
  .path-rail { grid-template-columns: 1fr; }
  .path-rail::before { display: none; }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .alloy-slips { grid-template-columns: 1fr; }
  .journey-copy { min-height: 200px; }
  .journey-step h2 { font-size: clamp(1.45rem, 6vw, 1.9rem); }
  .journey-board { min-height: 260px; border-radius: 16px; }
  .dag-node text { font-size: 7px; }
  .journey-progress { left: 1rem; bottom: 1rem; }
  .journey-progress i { width: 20px; }
  .pipeline-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .pipeline-step {
    flex-direction: column;
    gap: 2px;
    padding: 6px 2px;
    font-size: 0;
    line-height: 1;
  }
  .pipeline-step span {
    font-size: 0.56rem;
  }
  .pipeline-board {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
  }
  .pipeline-node b {
    font-size: 0.74rem;
  }
  .tool-row span {
    font-size: 0.5rem;
    padding: 3px 5px;
  }
  .pipeline-board-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .pipeline-board-header strong {
    text-align: left;
    font-size: 0.56rem;
    line-height: 1.35;
  }
  .tier-table th,
  .tier-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .thread-live { transition: none; }
  .pipeline-wave i { animation: none; }
}
