/* CyberRunner — sales site brand foundation.
 * Editorial Swiss-modern aesthetic taken directly from the EQUA brochure:
 * warm cream background, dark sage accents, condensed serif display,
 * clean grotesk body, numerical proof. No SaaS gloss. */

:root {
  --bg: #F2EFE4;
  --surface: #E8E3D2;
  --surface-deep: #DCD6C0;
  --ink: #1A1A1A;
  --ink-muted: #4A4E3C;
  --rule: #C8C2AC;
  --accent: #7B8D5C;
  --accent-strong: #5C6B40;
  --accent-ink: #2C341C;
  --dark: #3A3F2A;
  --on-dark: #E8E3D2;
  --warn: #B85C2A;
  --max: 1500px;
  --gutter: clamp(24px, 4.5vw, 72px);

  /* Spacing scale — single 4px-based rhythm used site-wide. Mirrors the
     Tailwind-style mt-/mb- utilities (N×4px). Reach for a token before a
     magic number; one step per spatial relationship. */
  --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;  --s5: 20px;
  --s6: 24px;  --s8: 32px;  --s10: 40px; --s12: 48px; --s16: 64px;
  --s20: 80px; --s24: 96px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11', 'tnum';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color .12s; }
a:hover { color: var(--accent-strong); }

img, svg { max-width: 100%; display: block; }

/* ── Layout primitives ──────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.row { display: flex; gap: 32px; flex-wrap: wrap; }
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .grid.cols-5 { grid-template-columns: 1fr; }
}

/* Apple-scale section breathing room — each section feels like a single
   confident statement, not a stack of cards. */
.section { padding: clamp(96px, 14vw, 220px) 0; }
.section-tight { padding: clamp(56px, 9vw, 120px) 0; }
/* Phones: the desktop "Apple scale" 96px floor makes mobile feel sparse and
   endless to scroll. Tighten the vertical rhythm. */
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
}

/* ── Editorial section divider — replaces plain hr site-wide ──────────────
   A short faded rule with a centered // mark in sage. Hand-set-feel that
   matches the EQUA brochure aesthetic. */
hr {
  border: none;
  height: 36px;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
hr::before {
  content: '';
  position: absolute;
  top: 50%; left: 25%; right: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--rule) 18%, var(--rule) 82%, transparent 100%);
}
hr::after {
  content: '//';
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 0 20px;
  color: var(--accent-strong);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
}
/* On surface-toned sections (e.g. #editions, #pricing, #docs) the // mark
   needs the same cream background as that section, otherwise it shows
   the page bg color and looks like it's floating outside the section. */
.section[style*="surface"] + hr::after,
hr.on-surface::after { background: var(--surface); }

/* ── Editorial section label  ("// THE 12-AGENT INVESTIGATION ENGINE") ── */
.label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 32px;
}
.label::before { content: '// '; opacity: .55; }

/* Section number ("EDITION 01 — FULL") */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

/* ── Typography ─────────────────────────────────────────────────── */
.display, h1, h2.display {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 600;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}
/* Display scale goes BIG — Apple's iPad Pro hero hits ~120px+ at desktop.
   Fraunces handles the size beautifully at opsz 144. */
.display.lg, h1 {
  font-size: clamp(48px, 8.5vw, 128px);
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.display.md, h2.display {
  font-size: clamp(40px, 6vw, 96px);
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.display.sm {
  font-size: clamp(30px, 4vw, 58px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h2, h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.012em;
}
h2 { font-size: clamp(24px, 2.8vw, 36px); margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 8px; }
.lede {
  font-size: clamp(20px, 1.9vw, 28px);
  color: var(--ink-muted);
  max-width: 60ch;
  line-height: 1.45;
}
/* Supporting prose — one clear step below .lede. Use for the 2nd..nth
   paragraph of a section so a single lede carries the emphasis and the
   rest reads as comfortable body, not a wall of large type. */
.body-lg {
  font-size: clamp(16px, 1.15vw, 18px);
  color: var(--ink-muted);
  max-width: 66ch;
  line-height: 1.62;
}
.body-lg strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--ink-muted); }
.tabnum { font-variant-numeric: tabular-nums; }

/* ── Header / footer ────────────────────────────────────────────── */
.top {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  position: sticky; top: 0;
  background: rgba(242, 239, 228, 0.92);
  backdrop-filter: blur(6px);
  z-index: 50;
}
.top .row { align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.brand .equa { color: var(--accent-strong); }
.brand .slash { color: var(--ink-muted); margin: 0 6px; }
.nav { display: flex; gap: 24px; font-size: 14px; color: var(--ink-muted); align-items: center; }
.nav a:hover { color: var(--ink); }
/* Mobile header: the 7-link row can't fit a phone. Hide the text links
   (section nav lives in the bottom breadcrumb / spy-nav) and keep only the
   brand + the "Get started" CTA so the header never overflows. */
@media (max-width: 760px) {
  .top .nav { gap: 12px; }
  .top .nav a:not(.btn) { display: none; }
  .top .nav .btn { padding: 8px 14px; font-size: 13px; }
}
.foot {
  border-top: 1px solid var(--rule);
  padding: 36px 0 56px;
  font-size: 13px;
  color: var(--ink-muted);
}
.foot .row { justify-content: space-between; gap: 24px; }
.foot .col { min-width: 180px; }
.foot strong { color: var(--ink); display: block; margin-bottom: 6px; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s, background .12s, border-color .12s, color .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-strong); color: var(--bg); }
.btn-primary:hover { background: var(--accent-ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-arrow::after { content: '→'; margin-left: 2px; transition: transform .12s; }
.btn-arrow:hover::after { transform: translateX(2px); }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px;
}
.card-dark {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: 12px;
  padding: 28px;
}
.card-dark h3, .card-dark h2 { color: var(--on-dark); }
.stat-num {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(40px, 4.5vw, 60px);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ── Pricing tiers ──────────────────────────────────────────────── */
.tier-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tier-table th, .tier-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.tier-table th {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--surface);
}
.tier-table tr:last-child td { border-bottom: none; }
.tier-table td.num { text-align: right; font-weight: 600; }
.tier-name { font-weight: 600; }
.tier-note { font-size: 12px; color: var(--ink-muted); }
/* Mobile: the 4-column table can't fit a phone. The card scrolls
   horizontally (overflow-x:auto inline) instead of clipping the Notes
   column; tighten padding/type so most of it is visible without scroll,
   and give the table a min-width so columns don't crush into each other. */
@media (max-width: 600px) {
  .pricing-card { -webkit-overflow-scrolling: touch; }
  .tier-table { min-width: 460px; }
  .tier-table th, .tier-table td { padding: 10px 12px; }
  .tier-table th { font-size: 10px; letter-spacing: 0.03em; }
  .tier-table td { font-size: 13px; }
  .tier-note { font-size: 11px; line-height: 1.4; }
}

.calc {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 32px;
}
.calc input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  margin: 16px 0 8px;
}
.calc input[type=range]::-webkit-slider-runnable-track {
  height: 4px; background: var(--rule); border-radius: 2px;
}
.calc input[type=range]::-moz-range-track {
  height: 4px; background: var(--rule); border-radius: 2px;
}
.calc input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  background: var(--accent-strong);
  border-radius: 50%;
  cursor: pointer;
  margin-top: -9px;
  border: 3px solid var(--bg);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.calc input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--accent-strong);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg);
}
.calc-readout { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.calc-bill {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ── 12-agent diagram ──────────────────────────────────────────── */
.engine {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 32px;
}
.engine-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 700px) { .engine-pipeline { grid-template-columns: 1fr 1fr; } }
.engine-step {
  border: 1px solid var(--rule);
  padding: 16px;
  border-radius: 10px;
  background: var(--bg);
}
.engine-step .n {
  font-family: 'Inter', sans-serif;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--accent-strong);
  margin-bottom: 6px;
}
.engine-step .name { font-weight: 600; margin-bottom: 4px; }
.engine-step .desc { font-size: 13px; color: var(--ink-muted); line-height: 1.45; }

