/* =============================================================
   CellCompass — product site
   Design language: CytoBridge palette (teal → cobalt → navy),
   Inter + JetBrains Mono, Claude/Linear minimalist precision.
   ============================================================= */

:root {
  /* surfaces */
  --surface: 255 255 255;
  --surface-muted: 250 250 250;
  --surface-subtle: 244 244 245;

  /* lines */
  --line: 228 228 231;
  --line-strong: 212 212 218;

  /* ink */
  --ink: 17 19 28;
  --ink-muted: 82 82 91;
  --ink-soft: 96 98 110;

  /* brand */
  --accent: 30 88 224;        /* cobalt */
  --accent-strong: 22 66 190;
  --teal: 39 196 217;
  --teal-deep: 25 160 185;
  --navy: 12 32 66;
  --navy-deep: 8 18 40;
  --spark: 245 166 35;        /* orange, used sparingly */

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / .05), 0 1px 1px 0 rgb(15 23 42 / .03);
  --shadow-md: 0 4px 14px -3px rgb(15 23 42 / .08), 0 2px 5px -3px rgb(15 23 42 / .05);
  --shadow-lg: 0 18px 40px -12px rgb(15 23 42 / .16), 0 6px 12px -6px rgb(15 23 42 / .08);
  --shadow-xl: 0 40px 80px -24px rgb(8 18 40 / .35);

  --maxw: 1180px;
  --nav-h: 68px;

  --font-sans: 'Inter', 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: rgb(var(--ink));
  background: rgb(var(--surface));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: var(--font-mono); }

::selection { background: rgb(var(--accent) / .18); color: rgb(var(--ink)); }

*:focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  position: relative;
  padding: clamp(72px, 11vw, 132px) 0;
}
.section[id] { scroll-margin-top: 84px; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgb(var(--accent));
  margin-bottom: 16px;
}

.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4.2vw, 46px);
  letter-spacing: -0.03em;
}
.section-head .lede {
  margin-top: 18px;
  font-size: clamp(15.5px, 1.5vw, 18px);
  color: rgb(var(--ink-muted));
  line-height: 1.66;
}
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.lede strong { color: rgb(var(--ink)); font-weight: 600; }
.lede em { font-style: normal; color: rgb(var(--accent-strong)); font-weight: 600; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 13px 24px; font-size: 15.5px; }
.btn svg { flex: none; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, rgb(var(--accent)) 0%, rgb(var(--accent-strong)) 100%);
  box-shadow: 0 1px 0 0 rgb(255 255 255 / .15) inset, 0 8px 20px -8px rgb(30 88 224 / .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 0 rgb(255 255 255 / .18) inset, 0 14px 28px -10px rgb(30 88 224 / .7); }

.btn-ghost {
  color: rgb(var(--ink-muted));
  border-color: rgb(var(--line-strong));
  background: rgb(var(--surface));
}
.btn-ghost:hover { color: rgb(var(--ink)); border-color: rgb(var(--ink-soft) / .5); transform: translateY(-1px); }

.btn-glass {
  color: #fff;
  background: rgb(255 255 255 / .08);
  border-color: rgb(255 255 255 / .22);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgb(255 255 255 / .16); transform: translateY(-2px); }

