:root {
  --ink: #22252a;
  --muted: #626870;
  --line: #dde1e6;
  --panel: #f7f8fa;
  --blue: #2866a6;
  --blue-soft: #eef4fa;
  --page: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
a { color: var(--blue); }
button, input { font: inherit; }
video { display: block; width: 100%; background: #111; }

.hero,
.content-section,
footer {
  width: min(var(--page), calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  padding: 42px 0 34px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.paper-title {
  margin: 10px auto 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.7vw, 29px);
  line-height: 1.22;
}
.authors {
  max-width: 920px;
  margin: 0 auto 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.65;
}
.authors a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #c6ccd3;
}
.authors a:hover { color: var(--blue); border-color: var(--blue); }
.authors sup,
.affiliations sup,
.author-notes sup { font-size: .7em; line-height: 0; }
.affiliations {
  display: flex;
  max-width: 900px;
  margin: 0 auto 5px;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 17px;
  row-gap: 1px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.author-notes {
  display: flex;
  margin: 0 auto 15px;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.project-links a,
.project-links span {
  display: inline-flex;
  min-height: 34px;
  padding: 6px 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid #bdc5ce;
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
}
.project-links a:hover { color: var(--blue); border-color: #8fa8c1; background: var(--blue-soft); }
.project-links span { color: #8b9096; border-color: var(--line); }
.project-links small { margin-left: 5px; font-size: 10px; }
.teaser { width: min(960px, 100%); margin: 0 auto; }
.teaser video { aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; text-align: left; }

.content-section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 12px;
}
.content-section h2 {
  margin: 0 0 8px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
}
.overview-section {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 30px;
  align-items: start;
}
.abstract { margin: 0; text-align: justify; }
.section-intro { max-width: 760px; margin: 0 0 22px; color: var(--muted); }
.video-speed-note {
  width: fit-content;
  max-width: 760px;
  margin: -8px 0 22px;
  padding: 7px 11px;
  border-left: 3px solid #88a8c8;
  color: var(--muted);
  background: #f6f8fa;
  font-size: 12px;
  line-height: 1.45;
}
.video-speed-note strong { color: var(--text); font-weight: 650; }
.paper-figure { margin: 0; }
.paper-figure img { display: block; width: 100%; height: auto; }
.overview-figure img { max-height: 470px; object-fit: contain; }
.method-figure { width: min(100%, 1020px); margin-inline: auto; }

.results-group { margin-top: 26px; }
.results-group + .results-group {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.results-group-header { margin-bottom: 14px; }
.results-group-header h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.3; }
.results-group-header p { max-width: 850px; margin: 0; color: var(--muted); font-size: 13px; }
.results-figure { width: min(1020px, 100%); margin-inline: auto; }
.results-figure img { width: 100%; }
.real-results-figure {
  width: min(900px, 92%);
  margin-top: 20px;
}
.real-results-figure figcaption { margin-top: 10px; }
.real-analysis-heading {
  width: min(900px, 92%);
  margin: 30px auto 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.real-analysis-heading h4 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; }
.real-analysis-heading p { margin: 0; color: var(--muted); font-size: 12.5px; }
.real-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(1020px, 100%);
  margin: 0 auto;
  align-items: start;
}
.real-analysis-figure { min-width: 0; }
.real-analysis-figure img { width: 100%; }
.real-analysis-figure figcaption { margin-top: 8px; padding: 0 6px; }

.task-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 14px;
}
.task-card {
  flex: 0 1 calc(33.333% - 10px);
  min-width: 0;
}
.task-card video { aspect-ratio: 1416 / 1080; object-fit: cover; }
.task-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
}
.task-meta strong { font-weight: 600; }
.task-meta span { flex: 0 0 auto; color: var(--muted); font-size: 10px; }

.featured-rollout {
  margin: 26px 0 34px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.featured-rollout-header { margin-bottom: 14px; }
.featured-rollout-header > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.featured-rollout-header h3 { margin: 2px 0 3px; font-size: 19px; line-height: 1.3; }
.featured-rollout-header p { margin: 0; color: var(--muted); font-size: 13px; }
.featured-rollout-media {
  display: grid;
  grid-template-columns: minmax(0, 2.39fr) minmax(210px, 1fr);
  gap: 10px;
  align-items: start;
}
.featured-primary-view,
.featured-input-view { min-width: 0; }
.featured-primary-view video { aspect-ratio: 1416 / 1000; object-fit: contain; }
.featured-view-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
}
.featured-view-label span { color: var(--muted); font-size: 10px; }
.featured-inputs { display: grid; gap: 0; }
.featured-input-view { position: relative; background: #111; }
.featured-input-view video { aspect-ratio: 16 / 9; object-fit: contain; }
.featured-input-view span {
  position: absolute;
  left: 6px;
  bottom: 5px;
  padding: 2px 5px;
  color: #fff;
  background: rgba(0, 0, 0, .62);
  font-size: 9px;
  line-height: 1.2;
}
.more-rollouts-heading { margin-bottom: 13px; }
.more-rollouts-heading h3 { margin: 0 0 2px; font-size: 18px; }
.more-rollouts-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.rollout-groups { display: grid; gap: 28px; }
.rollout-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.rollout-group-header h4 { margin: 0; font-size: 15px; }
.rollout-group-header span { color: var(--muted); font-size: 10px; }

.anticipation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.anticipation-view-toolbar {
  display: flex;
  max-width: 650px;
  margin: -4px 0 16px;
  padding: 8px 9px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.anticipation-view-toolbar > span { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.anticipation-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.anticipation-card.ours { border-color: #7599bd; background: #fbfdff; }
.anticipation-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  align-items: center;
}
.anticipation-card-header div { display: flex; flex-direction: column; }
.anticipation-card-header strong { font-size: 15px; line-height: 1.25; }
.anticipation-card-header div span { color: var(--muted); font-size: 10px; }
.method-tag {
  padding: 2px 7px;
  border: 1px solid #c8ced5;
  border-radius: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.anticipation-card.ours .method-tag { color: var(--blue); border-color: #9bb7d3; background: var(--blue-soft); }
.anticipation-card video { aspect-ratio: 7 / 4; object-fit: cover; }
.anticipation-frame-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin-top: 5px;
}
.anticipation-frame-strip a { min-width: 0; color: var(--muted); text-decoration: none; }
.anticipation-frame-strip img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 4; object-fit: cover; }
.anticipation-frame-strip span { display: block; margin-top: 2px; font-size: 8px; text-align: center; }
.anticipation-evidence { margin-top: 16px; }
.anticipation-evidence table { width: 100%; border-collapse: collapse; font-size: 12px; }
.anticipation-evidence th,
.anticipation-evidence td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: right; }
.anticipation-evidence thead th { color: var(--muted); background: var(--panel); font-size: 10px; font-weight: 600; }
.anticipation-evidence th:first-child { text-align: left; }
.anticipation-evidence tbody th { font-weight: 600; }
.anticipation-evidence tbody tr.ours { background: #f7fbff; }
.anticipation-cta { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; text-decoration: none; }
.anticipation-cta:hover { text-decoration: underline; }

.comparison-controls {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 10px;
  max-width: 650px;
  margin-bottom: 18px;
}
.comparison-controls fieldset {
  min-width: 0;
  margin: 0;
  padding: 7px 9px 9px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.comparison-controls legend { padding: 0 4px; color: var(--muted); font-size: 11px; }
.segmented { display: flex; flex-wrap: wrap; gap: 5px; }
.segmented button,
.transport button {
  padding: 5px 9px;
  border: 1px solid #bdc4cc;
  border-radius: 3px;
  color: #4d5359;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
}
.segmented button:hover,
.transport button:hover { border-color: #8295a8; }
.segmented button.active { color: #fff; border-color: var(--blue); background: var(--blue); }
.comparison-groups { display: grid; gap: 26px; }
.comparison-group + .comparison-group { padding-top: 24px; border-top: 1px solid var(--line); }
.comparison-title { margin: 0 0 9px; font-size: 16px; font-weight: 600; }
.comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.comparison-card { min-width: 0; border: 1px solid var(--line); background: #fff; }
.comparison-card.ours { border-color: #7599bd; }
.comparison-card video { aspect-ratio: var(--comparison-aspect, 16 / 9); object-fit: cover; }
.comparison-label { display: flex; justify-content: space-between; align-items: center; padding: 7px 9px; }
.comparison-label strong { font-size: 13px; }
.comparison-label span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.comparison-analysis {
  max-width: 920px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.comparison-analysis strong { color: var(--text); font-weight: 600; }
.comparison-analysis a { font-weight: 600; text-decoration: none; }
.comparison-analysis a:hover { text-decoration: underline; }
.transport {
  display: grid;
  grid-template-columns: auto auto auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}
.transport input { width: 100%; accent-color: var(--blue); }
.transport output {
  min-width: 116px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  text-align: right;
}

.resource-list { margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.resource-list li { display: flex; justify-content: space-between; gap: 24px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.resource-list a { font-weight: 600; text-decoration: none; }
.resource-list a:hover { text-decoration: underline; }
.resource-list span { color: var(--muted); font-size: 12px; }

footer {
  padding: 19px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 880px) {
  .overview-section { grid-template-columns: 1fr; gap: 20px; }
  .overview-copy { max-width: 760px; }
  .overview-figure { width: min(620px, 100%); margin-inline: auto; }
  .real-analysis-heading { width: 100%; }
  .real-analysis-grid { grid-template-columns: 1fr; gap: 26px; }
  .task-card { flex-basis: calc(50% - 7px); }
  .featured-rollout-media { grid-template-columns: 1fr; }
  .featured-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .anticipation-grid { grid-template-columns: 1fr; }
  .comparison-controls { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero, .content-section, footer { width: min(100% - 26px, var(--page)); }
  .hero { padding: 30px 0 26px; }
  .paper-title br { display: none; }
  .authors { font-size: 15px; line-height: 1.6; }
  .affiliations { column-gap: 11px; font-size: 11px; }
  .author-notes { margin-bottom: 13px; }
  .project-links { margin-bottom: 18px; }
  .content-section { padding: 31px 0; }
  .content-section h2 { font-size: 24px; }
  .real-results-figure { width: 100%; }
  .task-card { flex-basis: 100%; }
  .featured-rollout { padding: 12px; }
  .featured-inputs { grid-template-columns: 1fr; }
  .anticipation-view-toolbar { display: block; }
  .anticipation-view-toolbar > span { display: block; margin-bottom: 6px; }
  .anticipation-evidence { overflow-x: auto; }
  .anticipation-evidence table { min-width: 560px; }
  .transport { grid-template-columns: repeat(3, 1fr); }
  .transport input, .transport output { grid-column: 1 / -1; }
  .transport output { text-align: left; }
  .resource-list li { display: block; }
  .resource-list span { display: block; margin-top: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Prediction evidence follows the closed-loop policy comparisons it explains. */
.comparison-evidence {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.comparison-evidence-heading { max-width: 850px; margin: 0 0 16px; }
.comparison-evidence-heading > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.comparison-evidence-heading h3 { margin: 3px 0 5px; font-size: 19px; line-height: 1.3; }
.comparison-evidence-heading p { margin: 0; color: var(--muted); font-size: 12.5px; }
