/* ═══════════════════════════════════════════════════════════════
   COGNIVERSE - Cinematic Redesign Stylesheet
   Built on top of brand.css. Bold, motion-first, Palantir-tone.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #050810;
  --ink2: #0A1020;
  --teal: #00BFB3;
  --teal-glow: rgba(0, 191, 179, 0.45);
  --bone: #F3F1EC;
  --bone-mid: #C8C4B8;
  --orange: #F4845F;
  --rule: rgba(255, 255, 255, 0.08);
  --rule-strong: rgba(255, 255, 255, 0.16);
}

html { background: var(--ink); }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: 'Inter', sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Hide native cursor on hero - keep brand custom cursor */

/* ─── GRAIN OVERLAY ─── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  mix-blend-mode: overlay;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ─── MILE MARKERS / SECTION FRAMING ─── */
.mile {
  position: absolute;
  top: 5rem;
  left: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  z-index: 5;
}
.mile span.mile-num { color: var(--teal); }
.mile-r {
  position: absolute;
  top: 5rem;
  right: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  z-index: 5;
}

/* ─── DISPLAY TYPE ─── */
.display {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.92;
  color: var(--bone);
}
.display-xxl { font-size: clamp(3.2rem, 12vw, 14rem); }
.display-xl  { font-size: clamp(1.7rem, 5.8vw, 8rem); }
.display-lg  { font-size: clamp(2.4rem, 6vw, 5.5rem); }
.display-md  { font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 1; }
.display em {
  font-style: normal;
  color: var(--teal);
}
.display .stroked {
  -webkit-text-stroke: 1.5px var(--bone);
  color: transparent;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px; background: var(--teal);
}

.lead {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.45;
  color: rgba(243, 241, 236, 0.78);
  max-width: 56ch;
}

/* ─── SECTION COMMON ─── */
section.cv {
  position: relative;
  padding: 6rem 2rem;
  border-top: 1px solid var(--rule);
}
section.cv.tall { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
section.cv.full { min-height: 100vh; padding: 0; }

.container-w {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* ─── HERO FILM ─── */
#hero-film {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  border-top: none;
  padding: 0;
}
#hero-film .mile { display: none; }
#hero-film .film-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: var(--ink);
}
#orchestrator .orch-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#comp-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#hero-film .vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 35%, rgba(5,8,16,0.65) 75%, rgba(5,8,16,0.95) 100%),
    linear-gradient(to bottom, rgba(5,8,16,0.7) 0%, transparent 25%, transparent 65%, rgba(5,8,16,0.95) 100%);
  pointer-events: none;
  z-index: 2;
}
#hero-film .hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 4rem;
  z-index: 3;
}
#hero-film .hero-meta-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2rem;
}
.hero-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hero-meta .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--teal);
  margin-right: 0.4rem;
  vertical-align: middle;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  display: block;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}
.hero-title .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-title .line:nth-child(2) span { animation-delay: 0.15s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.3s; }
@keyframes rise {
  to { transform: translateY(0); }
}

.hero-bottom-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 2.5rem;
  gap: 3rem;
  flex-wrap: wrap;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-cv {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border: 1px solid var(--rule-strong);
  background: rgba(255,255,255,0.04);
  color: var(--bone);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}
.btn-cv:hover { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.btn-cv.primary { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.btn-cv.primary:hover { background: transparent; color: var(--teal); }
.btn-cv .arrow { transition: transform 0.3s ease; }
.btn-cv:hover .arrow { transform: translateX(4px); }

.hero-side-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  text-align: right;
  line-height: 1.6;
}
.hero-side-stat strong {
  display: block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--teal);
  font-weight: 700;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-cue .bar {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollbar 2s ease-in-out infinite;
}
@keyframes scrollbar {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── INTRO: CHAOS → CLARITY ─── */
#intro-shift {
  background: var(--ink);
  position: relative;
  height: 200vh;
}
#intro-shift .pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.shift-stage {
  position: relative;
  width: 100%;
  height: 100%;
}
.shift-line {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 1100px;
}
.shift-line .display { line-height: 0.95; }

