/*
 * Ditto — public site
 *
 * Shares the Twin Console's design system (MASTER_PLAN §54) so the marketing
 * surface and the product read as one system: near-black ground, Outfit + Space
 * Mono, cyan signal, thin rules instead of floating cards.
 *
 * The four provenance colours are identical to the product's. They are the visual
 * encoding of §7.3, not decoration, and a visitor who later sees the console should
 * recognise them immediately.
 */

:root {
  --bg:            #07080b;
  --bg-raised:     #0b0d12;
  --bg-panel:      #0f1218;
  --bg-hover:      #151922;

  --line:          #1c212c;
  --line-strong:   #2a3140;
  --line-faint:    #14181f;

  --text:          #e8ecf4;
  --text-dim:      #9aa5b8;
  --text-faint:    #5d6779;
  --text-ghost:    #3a4252;

  --accent:        #22d3ee;
  --accent-soft:   #67e8f9;
  --accent-glow:   rgba(34,211,238,0.16);

  --prov-measured:   #06b6d4;
  --prov-inferred:   #fbbf24;
  --prov-literature: #94a3b8;
  --prov-assumed:    #ef4444;

  --ok:     #10b981;
  --warn:   #fbbf24;
  --danger: #ef4444;

  --font: 'Outfit', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #04252b; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.dim { color: var(--text-faint); }
.hl { color: var(--accent); }

/* ── scroll progress ───────────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: transparent; pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ── nav ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(7,8,11,0.82);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  padding: 11px 28px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.nav-mark {
  width: 26px; height: 26px; border: 1.5px solid var(--accent); border-radius: 7px;
  position: relative; flex-shrink: 0;
}
.nav-mark::after {
  content: ''; position: absolute; inset: 5px; border-radius: 3px;
  background: var(--accent); animation: pulse 3.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: .9; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }
.nav-name { display: block; font-size: 15px; font-weight: 600; letter-spacing: .17em; line-height: 1.2; }
.nav-sub  { display: block; font-family: var(--mono); font-size: 8.5px; color: var(--text-faint); letter-spacing: .08em; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--text-faint); text-decoration: none; font-size: 13px;
  transition: color .2s var(--ease); position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px;
  background: var(--accent); transition: right .3s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
  border: 1px solid var(--line-strong); border-radius: 7px;
  padding: 7px 15px; color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-glow); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); margin: 5px 0; transition: .3s var(--ease); }

/* ── hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 120px 0 90px;
}
#cohort-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    /* Heavier on the left where the headline sits, light on the right so the
       cohort stays legible -- it carries the message, so it must be readable. */
    linear-gradient(100deg, rgba(7,8,11,.94) 0%, rgba(7,8,11,.86) 34%, rgba(7,8,11,.30) 62%, rgba(7,8,11,.12) 100%),
    linear-gradient(180deg, rgba(7,8,11,.75) 0%, transparent 20%, transparent 74%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 3; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  color: var(--accent); margin-bottom: 26px;
  border: 1px solid rgba(34,211,238,.28); border-radius: 100px;
  padding: 6px 14px; background: rgba(34,211,238,.05);
}
.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2.2s var(--ease) infinite; }

.hero-title { font-size: clamp(2.6rem, 6.6vw, 5.3rem); font-weight: 200; line-height: 1.03; letter-spacing: -.028em; margin-bottom: 26px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; transform: translateY(105%); }
.hero-title .line:nth-child(2) > span { color: var(--accent); }

.hero-sub { font-size: clamp(1rem, 1.35vw, 1.15rem); color: var(--text-dim); max-width: 680px; margin-bottom: 34px; }

.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  display: inline-block; font-size: 13.5px; font-weight: 400;
  padding: 12px 24px; border-radius: 8px; text-decoration: none;
  border: 1px solid var(--line-strong); color: var(--text-dim);
  background: rgba(15,18,24,.6); backdrop-filter: blur(8px);
  transition: all .22s var(--ease);
}
.btn:hover { color: var(--text); border-color: var(--text-faint); transform: translateY(-2px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #04252b; font-weight: 500; }
.btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); box-shadow: 0 10px 34px rgba(34,211,238,.26); }