/* ── Engine pipeline animation — token flow + per-phase pulse ────────────
   A subtle moving gradient under the 5 phases (looks like a token
   travelling left→right between them), plus the number badges pulse
   sage in sequence so the eye follows the pass. Pauses when out of
   view via the .is-active class set by IntersectionObserver. */
.engine-pipeline {
  position: relative;
}
.engine-pipeline::before {
  content: '';
  position: absolute;
  top: 38px; left: 8%; right: 8%;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--rule) 10%,
    var(--rule) 90%,
    transparent 100%);
  z-index: 0;
}
.engine-pipeline::after {
  content: '';
  position: absolute;
  top: 32px; left: 8%; right: 8%;
  height: 14px;
  background: radial-gradient(ellipse at left, rgba(123,141,92,0.45) 0%, transparent 12%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}
.engine-pipeline.is-active::after {
  animation: cr-token-flow 6s linear infinite;
}
@keyframes cr-token-flow {
  0%   { background-position: -10% 0; }
  100% { background-position: 110% 0; }
}
.engine-step { position: relative; z-index: 2; }
.engine-step .n {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0;
  margin-bottom: 10px;
  transition: background .4s ease, color .4s ease, transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.engine-pipeline.is-active .engine-step:nth-child(1) .n { animation: cr-phase-pulse 6s ease-in-out infinite;          animation-delay: 0.2s; }
.engine-pipeline.is-active .engine-step:nth-child(2) .n { animation: cr-phase-pulse 6s ease-in-out infinite;          animation-delay: 1.2s; }
.engine-pipeline.is-active .engine-step:nth-child(3) .n { animation: cr-phase-pulse 6s ease-in-out infinite;          animation-delay: 2.2s; }
.engine-pipeline.is-active .engine-step:nth-child(4) .n { animation: cr-phase-pulse 6s ease-in-out infinite;          animation-delay: 3.2s; }
.engine-pipeline.is-active .engine-step:nth-child(5) .n { animation: cr-phase-pulse 6s ease-in-out infinite;          animation-delay: 4.2s; }
@keyframes cr-phase-pulse {
  0%, 100% {
    background: var(--bg);
    color: var(--accent-strong);
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(123,141,92,0);
  }
  8%, 14% {
    background: var(--accent);
    color: var(--bg);
    transform: scale(1.12);
    box-shadow: 0 0 0 6px rgba(123,141,92,0.16);
  }
  28% {
    background: rgba(123,141,92,0.18);
    color: var(--accent-strong);
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(123,141,92,0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .engine-pipeline.is-active::after { animation: none; }
  .engine-pipeline.is-active .engine-step .n { animation: none; }
}

/* ── KANO bar chart ─────────────────────────────────────────────── */
.kano-row { display: grid; grid-template-columns: 220px 1fr 70px; align-items: center; gap: 16px; margin-bottom: 12px; }
.kano-row .nm { font-weight: 600; font-size: 14px; }
.kano-row .bar-wrap {
  background: var(--bg);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.kano-row .bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}
/* Senior human analyst (baseline / first row) — warm earthy tone for contrast */
.kano-row:not(.kano-leader):not(.muted) .bar {
  background: linear-gradient(90deg, #B5995A 0%, #8C7239 100%);
}
/* CyberRunner — frontier (leader) — most vivid, the highlight */
.kano-row.kano-leader .bar {
  background: linear-gradient(90deg, #C7DA82 0%, var(--accent) 45%, var(--accent-strong) 100%);
}
/* CyberRunner — local Qwen (muted alternative) — cooler subdued sage */
.kano-row.muted .bar {
  background: linear-gradient(90deg, #A8B095 0%, #6B6F5C 100%);
  opacity: 0.85;
}
.kano-row .bar.bar-glow {
  box-shadow: 0 0 0 0 rgba(123,141,92,0.65);
  animation: cr-bar-glow 2.4s ease-out infinite;
}
@keyframes cr-bar-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(123,141,92,0.0); }
  50%      { box-shadow: 0 0 0 5px rgba(123,141,92,0.22); }
}
.kano-row .score { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .kano-row { grid-template-columns: 1fr; gap: 6px; } }

/* ── Edition card ──────────────────────────────────────────────── */
.ed { padding: 32px; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 16px; }
.ed h2 { font-family: 'Fraunces', serif; font-size: 32px; }
.ed-best { background: var(--surface); padding: 16px; border-radius: 10px; font-size: 14px; }
/* Pin the trailing CTA (Learn more / See …) to the bottom so neighbouring
   cards' buttons line up even when "Best for" text wraps to a different
   number of lines. */
.ed > .btn:last-child,
.ed > a:last-child { margin-top: auto; }

/* ── Form ──────────────────────────────────────────────────────── */
.form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form label { font-size: 13px; font-weight: 600; }
.form input[type=text], .form input[type=email], .form select {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  font: inherit;
  color: var(--ink);
}
.form input:focus, .form select:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(123, 141, 92, 0.2); }

/* ── Consent banner ─────────────────────────────────────────────── */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  background: var(--ink); color: var(--bg);
  padding: 18px 22px; border-radius: 12px;
  display: none;
  align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  z-index: 100;
  font-size: 14px;
}
.consent.show { display: flex; }
.consent p { margin: 0; max-width: 60ch; }
.consent a { text-decoration: underline; }
.consent .actions { display: flex; gap: 8px; margin-left: auto; }
.consent button {
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.consent button.accept { background: var(--accent); color: var(--ink); }
.consent button.accept:hover { background: var(--accent-strong); color: var(--bg); }
.consent button.reject { background: transparent; color: var(--bg); border-color: var(--bg); }
.consent button.reject:hover { background: var(--bg); color: var(--ink); }

/* ── Scroll reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .95s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Apple-style word-by-word headline reveal ──────────────────────────────
   The word-reveal.js script wraps each word of a [data-words] element in
   .wr-word > .wr-inner. wr-word is overflow:hidden; wr-inner translates
   up from 110% to 0 with a stagger between words. */
.wr-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: inherit;
}
.wr-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.wr-on .wr-inner { transform: none; }

/* ── Cinematic scale-in for big visual elements ───────────────────────────
   For things that anchor a section visually — the engine graph, the
   editions MacBooks, the KANO scorecard, the API playground. */
.reveal-scale {
  opacity: 0;
  transform: translateY(36px) scale(0.94);
  transition:
    opacity 1.1s cubic-bezier(.2,.7,.2,1),
    transform 1.15s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal-scale.is-visible { opacity: 1; transform: none; }

/* Stagger children inside a grid for a cascading reveal */
.grid > .reveal { transition-delay: 0ms; }
.grid > .reveal:nth-child(2) { transition-delay: 90ms; }
.grid > .reveal:nth-child(3) { transition-delay: 180ms; }
.grid > .reveal:nth-child(4) { transition-delay: 270ms; }
.grid > .reveal:nth-child(5) { transition-delay: 360ms; }

/* Cinematic reveal — a larger version with scale + longer duration. Apply
   to .section > .container via the .reveal-cinematic class for entrance
   that feels like Apple section transitions. */
.reveal-cinematic {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition:
    opacity .9s cubic-bezier(.2,.7,.2,1),
    transform .95s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal-cinematic.is-visible { opacity: 1; transform: none; }

/* Subtle hover lift on cards */
.card, .card-dark, .ed { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover, .ed:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -18px rgba(0,0,0,0.18); }

/* ── Dimension / capability card with icon ─────────────────────── */
.dim { display: flex; flex-direction: column; gap: 0; }
.dim .dim-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--rule);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-strong);
  margin-bottom: 16px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              background .35s ease,
              color .35s ease,
              border-color .35s ease;
}
.dim .dim-icon svg { width: 22px; height: 22px; display: block; }
.dim:hover .dim-icon {
  transform: scale(1.08) rotate(-3deg);
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent-strong);
}
.dim h3 { margin: 0 0 8px; font-size: 17px; }
.dim p { margin: 0; }

/* Subtle idle drift on the icon — barely perceptible, but adds life. */
@keyframes cr-dim-idle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.5px); }
}
.dim.is-visible .dim-icon { animation: cr-dim-idle 4.8s ease-in-out infinite; }
.dim.is-visible:hover .dim-icon { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .dim .dim-icon, .dim:hover .dim-icon { animation: none; transition: none; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .ed:hover, .card-dark:hover { transform: none; box-shadow: none; }
}

/* ── KANO badge (used on /proof + landing) ──────────────────────── */
.kano-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}
.kano-mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  position: relative;
}
.kano-mark::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}
.kano-badge .kano-text { line-height: 1.25; }
.kano-badge .kano-text strong { font-size: 13px; color: var(--ink); display: block; }
.kano-badge .kano-text small { font-size: 12px; color: var(--ink-muted); }

