/* ═══════════════════════════════════════════════════════════════════════════
   NI — homepage v3 beats
   Arc: Hero · Problem · Discovery · Proof · What We've Learned · Applications ·
        Why Now · Institution · Closing
   black = authority/terse · white = human/breathing · amber = accent
   ═══════════════════════════════════════════════════════════════════════════ */

/* accent utility that adapts to ground */
.gold { color: var(--accent-ink); }
.dark .gold { color: var(--accent-soft); }

/* body copy adapts to a dark ground (used by sections that flip dark) */
.dark .body-copy { color: var(--d2); }
.dark .body-copy strong { color: var(--d1); }

/* hero sub-line as a sans sentence (per v3 copy) */
.hero-sub.sentence {
  font-family: var(--sans); text-transform: none; letter-spacing: 0;
  font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; color: var(--d2); max-width: 32ch;
}

/* ── BEAT 2 · THE DISCOVERY GAP (black · revelation, hierarchy + pacing) ── */
/* two-part composition: the build (left) resolves into the turn + brain (right) */
.dg-grid {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(40px, 5vw, 84px); align-items: end;
}
.dg-build { min-width: 0; }
.dg-resolve { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.dg-brain-wrap { width: 100%; position: relative; }
.dg-brain { display: block; width: 100%; height: clamp(300px, 33vw, 460px); }
/* lead — the hook, the visual anchor: large, full-brightness cream */
.dg-lead {
  font-family: var(--serif); font-weight: 400; color: var(--d1);
  font-size: clamp(30px, 4.4vw, 58px); line-height: 1.1; letter-spacing: -0.02em;
  max-width: 19ch; text-wrap: balance; margin-top: clamp(22px, 3vw, 38px);
}
/* middle — connective tissue: step down in size and to the muted tone, longer measure */
.dg-mid {
  font-family: var(--serif); font-weight: 400; color: var(--d2);
  font-size: clamp(18px, 1.7vw, 24px); line-height: 1.46; letter-spacing: -0.008em;
  max-width: 33em; text-wrap: pretty; margin-top: clamp(18px, 2vw, 26px);
}
.dg-mid + .dg-mid { margin-top: clamp(11px, 1.2vw, 16px); }
/* the AI pivot line — given its own breath, lifted toward brightness so it isn't buried */
.dg-pivot {
  font-family: var(--serif); font-weight: 400; color: var(--d1);
  font-size: clamp(19px, 1.9vw, 27px); line-height: 1.34; letter-spacing: -0.012em;
  max-width: 30em; text-wrap: pretty; margin-top: clamp(22px, 2.8vw, 36px);
}
/* closing — the arrival: return toward full brightness, slightly larger than the middle */
.dg-close {
  font-family: var(--serif); font-weight: 400; color: var(--d1);
  font-size: clamp(22px, 2.4vw, 33px); line-height: 1.2; letter-spacing: -0.016em;
  max-width: 25ch; text-wrap: balance; margin-top: clamp(28px, 3.6vw, 50px);
}
/* the turn — the payoff, locked to the brain, resolving on "visible" — its baseline pairs with "invisible" across the grid (align-items:end) */
.dg-turn {
  font-family: var(--serif); font-weight: 400; color: var(--d1);
  font-size: clamp(26px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -0.018em;
  max-width: 16ch; text-wrap: balance; margin-top: clamp(0px, 0.4vw, 6px);
}
/* revelation cue: "visible" illuminates into view — light, not graphic */
.dg-visible { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .dg-turn.in .dg-visible { animation: illuminate 1.7s var(--ease) 0.35s both; }
}
@keyframes illuminate {
  0%   { color: rgba(246,243,236,0.40); text-shadow: 0 0 0 transparent; }
  45%  { color: var(--accent-soft); text-shadow: 0 0 32px color-mix(in srgb, var(--accent-soft) 50%, transparent); }
  100% { color: var(--accent-soft); text-shadow: 0 0 0 transparent; }
}
@media (max-width: 920px) {
  .dg-grid { grid-template-columns: 1fr; gap: clamp(30px, 6vw, 46px); align-items: start; }
  .dg-brain { height: clamp(250px, 58vw, 380px); }
  .dg-turn { max-width: 22ch; margin-top: clamp(8px, 2vw, 16px); }
}

/* ── reusable serif statement (memory line, moat line) ───────────────────── */
.statement {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(25px, 3.2vw, 44px); line-height: 1.16; letter-spacing: -0.016em;
  max-width: 26ch; text-wrap: balance;
}
.statement .hl { color: var(--accent-ink); }
.dark .statement .hl { color: var(--accent-soft); }

/* ── BEAT 3 · DISCOVERY opener ───────────────────────────────────────────── */
.opener {
  font-family: var(--serif); font-size: clamp(26px, 3.6vw, 48px); line-height: 1.12;
  letter-spacing: -0.018em; max-width: 20ch; text-wrap: balance;
}
.link-mono {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--accent-ink);
}
.dark .link-mono { color: var(--accent-soft); }
.link-mono .arr { transition: transform 0.25s var(--ease); }
.link-mono:hover .arr { transform: translateX(4px); }

/* ── PROOF on dark (numbers as monuments) ────────────────────────────────── */
.dark .corr-track { background: rgba(246,243,236,0.09); }
.dark .corr-row { border-color: var(--line-dark); }
.dark .corr-row:last-child { border-bottom-color: var(--line-dark); }
.dark .corr-name { color: var(--d1); }
.dark .corr-name .m { color: var(--d3); }
.dark .corr-val { color: var(--d2); }
.dark .corr-fill { background: rgba(246,243,236,0.34); }
.dark .corr-row.hero-row .corr-fill { background: var(--accent); }
.dark .corr-row.hero-row .corr-val { color: var(--accent-soft); }
.dark .corr-cap { color: var(--d3); }
.dark .pf .v .u { color: var(--accent-soft); }
.dark .pf .k { color: var(--d3); }

/* ── PROOF · validation chain (the question is the story) ────────────────── */
.vchain { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid rgba(246,243,236,0.10); }

/* compact horizontal progression — replaces the five-row chain */
.vprog {
  margin-top: clamp(30px, 4.5vw, 54px);
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: clamp(10px, 1.5vw, 20px);
  font-family: var(--mono); font-size: clamp(12.5px, 1.25vw, 15.5px);
  font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.vprog .vstep { color: var(--d1); white-space: nowrap; }
.vprog .vstep.gold { color: var(--accent-soft); }
.vprog .varr { color: var(--d3); }
.vrow {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 5vw, 64px);
  align-items: center; padding: clamp(18px, 2.2vw, 28px) 0;
  border-bottom: 1px solid rgba(246,243,236,0.10);
}
.vrow .vq {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(19px, 2vw, 27px); line-height: 1.3; letter-spacing: -0.012em;
  color: var(--d1); max-width: 42ch; text-wrap: pretty;
}
/* the climb — dividers brighten, the ground warms, presence grows toward the bottom */
.vrow:nth-child(1) { background: rgba(246,243,236,0.000); }
.vrow:nth-child(2) { background: rgba(246,243,236,0.010); border-bottom-color: rgba(246,243,236,0.13); }
.vrow:nth-child(3) { background: rgba(246,243,236,0.019); border-bottom-color: rgba(246,243,236,0.16); }
.vrow:nth-child(4) { background: rgba(246,243,236,0.030); border-bottom-color: rgba(246,243,236,0.20); padding-block: clamp(22px, 2.6vw, 34px); }
.vrow:nth-child(5) { background: rgba(246,243,236,0.052); border-bottom-color: rgba(246,243,236,0.42); padding-block: clamp(28px, 3.4vw, 46px); }

/* verdicts — entered, not captioned */
.vrow .vv {
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-soft); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 11px; justify-self: end;
}
.vrow .vv::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  display: inline-block; flex: none;
}
/* 86% — a peak (serif number), but deliberately not THE peak */
.vrow.peak .vq { color: var(--d1); }
.vrow.peak .vv {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  color: var(--accent-soft); gap: 13px; align-items: baseline;
}
.vrow.peak .vv::before { display: none; }
.vrow.peak .vv .serif {
  font-family: var(--serif); font-size: clamp(30px, 3.9vw, 50px); line-height: 1;
  letter-spacing: -0.025em; text-transform: none; font-variant-numeric: tabular-nums;
}
/* the final rung — the true climax: brightest divider, strongest verdict */
.vrow.published .vq { color: var(--d1); }
.vrow.published .vv {
  font-family: var(--serif); font-size: clamp(23px, 2.5vw, 33px); font-weight: 400;
  letter-spacing: -0.012em; text-transform: none; color: var(--accent-soft); gap: 13px;
}
.vrow.published .vv::before {
  width: 10px; height: 10px;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent-soft) 70%, transparent);
}
/* resolution — earned, directly beneath the climax (no longer a footnote) */
.vchain-note {
  margin-top: clamp(22px, 2.6vw, 32px); font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 1.7vw, 24px); line-height: 1.45; color: var(--d1);
  max-width: 52ch; text-wrap: pretty;
}
.vchain-note .gold { font-style: normal; }
.vchain-link { margin-top: clamp(15px, 1.8vw, 22px); color: var(--accent-soft); }
.vchain-link .arr { color: var(--accent-soft); }
/* monuments — tied to the chain as its evidentiary base */
.proof-foot {
  margin-top: clamp(40px, 6vw, 72px); font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.05em; line-height: 1.75; color: var(--d3); max-width: 64ch;
}
.proofbar { border-top: 1px solid rgba(246,243,236,0.12); padding-top: clamp(30px, 3.5vw, 48px); }

