/* ============================================================
 * Evals & Infra page — local stylesheet (ev- prefix)
 * Design vocabulary: editorial · eval harness · emerald accent
 * Mirrors the v2 / marketing conventions so AI & Automation reads as
 * one studio. LIME stays the site-wide primary accent; emerald
 * (--ev-emerald) flavors the demo / harness / dashboard internals only.
 * Emerald (#22C55E) is kept a deeper green than lime so the two never blur.
 * ============================================================ */

.ev-page {
  --ev-emerald: #22C55E;
  --ev-emerald-2: #4ADE80;
  --ev-amber: #F59E0B;
  --ev-red: #F4796F;
  --ev-paper: #E6F4EC;
  --ev-ink: #06120C;
  --ev-lime: #d4ff3a;
  --ev-paper-soft: rgba(230, 244, 236, 0.04);
  --ev-line: rgba(230, 244, 236, 0.12);
  --ev-line-strong: rgba(230, 244, 236, 0.22);
  --ev-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ev-display: 'Fraunces', 'Bodoni Moda', serif;
  --ev-sans: 'Space Grotesk', system-ui, sans-serif;
  background: var(--ev-ink);
  color: var(--ev-paper);
}

/* ===== shared atoms ===== */
.ev-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ev-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(230, 244, 236, 0.62);
  padding: 8px 12px;
  border: 1px solid var(--ev-line);
  border-radius: 999px;
  background: var(--ev-paper-soft);
}
.ev-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: evPulse 2.4s ease-in-out infinite;
}
@keyframes evPulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.45 } }

.ev-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ev-sans);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border: 1px solid var(--ev-line-strong);
  border-radius: 999px;
  color: var(--ev-paper);
  background: transparent;
  text-decoration: none;
  transition: background-color 0.35s cubic-bezier(0.16,1,0.3,1),
              color 0.35s cubic-bezier(0.16,1,0.3,1),
              border-color 0.35s cubic-bezier(0.16,1,0.3,1);
}
.ev-btn:hover { background: var(--ev-paper); color: var(--ev-ink); border-color: var(--ev-paper); }
/* Primary CTA — LIME per site convention. --ev-btn--emerald aliases lime so
 * markup can opt into an "emerald" name without ever colouring a primary CTA emerald. */