.kano-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 14px;
}
.kano-hero .lhs { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: 0.18em; color: var(--accent-strong); font-size: 22px; }
.kano-hero .lhs .dot { display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-left: 8px; vertical-align: middle; }
.kano-hero .body strong { display: block; font-size: 15px; }
.kano-hero .body small { color: var(--ink-muted); }
.kano-hero .rhs { font-family: 'Fraunces', serif; font-variation-settings: 'opsz' 144; font-size: 36px; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .kano-hero { grid-template-columns: 1fr; text-align: left; } .kano-hero .rhs { text-align: left; } }

/* ── Floating "Contact us" FAB ─────────────────────────────────── */
.contact-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  font-family: 'Inter', sans-serif;
}
.contact-fab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: var(--accent-strong);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(0,0,0,0.45);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.contact-fab-btn:hover { transform: translateY(-1px); background: var(--accent-ink); box-shadow: 0 12px 28px -10px rgba(0,0,0,0.5); }
.contact-fab-btn .dot {
  width: 9px; height: 9px;
  background: #BFD27A;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(191, 210, 122, 0.7);
  animation: cr-fab-blink 2.4s ease-out infinite;
}
@keyframes cr-fab-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(191, 210, 122, 0.7); }
  50%      { box-shadow: 0 0 0 6px rgba(191, 210, 122, 0); }
}
.contact-fab.pulse .contact-fab-btn { animation: cr-fab-pulse 1.2s ease-in-out 2; }
@keyframes cr-fab-pulse {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.contact-fab-pop {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.contact-fab.open .contact-fab-pop {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.contact-fab-pop .opt {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
  transition: background .12s;
}
.contact-fab-pop .opt:hover { background: var(--surface); }
.contact-fab-pop .opt strong { display: block; font-size: 14px; }
.contact-fab-pop .opt small { color: var(--ink-muted); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  .contact-fab-btn .dot { animation: none; }
  .contact-fab.pulse .contact-fab-btn { animation: none; }
}

/* Small utilities — N×4px scale, mirrors the --s* tokens. */
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; } .mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; } .mt-20 { margin-top: 80px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 20px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; } .mb-10 { margin-bottom: 40px; } .mb-12 { margin-bottom: 48px; } .mb-16 { margin-bottom: 64px; }
.flex { display: flex; }
.gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-7 { gap: 28px; }
.justify-center { justify-content: center; }
.center { text-align: center; } .right { text-align: right; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ink { color: var(--ink); }
/* Fine-print / caption type — replaces scattered inline font-size on
   muted helper paragraphs. */
.text-sm { font-size: 14px; } .text-xs { font-size: 13px; }
.draft { padding: 8px 12px; background: var(--warn); color: white; border-radius: 6px; font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; display: inline-block; margin-bottom: 12px; }

/* ============================================================================
   ONE-PAGE: sticky left scrollspy + MacBook frames + edition stack
   ============================================================================ */

/* ── Left scroll-spy breadcrumb ─────────────────────────────────────────── */
.spy-nav {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 14px 12px;
  background: rgba(242, 239, 228, 0.78);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 16px 40px -22px rgba(0,0,0,0.15);
  font-family: 'Inter', sans-serif;
}
.spy-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 4px;
  opacity: 0.55;
  transition: opacity .25s ease, color .25s ease;
}
.spy-link:hover { opacity: 1; color: var(--ink); }
.spy-line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 999px;
  transition: width .3s cubic-bezier(.2,.7,.2,1), background .25s ease;
}
.spy-link.is-active {
  opacity: 1;
  color: var(--accent-strong);
}
.spy-link.is-active .spy-line {
  width: 30px;
  background: var(--accent-strong);
}
@media (max-width: 1180px) { .spy-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .spy-line { transition: none; } }