/* ─── PROBLEM STATS ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-cell {
  padding: 3rem 2rem;
  border-right: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.stat-cell:last-child { border-right: none; }
.stat-cell::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s cubic-bezier(0.22,1,0.36,1);
}
.stat-cell.in::before { transform: scaleX(1); }
.stat-num {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--teal);
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.stat-cell .stat-label-cv {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
}
.stat-cell .stat-desc-cv {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}

/* ─── WHY FAIL FLOW ─── */
.fail-flow {
  display: flex;
  position: relative;
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
}
.fail-step {
  flex: 1;
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--rule);
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.fail-step:last-child { border-right: none; }
.fail-step .step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 1rem;
}
.fail-step .step-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  color: var(--bone);
}
.fail-step .step-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  flex: 1;
}
.fail-step .step-icon {
  width: 100%; height: 80px;
  margin-bottom: 1.5rem;
}

/* ─── ARCHITECTURE STACK ─── */
.arch-stack-cv {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 3rem;
  position: relative;
}
.arch-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 2rem;
  padding: 2rem;
  background: rgba(255,255,255,0.025);
  border-left: 3px solid var(--rule-strong);
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.arch-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.arch-row.in::before { transform: scaleY(1); }
.arch-row:hover { background: rgba(0,191,179,0.06); border-left-color: var(--teal); }
.arch-row.core {
  background: rgba(0,191,179,0.08);
  border-left-color: var(--teal);
}
.arch-row .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.arch-row.core .badge { color: var(--teal); }
.arch-row .arch-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  color: var(--bone);
}
.arch-row.core .arch-title { color: var(--teal); }
.arch-row .arch-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.4rem;
}
.arch-row .pulse {
  width: 12px; height: 12px;
  background: var(--teal);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  opacity: 0.3;
}
.arch-row.core .pulse {
  opacity: 1;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 var(--teal-glow); }
  100% { box-shadow: 0 0 0 18px rgba(0,191,179,0); }
}

/* ─── ORCHESTRATOR FULLSCREEN ─── */
#orchestrator {
  height: 100vh;
  background: radial-gradient(ellipse at center, #0a1428 0%, var(--ink) 65%);
  position: relative;
  overflow: hidden;
}
/* moved to top */
#orchestrator .orch-overlay {
  position: absolute;
  bottom: 4rem; left: 3rem;
  z-index: 4;
  max-width: 480px;
}
#orchestrator .orch-overlay .display { line-height: 0.95; }
#orchestrator .orch-side {
  position: absolute;
  top: 50%; right: 3rem;
  transform: translateY(-50%);
  z-index: 4;
  display: flex; flex-direction: column; gap: 1px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  width: 220px;
}
#orchestrator .orch-side .row {
  background: rgba(255,255,255,0.04);
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--teal);
  display: flex; justify-content: space-between;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
}
#orchestrator .orch-side .row .v { color: var(--teal); }

/* ─── HOW IT WORKS ─── */
.how-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.how-cell {
  padding: 3rem 2rem;
  border-right: 1px solid var(--rule);
  min-height: 380px;
  display: flex; flex-direction: column;
  position: relative;
}
.how-cell:last-child { border-right: none; }
.how-cell .how-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 1rem;
}
.how-cell .how-icon {
  height: 100px;
  margin-bottom: 1.5rem;
}
.how-cell .how-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  color: var(--bone);
  margin-bottom: 0.75rem;
}
.how-cell .how-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}

/* ─── CONFIDENCE DEMO ─── */
#confidence-demo .demo-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--rule-strong);
  padding: 3rem;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.demo-meter-wrap {
  position: relative;
}
.demo-readout {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.demo-conf-num {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.9;
  color: var(--teal);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.5rem;
}
.demo-conf-num .pct { font-size: 0.5em; color: rgba(0,191,179,0.5); }
.demo-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.demo-bar-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: var(--teal);
  width: 0%;
  transition: width 0.6s ease;
}
.demo-thresholds {
  display: flex; justify-content: space-between;
  margin-top: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
}
.demo-controls {
  display: flex; gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.demo-controls button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.3s;
}
.demo-controls button:hover { border-color: var(--teal); color: var(--teal); }
.demo-controls button.active { background: var(--teal); color: var(--ink); border-color: var(--teal); }

