@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("assets/fonts/inter-var.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2"); }

/* Palette drawn from the LexiconVLA robot icon: sky blue, soft pink, navy visor, cyan eyes. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --ink: #0e1629;
  --ink-2: #2b3549;
  --muted: #566176;
  --faint: #8a93a6;
  --line: #e3e8f1;
  --line-strong: #cfd7e5;
  --blue: #3d7fe0;
  --blue-ink: #2360c4;
  --blue-soft: #eaf2fe;
  --sky: #8fc3f6;
  --pink: #ee86ab;
  --pink-ink: #c74a7a;
  --pink-soft: #fdeef4;
  --cyan: #5fe3e8;
  --success: #1e8a5a;
  --fail: #d0484b;
  --gray-mark: #b4bccb;
  --dark: #0c1322;
  --dark-2: #141d31;
  --dark-line: rgba(255,255,255,.1);
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(14,22,41,.05), 0 4px 14px rgba(14,22,41,.05);
  --shadow-md: 0 2px 6px rgba(14,22,41,.05), 0 18px 48px rgba(14,22,41,.09);
  --ease: cubic-bezier(.2,.7,.2,1);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, video { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .86em; }
::selection { background: #d6e7fd; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.narrow { max-width: 860px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 14px; }

/* ---------- progress + header ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--pink)); }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: 72px; transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s; }
.site-header.scrolled { background: rgba(255,255,255,.78); backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand b { font-weight: 800; background: linear-gradient(100deg, var(--blue), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 550; color: var(--ink-2); }
.nav-links a { position: relative; padding: 8px 13px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(14,22,41,.05); }
.nav-links a.active { color: var(--blue-ink); background: var(--blue-soft); }
.nav-links .nav-cta { margin-left: 8px; background: var(--ink); color: #fff; padding: 9px 18px; }
.nav-links .nav-cta:hover { background: var(--blue-ink); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100vh, 1040px); min-height: min(100svh, 1040px); display: flex; align-items: center; padding: 112px 0 96px; overflow: hidden; isolation: isolate; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 0%, #f2f7ff 0%, #ffffff 62%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.orb-a { width: 520px; height: 520px; left: -120px; top: 6%; background: #b9d8fb; animation: drift-a 22s var(--ease) infinite alternate; }
.orb-b { width: 460px; height: 460px; right: -100px; top: 18%; background: #fbd1e1; animation: drift-b 26s var(--ease) infinite alternate; }
.orb-c { width: 380px; height: 380px; left: 38%; bottom: -160px; background: #c9f3f5; opacity: .45; animation: drift-c 30s var(--ease) infinite alternate; }
@keyframes drift-a { to { transform: translate(120px, 80px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-110px, 60px) scale(.92); } }
@keyframes drift-c { to { transform: translate(-90px, -70px) scale(1.15); } }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(35,96,196,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(35,96,196,.06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 75%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-mascot { width: clamp(150px, 17vw, 210px); margin-bottom: 8px; animation: rise .9s var(--ease) both; }
.hero-mascot img { width: 100%; height: auto; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 22px 28px rgba(35,96,196,.18)); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-1.5deg); } }
.hero-title { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-name { font-size: clamp(60px, 9.4vw, 124px); font-weight: 780; letter-spacing: -.055em; line-height: .95; }
.grad { background: linear-gradient(105deg, var(--blue-ink) 0%, var(--blue) 30%, #9a8cf0 65%, var(--pink) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 9s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.hero-sub { max-width: 900px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.9vw, 50px); line-height: 1.12; letter-spacing: -.01em; color: var(--ink-2); }
.hero-sub em { color: var(--blue-ink); }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-top: 34px; font-size: 19px; font-weight: 550; }
.authors sup, .affiliations sup { color: var(--blue-ink); font-size: .62em; font-weight: 650; margin-left: 2px; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 12px 0 0; color: var(--muted); font-size: 16.5px; }
.author-note { margin: 6px 0 0; color: var(--faint); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 22px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid var(--line-strong); font-size: 16px; font-weight: 620; box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, background .3s; }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #b8c8e2; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--blue-ink); border-color: var(--blue-ink); }

.plan-ticker { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 42px; padding: 12px 14px 12px 22px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); font-size: 15.5px; }
.plan-instr { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-2); }
.plan-arrow { width: 34px; height: 2px; background: linear-gradient(90deg, var(--line-strong), var(--blue)); position: relative; }
.plan-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--blue); border-right: 0; }
.plan-steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.plan-steps li { position: relative; padding: 7px 14px 7px 32px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14.5px; animation: step-on 6s calc(var(--i) * 1s + 1.6s) infinite both; }
.plan-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 7px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong); font-size: 11px; line-height: 17px; text-align: center; }
@keyframes step-on {
  0%, 4% { background: var(--bg-soft); color: var(--muted); border-color: var(--line); box-shadow: none; }
  8%, 60% { background: var(--blue-soft); color: var(--blue-ink); border-color: #bcd4f7; box-shadow: 0 0 0 4px rgba(61,127,224,.08); }
  80%, 100% { background: var(--bg-soft); color: var(--muted); border-color: var(--line); box-shadow: none; }
}
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line-strong); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

[data-anim] { animation: rise .9s var(--ease) both; }
[data-anim="1"] { animation-delay: .08s; } [data-anim="2"] { animation-delay: .18s; } [data-anim="3"] { animation-delay: .3s; }
[data-anim="4"] { animation-delay: .4s; } [data-anim="5"] { animation-delay: .5s; } [data-anim="6"] { animation-delay: .62s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -28px; position: relative; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-md); }
.stat { padding: 28px 30px; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { font-size: clamp(34px, 3.6vw, 46px); font-weight: 720; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.stat strong small { font-size: .5em; font-weight: 650; margin-left: 3px; color: var(--blue-ink); letter-spacing: 0; }
.stat > span { color: var(--muted); font-size: 15.5px; line-height: 1.45; }

/* ---------- sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-tight { padding-top: 88px; padding-bottom: 32px; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 860px; margin-bottom: 52px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--blue-ink); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--blue-soft); font-size: 13px; letter-spacing: .02em; }
.section-title { margin: 0; font-size: clamp(38px, 4.8vw, 62px); font-weight: 730; line-height: 1.06; letter-spacing: -.045em; }
.section-title em, .sub-title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--blue-ink); }
.lead { margin: 22px 0 0; font-size: 20px; line-height: 1.7; color: var(--ink-2); }
.lead.muted { color: var(--muted); font-size: 18px; }
.prose { margin-top: 36px; }
.prose p { margin: 0 0 20px; font-size: 19px; line-height: 1.8; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 680; }
.sub-title { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 720; letter-spacing: -.035em; line-height: 1.15; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-top { align-items: start; }

/* ---------- figures ---------- */
.figure { margin: 56px 0 0; }
.figure-media { display: block; width: 100%; padding: clamp(14px, 2.2vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); cursor: zoom-in; position: relative; overflow: hidden; transition: box-shadow .45s var(--ease), transform .45s var(--ease), border-color .45s; }
.figure-media img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.figure-media::after { content: "Click to enlarge"; position: absolute; right: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(14,22,41,.78); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease); }
.figure-media:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-3px); }
.figure-media:hover img { transform: scale(1.012); }
.figure-media:hover::after, .figure-media:focus-visible::after { opacity: 1; transform: none; }
.figure figcaption { max-width: 1000px; margin: 20px auto 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.figure figcaption b { color: var(--blue-ink); font-weight: 750; margin-right: 4px; }
.figure figcaption strong { color: var(--ink); font-weight: 650; }
.figure figcaption code { color: var(--blue-ink); background: var(--blue-soft); padding: 1px 6px; border-radius: 5px; }

/* ---------- motivation probe ---------- */
.probe { padding: 34px 34px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.probe-title { margin: 0 0 26px; font-size: 16px; font-weight: 650; color: var(--ink-2); }
.probe-row { margin-bottom: 24px; }
.probe-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.probe-label b { font-size: 17px; font-weight: 650; }
.probe-label span { font-size: 26px; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.probe-track { position: relative; height: 16px; border-radius: 999px; background: #eef2f8; }
.probe-range { position: absolute; top: 0; bottom: 0; left: calc(var(--from) * 1%); width: calc((var(--to) - var(--from)) * 1%); border-radius: 999px; transform-origin: left center; transition: transform 1.2s var(--ease) .2s; }
.js .probe .probe-range { transform: scaleX(0); }
.js .probe.in .probe-range { transform: scaleX(1); }
.probe-range.is-task { background: var(--gray-mark); }
.probe-range.is-atomic { background: var(--pink); }
.probe-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.probe-note { margin: 16px 0 0; color: var(--faint); font-size: 14.5px; }

/* ---------- dataset ---------- */
.dataset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px 26px 24px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: #fff; }
.feature-k { display: inline-block; font-size: 14px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-ink); }
.feature p { margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* ---------- method ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.step { position: relative; padding: 30px 28px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.step::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--pink)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step:hover::before { transform: scaleX(1); }
.step-n { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--sky); }
.step h3 { margin: 14px 0 8px; font-size: 26px; font-weight: 720; letter-spacing: -.03em; }
.step p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.skills { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.skills-head, .lexicon-learning > div:first-child { max-width: 860px; }
.skills-head p { margin: 14px 0 0; font-size: 18px; line-height: 1.7; color: var(--muted); }
.skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.skill { padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.skill code { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: .04em; }
.skill.is-retry code { background: var(--blue-ink); }
.skill.is-replan code { background: var(--pink-ink); }
.skill p { margin: 10px 0 0; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.lexicon-learning { margin-top: 88px; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.cards-2 { display: grid; gap: 16px; }
.card { padding: 26px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.card-tag { font-size: 14px; font-weight: 700; color: var(--blue-ink); letter-spacing: .02em; }
.card h4 { margin: 8px 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.card p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--muted); }

/* ---------- results ---------- */
.headline { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.headline-item { padding: 32px 34px; border-radius: var(--radius); background: linear-gradient(160deg, #f4f8ff 0%, #fff 60%); border: 1px solid var(--line); }
.headline-k { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); }
.headline-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 10px; }
.headline-v s { font-size: clamp(26px, 2.8vw, 34px); color: var(--faint); font-weight: 600; text-decoration-thickness: 2px; text-decoration-color: rgba(138,147,166,.6); }
.headline-v i { font-style: normal; color: var(--sky); font-size: 28px; }
.headline-v strong { font-size: clamp(48px, 5.2vw, 68px); font-weight: 760; letter-spacing: -.05em; line-height: 1; }
.headline-item p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.panel { padding: 32px 34px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.panel-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.panel-sub { margin: 6px 0 0; font-size: 16px; color: var(--muted); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #eef2f8; position: relative; }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-size: 15px; font-weight: 620; color: var(--muted); transition: color .25s; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg .seg-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(14,22,41,.12); transition: left .4s var(--ease), width .4s var(--ease); }
.seg .count { display: inline-block; margin-left: 4px; font-size: 13px; opacity: .65; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 8px; font-size: 15px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-base { background: var(--gray-mark); }
.dot-ours { background: var(--blue); }
.rule-key { width: 2px; height: 16px; background: var(--pink); display: inline-block; }

.dumbbell { position: relative; margin-top: 18px; }
.db-row { display: grid; grid-template-columns: 150px 1fr 92px; align-items: center; gap: 18px; height: 54px; border-radius: 10px; position: relative; }
.db-row:hover, .db-row:focus-visible { background: var(--bg-soft); }
.db-name { font-size: 16px; font-weight: 620; text-align: right; }
.db-plot { position: relative; height: 100%; }
.db-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.db-ref { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--pink); opacity: .85; }
.db-line { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: linear-gradient(90deg, var(--gray-mark), var(--blue)); transform-origin: left center; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.db-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(14,22,41,.06); }
.db-dot.base { background: var(--gray-mark); }
.db-dot.ours { background: var(--blue); transition: left 1.1s var(--ease); }
.db-gain { font-size: 16px; font-weight: 700; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.db-row.is-top .db-name, .db-row.is-top .db-gain { font-weight: 780; }
.db-axis { display: grid; grid-template-columns: 150px 1fr 92px; gap: 18px; margin-top: 4px; }
.db-axis-inner { position: relative; height: 22px; border-top: 1px solid var(--line); }
.db-axis-inner span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tooltip { position: absolute; z-index: 5; pointer-events: none; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.5; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; white-space: nowrap; }
.tooltip.show { opacity: 1; transform: none; }
.tooltip b { font-weight: 700; }

.table-wrap { overflow-x: auto; margin-top: 22px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 11px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th:first-child { text-align: left; font-weight: 550; }
.data-table thead th { font-size: 14px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.data-table tr.ours { background: var(--blue-soft); }
.data-table tr.ours th { color: var(--blue-ink); font-weight: 680; }
.data-table tr.group-end th, .data-table tr.group-end td { border-bottom-color: var(--line-strong); }
.data-table b { font-weight: 760; }

.results-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.hbars { margin-top: 22px; display: grid; gap: 12px; }
.hb { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.hb-name { font-size: 15.5px; color: var(--ink-2); text-align: right; }
.hb-track { position: relative; height: 26px; }
.hb-bar { position: absolute; left: 0; top: 3px; bottom: 3px; border-radius: 0 4px 4px 0; background: var(--gray-mark); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.hb.is-ours .hb-bar { background: var(--blue); }
.hb.is-ours .hb-name { color: var(--ink); font-weight: 680; }
.hb-val { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 8px; font-size: 14.5px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-2); opacity: 0; transition: opacity .4s .7s; }
.in .hb-bar, .hbars.in .hb-bar { transform: scaleX(1); }
.in .hb-val, .hbars.in .hb-val { opacity: 1; }
.hb-group { font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 10px 0 -2px; }
.hb-group:first-child { margin-top: 0; }

/* ---------- demos ---------- */
.section-dark { background: var(--dark); color: #e9eef8; }
.section-dark .section-title { color: #fff; }
.section-dark .section-title em { color: var(--sky); }
.section-dark .eyebrow { color: var(--sky); }
.section-dark .eyebrow span { background: rgba(143,195,246,.14); }
.section-dark .lead { color: #b9c3d6; }
.section-dark .lead code, .explorer code { color: #fff; background: rgba(255,255,255,.1); padding: 1px 7px; border-radius: 6px; }
.explorer-light .lead code, #real-demos .lead code { color: var(--blue-ink); background: var(--blue-soft); }

.explorer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.seg-dark { background: rgba(255,255,255,.07); }
.seg-dark button { color: #a9b4c9; }
.seg-dark button[aria-selected="true"] { color: var(--ink); }
.speed { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; color: var(--faint); }
.speed span { margin-right: 6px; font-weight: 600; }
.speed button { border: 1px solid transparent; background: transparent; padding: 5px 11px; border-radius: 999px; font-weight: 650; font-variant-numeric: tabular-nums; color: inherit; transition: background .2s, color .2s; }
.speed button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.section-dark .speed { color: #a9b4c9; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.chip { border: 1px solid var(--dark-line); background: rgba(255,255,255,.04); color: #cdd5e4; padding: 9px 16px; border-radius: 999px; font-size: 15.5px; font-weight: 560; display: inline-flex; align-items: center; gap: 10px; transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.chip:hover { background: rgba(255,255,255,.09); color: #fff; transform: translateY(-1px); }
.chip[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.chip-dots { display: inline-flex; gap: 3px; }
.chip-dots i { width: 6px; height: 6px; border-radius: 50%; }
.k-success { background: #3ccf8e; }
.k-retry, .k-replan { background: var(--sky); }
.k-bridgevla { background: #f07174; }
.chips-inline { margin: 0; }
.dot-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; font-size: 14px; color: #a9b4c9; }
.dot-legend[hidden] { display: none; }
.dot-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot-legend i { width: 8px; height: 8px; border-radius: 50%; }
.dot-legend + .chips { margin-top: 14px; }
.explorer-light .chip { background: #fff; color: var(--ink-2); border-color: var(--line); }
.explorer-light .chip:hover { background: var(--bg-soft); color: var(--ink); }
.explorer-light .chip[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.explorer-light .explorer-bar { margin-bottom: 30px; }

.stage { position: relative; }
.stage.swap { animation: stage-in .55s var(--ease) both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.stage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.stage-head h3 { margin: 0; font-size: clamp(28px, 3vw, 38px); font-weight: 720; letter-spacing: -.035em; line-height: 1.1; }
.stage-head p { margin: 10px 0 0; max-width: 760px; font-size: 17.5px; line-height: 1.6; color: #b9c3d6; }
.explorer-light .stage-head p { color: var(--muted); }
.stage-kicker { display: inline-block; font-size: 13.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 8px; }
.explorer-light .stage-kicker { color: var(--pink-ink); }
.sr-box { display: flex; gap: 6px; flex-wrap: wrap; }
.sr { padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--dark-line); min-width: 120px; }
.sr span { display: block; font-size: 13px; color: #a9b4c9; font-weight: 600; }
.sr strong { font-size: 24px; font-weight: 740; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #fff; }
.sr.is-ours { background: rgba(61,127,224,.18); border-color: rgba(143,195,246,.35); }
.explorer-light .sr { background: var(--bg-soft); border-color: var(--line); }
.explorer-light .sr span { color: var(--muted); }
.explorer-light .sr strong { color: var(--ink); }
.explorer-light .sr.is-ours { background: var(--blue-soft); border-color: #c4daf9; }
.explorer-light .sr.is-ours strong { color: var(--blue-ink); }
.sr-note { flex-basis: 100%; font-size: 13.5px; color: #8793aa; margin-top: 2px; }
.explorer-light .sr-note { color: var(--faint); }

.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vgrid[data-n="1"] { grid-template-columns: minmax(0, 760px); justify-content: center; }
.vgrid[data-n="2"], .vgrid[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vgroup + .vgroup { margin-top: 34px; }
.vgroup-title { margin: 0 0 14px; font-size: 19px; font-weight: 680; letter-spacing: -.02em; }
.vcard { min-width: 0; }
.vframe { position: relative; overflow: hidden; border-radius: 16px; background: #050912; aspect-ratio: var(--ar, 16/9); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.explorer-light .vframe { background: #0b0f17; box-shadow: var(--shadow-sm); }
.vcard:hover .vframe { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0,0,0,.28); }
.explorer-light .vcard:hover .vframe { box-shadow: var(--shadow-md); }
.vframe video { width: 100%; height: 100%; object-fit: contain; }
.vbadge { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #fff; backdrop-filter: blur(6px); pointer-events: none; }
.vbadge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.vbadge.success { background: rgba(30,138,90,.92); }
.vbadge.recovered { background: rgba(35,96,196,.94); }
.vbadge.failure { background: rgba(208,72,75,.92); }
.vbadge.neutral { background: rgba(14,22,41,.8); }
.vctrl { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease); }
.vcard:hover .vctrl, .vcard:focus-within .vctrl { opacity: 1; transform: none; }
.vctrl button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(12,19,34,.72); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.vctrl button:hover { background: rgba(12,19,34,.92); }
.vctrl svg { width: 17px; height: 17px; fill: currentColor; }
.vmeta { padding: 12px 2px 0; }
.vmeta-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.vmeta strong { font-size: 17.5px; font-weight: 700; color: #fff; }
.explorer-light .vmeta strong { color: var(--ink); }
.vcard.ours .vmeta strong { color: var(--sky); }
.explorer-light .vcard.ours .vmeta strong { color: var(--blue-ink); }
.vmeta-tag { font-size: 13px; font-weight: 650; color: #8793aa; white-space: nowrap; }
.vmeta p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.5; color: #a9b4c9; }
.explorer-light .vmeta p { color: var(--muted); }
.vmeta .same { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 650; color: #ffd1e1; background: rgba(238,134,171,.16); }
.explorer-light .vmeta .same { color: var(--pink-ink); background: var(--pink-soft); }
.stage-note { margin: 24px 0 0; font-size: 15px; line-height: 1.6; color: #8793aa; }
.explorer-light .stage-note { color: var(--faint); }

/* ---------- citation ---------- */
.bibtex { position: relative; margin-top: 34px; border-radius: var(--radius); background: var(--dark); box-shadow: var(--shadow-md); overflow: hidden; }
.bibtex pre { margin: 0; padding: 30px 32px; overflow-x: auto; color: #dbe4f4; font: 15px/1.75 var(--mono); }
.copy-btn { position: absolute; top: 14px; right: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; padding: 7px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: background .2s; }
.copy-btn:hover { background: rgba(255,255,255,.14); }
.copy-btn.done { background: var(--success); border-color: var(--success); }

/* ---------- footer ---------- */
.site-footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-inner p { flex: 1; margin: 0; color: var(--faint); font-size: 15px; }
.to-top { font-size: 15px; font-weight: 650; color: var(--blue-ink); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 56px 24px 24px; background: rgba(9,13,24,.86); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox-body { max-width: min(1600px, 100%); max-height: 100%; transform: scale(.96); transition: transform .4s var(--ease); }
.lightbox.open .lightbox-body { transform: none; }
.lightbox-body img { max-height: calc(100vh - 100px); width: auto; border-radius: 14px; background: #fff; padding: 12px; }
.lightbox-body video { max-height: calc(100vh - 100px); width: min(1280px, 100%); border-radius: 14px; background: #000; }
.lightbox-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; }
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 9px; }
  .split, .skills { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-header { background: rgba(255,255,255,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(14,22,41,.08); font-size: 17px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease); }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .nav-cta { margin: 6px 0 0; text-align: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .headline, .results-pair, .dataset-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 92px 0; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { width: calc(100% - 32px); }
  html { scroll-padding-top: 76px; }
  .hero { padding: 104px 0 88px; }
  .authors { font-size: 17px; gap: 4px 16px; }
  .affiliations { font-size: 15px; }
  .btn { height: 46px; padding: 0 18px; font-size: 15px; }
  .plan-ticker { border-radius: 22px; padding: 14px; }
  .plan-arrow { display: none; }
  .plan-steps { flex-wrap: wrap; justify-content: center; }
  .stat { padding: 20px 18px; }
  .stat > span { font-size: 14px; }
  .section { padding: 76px 0; }
  .section-tight { padding-top: 64px; padding-bottom: 16px; }
  .lead { font-size: 18px; }
  .prose p { font-size: 17.5px; }
  .figure figcaption { font-size: 15.5px; }
  .skill-grid { grid-template-columns: 1fr; }
  .panel { padding: 24px 18px; }
  .probe { padding: 24px 20px; }
  .db-row, .db-axis { grid-template-columns: 96px 1fr 58px; gap: 10px; }
  .db-name { font-size: 14px; }
  .db-gain { font-size: 14px; }
  .hb { grid-template-columns: 112px 1fr; }
  .hb-name { font-size: 14px; }
  .vgrid, .vgrid[data-n] { grid-template-columns: minmax(0, 1fr); }
  .chips:not(.chips-inline), .chips-inline { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; white-space: nowrap; }
  .vctrl { opacity: 1; transform: none; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { flex-basis: 100%; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
