/* Mainline presentation follows the live LIMBO template inspected 2026-10-05.
   See docs/official-template.md for retained HULK content and behavior. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
:root {
  --paper: #fff;
  --paper-rgb: 255, 255, 255;
  --paper-light: #fff;
  --ink: #16181d;
  --ink-hover: #2a2f36;
  --muted: #5b6270;
  --line: #e3e7ee;
  --surface: #f5f7fa;
  --surface-raised: #eceef0;
  --flame: #0a8fb8;
  --flame-bright: #0a8fb8;
  --ember: #087494;
  --on-flame: #fff;
  --on-flame-muted: #e4f4fa;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--sans);
  --display: var(--sans);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --content-max: 1120px;
  --page-gutter: 24px;
}
html[data-theme="dark"] {
  --paper: #111418;
  --paper-rgb: 17, 20, 24;
  --paper-light: #191e25;
  --ink: #eef1f6;
  --ink-hover: #fff;
  --muted: #aeb8c6;
  --line: #303844;
  --surface: #191e25;
  --surface-raised: #272c33;
  --flame: #69c9e6;
  --flame-bright: #69c9e6;
  --ember: #a6e3f4;
  --on-flame: #111418;
}
html { scroll-padding-top: 110px; }
body { font: 16px/1.65 var(--sans); }
a { color: var(--flame); }
h1, h2, h3, h4, h5 { font-family: var(--sans); }
h2 em { font-style: normal; }
.site-header {
  position: static;
  justify-content: center;
  padding: 24px 20px 0;
  background: transparent;
  border: 0;
  gap: 24px;
}
.wordmark { display: none; }
.wordmark-mark { display: none; }
.wordmark-note { font: 400 11px/1.4 var(--sans); }
.header-links { gap: 22px; margin-left: 0; }
.header-links a { font: 500 11px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.theme-toggle { font-size: 11px; }
.cover, .sim-section, .page-content, footer {
  width: calc(100% - 48px);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.cover { padding: 0; width: 100%; max-width: none; }
.cover-media { position: relative; isolation: isolate; background: #0d0f12; }
.cover-title {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 0 24px 40px;
  background: linear-gradient(to top, rgba(8, 10, 14, .82) 0%, rgba(8, 10, 14, .45) 22%, transparent 42%);
  color: white;
  text-align: center;
  pointer-events: none;
}
.cover-copy { max-width: none; text-align: center; margin: 0; }
.cover-title .venue {
  margin: 24px 0 0;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: .08em;
}
.cover-copy { padding: 28px 20px 0; }
.cover h1 {
  max-width: 960px;
  margin: 0 auto;
  font: 700 clamp(30px, 4.2vw, 48px)/1.18 var(--sans);
  letter-spacing: -.025em;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
}
.authors { font-size: 1.05rem; margin: 0; color: var(--muted); }
.publication-links { justify-content: center; margin-top: 22px; gap: 10px; flex-wrap: wrap; }
.button { border-radius: 999px; font: 600 .92rem/1.65 var(--sans); padding: 8px 20px; text-transform: none; letter-spacing: 0; }
.button-primary { background: var(--flame); color: var(--on-flame); }
.publication-links .button:disabled { border-color: var(--line); background: var(--surface); color: var(--muted); }
.publication-links .button:disabled::after { content: " · soon"; font-weight: 400; }
.hero-film { max-width: none; margin: 0; }
.video-card--hero .video-slot.has-poster,
.video-card--hero .video-slot video,
.video-card--hero .slot-poster { border-radius: 0; }
.video-card--hero .video-slot.has-poster { background: #0d0f12; }
.video-card--hero .slot-poster { background: var(--surface); }
.contents, .mobile-jumps { display: none; }
.page-content { padding-bottom: 40px; }
.sim-section, .page-section {
  padding: 56px 0 0;
  margin-top: 56px;
  margin-bottom: 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.page-section:first-child { margin-top: 56px; }
.section-heading, .methods-section .section-heading, .benchmark-section .section-heading {
  display: block;
  margin-bottom: 32px;
}
.eyebrow { font: 500 12px/1.5 var(--sans); color: var(--flame); letter-spacing: .08em; margin-bottom: 16px; }
h2, .sim-section h2, .resources-section h2 {
  font: 700 1.75rem/1.65 var(--sans);
  letter-spacing: -.025em;
  margin: 0 0 16px;
}
.section-heading > p, .sim-intro { max-width: 820px; font-size: 16px; line-height: 1.65; margin: 16px 0 0; }
.findings-summary {
  max-width: none;
  padding-left: 24px;
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.findings-summary li + li { margin-top: 12px; }
.keep-together { white-space: nowrap; }
.sim-intro { margin-bottom: 30px; }
.metric-grid { margin-top: 28px; gap: 16px; border: 0; }
.metric-card, .metric-card:first-child, .metric-card + .metric-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.metric-value { font: 700 1.6rem/1.2 var(--sans); letter-spacing: -.02em; color: var(--flame); }
.metric-card h3 { font: 600 1.05rem/1.65 var(--sans); }
.metric-card p { font-size: .95rem; }
.method-block + .method-block, .training-video-pair + .method-block,
.benchmark-row + .benchmark-row { margin-top: 64px; padding-top: 32px; }
.training-video-pair > .method-block + .method-block { margin-top: 0; padding-top: 0; }
.method-block-heading h3, .video-card--method figcaption h3,
.subsection-heading h3, .benchmark-row > h3, .table-block > h3,
.method-optimization > h4, .video-card--feature figcaption h3 {
  font: 700 1.75rem/1.65 var(--sans);
  letter-spacing: -.015em;
}
.method-block-heading > p, .methods-section .video-card--method figcaption > p,
.subsection-heading > p, .table-description {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.65;
}
.video-slot, .paper-figure img { border-radius: 12px; }
.video-slot { border: 0; overflow: hidden; background: var(--surface); }
.video-slot::before, .video-slot::after { display: none; }
.video-card video, .slot-poster { border-radius: 12px; }
.benchmark-videos { gap: 24px; }
.benchmark-card h4 { font: 600 15px/1.5 var(--sans); text-transform: none; letter-spacing: 0; }
.benchmark-card.is-ours h4 { color: var(--ink); }
.paper-figure figcaption, .method-video-note { font-size: 15px; line-height: 1.65; color: var(--muted); text-align: center; }
.paper-figure { border: 0; background: transparent; }
.data-table { font-size: 15px; }
.data-table th, .data-table td { padding: 12px 14px; }
.data-table thead th { font: 500 11px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.data-table { --table-accent: var(--flame); }
.data-table .is-ours { background: color-mix(in srgb, var(--table-accent) 7%, var(--paper)); }
.data-table .is-ours th { color: var(--table-accent); }
.cart-highlight {
  padding: 32px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.cart-highlight h3 { color: var(--ink); }
.real-world-intro { margin-top: 64px; }
.real-world-intro p { font-size: 16px; line-height: 1.65; }
.sim-panel h3 { font: 600 1.05rem/1.65 var(--sans); }
.sim-keyboard-help { margin-top: 28px; }
.sim-scripted-preview { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.sim-scripted-preview h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.sim-scripted-preview p { color: var(--muted); margin: 0 0 16px; }
.resource-buttons { margin-top: 28px; }
.citation-card { background: var(--surface); border-radius: 12px; }
footer { padding: 32px 0 48px; margin-top: 80px; font-size: 13px; }
.bibtex-section { max-width: 820px; margin-left: auto; margin-right: auto; }
.bibtex { position: relative; }
.bibtex pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: .85rem/1.5 var(--mono);
  white-space: pre;
}
.bibtex code { font: inherit; }
.bibtex .copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: .8rem/1.65 var(--sans);
}
.citation-note { color: var(--muted); font-size: .85rem; margin-top: 12px; }
@media (max-width: 900px) {
  .wordmark-note { display: none; }
  .site-header { gap: 16px; }
  .header-links { gap: 14px; }
  .header-links a { font-size: 10px; }
}
@media (max-width: 760px) {
  .site-header { padding: 20px 16px 0; flex-wrap: wrap; }
  .header-links { order: initial; width: auto; flex-wrap: wrap; justify-content: center; padding-bottom: 0; }
  .header-links a { flex: 0 0 auto; }
  .theme-toggle { margin-left: 0; }
  .sim-section, .page-section, .page-section:first-child { margin-top: 40px; padding-top: 40px; }
  .section-heading > p, .sim-intro { font-size: 16px; }
  .benchmark-videos { gap: 20px; }
  .method-jumps { flex-wrap: wrap; gap: 12px 20px; }
}
@media (max-width: 520px) {
  .sim-section, .page-content, footer { width: calc(100% - 32px); }
  .site-header { padding-left: 16px; padding-right: 16px; }
  .publication-links { flex-wrap: wrap; }
  .button { padding: 10px 18px; }
}
@media (max-width: 900px) {
  .metric-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cover-title {
    position: static;
    padding: 24px 16px 0;
    color: var(--ink);
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .cover h1 { font-size: 30px; text-shadow: none; }
  .cover-copy { padding-top: 18px; }
}
/* Inline clips stay clean; native controls live in the enlarged viewer. */
.video-slot video[role="button"] { cursor: zoom-in; }
.video-slot video[role="button"]:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: -3px;
}
.video-viewer {
  box-sizing: border-box;
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 52px 12px 12px;
  border: 0;
  border-radius: 12px;
  background: #101827;
  color: #fff;
}
.video-viewer::backdrop { background: rgb(0 0 0 / 80%); }
html:has(.video-viewer[open]) { overflow: hidden; }
.video-viewer video {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  background: #000;
}
.video-viewer p { margin: 12px 4px 0; }
.video-viewer-close {
  position: absolute;
  right: 8px;
  top: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}