.hero-stats { display: flex; gap: 52px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 2rem; font-weight: 200; color: var(--text); font-variant-numeric: tabular-nums; }
.hero-stats span { font-family: var(--mono); font-size: 10px; color: var(--text-faint); letter-spacing: .06em; }

.hero-legend {
  position: absolute; right: 34px; bottom: 96px; z-index: 3;
  display: flex; flex-direction: column; gap: 7px;
  font-family: var(--mono); font-size: 9.5px; color: var(--text-faint);
}
.hero-legend span { display: flex; align-items: center; gap: 8px; }
.sw { width: 8px; height: 8px; border-radius: 2px; }
.sw.ok { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.sw.fail { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

.scroll-cue {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 30px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .22em; color: var(--text-ghost);
}
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(180deg, var(--text-ghost), transparent); }

/* ── affiliations marquee ──────────────────────────────────────────── */
.affil { padding: 54px 0; border-top: 1px solid var(--line-faint); border-bottom: 1px solid var(--line-faint); background: var(--bg-raised); }
.affil-head { display: flex; align-items: center; gap: 18px; max-width: var(--wrap); margin: 0 auto 30px; padding: 0 28px; }
.affil-head span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .19em; color: var(--text-ghost); white-space: nowrap; }
.affil-head i { flex: 1; height: 1px; background: var(--line); }
.marquee {
  overflow: hidden; min-height: 70px; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
/* The negative delay starts the track mid-scroll. At translateX(0) the first logo
   sits inside the left mask fade, so on first paint it would read as a half-faded
   fragment. Padding the track would break the seamless -50% loop; a delay does not. */
.marquee-track {
  display: flex; gap: calc(62px * var(--logo-scale, 1)); width: max-content; align-items: center;
  animation: slide 52s linear infinite; animation-delay: -9s;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Heights are set per logo in script.js, sized by optical area rather than by a
   single height, so a wide wordmark does not outweigh a stacked mark.

   The filter lifts the black point before brightening. brightness() is a multiply,
   so it cannot rescue a near-black logo — Purdue's wordmark (no fill attribute, so
   black by default) and Texas A&M maroon (#500000) both stayed invisible under a
   plain brightness(). contrast() below 1 compresses toward mid-grey, which raises
   the floor, and the brightness afterwards lands everything in a narrow light band
   without flattening white knockout text into its own background the way a pure
   invert() silhouette does. */
/* max-width is a safety net only. Because height is set explicitly, a binding
   max-width would squash the logo rather than scale it, so the cap sits well above
   the widest logo (TAMU IBT renders 239px) instead of near it. */
.marquee-track img {
  /* Per-logo height arrives as --h from script.js; --logo-scale lets a media query
     shrink the whole set without flattening the optical balance between them. */
  height: calc(var(--h, 42px) * var(--logo-scale, 1));
  width: auto; max-width: 300px; opacity: .62;
  filter: grayscale(1) contrast(.35) brightness(1.45);
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.marquee-track img:hover { opacity: 1; filter: grayscale(0) brightness(1.05); }
@media (max-width: 760px) { .marquee { --logo-scale: .70; min-height: 56px; } }

/* ── sections ──────────────────────────────────────────────────────── */
.section { padding: 118px 0; position: relative; }
/* Anchor targets must clear the fixed nav, or the section label lands underneath it. */
.section[id], .hero[id] { scroll-margin-top: 76px; }
.section.alt { background: var(--bg-raised); border-top: 1px solid var(--line-faint); border-bottom: 1px solid var(--line-faint); }

.sec-label { font-family: var(--mono); font-size: 10px; letter-spacing: .19em; color: var(--accent); margin-bottom: 20px; }
.sec-title { font-size: clamp(1.9rem, 3.7vw, 3.05rem); font-weight: 200; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 26px; }
.sec-title.small { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.sec-lede { font-size: 1.03rem; color: var(--text-dim); max-width: 720px; margin-bottom: 46px; }
.body { color: var(--text-dim); margin-bottom: 17px; max-width: 620px; }
.cite { font-size: .87rem; color: var(--text-faint); border-left: 2px solid var(--line-strong); padding-left: 15px; margin-top: 26px; max-width: 600px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* ── the bottleneck ────────────────────────────────────────────────── */
.broken { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 52px 0; }
.broken-card {
  border: 1px solid var(--line); border-radius: 13px; padding: 30px 26px;
  background: var(--bg-panel); position: relative; overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.broken-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(239,68,68,.07), transparent 62%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.broken-card:hover { border-color: rgba(239,68,68,.32); transform: translateY(-4px); }
.broken-card:hover::before { opacity: 1; }
.broken-num { font-family: var(--mono); font-size: 11px; color: var(--danger); margin-bottom: 14px; letter-spacing: .1em; }
.broken-card h3 { font-size: 1.22rem; font-weight: 400; margin-bottom: 11px; }
.broken-card p { font-size: .92rem; color: var(--text-faint); position: relative; }

.pull { font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 200; line-height: 1.55; max-width: 860px; color: var(--text-dim); }

/* ── platform steps ────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.step { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--bg-panel); transition: border-color .3s var(--ease); }
.step:hover { border-color: var(--line-strong); }
.step-visual { height: 168px; background: #05060a; border-bottom: 1px solid var(--line-faint); position: relative; }
.step-visual canvas { width: 100%; height: 100%; display: block; }
.step-n { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--accent); padding: 22px 26px 0; }
.step h3 { font-size: 1.22rem; font-weight: 400; padding: 8px 26px 0; }
.step p { font-size: .9rem; color: var(--text-faint); padding: 11px 26px 28px; }

/* ── live demo ─────────────────────────────────────────────────────── */
.demo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.demo-panel { border: 1px solid var(--line); border-radius: 13px; background: var(--bg-panel); overflow: hidden; }
.demo-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line-faint); }
.demo-title { font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; color: var(--text-faint); }
.demo-tag { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; color: var(--danger); border: 1px solid rgba(239,68,68,.35); border-radius: 4px; padding: 3px 7px; }

.demo-row {
  display: grid; grid-template-columns: 13px 1fr auto; gap: 12px; align-items: center;
  padding: 13px 18px; border-bottom: 1px solid var(--line-faint); cursor: pointer;
  transition: background .16s var(--ease);
}
.demo-row:last-child { border-bottom: none; }
.demo-row:hover { background: var(--bg-hover); }
.demo-row.on { background: linear-gradient(90deg, var(--accent-glow), transparent); }
.demo-path { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); }
.demo-origin { font-size: 10px; color: var(--text-ghost); margin-top: 3px; }
.demo-val { font-family: var(--mono); font-size: 11.5px; text-align: right; white-space: nowrap; }
.demo-val.unconstrained { color: var(--prov-assumed); font-size: 9.5px; max-width: 160px; white-space: normal; }

.pdot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.pdot.measured   { background: var(--prov-measured);   box-shadow: 0 0 6px var(--prov-measured); }
.pdot.inferred   { background: var(--prov-inferred);   box-shadow: 0 0 6px var(--prov-inferred); }
.pdot.literature { background: var(--prov-literature); }
.pdot.assumed    { background: var(--prov-assumed);    box-shadow: 0 0 6px var(--prov-assumed); }

.demo-chain-body { padding: 20px; min-height: 268px; }
.demo-empty { color: var(--text-ghost); font-size: .88rem; font-family: var(--mono); }
.chain-node { padding-left: 20px; position: relative; margin-bottom: 6px; animation: chainIn .34s var(--ease) both; }
@keyframes chainIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.chain-node::before { content: ''; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.chain-node.measured::before   { background: var(--prov-measured); }
.chain-node.inferred::before   { background: var(--prov-inferred); }
.chain-node.literature::before { background: var(--prov-literature); }
.chain-node.assumed::before    { background: var(--prov-assumed); }
.chain-node .kids { border-left: 1px solid var(--line); margin-left: 3px; padding-left: 15px; margin-top: 7px; }
.chain-val { font-family: var(--mono); font-size: 11.5px; }
.chain-path { font-family: var(--mono); font-size: 9px; color: var(--text-ghost); margin-top: 2px; }
.chain-origin { font-size: 10.5px; color: var(--text-dim); margin-top: 5px; line-height: 1.5; }
.chain-flag { margin-top: 12px; font-size: 10.5px; padding: 9px 12px; border-radius: 7px; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.26); color: #fca5a5; }

.prov-key { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; font-family: var(--mono); font-size: 10px; color: var(--text-faint); }
.prov-key span { display: flex; align-items: center; gap: 8px; }
.pk { width: 8px; height: 8px; border-radius: 50%; }
.pk.measured { background: var(--prov-measured); }
.pk.inferred { background: var(--prov-inferred); }
.pk.literature { background: var(--prov-literature); }
.pk.assumed { background: var(--prov-assumed); }

/* ── rules ─────────────────────────────────────────────────────────── */
.rules { border: 1px solid var(--line); border-radius: 13px; background: var(--bg-panel); overflow: hidden; }
.rules-head { font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; color: var(--accent); padding: 17px 24px; border-bottom: 1px solid var(--line-faint); }
.rules-list { list-style: none; counter-reset: r; }
.rules-list li {
  counter-increment: r; position: relative;
  padding: 15px 24px 15px 58px; border-bottom: 1px solid var(--line-faint);
  font-size: .875rem; color: var(--text-faint);
}
.rules-list li:last-child { border-bottom: none; }
.rules-list li::before {
  content: counter(r, decimal-leading-zero);
  position: absolute; left: 24px; top: 15px;
  font-family: var(--mono); font-size: 10px; color: var(--accent);
}
.rules-list b { color: var(--text); font-weight: 400; }

/* ── credibility ───────────────────────────────────────────────────── */
.cred { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.cred-card { border: 1px solid var(--line); border-radius: 13px; padding: 30px 26px; background: var(--bg-panel); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.cred-card:hover { border-color: rgba(34,211,238,.3); transform: translateY(-4px); }
.cred-icon { font-size: 17px; color: var(--accent); margin-bottom: 15px; }
.cred-card h3 { font-size: 1.12rem; font-weight: 400; margin-bottom: 11px; }
.cred-card p { font-size: .9rem; color: var(--text-faint); margin-bottom: 15px; }
.cred-note { font-family: var(--mono); font-size: 9.5px; color: var(--text-ghost); border-top: 1px solid var(--line-faint); padding-top: 13px; line-height: 1.6; }

.tiers { border: 1px solid var(--line); border-radius: 13px; padding: 28px; background: var(--bg-panel); }
.tiers-head { font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; color: var(--text-ghost); margin-bottom: 20px; }
.tier-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; }
.tier { border: 1px solid var(--line); border-radius: 9px; padding: 15px 14px; background: var(--bg); position: relative; }
.tier b { display: block; font-size: .92rem; font-weight: 400; color: var(--text-faint); }
.tier span { display: block; font-size: 10px; color: var(--text-ghost); margin-top: 4px; }
.tier i { display: block; font-family: var(--mono); font-size: 8.5px; margin-top: 9px; color: transparent; letter-spacing: .08em; }
.tier.done { border-color: rgba(16,185,129,.4); }
.tier.done b { color: var(--ok); }
.tier.done i { color: var(--ok); }
.tier.next { border-color: rgba(34,211,238,.45); box-shadow: 0 0 26px rgba(34,211,238,.09) inset; }
.tier.next b { color: var(--accent); }
.tier.next i { color: var(--accent); }
.tiers-note { font-size: .87rem; color: var(--text-faint); margin-top: 20px; }

/* ── buyers ────────────────────────────────────────────────────────── */
.buyers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.buyer { border-left: 2px solid var(--line-strong); padding: 5px 0 5px 24px; transition: border-color .3s var(--ease); }
.buyer:hover { border-left-color: var(--accent); }
.buyer h3 { font-size: 1.12rem; font-weight: 400; margin-bottom: 11px; }
.buyer p { font-size: .9rem; color: var(--text-faint); }

/* ── research ──────────────────────────────────────────────────────── */
.papers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 46px; }
.paper { border: 1px solid var(--line); border-radius: 13px; padding: 28px; background: var(--bg-panel); transition: border-color .3s var(--ease); }
.paper:hover { border-color: var(--line-strong); }
.paper-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.badge { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; padding: 4px 9px; border-radius: 4px; background: rgba(34,211,238,.1); color: var(--accent); border: 1px solid rgba(34,211,238,.3); }
.badge.conf { background: rgba(251,191,36,.09); color: var(--warn); border-color: rgba(251,191,36,.3); }
.paper-meta { font-family: var(--mono); font-size: 9.5px; color: var(--text-ghost); }
.paper h3 { font-size: 1.06rem; font-weight: 400; line-height: 1.45; margin-bottom: 13px; }
.paper-venue { font-size: .87rem; color: var(--text-dim); margin-bottom: 9px; }
.paper-authors { font-size: .8rem; color: var(--text-ghost); line-height: 1.65; margin-bottom: 17px; }
.paper-link { font-family: var(--mono); font-size: 10px; color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.paper-link:hover { border-bottom-color: var(--accent); }

/* ── progress ──────────────────────────────────────────────────────── */
.grant { display: flex; align-items: center; gap: 24px; padding: 26px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg-panel); margin-bottom: 46px; }
.grant-logo { height: 52px; width: auto; }
.grant h3 { font-size: 1.06rem; font-weight: 400; margin-bottom: 5px; }
.grant p { font-size: .87rem; color: var(--text-faint); }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -30px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line-strong); }
.tl-item.active .tl-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.tl-row { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; flex-wrap: wrap; }
.tl-badge { font-family: var(--mono); font-size: 8.5px; letter-spacing: .11em; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--text-faint); }
.tl-badge.now { color: var(--accent); border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.07); }
.tl-loc { font-family: var(--mono); font-size: 9.5px; color: var(--text-ghost); }
.tl-body h4 { font-size: 1.03rem; font-weight: 400; margin-bottom: 7px; }
.tl-body p { font-size: .89rem; color: var(--text-faint); max-width: 620px; }

