/* EgoForesight — a standalone project page, alongside CLAP. */
@font-face {
  font-family: 'EgoForesight Math';
  src: url('assets/fonts/STIXTwoMath-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #faf9f6; --surface: #fffefa; --soft: #f2f0ea; --card: #fffefa;
  --ink: #252b2c; --secondary: #626764; --muted: #737974;
  --accent: #967027; --accent-soft: #ede4d3; --border: #deded5;
  --rust: #9b6045; --rust-soft: #f3e8e1; --sage: #527361; --sage-soft: #e6ede7;
  --lavender: #7b6590; --lavender-soft: #eee8f2; --blue: #597d91;
  --nav-bg: rgba(250,249,246,.92); --shadow: 0 8px 32px rgba(31,38,34,.035);
  --display: 'Outfit', 'Avenir Next', 'Segoe UI', sans-serif;
  --body: 'Crimson Pro', Georgia, serif; --mono: 'JetBrains Mono', monospace;
  --math: 'EgoForesight Math', 'STIX Two Math', 'Cambria Math', math;
}
:root[data-theme="dark"] {
  color-scheme: dark; --bg: #10151a; --surface: #151c22; --soft: #1a2229; --card: #151c22;
  --ink: #e7e9e3; --secondary: #adb6af; --muted: #929e97;
  --accent: #d6ac65; --accent-soft: #302b22; --border: #303a3e;
  --rust: #d49d7f; --rust-soft: #312722; --sage: #98bda5; --sage-soft: #20312a;
  --lavender: #b7a2cc; --lavender-soft: #2b2634; --blue: #8db5ca;
  --nav-bg: rgba(16,21,26,.92); --shadow: 0 8px 32px rgba(0,0,0,.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark; --bg: #10151a; --surface: #151c22; --soft: #1a2229; --card: #151c22;
    --ink: #e7e9e3; --secondary: #adb6af; --muted: #929e97;
    --accent: #d6ac65; --accent-soft: #302b22; --border: #303a3e;
    --rust: #d49d7f; --rust-soft: #312722; --sage: #98bda5; --sage-soft: #20312a;
    --lavender: #b7a2cc; --lavender-soft: #2b2634; --blue: #8db5ca;
    --nav-bg: rgba(16,21,26,.92); --shadow: 0 8px 32px rgba(0,0,0,.12);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--display); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
math { font-family: var(--math); font-size: 1.12em; font-weight: 400; }
.math-value { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; font: 16px var(--math); }
.math-value math { font-size: inherit; }
.svg-math { font-family: var(--math); font-size: 1.35em; font-style: italic; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, video { display: block; max-width: 100%; height: auto; }
svg { display: block; max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
button { background: none; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
button:disabled { cursor: default; }
::selection { background: var(--accent-soft); color: var(--accent); }
sup { font-size: .64em; vertical-align: super; line-height: 0; }
sub { font-size: .72em; }
[hidden] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon, .brand-mark { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon.small { width: 16px; height: 16px; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.reading-width { max-width: 850px; }
.accent { color: var(--accent); }
.skip-link { position: fixed; left: 20px; top: -100px; padding: 10px 20px; background: var(--surface); border: 1px solid var(--accent); z-index: 100; }
.skip-link:focus { top: 12px; }
.site-nav { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: var(--nav-bg); backdrop-filter: blur(16px); }
.nav-inner { width: min(1200px, calc(100% - 64px)); height: 70px; margin: auto; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 19px; font-weight: 600; letter-spacing: -.6px; }
.brand-mark { width: 29px; height: 29px; color: var(--accent); stroke-width: 1.5; }
.nav-links { display: flex; margin-left: auto; gap: 30px; font-size: 14px; color: var(--secondary); }
.nav-links a { position: relative; padding: 23px 0; }
.nav-links a[aria-current="true"] { color: var(--accent); }
.nav-links a[aria-current="true"]::after { content: ''; position: absolute; bottom: 12px; height: 2px; left: 0; right: 0; background: var(--accent); }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.hero { padding-top: 65px; text-align: center; }
.eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; }
.hero-eyebrow span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
h1 { font-weight: 500; line-height: 1.18; }
.project-name { display: block; font-size: clamp(48px, 6.2vw, 78px); letter-spacing: -3.5px; margin: 15px 0 17px; font-weight: 550; }
.paper-title { display: block; font-size: clamp(25px, 3.1vw, 36px); letter-spacing: -.9px; line-height: 1.24; }
.hero-rule { height: 1px; width: 62px; background: var(--accent); margin: 30px auto 25px; opacity: .7; }
.authors { max-width: 865px; margin: auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: 16px; line-height: 1.6; }
.authors sup { margin-left: 2px; color: var(--accent); }
.authors a { text-underline-offset: 4px; }
.authors a:hover { text-decoration: underline; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 20px; max-width: 770px; margin: 17px auto 0; color: var(--secondary); font-size: 13px; }
.affiliations sup { margin-right: 3px; }
.author-note { font-size: 11px; margin-top: 8px; color: var(--muted); }
.resource-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.resource-link { display: inline-flex; gap: 9px; align-items: center; min-height: 43px; padding: 8px 17px; border: 1px solid var(--border); border-radius: 5px; font-size: 13px; background: var(--surface); transition: border-color .2s, transform .2s; }
a.resource-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.resource-link small { font: 9px var(--mono); letter-spacing: -.2px; color: var(--muted); border-left: 1px solid var(--border); padding-left: 8px; }
.resource-link.unavailable { color: var(--secondary); background: transparent; }
.hero-statement { font-family: var(--body); font-size: 29px; line-height: 1.26; margin: 46px 0 24px; }
.hero-statement em { color: var(--accent); font-weight: 400; }
.hero-filmstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.film-frame { display: block; position: relative; border-radius: 7px; overflow: hidden; background: #202522; isolation: isolate; }
.film-frame img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .6s; }
.film-frame:hover img { transform: scale(1.035); }
.film-frame::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,rgba(10,15,18,.82)); z-index: 0; }
.film-frame > span { display: flex; align-items: center; gap: 10px; position: absolute; inset: auto 16px 13px; color: #fff; font-size: 15px; z-index: 1; }
.film-frame i { font: normal 10px var(--mono); color: #d9b67a; }
.film-frame .icon { margin-left: auto; width: 18px; height: 18px; }
.film-caption { margin-top: 15px; color: var(--secondary); font-size: 12px; }
.film-caption a { margin-left: 10px; color: var(--accent); }
.idea-section { display: grid; grid-template-columns: 1fr 1.25fr; gap: 35px 70px; padding-block: 90px 85px; }
h2 { font: 500 clamp(32px, 3.3vw, 43px)/1.12 var(--display); letter-spacing: -1.3px; }
h2 em { font: italic 500 1.1em/1.1 var(--body); color: var(--accent); letter-spacing: -.7px; }
.section-intro .eyebrow, .section-heading .eyebrow { margin-bottom: 17px; }
.idea-copy { padding-top: 29px; color: var(--secondary); font: 22px/1.55 var(--body); }
.idea-copy p + p { margin-top: 12px; }
.idea-copy strong { color: var(--ink); font-weight: 600; }
.metrics-strip { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,1fr); margin-top: 15px; border-block: 1px solid var(--border); padding-block: 28px; text-align: center; }
.metrics-strip > div + div { border-left: 1px solid var(--border); }
.metrics-strip strong { font-size: 44px; letter-spacing: -1.5px; font-weight: 500; line-height: 1.2; }
.metrics-strip strong span { font-size: 23px; color: var(--accent); letter-spacing: -.5px; }
.metrics-strip p { font-size: 13px; color: var(--secondary); margin-top: 7px; }
.comparison-note { grid-column: 1/-1; font-size: 11px; color: var(--muted); text-align: center; margin-top: -20px; }
.comparison-note a { margin-left: 8px; color: var(--accent); }
.section-shell { background: var(--soft); border-block: 1px solid var(--border); padding-block: 80px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-deck { color: var(--secondary); font-size: 14px; line-height: 1.8; padding-bottom: 3px; }
.method-explorer { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.explorer-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 15px 26px; border-bottom: 1px solid var(--border); gap: 15px; }
.micro-label { font: 500 10px/1.4 var(--mono); letter-spacing: .6px; text-transform: uppercase; color: var(--secondary); }
.quiet-button { font-size: 12px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 4px; color: var(--secondary); background: var(--surface); white-space: nowrap; }
.quiet-button:hover { border-color: var(--accent); color: var(--accent); }
.method-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.method-tab { position: relative; padding: 18px 12px; font-size: 14px; font-weight: 500; color: var(--secondary); }
.method-tab + .method-tab { border-left: 1px solid var(--border); }
.method-tab > span { margin-right: 10px; font: 11px var(--mono); opacity: .65; }
.method-tab.active { color: var(--accent); background: var(--accent-soft); }
.method-tab.active::after { content: ''; height: 2px; position: absolute; bottom: -1px; inset-inline: 0; background: var(--accent); }
.method-panel { display: grid; grid-template-columns: .85fr 1.2fr; gap: 40px; padding: 34px; min-height: 486px; align-items: center; }
.component-tag { display: inline-block; font: 500 9px/1.6 var(--mono); letter-spacing: .25px; padding: 5px 8px; border-radius: 3px; margin-bottom: 17px; }
.rust { color: var(--rust); background: var(--rust-soft); }
.sage { color: var(--sage); background: var(--sage-soft); }
.lavender { color: var(--lavender); background: var(--lavender-soft); }
.panel-copy h3 { font-size: 28px; line-height: 1.2; letter-spacing: -.7px; font-weight: 500; margin-bottom: 14px; }
.panel-copy p { color: var(--secondary); font-size: 14px; line-height: 1.75; }
.panel-copy strong { color: var(--ink); font-weight: 500; }
.panel-copy .small-copy { font-size: 12px; margin-top: 12px; color: var(--muted); }
.tau-definition { margin: 14px 0; padding: 10px 13px; border-left: 2px solid var(--rust); background: var(--rust-soft); border-radius: 0 4px 4px 0; }
.tau-definition-heading { display: flex; align-items: baseline; gap: 12px; }
.tau-definition-heading math { font-size: 22px; color: var(--rust); }
.tau-definition-heading strong { font-size: 11px; font-weight: 500; }
.tau-endpoints { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 5px 0 6px; }
.tau-endpoints > span { font-size: 10px; color: var(--secondary); }
.tau-endpoints math { display: block math; font-size: 18px; color: var(--ink); margin-bottom: 1px; }
.tau-endpoints > span:nth-child(2) { font-size: 18px; color: var(--rust); }
.tau-modalities { display: flex; justify-content: center; gap: 20px; color: var(--secondary); font-size: 10px; }
.tau-modalities math { font-size: 16px; margin-right: 3px; }
.reliability-control { margin-top: 22px; }
.reliability-control label, .denoise-control label { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 12px; font-weight: 500; }
.reliability-control label > span { color: var(--rust); }
input[type="range"] { width: 100%; height: 20px; margin: 10px 0 3px; accent-color: var(--accent); cursor: pointer; }
#reliability { accent-color: var(--rust); }
.range-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.preset-buttons { display: flex; gap: 7px; margin-top: 17px; }
.preset-buttons button { font-size: 10px; border: 1px solid var(--border); border-radius: 4px; padding: 6px 9px; }
.preset-buttons button[aria-pressed="true"] { color: var(--rust); border-color: var(--rust); background: var(--rust-soft); }
.reliability-visual { border-left: 1px solid var(--border); padding-left: 25px; min-width: 0; }
.chart-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.live-dot { font: 9px var(--mono); color: var(--sage); white-space: nowrap; }
.live-dot::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--sage); }
.density-chart { width: 100%; margin: 19px 0 10px; color: var(--rust); overflow: visible; }
.chart-grid path, .chart-grid line { stroke: var(--border); stroke-width: 1; fill: none; }
.axis-label { font: 11px var(--display); fill: var(--muted); }
.vision-density { fill: none; stroke: var(--sage); stroke-width: 2; stroke-dasharray: 5 5; }
.action-density { fill: none; stroke: var(--rust); stroke-width: 3; }
#density-marker { fill: var(--rust); stroke: var(--surface); stroke-width: 2; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 15px; font-size: 10px; color: var(--secondary); }
.chart-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend math { font-size: 13px; }
.line-key { display: inline-block; width: 18px; height: 0; border-top: 2px solid; }
.rust-key { color: var(--rust); } .sage-key { color: var(--sage); } .gold-key { color: var(--accent); } .muted-key { color: var(--muted); }
.line-key.dashed { border-top-style: dashed; }
.corruption-readouts { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; margin-top: 24px; border-block: 1px solid var(--border); padding-block: 15px; }
.corruption-readouts div { display: flex; flex-direction: column; }
.corruption-readouts span { font-size: 10px; color: var(--muted); }
.corruption-readouts strong { font: 400 23px var(--math); margin-top: 7px; color: var(--rust); }
.corruption-readouts div:last-child strong { color: var(--sage); }
.sampler-equations { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 13px; color: var(--secondary); }
.sampler-equations > math { font-size: 17px; }
.sampler-equations > span { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 8px; font-size: 11px; }
.sampler-equations span math { font-size: 16px; }
.visual-footnote { color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 13px; }
.explorer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 26px; border-top: 1px solid var(--border); background: var(--soft); }
.explorer-bottom > span { font: italic 19px/1.3 var(--body); color: var(--secondary); }
.text-button { color: var(--accent); font-size: 12px; white-space: nowrap; padding: 5px 0; }
.text-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.training-badge { display: inline-flex; margin-top: 23px; padding: 7px 10px; border-left: 2px solid var(--lavender); background: var(--lavender-soft); color: var(--lavender); font: 10px var(--mono); }
.deployment-badge { color: var(--sage); background: var(--sage-soft); border-color: var(--sage); }
.distillation-visual { min-width: 0; }
.model-lane { padding: 14px 16px 12px; border: 1px solid var(--border); border-left: 3px solid currentColor; border-radius: 6px; background: var(--soft); }
.student-lane { color: var(--blue); } .teacher-lane { color: var(--lavender); }
.lane-label { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.lane-label strong { font-size: 13px; font-weight: 500; }
.lane-label > span { font-size: 10px; }
.lane-label math { font-size: 16px; }
.lane-flow { display: flex; align-items: center; gap: 12px; }
.frame-pair { display: grid; grid-template-columns: 1fr 1fr; width: 50%; gap: 4px; }
.frame-pair img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 3px; }
.corrupted-frame { position: relative; border-radius: 3px; overflow: hidden; }
.corrupted-frame img { filter: blur(1.2px); opacity: .55; }
.noise-texture { position: absolute; inset: -10px; opacity: .6; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.9' d='M0 0h120v80H0z'/%3E%3C/svg%3E"); animation: noise-shift .28s steps(2) infinite; }
.flow-connector { font-size: 24px; color: var(--muted); }
.layer-stack { flex: 1; display: flex; gap: 7px; align-items: center; }
.layer-stack i { height: 47px; flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-style: normal; }
.layer-stack math { font-size: 18px; }
.layer-stack .selected-layer { color: var(--surface); background: currentColor; border-color: transparent; }
.layer-stack .student-feature { color: #fff; background: var(--blue); animation: feature-pulse 3.8s ease-in-out infinite; }
.layer-stack .teacher-feature { color: #fff; background: var(--lavender); animation: feature-pulse 3.8s ease-in-out infinite 1.3s; }
.lane-detail { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 10px; }
.lane-detail > span { color: var(--muted); }
.lane-detail strong { font-weight: 500; }
.learning-paths { width: 100%; overflow: visible; }
.ema-update-path { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 8 5; animation: ema-flow 1.8s linear infinite; }
.distillation-path { fill: none; stroke: var(--lavender); stroke-width: 3; stroke-linejoin: round; }
#ema-arrow path { fill: var(--blue); }
#distillation-arrow path { fill: var(--lavender); }
.ema-path-label, .distillation-path-label { font: 500 14px var(--display); }
.ema-path-label { fill: var(--blue); }
.distillation-path-label, .distillation-target-note { fill: var(--lavender); }
.learning-path-detail { font: 11px var(--display); fill: var(--secondary); }
.distillation-target-note { font: 10px var(--display); }
.context-bar { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 5px; background: var(--soft); }
.inference-panel .context-bar { margin-top: 20px; }
.context-bar img { width: 72px; height: 47px; object-fit: cover; border-radius: 3px; }
.context-bar strong { font-size: 12px; font-weight: 500; }
.context-bar div > span { display: block; font-size: 9px; color: var(--muted); margin-top: 3px; }
.context-arrow { margin-left: auto; color: var(--muted); }
.context-model { font: 10px var(--mono); padding: 10px; border: 1px solid var(--border); border-radius: 4px; color: var(--sage); }
.joint-density-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.joint-density-heading > strong { font-size: 12px; font-weight: 500; }
.joint-density-heading .math-value { color: var(--rust); }
.joint-presets { margin: 7px 0 13px; }
.joint-density-chart { width: 100%; max-width: 420px; margin-inline: auto; overflow: visible; }
.joint-plot-background { fill: var(--soft); }
.joint-diagonal { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 4; fill: none; opacity: .6; }
.joint-axes { stroke: var(--muted); stroke-width: 1; fill: none; }
.joint-axis-label { font-size: 12px; }
.joint-excluded-label { fill: var(--muted); font: 12px var(--display); }
.joint-excluded-label .svg-math { font-size: 21px; }
.joint-endpoint-label { fill: var(--secondary); font: 11px var(--display); }
.joint-density-key { fill: var(--secondary); font: 12px var(--display); }
.joint-density-key .joint-key-note { font-size: 10px; fill: var(--muted); }
.joint-inference-halo { stroke: var(--surface); stroke-width: 6; fill: none; opacity: .8; }
.joint-inference-path { stroke: var(--lavender); stroke-width: 2.5; fill: none; }
.joint-direction-arrows { stroke: var(--lavender); stroke-width: 2; fill: none; marker-end: url(#inference-direction); }
#inference-direction path { stroke: var(--lavender); stroke-width: 1.5; fill: none; }
.joint-time-guides { stroke: var(--lavender); stroke-width: 1; fill: none; stroke-dasharray: 4 4; opacity: .65; }
.joint-time-marker { fill: var(--lavender); stroke: var(--surface); stroke-width: 2.5; }
.joint-path-legend { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--secondary); font-size: 11px; }
.joint-path-legend math { font-size: 18px; color: var(--lavender); margin-left: 3px; }
.lavender-key { color: var(--lavender); }
.joint-experts { display: grid; grid-template-columns: 1fr 42px 1fr; gap: 5px; margin-top: 17px; }
.expert { border: 1px solid var(--border); border-radius: 5px; padding: 12px; min-width: 0; background: var(--soft); }
.expert-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px; }
.expert-heading strong { font-size: 12px; font-weight: 500; }
.expert-heading .math-value { font: 18px var(--math); color: inherit; }
.vision-expert { color: var(--sage); } .action-expert { color: var(--accent); }
.expert-caption { display: block; color: var(--secondary); font-size: 10px; margin-top: 6px; }
.joint-link { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.joint-link > span { color: var(--sage); font-size: 26px; animation: feature-pulse 2.5s ease-in-out infinite; }
.joint-link small { text-align: center; font-size: 8px; line-height: 1.5; }
.denoise-control { margin-top: 19px; }
.denoise-control output { font: 11px var(--mono); color: var(--accent); }
.training-stages { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 20px; margin: 32px 0 13px; }
.stage-card { min-width: 0; }
.stage-heading { display: flex; gap: 14px; align-items: flex-start; min-height: 61px; }
.stage-number { flex-shrink: 0; padding: 7px 8px; border: 1px solid var(--border); border-radius: 4px; color: var(--accent); font: 12px var(--mono); }
.training-stages h3 { font-size: 15px; font-weight: 500; margin-bottom: 5px; }
.training-stages p { font-size: 12px; color: var(--secondary); }
.training-stages p strong { font-weight: 500; color: var(--sage); }
.stage-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.stage-photo { height: 96px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.stage-photo img { width: 100%; height: 100%; object-fit: contain; }
.stage-gallery figcaption { margin-top: 6px; font-size: 10px; color: var(--secondary); text-align: center; line-height: 1.4; }
.stage-outcome { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--border); }
.stage-outcome > span { font-size: 11px; font-weight: 500; color: var(--blue); }
.stage-two .stage-outcome > span { color: var(--lavender); }
.stage-outcome p { font-size: 11px; margin-top: 3px; }
.stage-arrow { color: var(--accent); align-self: center; text-align: center; font-size: 24px; }
.training-figure-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; font-size: 10px; color: var(--muted); margin-top: 12px; }
.training-figure-note a { color: var(--accent); text-underline-offset: 3px; }
.training-figure-note a:hover { text-decoration: underline; }
.research-details { border-block: 1px solid var(--border); margin-top: 25px; }
.research-details summary { cursor: pointer; display: flex; justify-content: space-between; padding: 17px 2px; font-size: 13px; color: var(--secondary); list-style: none; }
.research-details summary::-webkit-details-marker { display: none; }
.research-details summary > span { color: var(--accent); font-size: 21px; line-height: 1; transition: transform .2s; }
.research-details[open] summary > span { transform: rotate(45deg); }
.research-details figure { padding-bottom: 22px; }
.research-details figure img { width: 100%; background: white; border-radius: 4px; }
.research-details figcaption { font-size: 11px; color: var(--muted); margin-top: 12px; }
.demos-section { padding-block: 85px; }
.demo-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 23px; }
.demo-tabs button { position: relative; padding: 12px 25px; color: var(--secondary); font-size: 14px; }
.demo-tabs button:first-child { padding-left: 0; }
.demo-tabs button > span { font: 10px var(--mono); margin-right: 10px; color: var(--muted); }
.demo-tabs button.active { color: var(--accent); }
.demo-tabs button.active::after { content: ''; position: absolute; bottom: -1px; left: 20px; right: 20px; height: 2px; background: var(--accent); }
.demo-tabs button:first-child.active::after { left: 0; }
.video-frame { position: relative; background: #0c1318; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.video-frame video { width: 100%; aspect-ratio: 16/9; background: #0c1318; }
.video-speed { position: absolute; top: 17px; right: 17px; padding: 5px 10px; color: #fff; background: rgba(18,25,25,.75); border: 1px solid rgba(255,255,255,.25); border-radius: 3px; font: 11px var(--mono); pointer-events: none; }
.demo-caption { display: flex; justify-content: space-between; gap: 40px; padding: 25px 0 20px; border-bottom: 1px solid var(--border); align-items: center; }
.demo-caption h3 { font-size: 24px; line-height: 1.3; font-weight: 450; letter-spacing: -.6px; }
.demo-caption p { font: 19px/1.5 var(--body); color: var(--secondary); margin-top: 7px; }
.task-result { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; padding-left: 25px; border-left: 1px solid var(--border); }
.task-result strong { font-size: 40px; line-height: 1.1; color: var(--accent); font-weight: 500; letter-spacing: -1px; }
.task-result strong > span { font-size: 22px; }
.task-result > span { font-size: 11px; color: var(--muted); margin-top: 5px; }
.demo-note { font-size: 11px; margin-top: 14px; color: var(--muted); line-height: 1.7; }
.segmented-control { display: flex; background: var(--surface); border: 1px solid var(--border); padding: 4px; border-radius: 5px; }
.segmented-control button { font-size: 11px; padding: 7px 12px; border-radius: 3px; }
.segmented-control button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.forecast-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.forecast-grid img { width: 100%; aspect-ratio: 5/3; object-fit: contain; border: 1px solid var(--border); border-radius: 5px; background: #333; }
.forecast-grid figure { min-width: 0; }
.forecast-grid figcaption { margin-top: 13px; font-size: 12px; font-weight: 500; }
.forecast-grid figcaption > span { font: 9px var(--mono); color: var(--muted); margin-right: 7px; }
.forecast-grid figcaption small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); font-weight: 400; }
.prediction-figure img { border: 2px solid var(--accent); }
.prediction-figure figcaption { color: var(--accent); }
.figure-note { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 23px; }
.results-section { padding-block: 85px; }
.scaling-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scaling-chart { padding: 24px 20px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; }
.chart-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-inline: 5px; margin-bottom: 12px; }
.chart-heading h3 { font-size: 17px; font-weight: 500; letter-spacing: -.3px; }
.chart-heading > span { font: 9px var(--mono); color: var(--muted); }
.scaling-chart svg { width: 100%; overflow: visible; }
.scaling-chart figcaption { font-size: 12px; color: var(--secondary); text-align: center; padding-top: 12px; }
.scaling-chart figcaption strong { color: var(--accent); font-weight: 500; }
.scaling-ours { stroke: var(--accent); fill: none; stroke-width: 2.8; }
.scaling-baseline { stroke: var(--muted); fill: none; stroke-width: 2; stroke-dasharray: 5 5; }
.chart-point { stroke-width: 2; stroke: var(--surface); transition: r .2s; }
.chart-point.ours { fill: var(--accent); }
.chart-point.baseline { fill: var(--muted); }
.selected-scale { stroke: var(--accent); stroke-opacity: .4; stroke-dasharray: 3 5; }
.chart-value { font: 500 12px var(--mono); fill: var(--accent); }
.results-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 21px; }
.results-controls .chart-legend { font-size: 12px; }
.scale-picker { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.scale-picker > span { color: var(--muted); margin-right: 2px; }
.scale-picker button { padding: 5px 10px; border: 1px solid var(--border); border-radius: 4px; font: 10px var(--mono); }
.scale-picker button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.scale-summary { display: flex; align-items: center; justify-content: center; gap: 35px; margin-top: 22px; padding: 18px 15px; background: var(--soft); border-radius: 4px; font-size: 12px; color: var(--secondary); }
.scale-summary > strong { color: var(--ink); font-weight: 500; }
.scale-summary b { color: var(--accent); font-weight: 500; }
.benchmark-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; margin-top: 55px; padding-top: 35px; border-top: 1px solid var(--border); }
.benchmark-intro h3 { font-size: 25px; font-weight: 450; line-height: 1.3; letter-spacing: -.5px; }
.benchmark-intro p { font: 19px/1.5 var(--body); color: var(--secondary); margin-top: 13px; }
.table-wrapper { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--muted); font: 10px var(--mono); margin-bottom: 15px; text-transform: uppercase; letter-spacing: .5px; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); }
thead th { color: var(--secondary); font-weight: 500; font-size: 12px; }
thead small { display: block; font-size: 9px; font-weight: 400; color: var(--muted); }
th:first-child { text-align: left; padding-left: 7px; }
tbody th { font-weight: 400; }
.ours-row { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.ours-row th { font-weight: 500; }
.ours-row th > span { font: 9px var(--mono); margin-left: 5px; }
.table-note { font-size: 10px; margin-top: 12px; color: var(--muted); }
.measurements-table { margin-bottom: 20px; font-size: 12px; white-space: nowrap; }
.abstract-section .eyebrow { margin-bottom: 12px; }
.abstract-section h2 { font-size: 34px; }
.abstract-copy { margin-top: 25px; font: 21px/1.65 var(--body); color: var(--secondary); }
.abstract-copy p + p { margin-top: 18px; }
.abstract-copy strong { color: var(--ink); font-weight: 600; }
.abstract-copy em { color: var(--accent); }
.citation-section { padding-block: 70px 60px; }
.citation-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.citation-heading .eyebrow { margin-bottom: 10px; }
.citation-heading h2 { font-size: 32px; }
.copy-button { min-width: 105px; padding: 8px 12px; }
.citation-note { font-size: 12px; color: var(--muted); margin-top: 15px; }
.citation-code { margin-top: 20px; padding: 23px 25px; background: var(--soft); border: 1px solid var(--border); border-radius: 6px; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font: 11px/1.8 var(--mono); color: var(--secondary); }
.copy-status { display: block; min-height: 20px; margin-top: 6px; font-size: 11px; color: var(--sage); }
.site-footer { border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 25px; align-items: center; padding-block: 30px; }
.site-footer .brand { font-size: 16px; }
.site-footer .brand-mark { width: 25px; height: 25px; }
.site-footer p { color: var(--muted); font-size: 10px; text-align: center; }
.site-footer p a { color: var(--secondary); }
.back-to-top { color: var(--secondary); font-size: 11px; }
.motion-paused *, .motion-offscreen * { animation-play-state: paused !important; }
@keyframes feature-pulse { 0%,100% { opacity: .7; } 45%,65% { opacity: 1; } }
@keyframes ema-flow { to { stroke-dashoffset: -26; } }
@keyframes noise-shift { 0% { transform: translate(0); } 50% { transform: translate(4px,-5px); } 100% { transform: translate(-4px,3px); } }
@media (max-width: 1000px) {
  .method-panel { gap: 25px; padding: 26px; grid-template-columns: .85fr 1.15fr; }
  .panel-copy h3 { font-size: 25px; }
  .component-tag { font-size: 8px; }
  .reliability-visual { padding-left: 18px; }
  .chart-topline { flex-wrap: wrap; }
  .chart-heading { flex-direction: column; gap: 3px; }
  .benchmark-section { gap: 35px; }
  .frame-pair { width: 45%; }
  .layer-stack { gap: 4px; }
  .lane-flow { gap: 7px; }
}
@media (max-width: 800px) {
  .container, .nav-inner { width: calc(100% - 40px); }
  .nav-inner { height: 62px; gap: 20px; }
  .hero { padding-top: 45px; }
  .project-name { font-size: 62px; }
  .paper-title { font-size: 29px; }
  .authors { max-width: 640px; font-size: 14px; gap: 7px 16px; }
  .affiliations { font-size: 11px; gap: 4px 14px; }
  .hero-statement { margin-top: 35px; }
  .film-frame > span { font-size: 12px; inset-inline: 10px; gap: 6px; }
  .film-frame .icon { width: 14px; height: 14px; }
  .film-frame i { font-size: 8px; }
  .idea-section { gap: 30px; padding-block: 65px; }
  .idea-copy { font-size: 20px; padding-top: 20px; }
  .section-heading { align-items: flex-start; gap: 20px; }
  .section-deck { font-size: 12px; max-width: 270px; padding-top: 29px; }
  .method-panel { grid-template-columns: 1fr; padding: 28px; gap: 28px; min-height: auto; }
  .panel-copy h3 br { display: none; }
  .panel-copy h3 { font-size: 28px; }
  .panel-copy p { font-size: 14px; max-width: 650px; }
  .reliability-control { max-width: 480px; }
  .reliability-visual { border-left: 0; border-top: 1px solid var(--border); padding: 22px 0 0; }
  .density-chart { max-height: 300px; }
  .corruption-readouts { text-align: center; }
  .component-tag { font-size: 10px; }
  .distillation-visual, .inference-visual { max-width: 550px; width: 100%; margin: auto; }
  .explorer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .training-stages { gap: 12px; grid-template-columns: 1fr 25px 1fr; }
  .training-stages h3 { font-size: 14px; }
  .training-stages p { font-size: 11px; }
  .stage-heading { min-height: 80px; gap: 10px; }
  .stage-gallery { gap: 6px; }
  .stage-photo { height: 76px; }
  .stage-gallery figcaption { font-size: 9px; }
  .section-shell { padding-block: 65px; }
  .demos-section, .results-section { padding-block: 65px; }
  .forecast-grid { grid-template-columns: repeat(2, 1fr); gap: 25px 16px; }
  .forecast-grid figcaption { font-size: 13px; }
  .benchmark-section { grid-template-columns: 1fr; gap: 25px; margin-top: 40px; }
  .scale-summary { gap: 20px; font-size: 11px; }
  .task-result strong { font-size: 34px; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 78px; }
  .container, .nav-inner { width: calc(100% - 32px); }
  .brand { gap: 6px; font-size: 16px; letter-spacing: -.5px; }
  .brand-mark { width: 25px; height: 25px; }
  .nav-inner { gap: 12px; }
  .nav-links { gap: 13px; font-size: 11px; }
  .theme-toggle { width: 30px; height: 30px; }
  .theme-toggle .icon { width: 16px; height: 16px; }
  .hero { padding-top: 35px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  .project-name { font-size: 49px; letter-spacing: -2.4px; margin-block: 15px; }
  .paper-title { font-size: 25px; letter-spacing: -.7px; line-height: 1.25; }
  .desktop-break { display: none; }
  .hero-rule { margin-block: 23px 20px; }
  .authors { font-size: 13px; gap: 6px 13px; }
  .affiliations { gap: 4px 10px; font-size: 10px; margin-top: 14px; }
  .author-note { font-size: 10px; }
  .resource-links { gap: 7px; margin-top: 22px; }
  .resource-link { padding: 8px 10px; gap: 6px; font-size: 11px; min-height: 38px; }
  .resource-link .icon { width: 15px; height: 15px; }
  .resource-link .small { display: none; }
  .resource-link small { font-size: 8px; padding-left: 6px; }
  .hero-statement { font-size: 25px; margin: 32px 0 22px; }
  .hero-filmstrip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .film-frame:first-child { grid-column: 1/-1; }
  .film-frame:first-child img { aspect-ratio: 16/8; }
  .film-frame img { aspect-ratio: 16/10; }
  .film-frame > span { font-size: 11px; bottom: 10px; }
  .film-frame:first-child > span { font-size: 14px; inset-inline: 14px; }
  .film-frame i { display: none; }
  .film-caption { font-size: 10px; line-height: 1.8; }
  .film-caption a { display: block; margin-left: 0; }
  .idea-section { grid-template-columns: 1fr; gap: 20px; padding-block: 55px; }
  h2 { font-size: 32px; letter-spacing: -.9px; }
  .idea-copy { padding-top: 0; font-size: 21px; }
  .metrics-strip { padding-block: 23px; gap: 0; margin-top: 6px; }
  .metrics-strip strong { font-size: 29px; letter-spacing: -1px; }
  .metrics-strip strong span { font-size: 14px; }
  .metrics-strip p { font-size: 10px; max-width: 100px; margin: 7px auto 0; padding-inline: 3px; }
  .comparison-note { margin-top: -6px; font-size: 10px; }
  .comparison-note a { display: block; margin: 4px 0 0; }
  .section-shell { padding-block: 50px; }
  .section-heading { flex-direction: column; gap: 15px; margin-bottom: 25px; }
  .section-deck { padding-top: 0; font-size: 12px; max-width: none; }
  .section-heading .eyebrow { font-size: 10px; }
  .explorer-toolbar { padding: 13px 14px; gap: 8px; }
  .micro-label { font-size: 9px; }
  .quiet-button { font-size: 10px; }
  .method-tabs { gap: 0; }
  .method-tab { font-size: 11px; padding: 12px 7px; line-height: 1.45; }
  .method-tab > span { display: block; font-size: 10px; margin: 0 0 4px; }
  .method-panel { padding: 22px 16px; gap: 22px; }
  .component-tag { font-size: 8px; margin-bottom: 14px; }
  .panel-copy h3 { font-size: 25px; }
  .panel-copy p { font-size: 13px; }
  .panel-copy .small-copy { font-size: 11px; }
  .corruption-readouts { gap: 8px; }
  .corruption-readouts strong { font-size: 20px; }
  .corruption-readouts span { font-size: 9px; }
  .chart-legend { gap: 10px; font-size: 9px; }
  .visual-footnote { font-size: 9px; }
  .explorer-bottom { padding: 15px 16px; }
  .explorer-bottom > span { font-size: 17px; }
  .text-button { font-size: 11px; }
  .training-stages { grid-template-columns: 1fr; gap: 24px; }
  .stage-arrow { display: none; }
  .training-stages h3 { font-size: 15px; }
  .training-stages p { font-size: 12px; }
  .stage-heading { min-height: 0; }
  .stage-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .stage-photo { height: 84px; }
  .stage-gallery figcaption { font-size: 10px; }
  .stage-outcome p { font-size: 11px; }
  .training-figure-note { margin-top: 16px; }
  .model-lane { padding: 10px; }
  .lane-label > span { font-size: 8px; }
  .lane-label strong { font-size: 12px; }
  .layer-stack i { height: 34px; font-size: 13px; }
  .frame-pair { width: 49%; }
  .layer-stack math { font-size: 18px; }
  .lane-label math { font-size: 14px; }
  .lane-detail { font-size: 8px; }
  .tau-definition-heading math { font-size: 22px; }
  .sampler-equations > math { font-size: 17px; }
  .sampler-equations span math { font-size: 16px; }
  .joint-axis-label { font-size: 17px; }
  .joint-excluded-label { font-size: 15px; }
  .joint-density-key { font-size: 16px; }
  .joint-density-key .joint-key-note { font-size: 12px; }
  .joint-endpoint-label { font-size: 14px; }
  .ema-path-label, .distillation-path-label { font-size: 16px; }
  .learning-path-detail { font-size: 12px; }
  .context-bar { gap: 7px; padding: 8px; }
  .context-bar img { width: 57px; height: 40px; }
  .context-model { padding: 7px; font-size: 9px; }
  .context-arrow { display: none; }
  .context-bar strong { font-size: 11px; }
  .context-bar div > span { font-size: 8px; }
  .joint-experts { grid-template-columns: 1fr 30px 1fr; gap: 2px; }
  .expert { padding: 8px; }
  .expert-heading strong { font-size: 11px; }
  .expert-heading .math-value { font-size: 18px; }
  .expert-caption { font-size: 9px; }
  .joint-link small { font-size: 7px; }
  .demos-section, .results-section { padding-block: 50px; }
  .demo-tabs { justify-content: space-between; }
  .demo-tabs button { font-size: 12px; padding: 10px 8px; }
  .demo-tabs button > span { display: block; font-size: 8px; margin: 0 0 3px; text-align: left; }
  .demo-tabs button.active::after { inset-inline: 8px; }
  .video-speed { top: 9px; right: 9px; font-size: 9px; padding: 4px 7px; }
  .demo-caption { gap: 15px; align-items: flex-start; padding: 20px 0; }
  .demo-caption h3 { font-size: 20px; }
  .demo-caption p { font-size: 17px; line-height: 1.4; }
  .task-result { padding-left: 12px; }
  .task-result strong { font-size: 30px; }
  .task-result > span { font-size: 8px; max-width: 65px; white-space: normal; text-align: right; }
  .demo-note { font-size: 10px; }
  .forecast-grid { gap: 20px 10px; }
  .forecast-grid figcaption { font-size: 11px; }
  .forecast-grid figcaption > span { font-size: 8px; margin-right: 4px; }
  .forecast-grid figcaption small { font-size: 9px; }
  .figure-note { font-size: 10px; }
  .scaling-charts { grid-template-columns: 1fr; gap: 15px; }
  .scaling-chart { padding: 18px 12px; }
  .chart-heading { flex-direction: row; }
  .chart-heading h3 { font-size: 16px; }
  .chart-heading > span { font-size: 8px; }
  .results-controls { align-items: flex-start; flex-direction: column; gap: 16px; }
  .results-controls .chart-legend { font-size: 11px; }
  .scale-summary { flex-wrap: wrap; gap: 8px 20px; font-size: 11px; justify-content: flex-start; }
  .scale-summary > strong { width: 100%; }
  .benchmark-intro h3 { font-size: 23px; }
  .benchmark-intro p { font-size: 18px; }
  th, td { padding: 11px 7px; }
  .abstract-copy { font-size: 20px; }
  .citation-section { padding-block: 50px 35px; }
  .citation-code { padding: 18px 15px; }
  code { font-size: 10px; line-height: 1.8; }
  .citation-note { font-size: 11px; }
  .site-footer { flex-wrap: wrap; gap: 20px; padding-block: 25px; }
  .site-footer p { order: 3; width: 100%; text-align: left; }
}
@media (max-width: 359px) {
  .nav-links { gap: 9px; }
  .nav-inner { gap: 9px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 21px; height: 21px; }
  .project-name { font-size: 43px; }
  .paper-title { font-size: 23px; }
  .resource-link { font-size: 10px; padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-nav, .resource-links, .hero-filmstrip, .film-caption, .theme-toggle, .quiet-button, .text-button, .back-to-top { display: none; }
  body { background: white; color: #222; }
  .container { width: 100%; }
  .hero { padding-top: 0; }
  .section-shell { background: white; }
  .method-panel { break-inside: avoid; }
  .section-shell, .idea-section, .demos-section, .results-section, .citation-section { padding-block: 30px; }
  a { color: inherit; }
}
