@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Bricolage;
  src: url("assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #172c2b;
  --muted: #4b605d;
  --green: #226654;
  --mint: #e4f2e7;
  --paper: #fafbf8;
  --line: #d7e1da;
  --heading: Bricolage, "DM Sans", Arial, sans-serif;
  font: 100%/1.55 "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 5.8rem;
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
body { min-width: 280px; }
button, summary { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #835db6; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1240px, calc(100% - 7rem)); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 12px; z-index: 30; color: white; padding: .6rem 1rem; background: var(--ink); }
.site-header { position: sticky; top: 0; z-index: 10; background: #fafbf8f5; border-bottom: 1px solid var(--line); }
.nav-row, nav, .brand, .nav-paper, .button, .hero-actions, .film-header, .film-header > span, .section-kicker, footer .wrap { display: flex; align-items: center; }
.nav-row { min-height: 4.35rem; gap: 3rem; }
.brand { gap: .45rem; font: 800 1.32rem/1 var(--heading); letter-spacing: -.06em; }
.brand img { display: block; }
nav { gap: clamp(1.1rem, 2.4vw, 2.25rem); margin-left: auto; }
nav a, .nav-paper { font-size: .9rem; font-weight: 600; }
nav a { color: var(--muted); padding-block: .65rem; }
nav a:hover, nav a[aria-current="location"], footer a:hover, .text-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: .28em; }
.nav-paper { gap: .6rem; border: 1px solid #bfcec5; padding: .44rem .88rem; border-radius: .5rem; }
.nav-paper:hover, .secondary:hover { background: var(--mint); }
.file-icon { position: relative; display: inline-block; width: .77em; height: .99em; border: 1.5px solid currentColor; border-radius: 2px; flex: none; }
.file-icon::after { content: ""; position: absolute; left: 18%; top: 46%; width: 52%; height: 1px; background: currentColor; box-shadow: 0 .18em 0 currentColor; }
.hero { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.12fr); align-items: center; gap: clamp(2rem, 4.7vw, 5rem); padding-block: clamp(3rem,5vw,5rem) clamp(3.25rem,5.5vw,5.5rem); }
.paper-name, .paper-title { display: block; font-family: var(--heading); }
.paper-name { font-size: clamp(4.5rem,6.8vw,6.65rem); font-weight: 800; line-height: .9; letter-spacing: -.085em; margin-left: -.045em; }
.paper-title { margin-top: 1rem; font-size: clamp(1.65rem,2.2vw,2.06rem); font-weight: 650; line-height: 1.12; letter-spacing: -.049em; text-wrap: balance; }
.lead { max-width: 38ch; margin-top: 1.2rem; font-size: clamp(1.04rem,1.18vw,1.14rem); color: var(--muted); }
.lead strong { font-weight: 650; color: var(--green); }
.authors { display: flex; flex-wrap: wrap; column-gap: .78rem; row-gap: .08rem; margin-top: 1.3rem; }
.authors span { display: inline-block; font-size: .94rem; line-height: 1.72; font-weight: 540; white-space: nowrap; }
.authors sup { color: var(--green); font-weight: 650; font-size: .62em; vertical-align: .58em; padding-left: .06em; }
.author-notes { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: .35rem; font-size: .81rem; color: var(--muted); }
.affiliations { margin-top: .28rem; font-size: .875rem; color: var(--muted); }
.affiliations summary { width: fit-content; cursor: pointer; color: var(--green); font-weight: 600; }
.affiliations ol { padding-left: 1.35rem; margin: .55rem 0 .4rem; line-height: 1.5; }
.hero-actions { flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.button { justify-content: center; gap: .62rem; min-height: 2.85rem; padding: .6rem 1.1rem; border: 1px solid transparent; border-radius: .55rem; font-weight: 650; font-size: .94rem; transition: background .18s; }
.primary { background: var(--ink); color: white; }
.primary:hover { background: #285847; }
.secondary { border-color: #bbcfc3; background: #fff; }
.film-column { position: relative; isolation: isolate; }
.film-column::before { content: ""; position: absolute; z-index: -1; inset: 1.25rem -.7rem -.55rem .7rem; border-radius: 1.1rem; background: linear-gradient(115deg,#a7cdbb,#a5c9be 46%,#c6bee1 93%); transform: rotate(1.4deg); }
.film { border: 1px solid #394945; border-radius: .95rem; background: #20312e; color: #f5faf6; overflow: hidden; box-shadow: 0 .65rem 1.65rem #122d2412; }
.film-header { justify-content: space-between; padding: .68rem 1rem; font-size: .87rem; font-weight: 600; }
.film-header > span { gap: .55rem; }
.film-header time, .chapters time { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; font-variant-numeric: tabular-nums; color: #c4d6cc; letter-spacing: .025em; }
.film-icon { width: 1.08rem; height: .76rem; border: 1px solid #c4ded0; border-radius: 2px; background: linear-gradient(90deg,transparent 19%,#c4ded0 20% 26%,transparent 27% 74%,#c4ded0 75% 81%,transparent 82%); }
.screen { position: relative; aspect-ratio: 16 / 9; background: #14221f; }
.screen video { display: block; width: 100%; height: 100%; object-fit: contain; }
.film-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; border: 0; background: linear-gradient(0deg,#07181455,#112c2a02 60%); width: 100%; color: white; font-weight: 650; font-size: .96rem; text-shadow: 0 1px 6px #000; }
.film-cover:focus-visible { outline-offset: -5px; }
.play-disc { width: 4.2rem; height: 4.2rem; display: grid; place-items: center; background: #fbfff9f2; border-radius: 50%; box-shadow: 0 .3rem 1.8rem #001b1b48; transition: transform .18s; }
.play-disc::after { content: ""; border-left: 1.05rem solid var(--ink); border-top: .62rem solid transparent; border-bottom: .62rem solid transparent; margin-left: .23rem; }
.film-cover:hover .play-disc { transform: scale(1.08); }
.chapters { display: grid; grid-template-columns: repeat(3,1fr); }
.chapters button { display: flex; align-items: center; justify-content: center; gap: .6rem; background: transparent; color: #f5faf6; border: 0; min-height: 3.1rem; font-size: .875rem; font-weight: 600; }
.chapters button + button { border-left: 1px solid #4a5b53; }
.chapters button:hover, .chapters button[aria-current="true"] { background: #364d42; }
.chapters button:focus-visible { outline-offset: -4px; }
.section, .trace-band, .results-band { padding-block: clamp(3.2rem,5.6vw,5.5rem); }
.trace-band { background: #edf3ed; border-block: 1px solid #d5e2d7; }
.section-intro { margin-bottom: 1.7rem; }
.section-kicker, .minor-label { font-size: .77rem; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; font-weight: 750; color: var(--green); }
.section-kicker { gap: .6rem; margin-bottom: .72rem; }
.section-kicker i { width: 1.65rem; height: 2px; background: var(--green); }
h2, h3 { font-family: var(--heading); color: var(--ink); }
h2 { font-size: clamp(2.15rem,3.45vw,3.2rem); font-weight: 700; line-height: 1.04; letter-spacing: -.055em; text-wrap: balance; }
.section-intro > p { max-width: 72ch; margin-top: .85rem; color: var(--muted); font-size: 1.06rem; }
.trace-card { border: 1px solid #cfddd0; background: #fff; border-radius: .9rem; padding: clamp(1rem,2.15vw,2rem); }
.instruction { display: grid; grid-template-columns: 8.8rem 1fr; align-items: baseline; gap: .5rem; color: var(--ink); }
.instruction p { max-width: 92ch; font-weight: 510; }
.trace-tabs { display: grid; grid-template-columns: repeat(6,1fr); margin-block: 1.5rem 1.4rem; border-bottom: 1px solid var(--line); }
.trace-tabs button { position: relative; padding: .55rem .3rem; min-height: 2.7rem; border: none; color: var(--muted); background: transparent; font: 600 .94rem/1.5 "DM Sans",Arial,sans-serif; font-variant-numeric: tabular-nums; }
.trace-tabs button::after { content: ""; position: absolute; bottom: -1px; height: 3px; left: .2rem; right: .2rem; border-radius: 2px; background: transparent; }
.trace-tabs button:hover { background: #f4f8f3; }
.trace-tabs button[aria-selected="true"] { color: var(--green); background: #edf5ee; }
.trace-tabs button[aria-selected="true"]::after { background: var(--green); }
.probe { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.25fr); gap: clamp(1.4rem,3.2vw,3.25rem); align-items: center; }
.probe + .probe { margin-top: 1.25rem; }
.trace-card:has(.trace-tabs[role="tablist"]) .probe { margin-top: 0; }
.probe figure { overflow: hidden; position: relative; border-radius: .5rem; background: #24382d; }
.probe figure img { display: block; width: 100%; aspect-ratio: 1.62; object-fit: contain; }
.probe figcaption { padding: .44rem .85rem; font-size: .83rem; color: #eff8ee; background: #273c32; }
.qa h3 { margin: .25rem 0 1.25rem; font-size: clamp(1.36rem,2.1vw,1.9rem); font-weight: 650; line-height: 1.19; letter-spacing: -.035em; }
.qa .minor-label:nth-of-type(2) { color: #634b82; }
.qa p { margin-top: .28rem; color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
.architecture { border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; background: #fff; }
.architecture img { display: block; width: 100%; height: auto; padding: clamp(.6rem,1.8vw,1.4rem); }
.architecture figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); padding: .72rem 1rem; color: var(--muted); font-size: .88rem; }
.architecture figcaption a, .text-link { font-weight: 650; color: var(--green); text-decoration: underline; text-underline-offset: .18em; }
.method-notes { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,3vw,3rem); margin-top: 1.65rem; }
.method-notes h3, .result-panel h3 { font-size: clamp(1.2rem,1.65vw,1.55rem); letter-spacing: -.035em; font-weight: 670; line-height: 1.18; }
.method-notes p, .result-panel p, .cite-section p { margin-top: .55rem; color: var(--muted); }
.results-band { background: #f1f0f6; border-block: 1px solid #e4e1ed; }
.results-stack { display: grid; gap: 1.2rem; }
.result-panel { min-width: 0; border: 1px solid #dbdbe2; background: #fff; border-radius: .75rem; padding: clamp(1rem,2vw,1.7rem); }
.result-panel p { margin-bottom: 1.1rem; }
.benchmark-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .3rem; margin-block: 1rem; padding: .3rem; background: #f1f0f6; border: 1px solid #e4e1ed; border-radius: .65rem; }
.benchmark-tabs button { min-height: 2.85rem; padding: .4rem .6rem; border: 1px solid transparent; border-radius: .45rem; background: transparent; color: var(--muted); font-size: .91rem; font-weight: 650; line-height: 1.25; }
.benchmark-tabs button:hover { color: var(--green); }
.benchmark-tabs button[aria-selected="true"] { border-color: #d3e0d6; background: #fff; color: var(--green); }
.benchmark-panel { margin-top: 1.1rem; }
.benchmark-panel h4 { margin: 0; font-size: 1.04rem; }
.benchmark-panel[role="tabpanel"] h4 { display: none; }
.result-panel .table-note { margin: .75rem 0 0; font-size: .85rem; }
.table-note a { color: var(--green); text-decoration: underline; text-underline-offset: .18em; }
.result-panel .table-scroll-hint { display: none; margin: 0 0 .3rem; font-size: .85rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; line-height: 1.35; }
caption { text-align: left; padding-block: .45rem .7rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
th, td { padding: .67rem .37rem; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child { text-align: left; }
thead th { font-size: .83rem; color: var(--muted); font-weight: 650; vertical-align: bottom; }
tbody th { font-weight: 500; }
.control-table th, .control-table td { padding-block: .43rem; }
.control-table .ours, tfoot { background: #eaf3eb; color: var(--green); }
.control-table .ours th, tfoot th { font-weight: 700; }
.control-table strong { color: var(--green); }
.fps-table { min-width: 49rem; }
.vizdoom-table { min-width: 36rem; }
.fps-table .game-group, .fps-table .task-group { text-align: center; }
.fps-table .peace-group { background: #eaf3eb; color: var(--green); }
.fps-table .cs-group { background: #eeecf6; color: #54436f; }
.fps-table .game-divider, .fps-table tbody tr > :nth-child(7) { border-left: 1px solid var(--line); }
.fps-table thead tr:last-child th { text-align: right; }
.fps-table th[scope="row"], .vizdoom-table th[scope="row"], .policy-heading { position: sticky; left: 0; z-index: 1; background: #fff; }
.control-table .ours th { background: #eaf3eb; }
.table-wrap { overflow-x: auto; }
.memory-results { display: grid; grid-template-columns: minmax(0,.68fr) minmax(0,1.32fr); gap: 1.6rem; align-items: start; }
.qa-table { min-width: 22.8rem; }
.qa-table th:first-child { width: 27%; }
.qa-table tbody strong { color: var(--green); }
.cite-section { display: grid; grid-template-columns: minmax(0,.6fr) minmax(0,1.4fr); align-items: start; gap: 2rem; }
.text-link { display: inline-block; margin-top: .8rem; font-size: .95rem; }
.citation-box { min-width: 0; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; background: #f1f4ef; }
.citation-head { display: flex; align-items: center; justify-content: space-between; min-height: 2.65rem; padding: .37rem 1rem; border-bottom: 1px solid var(--line); font-size: .87rem; font-weight: 650; }
.citation-head button { background: #fff; border: 1px solid #bdcfc1; border-radius: .35rem; padding: .24rem .6rem; font-size: .84rem; color: var(--green); }
.citation-box pre { margin: 0; padding: 1.1rem; font-size: .85rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); }
footer .wrap { min-height: 5rem; justify-content: space-between; color: var(--muted); font-size: .9rem; }
footer .brand { font-size: 1.13rem; color: var(--ink); }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 4rem); }
  .hero { column-gap: 2rem; grid-template-columns: 1fr 1fr; }
  .chapters button { flex-direction: column; gap: 0; padding: .45rem .12rem; }
}
@media (max-width: 900px) {
  #results-fps .table-scroll-hint { display: block; }
  .fps-table .game-group, .fps-table .task-group { text-align: left; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .nav-row { min-height: 3.8rem; gap: 1rem; }
  nav { gap: 1rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.6rem 3.1rem; }
  .paper-name { font-size: clamp(4.35rem,12vw,5.25rem); }
  .paper-title { max-width: 33ch; }
  .lead { max-width: 49ch; }
  .chapters button { flex-direction: row; gap: .4rem; }
  .film-column { margin-right: .4rem; }
  .instruction { grid-template-columns: 1fr; }
  .trace-tabs { margin-block: 1rem; }
  .probe { grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); gap: 1.1rem; }
  .qa p { font-size: 1rem; }
  .qa h3 { margin-bottom: .7rem; }
  .memory-results, .cite-section { grid-template-columns: 1fr; }
  .memory-results { gap: .35rem; }
  .method-notes { grid-template-columns: 1fr; }
  .method-notes > div + div { border-top: 1px solid var(--line); padding-top: 1rem; }
}
@media (max-width: 650px) {
  #results-vizdoom .table-scroll-hint { display: block; }
}
@media (max-width: 550px) {
  :root { scroll-padding-top: 6.8rem; }
  .nav-row { flex-wrap: wrap; justify-content: space-between; padding-top: .55rem; gap: .25rem; }
  nav { order: 3; width: 100%; justify-content: space-between; gap: .4rem; border-top: 1px solid #dde6dd; }
  nav a { font-size: .85rem; padding: .43rem .12rem; }
  .nav-paper { font-size: .82rem; padding: .25rem .7rem; }
  .nav-row .brand img { width: 27px; height: 27px; }
  .hero { padding-top: 2.25rem; }
  .hero-actions { gap: .5rem; }
  .hero-actions .button { padding-inline: .85rem; font-size: .9rem; }
  .probe { grid-template-columns: 1fr; }
  .probe figure img { max-height: 16rem; }
  .architecture figcaption { flex-direction: column; gap: .28rem; }
  .chapters button { flex-direction: column; gap: 0; font-size: .8rem; }
  .chapters time { font-size: .71rem; }
  .qa-table { min-width: 18rem; font-size: .85rem; }
  .qa-table th, .qa-table td { padding-inline: .2rem; }
  .qa-table thead th { font-size: .77rem; }
  .benchmark-tabs button { font-size: .82rem; padding-inline: .3rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