/* ── quote ─────────────────────────────────────────────────────────── */
.quote { padding: 132px 28px; text-align: center; position: relative; overflow: hidden; }
.quote-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(34,211,238,.07), transparent 68%); }
.quote blockquote { position: relative; font-size: clamp(1.5rem, 3.3vw, 2.6rem); font-weight: 200; line-height: 1.35; letter-spacing: -.02em; max-width: 900px; margin: 0 auto; }

/* ── team ──────────────────────────────────────────────────────────── */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 42px; }
.person { text-align: center; }
.person-img {
  width: 148px; height: 148px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px;
  border: 1px solid var(--line-strong); position: relative;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.person:hover .person-img { border-color: var(--accent); transform: translateY(-5px); }
.person-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .35s var(--ease); }
.person:hover .person-img img { filter: grayscale(0); }
.person-role { font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; color: var(--accent); margin-bottom: 8px; }
.person h3 { font-size: 1.06rem; font-weight: 400; margin-bottom: 7px; }
.person p { font-size: .84rem; color: var(--text-faint); line-height: 1.55; }

/* ── cta ───────────────────────────────────────────────────────────── */
.cta { padding: 118px 0; text-align: center; border-top: 1px solid var(--line-faint); background: var(--bg-raised); }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 200; line-height: 1.16; letter-spacing: -.02em; margin-bottom: 20px; }
.cta p { color: var(--text-dim); max-width: 560px; margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ── footer ────────────────────────────────────────────────────────── */
.footer { padding: 48px 0; border-top: 1px solid var(--line-faint); }
.footer-in { display: flex; align-items: flex-start; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 44px; width: auto; }
.footer-meta { text-align: right; font-size: .84rem; color: var(--text-faint); }
.footer-meta p { margin-bottom: 4px; }
.footer-meta .dim { font-size: .78rem; max-width: 400px; }

/* ── reveal ────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .broken, .steps, .cred, .buyers, .people, .papers, .demo, .split { grid-template-columns: 1fr; }
  .tier-row { grid-template-columns: repeat(2, 1fr); }
  .hero-legend { display: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: rgba(9,11,15,.97); backdrop-filter: blur(20px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 24px; padding: 40px; transform: translateX(100%);
    transition: transform .4s var(--ease); border-left: 1px solid var(--line);
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 17px; }
  .hero-stats { gap: 30px; }
  .hero-stats b { font-size: 1.6rem; }
  .section { padding: 78px 0; }
  .tier-row { grid-template-columns: 1fr; }
  .footer-in { flex-direction: column; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Added sections: gap chart, live study, moat terminal, horizons, buyers
   Every text block on the page now sits beside something that moves.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── shared visual frame ───────────────────────────────────────────── */
.viz-frame { position: relative; background: #05060a; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.viz-frame canvas { display: block; width: 100%; height: 100%; }
.viz-frame.tall { height: 340px; }
.viz-frame.wide { height: 300px; }
.viz-cap { font-size: .8rem; color: var(--text-ghost); margin-top: 12px; line-height: 1.6; max-width: 560px; }

/* ── bottleneck ────────────────────────────────────────────────────── */
.gap-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 52px; align-items: start; margin-top: 46px; }
.gap-cards { display: flex; flex-direction: column; gap: 18px; }
.mini { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.mini-n { font-family: var(--mono); font-size: 11px; color: var(--danger); letter-spacing: .1em; padding-top: 3px; }
.mini h3 { font-size: 1.04rem; font-weight: 400; margin-bottom: 5px; }
.mini p { font-size: .88rem; color: var(--text-faint); }
.pull { font-size: clamp(1.1rem, 1.8vw, 1.42rem); font-weight: 200; line-height: 1.55; color: var(--text-dim); }
.pull.small { font-size: 1.06rem; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ── live cohort study ─────────────────────────────────────────────── */
.study { display: grid; grid-template-columns: 1fr 292px; gap: 20px; }
.study-main { border: 1px solid var(--line); border-radius: 13px; background: var(--bg-panel); overflow: hidden; }
.study-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line-faint); }
.btn.sm { padding: 8px 17px; font-size: 12.5px; white-space: nowrap; }
.btn.sm.running { color: transparent !important; position: relative; pointer-events: none; }
.btn.sm.running::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 13px; height: 13px;
  border-radius: 50%; border: 2px solid rgba(4,37,43,.3); border-top-color: #04252b;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.study-body { display: grid; grid-template-columns: 1fr 1fr; }
.study-grid, .study-scatter { height: 316px; position: relative; background: #05060a; }
.study-grid { border-right: 1px solid var(--line-faint); }
.study-grid canvas, .study-scatter canvas { display: block; width: 100%; height: 100%; }

.study-foot { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-faint); }
.metric { padding: 15px 18px; border-right: 1px solid var(--line-faint); }
.metric:last-child { border-right: none; }
.metric b { display: block; font-size: 1.4rem; font-weight: 200; font-variant-numeric: tabular-nums; transition: color .3s var(--ease); }
.metric span { font-family: var(--mono); font-size: 9px; letter-spacing: .09em; color: var(--text-ghost); text-transform: uppercase; }

.study-side { display: flex; flex-direction: column; gap: 14px; }
.side-block { border: 1px solid var(--line); border-radius: 13px; background: var(--bg-panel); padding: 18px; }
.side-label { font-family: var(--mono); font-size: 9px; letter-spacing: .13em; color: var(--text-ghost); margin-bottom: 10px; }
.side-val { font-size: .98rem; margin-bottom: 8px; }
.side-val b { color: var(--warn); font-weight: 500; }
.side-note { font-size: .84rem; color: var(--text-faint); line-height: 1.6; }
.side-block.hit { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.05); }