/* ── Edition stack: sticky MacBook frame + scrolling copy column ─────────
   The frame is position:sticky so it stays pinned while the copy column
   scrolls past it. min-height gives the sticky runway — kept modest so
   the editions don't feel stretched apart; the copy column's own height
   is what actually drives the pin on these long editions. */
.ed-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 40px);
}
.ed-mac {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  /* Small floor only. The copy column is taller than the sticky frame,
     so it (not this min-height) drives the pin — keeping this low removes
     the dead scroll-space that made the editions feel far apart. */
  min-height: 56vh;
  padding: 16px 0 28px;
  position: relative;
}
.ed-mac.is-flipped { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.ed-mac.is-flipped .ed-mac-frame { order: 2; }
.ed-mac.is-flipped .ed-mac-copy  { order: 1; }
@media (max-width: 900px) {
  .ed-mac, .ed-mac.is-flipped {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 20px 0 40px;
  }
  .ed-mac.is-flipped .ed-mac-frame, .ed-mac.is-flipped .ed-mac-copy { order: initial; }
}

.ed-mac-frame {
  position: sticky;
  top: 100px;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  align-self: start;
}
@media (max-width: 900px) {
  .ed-mac-frame { position: static; max-width: 100%; }
}

/* Sub-feature blocks under each edition (drives sticky-scroll length) */
.ed-features {
  display: flex; flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: clamp(28px, 3vw, 36px);
  border-top: 1px solid var(--rule);
}
.ed-feature { display: flex; flex-direction: column; gap: 6px; }
.ed-feature .ef-icon {
  width: 30px; height: 30px;
  color: var(--accent-strong);
  margin-bottom: 4px;
}
.ed-feature .ef-icon svg { width: 24px; height: 24px; }
.ed-feature h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.ed-feature p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0;
}
/* Sage radial glow under the MacBook on hover. The .ed-mac-frame keeps
   its sticky positioning from the rule above; here we just add the glow
   pseudo-element. */
.ed-mac-frame { position: relative; }
.ed-mac-frame::before {
  content: '';
  position: absolute;
  inset: -40px -20px -10px;
  background: radial-gradient(ellipse at center bottom, rgba(123,141,92,0.32) 0%, transparent 60%);
  filter: blur(28px);
  opacity: 0;
  transition: opacity .55s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
  z-index: -1;
}
.ed-mac:hover .ed-mac-frame::before { opacity: 1; }

/* The SVG-drawn MacBook chrome (bezel, base, hinge, screen). One SVG
   per laptop — transparent, scales perfectly, no raster. */
.mac-svg {
  width: 100%; height: auto; display: block;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), filter .4s cubic-bezier(.2,.7,.2,1);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.12));
}

/* ── Island-mode side-by-side: ASCII island + lede text ───────────────
   The figure sits left, the explanatory paragraphs sit right, both
   vertically centred so the eye reads them as a single composition.
   Stacks to one column under 900px. */
.island-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  margin: 16px 0 56px;
}
.island-prose .lede { margin: 0 0 18px; }
.island-prose .lede:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  /* minmax(0,1fr) — NOT 1fr — so the column can shrink below the island's
     intrinsic (nowrap wave) width instead of blowing the page out. */
  .island-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ── Island-mode ASCII art ─────────────────────────────────────────────
   Palm tree on a small island. The beacon (●, the coconut) pulses sage;
   three wave rows scroll past at different speeds; the whole wave strip
   is masked at the edges so the loop never feels hard-cropped. */
.island-art {
  font-family: 'JetBrains Mono', Consolas, Menlo, monospace;
  color: var(--accent-strong);
  margin: 0;
  max-width: 100%;
  min-width: 0;            /* grid item: allow it to shrink below content */
  overflow: hidden;        /* clip the nowrap wave strip — never widen the page */
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
  position: relative;
  user-select: none;
}
.island-pre {
  margin: 0;
  display: inline-block;
  text-align: left;
  color: var(--accent-strong);
  white-space: pre;
  font-family: inherit;
  background: transparent;
  padding: 0;
}
.island-beacon {
  color: #BFD27A;
  text-shadow: 0 0 6px rgba(191, 210, 122, 0.6);
  animation: island-beacon-pulse 2.4s ease-in-out infinite;
  display: inline-block;
}
@keyframes island-beacon-pulse {
  0%, 100% {
    opacity: 0.45;
    text-shadow: 0 0 4px rgba(191, 210, 122, 0.35);
    transform: scale(1);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 14px rgba(191, 210, 122, 0.95),
                 0 0 22px rgba(191, 210, 122, 0.5);
    transform: scale(1.18);
  }
}

.island-sea {
  margin-top: 6px;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 7%, black 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, black 7%, black 93%, transparent 100%);
}
.island-wave {
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0.04em;
}
.island-wave span {
  display: inline-block;
  padding-right: 0;
  /* The string is long enough that translating -50% loops seamlessly
     within the masked window. */
}
.island-wave--1 { color: var(--accent); opacity: 0.85; }
.island-wave--1 span { animation: island-wave-shift 22s linear infinite; }
.island-wave--2 { color: var(--accent-strong); opacity: 0.65; }
.island-wave--2 span { animation: island-wave-shift 16s linear infinite reverse; }
.island-wave--3 { color: var(--accent); opacity: 0.45; }
.island-wave--3 span { animation: island-wave-shift 28s linear infinite; }
@keyframes island-wave-shift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.island-caption {
  margin-top: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}