.ev-btn--lime,
.ev-btn--emerald {
  background: var(--ev-lime);
  color: var(--ev-ink);
  border-color: var(--ev-lime);
}
.ev-btn--lime:hover,
.ev-btn--emerald:hover { background: transparent; color: var(--ev-lime); border-color: var(--ev-lime); }
.ev-btn .arr { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.ev-btn:hover .arr { transform: translateX(4px); }

.ev-section {
  position: relative;
  padding: 140px 6vw 160px;
  z-index: 2;
}
.ev-harness, .ev-arch, .ev-tools, .ev-compound, .ev-ledger, .ev-cta {
  z-index: 5;
  isolation: isolate;
}
.ev-program { z-index: 1; }
.ev-program__sticky { z-index: 1; }
.ev-harness__stage, .ev-harness__panel, .ev-harness__slider,
.ev-tools__grid, .ev-tool {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.ev-section__head {
  max-width: 880px;
  margin: 0 auto 80px;
  text-align: center;
}
.ev-section__title {
  font-family: var(--ev-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 24px 0 24px;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
}
.ev-section__title em { font-style: italic; color: var(--ev-lime); }
.ev-section__lede {
  font-family: var(--ev-sans);
  font-size: 17px; line-height: 1.62;
  color: rgba(230, 244, 236, 0.70);
  max-width: 640px; margin: 0 auto;
}
.ev-section__lede em {
  font-family: var(--ev-display); font-style: italic;
  color: var(--ev-paper); font-weight: 500;
}

/* ============================================================
 * 01 — HERO (eval console)
 * ============================================================ */
.ev-hero {
  position: relative; min-height: 100vh;
  padding: 120px 6vw 60px; overflow: hidden; z-index: 1;
}
.ev-hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image:
    radial-gradient(rgba(230, 244, 236, 0.6) 1px, transparent 1px),
    radial-gradient(rgba(230, 244, 236, 0.6) 1px, transparent 1px);
  background-size: 4px 4px, 6px 6px; background-position: 0 0, 2px 3px;
  mix-blend-mode: overlay;
}
.ev-hero__three {
  position: absolute; top: 6%; right: -8%;
  width: 72vw; max-width: 1000px; height: 76vh;
  pointer-events: none; opacity: 0.62; z-index: 0;
}
.ev-hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; min-height: calc(100vh - 240px);
}
.ev-hero__left { padding-right: 20px; }
.ev-hero__title {
  font-family: var(--ev-display); font-weight: 400;
  font-size: clamp(48px, 6.4vw, 108px); line-height: 1.0;
  letter-spacing: -0.025em; margin: 28px 0 28px;
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 30, 'WONK' 1;
}
.ev-hero__title em { font-style: italic; color: var(--ev-lime); }
.ev-hero__lede {
  font-family: var(--ev-sans); font-size: 18px; line-height: 1.62;
  color: rgba(230, 244, 236, 0.72); max-width: 540px;
}
.ev-hero__cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.ev-hero__caption {
  margin-top: 38px; font-family: var(--ev-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(230, 244, 236, 0.45);
  display: flex; gap: 14px; align-items: baseline;
}
.ev-hero__caption .n {
  font-family: var(--ev-display); font-style: italic; font-size: 16px; color: var(--ev-lime);
}

/* eval console */
.ev-hero__console {
  position: relative; width: 100%;
  background: linear-gradient(180deg, #0c1c14 0%, #09140e 100%);
  border: 1px solid var(--ev-line); border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(230,244,236,0.04);
  overflow: hidden; display: flex; flex-direction: column;
}
.ev-console__chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--ev-line);
  background: rgba(230, 244, 236, 0.02);
}
.ev-console__title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ev-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(230,244,236,0.6);
}
.ev-console__pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 10px var(--lime);
  animation: evPulse 1.6s ease-in-out infinite;
}
.ev-console__roas {
  font-family: var(--ev-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(230,244,236,0.55);
}
.ev-console__roas span {
  font-family: var(--ev-display); font-style: italic; font-size: 18px;
  color: var(--ev-lime); margin-left: 6px;
  font-variation-settings: 'opsz' 96, 'wght' 600;
}
.ev-console__query {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-bottom: 1px solid var(--ev-line);
  background: rgba(230,244,236,0.02);
  font-family: var(--ev-mono); font-size: 12.5px; color: rgba(230,244,236,0.82);
}
.ev-console__query-icon { color: var(--ev-emerald); font-size: 14px; }
.ev-console__query-text { flex: 1; }
.ev-console__caret {
  width: 1.5px; height: 14px; background: var(--ev-emerald);
  animation: evCaret 1.1s step-end infinite;
}
.ev-console__body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--ev-line);
}
.ev-console__metric {
  background: #09140e; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.ev-console__metric .k {
  font-family: var(--ev-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(230,244,236,0.5);
}
.ev-console__metric .v {
  font-family: var(--ev-display); font-size: 30px; font-weight: 500; color: var(--ev-paper);
  font-variation-settings: 'opsz' 96, 'wght' 500;
}
.ev-console__spark { display: block; width: 100%; height: 90px; background: #09140e; }
.ev-console__control {
  padding: 16px 20px 20px; border-top: 1px solid var(--ev-line);
  background: rgba(230,244,236,0.02);
}
.ev-console__control-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--ev-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(230,244,236,0.55); margin-bottom: 12px;
}
.ev-console__budget { font-family: var(--ev-display); font-style: italic; font-size: 18px; color: var(--ev-emerald); }
.ev-console__slider, .ev-harness__slider {
  appearance: none; -webkit-appearance: none; width: 100%; height: 4px;
  background: var(--ev-line); border-radius: 2px; outline: none; cursor: ew-resize;
}
.ev-console__slider::-webkit-slider-thumb, .ev-harness__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--lime); cursor: ew-resize; box-shadow: 0 4px 12px rgba(212,255,58,0.5);
}
.ev-console__slider::-moz-range-thumb, .ev-harness__slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--lime);
  cursor: ew-resize; border: 0; box-shadow: 0 4px 12px rgba(212,255,58,0.5);
}
@keyframes evCaret { 0%,100% { opacity: 1 } 50% { opacity: 0 } }