/* sequential reveal — each verdict stamps in a beat after its question, top → bottom */
@media (prefers-reduced-motion: no-preference) {
  .vchain .vv { opacity: 0; transform: translateY(7px) scale(0.95); transform-origin: right center; }
  .vchain.in .vv { animation: stampIn 0.5s var(--ease) both; }
  .vchain.in .vrow:nth-child(1) .vv { animation-delay: 0.30s; }
  .vchain.in .vrow:nth-child(2) .vv { animation-delay: 0.52s; }
  .vchain.in .vrow:nth-child(3) .vv { animation-delay: 0.74s; }
  .vchain.in .vrow:nth-child(4) .vv { animation-delay: 1.02s; }
  .vchain.in .vrow:nth-child(5) .vv { animation-delay: 1.40s; }
  .vchain.in .vv::before { animation: dotPulse 0.62s var(--ease) both; }
  .vchain.in .vrow:nth-child(1) .vv::before { animation-delay: 0.30s; }
  .vchain.in .vrow:nth-child(2) .vv::before { animation-delay: 0.52s; }
  .vchain.in .vrow:nth-child(3) .vv::before { animation-delay: 0.74s; }
  .vchain.in .vrow:nth-child(5) .vv::before { animation-delay: 1.40s; }
}
@keyframes stampIn { from { opacity: 0; transform: translateY(7px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes dotPulse { 0% { transform: scale(0.3); opacity: 0; } 55% { transform: scale(1.6); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

@media (max-width: 640px) {
  .vrow { grid-template-columns: 1fr; gap: 10px; }
  .vrow .vv { justify-self: start; }
}

/* ── CLIENT LOGOS (light band · monochrome, restrained, slow auto-scroll) ── */
.logobar { background: var(--paper); color: var(--t1); padding-block: clamp(48px, 6.5vw, 88px); border-top: 1px solid var(--line-light); overflow: hidden; }
.logobar-intro {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; line-height: 1.6;
  color: var(--t3); text-align: center; max-width: 48ch; margin: 0 auto;
}
.logo-marquee {
  margin-top: clamp(30px, 3.6vw, 48px); position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
}
.logo-track {
  display: flex; align-items: center; gap: clamp(42px, 5vw, 76px);
  width: max-content; animation: logoscroll 52s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track span {
  font-family: var(--sans); font-weight: 600; font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.01em; color: var(--t3); white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.logo-track span:hover { color: var(--t1); }
@keyframes logoscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 20px; padding-inline: var(--gut); }
  .logo-track span[aria-hidden="true"] { display: none; }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ── BEAT 7 · WHY NOW extras ─────────────────────────────────────────────── */
.whynow-lead {
  font-family: var(--serif); font-size: clamp(21px, 2.7vw, 34px); line-height: 1.26;
  color: var(--d2); max-width: 24ch; letter-spacing: -0.012em;
}
.whynow-turn {
  font-family: var(--serif); font-size: clamp(24px, 3.4vw, 48px); line-height: 1.12;
  color: var(--d1); max-width: 20ch; margin-top: clamp(34px, 5vw, 60px); letter-spacing: -0.018em;
}

/* ── BEAT 8 · INSTITUTION editorial grid ─────────────────────────────────── */
.ed-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-light); border: 1px solid var(--line-light);
  margin-top: clamp(32px, 4.5vw, 56px);
}
.ed-card {
  background: var(--paper); padding: clamp(26px, 2.6vw, 40px); min-height: 220px;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: background 0.35s var(--ease);
}
.ed-card:hover { background: var(--paper-2); }
.ed-card .ek { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.ed-card h4 { font-family: var(--serif); font-size: clamp(21px, 2vw, 28px); line-height: 1.18; margin-top: 16px; }
.ed-card p { font-size: 14px; color: var(--t2); margin-top: 12px; line-height: 1.6; flex: 1; }
.ed-card .go { margin-top: 22px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.ed-card .go .arr { color: var(--accent); transition: transform 0.25s var(--ease); }
.ed-card:hover .go .arr { transform: translateX(4px); }

/* ── CLOSING band (black, the one centered moment) ───────────────────────── */
.closing {
  background: var(--ink); color: var(--d1); text-align: center; position: relative; overflow: hidden;
  padding-block: clamp(96px, 15vw, 200px);
}
.closing-trace { position: absolute; left: 0; right: 0; bottom: -10px; height: 200px; z-index: 0; opacity: 0.55; }
.closing .ce { position: relative; z-index: 1; }
.closing .eyebrow { color: var(--d3); justify-content: center; margin-bottom: 28px; }
.closing h2 { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(32px, 5.4vw, 76px); letter-spacing: -0.022em; line-height: 1.04; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .ed-grid { grid-template-columns: 1fr; }
}