@media (max-width: 720px) {
  .island-art { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .island-beacon { animation: none; opacity: 1; }
  .island-wave span { animation: none; }
}
.ed-mac:hover .mac-svg {
  transform: translateY(-6px) scale(1.012);
  filter: drop-shadow(0 28px 38px rgba(0,0,0,0.18)) drop-shadow(0 6px 18px rgba(123,141,92,0.16));
}

.ed-mac-copy .eyebrow { margin-bottom: 8px; }
.ed-mac-copy h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 16px;
}
.ed-mac-copy p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0 0 var(--s4);
}
.ed-mac-copy .ed-best {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: var(--s4) var(--s4);
  font-size: 14px;
  margin: 0 0 var(--s5);
}
.ed-mac-copy .ed-best strong { color: var(--ink); }
.ed-mac-copy .ed-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s6);
  display: flex; flex-direction: column;
  gap: var(--s2);
  font-size: 14px;
  color: var(--ink-muted);
}
.ed-mac-copy .ed-bullets li {
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.ed-mac-copy .ed-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1.5px;
  background: var(--accent);
  border-radius: 999px;
}
.ed-mac-copy code {
  font-family: 'JetBrains Mono', Consolas, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Cycling "screens" inside each MacBook. Two content views per laptop
   cross-fade on a loop so the screen reads as a live, navigated app —
   queue⇄case, ingest⇄verdict, tenant-A⇄tenant-B. The persistent chrome
   (top bar / sidebar / tabs) is drawn OUTSIDE .ed-screen so it never
   fades. Works on SVG <g> via plain opacity animation. */
.ed-screen {
  opacity: 0;
  animation: ed-screen-cycle 11s ease-in-out infinite;
  will-change: opacity;
}
.ed-screen--b { animation-delay: 5.5s; }
@keyframes ed-screen-cycle {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  46%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mac-svg, .ed-mac:hover .mac-svg { transition: none; transform: none; }
  /* No flipping for reduced-motion: show the first screen, hide the rest. */
  .ed-screen { animation: none; opacity: 1; }
  .ed-screen--b { display: none; }
}

/* Slight breath room around the spy-nav so it doesn't overlap content on
   narrow viewports between 1180 and 1280 px where it's still visible. */
@media (min-width: 1180px) {
  .section .container { max-width: var(--max); }
}
/* Reserve a lane for the fixed spy-nav rail (left:22px, ~127px wide) so
   content — the engine-graph card, the edition MacBooks, etc. — never
   underlaps it. Only needed in the band where the centred container's
   gutter doesn't already clear the rail; above ~1700px the natural gutter
   clears it, so the offset is dropped to keep the layout centred. */
@media (min-width: 1181px) and (max-width: 1700px) {
  body { padding-left: 120px; }
}

/* ── Agent modal — pops up when a node in the engine graph is clicked ───
   Cream card on a blurred ink-tinted backdrop, slide-up + fade in. */
.agent-modal-root {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.agent-modal-root.is-open { display: flex; }
html.cr-modal-open { overflow: hidden; }

.agent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  opacity: 0;
  transition: opacity .35s ease;
}
.is-open .agent-modal-backdrop { opacity: 1; }

.agent-modal {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 40px) clamp(28px, 3.5vw, 36px);
  max-width: 600px;
  width: 100%;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  box-shadow: 0 32px 80px -28px rgba(0,0,0,0.45);
  transform: translateY(20px) scale(0.985);
  opacity: 0;
  transition: opacity .35s cubic-bezier(.2,.7,.2,1),
              transform .4s cubic-bezier(.2,.7,.2,1);
}
.is-open .agent-modal { opacity: 1; transform: none; }

.agent-modal-close {
  appearance: none;
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--surface);
  font-size: 18px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.agent-modal-close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.agent-modal-close:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

.agent-modal-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
}
.agent-modal-name {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-weight: 600;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}
.agent-modal-class {
  font-family: 'JetBrains Mono', Consolas, Menlo, monospace;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0;
  margin-bottom: 22px;
}
.agent-modal-job {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  line-height: 1.45;
}
.agent-modal-desc {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0 0 22px;
}
.agent-modal-section {
  margin-top: 18px;
}
.agent-modal-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 8px;
}
.agent-modal-keyfact {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.agent-modal-sig {
  display: block;
  font-family: 'JetBrains Mono', Consolas, Menlo, monospace;
  font-size: 13px;
  color: var(--accent-strong);
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 10px 14px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .agent-modal-backdrop, .agent-modal { transition: none; }
}

/* The engine-graph nodes become real clickable buttons — already cursor:
   help; on hover make it crystal clear they're clickable. */
.eg-node { cursor: pointer; }
.eg-node:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }

/* ── Engine graph — 12-agent visualisation under #engine ─────────────────
   The phase header strip + nodes are HTML (accessible, hoverable); the
   connecting curves + travelling token are an absolutely-positioned SVG
   layer behind the nodes. */
.engine-graph {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 16px;
  /* Even top/bottom framing so the column group sits optically centred. */
  padding: clamp(28px, 3.2vw, 40px) clamp(20px, 3vw, 36px);
  margin-top: var(--s10);
  overflow: hidden;
}
.engine-graph-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.engine-graph-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.eg-phase {
  display: flex; flex-direction: column;
  padding: 4px 4px 0;
}
.eg-phase-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  text-align: center;
  /* One clean rhythm step from label → node group (was gap+margin doubled). */
  margin: 0 0 var(--s4);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
/* flex:1 makes every column fill the tallest one; centering the nodes
   means the ragged 1·2·3·4·2 counts read as a balanced graph, not a
   table with uneven bottoms. */
.eg-nodes {
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
  justify-content: center;
}
.eg-node {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  cursor: help;
  transition: background .3s ease, border-color .3s ease, transform .25s cubic-bezier(.2,.7,.2,1);
  font-family: 'Inter', sans-serif;
  position: relative;
}
.eg-node:hover {
  background: var(--bg);
  border-color: var(--ink-muted);
  transform: translateY(-1px);
}
.eg-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  /* Parallel, NON-sequential breathing — each dot is staggered by an
     inline animation-delay set in engine-graph.js, so all 12 agents pulse
     independently (vs the hero demo's left-to-right sweep). */
  animation: eg-breathe 3s ease-in-out infinite;
}
@keyframes eg-breathe {
  0%, 100% { opacity: 0.4;  box-shadow: 0 0 0 0 rgba(123,141,92,0);     transform: scale(0.9); }
  50%      { opacity: 1;    box-shadow: 0 0 0 5px rgba(123,141,92,0.13); transform: scale(1.12); }
}
.eg-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.eg-class {
  font-family: 'JetBrains Mono', Consolas, Menlo, monospace;
  font-size: 9.5px;
  color: var(--ink-muted);
  letter-spacing: 0;
  opacity: 0.75;
}
/* Flowing wires — data coursing through the always-on machine. Dashes
   travel along each connector toward the verdict (right); per-wire speed +
   delay are set inline in engine-graph.js so the flow feels organic, not
   metronomic. This is deliberately a different motion from the hero demo's
   single token hopping phase-to-phase. */
.eg-flow {
  fill: none;
  stroke: #7B8D5C;
  stroke-width: 1.2;
  stroke-opacity: 0.2;
  stroke-dasharray: 3 9;
  animation: eg-flow-dash 3.6s linear infinite;
}
@keyframes eg-flow-dash { to { stroke-dashoffset: -120; } }
/* Pause all engine motion while the section is off-screen (IntersectionObserver
   toggles .is-paused) — cheap, no JS animation loop. */
.engine-graph.is-paused .eg-flow,
.engine-graph.is-paused .eg-dot { animation-play-state: paused; }

@media (max-width: 720px) {
  .engine-graph-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .engine-graph-svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .eg-node { transition: none; }
  .eg-dot  { animation: none; opacity: 0.85; }
  .eg-flow { animation: none; stroke-opacity: 0.16; }
}

/* ── Trust chip in the hero — "Trusted by 47 SOC teams" ──────────────── */
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-top: 24px;
  background: rgba(123, 141, 92, 0.10);
  border: 1px solid rgba(123, 141, 92, 0.30);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-strong);
  letter-spacing: -0.005em;
}
.trust-chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(123,141,92,0.55);
  animation: cr-trust-pulse 2.4s ease-out infinite;
}
@keyframes cr-trust-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(123,141,92,0.55); transform: scale(1); }
  50%      { box-shadow: 0 0 0 8px rgba(123,141,92,0); transform: scale(1.15); }
}
.trust-chip strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .trust-chip-dot { animation: none; } }

