/* ═══════════════════════════════════════════════
   ENGRAM MICROSITE — DESIGN SYSTEM
   Bloomberg-Dark · Finance-Premium · 2026
═══════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ── */
:root {
  --bg:          #FAFAF8;
  --bg-warm:     #F5F3EE;
  --surface:     #FFFFFF;
  --surface-2:   #FAFAF8;
  --border:      #D9D2C7;
  --border-dim:  #E8E3DB;
  --copper:      #B87333;
  --copper-2:    #D4975A;
  --copper-dim:  rgba(184,115,51,0.08);
  --ochre:       #C4902A;
  --ochre-dim:   rgba(196,144,42,0.08);
  --ochre-2:     #B8850F;
  --sage:        #5B8A6F;
  --sage-dim:    rgba(91,138,111,0.08);
  --clay:        #B85C4A;
  --clay-dim:    rgba(184,92,74,0.08);
  --ink:         #2C2418;
  --ink-2:       #5C5347;
  --ink-muted:   #8C8378;
  --accent:      #3D4F7C;
  --accent-dim:  rgba(61,79,124,0.08);
  --radius:      6px;
  --radius-lg:   10px;
  --transition:  220ms cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
sup { font-size: 0.6em; vertical-align: super; }

/* scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(61,79,124,0.2); border-radius: 2px; }

/* ── CONTAINERS ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-warm);
}

/* ── TYPOGRAPHY ── */
.section-label {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 44px;
}

/* ── BRAIN TRACE DIVIDERS ── */
.brain-trace-divider {
  padding: 0 32px;
  max-width: 1160px;
  margin: 0 auto;
}
.brain-trace-divider svg {
  display: block;
}

/* ── TRACE WALKTHROUGH ── */
.trace-event {
  transform: translateY(12px);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #9A7B4F;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(154,123,79,0.2);
}
.btn-primary:hover {
  background: #7A6340;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(154,123,79,0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.btn-ghost:hover {
  border-color: var(--ink-2);
  color: var(--ink);
  background: rgba(44,36,24,0.03);
}

.btn-xl { padding: 18px 40px; font-size: 16px; border-radius: 4px; }

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(250,250,248,0.97);
  border-bottom-color: var(--border-dim);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: var(--transition);
}
.nav-cta:hover {
  color: var(--ink);
  border-color: var(--ink-2);
  background: rgba(92,83,71,0.06);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 32px 0;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}

.hero-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease forwards;
}

.hero-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s 0.15s ease forwards;
}
.hero-headline span.grad {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  display: inline;
}

.hero-headline em { font-style: italic; opacity: 0.75; }
.hero-em {
  font-style: italic;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  opacity: 0.7;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 36px;
  opacity: 0;
  animation: fadeUp 0.6s 0.3s ease forwards;
}

.hero-stats {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s ease forwards;
}

.stat-pill {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--ink-2);
  white-space: nowrap;
}

.stat-num {
  color: var(--ink-2);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 0.5s ease forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  animation: scrollPulse 2.5s ease-in-out infinite;
  opacity: 0;
  animation-delay: 2s;
}

/* ── STAT CARDS ── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--ink-2); }
.stat-card-num {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.stat-card-label {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.stat-card-source {
  display: inline-block;
  margin-top: 10px;
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}
.stat-card-source:hover {
  color: var(--ink-2);
  border-color: var(--ink-2);
}

/* ── PROBLEM CHART ── */
.chart-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 8px;
  position: relative;
}
.chart-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.chart-label {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  color: var(--ink-2);
}
.chart-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.legend-item {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
}
.legend-item::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  border-radius: 1px;
}
.legend-danger::before { background: var(--clay); }
.legend-success::before { background: var(--sage); }

#decay-chart {
  width: 100%;
  overflow: visible;
}

.chart-tooltip {
  position: fixed;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  color: var(--ink);
  pointer-events: none;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ── SOLUTION COMPARISON ── */
/* gradient divider */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
  align-items: stretch;
  position: relative;
}

/* VS badge */
.vs-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 6px 14px;
  border-radius: 4px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.compare-card {
  border-radius: 0;
  padding: 28px 32px;
  border: none;
  transition: var(--transition);
}
.compare-bad {
  background: transparent;
  border-left: 3px solid var(--clay);
  border-bottom: 1px solid var(--border-dim);
}
.compare-good {
  background: transparent;
  border-left: 3px solid var(--sage);
  border-bottom: 1px solid var(--border-dim);
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: inset 0 0 40px rgba(91,138,111,0.04), 0 0 20px rgba(91,138,111,0.04); }
  50% { box-shadow: inset 0 0 40px rgba(91,138,111,0.06), 0 0 30px rgba(91,138,111,0.08); }
}
.compare-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 16px;
}
.compare-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(184,92,74,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clay);
  flex-shrink: 0;
}
.compare-icon-good {
  background: rgba(91,138,111,0.12);
  color: var(--sage);
}

