@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #14213d;
  --ink-strong: #081126;
  --ink-muted: #5e6b85;
  --navy: #090d1f;
  --navy-soft: #121936;
  --paper: #f6f8fd;
  --surface: #ffffff;
  --surface-alt: #edf1fb;
  --line: #dbe2f1;
  --line-strong: #c3cee5;
  --iris: #6d71f8;
  --iris-dark: #5558dc;
  --iris-pale: #e9eaff;
  --gold: #e7ad42;
  --gold-pale: #fff5dd;
  --mint: #46c89b;
  --mint-pale: #e5f8f0;
  --coral: #eb7568;
  --shadow: 0 18px 50px rgb(25 42 79 / 0.1);
  --shadow-deep: 0 25px 72px rgb(0 0 0 / 0.28);
  --shell: min(1216px, calc(100% - 48px));
  --reading: 760px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  --header-height: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; }
code, pre { font-family: var(--font-mono); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -150%);
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink-strong);
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgb(255 255 255 / 0.09);
  background: rgb(9 13 31 / 0.84);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgb(0 0 0 / 0.22); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 850; letter-spacing: -0.035em; text-decoration: none; }
.brand-mark { width: 33px; height: 33px; overflow: visible; }
.brand-mark rect { fill: none; stroke: var(--iris); stroke-width: 2.6; }
.brand-mark rect:nth-of-type(2) { stroke: var(--mint); }
.brand-mark path { fill: none; stroke: var(--gold); stroke-width: 2.3; stroke-linecap: round; }
.brand-mark circle { fill: var(--gold); }

.site-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 20px; }
.nav-sections, .nav-actions { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 7px 11px; color: #b9c3db; font-size: 0.875rem; font-weight: 650; text-decoration: none; transition: color 160ms ease, background 160ms ease; }
.site-nav a:hover, .site-nav a.is-active { color: #fff; }
.site-nav .nav-code { margin-left: 7px; border: 1px solid rgb(255 255 255 / 0.2); border-radius: 9px; color: #fff; }
.site-nav .nav-code:hover { border-color: var(--iris); background: rgb(109 113 248 / 0.2); }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(62px, 8vw, 110px) 0 0;
  background:
    radial-gradient(circle at 86% 18%, rgb(109 113 248 / 0.3), transparent 31%),
    radial-gradient(circle at 52% 90%, rgb(70 200 155 / 0.14), transparent 30%),
    linear-gradient(145deg, #090d1f 0%, #111937 56%, #151536 100%);
  color: #f7f8ff;
}
.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.26;
  background-image: radial-gradient(rgb(183 195 255 / 0.65) 0.75px, transparent 0.75px);
  background-position: -2px -2px;
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 81%);
}
.hero-orbit { position: absolute; border: 1px solid rgb(190 197 255 / 0.2); border-radius: 50%; pointer-events: none; }
.hero-orbit-one { width: 580px; height: 580px; top: -300px; right: -175px; }
.hero-orbit-two { width: 340px; height: 340px; top: 170px; right: 5%; border-color: rgb(70 200 155 / 0.2); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.9fr); align-items: center; gap: clamp(38px, 7vw, 96px); }
.hero-copy { padding-bottom: 64px; }

.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: var(--iris-dark); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.1em; line-height: 1.3; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 22px; height: 2px; background: currentColor; }