/* hero metrics row */
.ev-hero__metrics {
  position: relative; z-index: 2; margin-top: 36px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--ev-line);
}
.ev-hero__metric {
  padding: 22px 24px; border-right: 1px solid var(--ev-line);
  display: flex; flex-direction: column; gap: 8px;
}
.ev-hero__metric:last-child { border-right: 0; }
.ev-hero__metric .k {
  font-family: var(--ev-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(230,244,236,0.5);
}
.ev-hero__metric .v {
  font-family: var(--ev-display); font-size: 38px; font-weight: 500; color: var(--ev-paper);
  font-variation-settings: 'opsz' 96, 'wght' 500;
}
.ev-hero__metric .v em { font-style: italic; color: var(--ev-lime); }

/* ============================================================
 * 02 — LEDGER
 * ============================================================ */
.ev-ledger__table { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--ev-line-strong); }
.ev-ledger__row {
  display: grid; grid-template-columns: 1.2fr 1fr 2.4fr 1fr; gap: 30px;
  padding: 26px 18px; border-bottom: 1px solid var(--ev-line);
  transition: background 0.3s ease, padding 0.3s ease; align-items: baseline;
}
.ev-ledger__row:hover { background: rgba(230,244,236,0.03); padding-left: 28px; }
.ev-ledger__name {
  font-family: var(--ev-display); font-style: italic; font-size: 28px;
  font-variation-settings: 'opsz' 96, 'wght' 500, 'SOFT' 30, 'WONK' 1; color: var(--ev-paper);
}
.ev-ledger__type {
  font-family: var(--ev-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(230,244,236,0.55);
}
.ev-ledger__beat {
  font-family: var(--ev-sans); font-size: 14px; line-height: 1.55; color: rgba(230,244,236,0.72);
}
.ev-ledger__metric { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.ev-ledger__metric em {
  font-family: var(--ev-display); font-style: italic; font-size: 32px; font-weight: 500;
  color: var(--ev-lime); font-variation-settings: 'opsz' 96, 'wght' 500;
}
.ev-ledger__metric span {
  font-family: var(--ev-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(230,244,236,0.45);
}

/* ============================================================
 * 03 — HARNESS (signature: live eval harness)
 * ============================================================ */
.ev-harness__stage {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px;
  max-width: 1220px; margin: 0 auto; align-items: start;
}
/* left — golden set / pass-fail grid */
.ev-harness__grid-wrap {
  background: #0a1710; border: 1px solid var(--ev-line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6);
}
.ev-harness__grid-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--ev-line); background: rgba(230,244,236,0.02);
}
.ev-harness__grid-mark {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--ev-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(230,244,236,0.74);
}
.ev-harness__grid-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ev-emerald); box-shadow: 0 0 10px var(--ev-emerald); }
.ev-harness__grid-stage {
  font-family: var(--ev-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ev-emerald);
}