.demo-decision {
  background: var(--ink2);
  border-left: 2px solid var(--teal);
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}
.demo-decision .label {
  color: rgba(255,255,255,0.4);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.demo-decision .row { padding: 0.4rem 0; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.demo-decision .row:last-child { border: none; }
.demo-decision .row .v { color: var(--teal); float: right; }
.demo-decision .verdict {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0,191,179,0.1);
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.demo-decision .verdict.warn {
  background: rgba(244,132,95,0.12);
  color: var(--orange);
}

/* ─── PRODUCTS / OFFERING ─── */
.products-grid-cv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-top: 3rem;
}
.product-cell {
  padding: 3rem;
  background: rgba(255,255,255,0.025);
  border-top: 2px solid var(--teal);
  position: relative;
  overflow: hidden;
}
.product-cell .product-name {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.product-cell .product-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.product-cell .product-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
}

/* ─── SERVICE TIERS ─── */
.tiers-cv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
}
.tier-cv {
  padding: 3rem 2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  position: relative;
}
.tier-cv:last-child { border-right: none; }
.tier-cv.featured {
  background: rgba(0,191,179,0.05);
}
.tier-cv .tier-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.tier-cv .tier-title-cv {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin-bottom: 0.4rem;
}
.tier-cv .tier-sub-cv {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}
.tier-cv ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.tier-cv ul li {
  font-size: 0.87rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  color: rgba(255,255,255,0.7);
  display: flex; gap: 0.75rem; align-items: baseline;
}
.tier-cv ul li::before {
  content: '→';
  color: var(--teal);
  font-size: 0.78rem;
}
.tier-cv ul li:last-child { border-bottom: none; }
.tier-cv .tier-own-cv {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--teal);
  text-transform: uppercase;
  padding-top: 1rem;
  border-top: 1px solid var(--teal);
}

/* ─── MARKET ─── */
.market-grid-cv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 3rem;
  border: 1px solid var(--rule);
}
.market-panel-cv {
  padding: 3rem;
  border-right: 1px solid var(--rule);
}
.market-panel-cv:last-child { border-right: none; }
.market-num-cv {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
  color: var(--teal);
  line-height: 0.9;
  margin-bottom: 0.4rem;
}
.market-tag-cv {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.market-rows {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.market-rows .mr {
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.market-rows .mr .num {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  color: var(--teal);
  font-size: 1.05rem;
}

/* ─── COMPOUNDING NETWORK ─── */
#compounding {
  height: 100vh;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
/* moved to top */
#compounding .comp-overlay {
  position: absolute;
  top: 50%; left: 3rem;
  transform: translateY(-50%);
  z-index: 4;
  max-width: 480px;
}
#compounding .comp-stat {
  position: absolute;
  bottom: 4rem;
  right: 3rem;
  z-index: 4;
  text-align: right;
}
#compounding .comp-stat .num {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
#compounding .comp-stat .lab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}

/* ─── TEAM ─── */
.team-grid-cv {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
}
.team-cell {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.team-cell:nth-child(4n) { border-right: none; }
.team-cell .team-init-cv {
  width: 56px; height: 56px;
  background: rgba(0,191,179,0.1);
  border: 1px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}
.team-cell .team-name-cv {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: var(--bone);
  margin-bottom: 0.25rem;
}
.team-cell .team-role-cv {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.team-cell .team-owns-cv {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

/* ─── TRUSTED LOGOS ─── */
.trust-strip {
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}
.trust-strip-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-bottom: 2rem;
}
.trust-track {
  display: flex;
  gap: 5rem;
  width: max-content;
  animation: scroll-x 38s linear infinite;
  align-items: center;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.trust-track .logo-mark {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: color 0.3s ease;
}
.trust-track .logo-mark:hover { color: var(--teal); }
.trust-track .sep {
  width: 4px; height: 4px;
  background: var(--teal);
  flex-shrink: 0;
}

/* ─── FINAL CTA ─── */
#final-cta {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem;
  text-align: center;
}
#final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,191,179,0.12) 0%, transparent 50%);
  z-index: 0;
}
#final-cta .container-w { z-index: 1; }
#final-cta .display {
  margin: 0 auto 2.5rem;
}
#final-cta .cta-actions-cv {
  display: flex; gap: 1rem; justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ─── FOOTER LITE ─── */
.footer-lite {
  padding: 3rem 2rem 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-lite .wm {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--bone);
}
.footer-lite .wm span { color: var(--teal); }
.footer-lite .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

/* ─── NAV OVERRIDE ─── */
nav.cv-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
nav.cv-nav.scrolled {
  background: rgba(5,8,16,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
nav.cv-nav .wm {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--bone);
  text-decoration: none;
  display: flex; flex-direction: column;
  line-height: 1.1;
}
nav.cv-nav .wm .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.32em;
  color: var(--teal);
  font-weight: 400;
}
nav.cv-nav .links {
  display: flex; gap: 2rem;
  list-style: none;
}
nav.cv-nav .links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.4rem 0;
  position: relative;
}
nav.cv-nav .links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
nav.cv-nav .links a:hover { color: var(--teal); }
nav.cv-nav .links a:hover::after { transform: scaleX(1); }
nav.cv-nav .nav-cta-cv {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--teal);
  color: var(--ink);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