/* ── moat terminal ─────────────────────────────────────────────────── */
.moat { display: grid; grid-template-columns: 1.08fr 1fr; gap: 40px; align-items: start; margin: 46px 0 72px; }
.moat-term { border: 1px solid var(--line); border-radius: 13px; background: #05060a; overflow: hidden; }
.term-head { display: flex; align-items: center; gap: 12px; padding: 11px 15px; border-bottom: 1px solid var(--line-faint); background: var(--bg-panel); }
.term-dots { display: flex; gap: 5px; }
.term-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.term-title { font-family: var(--mono); font-size: 9.5px; color: var(--text-ghost); letter-spacing: .07em; }
.term-body { padding: 16px; min-height: 328px; font-family: var(--mono); font-size: 10.5px; line-height: 1.85; }
.tl { display: flex; gap: 9px; animation: termIn .22s var(--ease) both; }
@keyframes termIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.tl-mark { flex-shrink: 0; width: 62px; }
.tl-mark.ok { color: var(--ok); }
.tl-mark.no { color: var(--danger); }
.tl-mark.warn { color: var(--warn); }
.tl-txt { color: var(--text-dim); }
.tl-txt b { color: var(--text); font-weight: 400; }
.tl-why { color: var(--text-ghost); padding-left: 71px; }

.moat-copy h3 { font-size: 1.32rem; font-weight: 300; line-height: 1.32; margin-bottom: 16px; }
.moat-copy p { color: var(--text-faint); font-size: .92rem; margin-bottom: 18px; }
.ticks { list-style: none; margin-bottom: 20px; }
.ticks li { position: relative; padding-left: 24px; font-size: .88rem; color: var(--text-dim); margin-bottom: 10px; }
.ticks li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); font-size: 11px; }