/* dimension header row + each grid row share this column template */
.ev-harness__dims,
.ev-harness__grid-row {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 8px; align-items: center;
}
.ev-harness__dims {
  padding: 12px 16px 10px; border-bottom: 1px solid var(--ev-line);
}
.ev-harness__dim-spacer {
  font-family: var(--ev-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(230,244,236,0.4);
}
.ev-harness__dim {
  font-family: var(--ev-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(230,244,236,0.6); text-align: center;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.ev-harness__dim.is-off { opacity: 0.35; text-decoration: line-through; }

.ev-harness__grid { padding: 10px 16px 6px; display: flex; flex-direction: column; gap: 7px; min-height: 432px; }
.ev-harness__grid-row {
  padding: 5px 0;
  transition: opacity 0.4s ease;
}
.ev-harness__case {
  font-family: var(--ev-mono); font-size: 11px; letter-spacing: 0.04em;
  color: rgba(230,244,236,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ev-harness__case b { color: rgba(230,244,236,0.9); font-weight: 600; }

/* pass / fail cell — the signature visual */
.ev-cell {
  height: 26px; border-radius: 6px;
  border: 1px solid var(--ev-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ev-mono); font-size: 11px; font-weight: 600;
  transition: background 0.45s cubic-bezier(0.16,1,0.3,1), border-color 0.45s ease, color 0.45s ease, opacity 0.3s ease;
}
.ev-cell--pass {
  background: rgba(34,197,94,0.16); border-color: rgba(34,197,94,0.5); color: var(--ev-emerald-2);
}
.ev-cell--pass::before { content: '✓'; }
.ev-cell--fail {
  background: rgba(244,121,111,0.14); border-color: rgba(244,121,111,0.5); color: var(--ev-red);
}
.ev-cell--fail::before { content: '✕'; }
.ev-cell--off {
  background: rgba(230,244,236,0.03); border-color: var(--ev-line); color: rgba(230,244,236,0.25); opacity: 0.5;
}
.ev-cell--off::before { content: '–'; }
.ev-cell--chip { display: inline-flex; width: 18px; height: 18px; padding: 0; vertical-align: middle; }

.ev-harness__grid-foot {
  display: flex; gap: 20px; flex-wrap: wrap; padding: 12px 18px;
  border-top: 1px solid var(--ev-line); background: rgba(230,244,236,0.02);
}
.ev-harness__legend {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ev-mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(230,244,236,0.55);
}

/* right — control panel + verdict */
.ev-harness__panel {
  display: flex; flex-direction: column; gap: 18px; padding: 24px;
  background: rgba(230,244,236,0.03); border: 1px solid var(--ev-line); border-radius: 14px;
}
.ev-harness__versions { display: flex; gap: 8px; flex-wrap: wrap; }
.ev-harness__v {
  font-family: var(--ev-mono); font-size: 11px; letter-spacing: 0.06em;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ev-line); background: transparent; color: rgba(230,244,236,0.7);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.ev-harness__v:hover { border-color: var(--ev-line-strong); color: var(--ev-paper); }
.ev-harness__v.is-on { background: var(--ev-emerald); color: #04130b; border-color: var(--ev-emerald); }
.ev-harness__askbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px; background: rgba(6,18,12,0.6); border: 1px solid var(--ev-line);
  font-family: var(--ev-sans); font-size: 14px; color: var(--ev-paper);
}
.ev-harness__askbar-icon { color: var(--ev-emerald); }
.ev-harness__controls { display: flex; flex-direction: column; gap: 14px; }
.ev-harness__control-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--ev-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(230,244,236,0.6); margin-bottom: 10px;
}
.ev-harness__control-head--sub { margin-bottom: 2px; }
.ev-harness__val { font-family: var(--ev-display); font-style: italic; font-size: 17px; color: var(--ev-emerald); }
.ev-harness__toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-harness__toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 12px; border-radius: 10px; cursor: pointer;
  font-family: var(--ev-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--ev-line); background: rgba(6,18,12,0.4); color: rgba(230,244,236,0.55);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.ev-harness__toggle-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(230,244,236,0.3);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.ev-harness__toggle.is-on { color: var(--ev-paper); border-color: rgba(34,197,94,0.5); }
.ev-harness__toggle.is-on .ev-harness__toggle-dot { background: var(--ev-emerald); box-shadow: 0 0 9px var(--ev-emerald); }

/* verdict block — replaces rs answer block */
.ev-harness__verdict {
  border-radius: 12px; padding: 18px; border: 1px solid var(--ev-line);
  background: rgba(6,18,12,0.5); transition: border-color 0.35s ease, background 0.35s ease;
}
.ev-harness__verdict.is-ship { border-color: rgba(34,197,94,0.5); background: rgba(34,197,94,0.06); }
.ev-harness__verdict.is-block { border-color: rgba(244,121,111,0.5); background: rgba(244,121,111,0.06); }
.ev-harness__verdict-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ev-harness__verdict-label {
  font-family: var(--ev-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(230,244,236,0.55);
}
.ev-harness__verdict-flag {
  font-family: var(--ev-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.ev-harness__verdict-flag.is-ship { color: var(--ev-emerald-2); background: rgba(34,197,94,0.14); }
.ev-harness__verdict-flag.is-block { color: var(--ev-red); background: rgba(244,121,111,0.16); }
.ev-harness__verdict-text {
  font-family: var(--ev-display); font-size: 18px; line-height: 1.5; color: var(--ev-paper);
  font-variation-settings: 'opsz' 40, 'SOFT' 20;
}
.ev-harness__verdict-text b { font-style: italic; color: var(--ev-lime); }

/* per-dimension score bars inside the verdict */
.ev-harness__verdict-bars { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.ev-score {
  display: grid; grid-template-columns: 78px 1fr 42px; gap: 12px; align-items: center;
}
.ev-score__label {
  font-family: var(--ev-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(230,244,236,0.6);
}
.ev-score__track { height: 6px; border-radius: 3px; background: rgba(230,244,236,0.1); overflow: hidden; }
.ev-score__fill { display: block; height: 100%; border-radius: 3px; background: var(--ev-emerald-2); transition: width 0.6s cubic-bezier(0.16,1,0.3,1), background 0.4s ease; }
.ev-score__fill.is-under { background: var(--ev-red); }
.ev-score__val {
  font-family: var(--ev-mono); font-size: 11px; text-align: right; color: rgba(230,244,236,0.75); font-weight: 600;
}
.ev-score.is-off { opacity: 0.4; }

.ev-harness__readout {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px;
  background: var(--ev-line); border: 1px solid var(--ev-line); border-radius: 10px; overflow: hidden;
}
.ev-harness__stat { background: rgba(230,244,236,0.02); padding: 13px 14px; display: flex; flex-direction: column; gap: 5px; }
.ev-harness__stat .k {
  font-family: var(--ev-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(230,244,236,0.5);
}
.ev-harness__stat .v {
  font-family: var(--ev-display); font-size: 22px; color: var(--ev-paper);
  font-variation-settings: 'opsz' 96, 'wght' 500;
}
.ev-harness__stat--hero { background: rgba(34,197,94,0.08); }
.ev-harness__stat--hero .v { color: var(--ev-lime); font-style: italic; }
.ev-harness__note {
  font-family: var(--ev-display); font-style: italic; font-size: 15px;
  color: rgba(230,244,236,0.7); line-height: 1.5;
}

/* ============================================================
 * 04 — ARCHITECTURE (mock eval-pipeline dashboard)
 * ============================================================ */
.ev-arch__app {
  max-width: 1200px; margin: 0 auto;
  background: #0a1710; border: 1px solid var(--ev-line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6);
}
.ev-arch__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--ev-line); background: rgba(230,244,236,0.02);
  flex-wrap: wrap; gap: 10px;
}
.ev-arch__bar-mark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ev-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(230,244,236,0.78);
}
.ev-arch__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ev-emerald); box-shadow: 0 0 10px var(--ev-emerald); }
.ev-arch__bar-strat {
  font-family: var(--ev-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(230,244,236,0.55);
}
.ev-arch__bar-strat strong { color: var(--ev-paper); font-weight: 600; }
.ev-arch__body { display: grid; grid-template-columns: 200px 1fr; }
.ev-arch__tree {
  border-right: 1px solid var(--ev-line); padding: 18px 0; display: flex; flex-direction: column;
  background: rgba(230,244,236,0.01);
}
.ev-tree__node {
  font-family: var(--ev-sans); font-size: 13px; color: rgba(230,244,236,0.7);
  padding: 9px 22px; cursor: default; transition: background 0.2s ease, color 0.2s ease;
}
.ev-tree__node--root { font-weight: 600; color: var(--ev-paper); font-size: 13px; }
.ev-tree__node--stage { color: rgba(230,244,236,0.78); }
.ev-tree__node.is-on { background: rgba(34,197,94,0.1); color: var(--ev-paper); box-shadow: inset 3px 0 0 var(--ev-emerald); }
.ev-tree__node--stage:hover { background: rgba(230,244,236,0.04); }
.ev-arch__table { padding: 4px 0; overflow-x: auto; }
.ev-st__head, .ev-st__row {
  display: grid; grid-template-columns: 1fr 1.4fr 2.5fr 0.9fr; gap: 12px;
  padding: 13px 24px; align-items: center;
}
.ev-st__head {
  font-family: var(--ev-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(230,244,236,0.45); border-bottom: 1px solid var(--ev-line);
}
.ev-st__row {
  border-bottom: 1px solid rgba(230,244,236,0.06);
  font-family: var(--ev-sans); font-size: 13px; color: rgba(230,244,236,0.82);
}
.ev-st__row:last-child { border-bottom: 0; }
.ev-st__row.is-active { background: rgba(34,197,94,0.07); box-shadow: inset 3px 0 0 var(--ev-emerald); }
.ev-st__stage { font-family: var(--ev-display); font-style: italic; font-size: 17px; color: var(--ev-paper); font-variation-settings: 'opsz' 72, 'wght' 500; }
.ev-st__tool { font-family: var(--ev-mono); font-size: 12px; color: var(--ev-emerald-2); }
.ev-st__role { color: rgba(230,244,236,0.7); line-height: 1.4; }
.ev-st__sig {
  justify-self: start; font-family: var(--ev-mono); font-size: 10px; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px; text-transform: lowercase; white-space: nowrap;
}
.ev-st__sig--ok { background: rgba(34,197,94,0.16); color: var(--ev-emerald-2); }
.ev-st__sig--live { background: rgba(212,255,58,0.16); color: var(--ev-lime); }
.ev-st__sig--warn { background: rgba(245,158,11,0.16); color: var(--ev-amber); }
.ev-arch__foot {
  display: flex; gap: 28px; flex-wrap: wrap; padding: 16px 24px;
  border-top: 1px solid var(--ev-line); background: rgba(230,244,236,0.02);
}
.ev-arch__legend {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ev-mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(230,244,236,0.55);
}

/* ============================================================
 * 05 — PROGRAM (pinned cadence)
 * ============================================================ */
.ev-program {
  position: relative; padding: 0;
  background: linear-gradient(180deg, transparent, rgba(230,244,236,0.02), transparent);
}
.ev-program__inner { position: relative; height: 600vh; }
.ev-program__sticky {
  position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden;
}
.ev-program__num {
  position: absolute; top: 8vh; right: 6vw;
  font-family: var(--ev-display); font-style: italic; font-size: clamp(120px, 18vw, 280px);
  line-height: 1; color: rgba(230,244,236,0.05);
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 30, 'WONK' 1; pointer-events: none;
}
.ev-program__scene {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease; padding: 0 6vw;
}
.ev-program__scene.is-active { opacity: 1; transform: translateY(0); }
.ev-program__scene-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; width: 100%; max-width: 1200px;
}
.ev-program__copy h3 {
  font-family: var(--ev-display); font-size: clamp(40px, 5.6vw, 88px); line-height: 1.05;
  letter-spacing: -0.02em; margin: 24px 0 20px;
  font-variation-settings: 'opsz' 144, 'wght' 500, 'SOFT' 30, 'WONK' 1;
}
.ev-program__copy h3 em { font-style: italic; color: var(--ev-lime); }
.ev-program__copy p {
  font-family: var(--ev-sans); font-size: 17px; line-height: 1.62;
  color: rgba(230,244,236,0.72); max-width: 480px;
}
.ev-program__step {
  margin-top: 24px; font-family: var(--ev-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime);
}
.ev-program__visual {
  position: relative; height: 56vh; border-radius: 8px; overflow: hidden;
  background: rgba(230,244,236,0.03); border: 1px solid var(--ev-line);
}
.ev-program__rail {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 2px; background: rgba(230,244,236,0.12); border-radius: 1px;
  overflow: hidden; z-index: 50; opacity: 0; transition: opacity 0.4s ease;
}
.ev-program__rail.is-on { opacity: 1; }
.ev-program__rail-fill { height: 100%; width: 0%; background: var(--ev-lime); transition: width 0.2s linear; }

/* program visuals */
.ev-pv { position: absolute; inset: 0; padding: 28px; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.ev-pv--scope { gap: 12px; }
.ev-pv__find {
  display: flex; gap: 14px; align-items: baseline; padding: 14px 18px;
  background: rgba(230,244,236,0.04); border-left: 2px solid var(--ev-emerald); border-radius: 0 6px 6px 0;
}
.ev-pv__find-tag {
  flex: 0 0 auto; font-family: var(--ev-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ev-emerald); min-width: 80px;
}
.ev-pv__find span:last-child { font-family: var(--ev-sans); font-size: 14px; color: rgba(230,244,236,0.85); line-height: 1.45; }
.ev-pv--ingest, .ev-pv--report { padding: 22px 26px; gap: 0; }
.ev-pv__row, .ev-pv__report {
  display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 13px 0;
  border-bottom: 1px solid var(--ev-line); align-items: baseline;
}
.ev-pv__row:last-child, .ev-pv__report:last-child { border-bottom: 0; }
.ev-pv__row .k, .ev-pv__report .k {
  font-family: var(--ev-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ev-lime);
}
.ev-pv__row .v { font-family: var(--ev-sans); font-size: 14px; color: rgba(230,244,236,0.9); }
.ev-pv__report .v {
  font-family: var(--ev-display); font-style: italic; font-size: 16px; color: rgba(230,244,236,0.92);
  font-variation-settings: 'opsz' 96, 'SOFT' 30, 'WONK' 1;
}
.ev-pv--launch { padding: 22px 26px; gap: 10px; }
.ev-pv__check {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid var(--ev-line); border-radius: 8px;
  font-family: var(--ev-sans); font-size: 13.5px; color: rgba(230,244,236,0.7);
}
.ev-pv__check::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--ev-line-strong); flex: 0 0 auto;
}
.ev-pv__check.is-done { color: var(--ev-paper); border-color: rgba(34,197,94,0.4); }
.ev-pv__check.is-done::before {
  border-color: var(--ev-emerald); background: var(--ev-emerald);
  box-shadow: inset 0 0 0 2px #0a1710;
}
.ev-pv--ground { padding: 18px; }
.ev-pv__terms { display: flex; flex-direction: column; gap: 6px; }
.ev-pv__term {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 9px 14px; border-radius: 7px; background: rgba(230,244,236,0.03);
  border: 1px solid var(--ev-line); font-family: var(--ev-mono); font-size: 12px;
}
.ev-pv__term-q { font-family: var(--ev-sans); color: rgba(230,244,236,0.85); }
.ev-pv__term-act { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.ev-pv__term-act--add { background: rgba(34,197,94,0.16); color: var(--ev-emerald-2); }
.ev-pv__term-act--neg { background: rgba(244,121,111,0.16); color: var(--ev-red); }
.ev-pv__term-roas { color: var(--ev-lime); }
.ev-pv--scale { flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 28px; }
.ev-pv__chip {
  padding: 8px 14px; border: 1px solid var(--ev-line); border-radius: 999px;
  font-family: var(--ev-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(230,244,236,0.7);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.ev-pv__chip:hover { background: var(--ev-emerald); color: #04130b; border-color: var(--ev-emerald); }

/* ============================================================
 * 06 — COMPOUND chart
 * ============================================================ */
.ev-compound__wrap {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
}
.ev-compound__chart {
  display: block; width: 100%; height: 380px;
  background: rgba(230,244,236,0.02); border: 1px solid var(--ev-line); border-radius: 12px;
}
.ev-compound__legend { display: flex; flex-direction: column; gap: 18px; }
.ev-compound__key {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ev-sans); font-size: 15px; color: rgba(230,244,236,0.85); line-height: 1.5;
}
.ev-compound__key span {
  flex: 0 0 auto; width: 14px; height: 14px; border-radius: 4px; margin-top: 2px;
}
.ev-compound__key--managed span { background: var(--ev-lime); }
.ev-compound__key--auto span { background: rgba(230,244,236,0.3); }
.ev-compound__caption {
  font-family: var(--ev-mono); font-size: 11px; letter-spacing: 0.08em;
  color: rgba(230,244,236,0.4); line-height: 1.6; margin-top: 8px;
}

/* ============================================================
 * 07 — TOOLS
 * ============================================================ */
.ev-tools__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  max-width: 1200px; margin: 0 auto; background: var(--ev-line);
  border: 1px solid var(--ev-line); border-radius: 12px; overflow: hidden;
}
.ev-tool {
  background: var(--ev-ink); padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease; min-height: 110px; position: relative;
}
.ev-tool:hover { background: var(--ev-emerald); color: #04130b; }
.ev-tool .cat {
  font-family: var(--ev-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(230,244,236,0.45); margin-bottom: 6px;
}
.ev-tool:hover .cat { color: rgba(4,19,11,0.7); }
.ev-tool .nm {
  font-family: var(--ev-display); font-style: italic; font-size: 22px;
  font-variation-settings: 'opsz' 96, 'wght' 500, 'SOFT' 30, 'WONK' 1;
}
.ev-tool .glyph svg {
  width: 28px; height: 28px; fill: none; stroke: var(--lime); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.3s ease, transform 0.3s ease;
}
.ev-tool:hover .glyph svg { stroke: #04130b; transform: rotate(8deg); }

/* ============================================================
 * 08 — CTA
 * ============================================================ */
.ev-cta { position: relative; padding: 160px 6vw 200px; text-align: center; overflow: hidden; }
.ev-cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ev-cta__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.ev-cta__title {
  font-family: var(--ev-display); font-weight: 400; font-size: clamp(48px, 7vw, 112px);
  line-height: 1.04; letter-spacing: -0.025em; margin: 24px 0 24px;
  font-variation-settings: 'opsz' 144, 'wght' 400, 'SOFT' 30, 'WONK' 1;
}
.ev-cta__title em { font-style: italic; color: var(--ev-lime); }
.ev-cta__lede {
  font-family: var(--ev-sans); font-size: 18px; line-height: 1.6;
  color: rgba(230,244,236,0.7); max-width: 580px; margin: 0 auto 36px;
}

/* tweaks/sound hidden on production */
.ev-page .v2-tweaks, .ev-page .v2-sound { display: none !important; }

/* ============================================================
 * Trusted — client logo-loop strip (React Bits "Logo Loop")
 * ============================================================ */
.ev-trust {
  position: relative; z-index: 2;
  padding: 44px 0 52px;
  border-top: 1px solid var(--ev-line);
  border-bottom: 1px solid var(--ev-line);
  overflow: hidden;
}
.ev-trust__label {
  text-align: center;
  font-family: var(--ev-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(230, 244, 236, 0.45);
  margin-bottom: 26px;
}
.ev-trust__loop { width: 100%; }
.ev-trust__track { display: flex; align-items: center; }
.ev-trust__logo {
  flex: 0 0 auto;
  padding: 0 42px;
  font-family: var(--ev-display);
  font-style: italic;
  font-size: clamp(24px, 3vw, 32px);
  color: rgba(230, 244, 236, 0.40);
  font-variation-settings: 'opsz' 96, 'wght' 500, 'SOFT' 30, 'WONK' 1;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.ev-trust__logo:hover { color: var(--ev-paper); }

/* ============================================================
 * Responsive
 * ============================================================ */
@media (max-width: 1024px) {
  .ev-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .ev-hero__three { display: none; }
  .ev-hero__metrics { grid-template-columns: repeat(2, 1fr); }
  .ev-hero__metric { border-bottom: 1px solid var(--ev-line); }
  .ev-hero__metric:nth-child(2) { border-right: 0; }
  .ev-program__scene-inner { grid-template-columns: 1fr; gap: 30px; }
  .ev-program__visual { height: 40vh; }
  .ev-harness__stage { grid-template-columns: 1fr; gap: 30px; }
  .ev-harness__grid { min-height: 0; }
  .ev-compound__wrap { grid-template-columns: 1fr; gap: 28px; }
  .ev-arch__body { grid-template-columns: 1fr; }
  .ev-arch__tree { display: grid; grid-template-columns: repeat(2, 1fr); border-right: 0; border-bottom: 1px solid var(--ev-line); }
  .ev-tools__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .ev-section { padding: 80px 5vw 100px; }
  .ev-hero { padding: 100px 5vw 40px; }
  .ev-ledger__row { grid-template-columns: 1fr; gap: 8px; padding: 18px 12px; }
  .ev-ledger__metric { text-align: left; }
  .ev-console__body { grid-template-columns: 1fr 1fr; }
  .ev-harness__readout { grid-template-columns: 1fr; }
  .ev-harness__toggles { grid-template-columns: 1fr 1fr; }
  .ev-arch__tree { grid-template-columns: 1fr; }
  .ev-st__head { display: none; }
  .ev-st__row { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .ev-program__inner { height: auto; }
  .ev-program__sticky { position: static; height: auto; padding: 60px 0; }
  .ev-program__scene { position: relative; opacity: 1; transform: none; padding: 30px 5vw; height: auto; }
  .ev-program__visual { height: 44vh; }
  .ev-program__rail { display: none; }
  .ev-tools__grid { grid-template-columns: 1fr; }
  .ev-trust { padding: 32px 0 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .ev-program__scene { transition: none; }
  .ev-cell { transition: none; }
  .ev-score__fill { transition: none; }
  .ev-console__pulse, .ev-eyebrow .dot, .ev-console__caret, .ev-harness__grid-pulse { animation: none; }
}
