:root {
  --background: #ffffff;
  --text: #202635;
  --muted: #596273;
  --accent: #4056a1;
  --line: #dfe3eb;
  --surface: #f3f5fa;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 18px; line-height: 1.7; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, code, pre { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -90px; left: 20px; z-index: 20; background: var(--accent); color: white; padding: 10px; }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topbar { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / 97%); border-bottom: 1px solid var(--line); }
.topbar .shell { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { color: var(--accent); font-weight: 750; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 16px; }
nav a { text-decoration: none; }
nav a:hover { color: var(--accent); }
.hero { padding-top: 66px; padding-bottom: 65px; text-align: center; }
h1 { max-width: 1280px; margin: 0 auto; font-size: clamp(12px, 3.55vw, 44px); font-weight: 750; line-height: 1.3; letter-spacing: -.035em; }
.title-line { display: block; white-space: nowrap; }
.title-line:first-child { font-size: 1.12em; }
.project-name { color: #7b3e90; }
.authors { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin: 32px 0 8px; }
.authors span { white-space: nowrap; }
sup { font-size: .7em; color: var(--accent); }
.author-note { margin: 0 0 25px; font-size: 16px; color: var(--muted); }
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: 9px 22px; min-height: 46px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--text); font-size: 16px; text-decoration: none; }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.button:hover { border-color: var(--accent); }
.overview-video { max-width: 1120px; margin: 80px auto 0; scroll-margin-top: 95px; }
video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #11151d; border-radius: 6px; }
.section { padding: 60px 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 24px; font-size: clamp(30px, 3vw, 42px); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.section > p { margin: 0 0 30px; max-width: 1180px; }
h3 { font-size: 25px; line-height: 1.35; font-weight: 650; margin: 0 0 20px; }
h4 { font-size: 18px; line-height: 1.5; font-weight: 550; margin: 0 0 12px; }
.method-row { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); align-items: center; gap: 36px; margin: 36px 0 0; }
.method-row + .method-row { padding-top: 44px; margin-top: 44px; border-top: 1px solid var(--line); }
.method-row-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); }
.method-row-reverse .method-image { grid-column: 2; grid-row: 1; }
.method-row-reverse .method-copy { grid-column: 1; grid-row: 1; }
.method-image { display: block; min-width: 0; cursor: zoom-in; }
.method-image img { display: block; width: 100%; height: auto; }
.method-copy { min-width: 0; font-size: 18px; }
.method-copy h3 { font-size: 25px; margin-bottom: 18px; }
.method-copy p { margin: 0; }
.method-copy p + p { margin-top: 18px; }
.task-row { margin-top: 42px; }
.task-row + .task-row { margin-top: 48px; }
.real-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; }
.demo { min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin: 0 0 32px; }
.segmented { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.segmented button { min-height: 44px; padding: 8px 22px; border: 0; border-radius: 4px; color: var(--text); background: transparent; font-size: 16px; }
.segmented button[aria-pressed=true] { background: var(--accent); color: white; }
.simulation-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 24px; }
.simulation-grid h3 { font-size: 21px; margin-bottom: 14px; }
.simulation-grid video { aspect-ratio: 4/3; }
.citation-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.citation-heading h2 { margin: 0; }
pre { margin: 0; padding: 24px; background: var(--surface); border-radius: 6px; font-size: 16px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
#copy-status { margin: 12px 0 0; color: var(--accent); }
#copy-status:empty { display: none; }
footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; padding-bottom: 36px; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
@media(max-width:900px) {
  .topbar .shell { padding-block: 16px; min-height: 70px; flex-wrap: wrap; gap: 12px; }
  nav { gap: 18px; }
  .simulation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .method-row, .method-row-reverse { grid-template-columns: 1fr; gap: 26px; }
  .method-row-reverse .method-image, .method-row-reverse .method-copy { grid-column: auto; grid-row: auto; }
}
@media(max-width:600px) {
  .shell { width: calc(100% - 32px); }
  body { font-size: 17px; }
  .hero { padding-top: 40px; padding-bottom: 42px; }
  nav { column-gap: 18px; row-gap: 8px; }
  .authors { gap: 6px 16px; font-size: 17px; margin-top: 26px; }
  .overview-video { margin-top: 56px; }
  .section { padding: 42px 0; }
  h2 { font-size: 30px; }
  h3 { font-size: 23px; }
  .real-grid, .simulation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
  .real-grid h4 { font-size: 16px; }
  .simulation-grid h3 { font-size: 18px; }
  .task-row { margin-top: 34px; }
  .method-row { margin-top: 24px; }
  .method-copy { font-size: 17px; }
  .segmented button { padding-inline: 18px; }
  .citation-heading { align-items: flex-start; flex-wrap: wrap; }
  pre { padding: 18px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