nav.cv-nav .nav-cta-cv:hover { transform: translateY(-1px); }

/* ─── SOUND TOGGLE ─── */
#cv-sound {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 9001;
  width: 44px; height: 44px;
  background: rgba(5,8,16,0.85);
  border: 1px solid var(--rule-strong);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
#cv-sound:hover { border-color: var(--teal); }
#cv-sound[data-on="true"] { border-color: var(--teal); background: rgba(0,191,179,0.08); }
#cv-sound svg { width: 18px; height: 18px; fill: none; stroke: rgba(255,255,255,0.7); stroke-width: 1.5; }
#cv-sound[data-on="true"] svg { stroke: var(--teal); }

/* ─── REVEAL UTILITIES ─── */
.rev {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1),
              transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.rev.in { opacity: 1; transform: translateY(0); }
.rev.d1 { transition-delay: 0.08s; }
.rev.d2 { transition-delay: 0.16s; }
.rev.d3 { transition-delay: 0.24s; }
.rev.d4 { transition-delay: 0.32s; }
.rev.d5 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .scroll-cue { display: none; }
  #hero-film .hero-bottom-row { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .hero-side-stat { text-align: left; }
  #orchestrator .orch-overlay { bottom: 2rem; left: 1.5rem; max-width: 360px; }
  #compounding .comp-overlay { left: 1.5rem; max-width: 360px; }
  #compounding .comp-stat { right: 1.5rem; bottom: 2rem; }
}
@media (max-width: 1024px) {
  nav.cv-nav .links { display: none; }
  .stats-row, .fail-flow, .how-flow, .team-grid-cv { grid-template-columns: repeat(2, 1fr); }
  .stats-row > .stat-cell:nth-child(2),
  .how-flow > .how-cell:nth-child(2) { border-right: none; }
  .arch-row { grid-template-columns: 100px 1fr auto; gap: 1rem; }
  #confidence-demo .demo-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
  .products-grid-cv, .market-grid-cv, .tiers-cv { grid-template-columns: 1fr; }
  .tier-cv, .market-panel-cv { border-right: none; }
  #orchestrator .orch-side { display: none; }
}
@media (max-width: 768px) {
  section.cv { padding: 4rem 1.5rem; }
  .stats-row, .fail-flow, .how-flow, .team-grid-cv { grid-template-columns: 1fr; }
  .stat-cell, .fail-step, .how-cell, .team-cell { border-right: none; }
  #hero-film .hero-content { padding: 0 1.5rem 3rem; }
  .arch-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .fail-step, .how-cell { display: flex; }
}