.venue-badge { position: relative; display: inline-flex; align-items: stretch; max-width: 100%; margin-bottom: 22px; overflow: hidden; border: 1px solid rgb(255 226 164 / 0.38); border-radius: 12px; background: linear-gradient(110deg, rgb(255 255 255 / 0.12), rgb(109 113 248 / 0.14)); box-shadow: 0 10px 30px rgb(0 0 0 / 0.2), 0 0 30px rgb(231 173 66 / 0.1); backdrop-filter: blur(10px); }
.venue-badge::after { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--gold), #ffe2a4 45%, var(--mint)); content: ""; }
.venue-monogram { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 67px; padding: 10px 13px 9px; background: linear-gradient(145deg, #f2bd58, var(--gold)); color: #17172b; font-family: var(--font-display); font-size: 0.83rem; font-weight: 900; letter-spacing: 0.02em; line-height: 1; }
.venue-monogram b { margin-top: 3px; font-size: 1.22rem; letter-spacing: -0.06em; }
.venue-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 9px 16px 10px; }
.venue-copy small { color: #aeb9d5; font-family: var(--font-mono); font-size: 0.58rem; font-weight: 750; letter-spacing: 0.13em; line-height: 1.35; text-transform: uppercase; }
.venue-copy strong { color: #fff; font-family: var(--font-display); font-size: clamp(0.95rem, 1.35vw, 1.12rem); font-weight: 850; letter-spacing: -0.025em; line-height: 1.35; white-space: nowrap; }
.venue-track { align-self: center; margin-right: 12px; padding: 5px 8px; border: 1px solid rgb(70 200 155 / 0.42); border-radius: 999px; background: rgb(70 200 155 / 0.1); color: #8be2c4; font-family: var(--font-mono); font-size: 0.57rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { max-width: 720px; margin-bottom: 25px; font-family: var(--font-display); font-size: clamp(2.5rem, 4.5vw, 4.8rem); font-weight: 850; letter-spacing: -0.068em; line-height: 0.99; }
h1 > span { display: block; margin-bottom: 9px; color: #a9aefb; font-size: 0.58em; letter-spacing: -0.045em; }
.hero-lede { max-width: 655px; margin-bottom: 24px; color: #cbd3e9; font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.7; }
.hero-lede strong { color: #fff; }
.authors { display: flex; flex-wrap: wrap; gap: 6px 0; max-width: 720px; margin: 0 0 10px; color: #f0f3ff; font-size: clamp(0.91rem, 1.25vw, 1rem); font-weight: 560; line-height: 1.45; }
.authors span:not(:last-child)::after { margin: 0 10px; color: #7e8baa; content: "·"; }
.authors sup, .affiliations sup, .author-notes sup { color: var(--gold); font-family: var(--font-mono); font-size: 0.68em; font-weight: 800; line-height: 0; }
.affiliations { max-width: 720px; margin-bottom: 5px; display: flex; gap: 16px; flex-wrap: wrap; }
.affiliations p { margin: 0; color: #c0cae4; font-size: clamp(0.79rem, 1vw, 0.87rem); font-weight: 520; line-height: 1.55; }
.author-notes { margin: 0 0 28px; color: #9daac9; font-size: 0.72rem; line-height: 1.5; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 15px; border: 1px solid transparent; border-radius: 10px; font-size: 0.88rem; font-weight: 760; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.button-primary { background: var(--iris); box-shadow: 0 9px 20px rgb(49 50 174 / 0.36); color: #fff; }
.button-primary:hover { background: #7c80ff; box-shadow: 0 12px 27px rgb(49 50 174 / 0.45); }
.button-secondary { border-color: rgb(255 255 255 / 0.24); color: #fff; }
.button-secondary:hover { border-color: rgb(255 255 255 / 0.65); background: rgb(255 255 255 / 0.08); }
.button-quiet { min-height: auto; padding-inline: 7px; color: #c9ccff; }
.button-quiet:hover { color: #fff; }

.project-facts { display: flex; flex-wrap: wrap; gap: 9px 17px; margin: 0; padding: 0; color: #aeb9d5; font-family: var(--font-mono); font-size: 0.68rem; list-style: none; }
.project-facts li { display: flex; align-items: center; gap: 6px; }
.project-facts strong { color: #e7ebf9; font-weight: 700; }
.fact-dot { width: 7px; height: 7px; border-radius: 50%; }
.fact-violet { background: var(--iris); box-shadow: 0 0 11px var(--iris); }
.fact-gold { background: var(--gold); box-shadow: 0 0 11px var(--gold); }
.fact-mint { background: var(--mint); box-shadow: 0 0 11px var(--mint); }

.hero-figure { position: relative; z-index: 1; margin: 0; transform: translateY(14px); }
.figure-window { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.figure-window-dark { border-color: rgb(202 211 255 / 0.2); background: #111835; box-shadow: var(--shadow-deep); }
.window-bar { display: flex; align-items: center; min-height: 35px; gap: 6px; padding: 0 12px; border-bottom: 1px solid rgb(255 255 255 / 0.1); color: #a9b5d8; }
.window-bar > span { width: 6px; height: 6px; border-radius: 50%; background: #7b87aa; }
.window-bar > span:nth-child(2) { background: #9b93cd; }
.window-bar > span:nth-child(3) { background: #6dbfa8; }
.window-bar p { margin: 0 auto; padding-right: 18px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; }
.window-bar-light { border-color: var(--line); color: var(--ink-muted); background: #fafbff; }
.hero-image-wrap { padding: 10px; background: linear-gradient(135deg, #182146, #0f1732); }
.hero-image-wrap img { width: 100%; border-radius: 9px; }
figure figcaption { max-width: 740px; margin: 13px auto 0; color: var(--ink-muted); font-size: 0.78rem; line-height: 1.55; }
.hero-figure figcaption { color: #acb8d8; }
figure figcaption > span { margin-right: 7px; color: var(--gold); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
figure figcaption a { color: inherit; }

.hero-proof { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 47px; border: 1px solid rgb(255 255 255 / 0.14); border-bottom: 0; border-radius: 15px 15px 0 0; background: rgb(7 12 30 / 0.45); backdrop-filter: blur(8px); }
.hero-proof div { display: flex; flex-direction: column; gap: 1px; min-height: 94px; padding: 18px clamp(15px, 2vw, 28px); border-right: 1px solid rgb(255 255 255 / 0.12); }
.hero-proof div:last-child { border-right: 0; }
.hero-proof strong { color: #fff; font-family: var(--font-display); font-size: 1.65rem; letter-spacing: -0.05em; line-height: 1.1; }
.hero-proof div:nth-child(1) strong, .hero-proof div:nth-child(2) strong { color: #aeb3ff; }
.hero-proof span { color: #a7b3d0; font-size: 0.72rem; line-height: 1.35; }

.section { position: relative; padding: clamp(76px, 10vw, 136px) 0; }
.section[id] { scroll-margin-top: calc(var(--header-height) + 16px); }
.section-heading { max-width: var(--reading); margin-bottom: clamp(38px, 5vw, 64px); }
.section-heading h2 { margin-bottom: 16px; color: var(--ink-strong); font-family: var(--font-display); font-size: clamp(2.15rem, 4.2vw, 3.5rem); font-weight: 850; letter-spacing: -0.062em; line-height: 1.03; }
.section-heading > p:last-child { margin-bottom: 0; color: var(--ink-muted); font-size: 1.05rem; line-height: 1.72; }

.overview { background: var(--paper); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story-card { position: relative; overflow: hidden; min-height: 315px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 9px 23px rgb(34 58 113 / 0.045); }
.story-card::after { position: absolute; right: -22px; bottom: -23px; width: 117px; height: 117px; border: 1px solid var(--line); border-radius: 50%; content: ""; }
.story-card-accent { border-color: #cfd0ff; background: linear-gradient(145deg, #f8f8ff, #eff0ff); }
.story-card-accent::after { border-color: #c7c9ff; }
.story-index { color: #a8b2ca; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; }
.story-icon { display: block; width: 58px; height: 58px; margin: 25px 0 18px; overflow: visible; fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.story-icon .icon-warn { stroke: var(--coral); stroke-width: 3; }
.story-icon .icon-link { stroke: var(--iris); stroke-width: 2.5; }
.story-icon .icon-node { fill: var(--mint); stroke: none; }
.story-kicker { margin-bottom: 5px; color: var(--iris-dark); font-family: var(--font-mono); font-size: 0.69rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.story-card h3 { margin-bottom: 10px; font-size: 1.15rem; letter-spacing: -0.027em; line-height: 1.23; }
.story-card p:last-child { max-width: 330px; margin-bottom: 0; color: var(--ink-muted); font-size: 0.89rem; line-height: 1.6; }

.thesis { display: grid; grid-template-columns: auto minmax(0, 1.1fr) minmax(240px, 0.64fr); align-items: center; gap: 28px; margin-top: 22px; padding: 30px 34px; border-radius: 16px; background: var(--ink-strong); color: #fff; box-shadow: var(--shadow); }
.thesis-mark { position: relative; width: 66px; height: 57px; }
.thesis-mark span { position: absolute; width: 36px; height: 37px; border: 2px solid var(--iris); border-radius: 8px; }
.thesis-mark span:first-child { left: 0; top: 0; }
.thesis-mark span:nth-child(2) { right: 0; bottom: 0; border-color: var(--mint); }
.thesis-mark i { position: absolute; top: 26px; left: 26px; z-index: 2; width: 14px; height: 14px; border: 3px solid var(--gold); border-radius: 50%; background: var(--ink-strong); }
.thesis .eyebrow { margin-bottom: 9px; color: #bfc4ff; }
.thesis blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.65rem); font-weight: 750; letter-spacing: -0.045em; line-height: 1.2; }
.thesis > p { margin: 0; color: #b5c0de; font-size: 0.88rem; line-height: 1.6; }

.method { overflow: hidden; background: #fff; }
.method::before { position: absolute; top: 140px; right: -150px; width: 480px; height: 480px; border: 1px solid #e2e4ff; border-radius: 50%; content: ""; }
.method-heading { position: relative; z-index: 1; }
.method-figure { position: relative; z-index: 1; margin: 0 0 43px; }
.method-image-wrap { padding: clamp(11px, 2vw, 22px); background: #fff; }
.method-image-wrap img { width: 100%; max-width: 100%; min-width: 0; object-fit: contain; }
.method-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 0; padding: 0; list-style: none; }
.method-step { min-height: 273px; padding: 23px; border-top: 3px solid var(--iris); background: var(--surface-alt); }
.method-step:nth-child(2) { border-top-color: var(--mint); }
.method-step:nth-child(3) { border-top-color: var(--gold); }
.method-step:nth-child(4) { border-top-color: var(--coral); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 31px; color: var(--iris-dark); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 800; }
.method-step:nth-child(2) .step-top { color: #258a6d; }
.method-step:nth-child(3) .step-top { color: #9a6b11; }
.method-step:nth-child(4) .step-top { color: #b75248; }
.step-top code { padding: 3px 6px; border: 1px solid currentColor; border-radius: 4px; font-size: 0.62rem; }
.method-step h3 { margin-bottom: 8px; color: var(--ink-strong); font-size: 1rem; letter-spacing: -0.025em; }
.method-step > p { min-height: 70px; margin-bottom: 17px; color: var(--ink-muted); font-size: 0.84rem; line-height: 1.56; }
.prompt-box, .equation { display: block; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: #33405d; font-family: var(--font-mono); font-size: 0.65rem; line-height: 1.45; }
.prompt-box span { color: var(--iris-dark); font-weight: 800; }
.mini-flow { display: flex; align-items: end; height: 38px; gap: 4px; padding: 0 3px; }
.mini-flow i { width: 12px; border-radius: 2px 2px 0 0; background: var(--mint); }
.mini-flow i:nth-child(1) { height: 11px; opacity: 0.35; }.mini-flow i:nth-child(2) { height: 18px; opacity: 0.55; }.mini-flow i:nth-child(3) { height: 29px; opacity: 0.75; }.mini-flow i:nth-child(4) { height: 35px; }.mini-flow i:nth-child(5) { height: 23px; opacity: 0.6; }
.mini-flow b { margin-left: auto; color: #258a6d; font-family: var(--font-mono); font-size: 0.72rem; }
.equation { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px; border-color: #ecd594; background: var(--gold-pale); color: #5f4915; font-size: 0.69rem; }
.equation span { margin-left: auto; color: #9a6b11; font-size: 0.58rem; font-weight: 800; }
.equation-small { display: block; font-size: 0.57rem; line-height: 1.5; }

.inference-note { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 23px; margin-top: 19px; padding: 22px 27px; border: 1px solid #cceddf; border-radius: 13px; background: linear-gradient(90deg, #effbf6, #f9fffc); }
.inference-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; background: var(--mint); color: #073d2e; }
.inference-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.inference-note .eyebrow { margin-bottom: 5px; color: #258a6d; }
.inference-note h3 { margin-bottom: 3px; color: #133c32; font-size: 1rem; }
.inference-note p:last-child { margin-bottom: 0; color: #537168; font-size: 0.81rem; line-height: 1.55; }
.inference-flow { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: 6px; color: #2e7661; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; text-align: right; }
.inference-flow span, .inference-flow strong { padding: 4px 6px; border: 1px solid #abdcc8; border-radius: 5px; background: #fff; }
.inference-flow strong { border-color: var(--mint); background: var(--mint-pale); color: #17664f; }

.results { background: linear-gradient(180deg, #f2f4fb 0%, #f8f9fc 100%); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 21px; }
.metric-card { min-height: 208px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 9px 24px rgb(27 46 91 / 0.05); }
.metric-featured { border-color: #c4c7ff; background: linear-gradient(145deg, #fff, #f0f1ff); box-shadow: 0 15px 30px rgb(84 87 211 / 0.13); }
.metric-top { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-strong); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.metric-top small { color: var(--iris-dark); font-size: inherit; }
.metric-value { margin: 25px 0 1px; color: var(--ink-strong); font-family: var(--font-display); font-size: clamp(2.15rem, 3.2vw, 3rem); font-weight: 850; letter-spacing: -0.07em; line-height: 1; }
.metric-featured .metric-value { color: var(--iris-dark); }
.metric-value span { margin-left: 2px; font-size: 0.42em; letter-spacing: -0.02em; }
.metric-gain, .metric-label { margin: 9px 0 3px; color: #1b8768; font-family: var(--font-mono); font-size: 0.71rem; font-weight: 800; }
.metric-gain span { margin-right: 2px; color: var(--mint); }
.metric-card > p:last-child { margin-bottom: 0; color: var(--ink-muted); font-size: 0.72rem; line-height: 1.4; }

.rank-story { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; margin-bottom: 44px; padding: 30px 34px; border: 1px solid #d6d8ff; border-radius: 15px; background: #fdfdff; }
.rank-story .eyebrow { margin-bottom: 8px; }
.rank-story h3 { max-width: 650px; margin-bottom: 8px; color: var(--ink-strong); font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
.rank-story h3 i { color: var(--iris-dark); }
.rank-story p:last-child { max-width: 625px; margin-bottom: 0; color: var(--ink-muted); font-size: 0.87rem; }
.rank-figure { grid-column: 1 / -1; width: 100%; margin: 0; padding-top: 30px; border-top: 1px solid #e3e5f8; }
.rank-figure > a { display: block; max-width: 720px; margin-inline: auto; border-radius: 12px; outline-offset: 4px; }
.rank-figure img { display: block; width: 100%; height: auto; border: 1px solid #e6e9f2; border-radius: 12px; box-shadow: 0 9px 23px rgb(34 58 113 / 0.06); }
.rank-figure figcaption { max-width: 720px; }
.rank-compare { display: flex; align-items: center; gap: 12px; min-width: 310px; }
.rank-compare > div { display: flex; flex-direction: column; align-items: center; min-width: 83px; text-align: center; }
.rank-compare span { color: var(--ink-muted); font-family: var(--font-mono); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.rank-compare strong { color: #7a879e; font-family: var(--font-display); font-size: 2.5rem; letter-spacing: -0.09em; line-height: 1.05; }
.rank-compare small { color: var(--ink-muted); font-size: 0.62rem; line-height: 1.18; }
.rank-compare svg { width: 76px; overflow: visible; fill: none; stroke: var(--iris); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.rank-compare .rank-win strong { color: #1b936f; }
.rank-compare .rank-win span { color: #1b936f; }

.result-block { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 11px 26px rgb(34 58 113 / 0.04); }
.result-block-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 27px 29px 20px; }
.result-block-heading .eyebrow { margin-bottom: 6px; }
.result-block-heading h3 { margin-bottom: 0; color: var(--ink-strong); font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.04em; }
.result-block-heading > p { margin-bottom: 1px; color: var(--ink-muted); font-family: var(--font-mono); font-size: 0.67rem; }
.table-region { overflow-x: auto; border-block: 1px solid var(--line); outline-offset: -4px; }
table { width: 100%; min-width: 665px; border-collapse: collapse; color: var(--ink); font-size: 0.84rem; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
th, td { padding: 15px 18px; border-bottom: 1px solid #e8ecf5; text-align: right; vertical-align: middle; }
thead th { background: #f7f8fc; color: #56647d; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
thead th:first-child, tbody th { position: sticky; left: 0; text-align: left; }
thead th:first-child { z-index: 2; background: #f7f8fc; }
tbody th { z-index: 1; min-width: 245px; background: #fff; color: var(--ink-strong); font-size: 0.86rem; font-weight: 750; box-shadow: 1px 0 0 #e8ecf5; }
tbody th small { display: inline-block; margin-left: 5px; color: var(--ink-muted); font-size: 0.68rem; font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody .kbmr-row { background: #f7f7ff; }
tbody .kbmr-row th { background: #f7f7ff; }
tbody .best-row { background: #eeeeff; }
tbody .best-row th { background: #eeeeff; }
.table-model-mark { display: inline-block; width: 8px; height: 8px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--iris); box-shadow: 0 0 0 3px #d9daff; }
.gain-row th, .gain-row td { color: #1b8768; font-weight: 780; }
.scope-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 17px 29px 19px; color: var(--ink-muted); font-size: 0.74rem; line-height: 1.55; }
.scope-notes p { margin: 0; }
.scope-notes strong { color: var(--ink); }
.downstream-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 19px; }
.table-region-compact table { min-width: 490px; font-size: 0.79rem; }
.table-region-compact tbody th { min-width: 215px; }
.table-region-compact th, .table-region-compact td { padding: 13px 15px; }
.result-footnote { margin: 16px 0 0; color: var(--ink-muted); font-size: 0.74rem; line-height: 1.55; }

.citation { overflow: hidden; background:
  radial-gradient(circle at 88% 16%, rgb(109 113 248 / 0.3), transparent 31%),
  linear-gradient(135deg, #0a0e21, #131a3c 70%, #171839); color: #fff; }
.citation::before { position: absolute; bottom: -170px; left: -130px; width: 430px; height: 430px; border: 1px solid rgb(179 191 255 / 0.16); border-radius: 50%; content: ""; }
.citation-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(470px, 1fr); align-items: center; gap: clamp(42px, 7vw, 94px); }
.citation h2 { max-width: 520px; margin-bottom: 15px; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 850; letter-spacing: -0.065em; line-height: 1.04; }
.citation-copy > p:not(.eyebrow) { max-width: 495px; margin-bottom: 30px; color: #b9c4e1; font-size: 1rem; }
.paper-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin: 0; }
.paper-meta div { border-top: 1px solid rgb(255 255 255 / 0.14); padding-top: 8px; }
.paper-meta dt { margin-bottom: 2px; color: #8f9cc1; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.paper-meta dd { margin: 0; color: #ecf0ff; font-size: 0.82rem; }
.paper-meta a { color: #c5c8ff; }

.bibtex-card { overflow: hidden; border: 1px solid rgb(180 190 255 / 0.24); border-radius: 14px; background: rgb(4 7 19 / 0.48); box-shadow: var(--shadow-deep); }
.bibtex-header { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px; border-bottom: 1px solid rgb(255 255 255 / 0.1); background: rgb(255 255 255 / 0.04); }
.bibtex-header > div { display: flex; align-items: center; gap: 6px; }
.bibtex-header > div span { width: 7px; height: 7px; border-radius: 50%; background: #69779e; }
.bibtex-header > div span:nth-child(1) { background: #e37268; }.bibtex-header > div span:nth-child(2) { background: #e7ad42; }.bibtex-header > div span:nth-child(3) { background: #55c99b; }
.bibtex-header p { margin: 0 0 0 8px; color: #aeb9dc; font-family: var(--font-mono); font-size: 0.64rem; }
.copy-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgb(255 255 255 / 0.19); border-radius: 6px; background: transparent; color: #e7ebff; font-size: 0.7rem; font-weight: 750; cursor: pointer; }
.copy-button:hover { border-color: var(--iris); background: rgb(109 113 248 / 0.2); }
.copy-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.bibtex-card pre { max-height: 388px; margin: 0; padding: 25px; overflow: auto; color: #dce4ff; font-size: clamp(0.64rem, 1.25vw, 0.77rem); line-height: 1.6; tab-size: 2; white-space: pre; }
.copy-status { min-height: 27px; margin: 0; padding: 0 25px 12px; color: #aeb9d8; font-size: 0.7rem; }

.site-footer { background: #070b19; color: #aeb8d1; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; min-height: 94px; }
.footer-brand { font-size: 1rem; }
.footer-brand .brand-mark { width: 29px; height: 29px; }
.footer-inner > p { margin: 0; font-size: 0.72rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px; font-size: 0.7rem; }
.footer-links a { color: #c2caf1; }

.back-to-top { position: fixed; z-index: 15; right: 18px; bottom: 18px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: rgb(255 255 255 / 0.94); box-shadow: 0 7px 18px rgb(24 40 77 / 0.17); color: var(--iris-dark); font-size: 1.15rem; font-weight: 800; opacity: 0; pointer-events: none; text-decoration: none; transform: translateY(10px); transition: opacity 160ms ease, transform 160ms ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms cubic-bezier(.2,.75,.3,1), transform 620ms cubic-bezier(.2,.75,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1030px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(350px, 0.83fr); gap: 38px; }
  .hero-proof { grid-template-columns: repeat(2, 1fr); }
  .hero-proof div:nth-child(2) { border-right: 0; }.hero-proof div:nth-child(-n + 2) { border-bottom: 1px solid rgb(255 255 255 / 0.12); }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .method-step { min-height: 245px; }
  .citation-grid { grid-template-columns: 1fr; gap: 48px; }
  .citation-copy { max-width: 680px; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 36px, 1216px); --header-height: 66px; }
  .site-nav { position: absolute; top: calc(100% + 7px); right: 18px; left: 18px; display: none; flex-direction: column; align-items: stretch; gap: 7px; padding: 10px; border: 1px solid rgb(255 255 255 / 0.15); border-radius: 12px; background: #111834; box-shadow: var(--shadow-deep); }
  .site-nav.is-open { display: flex; }
  .nav-sections, .nav-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-actions { padding-top: 7px; border-top: 1px solid rgb(255 255 255 / 0.1); }
  .site-nav a { padding: 10px; border-radius: 7px; }
  .site-nav a:hover, .site-nav a.is-active { background: rgb(255 255 255 / 0.09); }
  .site-nav .nav-code { margin-left: 0; border: 0; }
  .menu-toggle { display: grid; width: 40px; height: 40px; place-content: center; gap: 6px; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { display: block; width: 21px; height: 2px; border-radius: 2px; background: #fff; transition: transform 170ms ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 5px; }
  .hero-figure { width: min(590px, 100%); margin-inline: auto; transform: none; }
  .hero-proof { margin-top: 38px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 0; }
  .thesis { grid-template-columns: auto 1fr; }
  .thesis > p { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-story { grid-template-columns: 1fr; gap: 24px; }
  .rank-compare { justify-content: start; }
  .downstream-grid { grid-template-columns: 1fr; }
  .inference-note { grid-template-columns: auto 1fr; }
  .inference-flow { grid-column: 1 / -1; justify-content: start; text-align: left; }
}

@media (max-width: 580px) {
  :root { --shell: min(100% - 28px, 1216px); }
  .hero { padding-top: 53px; }
  .venue-badge { margin-bottom: 19px; }
  .venue-monogram { min-width: 59px; padding-inline: 10px; }
  .venue-copy { padding-inline: 12px; }
  .venue-copy strong { font-size: 0.9rem; white-space: normal; }
  .venue-track { display: none; }
  h1 { font-size: clamp(2.52rem, 12.7vw, 3.5rem); }
  .hero-actions { align-items: stretch; }
  .button { flex: 1 1 100%; }
  .button-quiet { justify-content: start; }
  .project-facts { gap: 8px 13px; }
  .hero-proof { grid-template-columns: 1fr 1fr; margin-top: 30px; border-radius: 11px 11px 0 0; }
  .hero-proof div { min-height: 83px; padding: 14px; }
  .hero-proof strong { font-size: 1.42rem; }
  .hero-proof span { font-size: 0.64rem; }
  .section { padding: 73px 0; }
  .section-heading h2 { font-size: clamp(2rem, 10vw, 2.55rem); }
  .section-heading > p:last-child { font-size: 0.95rem; }
  .story-card { padding: 23px; }
  .thesis { gap: 17px; padding: 23px; }
  .thesis-mark { width: 48px; transform: scale(0.79); transform-origin: left center; }
  .thesis blockquote { font-size: 1.15rem; }
  .method-steps { grid-template-columns: 1fr; }
  .method-step { min-height: 0; }
  .method-step > p { min-height: 0; }
  .inference-note { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .inference-icon { width: 42px; height: 42px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 181px; padding: 16px; }
  .metric-value { margin-top: 20px; font-size: 2.15rem; }
  .metric-card > p:last-child { font-size: 0.65rem; }
  .rank-story { padding: 23px; }
  .rank-compare { min-width: 0; gap: 8px; }
  .rank-compare strong { font-size: 2.18rem; }
  .rank-compare svg { width: 47px; }
  .result-block-heading { align-items: start; flex-direction: column; gap: 5px; padding: 22px 20px 16px; }
  .scope-notes { grid-template-columns: 1fr; gap: 10px; padding: 15px 20px; }
  .citation-grid { gap: 34px; }
  .paper-meta { grid-template-columns: 1fr; gap: 11px; }
  .bibtex-card pre { padding: 18px; font-size: 0.6rem; }
  .copy-status { padding-inline: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 10px; padding: 23px 0; }
  .footer-links { justify-content: start; }
}

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

@media print {
  :root { --shell: 100%; }
  body { background: #fff; color: #000; font-size: 10pt; }
  .site-header, .skip-link, .back-to-top, .hero-orbit, .menu-toggle, .copy-button { display: none !important; }
  .hero, .citation { padding: 28px 0; background: #fff; color: #000; }
  .hero::before, .citation::before { display: none; }
  h1, .section-heading h2, .citation h2 { color: #000; }
  .hero-lede, .authors, .citation-copy > p:not(.eyebrow) { color: #333; }
  .hero-proof, .thesis, .bibtex-card { border: 1px solid #bbb; background: #fff; box-shadow: none; color: #000; }
  .hero-proof strong, .hero-proof span, .thesis blockquote, .paper-meta dd, .bibtex-card pre { color: #000; }
  .section { padding: 26px 0; break-inside: avoid; }
  .story-card, .metric-card, .result-block, .figure-window { box-shadow: none; }
  .citation-grid { display: block; }
  .bibtex-card { margin-top: 18px; }
  .site-footer { background: #fff; color: #333; border-top: 1px solid #bbb; }
  .footer-brand, .footer-links a { color: #000; }
  a { text-decoration: underline; }
}
