:root {
  --ink: #25251f;
  --muted: #6b685e;
  --line: #d8d0bf;
  --line-dark: #b9ae97;
  --paper: #f3efe3;
  --paper-alt: #ece5d4;
  --surface: #faf7ef;
  --blue: #4b92c7;
  --teal: #4ca69f;
  --violet: #8065b2;
  --orange: #d89b3f;
  --red: #cf6069;
  --shell: min(1240px, calc(100% - 48px));
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, a { font: inherit; }
button { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.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;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-140%);
  padding: 8px 12px;
  color: #fff;
  background: #111;
}
.skip-link:focus { transform: none; }

.wordmark { color: var(--ink); font-family: var(--serif); font-weight: 600; letter-spacing: -.035em; }
.wordmark .u1 { color: var(--blue); }
.wordmark .u2 { color: var(--teal); }
.wordmark .u3 { color: var(--violet); }
.wordmark .u4 { color: var(--orange); }
.wordmark .u5 { color: var(--red); }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.brand img { width: 22px; height: auto; }
.brand .wordmark { font-size: 1.14rem; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  position: relative;
  color: #363c42;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .16s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.site-nav .nav-play { color: #2f6d69; }
.nav-toggle { display: none; width: 38px; height: 38px; padding: 9px; border: 0; background: none; cursor: pointer; }
.nav-toggle > span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: var(--ink); transition: transform .15s ease, opacity .15s ease; }

