:root {
  color-scheme: dark;
  --bg: #0a1628;
  --panel: #10213a;
  --text: #e4eaf3;
  --muted: #a5b4c9;
  --blue: #a7baff;
  --green: #70e0c2;
  --border: #293b54;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--text); background: var(--bg); font: 16px/1.75 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 1000px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 48% 8%, #24396380, transparent 65%); }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--green); }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: #f6f8fc; line-height: 1.25; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.35rem); font-weight: 700; letter-spacing: -.035em; }
h3 { font-size: 1.15rem; font-weight: 650; }
p + p { margin-top: 1em; }
strong { color: #f3f6fb; font-weight: 650; }
sup { font-size: .65em; line-height: 0; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 64px; }
.section-head { width: 100%; margin: 0 auto 32px; text-align: center; }
.section-head h2 { font-size: clamp(1.65rem, 3.2vw, 2.2rem); font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.section-head p { color: var(--muted); margin: 16px 0 0; text-align: left; }
.muted { color: var(--muted); }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100; padding: 10px 18px; background: var(--panel); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 24px; }
.brand { font-size: 1.08rem; font-weight: 750; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.brand-mark { color: var(--green); margin-right: 7px; }
.nav-links { display: flex; align-items: center; gap: 23px; }
.nav-links a { color: var(--muted); font-size: .82rem; text-decoration: none; }
.nav-links a:hover { color: #fff; }
.menu-toggle { display: none; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--text); padding: 5px 12px; }
.hero { padding: 76px 0 54px; text-align: center; }
.venue { margin-top: 22px; color: var(--green); font-size: 1rem; letter-spacing: .08em; font-weight: 600; }
.hero h1 { max-width: 896px; margin-inline: auto; font-size: 60px; font-weight: 800; line-height: 1.25; letter-spacing: normal; text-wrap: wrap; }
.hero .project-name { display: block; color: #fff; }
.hero .project-subtitle { background: linear-gradient(to right, #60a5fa, #818cf8, #34d399); color: transparent; background-clip: text; }
.authors { max-width: 870px; margin: 30px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 19px; font-size: .94rem; color: #c9d5e7; }
.author-break { flex-basis: 100%; height: 0; }
.affiliations { color: var(--muted); margin-top: 14px; font-size: .86rem; }
.author-notes { color: var(--muted); font-size: .74rem; margin-top: 4px; }
.hero-links { display: flex; flex-wrap: nowrap; gap: 12px; margin-top: 27px; padding: 6px; overflow-x: auto; scrollbar-width: thin; }
.hero-links > :first-child { margin-inline-start: auto; }
.hero-links > :last-child { margin-inline-end: auto; }
.button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 9px; padding: 9px 21px; font-size: .84rem; font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1px solid #415b81; border-radius: 8px; background: #1a3152; color: #e6edff; text-decoration: none; transition: background .15s, border-color .15s; }
.button:hover { background: #254269; border-color: #82a6e0; color: #fff; }
.button svg { width: 17px; height: 17px; flex-shrink: 0; }
.button-icon { width: 18px; height: 18px; flex-shrink: 0; object-fit: contain; }
.hero-summary { max-width: 700px; margin: 26px auto 0; font-size: .95rem; color: var(--muted); }
.figure { min-width: 0; }
.figure-link { display: block; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 8px 32px #0003; }
.figure img { display: block; width: 100%; height: auto; }
figcaption { width: 100%; max-width: none; color: var(--muted); font-size: .8rem; line-height: 1.65; margin: 12px 0 0; text-align: center; text-wrap: wrap; }
/* Short captions shrink to their text width; wrapped captions fill the figure. */
.caption-text { display: inline-block; max-width: 100%; text-align: left; vertical-align: top; }
.abstract { padding: 34px 40px; border: 1px solid #314769; border-radius: 16px; background: linear-gradient(135deg, #152b4a, #10213a); color: #cbd5e4; font-size: 1rem; line-height: 1.85; }
.emphasis-blue { color: #a9caff; }
.emphasis-green { color: #8ce2ca; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { border: 1px solid #293b54; background: #0f1f3d99; border-radius: 14px; padding: 25px; }
.highlight-card { padding: 26px 22px; }
.highlight-icon { display: block; font-size: 1.85rem; line-height: 1.3; margin-bottom: 14px; }
.highlight-card h3 { font-size: 1.06rem; line-height: 1.4; }
.highlight-card p { margin-top: 12px; font-size: .85rem; line-height: 1.75; color: var(--muted); }
.strategy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 48px auto 0; }
.strategy-card { padding: 24px 16px; border: 1px solid #748ffc33; border-top: 3px solid #748ffc80; border-radius: 12px; background: #ffffff0a; text-align: center; }
.strategy-card:nth-child(2) { border-color: #20c99733; border-top-color: #20c99799; }
.strategy-card:nth-child(3) { border-color: #be82ff40; border-top-color: #be82ffb3; background: #be82ff0a; }
.strategy-label { color: #748ffc; font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.strategy-card:nth-child(2) .strategy-label { color: #38d9a9; }
.strategy-card:nth-child(3) .strategy-label { color: #d0a0ff; }
.strategy-card h3 { color: #bac8ff; font-size: 17px; font-weight: 600; line-height: 1.5; text-wrap: wrap; }
.strategy-card:nth-child(2) h3 { color: #96f2d7; }
.strategy-card:nth-child(3) h3 { color: #e8d0ff; }
.strategy-card p { font-size: 14px; line-height: 1.625; color: #9ca3af; margin-top: 12px; text-align: left; }
.best-badge { display: inline-block; justify-self: center; align-self: start; margin-top: 12px; padding: 4px 12px; border: 1px solid #be82ff40; border-radius: 9999px; background: #be82ff1f; color: #d0a0ff; font-size: 12px; font-weight: 600; line-height: 1.333; }
.result-controls { display: none; margin: 40px 0 20px; }
.js .result-controls { display: grid; gap: 16px; }
.control-row, .control-group { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
.control-label, .js .result-panel caption, .ablation-table caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.choice { display: inline-flex; align-items: center; justify-content: center; width: 208px; height: 44px; padding: 8px 16px; border-radius: 9999px; border: 0; background: #ffffff0d; color: #ffffff80; font-size: 14px; font-weight: 600; line-height: 1.5; transition: background .2s, color .2s; }
.choice[aria-pressed="true"] { background: #4c6ef533; color: #91a7ff; }
.choice:hover { color: #fff; }
#audio-controls { margin-top: 16px; }
#audio-controls .choice { color: #ffffff66; }
#audio-controls .choice[aria-pressed="true"] { background: #4c6ef526; color: #91a7ff; }
.result-panel { margin-bottom: 22px; }
.js .result-panel { margin-bottom: 0; }
.table-scroll, .ablation-card { padding: 24px; border: 1px solid #ffffff0f; border-radius: 16px; background: #0f1f3d99; }
.table-scroll, .ablation-scroll { overflow-x: auto; }
.result-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.5; color: #e2e8f0; }
.result-table caption { text-align: left; color: #9ca3af; font-size: 13px; }
.result-table thead th { padding: 10px 8px; text-align: center; white-space: nowrap; font-weight: 600; color: #91a7ff; background: #4c6ef526; }
.result-table td, .result-table tbody th { padding: 8px; text-align: center; border-bottom: 1px solid #ffffff0d; }
.result-table .method-name, .result-table th:first-child { text-align: left; font-weight: 600; white-space: nowrap; padding-left: 12px; }
.result-table strong { color: inherit; font-weight: 700; }
.result-table thead a { color: inherit; text-decoration: none; }
.result-table thead a:hover { text-decoration: underline; }
.result-table tbody tr:hover > * { background: #ffffff08; }
.result-table .baseline { background: #4c6ef50f; }
.result-table .best { color: #38d9a9; font-weight: 700; }
.gain { color: #51cf66; font-size: 11px; white-space: nowrap; }
.ablation-card { margin-top: 40px; }
.ablation-heading { margin: 0 0 4px; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.5; }
.ablation-legend { margin-bottom: 16px; color: #9ca3af; font-size: 12px; line-height: 1.333; }
.ablation-table thead th[colspan] { border-bottom: 1px solid #ffffff1a; text-align: center; }
.ablation-table .drop { display: block; font-size: 10px; }
.curation-color, .curation-row .drop { color: #c0392b; }
.reward-color, .reward-row .drop { color: #b08acb; }
.table-note { font-size: .76rem; color: var(--muted); margin-top: 13px; }
.insight-list { margin: 0; padding: 32px; border: 1px solid #ffffff0f; border-radius: 16px; background: #0f1f3d99; list-style: none; counter-reset: insight; }
.insight-list li { display: flex; gap: 16px; counter-increment: insight; }
.insight-list li + li { margin-top: 20px; }
.insight-list li::before { content: counter(insight, decimal-leading-zero); flex-shrink: 0; color: #3b82f680; font-size: 24px; font-weight: 900; line-height: 1.333; }
.insight-list p { color: #d1d5db; font-size: 16px; line-height: 1.625; }
.insight-list strong { color: #fff; font-weight: 700; }
.wide-figure { width: 100%; margin: 32px auto 0; }
.figure-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; margin: 56px auto 0; }
.figure-pair figcaption { font-size: 12px; }
.curve-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 38px auto 0; }
.curve-grid .figure-link { aspect-ratio: 1.55; display: flex; align-items: center; }
.curve-grid img { height: 100%; object-fit: contain; }
.citation-content { max-width: 768px; margin-inline: auto; }
.cite-heading { margin-bottom: 1.2rem; }
.cite-eyebrow { margin: 0 0 .9rem; color: #ffffff73; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; }
.cite-title { margin: 0; color: #fff; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.cite-card { padding: 1rem; background: #0f1f3d99; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid #ffffff0f; border-radius: 16px; }
#citation-block { margin: 0; overflow-x: auto; padding: 1rem; border-radius: 12px; border: 1px solid #ffffff14; background: #00000059; color: #d7dbff; font: .89rem/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre; }
.cite-button { display: none; margin-top: .85rem; border-radius: 10px; border: 1px solid #ffffff1a; background: #ffffff0d; color: #e2e8f0; padding: .6rem .88rem; font-weight: 600; font-size: .88rem; line-height: 1.5; box-shadow: inset 0 1px 0 #ffffff1f; transition: transform .22s, background-color .22s, border-color .22s; }
.js .cite-button { display: inline-block; }
.cite-button:hover { background: #ffffff14; border-color: #ffffff2e; }
.cite-button:active { transform: scale(.98); }
.cite-feedback { min-height: 1.3rem; margin: .45rem 0 0; color: #ffffff80; font-size: .86rem; }
.site-footer { border-top: 1px solid #ffffff0d; padding: 40px 24px; color: #6b7280; font-size: 14px; line-height: 1.5; }
.footer-content { text-align: center; }
@supports (grid-template-rows: subgrid) {
  .strategy-card, .highlight-card { display: grid; grid-template-rows: subgrid; row-gap: 0; }
  .strategy-card { grid-row: span 4; }
  .highlight-card { grid-row: span 3; }
  .strategy-card p, .highlight-card p { align-self: start; }
}
@supports not (grid-template-rows: subgrid) {
  @media (min-width: 701px) {
    .highlight-card h3 { min-height: 2.8em; }
  }
}
@media (max-width: 1050px) {
  .highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .strategy-grid { gap: 12px; }
  .card { padding: 21px; }
  .strategy-card { padding: 24px 16px; }
  .nav-links { gap: 15px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 36px); }
  .section { padding-block: 42px; }
  .hero { padding-top: 45px; }
  .authors { font-size: .83rem; gap: 7px 14px; }
  .hero-summary { font-size: .87rem; }
  .author-break { display: none; }
  .hero-links { gap: 8px; }
  .hero-links .button { gap: 6px; padding: 9px 8px; font-size: .8rem; }
  .nav-bar { flex-wrap: wrap; gap: 0; padding-block: 14px; }
  .nav-links { width: 100%; flex-wrap: wrap; gap: 12px 20px; padding-top: 14px; }
  .js .menu-toggle { display: block; }
  .js .nav-links { display: none; }
  .js .nav-links.is-open { display: flex; }
  .abstract { padding: 24px; font-size: .94rem; }
  .highlight-grid, .strategy-grid, .figure-pair, .curve-grid { grid-template-columns: 1fr; }
  .strategy-card, .highlight-card { display: block; grid-row: auto; }
  .insight-list { padding: 24px 20px; }
  .insight-list li { gap: 14px; }
  .insight-list p { font-size: .88rem; }
}
@media (max-width: 767px) {
  .hero h1 { font-size: 36px; }
}
@media (max-width: 768px) {
  .result-table { font-size: 11px; }
  .result-table th, .result-table td { padding: 6px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