/* JSON label */
.json-label {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
  padding: 0 2px;
}

/* JSON terminal header */
.json-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #1E1E2E;
  border-bottom: 1px solid #2E2E3E;
}
.jh-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.jh-red { background: #B85C4A; }
.jh-yellow { background: #C4902A; }
.jh-green { background: #5B8A6F; }
.jh-filename {
  margin-left: 8px;
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  color: #6C7086;
  letter-spacing: 0.04em;
}

/* JSON block — dark terminal style */
.json-block {
  margin-bottom: 20px;
  background: #1E1E2E;
  border: 1px solid #2E2E3E;
  border-radius: 6px;
  overflow: hidden;
}
.json-pre {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  line-height: 1.6;
  padding: 20px;
  overflow-x: auto;
  white-space: pre;
  color: #CDD6F4;
}
.j-key   { color: #89B4FA; }
.j-str   { color: #A6E3A1; }
.j-num   { color: #FAB387; }
.j-punc  { color: #6C7086; }
.j-brace { color: #CDD6F4; }

/* JSON reveal animation */
.json-pre .json-line {
  display: block;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.json-pre .json-line.visible {
  opacity: 1;
  transform: translateX(0);
}

/* compare lists */
.compare-list { display: flex; flex-direction: column; gap: 8px; }
.compare-list li {
  font-size: 13px;
  padding-left: 20px;
  position: relative;
  color: var(--ink-2);
  line-height: 1.5;
}
.bad-list li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--clay);
  font-size: 11px;
}
.good-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-size: 11px;
}

/* ── TRACE CARDS (Solution section pipeline) ── */
.trace-cards {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 48px;
  overflow-x: auto;
  padding: 4px 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.trace-cards::-webkit-scrollbar { display: none; }

.tc {
  flex: 1;
  min-width: 148px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 18px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.tc:hover {
  transform: translateY(-3px);
}

/* Colored top stripe by environment */
.tc-local  { border-top: 2px solid var(--sage); }
.tc-api    { border-top: 2px solid var(--ink-2); }
.tc-output {
  border-top: 2px solid var(--ink-muted);
  box-shadow: 0 0 28px rgba(92,83,71,0.06);
}
.tc-local:hover  { border-color: var(--sage);  box-shadow: 0 6px 24px rgba(91,138,111,0.1); }
.tc-api:hover    { border-color: var(--ink-2);  box-shadow: 0 6px 24px rgba(92,83,71,0.12); }
.tc-output:hover { border-color: var(--ink-muted);    box-shadow: 0 6px 24px rgba(92,83,71,0.14); }

.tc-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.tc-env {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.tc-env-api { color: var(--ink-2); }
.tc-env-out { color: var(--ink-muted); }

.tc-n {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--border);
  line-height: 1;
}
.tc-api .tc-n    { color: rgba(92,83,71,0.22); }
.tc-output .tc-n { color: rgba(92,83,71,0.28); }

.tc-icon-wrap {
  color: rgba(91,138,111,0.6);
  margin-bottom: 12px;
  display: flex;
}
.tc-api .tc-icon-wrap    { color: rgba(92,83,71,0.65); }
.tc-output .tc-icon-wrap { color: rgba(92,83,71,0.7); }

.tc-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
}
.tc-hint {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.tc-arr {
  font-size: 20px;
  color: var(--border);
  flex-shrink: 0;
  padding: 0 10px;
  user-select: none;
  margin-top: -8px;
}

/* ── BADGES ── */
.badges {
  display: flex;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.badge {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid;
}
.badge-purple { color: var(--ink-2); border-color: rgba(92,83,71,0.4); background: rgba(92,83,71,0.06); }
.badge-gold   { color: var(--ink-muted);   border-color: rgba(92,83,71,0.3);  background: rgba(92,83,71,0.06); }
.badge-green  { color: var(--sage);  border-color: rgba(91,138,111,0.4);  background: var(--sage-dim); }

/* ── FEATURE TAGS (tech section — distinct from pipeline status badges) ── */
.feat-tag {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.04em;
  padding: 8px 20px;
  border-radius: 4px;
  border-left: 3px solid;
}
.feat-purple { color: var(--ink-2); border-color: var(--ink-2); background: rgba(92,83,71,0.07); }
.feat-gold   { color: var(--ink-muted);   border-color: var(--ink-muted);   background: rgba(92,83,71,0.06); }
.feat-green  { color: var(--sage);  border-color: var(--sage);  background: rgba(91,138,111,0.07); }

/* ── PIPELINE ── */
/* Pipeline fork layout */
.pipe-layout {
  display: grid;
  grid-template-columns: 200px 1fr 220px 120px 200px;
  align-items: center;
  gap: 0;
  padding: 24px 0;
  min-height: 320px;
  width: 100%;
  max-width: 100%;
}
.pipe-col {
  display: flex;
  justify-content: center;
}
.pipe-col-node {
  justify-content: center;
}
.pipe-col-conn {
  padding: 0 4px;
}
.pipe-col-fork {
  position: relative;
}
.pipe-col-outputs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Diagonal fork SVG */
.fork-svg {
  width: 100%;
  height: 200px;
}
.fork-path {
  stroke: var(--border);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  transition: stroke var(--transition);
}
.fork-path.animated {
  stroke: rgba(92,83,71,0.25);
  animation: dashFlow 8s linear infinite;
}


.pipe-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  width: 150px;
  cursor: default;
  position: relative;
}

.pipe-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: var(--transition);
  position: relative;
  box-shadow: 0 2px 8px rgba(44,36,24,0.08);
}
.pipe-circle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92,83,71,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
}
.pipe-node:hover .pipe-circle { border-color: var(--ink-2); color: var(--ink-2); }
.pipe-node:hover .pipe-circle::after { opacity: 1; }

.pipe-circle-gold {
  border-color: rgba(91,138,111,0.4);
  background: rgba(91,138,111,0.06);
  color: var(--sage);
}
.pipe-circle-gold::after {
  background: radial-gradient(circle, rgba(91,138,111,0.12) 0%, transparent 70%);
}
.pipe-node-final .pipe-lbl { color: var(--ink-2); }

/* Pipeline local/cloud badges */
.pipe-badge {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 100px;
  border: 1px solid;
  margin-bottom: 6px;
}
.pipe-local {
  color: var(--ink-2);
  border-color: rgba(92,83,71,0.35);
  background: rgba(92,83,71,0.06);
}
.pipe-cloud {
  color: var(--accent);
  border-color: rgba(61,79,124,0.35);
  background: var(--accent-dim);
}

.pipe-lbl {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  line-height: 1.3;
}
.pipe-circle svg {
  color: var(--ink-2);
}
.pipe-desc {
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.4;
}

.pipe-conn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 60px;
}
.pipe-conn svg {
  width: 100%;
  height: 12px;
}
.conn-path {
  stroke: var(--ink-muted);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 6 4;
  opacity: 0.7;
  transition: stroke var(--transition);
}
.pipe-conn.animated .conn-path {
  stroke: rgba(92,83,71,0.25);
  animation: dashFlow 8s linear infinite;
}
.pipe-chevron {
  position: absolute;
  right: -2px;
  font-size: 18px;
  color: var(--border);
  line-height: 1;
  transition: color var(--transition);
}
.pipe-conn.animated .pipe-chevron { color: rgba(92,83,71,0.35); }


/* Connector labels (processing steps) */
.pipe-conn-labels {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Purple circle variant (cognitive telemetry) */
.pipe-circle-purple {
  border-color: rgba(61,79,124,0.4);
  background: rgba(61,79,124,0.06);
  color: var(--accent);
}
.pipe-circle-purple::after {
  background: radial-gradient(circle, rgba(61,79,124,0.15) 0%, transparent 70%);
  opacity: 1;
}

.pipe-callout {
  text-align: center;
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 16px;
  padding: 14px 24px;
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  display: inline-block;
  left: 50%;
  position: relative;
  transform: translateX(-50%);
}
.pipe-callout strong { color: var(--ink-2); }

.pipe-tooltip {
  position: fixed;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-2);
  max-width: 220px;
  pointer-events: none;
  z-index: 200;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ── DIFFERENTIATION SECTION ── */
.diff-section {
  margin-top: 56px;
}
.diff-label {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 32px;
}
.diff-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.diff-item {
  display: flex;
  gap: 24px;
}
.diff-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
  padding-top: 6px;
}
.diff-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(61,79,124,0.3);
  flex-shrink: 0;
}
.diff-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(180deg, rgba(92,83,71,0.3), rgba(92,83,71,0.06));
  margin-top: 8px;
}
.diff-content {
  padding-bottom: 36px;
  max-width: 640px;
}
.diff-kicker {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.diff-content p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.75;
  margin: 0;
}
.diff-content strong {
  color: var(--ink);
  font-weight: 500;
}
.diff-content em {
  color: var(--ink);
  font-style: italic;
}
@media (max-width: 640px) {
  .diff-item { gap: 16px; }
  .diff-kicker { font-size: 14px; }
  .diff-content p { font-size: 12.5px; }
  .diff-content { padding-bottom: 24px; }
}

/* ── BUSINESS MODEL ── */
.biz-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.flowchart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.flow-node {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(44,36,24,0.04);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color var(--transition);
}
.flow-node.visible { opacity: 1; transform: translateY(0); }
.flow-node:hover { border-color: var(--ink-2); }
.flow-emoji { font-size: 18px; flex-shrink: 0; }
.flow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}
.flow-icon-muted  { color: var(--ink-muted); }
.flow-icon-purple { color: var(--accent); background: rgba(61,79,124,0.1); border: 1px solid rgba(61,79,124,0.2); border-radius: 6px; }
.flow-icon-gold   { color: var(--ink-2); }
.flow-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: 6px;
  width: 100%;
}
.flow-clients {
  font-size: 11px;
  font-family: 'Courier Prime', monospace;
  color: var(--ink-muted);
  margin-top: 4px;
}
.flow-node-wide { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 24px; }
.flow-node-gold {
  border-color: rgba(91,138,111,0.35);
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  color: var(--ink-2);
}
.flow-arr {
  font-size: 18px;
  color: var(--border);
  padding: 4px 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.flow-arr.visible { opacity: 1; }

.biz-callout {
  display: flex;
  align-items: center;
}
.biz-callout-inner {
  padding: 36px;
  border: 1px solid rgba(92,83,71,0.2);
  border-radius: var(--radius-lg);
  background: rgba(92,83,71,0.04);
}
.biz-callout-quote {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 12px;
}
.biz-callout-sub {
  font-size: 14px;
  color: var(--ink-muted);
  font-family: 'Courier Prime', monospace;
}

.revenue-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.revenue-card {
  padding: 28px 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.revenue-card:hover { border-color: var(--ink-2); transform: translateY(-3px); }
.rev-year {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.rev-arr {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.rev-arr span { font-size: 16px; color: var(--ink-muted); font-weight: 500; font-family: 'Inter', sans-serif; }
.rev-desc { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.rev-mid { border-color: rgba(92,83,71,0.25); background: rgba(92,83,71,0.04); }
.rev-gold { border-color: rgba(92,83,71,0.25); background: rgba(92,83,71,0.04); }
.rev-gold .rev-arr { color: var(--ink-2); }

/* ── ECOSYSTEM ── */
.eco-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.logo-cloud { display: flex; flex-direction: column; gap: 32px; }
.logo-group { display: flex; flex-direction: column; gap: 12px; }
.logo-group-lbl {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.logo-items { display: flex; gap: 10px; flex-wrap: wrap; }
.logo-tag {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid;
  letter-spacing: 0.02em;
  transition: var(--transition);
}
.logo-tag:hover { transform: translateY(-2px); }
.tag-buyer     { color: var(--ink-2);  border-color: rgba(92,83,71,0.3); background: rgba(92,83,71,0.06); }
.tag-lab       { color: #7DD3FC;        border-color: rgba(125,211,252,0.3); background: rgba(125,211,252,0.08); }
.tag-enterprise{ color: var(--ink-muted);    border-color: rgba(92,83,71,0.3);  background: rgba(92,83,71,0.06); }

/* Positioning Matrix */
.matrix-wrap { display: flex; flex-direction: column; gap: 12px; }
.matrix-legend {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 360px;
}
.matrix-legend strong { color: var(--ink); }
.matrix-title {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.matrix {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 380px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.mat-axis-h {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.mat-axis-v {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.mat-lbl {
  position: absolute;
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.mat-top    { top: 8px;  left: 50%; transform: translateX(-50%); }
.mat-bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }
.mat-left   { left: 8px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; text-orientation: mixed; }
.mat-right  { right: 8px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; }

.mat-point {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.mat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-muted);
}
.mat-name { font-size: 10px; color: var(--ink-muted); white-space: nowrap; }

.mat-engram .mat-dot-engram {
  width: 12px;
  height: 12px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(61,79,124,0.2), 0 0 16px rgba(61,79,124,0.3);
  animation: subtlePulse 2s ease-in-out infinite;
}
.mat-name-engram {
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
}

/* ── MOAT TABLE ── */
.moat-grid {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mg-cell {
  background: var(--bg);
  padding: 16px 18px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.mg-corner { background: var(--surface); }
.mg-col-head {
  background: var(--surface);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
  text-align: center;
}
.mg-engram-head {
  background: linear-gradient(135deg, rgba(92,83,71,0.12), rgba(92,83,71,0.08));
  color: var(--ink);
  font-weight: 700;
}
.mg-row-lbl {
  background: var(--surface-2);
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.mg-data { text-align: center; }
.mg-engram-cell {
  background: rgba(92,83,71,0.06);
  color: var(--ink);
  font-weight: 500;
}
.mg-no { color: rgba(184,92,74,0.5); font-size: 16px; font-weight: 700; }
.mg-yes { color: var(--sage); font-size: 16px; font-weight: 700; }

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}
.founder-card {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.founder-card:hover { border-color: var(--ink-2); }
.founder-role {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.founder-name {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}
.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.ftag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
}
.founder-bios { display: flex; flex-direction: column; gap: 10px; }
.founder-bios li {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}
.founder-bios li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-muted);
}

/* Solo founder layout */
.team-grid-solo {
  grid-template-columns: 1fr;
  max-width: 560px;
}

/* Advisors grid */
.advisors-grid {
  margin-top: 48px;
}
.adv-label-full {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.advisor-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.advisor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(44,36,24,0.04);
  transition: border-color var(--transition);
}
.advisor-card:hover {
  border-color: rgba(92,83,71,0.3);
}
.adv-role {
  font-family: 'Courier Prime', monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  line-height: 1.4;
}
.adv-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

.advisor-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.adv-label {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.adv-text { font-size: 13px; color: var(--ink-2); }

/* ── GROWTH CHART ── */
.growth-chart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 48px;
}

.phase-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.phase-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.phase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ink-2), var(--ink-muted));
}
.phase-card:hover { border-color: var(--ink-2); }
.phase-num {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 8px;
}
.phase-period {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.phase-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.phase-desc { font-size: 13px; color: var(--ink-2); line-height: 1.55; }

.market-callout {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 36px 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  justify-content: center;
}
.mkt-item { text-align: center; }
.mkt-num {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.mkt-tag {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 6px 0;
}
.mkt-desc { font-size: 13px; color: var(--ink-2); max-width: 220px; line-height: 1.5; }
.mkt-div {
  width: 1px;
  height: 80px;
  background: var(--border);
}

/* ── ASK SECTION ── */
.section-ask {
  background: linear-gradient(180deg, #FAFAF8, rgba(61,79,124,0.03));
}
.ask-box {
  text-align: center;
  padding: 48px 64px;
  border: 1px solid rgba(92,83,71,0.2);
  border-radius: var(--radius-lg);
  background: rgba(92,83,71,0.03);
  box-shadow: 0 0 60px rgba(92,83,71,0.04), inset 0 1px 0 rgba(92,83,71,0.08); /* ink-dim */
  margin-bottom: 56px;
  display: inline-block;
  width: 100%;
}
.ask-amount {
  font-family: 'Inter', sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.ask-sub {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 6px;
  margin-bottom: 20px;
}
.ask-hr {
  width: 48px;
  height: 1px;
  background: rgba(92,83,71,0.3);
  margin: 0 auto 20px;
}
.ask-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.ask-dot { color: var(--ink-muted); }

/* Funds */
.funds {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
}
.fund-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: center;
}
.fund-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.fund-pct {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  min-width: 48px;
}
.fund-cat { font-size: 14px; font-weight: 600; color: var(--ink); }
.fund-note { font-size: 12px; color: var(--ink-muted); }
.fund-track {
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border-dim);
}
.fund-bar {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ink-2), var(--ink-muted));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.fund-bar-gold  { background: linear-gradient(90deg, var(--ink-muted), var(--ink-2)); }
.fund-bar-green { background: linear-gradient(90deg, var(--sage), #4A7A5F); }

/* Traction */
.traction-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.traction-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trac-num {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--ink-2);
  line-height: 1;
  margin-bottom: 10px;
}
.trac-desc { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* Roadmap scroll hint */
.roadmap-scroll-hint {
  display: none;
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 8px;
}
@media (max-width: 640px) {
  .roadmap-scroll-hint { display: block; }
}

/* Roadmap */
.roadmap {
  position: relative;
  margin-bottom: 56px;
  padding: 32px 0;
  overflow-x: auto;
}
.roadmap-line {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.roadmap {
  display: flex;
  gap: 0;
}
.roadmap-line {
  display: none; /* handled with ::before on roadmap */
}
.roadmap::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
}
.rm-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 120px;
  padding-top: 4px;
  position: relative;
}
.rm-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  z-index: 1;
  transition: var(--transition);
}
.rm-dot-active {
  background: var(--ink-2);
  border-color: var(--ink-2);
  box-shadow: 0 0 0 4px rgba(92,83,71,0.2);
}
.rm-item.revealed .rm-dot {
  border-color: var(--ink-2);
  background: rgba(92,83,71,0.2);
}
.rm-date {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  margin-top: 8px;
}
.rm-event {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.4;
  max-width: 120px;
}

/* Ask CTAs */
.ask-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── UNIT ECONOMICS + FINANCIAL MODEL ── */
.unit-econ {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.ue-item {
  flex: 1;
  padding: 24px 28px;
  text-align: center;
}
.ue-item-highlight {
  background: rgba(92,83,71,0.05);
  border-left: 1px solid rgba(92,83,71,0.2);
}
.ue-div {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}
.ue-val {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.ue-gold { color: var(--ink-2); }
.ue-lbl {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ue-insight {
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
  margin-bottom: 36px;
  line-height: 1.6;
}
.ue-insight strong { color: var(--ink); }

.fin-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fin-row {
  display: grid;
  grid-template-columns: 56px 120px 100px 120px 1fr;
  align-items: center;
  gap: 0;
}
.fin-row > div {
  padding: 16px 20px;
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--border);
}
.fin-row:last-child > div { border-bottom: none; }
.fin-header > div {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--surface);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.fin-yr {
  font-family: 'Courier Prime', monospace;
  font-weight: 700 !important;
  color: var(--ink) !important;
  font-size: 12px !important;
}
.fin-arr-val {
  font-family: 'Inter', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}
.fin-arr-mid { color: var(--ink-2) !important; }
.fin-arr-gold { color: var(--ink) !important; }
.fin-gm {
  font-family: 'Courier Prime', monospace !important;
  font-weight: 600 !important;
  color: var(--sage) !important;
}
.fin-gm-gold { color: var(--ink-2) !important; }
.fin-driver { color: var(--ink-2) !important; }
.fin-row-mid > div { background: rgba(92,83,71,0.03); }
.fin-row-gold > div { background: rgba(92,83,71,0.03); }

/* ── FOUNDER HERO CARD ── */
.founder-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  position: relative;
}
.founder-hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink-muted));
}
.founder-hero-left {
  padding: 40px 40px 40px 52px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.founder-hero-right {
  padding: 40px 44px;
  display: flex;
  align-items: center;
}
.founder-role-badge {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.founder-hero-name {
  font-family: 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.0;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.founder-bios-hero {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.founder-bios-hero li {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}
.founder-bios-hero li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--ink-muted);
  font-size: 11px;
  top: 1px;
}

/* Updated advisor cards */
.adv-card-a { border-left: 2px solid var(--border); }
.adv-card-b { border-left: 2px solid var(--border); }
.adv-card-c { border-left: 2px solid var(--border); }
.adv-card-d { border-left: 2px solid var(--border); }
.adv-icon { display: none; }

/* ── FOOTER ── */
footer {
  padding: 32px;
  border-top: 1px solid var(--border-dim);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-muted);
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.fdot { color: var(--border); }
footer a { transition: color var(--transition); }
footer a:hover { color: var(--ink); }

/* ── ANIMATION UTILS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
}
.fade-up.is-visible {
  animation: fadeUp 0.7s ease forwards;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.7; transform: translateX(-50%) translateY(4px); }
}

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61,79,124,0.15), 0 0 16px rgba(61,79,124,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(61,79,124,0.1), 0 0 28px rgba(61,79,124,0.25); }
}

@keyframes dashFlow {
  to { stroke-dashoffset: -20; }
}


/* ── BIZ QUOTES (Theory of Change redesign) ── */
.biz-quotes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.biz-quote-card {
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color var(--transition);
}
.biz-quote-card:hover { border-color: var(--ink-muted); }
.biz-quote-hero {
  border-color: rgba(92,83,71,0.2);
  border-left: 3px solid var(--accent);
  background: rgba(92,83,71,0.04);
}
.biz-quote-mark {
  font-family: 'Inter', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--ink-muted);
  line-height: 0.6;
  display: block;
  margin-bottom: 10px;
  opacity: 0.45;
}
.biz-quote-body {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.biz-quote-body em { font-style: italic; color: var(--ink); }
.biz-quote-tag {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 10px;
  letter-spacing: 0.06em;
  display: block;
}

/* ── CUSTOMER TYPES (Ecosystem section) ── */
.customer-types {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.customer-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: transform var(--transition), border-color var(--transition);
}
.customer-card:hover { transform: translateX(4px); }
.customer-card-buyer     { border-left: 2px solid var(--border); }
.customer-card-lab       { border-left: 2px solid #7DD3FC; }
.customer-card-enterprise{ border-left: 2px solid var(--border); }
.customer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.customer-icon-wrap {
  color: var(--ink-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.customer-card-buyer .customer-icon-wrap     { color: var(--ink-2); }
.customer-card-lab .customer-icon-wrap       { color: #7DD3FC; }
.customer-card-enterprise .customer-icon-wrap{ color: var(--ink-muted); }
.customer-type-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.customer-companies-row {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 8px;
  padding-left: 26px;
}
.customer-desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.55;
  padding-left: 26px;
}

/* ── FOUNDERS ROW (compact co-founder cards) ── */
.founders-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}
.founder-compact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.founder-compact:hover { border-color: var(--ink-2); }
.founder-compact-a { border-left: 2px solid var(--border); }
.founder-compact-b { border-left: 2px solid var(--border); }
.founder-compact-role {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.founder-compact-b .founder-compact-role { color: var(--ink-muted); }
.founder-compact-name {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.0;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* ── MARQUEE STRIP ── */
/* ── TEAM LOGOS ── */
.team-logos {
  margin-top: 56px;
  margin-bottom: 56px;
  text-align: center;
}
.team-logos-label {
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 8px;
}
.team-logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
  align-items: center;
  padding: 24px 0;
}
.team-logo-item {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  opacity: 0.25;
  transition: opacity 0.2s ease;
}
.team-logo-item:hover {
  opacity: 0.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .compare-grid { grid-template-columns: 1fr; }
  .pipe-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: auto;
  }
  .nav-inner > div:last-child { gap: 16px; }
  .nav-inner > div:last-child a:not(.nav-cta) { display: none; }

  /* Who it's for — 1 col on tablet */
  #ecosystem .container > div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  #ecosystem .container > div > div[style*="border-right"] {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }

  /* How Experts Earn — stack */
  #business-model div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Data section — stack */
  #solution div[style*="grid-template-columns:1fr 340px"] {
    grid-template-columns: 1fr !important;
  }

  /* Advisors — 2 col on tablet */
  .advisor-cards { grid-template-columns: 1fr 1fr !important; }
  .vs-badge {
    position: relative;
    top: auto; left: auto;
    transform: none;
    margin: -12px auto;
    width: 40px; height: 40px;
    font-size: 11px;
  }
  .biz-layout { grid-template-columns: 1fr; }
  .eco-layout { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .advisor-cards { grid-template-columns: 1fr 1fr; }
  .founders-row { grid-template-columns: 1fr; }
  .team-logos-row { gap: 32px; }
  .hero-ctas { flex-wrap: wrap; justify-content: center; }
  .fin-row { grid-template-columns: 56px 100px 90px 90px 1fr; }
  .unit-econ { flex-wrap: wrap; }
  .ue-item { flex: 1 1 40%; }
  .ue-div { display: none; }
  .phase-cards { grid-template-columns: 1fr 1fr; }
  .fund-row { grid-template-columns: 1fr; gap: 8px; }
  .market-callout { flex-direction: column; gap: 28px; padding: 32px; }
  .mkt-div { width: 48px; height: 1px; }
  .moat-grid { grid-template-columns: 120px 1fr 1fr 1fr; font-size: 11px; }
  .mg-cell { padding: 12px 10px; }
  .trace-cards { gap: 0; }
  .tc { min-width: 130px; padding: 16px 14px 14px; }
  .tc-arr { padding: 0 6px; font-size: 16px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-headline { font-size: 24px; line-height: 1.2; }
  .section-sub { font-size: 14px; }

  /* Nav */
  .nav-inner { padding: 0 16px; height: 56px; }
  .nav-logo svg { height: 14px; }

  /* Hero */
  .hero-headline { font-size: 32px; line-height: 1.1; }
  .hero-eyebrow { font-size: 12px; }
  .hero-sub { font-size: 14px; }
  .hero-ctas { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .btn-primary, .btn-ghost { padding: 12px 20px; font-size: 13px; }
  .btn-xl { padding: 14px 24px; font-size: 14px; width: 100%; max-width: 280px; }

  /* Demo steps */
  .demo-steps { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Stats */
  .stat-cards { grid-template-columns: 1fr; }
  .stat-card { padding: 20px 16px; }
  .stat-card-num { font-size: 28px; }
  .stat-card-label { font-size: 12px; }

  /* Chart */
  .chart-box { padding: 20px 16px; }
  .chart-title-row { flex-direction: column; gap: 12px; }
  .chart-label { font-size: 12px; }
  .chart-legend { flex-direction: column; gap: 8px; }
  .legend-item { font-size: 11px; }

  /* Compare Cards */
  .compare-grid { gap: 16px; }
  .compare-card { padding: 24px 16px; }

  /* JSON Block */
  .json-pre { font-size: 10px; padding: 14px; white-space: pre-wrap; word-wrap: break-word; }


  /* Pipeline — stack vertically on mobile */
  .pipe-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: auto;
    overflow: visible;
  }
  .pipe-col { justify-content: center; }
  .pipe-col-conn {
    transform: rotate(90deg);
    width: 40px;
    height: 20px;
  }
  .pipe-col-fork {
    width: 40px;
    height: 20px;
  }
  .pipe-col-fork svg { display: none; }
  .pipe-col-fork::after {
    content: '↓';
    display: block;
    text-align: center;
    color: var(--ink-muted);
    font-size: 16px;
  }
  .pipe-col-outputs { flex-direction: column; gap: 12px; }
  .pipe-circle { width: 52px; height: 52px; }
  .pipe-circle svg { width: 20px; height: 20px; }
  .pipe-lbl { font-size: 11px; }
  .pipe-desc { font-size: 10px; }
  .pipe-badge { font-size: 8px; padding: 2px 6px; }
  .pipe-callout { font-size: 12px; padding: 16px; }
  .pipe-conn-labels { display: none; }

  /* Flowchart */
  .flow-node { padding: 16px; font-size: 13px; max-width: 100%; }
  .flow-node-wide { padding: 16px; }
  .flow-clients { font-size: 10px; }
  .flow-arr { font-size: 16px; margin: 4px 0; }
  .biz-quote-card { padding: 16px; }
  .biz-quote-body { font-size: 13px; }

  /* Advisors — single column */
  .advisor-cards { grid-template-columns: 1fr; }

  /* Ecosystem */
  .customer-types { grid-template-columns: 1fr; }
  .matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .matrix { min-width: 300px; }

  /* Team */
  .team-logos-row { gap: 20px 32px; }
  .team-logo-item { font-size: 13px; }

  /* Brain trace divider */
  .brain-trace-divider { padding: 0 16px; }

  /* Ecosystem */
  .customer-card { padding: 14px 16px; }
  .customer-type-label { font-size: 12px; }
  .customer-companies-row { font-size: 10px; }
  .customer-desc { font-size: 11px; }
  .matrix { max-width: 100%; }
  .matrix-title { font-size: 14px; }
  .matrix-legend { font-size: 11px; }
  .mat-lbl { font-size: 10px; }
  .mat-name { font-size: 9px; }

  /* Team */
  .founder-compact { padding: 18px; }
  .founder-compact-name { font-size: 20px; }
  .founder-compact-role { font-size: 9px; }
  .ftag { font-size: 10px; padding: 3px 8px; }
  .founder-bios { font-size: 11px; }

  /* Team Logos */
  .team-logos { margin: 36px 0; }
  .team-logos-label { font-size: 10px; margin-bottom: 16px; }
  .team-logos-row { gap: 20px; justify-content: center; }
  .team-logo-item { font-size: 12px; }

  /* Advisor Cards */
  .advisor-cards { grid-template-columns: 1fr; gap: 12px; }
  .advisor-card { padding: 16px; }
  .adv-role { font-size: 10px; }
  .adv-desc { font-size: 11px; }
  .adv-label-full { font-size: 9px; }

  /* CTA */
  .ask-box { padding: 32px 24px; }
  .ask-amount { font-size: 44px; }
  .ask-ctas { flex-direction: column; align-items: center; gap: 10px; }

  /* Footer */
  .footer-inner { flex-wrap: wrap; gap: 8px; font-size: 12px; justify-content: center; }

  /* Misc existing */
  .revenue-cards { grid-template-columns: 1fr; }
  .traction-row { grid-template-columns: 1fr; }
  .phase-cards { grid-template-columns: 1fr; }
  .moat-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
  }
  .mg-corner { display: none; }
  .mg-col-head { display: none; }
  .mg-row-lbl {
    grid-column: unset;
    background: var(--surface);
    font-size: 10px;
    padding: 10px 14px 4px;
    border-bottom: none;
    color: var(--ink-muted);
  }
  .mg-data {
    padding: 6px 14px 10px;
    font-size: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-dim);
  }
  .mg-engram-cell { font-weight: 600; color: var(--ink); }
  .mg-data::before {
    display: inline-block;
    font-size: 10px;
    color: var(--ink-muted);
    margin-right: 6px;
    font-family: 'Courier Prime', monospace;
  }
  .roadmap { gap: 8px; }
  .rm-event { font-size: 11px; max-width: 90px; }
  .roadmap-scroll-hint { display: block; }

  /* Who it's for — stack columns */
  #ecosystem .container > div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
    border-top: none !important;
    gap: 0 !important;
  }
  #ecosystem .container > div > div[style*="border-right"] {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 24px 0 !important;
  }
  #ecosystem .container > div > div:last-child {
    padding: 24px 0 0 !important;
    border-bottom: none !important;
  }
  #ecosystem .container > div > div[style*="font-size:48px"] {
    font-size: 32px !important;
  }

  /* How Experts Earn — stack before/after */
  #business-model div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    margin: 32px 0 !important;
  }
  #business-model div[style*="border-right:1px solid"] {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 24px 0 !important;
  }
  #business-model div[style*="font-size:32px"] {
    font-size: 24px !important;
  }
  #business-model div[style*="font-size:20px"] {
    font-size: 17px !important;
  }

  /* Data section — stack JSON + annotations */
  #solution div[style*="grid-template-columns:1fr 340px"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  #solution div[style*="border-left:2px"] {
    padding: 8px 12px !important;
  }

  /* Competitive positioning — stack */
  #solution div[style*="grid-template-columns:1fr 1fr"][style*="gap:32px"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Trace walkthrough — stack image above text */
  #trace-walkthrough > .trace-event {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }
  #trace-walkthrough > .trace-event img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  #trace-walkthrough > .trace-connector {
    margin-left: 20px !important;
  }

  /* Advisors — single column on small screens */
  .advisor-cards {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Founders — single column */
  .founders-row {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .founder-compact {
    text-align: center;
  }

  /* Trust bar — stack */
  .section > .container > div[style*="display:flex"][style*="gap:48px"] {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .section > .container > div > div[style*="width:1px"][style*="height:40px"] {
    width: 48px !important;
    height: 1px !important;
  }

  /* Team logos — wrap tighter */
  .team-logos-row {
    gap: 16px 24px !important;
  }
  .team-logo-item {
    font-size: 12px !important;
  }

  /* Testimonials — smaller text */
  .section-alt > .container > div[style*="font-size:22px"] {
    font-size: 17px !important;
  }

  /* General fluid images */
  img { max-width: 100%; height: auto; }

  /* Prevent horizontal scroll */
  body { overflow-x: hidden; }
  .container { overflow-x: hidden; }
}