/* ---------------- nav ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgb(255 255 255 / .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: rgb(var(--line));
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  filter: drop-shadow(0 8px 18px rgb(8 18 40 / .12));
}
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 2px 6px rgb(31 122 224 / .25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: rgb(var(--ink)); }
.brand-sub { font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgb(var(--ink-soft)); }
/* nav is transparent over the dark hero until scrolled */
.nav:not(.scrolled) .brand-text strong { color: #fff; }
.nav:not(.scrolled) .brand-sub { color: rgb(255 255 255 / .6); }
.nav:not(.scrolled) .brand-logo { filter: drop-shadow(0 10px 22px rgb(39 196 217 / .28)); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--ink-muted));
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: rgb(var(--ink)); background: rgb(var(--surface-subtle)); }
.nav:not(.scrolled) .nav-links a { color: rgb(255 255 255 / .72); }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; background: rgb(255 255 255 / .1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav:not(.scrolled) .btn-ghost { color: rgb(255 255 255 / .85); background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .2); }
.nav:not(.scrolled) .btn-ghost:hover { background: rgb(255 255 255 / .14); color: #fff; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: rgb(var(--ink)); border-radius: 2px; transition: .25s ease; }
.nav:not(.scrolled) .nav-burger span { background: #fff; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 18% 8%, #12325f 0%, transparent 55%),
    radial-gradient(120% 100% at 88% 0%, #0f2c63 0%, transparent 50%),
    linear-gradient(165deg, #0a1430 0%, #0a1224 45%, #080f20 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 55% at 50% 120%, rgb(8 15 32 / .9), transparent),
    linear-gradient(180deg, rgb(10 18 36 / .25) 0%, transparent 30%, transparent 60%, rgb(8 15 32 / .55) 100%);
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 28px 80px;
  text-align: center;
}

.hero-title {
  margin-top: 0;
  font-size: clamp(33px, 6.2vw, 70px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: #fff;
  text-wrap: balance;
}
.hero-title .grad {
  background: linear-gradient(100deg, #3ed0e6 0%, #5aa0ff 48%, #8ab4ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 24px auto 0;
  max-width: 660px;
  font-size: clamp(16px, 1.7vw, 19.5px);
  line-height: 1.62;
  color: rgb(255 255 255 / .72);
}
.hero-sub em { font-style: normal; color: #bcd4ff; font-weight: 600; }

.hero-cta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  margin: 64px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 760px;
  border-top: 1px solid rgb(255 255 255 / .1);
  padding-top: 30px;
}
.hero-stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.stat-inf { background: linear-gradient(100deg, #3ed0e6, #8ab4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-lbl { font-size: 12.5px; color: rgb(255 255 255 / .55); max-width: 150px; text-align: center; line-height: 1.35; }

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid rgb(255 255 255 / .25); border-radius: 14px; display: grid; justify-items: center; padding-top: 7px; z-index: 2; }
.hero-scroll span { width: 3px; height: 7px; border-radius: 3px; background: rgb(255 255 255 / .6); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(8px); } }

/* =============================================================
   TRUST
   ============================================================= */
.trust { background: rgb(var(--surface)); border-bottom: 1px solid rgb(var(--line)); padding: 30px 0; }
.trust-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; text-align: center; }
.trust-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(var(--ink-soft)); margin-bottom: 16px; }
.trust-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 18px; }
.trust-venue { font-size: 15px; color: rgb(var(--ink-muted)); white-space: nowrap; }
.trust-venue strong { color: rgb(var(--ink)); font-weight: 700; }
.trust-dot { width: 4px; height: 4px; border-radius: 50%; background: rgb(var(--line-strong)); }
.trust-institutions {
  width: min(100%, 760px);
  margin: 24px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgb(var(--line));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.institution-logos { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.institution-logo {
  height: 76px;
  min-width: 260px;
  display: grid;
  place-items: center;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid rgb(var(--line));
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.institution-logo img {
  width: auto;
  max-width: 290px;
  max-height: 48px;
  object-fit: contain;
}
.institution-uci img { max-height: 54px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   CONCEPT
   ============================================================= */
.concept {
  padding-bottom: clamp(48px, 6vw, 76px);
  background:
    radial-gradient(980px 460px at 50% 0%, rgb(39 196 217 / .08), transparent 64%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  overflow: hidden;
}
.claim-hero {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}
.claim-kicker {
  color: rgb(var(--accent));
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.claim-hero h2 {
  margin: 18px auto 0;
  max-width: 980px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: .98;
  letter-spacing: -.06em;
}
.claim-hero p {
  margin: 28px auto 0;
  max-width: 780px;
  color: rgb(var(--ink-muted));
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}
.claim-showcase {
  margin-top: clamp(52px, 8vw, 86px);
  border-radius: 30px;
  overflow: hidden;
  color: rgb(var(--ink));
  background:
    radial-gradient(780px 320px at 50% 0%, rgb(39 196 217 / .13), transparent 68%),
    radial-gradient(660px 340px at 82% 18%, rgb(30 88 224 / .1), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / .96) 0%, #f7fafc 100%);
  border: 1px solid rgb(var(--line));
  box-shadow: 0 42px 90px -58px rgb(8 18 40 / .38);
}
.claim-stage {
  position: relative;
  padding: clamp(24px, 4.5vw, 56px) clamp(16px, 3vw, 34px) clamp(22px, 3.8vw, 42px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.claim-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(30 88 224 / .05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(39 196 217 / .045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 72%);
}
.claim-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 320px at 50% 16%, rgb(255 255 255 / .96), transparent 74%),
    linear-gradient(90deg, rgb(247 250 252 / .84) 0%, transparent 16%, transparent 84%, rgb(247 250 252 / .86) 100%),
    linear-gradient(180deg, rgb(255 255 255 / .8) 0%, transparent 18%, transparent 82%, rgb(247 250 252 / .9) 100%);
  pointer-events: none;
}
.claim-figure {
  position: relative;
  z-index: 2;
  width: min(100%, 1080px);
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgb(var(--line));
  box-shadow:
    0 34px 86px -48px rgb(8 18 40 / .46),
    0 0 0 1px rgb(255 255 255 / .86),
    inset 0 0 0 1px rgb(255 255 255 / .9);
}
.claim-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgb(255 255 255 / .1), transparent 26%, transparent 74%, rgb(255 255 255 / .12)),
    linear-gradient(180deg, rgb(255 255 255 / .2), transparent 18%, transparent 78%, rgb(8 17 32 / .1));
  pointer-events: none;
}
.claim-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.05) contrast(1.02);
}
.claim-stage-caption {
  position: relative;
  z-index: 3;
  width: min(100%, 1080px);
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
}
.claim-stage-caption span {
  color: rgb(var(--accent));
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.claim-stage-caption strong {
  max-width: 450px;
  color: rgb(var(--ink));
  text-align: right;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.claim-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgb(var(--line));
  background: rgb(255 255 255 / .62);
}
.claim-bottom article {
  min-height: 180px;
  padding: 28px 30px 30px;
  border-right: 1px solid rgb(var(--line));
}
.claim-bottom article:last-child { border-right: 0; }
.claim-bottom span {
  display: block;
  color: rgb(var(--accent));
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}
.claim-bottom h3 {
  margin-top: 16px;
  color: rgb(var(--ink));
  font-size: clamp(21px, 2.2vw, 28px);
  letter-spacing: -.04em;
}
.claim-bottom p {
  margin-top: 10px;
  color: rgb(var(--ink-muted));
  font-size: 14.5px;
  line-height: 1.62;
}

/* =============================================================
   MEASUREMENT MAP
   ============================================================= */
.measurement-map {
  padding-top: clamp(58px, 7vw, 88px);
  background:
    radial-gradient(780px 360px at 8% 0%, rgb(39 196 217 / .08), transparent 65%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.evolution-head {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(340px, .72fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: end;
}
.evolution-head p {
  grid-column: 1 / -1;
  color: rgb(var(--accent));
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.evolution-head h2 {
  max-width: 840px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.evolution-head div {
  color: rgb(var(--ink-muted));
  font-size: 17px;
  line-height: 1.65;
}
.evolution-system {
  margin-top: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(28px, 4.5vw, 58px);
  align-items: stretch;
}
.evolution-rows {
  border-top: 1px solid rgb(var(--line-strong));
}
.evolution-row {
  display: grid;
  grid-template-columns: 54px minmax(190px, .62fr) minmax(260px, 1fr) minmax(120px, auto);
  gap: 22px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid rgb(var(--line));
}
.evolution-index {
  color: rgb(var(--accent));
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}
.evolution-row small {
  display: block;
  color: rgb(var(--ink-soft));
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.evolution-row h3 {
  margin-top: 8px;
  font-size: clamp(23px, 2.7vw, 34px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.evolution-row p {
  color: rgb(var(--ink-muted));
  font-size: 15px;
  line-height: 1.6;
}
.evolution-row strong {
  justify-self: end;
  color: rgb(var(--accent-strong));
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.evolution-agent {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 32px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(420px 260px at 24% 16%, rgb(39 196 217 / .22), transparent 62%),
    radial-gradient(320px 240px at 100% 20%, rgb(90 160 255 / .18), transparent 66%),
    linear-gradient(180deg, #0a1326 0%, #081120 100%);
  box-shadow: 0 30px 70px -36px rgb(8 18 40 / .7);
}
.evolution-agent::after {
  content: "";
  position: absolute;
  inset: auto -70px -92px auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .16);
  box-shadow: inset 0 0 0 30px rgb(255 255 255 / .025);
}
.evolution-agent span {
  color: #3ed0e6;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.evolution-agent h3 {
  margin-top: 18px;
  max-width: 280px;
  color: #fff;
  font-size: clamp(31px, 3.2vw, 42px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.evolution-agent p {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  color: rgb(255 255 255 / .66);
  font-size: 15px;
  line-height: 1.65;
}
/* =============================================================
   CAPABILITIES
   ============================================================= */
.capabilities {
  background:
    radial-gradient(840px 360px at 50% 0%, rgb(39 196 217 / .1), transparent 68%),
    linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}
.capabilities .section-head,
.science .section-head {
  max-width: 940px;
}
.capabilities .section-head h2,
.science .section-head h2 {
  font-size: clamp(44px, 6.5vw, 78px);
  line-height: 1.01;
  letter-spacing: -.06em;
}
.capabilities .section-head .lede,
.science .section-head .lede {
  max-width: 790px;
  margin-left: auto;
  margin-right: auto;
}
.cap-grid {
  margin-top: clamp(46px, 6vw, 70px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgb(var(--line));
  border-radius: 30px;
  background:
    radial-gradient(720px 260px at 24% 0%, rgb(39 196 217 / .08), transparent 64%),
    linear-gradient(180deg, rgb(255 255 255 / .88), rgb(248 250 252 / .96));
  box-shadow: 0 42px 90px -58px rgb(8 18 40 / .42);
}
.cap-card {
  min-height: 238px;
  background: transparent;
  border: 0;
  border-right: 1px solid rgb(var(--line));
  border-bottom: 1px solid rgb(var(--line));
  border-radius: 0;
  padding: clamp(26px, 3.2vw, 40px);
  transition: background .25s ease, transform .25s cubic-bezier(.16,1,.3,1);
}
.cap-card:nth-child(3n) { border-right: 0; }
.cap-card:nth-last-child(-n + 3) { border-bottom: 0; }
.cap-card:hover {
  transform: translateY(-2px);
  background: rgb(255 255 255 / .68);
}
.cap-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: #fff;
  box-shadow: 0 12px 28px -16px rgb(8 18 40 / .52);
}
.cap-icon svg { width: 23px; height: 23px; }
.i-design { background: linear-gradient(135deg, #1f7ae0, #16429e); }
.i-theory { background: linear-gradient(135deg, #27c4d9, #19a0b9); }
.i-flow   { background: linear-gradient(135deg, #4f8eea, #1e58e0); }
.i-bench  { background: linear-gradient(135deg, #2bb7d6, #2f7fe0); }
.i-repro  { background: linear-gradient(135deg, #1e58e0, #16429e); }
.i-safe   { background: linear-gradient(135deg, #19a0b9, #1f7ae0); }
.cap-card h3 {
  max-width: 300px;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: -.045em;
}
.cap-card p { color: rgb(var(--ink-muted)); font-size: 15px; line-height: 1.62; }
.cap-card strong { color: rgb(var(--ink)); font-weight: 600; }

/* =============================================================
   SCIENCE
   ============================================================= */
.science {
  background:
    radial-gradient(900px 360px at 12% 4%, rgb(30 88 224 / .08), transparent 66%),
    linear-gradient(180deg, #f7fafc 0%, #fff 100%);
}
.science-layout {
  margin-top: clamp(46px, 6vw, 70px);
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid rgb(var(--line));
  border-radius: 30px;
  background:
    radial-gradient(640px 280px at 84% 6%, rgb(39 196 217 / .1), transparent 68%),
    linear-gradient(180deg, rgb(255 255 255 / .9), rgb(248 250 252 / .92));
  box-shadow: 0 42px 90px -60px rgb(8 18 40 / .42);
}
.forces {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgb(var(--line));
  border-radius: 22px;
  background: rgb(255 255 255 / .72);
}
.force {
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(var(--line));
  border-radius: 0;
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.force:last-child { border-bottom: 0; }
.force::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #27c4d9, #1e58e0); opacity: 0; transition: opacity .2s ease;
}
.force:hover { transform: translateX(2px); background: rgb(255 255 255 / .6); }
.force.is-active {
  background:
    radial-gradient(260px 140px at 100% 0%, rgb(39 196 217 / .14), transparent 68%),
    linear-gradient(180deg, rgb(30 88 224 / .06), rgb(39 196 217 / .045));
  box-shadow: inset 0 0 0 1px rgb(var(--accent) / .18);
}
.force.is-active::before { opacity: 1; }
.force-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: rgb(var(--teal-deep)); }
.force.is-active .force-tag { color: rgb(var(--accent)); }
.force-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: rgb(var(--ink)); }
.force-desc { font-size: 13.5px; color: rgb(var(--ink-soft)); line-height: 1.5; }

.science-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.eq-card {
  flex: 1;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 24px;
  background:
    radial-gradient(560px 260px at 88% 0%, rgb(39 196 217 / .2), transparent 65%),
    radial-gradient(380px 260px at 0% 100%, rgb(30 88 224 / .2), transparent 70%),
    linear-gradient(180deg, #081120 0%, #0b1c3c 100%);
  padding: clamp(26px, 3vw, 38px);
  color: #fff;
  box-shadow: 0 34px 70px -44px rgb(8 18 40 / .86);
  overflow: hidden;
}
.eq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.eq-chip { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: #bfe9f1; background: rgb(39 196 217 / .12); border: 1px solid rgb(39 196 217 / .25); padding: 5px 12px; border-radius: 999px; }
.eq-meta { font-size: 12px; color: rgb(255 255 255 / .5); }
.eq-body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-size: clamp(20px, 2.6vw, 30px); font-weight: 500; letter-spacing: -0.01em; }
.eq-term { font-family: 'Cambria Math', 'Times New Roman', serif; font-style: italic; }
.eq-term sub { font-size: 0.6em; font-style: normal; }
.eq-term b { font-style: normal; font-weight: 700; }
.eq-op { color: rgb(255 255 255 / .5); font-style: normal; }
.eq-v { color: #8ab4ff; transition: color .3s, opacity .3s; }
.eq-g { color: #f5b94e; transition: color .3s, opacity .3s; }
.eq-s { color: #3ed0e6; transition: color .3s, opacity .3s; }
.eq-term.dim { opacity: .22; }
.eq-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .1); }
.lg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgb(255 255 255 / .62); transition: opacity .3s; }
.lg b { color: #fff; font-weight: 600; }
.lg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.lg-v i { background: #8ab4ff; } .lg-g i { background: #f5b94e; } .lg-s i { background: #3ed0e6; }
.lg.dim { opacity: .25; }
.eq-note { margin-top: 20px; font-size: 13.5px; line-height: 1.6; color: rgb(255 255 255 / .68); }
.eq-note code { background: rgb(255 255 255 / .1); padding: 1px 7px; border-radius: 6px; font-size: 0.92em; color: #cfe0ff; }

.model-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid rgb(var(--line)); border-radius: 18px; padding: 15px 18px; background: rgb(255 255 255 / .74); }
.model-strip-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgb(var(--ink-soft)); }
.model-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mp { font-size: 13px; font-weight: 500; font-family: var(--font-mono); padding: 5px 12px; border-radius: 999px; border: 1px solid rgb(var(--line-strong)); color: rgb(var(--ink-soft)); background: rgb(var(--surface)); transition: all .25s ease; }
.mp.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, #19a0b9, #1e58e0); box-shadow: 0 4px 12px -4px rgb(30 88 224 / .5); }

.science-figure {
  margin-top: clamp(28px, 4.5vw, 52px);
  border: 1px solid rgb(var(--line));
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(700px 260px at 50% 0%, rgb(39 196 217 / .08), transparent 68%),
    rgb(255 255 255 / .88);
  box-shadow: 0 34px 80px -58px rgb(8 18 40 / .36);
}
.science-figure img { width: 100%; }
.figure-cap { padding: 16px 24px; font-size: 13.5px; color: rgb(var(--ink-soft)); text-align: center; border-top: 1px solid rgb(var(--line)); background: rgb(255 255 255 / .78); }

/* =============================================================
   BENCHMARKS
   ============================================================= */
.benchmarks {
  background:
    radial-gradient(860px 360px at 92% 0%, rgb(30 88 224 / .1), transparent 66%),
    radial-gradient(640px 320px at 10% 12%, rgb(39 196 217 / .08), transparent 68%),
    linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}
.benchmark-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid rgb(var(--line));
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .92), rgb(248 250 252 / .96));
  box-shadow: 0 42px 90px -58px rgb(8 18 40 / .42);
}
.benchmark-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(26px, 3.5vw, 44px);
}
.benchmark-copy h2 {
  margin-top: 4px;
  max-width: 930px;
  font-size: clamp(44px, 6.5vw, 78px);
  line-height: 1.01;
  letter-spacing: -.06em;
}
.benchmark-copy .lede {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.benchmark-stats {
  margin-top: clamp(28px, 4vw, 42px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgb(var(--line));
  border-radius: 22px;
  background: rgb(255 255 255 / .72);
}
.benchmark-stats div {
  display: block;
  padding: 22px 18px;
  border: 0;
  border-right: 1px solid rgb(var(--line));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.benchmark-stats div:last-child { border-right: 0; }
.benchmark-stats strong {
  display: block;
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1;
  letter-spacing: -.04em;
  color: rgb(var(--accent));
  font-variant-numeric: tabular-nums;
}
.benchmark-stats span {
  display: block;
  margin-top: 10px;
  color: rgb(var(--ink-muted));
  font-size: 13.2px;
  line-height: 1.45;
  font-weight: 600;
}
.benchmark-figure {
  margin: 0;
  border: 1px solid rgb(var(--line));
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 76px -54px rgb(8 18 40 / .52);
  overflow: hidden;
}
.benchmark-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #fff;
}
.benchmark-figure figcaption {
  padding: 16px 20px;
  border-top: 1px solid rgb(var(--line));
  color: rgb(var(--ink-soft));
  font-size: 13px;
  line-height: 1.55;
  background: rgb(var(--surface));
}

/* =============================================================
   ALGORITHM ENGINE (dark spotlight)
   ============================================================= */
.engine {
  position: relative;
  background: linear-gradient(180deg, #0a1224 0%, #0b1730 55%, #0a1326 100%);
  color: #fff;
  overflow: hidden;
}
.engine-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 40% at 20% 0%, rgb(39 196 217 / .14), transparent 60%),
    radial-gradient(50% 45% at 85% 15%, rgb(30 88 224 / .18), transparent 60%);
}
.on-dark h2 { color: #fff; }
.on-dark .eyebrow { color: #4fd1e6; }
.on-dark .lede { color: rgb(255 255 255 / .68); }
.on-dark .lede strong { color: #fff; }
.on-dark .lede em { color: #9dc0ff; }

.loop {
  position: relative;
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  z-index: 2;
}
.loop-step {
  position: relative;
  background: linear-gradient(180deg, rgb(255 255 255 / .055), rgb(255 255 255 / .02));
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
  transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s, background .25s;
}
.loop-step:hover { transform: translateY(-4px); border-color: rgb(39 196 217 / .4); background: linear-gradient(180deg, rgb(255 255 255 / .08), rgb(255 255 255 / .03)); }
.loop-k {
  position: absolute; top: -16px; left: 24px;
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, #19a0b9, #1e58e0);
  box-shadow: 0 8px 18px -6px rgb(30 88 224 / .6);
}
.loop-step h3 { margin-top: 12px; font-size: 19px; color: #fff; }
.loop-step p { margin-top: 8px; font-size: 14px; color: rgb(255 255 255 / .62); line-height: 1.6; }
.loop-step code, .ef-item code { font-family: var(--font-mono); font-size: .88em; background: rgb(255 255 255 / .1); color: #bfe9f1; padding: 1px 6px; border-radius: 5px; }

.engine-foot { position: relative; z-index: 2; margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ef-item { font-size: 13.5px; color: rgb(255 255 255 / .6); line-height: 1.6; padding: 18px 20px; border: 1px solid rgb(255 255 255 / .08); border-radius: var(--radius); background: rgb(255 255 255 / .025); }
.ef-item strong { color: #fff; font-weight: 600; }

/* =============================================================
   WORKFLOW
   ============================================================= */
.workflow { background: rgb(var(--surface)); }
.timeline {
  position: relative;
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.tl-line { position: absolute; top: 7px; left: 5%; right: 5%; height: 2px; background: linear-gradient(90deg, #27c4d9, #1e58e0, #f5a623); opacity: .35; border-radius: 2px; }
.tl-step { position: relative; padding-top: 28px; }
.tl-dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: rgb(var(--surface));   border: 3px solid rgb(var(--accent)); box-shadow: 0 0 0 4px rgb(30 88 224 / .1); }
.tl-step:nth-child(3) .tl-dot { border-color: #19a0b9; box-shadow: 0 0 0 4px rgb(39 196 217 / .12); }
.tl-step:nth-child(5) .tl-dot { border-color: #19a0b9; box-shadow: 0 0 0 4px rgb(39 196 217 / .12); }
.tl-step:last-child .tl-dot { border-color: #f5a623; box-shadow: 0 0 0 4px rgb(245 166 35 / .14); }
.tl-step h3 { font-size: 16.5px; margin-bottom: 7px; letter-spacing: -0.01em; }
.tl-step p { font-size: 13.5px; color: rgb(var(--ink-muted)); line-height: 1.55; }
.tl-step code { font-family: var(--font-mono); font-size: .86em; background: rgb(var(--surface-subtle)); padding: 1px 5px; border-radius: 5px; color: rgb(var(--accent-strong)); }

/* =============================================================
   CLI
   ============================================================= */
.cli { background: linear-gradient(180deg, rgb(var(--surface-muted)), rgb(var(--surface))); }
.cli-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.cli-copy h2 { font-size: clamp(26px, 3.4vw, 40px); margin-top: 4px; }
.cli-feats { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cli-feats li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: rgb(var(--ink-muted)); }
.cli-feats svg { color: rgb(var(--accent)); margin-top: 2px; flex: none; }

.terminal { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); border: 1px solid rgb(8 18 40 / .4); background: #0c1730; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: #0a1326; border-bottom: 1px solid rgb(255 255 255 / .07); }
.term-dot { width: 12px; height: 12px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; } .term-dot.y { background: #febc2e; } .term-dot.g { background: #28c840; }
.term-bar-title { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: rgb(255 255 255 / .45); }
.term-tabs { margin-left: 14px; display: flex; gap: 4px; }
.term-tab { font-family: var(--font-mono); font-size: 12.5px; color: rgb(255 255 255 / .5); background: none; border: 0; padding: 5px 12px; border-radius: 7px; cursor: pointer; transition: .2s; }
.term-tab:hover { color: rgb(255 255 255 / .85); background: rgb(255 255 255 / .05); }
.term-tab.is-active { color: #fff; background: rgb(255 255 255 / .1); }
.term-body { padding: 22px 22px 24px; min-height: 268px; }
.term-pane { display: none; margin: 0; }
.term-pane.is-active { display: block; animation: termfade .35s ease; }
@keyframes termfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.term-pane code { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; color: #cdd6e8; white-space: pre-wrap; word-break: break-word; }
.c-com { color: #5d7290; font-style: italic; }
.c-pmt { color: #3ed0e6; font-weight: 600; }
.c-cmd { color: #8ab4ff; font-weight: 600; }
.c-flg { color: #c7a3ff; }
.c-str { color: #f5b94e; }
.c-ok { color: #5fd38a; }
.c-hl { color: #fff; font-weight: 600; background: rgb(30 88 224 / .35); padding: 0 5px; border-radius: 4px; }

/* =============================================================
   RUNTIME stats
   ============================================================= */
.runtime { background: rgb(var(--surface)); padding: clamp(48px, 7vw, 80px) 0; }
.rt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rt-stat { text-align: center; border: 1px solid rgb(var(--line)); border-radius: var(--radius-lg); padding: 36px 24px; background: linear-gradient(180deg, rgb(var(--surface-muted)), rgb(var(--surface))); }
.rt-num { display: block; font-size: clamp(40px, 6vw, 58px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(135deg, #19a0b9, #1e58e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rt-lbl { display: block; margin-top: 12px; font-size: 14px; color: rgb(var(--ink-muted)); }

/* =============================================================
   PAPERS
   ============================================================= */
.papers { background: linear-gradient(180deg, rgb(var(--surface)), rgb(var(--surface-muted))); }
.paper-list { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.paper { position: relative; display: flex; flex-direction: column; gap: 8px; border: 1px solid rgb(var(--line)); border-radius: var(--radius); background: rgb(var(--surface)); padding: 22px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.paper:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgb(var(--accent) / .4); }
.paper-venue { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: rgb(var(--accent)); letter-spacing: 0.02em; }
.paper-title { font-size: 15.5px; font-weight: 600; color: rgb(var(--ink)); line-height: 1.45; letter-spacing: -0.01em; }
.paper-go { position: absolute; top: 18px; right: 20px; color: rgb(var(--ink-soft)); font-size: 16px; opacity: 0; transition: .2s; }
a.paper:hover .paper-go { opacity: 1; transform: translate(2px, -2px); color: rgb(var(--accent)); }

/* =============================================================
   TEAM
   ============================================================= */
.team {
  background:
    radial-gradient(900px 420px at 50% 0%, rgb(39 196 217 / .08), transparent 66%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.team-head {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(310px, .48fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: end;
}
.team-head h2 {
  max-width: 720px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.team-head p {
  color: rgb(var(--ink-muted));
  font-size: 16.5px;
  line-height: 1.68;
}
.team-affiliations {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.team-affiliation {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 20px 28px;
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / .86);
  box-shadow: 0 28px 70px -52px rgb(8 18 40 / .36);
}
.team-affiliation img {
  width: auto;
  max-width: min(100%, 340px);
  max-height: 54px;
  object-fit: contain;
}
.team-affiliation:nth-child(2) img { max-height: 62px; }
.team-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.team-member {
  min-height: 206px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgb(255 255 255 / .94), rgb(250 252 255 / .84)),
    radial-gradient(180px 120px at 50% 0%, rgb(39 196 217 / .12), transparent 70%);
  box-shadow: var(--shadow-sm);
}
.member-photo {
  width: 78px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 24%, rgb(255 255 255 / .5), transparent 28%),
    linear-gradient(135deg, rgb(var(--teal)) 0%, rgb(var(--accent)) 62%, #8ab4ff 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45), 0 16px 34px -22px rgb(30 88 224 / .9);
}
.member-photo.has-image {
  background: rgb(var(--surface-muted));
  border: 0;
  box-shadow:
    0 0 0 1px rgb(var(--line)),
    0 16px 34px -22px rgb(8 18 40 / .55);
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.96) contrast(1.02);
}
.photo-zihan {
  position: relative;
}
.photo-zihan img {
  position: absolute;
  inset: 0;
  object-position: center 5%;
}
.member-photo span {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .02em;
}
.member-copy h3 {
  font-size: 16.5px;
  letter-spacing: -.025em;
  line-height: 1.18;
}
.member-copy p {
  margin-top: 7px;
  color: rgb(var(--ink-muted));
  font-size: 13px;
  line-height: 1.35;
}

/* =============================================================
   GET STARTED (dark CTA)
   ============================================================= */
.get-started { position: relative; background: linear-gradient(165deg, #0a1430 0%, #0a1224 55%, #080f20 100%); color: #fff; overflow: hidden; text-align: center; }
.gs-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 60% at 50% -10%, rgb(30 88 224 / .28), transparent 60%), radial-gradient(40% 50% at 80% 110%, rgb(39 196 217 / .16), transparent 60%); }
.gs-inner { position: relative; z-index: 2; max-width: 820px; }
.get-started h2 { font-size: clamp(30px, 5vw, 52px); letter-spacing: -0.035em; }
.get-started .lede { margin: 18px auto 0; color: rgb(255 255 255 / .68); font-size: 17px; }
.gs-term { margin: 40px auto 0; max-width: 680px; text-align: left; position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); border: 1px solid rgb(255 255 255 / .1); background: #0c1730; }
.gs-pre { margin: 0; padding: 22px 24px; }
.gs-pre code { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.9; color: #cdd6e8; white-space: pre-wrap; word-break: break-word; }
.gs-copy { position: absolute; top: 12px; right: 12px; font-family: var(--font-mono); font-size: 12px; color: rgb(255 255 255 / .6); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); padding: 5px 12px; border-radius: 8px; cursor: pointer; transition: .2s; }
.gs-copy:hover { color: #fff; background: rgb(255 255 255 / .16); }
.gs-copy.copied { color: #5fd38a; border-color: rgb(95 211 138 / .4); }
.gs-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: #080f20; color: rgb(255 255 255 / .6); padding: 60px 0 30px; border-top: 1px solid rgb(255 255 255 / .08); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; }
.footer-logo { height: 42px; width: auto; filter: brightness(1.08) drop-shadow(0 12px 24px rgb(39 196 217 / .16)); margin-bottom: 16px; }
.footer-tag { font-size: 14px; line-height: 1.65; max-width: 380px; }
.footer-tag strong { color: rgb(255 255 255 / .85); font-weight: 600; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(255 255 255 / .45); margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; font-size: 14px; color: rgb(255 255 255 / .68); padding: 5px 0; transition: color .18s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgb(255 255 255 / .45); }
.footer-made { font-style: italic; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-card:nth-child(3n) { border-right: 1px solid rgb(var(--line)); }
  .cap-card:nth-child(2n) { border-right: 0; }
  .cap-card:nth-last-child(-n + 3) { border-bottom: 1px solid rgb(var(--line)); }
  .cap-card:nth-last-child(-n + 2) { border-bottom: 0; }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .engine-foot { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 28px 18px; }
  .tl-line { display: none; }
  .science-layout { grid-template-columns: 1fr; }
  .forces {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .force {
    flex: none;
    border-right: 1px solid rgb(var(--line));
    border-bottom: 1px solid rgb(var(--line));
  }
  .force:nth-child(2n) { border-right: 0; }
  .force:nth-last-child(-n + 2) { border-bottom: 0; }
  .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav-links, .nav-actions .btn-primary { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgb(255 255 255 / .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgb(var(--line)); padding: 12px 20px 18px; gap: 2px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open a { color: rgb(var(--ink-muted)); padding: 11px 12px; }
  .cli-grid { grid-template-columns: 1fr; }
  .claim-bottom { grid-template-columns: 1fr; }
  .claim-bottom article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgb(var(--line));
  }
  .claim-bottom article:last-child { border-bottom: 0; }
  .team-head { grid-template-columns: 1fr; align-items: start; }
  .team-head p { max-width: 680px; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero-inner { padding-left: 20px; padding-right: 20px; }
  .hide-sm { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 8px; }
  .trust-institutions { align-items: stretch; gap: 12px; }
  .institution-logos { width: 100%; }
  .institution-logo { width: 100%; min-width: 0; }
  .cap-grid, .paper-list { grid-template-columns: 1fr; }
  .cap-card,
  .cap-card:nth-child(2n),
  .cap-card:nth-child(3n),
  .cap-card:nth-last-child(-n + 2),
  .cap-card:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid rgb(var(--line));
  }
  .cap-card:last-child { border-bottom: 0; }
  .forces {
    grid-template-columns: 1fr;
  }
  .force,
  .force:nth-child(2n),
  .force:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgb(var(--line));
  }
  .force:last-child { border-bottom: 0; }
  .loop, .rt-grid, .timeline, .engine-foot { grid-template-columns: 1fr; }
  .loop-step { padding-top: 28px; }
  .nav-inner { padding: 0 20px; }
  .brand-logo { height: 30px; }
  .brand-sub { display: none; }
  .claim-hero { text-align: left; }
  .claim-hero h2 { font-size: clamp(42px, 13vw, 58px); }
  .claim-hero p { font-size: 17px; }
  .claim-showcase { border-radius: 24px; }
  .claim-stage {
    padding: 16px 12px 18px;
  }
  .claim-figure { border-radius: 18px; }
  .claim-stage-caption {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 0 2px;
  }
  .claim-stage-caption strong {
    max-width: none;
    text-align: left;
    font-size: 20px;
  }
  .claim-bottom article { padding: 24px 22px; }
  .team-affiliations { grid-template-columns: 1fr; margin-top: 34px; gap: 10px; }
  .team-affiliation { min-height: 88px; padding: 16px 22px; }
  .team-affiliation img { max-width: min(100%, 260px); max-height: 44px; }
  .team-affiliation:nth-child(2) img { max-height: 50px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .team-member { min-height: 190px; padding: 18px 16px; gap: 16px; }
  .member-photo { width: 68px; }
  .member-copy h3 { font-size: 15.5px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* gradient defs for inline svg flow */
.sv-defs { position: absolute; width: 0; height: 0; }

/* =============================================================
   DISCOVERY LOOP (animated algorithm-design cycle)
   ============================================================= */
.dl {
  position: relative; z-index: 2;
  margin-top: 54px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.dl-stage { position: relative; width: 100%; max-width: 540px; margin: 0 auto; aspect-ratio: 1 / 1; }
.dl-svg { width: 100%; height: 100%; overflow: visible; }

.dl-ring-flow { animation: dlflow 5.5s linear infinite; }
@keyframes dlflow { to { stroke-dashoffset: -180; } }

.dl-node { fill: rgba(255,255,255,0.22); stroke: rgba(255,255,255,0.16); stroke-width: 2; transition: r .35s cubic-bezier(.16,1,.3,1), fill .35s ease; }
.dl-node.is-active { fill: url(#dlGrad); stroke: rgba(255,255,255,0.5); r: 11; }
.dl-node-label { font-family: var(--font-sans); font-size: 14px; font-weight: 600; fill: rgba(255,255,255,0.46); transition: fill .35s ease; }
.dl-node-label.is-active { fill: #fff; }

.dl-gate { opacity: .45; transition: opacity .3s ease; }
.dl-gate-bg { fill: #0b1830; stroke: rgba(255,255,255,.28); stroke-width: 2; transition: stroke .3s, fill .3s; }
.dl-gate-glyph { stroke: rgba(255,255,255,.45); transition: stroke .3s; }
.dl-gate.is-on { opacity: 1; }
.dl-gate.is-on .dl-gate-bg { fill: #0c2233; stroke: #5fd38a; }
.dl-gate.is-on .dl-gate-glyph { stroke: #5fd38a; }
.dl-gate.g-lock.is-on .dl-gate-bg { stroke: #b69bff; }
.dl-gate.g-lock.is-on .dl-gate-glyph { stroke: #c7a3ff; }

.dl-comet { fill: #8ab4ff; opacity: .9; }
.dl-comet-core { fill: #fff; }

/* center panel */
.dl-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48%; max-width: 250px; text-align: center; pointer-events: none;
}
.dl-k { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: #5fd0e6; }
.dl-tag { display: block; margin-top: 9px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: #9dc0ff; }
.dl-title { margin-top: 6px; font-size: clamp(16px, 1.9vw, 20px); color: #fff; letter-spacing: -.02em; line-height: 1.18; }
.dl-desc { margin-top: 9px; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.62); }
.dl-verdict {
  display: inline-block; margin-top: 13px; opacity: 0; transform: translateY(5px);
  transition: opacity .3s ease, transform .3s ease;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.dl-verdict.show { opacity: 1; transform: none; }
.dl-verdict.v-review { color: #7ee2a6; background: rgba(95,211,138,.12); border-color: rgba(95,211,138,.32); }
.dl-verdict.v-gate { color: #9dc0ff; background: rgba(58,134,232,.16); border-color: rgba(122,162,247,.34); }
.dl-verdict.v-lock { color: #c7a3ff; background: rgba(157,124,255,.15); border-color: rgba(157,124,255,.34); }
.dl-verdict.v-revise { color: #f5c168; background: rgba(245,176,70,.13); border-color: rgba(245,176,70,.34); }

/* legend / phase list */
.dl-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dl-li { display: flex; align-items: center; gap: 13px; padding: 11px 15px; border-radius: 13px; border: 1px solid rgba(255,255,255,.08); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.dl-li:hover { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.18); transform: translateX(2px); }
.dl-li.is-active { background: linear-gradient(180deg, rgba(58,134,232,.16), rgba(39,196,217,.06)); border-color: rgba(122,162,247,.42); }
.dl-li-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.24); flex: none; transition: .25s; }
.dl-li.is-active .dl-li-dot { background: linear-gradient(135deg, #3ed0e6, #5aa0ff); box-shadow: 0 0 0 4px rgba(90,160,255,.16); }
.dl-li-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dl-li-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5); transition: color .2s; }
.dl-li.is-active .dl-li-tag { color: #9dc0ff; }
.dl-li-name { font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.84); letter-spacing: -.01em; }

@media (max-width: 880px) {
  .dl { grid-template-columns: 1fr; gap: 28px; }
  .dl-stage { max-width: 430px; }
}

/* =============================================================
   REAL CAMPAIGN REPLAY
   ============================================================= */
.case-studies {
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% 8%, rgb(39 196 217 / .11), transparent 62%),
    radial-gradient(820px 440px at 88% 16%, rgb(109 40 217 / .09), transparent 66%),
    linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}

.case-replay {
  --case-accent: #6d28d9;
  --case-accent-2: #27c4d9;
  --case-soft: 109 40 217;
  margin-top: 46px;
  padding: 14px;
  border: 1px solid rgb(var(--line));
  border-radius: 26px;
  background: rgb(255 255 255 / .82);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(14px);
}
.case-replay[data-case="clone"] {
  --case-accent: #0f766e;
  --case-accent-2: #6d28d9;
  --case-soft: 15 118 110;
}
.case-replay[data-case="pulse"] {
  --case-accent: #1d4ed8;
  --case-accent-2: #0f766e;
  --case-soft: 29 78 216;
}

.case-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 6px;
  border-radius: 18px;
  background: rgb(var(--surface-subtle));
  border: 1px solid rgb(var(--line));
}
.case-tab {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 16px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: rgb(var(--ink-muted));
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}
.case-tab span {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: rgb(var(--ink));
  letter-spacing: -.01em;
}
.case-tab small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgb(var(--ink-soft));
}
.case-tab:hover { transform: translateY(-1px); background: rgb(255 255 255 / .7); }
.case-tab.is-active {
  background: #fff;
  border-color: rgb(var(--case-soft) / .28);
  box-shadow: 0 10px 22px -16px rgb(var(--case-soft) / .7), 0 0 0 4px rgb(var(--case-soft) / .06);
}
.case-tab.is-active span { color: var(--case-accent); }

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}
.case-workbench {
  min-width: 0;
  display: grid;
  gap: 14px;
}
.case-paper-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.case-paper-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(var(--line));
  border-radius: 20px;
  background:
    radial-gradient(380px 200px at 8% 0%, rgb(var(--case-soft) / .07), transparent 66%),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  box-shadow: var(--shadow-sm);
}
.case-paper-head {
  min-height: 76px;
  padding: 15px 17px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgb(var(--line));
}
.case-paper-head .mini-label { color: var(--case-accent); }
.case-paper-head strong {
  max-width: 260px;
  text-align: right;
  color: rgb(var(--ink));
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.case-paper-media {
  height: 310px;
  padding: 10px;
  background: #fff;
}
.case-paper-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.case-evidence-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: stretch;
}
.case-brief, .case-chart-card, .case-outcome {
  border: 1px solid rgb(var(--line));
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.case-brief {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(230px, .72fr) minmax(330px, 1fr);
  gap: 16px 22px;
  align-items: center;
  background:
    radial-gradient(480px 220px at 4% 0%, rgb(var(--case-soft) / .08), transparent 64%),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}
.case-chart-card {
  padding: 20px 20px 16px;
  background:
    radial-gradient(520px 240px at 50% 8%, rgb(var(--case-soft) / .11), transparent 62%),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}
.case-outcome {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  background:
    radial-gradient(260px 180px at 100% 0%, rgb(var(--case-soft) / .12), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  color: rgb(var(--ink));
  overflow: hidden;
  position: relative;
  border-color: rgb(var(--case-soft) / .2);
}
.case-outcome::before {
  content: "";
  position: absolute;
  inset: auto -22px -32px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--case-soft) / .11), transparent 68%);
  pointer-events: none;
}

.case-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgb(var(--case-soft) / .08);
  color: var(--case-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
}
.case-brief h3, .case-outcome h3 {
  margin-top: 12px;
  font-size: clamp(20px, 2vw, 25px);
  letter-spacing: -.035em;
}
.case-brief .case-badge,
.case-brief h3,
.case-brief p {
  grid-column: 1;
}
.case-brief p {
  margin-top: 10px;
  color: rgb(var(--ink-muted));
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 560px;
}
.case-outcome p {
  position: relative;
  color: rgb(var(--ink-muted));
  font-size: 14px;
  line-height: 1.62;
}
.mini-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(var(--ink-soft));
}
.case-outcome .mini-label { color: var(--case-accent); }

.case-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
  grid-column: 2;
  grid-row: 1 / span 3;
}
.case-stat {
  padding: 10px;
  border-radius: 14px;
  background: rgb(var(--surface-muted));
  border: 1px solid rgb(var(--line));
}
.case-stat strong {
  display: block;
  color: rgb(var(--ink));
  font-size: 19px;
  letter-spacing: -.02em;
  line-height: 1;
}
.case-stat span {
  display: block;
  margin-top: 5px;
  color: rgb(var(--ink-soft));
  font-size: 11.5px;
  font-weight: 600;
}

.case-learned {
  margin-top: 0;
  grid-column: 3;
  grid-row: 1 / span 3;
  padding-left: 18px;
  border-left: 1px solid rgb(var(--line));
}
.case-step-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  counter-reset: caseStep;
}
.case-step-list li {
  counter-increment: caseStep;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: start;
  color: rgb(var(--ink-muted));
  font-size: 12.8px;
  line-height: 1.35;
  opacity: .58;
  transition: opacity .25s ease, transform .25s ease, color .25s ease;
}
.case-step-list li::before {
  content: counter(caseStep);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(var(--surface-subtle));
  color: rgb(var(--ink-soft));
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.case-step-list li.is-active {
  color: rgb(var(--ink));
  opacity: 1;
  transform: translateX(2px);
}
.case-step-list li.is-active::before {
  background: var(--case-accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgb(var(--case-soft) / .12);
}

.case-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.case-chart-head h3 {
  margin-top: 6px;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -.035em;
}
.case-live {
  min-width: 118px;
  text-align: right;
  font-family: var(--font-mono);
}
.case-live span {
  display: block;
  color: rgb(var(--ink-soft));
  font-size: 11px;
  font-weight: 700;
}
.case-live strong {
  display: block;
  margin-top: 3px;
  color: var(--case-accent);
  font-size: 23px;
  letter-spacing: -.04em;
}

.case-chart {
  width: 100%;
  height: auto;
  margin-top: 8px;
  overflow: visible;
}
.case-gridlines line {
  stroke: rgb(148 163 184 / .22);
  stroke-width: 1;
}
.case-axis {
  fill: none;
  stroke: rgb(var(--ink) / .82);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.case-threshold {
  fill: none;
  stroke: rgb(71 85 105 / .55);
  stroke-width: 1.5;
  stroke-dasharray: 6 7;
}
.case-stage-band { fill: rgb(var(--case-soft) / .055); }
.case-stage-band.is-on { fill: rgb(var(--case-soft) / .13); }
.case-stage-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  fill: rgb(var(--ink-soft));
  letter-spacing: .01em;
}
.case-raw-path {
  fill: none;
  stroke: rgb(var(--case-soft) / .22);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.case-best-path {
  fill: none;
  stroke: url(#caseLineGrad);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.case-cursor {
  fill: #fff;
  stroke: var(--case-accent);
  stroke-width: 4;
}
.case-axis-labels text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: rgb(var(--ink-soft));
  font-weight: 600;
}
#caseXLabel { text-anchor: middle; }

.case-chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 2px 0;
  color: rgb(var(--ink-soft));
  font-size: 12.5px;
  font-weight: 600;
}
.case-chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.case-chart-legend i {
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
}
.case-chart-legend i.raw { background: rgb(var(--case-soft) / .22); }
.case-chart-legend i.best { background: linear-gradient(90deg, var(--case-accent), var(--case-accent-2)); height: 4px; }

.case-compare {
  position: relative;
  display: grid;
  gap: 10px;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: rgb(var(--ink-muted));
}
.compare-row strong {
  font-family: var(--font-mono);
  color: rgb(var(--ink));
  font-size: 13px;
}
.compare-track {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: rgb(226 232 240 / .9);
  overflow: hidden;
}
.compare-fill {
  height: 100%;
  width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--case-accent), var(--case-accent-2));
}

.case-landscape-card {
  margin-top: 0;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgb(var(--line));
  background:
    radial-gradient(640px 260px at 20% 12%, rgb(var(--case-soft) / .12), transparent 68%),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-sm);
}
.case-landscape-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, .72fr);
  gap: 28px;
  align-items: end;
}
.case-landscape-head h3 {
  margin-top: 6px;
  font-size: clamp(20px, 2.2vw, 27px);
  letter-spacing: -.035em;
}
.case-landscape-head p {
  color: rgb(var(--ink-muted));
  font-size: 14px;
  line-height: 1.58;
}
.case-landscape-stage {
  position: relative;
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas:
    "canvas canvas"
    "axis note";
  gap: 12px;
  align-items: stretch;
}
.landscape-plot {
  min-width: 0;
  display: contents;
}
#caseLandscapeCanvas {
  grid-area: canvas;
  width: 100%;
  height: 372px;
  display: block;
  border-radius: 18px;
  border: 1px solid rgb(var(--line));
  background: #f8fafc;
}
.landscape-axis-map {
  grid-area: axis;
  display: grid;
  gap: 13px;
  padding: 14px 16px 15px;
  border-radius: 16px;
  border: 1px solid rgb(var(--line));
  background:
    linear-gradient(180deg, rgb(255 255 255 / .92), rgb(248 250 252 / .92));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .8);
}
.axis-map-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--case-accent);
}
.axis-block {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.axis-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgb(var(--ink-soft));
}
.discrete-rail {
  position: relative;
  min-width: 0;
}
.rail-line {
  position: absolute;
  display: block;
  background: linear-gradient(90deg, rgb(203 213 225 / .55), rgb(var(--case-soft) / .42));
}
.discrete-rail-x {
  height: 58px;
}
.discrete-rail-x .rail-line {
  left: 4px;
  right: 4px;
  top: 13px;
  height: 2px;
}
.rail-tick {
  position: absolute;
  display: block;
}
.rail-tick i {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: rgb(148 163 184);
  box-shadow: 0 0 0 1px rgb(203 213 225 / .88);
}
.rail-tick b {
  position: absolute;
  color: rgb(var(--ink-muted));
  font-size: 10.3px;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
}
.discrete-rail-x .rail-tick {
  top: 13px;
}
.discrete-rail-x .rail-tick i {
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
}
.discrete-rail-x .rail-tick b {
  top: 12px;
  left: 0;
  width: 104px;
  text-align: center;
  transform: translateX(-50%);
}
.discrete-rail-y {
  height: 118px;
  margin: 0 0 2px;
}
.discrete-rail-y .rail-line {
  top: 5px;
  bottom: 5px;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgb(var(--case-soft) / .46), rgb(203 213 225 / .58));
}
.discrete-rail-y .rail-tick {
  left: 8px;
}
.discrete-rail-y .rail-tick i {
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
}
.discrete-rail-y .rail-tick b {
  left: 15px;
  top: 0;
  width: min(280px, 42vw);
  transform: translateY(-50%);
}
.rail-tick.is-final i {
  background: var(--case-accent);
  box-shadow: 0 0 0 4px rgb(var(--case-soft) / .12);
}
.rail-tick.is-final b {
  color: var(--case-accent);
}
.axis-mobile-list {
  display: none;
}
.axis-z-scale {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(var(--ink-muted));
  font-size: 10.8px;
  font-weight: 650;
}
.axis-gradient {
  width: min(210px, 38vw);
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2ff 0%, #cbd5e1 55%, #64748b 100%);
  border: 1px solid rgb(var(--line));
}
.landscape-note {
  grid-area: note;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgb(var(--line));
  background:
    linear-gradient(180deg, rgb(255 255 255 / .92), rgb(255 255 255 / .76));
  box-shadow: 0 14px 32px -24px rgb(var(--case-soft) / .8);
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  align-content: start;
}
.landscape-note .mini-label {
  display: block;
}
.landscape-note h4 {
  margin-top: 0;
  color: var(--case-accent);
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -.04em;
}
.landscape-note p {
  margin-top: 0;
  color: rgb(var(--ink-muted));
  font-size: 14px;
  line-height: 1.58;
}
.landscape-mini {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}
.landscape-mini span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgb(var(--surface-muted));
  border: 1px solid rgb(var(--line));
  color: rgb(var(--ink-soft));
  font-size: 12px;
  font-weight: 600;
}
.landscape-mini b {
  color: rgb(var(--ink));
  font-family: var(--font-mono);
  font-size: 11.5px;
}

@media (max-width: 1080px) {
  .case-brief {
    grid-template-columns: minmax(0, 1fr) minmax(230px, .75fr);
  }
  .case-stat-grid {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
  .case-learned {
    grid-column: 1 / -1;
    grid-row: auto;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid rgb(var(--line));
  }
  .case-step-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-paper-media { height: 280px; }
  .case-evidence-row { grid-template-columns: minmax(0, 1fr) 260px; }
  .case-landscape-head { grid-template-columns: 1fr; }
  .case-landscape-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "canvas"
      "axis"
      "note";
  }
  .landscape-note {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) minmax(250px, .8fr);
    gap: 18px;
    align-items: center;
  }
  .landscape-note .mini-label { grid-column: 1; grid-row: 1; }
  .landscape-note h4 { grid-column: 1; grid-row: 2; }
  .landscape-note h4 { margin-top: 8px; }
  .landscape-note p { grid-column: 2; grid-row: 1 / span 2; }
  .landscape-mini { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
}
@media (max-width: 720px) {
  .case-replay { padding: 10px; border-radius: 22px; }
  .case-tabs { grid-template-columns: 1fr; }
  .case-brief {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .case-brief .case-badge,
  .case-brief h3,
  .case-brief p,
  .case-stat-grid,
  .case-learned {
    grid-column: 1;
    grid-row: auto;
  }
  .case-stat-grid { grid-template-columns: 1fr; }
  .case-learned {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid rgb(var(--line));
  }
  .case-step-list { grid-template-columns: 1fr; }
  .case-paper-panels { grid-template-columns: 1fr; }
  .case-paper-head {
    min-height: auto;
    flex-direction: column;
    gap: 6px;
  }
  .case-paper-head strong {
    max-width: none;
    text-align: left;
  }
  .case-paper-media { height: clamp(230px, 58vw, 300px); }
  .case-evidence-row { grid-template-columns: 1fr; }
  .case-chart-head { flex-direction: column; align-items: stretch; }
  .case-live { text-align: left; }
  .case-landscape-card { padding: 14px; }
  #caseLandscapeCanvas { height: 315px; }
  .landscape-axis-map { padding: 13px; }
  .axis-block { grid-template-columns: 1fr; gap: 8px; }
  .discrete-rail-x { height: 26px; }
  .discrete-rail-x .rail-tick b { display: none; }
  .axis-block-x .axis-mobile-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .axis-mobile-list span {
    padding: 6px 7px;
    border-radius: 9px;
    border: 1px solid rgb(var(--line));
    background: rgb(var(--surface-muted));
    color: rgb(var(--ink-muted));
    font-size: 9.6px;
    font-weight: 750;
    line-height: 1.15;
  }
  .axis-mobile-list span.is-final {
    color: var(--case-accent);
    border-color: rgb(var(--case-soft) / .26);
    background: rgb(var(--case-soft) / .07);
  }
  .discrete-rail-y .rail-tick b {
    width: min(250px, 78vw);
    font-size: 9.6px;
  }
  .axis-z-scale {
    flex-wrap: wrap;
  }
  .landscape-note {
    display: grid;
    grid-template-columns: 1fr;
  }
  .landscape-note .mini-label,
  .landscape-note h4,
  .landscape-note p,
  .landscape-mini {
    grid-column: 1;
    grid-row: auto;
  }
  .landscape-mini { margin-top: 16px; }
}

@media (max-width: 1024px) {
  .evolution-head,
  .evolution-system {
    grid-template-columns: 1fr;
  }
  .evolution-row {
    grid-template-columns: 44px minmax(0, .7fr) minmax(240px, 1fr);
  }
  .evolution-row strong {
    grid-column: 2 / -1;
    justify-self: start;
  }
  .benchmark-grid { grid-template-columns: 1fr; }
  .benchmark-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benchmark-stats div {
    border-right: 1px solid rgb(var(--line));
    border-bottom: 1px solid rgb(var(--line));
  }
  .benchmark-stats div:nth-child(2n) { border-right: 0; }
  .benchmark-stats div:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 640px) {
  .evolution-head h2 { font-size: clamp(38px, 11vw, 52px); }
  .evolution-head div { font-size: 16px; }
  .evolution-system { margin-top: 38px; }
  .evolution-row {
    grid-template-columns: 36px 1fr;
    gap: 10px 14px;
    padding: 22px 0;
  }
  .evolution-row p,
  .evolution-row strong {
    grid-column: 2;
  }
  .evolution-row h3 { font-size: 24px; }
  .evolution-agent {
    min-height: auto;
    padding: 26px 24px;
    border-radius: 24px;
  }
  .benchmark-stats { grid-template-columns: 1fr; }
  .benchmark-stats div {
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid rgb(var(--line));
  }
  .benchmark-stats div:nth-child(2n),
  .benchmark-stats div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgb(var(--line));
  }
  .benchmark-stats div:last-child { border-bottom: 0; }
}

/* ============================ FILM ============================ */
.film {
  background: linear-gradient(180deg, #0a1224 0%, #0b1730 55%, #0a1326 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.film::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(52% 40% at 50% 0%, rgb(var(--accent) / .14), transparent 70%);
  pointer-events: none;
}
.film .section-head h2 { color: #fff; }
.film .eyebrow { color: rgb(125 165 255); }
.film .lede { color: rgb(203 213 235); }
.film-frame {
  position: relative;
  max-width: 980px;
  margin: 44px auto 0;
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .12);
  box-shadow: 0 30px 80px -20px rgb(2 8 30 / .75), 0 0 0 6px rgb(255 255 255 / .03), 0 0 64px -12px rgb(var(--accent) / .35);
}
.film-frame video { display: block; width: 100%; height: auto; background: #f2ede3; }
.film-caption {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 16px;
  background: #0a1326;
  border-top: 1px solid rgb(255 255 255 / .07);
  color: rgb(148 163 184);
  font-size: 13.5px;
}
.film-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgb(94 142 255);
  box-shadow: 0 0 10px rgb(94 142 255);
  animation: filmpulse 2.2s ease-in-out infinite;
}
@keyframes filmpulse {
  0%, 100% { opacity: .45; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ============================ EMT · MODEL REUSE ============================ */
.emt-reuse { background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%); }
.emt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.emt-copy .lede { margin-top: 18px; }
.emt-points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.emt-points li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgb(15 23 42 / .07);
  border-radius: 14px;
  box-shadow: 0 8px 24px -14px rgb(15 23 42 / .18);
}
.emt-points strong { color: rgb(var(--accent-strong)); font-size: 15.5px; }
.emt-points span { color: rgb(71 85 105); font-size: 14.5px; line-height: 1.55; }
.emt-figure {
  margin: 0;
  background: #fff;
  border: 1px solid rgb(15 23 42 / .08);
  border-radius: var(--radius-lg, 18px);
  padding: 18px;
  box-shadow: 0 24px 60px -28px rgb(15 23 42 / .28);
}
.emt-figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
.emt-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: rgb(100 116 139);
  text-align: center;
}
@media (max-width: 960px) {
  .emt-grid { grid-template-columns: 1fr; gap: 34px; }
  .emt-points li { grid-template-columns: 1fr; gap: 4px; }
}