.prov-demo-head { margin-bottom: 24px; }
.prov-demo-head h3 { font-size: 1.42rem; font-weight: 300; margin-bottom: 7px; }
.prov-demo-head p { color: var(--text-faint); font-size: .92rem; }

/* ── credibility layout ────────────────────────────────────────────── */
.cred-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: start; margin: 46px 0 52px; }
.body.big { font-size: 1.06rem; color: var(--text-dim); }
.body.dimmer { color: var(--text-ghost); font-size: .9rem; }

/* ── horizons ──────────────────────────────────────────────────────── */
.hz-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.hz {
  border: 1px solid var(--line); border-radius: 13px; padding: 24px;
  background: var(--bg-panel); position: relative; overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.hz::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--line-strong); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease), background .3s var(--ease);
}
.hz.on { border-color: rgba(34,211,238,.34); transform: translateY(-4px); }
.hz.on::after { transform: scaleX(1); background: var(--accent); }
.hz-tag { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
.hz h3 { font-size: 1.18rem; font-weight: 400; margin-bottom: 10px; }
.hz p { font-size: .88rem; color: var(--text-faint); margin-bottom: 16px; }
.hz-state {
  display: inline-block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em;
  padding: 4px 9px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--text-ghost);
}
.hz-state.live { color: var(--ok); border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.07); }
.hz-note { font-size: .9rem; color: var(--text-faint); margin-top: 26px; max-width: 720px; border-left: 2px solid var(--line-strong); padding-left: 16px; }

/* ── buyers with visuals ───────────────────────────────────────────── */
.buyer-viz { height: 96px; margin-bottom: 18px; border-radius: 9px; overflow: hidden; background: #05060a; border: 1px solid var(--line-faint); }
.buyer-viz canvas { display: block; width: 100%; height: 100%; }
.buyer { border-left: none; padding: 0; }
.buyer:hover { border-left-color: transparent; }

/* ── quote canvas ──────────────────────────────────────────────────── */
.quote { position: relative; }
#quote-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.quote blockquote { z-index: 2; }

/* ── responsive additions ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .gap-layout, .moat, .cred-layout, .study { grid-template-columns: 1fr; }
  .study-side { flex-direction: row; flex-wrap: wrap; }
  .side-block { flex: 1 1 220px; }
  .hz-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .study-body { grid-template-columns: 1fr; }
  .study-grid { border-right: none; border-bottom: 1px solid var(--line-faint); }
  .study-foot { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
  .viz-frame.tall { height: 250px; }
  .term-body { min-height: 260px; font-size: 9.5px; }
}