/* ── Parallax helpers ─────────────────────────────────────────────────────
   The script in parallax.js writes `transform: translate3d(...)` directly
   to elements with [data-parallax]. This rule just sets `will-change` so
   the GPU promotes the layer once, no jank on scroll. */
[data-parallax] {
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  [data-parallax] { transform: none !important; }
}

/* ── "What is CyberRunner" intro section — big statement + 3 big stats ───── */
.section-intro h1 {
  font-size: clamp(48px, 7.5vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  max-width: 22ch;
}
.big-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  padding-top: clamp(48px, 6vw, 80px);
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--rule);
}
@media (max-width: 880px) { .big-stats { grid-template-columns: 1fr; gap: 32px; } }
.bs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bs-num {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144;
  font-weight: 600;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bs-sub {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.45;
  max-width: 22em;
}
.bs-sub strong { color: var(--ink); font-weight: 600; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-top: clamp(40px, 5vw, 72px);
}
.cue-line {
  display: inline-block;
  width: 48px;
  height: 1.5px;
  background: var(--accent-strong);
  border-radius: 999px;
}

/* ── Threat-feed feature section — full live iframe, embedded inline ─────── */
.threatfeed-embed {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  box-shadow: 0 32px 90px -32px rgba(0,0,0,0.28);
  margin-top: clamp(24px, 3vw, 40px);
}
.threatfeed-embed iframe {
  display: block;
  width: 100%;
  /* Tall enough to fit the whole ThreatFeed (header + hero + stats +
     filters + 560px map/feed grid + sources + footer) without a scroll
     bar inside the iframe. ~1280px lands comfortably on every viewport. */
  height: 1280px;
  border: 0;
  background: var(--bg);
}
@media (max-width: 1080px) { .threatfeed-embed iframe { height: 1500px; } }
@media (max-width: 700px)  { .threatfeed-embed iframe { height: 1700px; } }

/* ── Top scroll-progress bar (1.5px sage line at very top of viewport) ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  z-index: 100;
  transition: width .08s linear;
  pointer-events: none;
}

/* ── Mobile bottom breadcrumb (visible <= 1180px only) ───────────────── */
.mobile-spy {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 70;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.45);
  cursor: pointer;
}
.mobile-spy .ms-label {
  color: rgba(232,227,210,0.55);
}
.mobile-spy .ms-current {
  color: var(--bg);
  flex: 1;
}
.mobile-spy .ms-progress {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}
.mobile-spy.is-visible { display: flex; }
.mobile-spy-sheet {
  position: fixed;
  left: 16px; right: 16px; bottom: 70px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px;
  z-index: 70;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.3);
}
.mobile-spy-sheet.is-open { display: flex; }
.mobile-spy-sheet a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: background .15s, color .15s;
}
.mobile-spy-sheet a:hover, .mobile-spy-sheet a.is-active {
  background: var(--surface);
  color: var(--ink);
}
@media (max-width: 1180px) {
  .mobile-spy.is-active { display: flex; }
}

/* ── Hero ornament — drifting sage gradients behind the demo ──────────── */
.hero-ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0.55;
}
.hero-ornament::before, .hero-ornament::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}
.hero-ornament::before {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -200px; left: -100px;
  animation: cr-hero-drift-a 22s ease-in-out infinite alternate;
}
.hero-ornament::after {
  background: radial-gradient(circle, #B5995A 0%, transparent 70%);
  bottom: -200px; right: -100px;
  animation: cr-hero-drift-b 26s ease-in-out infinite alternate;
}
@keyframes cr-hero-drift-a {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(80px, 60px) scale(1.1); }
}
@keyframes cr-hero-drift-b {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-100px, -40px) scale(1.15); }
}
.section.hero-demo { position: relative; isolation: isolate; }
.section.hero-demo > .container { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-ornament::before, .hero-ornament::after { animation: none; }
}

/* ============================================================================
   HERO DEMO — animated 12-agent triage on the homepage.
   ============================================================================ */

.hero-demo .hero-grid {
  display: grid;
  /* Demo column is twice as wide as the copy column (1:2). The terminal
     window fills more of the viewport so the agent pipeline and verdict
     card actually breathe. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-demo .hero-grid { grid-template-columns: 1fr; align-items: start; }
}

/* Hero heading — large but still fits the 1/3-width copy column. */
.hero-copy h1 {
  font-size: clamp(40px, 4.6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.hero-copy .lede {
  font-size: clamp(16px, 1.35vw, 19px);
  max-width: 36ch;
}
/* Italic serif accent on the key phrase — set-by-hand editorial feel,
   not the previous gradient (which felt SaaS-y). */
.hero-copy h1 .accent-soft {
  font-style: italic;
  color: var(--accent-strong);
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  letter-spacing: -0.02em;
}

/* ── Mac-window-style stage ─────────────────────────────────────────────── */
.hero-demo-stage { display: flex; flex-direction: column; gap: 14px; }
.demo-window {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.45), 0 6px 18px -10px rgba(0,0,0,0.18);
  font-family: 'JetBrains Mono', 'Inter', Consolas, Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
}
.demo-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #25271c;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #5C6B40;
  flex-shrink: 0;
}
.demo-dot:nth-child(1) { background: #B85C2A; }
.demo-dot:nth-child(2) { background: #C9B776; }
.demo-dot:nth-child(3) { background: #7B8D5C; }
.demo-title {
  margin-left: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(232,227,210,0.8);
}
/* Fixed total height so the window never resizes across scenarios — the
   alert reserves 96px, the pipeline takes its natural height, the verdict
   reserves space even when invisible, and the gap totals up to a constant. */
.demo-body {
  position: relative;            /* anchor for the absolutely-centred verdict */
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 660px;
  box-sizing: border-box;
}
/* When the verdict has landed, fade the request + pipeline + status so
   the verdict is the only thing reading. They keep their space (no
   layout shift) — just go invisible. */
.demo-body.is-verdict-showing .demo-alert,
.demo-body.is-verdict-showing .demo-pipeline,
.demo-body.is-verdict-showing .demo-status {
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s cubic-bezier(.2,.7,.2,1),
              visibility 0s linear .55s;
}

/* Status line under the pipeline — updates as the token enters each
   phase. "Pulling entities out of the alert…" → "Cross-referencing
   threat-intel…" etc. */
.demo-status {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(191, 210, 122, 0.85);
  font-weight: 600;
  text-align: center;
  margin: 0;
  padding-top: 2px;
  min-height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.demo-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #BFD27A;
  box-shadow: 0 0 0 0 rgba(191, 210, 122, 0.5);
  animation: cr-status-pulse 1.4s ease-out infinite;
  flex-shrink: 0;
}
@keyframes cr-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(191, 210, 122, 0.5); }
  60%      { box-shadow: 0 0 0 5px rgba(191, 210, 122, 0); }
}
.demo-status-text {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s cubic-bezier(.2,.7,.2,1),
              transform .4s cubic-bezier(.2,.7,.2,1);
}
.demo-status.has-text .demo-status-text {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .demo-status-dot { animation: none; }
  .demo-status-text { transition: none; }
}

/* ── Typewriter alert ────────────────────────────────────────────────────── */
.demo-alert {
  /* Wrap instead of horizontal-scroll. Tall enough to fit the longest
     scenario (the encoded PowerShell, with its base64 string spanning
     several wrapped lines) — short scenarios just leave some empty
     space, which is the cost of a non-resizing window. */
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  color: #C9B776;
  background: rgba(255,255,255,0.03);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  height: 196px;
  font-size: 12px;
  line-height: 1.55;
  overflow: hidden;
  flex-shrink: 0;
  opacity: 1;
  visibility: visible;
  transition: opacity .55s cubic-bezier(.2,.7,.2,1);
}
.demo-pipeline {
  opacity: 1;
  visibility: visible;
  transition: opacity .55s cubic-bezier(.2,.7,.2,1);
}
.demo-alert.hd-typing::after {
  content: '▍';
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  animation: hd-caret 0.9s steps(1) infinite;
}
@keyframes hd-caret { 50% { opacity: 0; } }

/* ── 12-agent pipeline ──────────────────────────────────────────────────── */
.demo-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.hd-phase {
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px 8px;
  position: relative;
}
.hd-phase + .hd-phase::before {
  content: '';
  position: absolute;
  left: -7px; top: 50%;
  width: 8px; height: 1px;
  background: rgba(232,227,210,0.18);
}
.hd-phase-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232,227,210,0.5);
  text-align: center;
  margin-bottom: 2px;
}
.hd-phase-nodes { display: flex; flex-direction: column; gap: 6px; }