.hero { padding: 132px 0 88px; background: #fff; }
.hero-copy { max-width: 1120px; }
.title-row { display: flex; align-items: flex-start; gap: 17px; }
.title-icon { flex: 0 0 auto; width: 60px; height: auto; margin-top: 5px; }
.title-row h1 {
  max-width: 1020px;
  margin: 0;
  font-family: var(--serif);
  font-size: 0;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.wordmark--hero { font-size: clamp(3.5rem, 6.1vw, 5.55rem); }
.title-colon { margin-right: .18em; font-family: var(--serif); font-size: clamp(3.5rem, 6.1vw, 5.55rem); }
.paper-title { font-size: clamp(2.05rem, 4.1vw, 3.7rem); }
.abstract-lede {
  max-width: 880px;
  margin: 34px 0 0 77px;
  color: #3f464d;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.58;
}
.demo-reel { margin: 0; background: var(--paper-alt); }
.demo-reel-heading {
  margin-bottom: 56px;
}
.demo-reel-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 16px;
}
.demo-card {
  min-width: 0;
  margin: 0;
}
.demo-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #c7c9cc;
  background: #111;
}
.demo-card figcaption {
  margin-top: 7px;
  color: #3f464d;
  font-family: var(--serif);
  font-size: .78rem;
  line-height: 1.35;
}
.authors {
  max-width: 1050px;
  margin: 24px 0 0 77px;
  color: #33393f;
  font-family: var(--serif);
  font-size: .98rem;
  line-height: 1.75;
}
.authors sup, .affiliation-list sup { color: #3e6f9a; font-family: var(--sans); font-size: .62em; font-weight: 700; }
.app-link-row {
  margin: 22px 0 0 77px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #3f464d;
  font-size: .76rem;
}
.platform-icons { display: inline-flex; align-items: center; gap: 6px; margin-right: 3px; }
.platform-icons img { width: 28px; height: 28px; padding: 5px; border: 1px solid var(--line); background: var(--surface); object-fit: contain; }
.app-link-label { font-weight: 700; letter-spacing: .015em; }
.app-link-row a { color: #365f82; overflow-wrap: anywhere; text-decoration-color: #9db2c3; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.app-link-row a:hover, .app-link-row a:focus-visible { color: var(--ink); text-decoration-color: var(--ink); }
.project-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0 77px; }
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  background: var(--surface);
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}
.link-button:focus-visible { outline: 3px solid rgba(75, 146, 199, .4); outline-offset: 2px; }
.link-button--dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.link-button--play { color: #fff; background: #2a9d8f; border-color: #2a9d8f; }
.link-button--play:hover, .link-button--play:focus-visible { background: #237f75; border-color: #237f75; }
.link-button--arxiv { color: #fff; background: #b31b1b; border-color: #981717; }
.link-button--arxiv:hover, .link-button--arxiv:focus-visible { background: #921616; border-color: #7e1212; }
.link-button--hf { color: #111; background: #ffd21e; border-color: #e6b900; }
.link-button--hf:hover, .link-button--hf:focus-visible { background: #f2c400; border-color: #d9ad00; }
.link-button--github { gap: 10px; }
.link-button__label { display: inline-flex; align-items: center; gap: 8px; }
.link-button__icon { flex: 0 0 auto; }
.github-star-count {
  min-width: 42px;
  padding-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  border-left: 1px solid var(--line-dark);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.github-star-symbol { color: #a47316; font-size: .82rem; line-height: 1; }
.link-button--disabled { cursor: default; user-select: none; }
.dataset-links { margin: 12px 0 0 77px; display: flex; flex-wrap: wrap; gap: 10px; }
.dataset-link {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  background: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-decoration: none;
}
.dataset-link:hover, .dataset-link:focus-visible { border-color: var(--ink); }

.play-online {
  margin: 0;
  background: var(--paper);
  scroll-margin-top: 88px;
}
.play-heading {
  margin-bottom: 56px;
}
.play-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.play-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #aeb2b6;
  background: #0b1723;
  box-shadow: 0 18px 54px rgba(25, 35, 44, .13);
}
.play-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #0b1723;
  color: #fff;
  cursor: pointer;
}
.play-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .25s ease; }
.play-poster-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 16, 25, .04), rgba(7, 16, 25, .2)); }
.play-poster:hover img, .play-poster:focus-visible img { transform: scale(1.012); filter: saturate(1.04) contrast(1.02); }
.play-poster:focus-visible { outline: 3px solid #fff; outline-offset: -7px; }
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 50%;
  background: rgba(10, 24, 36, .78);
  box-shadow: 0 12px 44px rgba(0, 0, 0, .32);
  transform: translate(-50%, -58%);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, background .18s ease;
}
.play-icon span { width: 0; height: 0; margin-left: 5px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid #fff; }
.play-poster:hover .play-icon, .play-poster:focus-visible .play-icon { background: #2a9d8f; transform: translate(-50%, -58%) scale(1.06); }
.play-cta {
  position: absolute;
  top: calc(50% + 43px);
  left: 50%;
  padding: 6px 11px;
  border-radius: 2px;
  background: rgba(8, 18, 27, .72);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .015em;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}
.play-frame { display: block; width: 100%; height: 100%; border: 0; background: #0b1723; }
.play-stage.is-agent-controlled .play-frame { pointer-events: none; }
.control-panel {
  margin-top: 16px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}
.control-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.control-panel-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .035em;
}
.control-mode-switch { display: flex; gap: 7px; }
.control-mode {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #c4c7ca;
  background: var(--surface);
  color: #454c52;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 700;
}
.control-mode:hover, .control-mode:focus-visible { border-color: #697178; }
.control-mode.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.control-exit {
  display: block;
  min-height: 34px;
  margin: 10px 0 0 auto;
  padding: 0 13px;
  border: 1px solid #9b4f4f;
  background: var(--surface);
  color: #8b4141;
  cursor: pointer;
  font-size: .69rem;
  font-weight: 700;
}
.control-exit[hidden] { display: none; }
.control-exit:hover, .control-exit:focus-visible { border-color: #823737; background: #823737; color: #fff; }
.agent-config { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.agent-config[hidden] { display: none; }
.agent-fields { display: grid; grid-template-columns: 1.25fr 1fr .8fr; gap: 12px; }
.agent-fields label { min-width: 0; }
.agent-fields label > span {
  display: block;
  margin-bottom: 5px;
  color: #454c52;
  font-size: .65rem;
  font-weight: 700;
}
.agent-fields small { display: block; margin-top: 5px; color: var(--muted); font-family: var(--serif); font-size: .68rem; line-height: 1.35; }
.agent-fields input, .agent-fields textarea {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid #c8cbce;
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .75rem;
}
.agent-fields textarea { min-height: 74px; line-height: 1.45; resize: vertical; }
.agent-fields input:focus, .agent-fields textarea:focus { border-color: #63737d; outline: 1px solid #63737d; outline-offset: 0; }
.agent-instruction-field { grid-column: 1 / -1; }
.agent-instruction-field[hidden] { display: none; }
.agent-task-tools { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.agent-secondary-action, .agent-task-browser button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #bfc4c7;
  background: var(--surface);
  color: #424a50;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 700;
}
.agent-secondary-action:hover, .agent-secondary-action:focus-visible, .agent-task-browser button:hover, .agent-task-browser button:focus-visible { border-color: #63737d; }
.agent-task-tools p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: .71rem; }
.agent-task-browser { margin-top: 12px; padding: 14px; border: 1px solid var(--line); background: var(--surface); }
.agent-task-browser[hidden], .agent-task-preview[hidden] { display: none; }
.agent-task-browser-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.agent-task-browser-heading strong, .agent-task-browser-heading span { display: block; }
.agent-task-browser-heading strong { color: var(--ink); font-size: .76rem; }
.agent-task-browser-heading span { margin-top: 3px; color: var(--muted); font-family: var(--serif); font-size: .7rem; }
.agent-task-groups { margin-top: 13px; display: grid; gap: 7px; }
.agent-task-level { border-top: 1px solid var(--line); }
.agent-task-level > summary { padding: 10px 2px; color: var(--ink); cursor: pointer; font-size: .7rem; font-weight: 700; list-style-position: inside; }
.agent-task-types { padding: 0 0 12px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.agent-task-type span { display: block; margin-bottom: 4px; color: #50585e; font-size: .64rem; font-weight: 700; }
.agent-task-type select { width: 100%; min-height: 36px; border: 1px solid #c8cbce; background: var(--surface); color: var(--ink); font: .69rem var(--sans); }
.agent-task-preview { margin-top: 2px; padding: 12px; border-left: 2px solid #2a9d8f; background: var(--paper); }
.agent-task-preview strong { color: var(--ink); font-size: .72rem; }
.agent-task-preview p { max-height: 124px; margin: 6px 0 10px; overflow: auto; white-space: pre-line; color: #555e64; font-family: var(--serif); font-size: .7rem; line-height: 1.45; }
.agent-confirmation { margin-top: 12px; display: flex; align-items: center; gap: 14px; }
.agent-run-actions { display: flex; gap: 7px; }
.agent-confirmation .agent-run-actions button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #2a9d8f;
  background: #2a9d8f;
  color: #fff;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 700;
}
.agent-confirmation .agent-run-actions button:hover, .agent-confirmation .agent-run-actions button:focus-visible { border-color: #237f75; background: #237f75; }
.agent-confirmation .agent-run-actions .agent-stop { border-color: #9b4f4f; background: var(--surface); color: #8b4141; }
.agent-confirmation .agent-run-actions .agent-stop:hover, .agent-confirmation .agent-run-actions .agent-stop:focus-visible { border-color: #823737; background: #823737; color: #fff; }
.agent-confirmation button:disabled { border-color: #d3d5d6 !important; background: #eceeed !important; color: #90969a !important; cursor: default; }
.agent-confirmation p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: .72rem; line-height: 1.45; }
.play-note { margin: 12px 0 0; color: #596168; font-family: var(--serif); font-size: .76rem; line-height: 1.5; }
.play-note strong { color: var(--ink); }
.play-note a { color: #287f76; text-underline-offset: 2px; }
.control-guide { margin-top: 8px; color: #4c545b; font-size: .7rem; line-height: 1.65; }
.control-guide > div { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 5px 14px; }
.control-guide span { white-space: nowrap; }
.control-guide kbd {
  min-width: 24px;
  margin-right: 4px;
  padding: 1px 5px;
  border: 1px solid #c8cbce;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 700;
  box-shadow: 0 1px 0 #d7d9db;
}
.desktop-notice {
  width: min(460px, calc(100% - 32px));
  padding: 26px;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(16, 24, 32, .24);
}
.desktop-notice::backdrop { background: rgba(13, 19, 24, .58); }
.desktop-notice h2 { margin: 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1.12; }
.desktop-notice > p { margin: 14px 0 20px; color: var(--muted); font-family: var(--serif); font-size: .9rem; line-height: 1.5; }
.desktop-notice button { min-height: 38px; padding: 0 18px; border: 1px solid var(--ink); color: #fff; background: var(--ink); cursor: pointer; font-size: .72rem; font-weight: 700; }

.institution-logos {
  margin: 38px 0 0;
  padding: 26px 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.institution { min-width: 0; min-height: 58px; padding: 0 12px; display: grid; place-items: center; border-right: 1px solid #ececef; }
.institution:last-child { border-right: 0; }
.institution img { width: auto; object-fit: contain; }
.logo-nus { max-height: 52px; }
.logo-sjtu { max-height: 49px; }
.logo-longcat { max-height: 38px; }
.logo-cuhk { max-height: 42px; }
.logo-shu { max-height: 44px; }
.logo-oxford { max-height: 45px; }

.paper-figure { margin-top: 64px; }
.hero-figure { max-width: 980px; }
.experimental-data-figure { max-width: 1040px; }
.paper-figure img { width: 100%; height: auto; object-fit: contain; border: 1px solid var(--line); background: var(--surface); }
.paper-figure figcaption {
  max-width: 1000px;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: .84rem;
  line-height: 1.55;
}
.paper-figure figcaption strong { color: var(--ink); }
.contribution-line {
  margin-top: 55px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.contribution-line > div { padding: 20px 24px 22px 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.contribution-line > div:not(:first-child) { padding-left: 24px; }
.contribution-line > div:last-child { border-right: 0; }
.contribution-line strong { font-family: var(--serif); font-size: 1.22rem; }
.contribution-line span { color: var(--muted); font-size: .72rem; }

.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 96px minmax(0, 820px); gap: 24px; align-items: start; }
.section-number { margin: 4px 0 0; color: var(--muted); font-size: .72rem; letter-spacing: .18em; }
.section h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.55rem, 5vw, 4.65rem); font-weight: 500; line-height: 1.03; letter-spacing: -.045em; }
.section-heading > div > p:last-child { max-width: 700px; margin: 22px 0 0; color: var(--muted); font-family: var(--serif); font-size: 1.04rem; line-height: 1.65; }

.overview { background: var(--paper); }
.overview .paper-figure { margin-top: 56px; }
.simulation { background: var(--paper-alt); }
.figure-explorer { margin-top: 56px; display: grid; grid-template-columns: minmax(290px, .62fr) minmax(0, 1.38fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.figure-groups { padding: 24px 38px 24px 0; border-right: 1px solid var(--line-dark); }
.figure-group { padding: 18px 0 24px; border-bottom: 1px solid var(--line); }
.figure-group:first-child { padding-top: 0; }
.figure-group:last-child { border-bottom: 0; }
.group-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .025em; }
.button-row { display: flex; flex-wrap: wrap; gap: 7px; }
.figure-group--pedestrian .button-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figure-group--pedestrian .figure-button { min-width: 0; }
.figure-button {
  cursor: pointer;
  padding: 8px 10px;
  border: 1px solid #c9cbd0;
  color: #4b5157;
  background: transparent;
  font-size: .71rem;
  line-height: 1.15;
  transition: color .12s ease, background .12s ease, border-color .12s ease;
}
.figure-button:hover { border-color: #777e85; }
.figure-button.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
.selected-figure { min-width: 0; margin: 0; padding: 24px 0 24px 38px; }
.selected-image-wrap { width: min(100%, 604px); display: grid; place-items: center; overflow: hidden; background: transparent; }
.selected-image-wrap img { width: 100%; height: auto; object-fit: contain; transition: opacity .14s ease; }
.selected-image-wrap img.is-changing { opacity: .15; }
.selected-figure figcaption { width: min(100%, 604px); min-height: 78px; margin-top: 16px; display: grid; grid-template-columns: 82px 1fr; gap: 20px; }
.selected-index { padding-top: 2px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .02em; }
.selected-figure strong { font-family: var(--serif); font-size: 1.15rem; }
.selected-figure p { max-width: 620px; margin: 4px 0 0; color: var(--muted); font-family: var(--serif); font-size: .82rem; line-height: 1.55; }

.experimental-data { background: var(--paper); }
.experimental-data-figure { margin-top: 60px; }
.experimental-data-summary {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 130px 130px 180px 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.experimental-data-summary > div { padding: 20px 18px 20px 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.experimental-data-summary > div:not(:first-child) { padding-left: 18px; }
.experimental-data-summary span { color: var(--muted); font-size: .66rem; letter-spacing: .015em; }
.experimental-data-summary strong { font-family: var(--serif); font-size: 1.65rem; font-weight: 500; }
.experimental-data-summary > p { margin: 0; padding: 20px 0 20px 28px; color: var(--muted); font-family: var(--serif); font-size: .8rem; line-height: 1.58; }

.coverage { background: var(--paper-alt); }
.coverage-figures {
  margin-top: 58px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 2.0868fr) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  border-top: 1px solid var(--ink);
}
.coverage-figure { min-width: 0; margin: 0; }
.coverage-image-wrap { height: clamp(150px, 38vw, 480px); display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); }
.coverage-image-wrap img { display: block; width: 100%; max-width: 100%; height: 100% !important; max-height: 100%; object-fit: contain; }
.coverage-figure--map img { aspect-ratio: 1100 / 619; }
.coverage-figure--composition img { aspect-ratio: 350 / 411; }
.coverage-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: .84rem;
  line-height: 1.55;
}
.coverage-figure figcaption strong { color: var(--ink); }

.site-footer { padding: 40px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 620px) auto; justify-content: space-between; gap: 48px; align-items: start; }
.footer-brand-block { min-width: 0; }
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand img { width: 28px; height: auto; }
.wordmark--footer { font-size: 1.12rem; }
.footer-tagline { margin: 9px 0 0; color: var(--muted); font-family: var(--serif); font-size: .78rem; }
.data-acknowledgement { max-width: 620px; margin: 8px 0 0; color: var(--muted); font-family: var(--serif); font-size: .7rem; line-height: 1.55; }
.data-acknowledgement a { color: #365f82; text-decoration-color: #9db2c3; text-underline-offset: 2px; }
.data-acknowledgement a:hover, .data-acknowledgement a:focus-visible { color: var(--ink); text-decoration-color: var(--ink); }
.footer-links { margin-top: 6px; display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-size: .68rem; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
@media (max-width: 960px) {
  .institution { padding-inline: 9px; }
  .figure-explorer { grid-template-columns: 1fr; }
  .figure-groups { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .figure-group { display: grid; grid-template-columns: 130px 1fr; gap: 15px; }
  .selected-figure { padding-left: 0; }
  .experimental-data-summary { grid-template-columns: repeat(3, 1fr); }
  .experimental-data-summary > p { grid-column: 1 / -1; padding-left: 0; border-top: 1px solid var(--line); }
  .coverage-figures { gap: 28px; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 32px, 680px); }
  .header-inner { min-height: 62px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 62px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .site-nav a::after { display: none; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding: 104px 0 70px; }
  .title-row { gap: 10px; }
  .title-icon { width: 39px; height: auto; margin-top: 3px; }
  .wordmark--hero, .title-colon { font-size: clamp(2.6rem, 12vw, 4rem); }
  .paper-title { display: block; margin-top: 5px; font-size: clamp(1.75rem, 8.5vw, 2.7rem); }
  .abstract-lede, .authors, .app-link-row, .project-links, .dataset-links { margin-left: 49px; }
  .play-stage { width: calc(100vw - 32px); }
  .play-icon { width: 62px; height: 62px; }
  .agent-fields { grid-template-columns: 1fr; }
  .agent-task-types { grid-template-columns: 1fr; }
  .control-guide > div { flex-wrap: wrap; justify-content: flex-start; }
  .demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .institution-logos { grid-template-columns: repeat(6, minmax(112px, 1fr)); padding: 22px 0; overflow-x: auto; scrollbar-width: thin; }
  .institution { min-height: 54px; padding: 0 12px; }
  .paper-figure { margin-top: 44px; }
  .contribution-line { grid-template-columns: 1fr; }
  .contribution-line > div, .contribution-line > div:not(:first-child) { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .contribution-line > div:last-child { border-bottom: 0; }
  .section { padding: 82px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 9px; }
  .section-number { margin: 0; }
  .figure-group { grid-template-columns: 1fr; gap: 7px; }
  .selected-figure figcaption { grid-template-columns: 1fr; gap: 5px; }
  .experimental-data-summary { grid-template-columns: 1fr 1fr; }
  .experimental-data-summary > div:nth-child(2) { border-right: 0; }
  .experimental-data-summary > div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; padding-left: 0; }
  .coverage-figures { gap: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .title-row { align-items: flex-start; }
  .abstract-lede, .authors, .app-link-row, .project-links, .dataset-links { margin-left: 0; }
  .demo-grid {
    width: calc(100vw - 16px);
    margin-left: -16px;
    padding: 0 16px 10px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .demo-card {
    flex: 0 0 min(82vw, 340px);
    scroll-snap-align: start;
  }
  .app-link-row { align-items: flex-start; }
  .project-links { display: grid; grid-template-columns: 1fr; }
  .link-button { justify-content: space-between; }
  .dataset-links { display: grid; grid-template-columns: 1fr; }
  .control-panel { padding: 13px; }
  .control-panel-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .control-mode-switch { width: 100%; }
  .control-mode { flex: 1 1 50%; }
  .agent-confirmation { align-items: stretch; flex-direction: column; gap: 8px; }
  .agent-run-actions { width: 100%; }
  .agent-confirmation .agent-run-actions button { flex: 1 1 50%; }
  .agent-task-tools { align-items: flex-start; flex-direction: column; }
  .institution-logos { margin-top: 36px; }
  .institution { padding: 0 10px; }
  .button-row { gap: 6px; }
  .figure-button { flex: 1 1 calc(50% - 6px); }
  .figure-group--pedestrian .button-row { grid-template-columns: 1fr; }
  .experimental-data-summary { grid-template-columns: 1fr; }
  .experimental-data-summary > div, .experimental-data-summary > div:not(:first-child), .experimental-data-summary > div:nth-child(3) { grid-column: auto; padding: 14px 0; border-right: 0; border-top: 1px solid var(--line); }
  .experimental-data-summary > div:first-child { border-top: 0; }
  .coverage-figures { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
