/* ============================================================
   EVEWorld project page
   Design language modeled on imitator-game.github.io:
   Apple-ish off-white canvas, white cards, blue accent, big
   radii, whisper-thin shadows, Noto Sans, video-reel hero,
   accordion folds, inline-SVG ablation scatter.
   Light-only: every embedded paper figure is a white-surface
   PNG. The four categorical slots encode the four compared
   arms (EVEWorld / Standard SFT / IGR only / pretrained);
   hue always travels with a text label, never alone. Blue is
   reserved for UI affordances, never for a scientific result.
   ============================================================ */

:root {
  color-scheme: light;

  /* v12 palette — one source of truth for every site colour.
     A deliberately quiet three-part system: graphite carries the
     typography, muted cobalt is the only brand colour, and a muted
     eucalyptus green is kept for consistency / improvement. Amber is
     reserved for the IGR component, red for Standard-SFT failure
     annotations; every remaining surface stays neutral. */
  --c-blue:       #3568D4;
  --c-blue-deep:  #244FA7;
  --c-blue-hover: #2D5FC7;
  --c-blue-soft:  #EEF3FC;
  --c-green:      #3F806A;
  --c-green-soft: #EDF5F1;
  --c-amber:      #C98A1B;
  --c-amber-soft: #FFF6DF;
  --c-teal:       #4A7C93;
  --c-teal-soft:  #EDF4F7;
  --c-bg:         #F6F7F9;
  --c-bg-alt:     #FBFCFD;
  --c-bg-cool:    #F8FAFC;
  --c-bg-fx:      #F9FAFC;
  --c-card:       #FFFFFF;
  --c-text:       #111827;
  --c-muted:      #697386;
  --c-border:     #E3E7ED;
  --c-shadow:     0 8px 24px rgba(20, 32, 50, .07);
  --c-shadow-lg:  0 10px 28px rgba(20, 32, 50, .07);

  --bg:            var(--c-bg);      /* off-white canvas */
  --surface:       #F9FAFC;          /* inset panels inside white bands */
  --on-bg:         var(--c-card);    /* pure white cards */
  --border:        var(--c-border);
  --border-strong: rgba(17, 24, 39, 0.16);
  --text:          var(--c-text);
  --text-muted:    var(--c-muted);

  --primary:       var(--c-blue);
  --primary-hover: var(--c-blue-hover);
  --primary-bg:    var(--c-blue-soft);
  --good:          var(--c-green);

  /* Failure modes — validated 4-slot categorical (light mode).
     Hue pairs always ship with their text labels, never color alone. */
  --l1: #3577c9;  --l1-bg: #eaf2fb;
  --l2: #2f9e6e;  --l2-bg: #e9f5ef;
  --l3: #e08a1e;  --l3-bg: #fcf2e5;
  --l4: #b03030;  --l4-bg: #fbebea;

  /* Compared arms — fixed colour roles across the page:
     red = Standard SFT (failure), green = EVEWorld (method /
     consistency), amber = IGR only (single-component ablation),
     gray-blue = pretrained baseline.
     Blue stays the UI/brand accent and never encodes a result. */
  --arm-eve:  var(--l2);
  --arm-sft:  var(--l4);
  --arm-igt:  var(--l3);
  --arm-pre:  #5b7c99;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.05);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: 180ms;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .88em; }

.lp-inner { max-width: 1060px; margin: 0 auto; padding: 0 26px; }
.lp-inner.wide { max-width: 1280px; }
.landing { display: block; }

/* ---------- scroll progress ---------- */

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2.5px;
  z-index: 90; pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 0;
  background: var(--c-blue);
  transition: width 80ms linear;
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(250, 250, 249, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 26px;
  height: 56px; display: flex; align-items: center; gap: 20px;
}
.brand {
  font-size: 15.5px; font-weight: 400; color: var(--text);
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
}
.brand b { font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-dot {
  width: 11px; height: 11px; border-radius: 3.5px;
  background: var(--c-blue); flex: none;
}
.header-nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a {
  font-size: 13.5px; color: var(--text-muted); padding: 6px 12px;
  border-radius: 999px; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.header-nav a:hover { color: var(--text); background: rgba(0,0,0,.05); text-decoration: none; }
.header-nav a.active { color: var(--primary); background: var(--primary-bg); font-weight: 600; }
.header-end { display: flex; align-items: center; gap: 10px; }
.hbtn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--text);
  border: 1px solid var(--border); background: var(--on-bg);
  padding: 6px 13px; border-radius: 999px;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.hbtn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.hbtn-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); background: rgba(0,0,0,.05);
  padding: 2px 7px; border-radius: 999px;
}

/* ---------- hero ---------- */

.hero-band {
  position: relative; overflow: hidden;
  padding: 88px 0 64px;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - 56px);
}

.hero-reel {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: 14px; padding-block: 14px;
}
.reel-row {
  display: flex; align-items: center; gap: 14px;
  width: max-content; will-change: transform;
  animation: marquee var(--dur, 90s) linear infinite;
}
.reel-row[data-dir="right"] { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

.reel-tile {
  position: relative; flex: none;
  width: 168px; height: 168px;
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, var(--surface), var(--on-bg));
  border: 1.5px solid rgba(127, 127, 127, .22);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .10);
}
.reel-tile.lv { box-shadow: 0 6px 16px color-mix(in srgb, var(--tone, var(--primary)) 32%, rgba(0,0,0,.08)); }
.reel-tile video { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; display: block; }

.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(46% 58% at 50% 44%, rgba(250,250,249,.86), rgba(250,250,249,.30) 62%, transparent 78%),
    linear-gradient(180deg, var(--bg) 0%, transparent 12%, transparent 88%, var(--bg) 100%);
}

.hero-copy { position: relative; z-index: 2; text-align: center; }

.hero-badges { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.vbadge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--primary); background: var(--primary-bg);
  padding: 5px 13px; border-radius: 999px;
}
.vbadge.subtle { color: var(--text-muted); background: rgba(0,0,0,.05); }
.vbadge svg { opacity: .9; }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

.hero-title {
  font-size: clamp(46px, 7.2vw, 78px); line-height: 1.04;
  font-weight: 700; letter-spacing: -.025em;
  margin: 0 0 14px;
}
.hero-title .hl { color: var(--primary); }
.hero-tag {
  font-size: clamp(16px, 2.2vw, 21px); font-weight: 300;
  color: var(--text-muted); letter-spacing: .002em;
  max-width: 640px; margin: 0 auto 30px;
}
.hero-tag b { font-weight: 600; color: var(--text); }

.hero-authors { margin: 0 0 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-author-names { font-size: 15.5px; color: var(--text-muted); font-weight: 400; }
.hero-affil { font-size: 13.5px; color: var(--text-muted); opacity: .8; }
.hero-venue-row { display: flex; gap: 8px; margin-top: 6px; }

.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 11px; margin-bottom: 40px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--on-bg); color: var(--text);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--primary-bg); }
.btn-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); background: rgba(0,0,0,.06);
  padding: 2px 7px; border-radius: 999px;
}
.btn.primary .btn-tag { color: rgba(255,255,255,.9); background: rgba(255,255,255,.18); }