.hd-node {
  appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 9px 6px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(232,227,210,0.6);
  cursor: help;
  transition: background .25s, border-color .25s, color .25s, transform .15s;
  /* Vertical stack — dot on top, label centred below. Frees the full
     column width for the label text so short suffix-style names
     (Identifier / Enricher / Reasoning / Eradication) sit comfortably
     on one line at 11px even in narrow 5-column grids. */
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  position: relative;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.hd-node:hover { color: var(--on-dark); border-color: rgba(255,255,255,0.18); }

.hd-node-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(232,227,210,0.25);
  flex-shrink: 0;
  transition: background .25s, box-shadow .25s, transform .25s;
}
.hd-node-name {
  font-weight: 500;
  letter-spacing: -0.005em;
  font-size: 11px;
  line-height: 1.2;
  /* Default no-break — almost every label is now 6-12 chars and fits.
     If a future label is long enough to actually overflow, allow a
     soft break at natural points rather than mid-word. */
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.hd-node.is-active {
  background: rgba(191,210,122,0.08);
  border-color: rgba(191,210,122,0.45);
  color: #DDE7BC;
  transform: translateY(-1px);
}
.hd-node.is-active .hd-node-dot {
  background: #BFD27A;
  box-shadow: 0 0 0 4px rgba(191,210,122,0.18);
  transform: scale(1.4);
}
.hd-node.is-done {
  background: rgba(123,141,92,0.10);
  border-color: rgba(123,141,92,0.30);
  color: rgba(221,231,188,0.7);
}
.hd-node.is-done .hd-node-dot { background: var(--accent); }

@media (max-width: 720px) {
  .demo-pipeline { grid-template-columns: 1fr 1fr; }
  .hd-phase + .hd-phase::before { display: none; }
}

/* ── Verdict card — floats centred in the demo body ──────────────────────
   Absolutely positioned and centred via translate(-50%) so it can take
   the visual centre stage when it lands. Alert + pipeline fade out at
   the same moment (see .is-verdict-showing rule above), so the verdict
   is the only thing left to read. */
.demo-verdict {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  background: #1f2118;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 18px 22px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--on-dark);
  box-sizing: border-box;
  max-height: calc(100% - 40px);
  overflow: auto;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.45),
              0 0 0 1px rgba(191,210,122,0.05);
  /* Off-screen initial: centred horizontally but offset 16px down, faded
     out. The .hd-verdict-in class flips to centred + full opacity. */
  transform: translateY(calc(-50% + 16px));
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s cubic-bezier(.2,.7,.2,1),
              transform .6s cubic-bezier(.2,.7,.2,1),
              visibility 0s linear .55s;
}
.demo-verdict.hd-verdict-in {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition: opacity .55s cubic-bezier(.2,.7,.2,1),
              transform .6s cubic-bezier(.2,.7,.2,1),
              visibility 0s linear 0s;
}