.hero-metrics {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  max-width: 860px; margin: 0 auto;
}
.hero-metrics.tight { grid-template-columns: repeat(5, 1fr); max-width: 860px; margin: 26px auto 10px; }
.hm {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius);
  padding: 14px 10px 12px; text-align: center;
}
.hm b { display: block; font-size: clamp(19px, 2.2vw, 25px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.hm span { display: block; font-size: 11.5px; color: var(--text-muted); line-height: 1.4; margin-top: 5px; }

.hero-caret {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 2; color: var(--text-muted);
  animation: caret 2.4s ease-in-out infinite;
}
@keyframes caret { 0%, 100% { transform: translate(-50%, 0); opacity: .55; } 50% { transform: translate(-50%, 7px); opacity: 1; } }

/* ---------- bands & eyebrows ---------- */

.band { padding: 84px 0 76px; background: var(--on-bg); }
.band.alt { background: var(--surface); }

.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.eyebrow .e-no {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--primary); background: var(--primary-bg);
  padding: 3px 9px; border-radius: 999px;
}
.eyebrow .e-label {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow .e-rule { flex: 1; height: 1px; background: var(--border); max-width: 140px; }

.band-title {
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1.22;
  letter-spacing: -.018em; font-weight: 700; margin: 0 0 12px; max-width: 880px;
}
.band-lede { color: var(--text-muted); font-size: 15.5px; max-width: 820px; margin: 0 0 30px; }
.band-lede b { color: var(--text); }

/* ---------- abstract & figures ---------- */

.abstract-card {
  background: var(--on-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 32px; box-shadow: var(--shadow); margin-bottom: 34px;
}
.band.alt .abstract-card { background: var(--bg); }
.abstract-card p { font-size: 15px; line-height: 1.78; }

.figcard {
  background: var(--on-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 18px 14px; box-shadow: var(--shadow); margin: 26px 0;
}
.band.alt .figcard { background: var(--bg); }
.figcard.wide { margin: 0; }
.figcard img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--surface); }
.figcard figcaption {
  font-size: 13px; color: var(--text-muted); line-height: 1.6; padding: 12px 6px 2px;
}
.figcard figcaption b { color: var(--text); }
.figcard.scrollable { max-height: 640px; overflow-y: auto; }
.figcard.scrollable .sticky-cap {
  position: sticky; bottom: 0;
  background: linear-gradient(transparent, var(--on-bg) 45%);
}

/* ---------- level widget ---------- */

.lvl-widget { margin-top: 6px; }

.lvl-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.lvl-tab {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 15px 16px 13px; text-align: left;
  border-radius: var(--radius-lg); border: 1.5px solid var(--border);
  background: var(--on-bg); color: var(--text-muted); cursor: pointer;
  font-family: inherit;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.lvl-tab:hover { transform: translateY(-2px); border-color: var(--lvl-c); }
.lvl-tab:focus-visible { outline: 2px solid var(--lvl-c); outline-offset: 2px; }
.lvl-tab.is-active {
  border-color: var(--lvl-c);
  box-shadow: 0 0 0 1px var(--lvl-c) inset, var(--shadow);
}
.lvl-tab-id { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--lvl-c); line-height: 1; }
.lvl-tab-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.lvl-tab-dist { display: flex; gap: 3px; width: 100%; margin-top: 2px; }
.lvl-tab-dist i { flex: 1; height: 4px; border-radius: 2px; background: var(--border); transition: background var(--dur-fast) var(--ease); }
.lvl-tab-dist i.is-filled { background: var(--lvl-c); }

.lvl-stage {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch;
  background: var(--on-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.band.alt .lvl-stage { background: var(--bg); }

.lvl-stage-media {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius);
  overflow: hidden; background: #000; cursor: pointer;
}
.lvl-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.lvl-video[hidden] { display: none; }

.play-badge {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; pointer-events: none;
  transition: opacity .2s, background .2s;
}
.video-box:hover .play-badge, .lvl-stage-media:hover .play-badge, .suite-media:hover .play-badge { background: rgba(0,0,0,.8); }
.playing .play-badge { opacity: 0; }
.speed-badge {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  color: #fff; background: rgba(0, 0, 0, .5);
  padding: 4px 10px; border-radius: 999px; pointer-events: none;
}

.lvl-stage-info { display: flex; flex-direction: column; padding: 6px 4px; }
.lvl-stage-badge {
  align-self: flex-start;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: var(--lvl-c);
  padding: 5px 12px; border-radius: 999px;
  transition: background var(--dur-fast) var(--ease);
}
.lvl-stage-name { font-size: 23px; font-weight: 700; letter-spacing: -.015em; margin: 14px 0 8px; }
.lvl-stage-blurb { font-size: 14.5px; line-height: 1.68; color: var(--text-muted); }
.lvl-capability { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cap-chip {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 11px;
}
.lvl-stage-stat { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.lvl-stage-stat-v {
  display: block; font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1;
  color: var(--lvl-c); transition: color var(--dur-fast) var(--ease);
}
.lvl-stage-stat-l { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 7px; line-height: 1.5; max-width: 38ch; }

/* failure definition callout */
.defn {
  margin-top: 30px; background: var(--on-bg); border: 1px solid var(--border);
  border-left: 3px solid var(--primary); border-radius: var(--radius);
  padding: 22px 28px;
}
.band.alt .defn { background: var(--bg); }
.defn h3 { margin: 0 0 8px; font-size: 16.5px; }
.defn p { color: var(--text-muted); font-size: 14.5px; }
.formula {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 15px; margin: 12px 0 0;
  color: var(--text); overflow-x: auto; white-space: nowrap;
}
.formula i { color: var(--text-muted); font-style: normal; }

/* ---------- pipeline ---------- */

.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stage {
  position: relative;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 26px;
}
.band .stage { background: var(--surface); }
.stage-no {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 9px;
}
.stage h3 { margin: 0 0 8px; font-size: 17.5px; letter-spacing: -.01em; }
.stage p { font-size: 13.8px; color: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: var(--on-bg); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.stage-arrow {
  position: absolute; top: 28px; right: -15px; z-index: 2;
  color: var(--text-muted); font-size: 17px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.band .stage-arrow { background: var(--on-bg); }

/* ---------- dataset: flip suite cards ---------- */

.suite-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0 8px; }
.suite-card { perspective: 1400px; cursor: pointer; }
.flip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s var(--ease);
}
.suite-card:hover .flip-inner, .suite-card:focus-visible .flip-inner, .suite-card.is-flipped .flip-inner {
  transform: rotateY(180deg);
}
.flip-face {
  background: var(--on-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.flip-face.front { position: relative; display: flex; flex-direction: column; }
.suite-media { position: relative; aspect-ratio: 1 / 1; background: #000; cursor: pointer; }
.suite-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.suite-label {
  padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 2px;
  border-top: 1px solid var(--border);
}
.suite-label b { font-size: 14.5px; letter-spacing: -.01em; }
.suite-label span { font-size: 12px; color: var(--text-muted); }
.flip-face.back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.back-title { font-size: 15px; letter-spacing: -.01em; color: var(--primary); }
.flip-face.back p { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }
.tasklist { list-style: none; margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }
.tasklist li {
  font-size: 12px; color: var(--text); line-height: 1.45;
  padding-left: 14px; position: relative;
}
.tasklist li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 6px; height: 6px; border-radius: 2px; background: var(--primary);
}
.suite-hint { font-size: 12.5px; color: var(--text-muted); text-align: center; margin: 6px 0 26px; opacity: .85; }

/* ---------- demo explorer ---------- */

.explorer-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.filter-pill {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: var(--on-bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 15px; cursor: pointer; user-select: none;
  transition: all var(--dur-fast) var(--ease);
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.demo-card {
  background: var(--on-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.demo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.demo-card .video-box {
  position: relative; background: #000; aspect-ratio: 1 / 1; cursor: pointer; overflow: hidden;
}
.demo-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-body { padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 6px; }
.demo-task { font-size: 13px; line-height: 1.45; font-weight: 550; }
.demo-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-muted); }
.suite-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  color: var(--text-muted); background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 7px; white-space: nowrap;
}
.demo-card.hidden { display: none; }

/* ---------- metrics ---------- */

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metric {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.band.alt .metric { background: var(--on-bg); }
.metric .m-name { display: flex; align-items: baseline; gap: 9px; }
.metric .m-abbr { font-size: 21px; font-weight: 700; color: var(--primary); letter-spacing: -.01em; }
.metric .m-full { font-size: 12.5px; color: var(--text-muted); }
.metric .formula { margin: 13px 0; }
.metric p { font-size: 13px; color: var(--text-muted); }

/* ---------- figure deck ---------- */

.figdeck { margin: 6px 0 40px; }
.figdeck-head { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 10px; }
.figdeck-controls {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px;
}
.band .figdeck-controls { background: var(--surface); }
.figdeck-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--on-bg); color: var(--text-muted);
  font-size: 16px; line-height: 1; cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.figdeck-arrow:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.figdeck-arrow:disabled { opacity: .3; cursor: default; }
.figdeck-counter {
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  font-variant-numeric: tabular-nums; min-width: 3.6em; text-align: center;
}
.figdeck-rail { display: flex; gap: 6px; margin: 0 0 16px; }
.figdeck-dot {
  flex: 1; max-width: 48px; height: 4px; border-radius: 2px;
  background: var(--border); cursor: pointer; border: none; padding: 0;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.figdeck-dot:hover { transform: scaleY(1.4); }
.figdeck-dot.is-active { background: var(--primary); }

.figdeck-panel { display: none; }
.figdeck-panel.is-active { display: block; animation: fig-in 420ms var(--ease); }
@keyframes fig-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ig-figure {
  background: var(--on-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow);
}
.band .ig-figure { background: var(--on-bg); }
.ig-figure-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.ig-figure-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-bg);
  padding: 3px 9px; border-radius: 999px;
}
.ig-figure-title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ig-figure > img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-sm); background: var(--surface); margin-top: 8px;
}
.ig-figure-caption { margin-top: 14px; font-size: 13.5px; line-height: 1.65; color: var(--text-muted); }
.ig-figure-caption b { color: var(--text); }

/* ---------- findings ---------- */

.findings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.finding {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 26px;
}
.band .finding { background: var(--surface); }
.finding-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 10px; }
.f-no {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: var(--primary-bg); color: var(--primary);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.finding h3 { font-size: 16.5px; line-height: 1.35; letter-spacing: -.01em; }
.finding > p { color: var(--text-muted); font-size: 14px; line-height: 1.66; }
.finding .pos { color: var(--good); }
.finding .neg { color: var(--l4); }

.find-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

.table-card {
  background: var(--on-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; overflow-x: auto; margin-top: 14px;
}
.t-caption { font-size: 12.5px; color: var(--text-muted); margin: 0 0 10px; }
table.data {
  border-collapse: collapse; width: 100%; font-size: 13px;
  font-variant-numeric: tabular-nums;
}
table.data th, table.data td { padding: 7px 11px; text-align: right; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th {
  font-size: 11.5px; font-weight: 650; color: var(--text-muted);
  border-bottom: 2px solid var(--border-strong); white-space: nowrap;
}
table.data tbody tr { border-bottom: 1px solid var(--border); }
table.data tbody tr:last-child { border-bottom: none; }
table.data .group-row td {
  text-align: left; font-weight: 700; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); padding-top: 13px;
}
table.data tr.delta td { color: var(--good); font-weight: 600; }
table.data td.best { font-weight: 650; }

/* ---------- citation ---------- */

.bibtex-box {
  position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 26px;
}
.band.alt .bibtex-box { background: var(--on-bg); }
.bibtex-box pre {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.62; color: var(--text); overflow-x: auto;
}
.copy-btn {
  position: absolute; top: 14px; right: 14px;
  font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: var(--on-bg); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.copy-btn.copied { background: var(--good); border-color: var(--good); color: #fff; }

/* ---------- footer ---------- */

.lp-footer {
  border-top: 1px solid var(--border); background: var(--on-bg);
  padding: 34px 0 46px;
}
.lp-footer p { font-size: 13px; color: var(--text-muted); margin: 4px 0; }
.foot-levels { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.foot-levels span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); }
.foot-levels i { width: 9px; height: 9px; border-radius: 2.5px; display: inline-block; }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-metrics { grid-template-columns: repeat(3, 1fr); }
  .hero-metrics.tight { grid-template-columns: repeat(3, 1fr); }
  .suite-grid, .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .findings, .find-pair { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .lvl-stage { grid-template-columns: 1fr; }
  .lvl-tabs { grid-template-columns: repeat(2, 1fr); }
  .pipeline, .metrics { grid-template-columns: 1fr; }
  .stage-arrow { display: none; }
  .reel-tile { width: 118px; height: 118px; }
}
@media (max-width: 640px) {
  .lp-inner, .lp-inner.wide, .header-inner { padding: 0 18px; }
  .header-nav { display: none; }
  .hero-band { padding: 56px 0 48px; min-height: auto; }
  .hero-metrics, .hero-metrics.tight { grid-template-columns: repeat(2, 1fr); }
  .suite-grid, .demo-grid { grid-template-columns: 1fr; }
  .band { padding: 56px 0 50px; }
  .abstract-card { padding: 20px 18px; }
  .lvl-tabs { grid-template-columns: repeat(2, minmax(140px, 1fr)); overflow-x: auto; }
  .finding { padding: 18px 16px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel-row { animation: none; }
  .hero-caret, .pulse-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .figdeck-panel.is-active { animation: none; }
  .flip-inner, .demo-card, .lvl-tab, .btn { transition: none; }
}

/* ============================================================
   EVEWorld-specific additions
   Everything above is the untouched shared base; the rules
   below are the only deltas for this site.
   ============================================================ */

/* ---------- hero: arm-tinted reel tiles ---------- */

.reel-tile.arm-eve { --tone: var(--arm-eve); }
.reel-tile.arm-sft { --tone: var(--arm-sft); }

/* the base rule only tints `.lv` tiles, so re-apply the tint for arm tiles */
.reel-tile.arm-eve, .reel-tile.arm-sft {
  box-shadow: 0 6px 16px color-mix(in srgb, var(--tone) 34%, rgba(0, 0, 0, .08));
  border-color: color-mix(in srgb, var(--tone) 42%, rgba(127, 127, 127, .22));
}

/* arm corral: a 3px accent strip so the two arms stay legible while scrolling */
.reel-tile.arm-eve::after, .reel-tile.arm-sft::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--tone); z-index: 2;
}

/* the world-arena clips are 4:3, so centre-crop them rather than keeping the
   right edge the way the 3:1 gr1 strips are cropped */
.reel-tile.wa-src video { object-position: 50% 50%; }

/* ---------- failure-mode widget (three tabs) ---------- */

.lvl-tabs.three { grid-template-columns: repeat(3, 1fr); }
.lvl-tab-note {
  font-size: 11.5px; font-weight: 650; letter-spacing: .01em;
  color: var(--lvl-c); line-height: 1.3;
}

/* a still image stands in for the video: keep the whole frame, no crop */
.lvl-stage-media.still { aspect-ratio: 4 / 3; background: var(--surface); cursor: default; }
.lvl-stage-media.still img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- formulas that must wrap in a narrow column ---------- */

.formula.wrap { white-space: normal; line-height: 1.6; }

/* ---------- arm legend ---------- */

.arm-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.arm-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  background: var(--on-bg); border: 1px solid var(--border);
  padding: 5px 13px; border-radius: 999px;
}
.arm-chip i { width: 9px; height: 9px; border-radius: 2.5px; flex: none; }
.arm-chip.eve i { background: var(--arm-eve); }
.arm-chip.sft i { background: var(--arm-sft); }
.arm-chip.igt i { background: var(--arm-igt); }
.arm-chip.pre i { background: var(--arm-pre); }
.arm-chip b { color: var(--text); font-weight: 650; }

/* ---------- qualitative comparison: 2x2 per-task arm tiles ---------- */

.demo-grid.three { grid-template-columns: repeat(3, 1fr); }

.demo-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--border); border-bottom: 1px solid var(--border);
}
.demo-tiles.single { grid-template-columns: 1fr; }
/* Each source clip is a single wide frame: the frozen conditioning still on the
   left (identical across the four arms) and the generated rollout on the right,
   split at exactly 50%. Tiles show the generated half only, via a right-anchored
   cover crop -- the still is not repeated four times per card, and the files
   themselves stay unedited. 776/480 is the half-width of the 1552px sources;
   .narrow covers the 1296px sources (367-yes), whose half is 648px. */
.demo-tile {
  position: relative; background: #000; aspect-ratio: 776 / 480;
  overflow: hidden; cursor: pointer;
}
.demo-tiles.single .demo-tile { aspect-ratio: 16 / 9; }
.demo-tiles.narrow .demo-tile { aspect-ratio: 648 / 480; }
/* three-arm tasks: the internal sheet carries no IGR tile -- or one that is
   byte-identical to another arm -- so the card shows three tiles in one row */
.demo-tiles.trio { grid-template-columns: repeat(3, 1fr); }
.demo-tile video { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; display: block; }
/* reference montages are 4:3 grids of four systems: letterbox, never crop */
.demo-tiles.single.montage .demo-tile { aspect-ratio: 4 / 3; }
.demo-tiles.single.montage .demo-tile video { object-fit: contain; object-position: 50% 50%; }
.demo-tile-label {
  position: absolute; left: 6px; top: 6px; z-index: 2; pointer-events: none;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: rgba(0, 0, 0, .58);
  padding: 2px 8px; border-radius: 999px;
  transition: background var(--dur-fast) var(--ease);
}
.demo-tile.eve .demo-tile-label { background: color-mix(in srgb, var(--arm-eve) 86%, #000); }
.demo-tile.sft .demo-tile-label { background: color-mix(in srgb, var(--arm-sft) 86%, #000); }
.demo-tile.igt .demo-tile-label { background: color-mix(in srgb, var(--arm-igt) 86%, #000); }
.demo-tile.pre .demo-tile-label { background: color-mix(in srgb, var(--arm-pre) 86%, #000); }
.demo-tile.playing .demo-tile-label { background: rgba(0, 0, 0, .78); }
.demo-tile:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

/* ---------- neutral strip for externally produced baselines ---------- */

.ref-strip {
  margin-top: 26px; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted); border-radius: var(--radius);
}
.band.alt .ref-strip { background: var(--bg); }
.ref-strip h3 { font-size: 15.5px; margin: 0 0 6px; }
.ref-strip > p { font-size: 13.5px; color: var(--text-muted); max-width: 860px; }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }

/* ---------- tables inside finding cards ---------- */

.finding .table-card { margin-top: 4px; padding: 12px 14px; }
table.data.tight { font-size: 12.5px; }
table.data.tight th, table.data.tight td { padding: 5px 8px; }

/* ---------- responsive additions ---------- */

@media (max-width: 1080px) {
  .demo-grid.three, .ref-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .lvl-tabs.three { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ref-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lvl-tabs.three { grid-template-columns: 1fr; }
  .demo-grid.three { grid-template-columns: 1fr; }
}

/* =================================================================
   EVEWorld revision (v3): sections 01-09
   Appended rules only -- nothing above this line is modified.
   ================================================================= */

/* ---------- v3: not-yet-available links ---------- */

.hbtn[aria-disabled="true"],
.btn[aria-disabled="true"],
.cite-links a[aria-disabled="true"],
.foot-links a[aria-disabled="true"] { color: var(--text-muted); cursor: default; }

.btn[aria-disabled="true"]:hover,
.hbtn[aria-disabled="true"]:hover {
  transform: none; box-shadow: none; background: var(--on-bg);
  border-color: var(--border); color: var(--text-muted);
}
.btn.primary[aria-disabled="true"] {
  background: var(--primary); border-color: var(--primary); color: #fff; opacity: .72;
}
.btn.primary[aria-disabled="true"]:hover { background: var(--primary); }
.btn.ghost[aria-disabled="true"] { background: transparent; border-color: transparent; }
.cite-links a[aria-disabled="true"]:hover,
.foot-links a[aria-disabled="true"]:hover { color: var(--text-muted); text-decoration: none; }

.hbtn.ghost { background: transparent; border-color: transparent; color: var(--primary); }
.hbtn.ghost:hover { background: var(--primary-bg); border-color: transparent; }

/* ---------- v3: hero supporting copy ---------- */

.hero-value {
  max-width: 700px; margin: 0 auto 26px;
  font-size: clamp(15px, 1.7vw, 18px); line-height: 1.5; color: var(--text);
}
.hero-value span { display: block; margin-top: 7px; font-size: 13.5px; color: var(--text-muted); }

/* ---------- v3: inline disclosure blocks ---------- */

.acc { margin-top: 26px; }
.acc > summary {
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--primary);
  list-style: none; user-select: none;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::before { content: "\25B8  "; }
.acc[open] > summary::before { content: "\25BE  "; }
.acc-body {
  margin-top: 16px; font-size: 13.8px; line-height: 1.7; color: var(--text-muted);
}
.acc-body > p { font-size: 13.8px; }
.acc-body h3 { font-size: 15.5px; color: var(--text); letter-spacing: -.01em; }
.acc-body > * + * { margin-top: 14px; }

.acc-item { border-top: 1px solid var(--border); padding: 10px 0 2px; }
.fail-card .acc-item:first-of-type { margin-top: 14px; }
.acc-item > summary {
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text);
  list-style: none; user-select: none;
}
.acc-item > summary::-webkit-details-marker { display: none; }
.acc-item > summary::before { content: "+  "; color: var(--text-muted); }
.acc-item[open] > summary::before { content: "\2212  "; color: var(--text-muted); }
.acc-item > p { margin-top: 8px; font-size: 13.2px; color: var(--text-muted); line-height: 1.66; }

/* ---------- v3: callout note ---------- */

.callout {
  background: var(--primary-bg); border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 13px 16px; font-size: 13.5px; line-height: 1.65; color: var(--text);
}

/* ---------- v3: component / method cards ---------- */

.mcard-grid { display: grid; gap: 16px; }
.mcard-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.mcard-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mcard {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.band.alt .mcard { background: var(--on-bg); }
.mcard-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mcard h3 { font-size: 16.5px; letter-spacing: -.01em; margin-top: 10px; }
.mcard p { font-size: 13.6px; color: var(--text-muted); line-height: 1.66; margin-top: 8px; }
.mcard p.mcard-lead { font-size: 14px; color: var(--text); }
.mcard-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); background: rgba(0,0,0,.05);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.mcard-tag.eve { color: var(--good); background: var(--l2-bg); }
.mcard-tag.igt { color: #8a5209; background: var(--l3-bg); }
.mcard-tag.fail { color: var(--l4); background: var(--l4-bg); }
.mcard-tag.neutral { color: var(--text-muted); background: rgba(0,0,0,.05); }
.mcard-steps { margin-top: 10px; padding-left: 18px; font-size: 13.2px; color: var(--text-muted); line-height: 1.7; }
.mcard-steps li + li { margin-top: 4px; }
.mcard-flow {
  margin-top: 14px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.6; color: var(--text);
  background: var(--on-bg); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm); padding: 10px 13px; overflow-x: auto;
}
.band.alt .mcard-flow { background: var(--bg); }

/* ---------- v3: failure cards (section 02) ---------- */

.fail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fail-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.band.alt .fail-card { background: var(--on-bg); }
.fail-card h3 { font-size: 17.5px; letter-spacing: -.01em; margin-top: 10px; }
.fail-card > p { font-size: 13.6px; color: var(--text-muted); line-height: 1.66; margin-top: 9px; }
.fail-formula {
  margin-top: 14px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px; color: var(--text);
  background: var(--on-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 15px; overflow-x: auto;
}
.band.alt .fail-formula { background: var(--bg); }
.fail-card p.fail-cue {
  margin-top: 12px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.65; color: var(--text);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 13px;
}
.band.alt .fail-card p.fail-cue { background: var(--surface); }

/* ---------- v3: MLR timeline strip (section 03) ---------- */

.tl-strip {
  margin: 4px 0 26px; padding: 18px 20px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow-x: auto;
}
.band.alt .tl-strip { background: var(--on-bg); }
.tl-grid {
  display: grid; grid-template-columns: 96px repeat(5, minmax(72px, 1fr));
  gap: 6px; min-width: 520px; align-items: center;
}
.tl-rlabel { font-size: 11.5px; color: var(--text-muted); text-align: right; padding-right: 6px; }
.tl-head {
  font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); text-align: center;
}
.tl-node {
  font-size: 12.5px; line-height: 1.35; text-align: center; color: var(--text);
  background: var(--on-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 6px;
}
.band.alt .tl-node { background: var(--surface); }
.tl-node.warn { background: var(--l3-bg); color: #7a4a08; border-color: var(--l3); }
.tl-node.bad { background: var(--l4-bg); color: var(--l4); border-color: var(--l4); font-weight: 600; }
.tl-node.ok { background: var(--l2-bg); color: var(--good); border-color: var(--l2); }
.tl-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tl-case {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.band.alt .tl-case { background: var(--on-bg); }
.tl-case h3 { font-size: 15px; letter-spacing: -.01em; }
.tl-logic { margin-top: 9px; font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ---------- v3: chip row, larger variant ---------- */

.chips-lg { margin: 0 0 26px; gap: 7px; }
.chips-lg .chip { font-size: 12.5px; padding: 5px 13px; }

/* ---------- v3: qualitative section controls ---------- */

#qualitative .arm-legend { margin: 0 0 8px; }
.arm-note { margin: 0 0 22px; font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }
.demo-card.featured { border-color: var(--border-strong); }
.demo-obs { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12.4px; line-height: 1.58; color: var(--text-muted); }
.demo-obs b { color: var(--text); }
.toggle-btn {
  margin-left: auto; font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--text-muted); background: var(--on-bg);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px;
  cursor: pointer; user-select: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
.toggle-btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.stills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---------- v3: paper-plate gallery (section 05) ---------- */

.plate-sec { margin-top: 38px; }
.plate-sec h3 { font-size: 17.5px; letter-spacing: -.01em; margin: 0 0 6px; }
.plate-sec > p { max-width: 900px; margin: 0 0 18px; font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }
.plate-sec > p b { color: var(--text); }
.plate-sec .mono { color: var(--text); }

.plate-task {
  margin: 4px 0 16px; padding: 10px 15px; font-size: 12.8px; line-height: 1.62;
  color: var(--text-muted); background: var(--surface);
  border-left: 3px solid var(--border-strong); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.plate-task b { color: var(--text); }
.plate-task .mono { color: var(--text); }

.plate-stack { display: flex; flex-direction: column; gap: 16px; }
.plate-stack .figcard { margin: 0; padding: 14px 14px 10px; }
.plate-stack .figcard figcaption { padding: 11px 4px 2px; }

.plate-zoom {
  position: relative; display: block; cursor: zoom-in;
  border-radius: var(--radius-sm); background: var(--surface);
}
.plate-zoom::after {
  content: "\2197"; position: absolute; right: 10px; bottom: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-muted);
  background: rgba(255, 255, 255, .92); border: 1px solid var(--border-strong);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease);
}
.plate-zoom:hover::after, .plate-zoom:focus-visible::after { opacity: 1; }

@media (max-width: 720px) {
  .plate-sec { margin-top: 30px; }
  .plate-stack .figcard { padding: 10px 10px 6px; }
}

/* ---------- v3: figure lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 26px;
  background: rgba(18, 18, 20, .9);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 52px);
  border-radius: var(--radius-sm); background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 22px; line-height: 1; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .26); }
body.lb-open { overflow: hidden; }

/* ---------- v3: generalization cards (section 06) ---------- */

.gen-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gen-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 26px;
}
.band.alt .gen-card { background: var(--on-bg); }
.gen-card.wide { grid-column: 1 / -1; }
.gen-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gen-head h3 { font-size: 17.5px; letter-spacing: -.01em; }
.gen-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-bg);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.gen-card > p { margin-top: 12px; font-size: 14px; color: var(--text-muted); line-height: 1.72; }
.gen-card > p b { color: var(--text); }

.kv-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.kv {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 13px;
}
.band.alt .kv { background: var(--bg); }
.kv-k { display: block; font-size: 11px; font-weight: 650; letter-spacing: .02em; color: var(--text-muted); }
.kv-v {
  display: block; margin-top: 3px; font-size: 13px; color: var(--text);
  font-variant-numeric: tabular-nums;
}

.wa-strip {
  margin-top: 24px; padding: 16px 20px;
  background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.band.alt .wa-strip { background: var(--on-bg); }
.wa-strip-main { font-size: 14px; color: var(--text); }
.wa-strip-main b { font-weight: 700; }
.wa-strip-note { margin-top: 4px; font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }

/* ---------- v3: results KPI row (section 07) ---------- */

.kpi-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.band.alt .kpi { background: var(--on-bg); }
.kpi-label {
  font-size: 12.5px; font-weight: 650; letter-spacing: .01em; color: var(--text-muted);
}
.kpi-value {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  margin-top: 8px; font-variant-numeric: tabular-nums; color: var(--text);
}
.kpi-value b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.kpi-from { font-size: 17px; color: var(--text-muted); }
.kpi-arrow { font-size: 14px; color: var(--text-muted); }
.kpi-note { margin-top: 7px; font-size: 12.5px; color: var(--text-muted); }
.kpi-note b { color: var(--good); font-weight: 650; }
.kpi-lede { font-size: 14.5px; line-height: 1.7; color: var(--text-muted); margin-bottom: 26px; }

.fine-print { font-size: 12.5px; line-height: 1.65; color: var(--text-muted); }
.fine-print b { color: var(--text); }
.t-note { margin-top: 12px; font-size: 12.5px; line-height: 1.65; color: var(--text-muted); }
.t-note b { color: var(--text); }

/* ---------- v3: scatter figure (section 07) ---------- */

.scatter { display: block; margin: 30px 0 0; }
.scatter svg { display: block; width: 100%; height: auto; max-width: 640px; margin: 0 auto; }
.scatter-grid line { stroke: var(--border); stroke-width: 1; }
.scatter-axis line { stroke: var(--border-strong); stroke-width: 1.2; }
.scatter-tick line { stroke: var(--border-strong); stroke-width: 1; }
.scatter-tick text { font-size: 10px; fill: var(--text-muted); }
.scatter-axistitle { font-size: 11px; font-weight: 600; fill: var(--text-muted); }
.scatter-ideal line { stroke: #9aa0a6; stroke-dasharray: 5 4; stroke-width: 1.2; }
.scatter-ideal text { font-size: 11px; fill: #9aa0a6; }
.scatter-points text { font-size: 11.5px; fill: var(--text); }
.scatter-note {
  max-width: 640px; margin: 14px auto 0;
  font-size: 12.5px; line-height: 1.65; color: var(--text-muted); text-align: center;
}
.scatter figcaption {
  max-width: 760px; margin: 14px auto 0;
  font-size: 12.5px; line-height: 1.65; color: var(--text-muted); text-align: center;
}

/* ---------- v3: analysis evidence (section 08) ---------- */

.evidence-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 26px; margin-bottom: 16px;
}
.band.alt .evidence-card { background: var(--on-bg); }
.evidence-card h3 { font-size: 16.5px; letter-spacing: -.01em; line-height: 1.4; margin-bottom: 14px; }
.evidence-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.evidence-list li {
  position: relative; padding-left: 20px;
  font-size: 13.6px; line-height: 1.66; color: var(--text-muted);
}
.evidence-list li::before {
  content: "\2713"; position: absolute; left: 2px; top: 0;
  color: var(--primary); font-weight: 700;
}
.evidence-list li b { color: var(--text); }
.evidence-card .figcard { margin-bottom: 0; }

.fact-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0; }
.fact-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px;
}
.band.alt .fact-card { background: var(--on-bg); }
.fact-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 7px;
}
.fact-card p { font-size: 13.4px; line-height: 1.66; color: var(--text-muted); }
.fact-card p b { color: var(--text); }

.scope-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.scope-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.band.alt .scope-card { background: var(--bg); }
.scope-card h3 { font-size: 15.5px; letter-spacing: -.01em; }
.scope-card p { margin-top: 8px; font-size: 13.2px; line-height: 1.68; color: var(--text-muted); }

.finding p.finding-foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-muted);
}

table.data td.pos { color: var(--good); font-weight: 600; }
table.data td.neg { color: var(--l4); font-weight: 600; }

/* ---------- v3: citation links & footer ---------- */

.cite-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.lp-footer p.foot-title { font-size: 14.5px; font-weight: 650; color: var(--text); }
.lp-footer .foot-links { margin-top: 10px; }
.lp-footer .foot-links a { color: var(--text-muted); }
.lp-footer .foot-links a:hover { color: var(--primary); }

/* ---------- v3: responsive additions ---------- */

@media (max-width: 1080px) {
  .mcard-grid.cols-3, .kpi-trio, .tl-cases { grid-template-columns: repeat(2, 1fr); }
  .mcard-grid.cols-2 { grid-template-columns: 1fr; }
  .kv-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .fail-grid, .fact-pair, .tl-cases, .scope-grid, .kpi-trio { grid-template-columns: 1fr; }
  .mcard-grid.cols-3 { grid-template-columns: 1fr; }
  .kpi-value b { font-size: 26px; }
  .toggle-btn { margin-left: 0; }
}
@media (max-width: 640px) {
  .stills-grid, .kv-row { grid-template-columns: 1fr; }
  .tl-grid { grid-template-columns: 84px repeat(5, minmax(66px, 1fr)); }
  .tl-strip { padding: 14px 12px; }
  .hero-value { font-size: 14.5px; }
  .kpi { padding: 18px 18px; }
}

/* ---------- v3: reduced motion (appended) ---------- */

@media (prefers-reduced-motion: reduce) {
  .toggle-btn { transition: none; }
}

/* ---------- v5: WorldArena 2.0 leaderboard band (appended) ---------- */

.band.wa2 {
  background: linear-gradient(180deg, var(--on-bg), var(--primary-bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.wa2-grid {
  display: grid;
  grid-template-columns: 43fr 57fr;
  gap: 28px;
  align-items: start;
}
.wa2-cards {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 12px;
}
.wa2-card {
  background: var(--on-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.wa2-card b {
  display: block;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.wa2-card.main b {
  font-size: clamp(30px, 4vw, 42px);
  color: var(--primary);
}
.wa2-k {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.wa2-n {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}
.wa2-copy {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.72;
}
.wa2-copy b { color: var(--text); }
.wa2-cta { margin-top: 18px; }
.wa2-note {
  margin: 22px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
}
.wa2-figure {
  background: var(--on-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 14px 10px;
  box-shadow: var(--shadow);
}
.wa2-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.wa2-figure figcaption {
  margin-top: 9px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
}
a.hm {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .18s ease, border-color .18s ease;
}
a.hm:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

@media (max-width: 860px) {
  .wa2-grid { grid-template-columns: 1fr; }
  .wa2-cards { grid-template-columns: 1fr; }
}

/* ---------- v6: qualitative video comparison (appended) ---------- */

.band.cmp { padding: 18px 0 44px; }
.band.cmp .band-lede { margin-bottom: 22px; }
#comparison .arm-legend { margin: 0 0 34px; }

.cmp-cases { display: grid; gap: 56px; }

.cmp-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cmp-no {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
}
.cmp-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: .8;
}

.cmp-instruction {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 18px;
  max-width: 1040px;
  font-size: 18.5px;
  line-height: 1.52;
  letter-spacing: -.005em;
  color: var(--text);
}
.cmp-ipill {
  flex: none;
  position: relative;
  top: -2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 3px 9px;
  border-radius: 999px;
}

.cmp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.cmp-armslot {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 12px 12px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cmp-armslot:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cmp-armslot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--cmp-accent);
}
.cmp-armslot.sft { --cmp-accent: var(--arm-sft); }
.cmp-armslot.igt { --cmp-accent: var(--arm-igt); }
.cmp-armslot.eve { --cmp-accent: var(--arm-eve); }

.cmp-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1px 2px 10px;
  font-size: 13px;
  font-weight: 650;
  color: color-mix(in srgb, var(--cmp-accent) 68%, #000);
}
.cmp-label i {
  width: 8px;
  height: 8px;
  border-radius: 2.5px;
  flex: none;
  background: var(--cmp-accent);
}
.cmp-ours {
  margin-left: 2px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--good);
  padding: 2px 6px;
  border-radius: 999px;
}

.cmp-video {
  aspect-ratio: 4 / 3;
  background: #0b0d10;
  border-radius: 10px;
  overflow: hidden;
}
.cmp-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0d10;
}

@media (max-width: 720px) {
  .cmp-cases { gap: 40px; }
  .cmp-instruction { font-size: 16.5px; }
  .cmp-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v7 — the supervision comparison leads the page, matched arms
        are joined by arrows, and the qualitative band is rebuilt
        around progressive and failure-to-fix comparisons
   ============================================================ */

.lp-inner.vwide { max-width: min(94vw, 1600px); }

.band.cmp { padding: 56px 0 44px; }
.band.cmp .band-lede { max-width: 760px; }
#comparison .arm-legend { margin: 0 0 34px; }

/* --- matched arms joined by arrows --------------------------- */
.cmp-arrow { align-self: center; margin-top: 34px; color: var(--arm-igt); }
.cmp-arrow.arrow-eve { color: var(--arm-eve); }
.cmp-arrow svg { display: block; width: 100%; height: auto; }
/* the shaft keeps a constant 1.8px stroke as the gap widens; the head scales */
.cmp-arrow svg path[fill="none"] { vector-effect: non-scaling-stroke; }

.cmp-label { height: 33px; }
.cmp-armslot.pre { --cmp-accent: var(--arm-pre); }
.cmp-ours.gold { background: color-mix(in srgb, var(--arm-igt) 70%, #000); }

.cmp-grid { grid-template-columns: 1fr 40px 1fr 40px 1fr; gap: 14px; }

/* --- 06 qualitative analysis --------------------------------- */
.qual-block { margin-top: 52px; }
.qual-block:first-of-type { margin-top: 0; }
.qual-h { margin: 0 0 6px; font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.qual-p { max-width: 860px; margin: 0 0 26px; color: var(--text-muted); font-size: 15px; }

.prog-cases { display: grid; gap: 52px; }
.prog-grid {
  display: grid;
  grid-template-columns: 1fr 76px 1fr 76px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 26px;
}
.prog-grid .pre { grid-area: 1 / 1 / 3 / 2; align-self: center; }
.prog-grid .sft { grid-area: 1 / 3 / 2 / 4; }
.prog-grid .igt { grid-area: 2 / 3 / 3 / 4; }
.prog-grid .eve { grid-area: 2 / 5 / 3 / 6; align-self: center; }
.prog-grid > .cmp-arrow { grid-area: 2 / 4 / 3 / 5; justify-self: center; width: 48px; }
.prog-case .cmp-instruction { font-size: 17px; }

.prog-fork { grid-area: 1 / 2 / 3 / 3; position: relative; }
.fk-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fk-line path { fill: none; stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fk-line .fk-pre { stroke: var(--arm-pre); }
.fk-line .fk-igt { stroke: var(--arm-igt); }
.fk-head { position: absolute; right: 0; width: 8px; height: 10px; transform: translateY(-50%); }
.fk-head path { fill: currentColor; }
.fk-up { top: 24%; color: var(--arm-pre); }
.fk-down { top: 76%; color: var(--arm-igt); }

.ff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.ff-pair { display: grid; grid-template-columns: 1fr 36px 1fr; gap: 12px; }
.ff-case .cmp-instruction { font-size: 15.5px; margin-bottom: 14px; }

@media (max-width: 1000px) {
  .prog-grid { grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 24px; }
  .prog-grid .pre { grid-area: 1 / 1 / 2 / 2; }
  .prog-grid .sft { grid-area: 1 / 2 / 2 / 3; }
  .prog-grid .igt { grid-area: 2 / 1 / 3 / 2; }
  .prog-grid .eve { grid-area: 2 / 2 / 3 / 3; }
  .prog-grid .prog-fork,
  .prog-grid > .cmp-arrow { display: none; }
  .ff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .cmp-grid { grid-template-columns: 1fr 28px 1fr 28px 1fr; gap: 10px; }
}

@media (max-width: 720px) {
  .cmp-cases { gap: 40px; }
  .cmp-instruction { font-size: 16.5px; }
  .cmp-grid { grid-template-columns: 1fr; }
  .cmp-grid > .cmp-arrow { display: none; }
  .qual-block { margin-top: 42px; }
  .qual-h { font-size: 17.5px; }
  .prog-cases { gap: 40px; }
  .prog-case .cmp-instruction { font-size: 15.5px; }
}

@media (max-width: 520px) {
  .prog-grid { grid-template-columns: 1fr; }
  .prog-grid .pre { grid-area: 1 / 1 / 2 / 2; align-self: start; }
  .prog-grid .sft { grid-area: 2 / 1 / 3 / 2; }
  .prog-grid .igt { grid-area: 3 / 1 / 4 / 2; }
  .prog-grid .eve { grid-area: 4 / 1 / 5 / 2; align-self: start; }
  .ff-pair { grid-template-columns: 1fr; }
  .ff-pair > .cmp-arrow { display: none; }
}

/* ---------- v8: refinement pass (hero results, labelled arrows, results strip) ---------- */

/* 1. hero result strip: WorldArena dominates, MLR follows ----- */
.hero-metrics {
  grid-template-columns: 1.4fr 1fr;
  gap: 14px; max-width: min(88vw, 1180px);
  margin: 88px auto 0;
}
.hm { text-align: left; padding: 18px 20px 16px; position: relative; overflow: hidden; }
.hm::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--border-strong);
}
.hm-arena::before { background: color-mix(in srgb, var(--primary) 70%, #fff); }
.hm-mlr::before { background: color-mix(in srgb, var(--arm-eve) 72%, #fff); }
.hm b { font-size: clamp(20px, 2.1vw, 26px); }
.hm-arena b { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.03em; }
.hm .hm-k {
  font-size: 10.5px; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 8px;
}
.hm .hm-n { font-size: 12px; }

/* 2. supervision labels on the inter-arm arrows ---------------- */
.cmp-arrow { position: relative; }
.cmp-arrow[data-tag]::after {
  content: attr(data-tag);
  position: absolute; left: 50%; bottom: calc(50% + 10px); transform: translateX(-50%);
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--border);
  font-size: 10px; font-weight: 650; letter-spacing: .04em;
  color: color-mix(in srgb, var(--arm-igt) 82%, #000);
}
.cmp-arrow.arrow-eve[data-tag]::after { color: color-mix(in srgb, var(--arm-eve) 84%, #000); }

/* 3. fork edge labels (pretrained -> arms) --------------------- */
.fk-tag {
  position: absolute; left: 50%; z-index: 1;
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--border);
  font-size: 10px; font-weight: 650; letter-spacing: .04em; color: var(--text-muted);
}
.fk-tag-up { top: 24%; transform: translate(-50%, -105%); }
.fk-tag-down { top: 76%; transform: translate(-50%, 10%); color: color-mix(in srgb, var(--arm-igt) 82%, #000); }

/* 4. one-line notes under the comparison groups ---------------- */
.cmp-note { max-width: 900px; margin: 18px 0 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.6; }

/* 5. compact results strip (section 06) ------------------------ */
.res-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 4px 0 30px; }
.res-card {
  background: var(--on-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px 15px;
}
.res-k {
  display: block; font-size: 10.5px; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
}
.res-v { display: block; margin-top: 8px; font-size: clamp(19px, 2.1vw, 23px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.res-n { display: block; margin-top: 7px; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); }

/* 6. video bands use the widest editorial containers ----------- */
#comparison .lp-inner.vwide { max-width: min(94vw, 1580px); }
#qualitative .lp-inner.vwide { max-width: min(96vw, 1660px); }

/* 7. citation breathes at the end of the page ------------------ */
#citation { padding: 130px 0 160px; }

@media (max-width: 1080px) {
  .hero-metrics { grid-template-columns: 1fr 1fr; max-width: min(92vw, 940px); margin-top: 72px; }
  .hm-arena b { font-size: clamp(28px, 5vw, 40px); }
  .res-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .fk-tag { display: none; }
  .cmp-note { font-size: 12px; }
}

@media (max-width: 640px) {
  .hero-metrics { grid-template-columns: 1fr; gap: 10px; margin-top: 54px; }
  .res-strip { grid-template-columns: 1fr; }
  #citation { padding: 84px 0 104px; }
}

/* ---------- v9: results-first section order + four equal hero cards ---------- */

/* Both the reel and the copy are centred — in the band and in its content box
   respectively — so the copy's lower edge used to reach past the montage and the
   result cards overlapped it. Lift the reel and drop the copy relative to each
   other: 60px of lift (120/2) plus 43px of drop sizes the gap between the
   montage's bottom edge and the top of the cards at ~80px, and since both boxes
   stay centred that clearance holds at any viewport height. The bottom padding
   also keeps the scroll caret clear of the strip. */
@media (min-width: 641px) {
  .hero-band { padding: 124px 0 64px; }
  .hero-reel { padding-bottom: 120px; }
}

/* hero result strip: four equal cards on a fully opaque surface --------- */
.hero-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; max-width: min(92vw, 1380px);
  margin: 88px auto 0; align-items: stretch;
}
.hm {
  display: flex; flex-direction: column; height: 100%;
  background: var(--on-bg);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: var(--shadow);
}
.hero-metrics .hm b { font-size: clamp(23px, 2.5vw, 33px); }
/* rank leads the strip: card 1 carries the largest numeral, all cards stay equal */
.hero-metrics .hm-arena b { font-size: clamp(27px, 3vw, 39px); letter-spacing: -.03em; }
.hm .hm-k { margin-top: 6px; }
.hm .hm-m {
  margin-top: 11px; font-size: 13.5px; font-weight: 600;
  color: var(--text); letter-spacing: -.005em;
}
.hm .hm-x { margin-top: 5px; font-size: 11.5px; line-height: 1.45; }

/* one accent per card, on the card's top edge only --------------------- */
.hm-arena::before { background: color-mix(in srgb, var(--primary) 70%, #fff); }
.hm-mlr::before   { background: color-mix(in srgb, var(--arm-eve) 72%, #fff); }
.hm-if::before    { background: color-mix(in srgb, var(--arm-igt) 72%, #fff); }
.hm-xb::before    { background: color-mix(in srgb, var(--l1) 45%, var(--l2)); }

@media (max-width: 1080px) {
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: min(92vw, 940px); margin-top: 80px; }
}

@media (max-width: 640px) {
  .hero-metrics { grid-template-columns: 1fr; gap: 12px; margin-top: 54px; }
}

/* ---------- v11: static evidence grid + site-wide palette pass ---------- */

/* A2/A3 — the hero surface, the neutralised montage and the header surface
   used to be defined here; the v12 block at the end of this file now owns
   them. Only the rules v12 does not restate live on. */

/* A soft header shadow appears only once the page has scrolled (js toggles
   .is-scrolled). */
.site-header.is-scrolled {
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .05);
}

/* A6 — hero result strip: one accent line per card, tidier surface. */
.hm {
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.hm:hover { transform: translateY(-2px); box-shadow: var(--c-shadow-lg); }
.hm-arena::before { background: var(--c-blue); }
.hm-mlr::before   { background: var(--c-green); }
.hm-if::before    { background: var(--c-amber); }
.hm-xb::before    { background: var(--c-teal); }

/* A7 — section background rhythm: a subtle alternation so the page reads as
   layered instead of one flat sheet. Id selectors outrank `.band.alt`. */
#comparison { background: var(--c-card); }
#results { background: var(--c-bg-alt); }
#laziness { background: var(--c-card); }
#method { background: var(--c-bg-cool); }
#metric { background: var(--c-card); }
#qualitative { background: var(--c-bg-alt); }
#experiments { background: var(--c-bg-fx); }
#citation { background: var(--c-card); }

/* A8 — results cards round up to the shared 18px card radius. */
.res-card { border-radius: 18px; }

/* ---------- section 07 experiments: static 2x2 evidence grid ---------- */

.fx-wrap { max-width: min(92vw, 1420px); }
#experiments .band-lede { max-width: 900px; }

.fx-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px; margin-top: 56px;
}

.fx-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: 20px; box-shadow: var(--c-shadow-lg);
  padding: 30px;
}
.fx-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.fx-card-1::before { background: var(--c-green); }
.fx-card-2::before { background: linear-gradient(90deg, var(--c-amber) 0 50%, var(--c-green) 50% 100%); }
.fx-card-3::before { background: var(--c-teal); }
.fx-card-4::before { background: var(--c-blue); }

.fx-cat {
  font-size: 11.5px; font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
}
.fx-h {
  margin-top: 10px; font-size: clamp(19px, 2vw, 24px); line-height: 1.28;
  letter-spacing: -.02em; font-weight: 650; color: var(--text);
}
.fx-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.fx-main b {
  font-size: clamp(26px, 3vw, 34px); font-weight: 700;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--text);
}
.fx-card-2 .fx-main b { font-size: clamp(20px, 2.2vw, 26px); }
.fx-mk {
  font-size: 12px; font-weight: 650; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
}
.fx-sub { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.fx-src { margin-top: 4px; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); }

.fx-tablecard { margin-top: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fx-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.fx-table th, .fx-table td { padding: 10px 12px; text-align: left; vertical-align: baseline; }
.fx-table thead th {
  padding-bottom: 8px; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--c-border);
}
.fx-table tbody tr + tr { border-top: 1px solid var(--c-border); }
.fx-table tbody th { font-weight: 550; color: var(--text); white-space: nowrap; }
.fx-table .fx-num { text-align: right; }
.fx-row-eve { background: color-mix(in srgb, var(--c-green) 7%, transparent); }
.fx-best { font-weight: 650; color: var(--text); }
.fx-off { color: var(--text-muted); }
.fx-chip-igt { color: var(--c-amber); font-weight: 650; }
.fx-chip-eve { color: var(--c-green); font-weight: 650; }

.fx-take {
  margin-top: auto; padding-top: 18px;
  font-size: 13.5px; line-height: 1.65; color: var(--text-muted);
}

/* finding 04: paired-trial bars. The track keeps the scale honest (width =
   share of the largest gain); the value label rides the track, so short bars
   still read. */
.fx-chart { margin-top: 18px; }
.fx-chart-row {
  display: grid; grid-template-columns: 46px repeat(3, minmax(0, 1fr)) auto;
  gap: 10px; align-items: center;
}
.fx-chart-row + .fx-chart-row { margin-top: 12px; }
.fx-chart-k { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-bar {
  position: relative; display: block; height: 22px; border-radius: 6px;
  background: color-mix(in srgb, var(--c-green) 7%, transparent);
}
.fx-bar i {
  position: absolute; inset: 0 auto 0 0; width: var(--w, 0);
  border-radius: 6px;
  background: color-mix(in srgb, var(--c-green) 26%, transparent);
}
.fx-bar em {
  position: relative; display: block; padding-left: 9px;
  font-size: 11.5px; font-style: normal; font-weight: 650; line-height: 22px;
  color: color-mix(in srgb, var(--c-green) 62%, #000);
  font-variant-numeric: tabular-nums;
}
.fx-chart-m {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

.fx-summary {
  margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--c-border);
  max-width: 76ch; font-size: 14.5px; line-height: 1.7; color: var(--text-muted);
}

@media (max-width: 1080px) {
  .fx-grid { gap: 22px; }
}

@media (max-width: 980px) {
  .fx-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .fx-wrap { max-width: none; }
  .fx-card { padding: 22px; }
  .fx-chart-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fx-chart-k { grid-column: 1 / -1; }
  .fx-chart-m { grid-column: 1 / -1; text-align: right; }
}

/* ---------- v12: colour-only calm pass on the hero and the site palette ---------- */

/* 2 — hero atmosphere: a cool-neutral base with ONE barely perceptible
   cobalt wash. The green cast is gone, so the first screen reads as paper
   rather than as a coloured technology backdrop. */
.hero-band {
  background-color: var(--c-bg);
  background-image:
    radial-gradient(62% 54% at 32% 24%, rgba(53, 104, 212, .045), transparent 68%),
    linear-gradient(180deg, #FAFBFC, var(--c-bg) 62%);
}

/* 2/17 — the scrim loses both coloured layers; it now reads as
   page-coloured air, not as a haze. */
.hero-scrim {
  background:
    radial-gradient(46% 58% at 50% 44%, rgba(246, 247, 249, .86), rgba(246, 247, 249, .30) 62%, transparent 78%),
    linear-gradient(180deg, var(--c-bg) 0%, transparent 12%, transparent 88%, var(--c-bg) 100%);
}

/* 3/4 — montage tiles: one neutral hairline, one quiet shadow, no arm glow
   and no accent strip. Saturation is eased slightly so the clips support
   the title instead of competing with it. */
.reel-tile,
.reel-tile.lv,
.reel-tile.arm-eve,
.reel-tile.arm-sft {
  border: 1px solid rgba(72, 88, 110, .16);
  box-shadow: 0 6px 18px rgba(25, 35, 50, .055);
  transition: border-color 180ms var(--ease);
}
.reel-tile.arm-eve::after, .reel-tile.arm-sft::after { content: none; }
.reel-tile:hover { border-color: rgba(53, 104, 212, .30); }
.reel-tile video { filter: saturate(.88) contrast(.97) brightness(1.02); }

/* 5/6 — hero typography: editorial cobalt instead of electric blue, and
   neutral greys for every supporting line. No colour in the body copy. */
.hero-title { color: #111827; }
.hero-title .hl { color: var(--c-blue); }
.hero-tag { color: #273244; }
.hero-tag b { color: #111827; }
.hero-value { color: #28313F; }
.hero-value span { color: #737D8B; }

/* 7 — badges stay inside the blue family: a soft tint, cobalt text, no
   gradient and no hard edge. */
.vbadge { background: var(--c-blue-soft); color: var(--c-blue); }

/* 8 — navigation: translucent white, hairline rule, and a selection state
   that is a soft tint rather than a filled pill. */
.site-header { background: rgba(255, 255, 255, .94); border-bottom-color: #E7EAEF; }
.header-nav a { color: #6D7582; }
.header-nav a:hover { color: #111827; background: color-mix(in srgb, var(--c-blue) 6%, transparent); }
.header-nav a.active { color: var(--c-blue); background: var(--c-blue-soft); }
.hbtn:hover { border-color: var(--c-blue); color: var(--c-blue); }

/* 9 — exactly one strong action per hero (Code); the rest are quiet text
   actions tinted cobalt. */
.btn.primary { background: var(--c-blue); border-color: var(--c-blue); }
.btn.primary:hover { background: var(--c-blue-hover); border-color: var(--c-blue-hover); }
.btn.ghost { color: var(--c-blue); }
.btn.ghost:hover { background: var(--c-blue-soft); }

/* 10/16 — result strip: one structural accent shared by all four cards, so
   the row stops reading as a four-colour KPI dashboard; hover is a quiet
   lift with no glow. */
.hm {
  border: 1px solid var(--c-border); border-radius: 17px;
  box-shadow: 0 8px 24px rgba(20, 32, 50, .065);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease),
              border-color 180ms var(--ease);
}
.hm:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 32, 50, .08);
  border-color: rgba(53, 104, 212, .20);
}
.hm::before,
.hm-arena::before, .hm-mlr::before, .hm-if::before, .hm-xb::before {
  background: color-mix(in srgb, var(--c-blue) 32%, #fff);
}

/* 11–15 — the numerals stay graphite and the supporting ramp steps down
   through three quiet greys, so colour is left free to mean something. */
.hero-metrics .hm b, .hero-metrics .hm-arena b { color: var(--c-text); }
.hm .hm-k { color: #66717F; }
.hm .hm-m { color: #273244; }
.hm .hm-x { color: #77808D; }

/* ---------- v13: hero resource row — the original blue pill, new content ---------- */

.hero-cta { gap: 12px; margin-top: 28px; }