.hd-verdict-head {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 8px; margin-bottom: 10px;
}
.hd-verdict-route-inline { margin-left: auto; }
.hd-verdict-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  color: rgba(232,227,210,0.55); text-transform: uppercase;
}
.hd-verdict-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.hd-verdict-name.v-actionable      { color: #E89B6C; }
.hd-verdict-name.v-grace-period    { color: #D4C078; }
.hd-verdict-name.v-no-action       { color: #BFD27A; }

.hd-verdict-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  font-size: 12px;
  margin-bottom: 10px;
}
.hd-verdict-meta strong { color: var(--on-dark); font-weight: 600; }
.hd-meta-label {
  display: block;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(232,227,210,0.45);
  margin-bottom: 4px;
}
@media (max-width: 700px) { .hd-verdict-meta { grid-template-columns: 1fr 1fr; } }

.hd-verdict-factors ul {
  list-style: none;
  padding: 0; margin: 4px 0 0;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px;
}
.hd-verdict-factors li {
  display: flex; align-items: baseline; gap: 10px;
  color: rgba(232,227,210,0.78);
  padding-bottom: 3px;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  line-height: 1.35;
}
.hd-verdict-factors li:last-child { border-bottom: none; }
.hd-factor-c {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-weight: 700;
  font-size: 12.5px;
  min-width: 36px;
  color: var(--accent);
}

.hd-verdict-route { margin-top: 12px; }
.hd-chip-ok, .hd-chip-warn {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hd-chip-ok   { background: rgba(123,141,92,0.18);  color: #BFD27A; }
.hd-chip-warn { background: rgba(184,92,42,0.18);   color: #E89B6C; }

/* ── Scenario chips below the window ───────────────────────────────────── */
.demo-caption {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 4px;
}
.demo-caption-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(123,141,92,0.55);
  animation: hd-live 2.2s ease-out infinite;
}
@keyframes hd-live {
  0%,100% { box-shadow: 0 0 0 0 rgba(123,141,92,0.45); transform: scale(1); }
  50%     { box-shadow: 0 0 0 8px rgba(123,141,92,0); transform: scale(1.1); }
}

.demo-controls {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 6px;
}
.hd-chip {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .08s;
}
.hd-chip:hover { color: var(--ink); border-color: var(--ink-muted); }
.hd-chip.is-active {
  background: var(--accent-strong); color: var(--bg);
  border-color: var(--accent-strong);
}

/* ── Value pillars — four headline differentiators under the hero ─────── */
.value-pillars {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  padding: clamp(28px, 4vw, 44px) 0;
}
.vp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
@media (max-width: 880px) { .vp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .vp-grid { grid-template-columns: 1fr; } }

.vp {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 4px;
  position: relative;
}
.vp + .vp { border-left: 1px solid var(--rule); padding-left: clamp(16px, 2.4vw, 32px); }
@media (max-width: 880px) {
  .vp + .vp { border-left: none; padding-left: 4px; }
  .vp:nth-child(odd) + .vp { border-left: 1px solid var(--rule); padding-left: clamp(16px, 2.4vw, 32px); }
}
@media (max-width: 480px) {
  .vp + .vp { border-left: none; border-top: 1px solid var(--rule); padding-left: 4px; padding-top: 16px; }
  .vp:nth-child(odd) + .vp { border-left: none; padding-left: 4px; }
}

.vp-icon {
  width: 36px; height: 36px;
  color: var(--accent-strong);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), color .25s ease;
}
.vp-icon svg { width: 28px; height: 28px; display: block; }
.vp:hover .vp-icon { transform: scale(1.1) rotate(-3deg); color: var(--accent); }

.vp h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}
.vp p {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}

/* Stat chip on each pillar — a big sage tabular-numeral that ticks up
   when the pillar reveals. Sits between the icon and the heading so it
   becomes the focal point of the pillar. */
.vp-stat {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-variation-settings: 'opsz' 144;
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1;
  color: var(--accent-strong);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 4px;
}
.vp-stat-unit {
  font-size: 0.55em;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .vp:hover .vp-icon { transform: none; }
}

/* ── Trust strip directly under the hero ────────────────────────────────── */
.trust-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  padding: 18px 0;
  margin-top: 28px;
}
.trust-strip .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-strip .ts-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.trust-strip .ts-logos {
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap;
  opacity: 0.6;
}
.trust-strip .ts-logo {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.trust-strip .ts-badges {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.trust-strip .ts-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}
.trust-strip .ts-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Sticky scroll CTA bar (site-wide) ──────────────────────────────────── */
.sticky-cta {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 14px;
  padding: 14px 18px;
  display: none;
  align-items: center; gap: 16px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.4);
  z-index: 90;
  font-size: 14px;
  transform: translateY(120%);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.sticky-cta.is-visible { display: flex; transform: none; }
.sticky-cta .sc-text { flex: 1; min-width: 200px; }
.sticky-cta .sc-text strong { color: var(--bg); font-weight: 700; }
.sticky-cta .sc-text small { color: rgba(232,227,210,0.7); display: block; font-size: 12px; margin-top: 2px; }
.sticky-cta .sc-cta {
  background: var(--accent);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s;
}
.sticky-cta .sc-cta:hover { background: #BFD27A; color: var(--ink); }
.sticky-cta .sc-cta::after { content: '→'; }
.sticky-cta .sc-close {
  appearance: none; background: transparent; border: none;
  color: rgba(232,227,210,0.6);
  font-size: 20px; line-height: 1; cursor: pointer;
  padding: 4px 8px;
}
.sticky-cta .sc-close:hover { color: var(--bg); }
@media (max-width: 600px) {
  .sticky-cta { flex-wrap: wrap; }
  .sticky-cta .sc-cta { flex: 1; justify-content: center; }
}

/* ── Cursor-following accent (homepage only) ───────────────────────────── */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(123,141,92,0.16) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity .4s;
  opacity: 0;
  z-index: 0;
  mix-blend-mode: multiply;
}
.cursor-glow.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .demo-alert.hd-typing::after { animation: none; }
  .demo-caption-dot { animation: none; }
  .hd-node, .hd-node-dot { transition: none; }
  .demo-verdict { transition: none; transform: none; opacity: 1; }
  .sticky-cta { transition: none; }
  .cursor-glow { display: none; }
}

/* ── API playground (used on /docs) ─────────────────────────────────────── */
.api-play {
  background: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.35);
  color: var(--on-dark);
}
.api-play-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px;
  background: #25271c;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.api-play-head .ap-title {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(232,227,210,0.8);
  margin-right: auto;
}
.api-play-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-tab {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 6px 13px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(232,227,210,0.65);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.ap-tab:hover { color: var(--on-dark); border-color: rgba(255,255,255,0.25); }
.ap-tab.is-active {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.api-play-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  font-family: 'JetBrains Mono', Consolas, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  /* Lock the terminal-window height so it stays the same size across all
     three scenarios — the long JSON responses scroll *inside* the right
     pane rather than stretching the whole window. */
  height: 580px;
}
@media (max-width: 820px) {
  .api-play-body { grid-template-columns: 1fr; height: auto; }
  .api-play-body .ap-pane { height: 480px; }
}
.ap-pane {
  padding: 18px 20px;
  height: 100%;
  overflow: auto;
  box-sizing: border-box;
}
.ap-pane + .ap-pane { border-left: 1px solid rgba(255,255,255,0.06); }
@media (max-width: 820px) {
  .ap-pane + .ap-pane { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
}
.ap-pane-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 12px;
}
.ap-pane-label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  color: rgba(232,227,210,0.5); text-transform: uppercase;
}
.ap-snippet-tabs { display: inline-flex; gap: 2px; }
.ap-snippet-tab {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(232,227,210,0.55);
  font: inherit; font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 11px;
  padding: 2px 9px;
  cursor: pointer;
  border-radius: 6px;
}
.ap-snippet-tab.is-active { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.ap-code {
  white-space: pre;
  margin: 0;
  font-family: 'JetBrains Mono', Consolas, monospace;
  color: #E8E3D2;
  font-size: 12.5px;
}
.ap-code .k  { color: #BFD27A; }
.ap-code .s  { color: #C9B776; }
.ap-code .c  { color: #7B8D5C; }
.ap-code .n  { color: #9EA9DB; }
.ap-code .b  { color: #E89B6C; }
.ap-send-row {
  margin-top: 16px;
  display: flex; align-items: center; gap: 12px;
}
.ap-send-btn {
  appearance: none;
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, transform .08s;
}
.ap-send-btn:hover { background: #BFD27A; }
.ap-send-btn:active { transform: translateY(1px); }
.ap-send-btn::after { content: '→'; }
.ap-send-btn:disabled { opacity: 0.55; cursor: default; }
.ap-status {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(232,227,210,0.55);
}
.ap-status.ok    { color: #BFD27A; }
.ap-status.warn  { color: #E89B6C; }

.ap-response.is-empty {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(232,227,210,0.45);
  padding: 24px;
}
.ap-response.is-empty > div {
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 24px;
}
.ap-spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(232,227,210,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ap-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes ap-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ap-spinner { animation: none; } }
