@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #121e30;
  --muted: #475875;
  --muted-light: #b3c2db;
  --blue: #224fca;
  --line: #dbe2ee;
  --tint: #f4f7fd;
  --navy: #14223a;
  --white: #fff;
  --display: "Space Grotesk", Arial, sans-serif;
  --body: Manrope, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; color: var(--ink); background: #fff; font: 500 1rem/1.65 var(--body); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, .table-scroll:focus-visible, video:focus-visible, pre:focus-visible { outline: 3px solid #6894ff; outline-offset: 4px; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, dl, ul, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.1; }
h1, h2, h3 { font-family: var(--display); }
h2 { font-size: clamp(2.25rem, 4.2vw, 3.75rem); font-weight: 700; letter-spacing: -.06em; text-wrap: balance; }
h3 { font-size: 1.4rem; letter-spacing: -.035em; }
sup { font-size: .65em; vertical-align: super; line-height: 0; }
sub { line-height: 0; }
.wrap { width: min(100% - 5.5rem, 75rem); margin-inline: auto; }
.section { padding-block: 6rem; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 5; top: .6rem; left: .6rem; padding: .65rem 1rem; background: var(--white); color: var(--blue); }

.site-header { position: sticky; top: 0; z-index: 3; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.375rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.brand { display: inline-flex; width: max-content; align-items: center; gap: .65rem; font: 700 1.15rem/1 var(--display); letter-spacing: -.045em; text-decoration: none; }
.brand-accent { color: #105d55; }
.mark { width: 2.25rem; height: 2.25rem; flex: none; }
.main-nav { display: flex; gap: clamp(1rem, 2.6vw, 2.25rem); }
.main-nav a { border-bottom: 2px solid transparent; text-decoration: none; color: #425270; font-size: .875rem; font-weight: 750; padding-block: 1.35rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--blue); }
.main-nav a[aria-current] { border-bottom-color: var(--blue); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .625rem; min-height: 3.125rem; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: .55rem; font-size: .91rem; font-weight: 800; line-height: 1.2; text-decoration: none; transition: background-color 150ms, color 150ms, border-color 150ms; }
.button-small { min-height: 2.5rem; padding: .5rem .85rem; font-size: .84rem; }
.button-outline { border-color: #bac8e0; background: transparent; color: var(--ink); }
.button-outline:hover { border-color: #8da3d4; background: #ecf2ff; }
.button[aria-disabled="true"] { cursor: default; color: #475875; background: rgb(255 255 255 / 58%); border-color: #bac8e0; }

.hero { padding-block: 4.65rem 3rem; overflow: clip; background-color: var(--tint); background-image: linear-gradient(110deg, #f4f7fd 22%, rgb(244 247 253 / .7) 63%, rgb(229 237 252 / .82)), repeating-linear-gradient(0deg, transparent 0 31px, #ccd9ee 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, #ccd9ee 31px 32px); border-bottom: 1px solid var(--line); }
.hero-stack { display: grid; justify-items: center; gap: clamp(1.6rem, 3vw, 2.45rem); }
.hero-copy { width: min(100%, 55rem); text-align: center; }
.eyebrow { margin-bottom: .85rem; color: var(--blue); font-size: .82rem; font-weight: 800; letter-spacing: .095em; }
.hero h1 { margin-block: 0 .12em; font-size: clamp(4.1rem, 7.25vw, 7.2rem); font-weight: 700; line-height: .94; letter-spacing: -.092em; white-space: nowrap; }
.hero h1 span { color: var(--blue); }
.paper-title { max-width: 46rem; margin-inline: auto; font: 600 clamp(1.65rem, 2.65vw, 2.75rem)/1.13 var(--display); letter-spacing: -.052em; text-wrap: balance; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1rem; row-gap: .25rem; padding: 0; margin-top: 1.35rem; list-style: none; font-size: .94rem; font-weight: 800; }
.authors li { white-space: nowrap; }
.authors sup { color: var(--blue); margin-left: .13rem; }
.affiliations { color: var(--muted); font-size: .82rem; line-height: 1.6; margin-top: .65rem; }
.author-notes { color: var(--muted); font-size: .78rem; margin-top: .4rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1.45rem; }
.intro-video { width: min(100%, 53rem); aspect-ratio: 16 / 9; border-radius: 1rem; border: 1px solid #cbd7ee; background: var(--white); overflow: hidden; }
.intro-video video { width: 100%; height: 100%; object-fit: contain; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 53rem); margin: 2.3rem auto 0; text-align: center; padding-block: 1.15rem .4rem; border-top: 1px solid #c8d4ed; }
.metrics > div { padding-inline: 1.65rem; }
.metrics > div + div { border-left: 1px solid #c8d4ed; }
.metrics dt { font-size: .875rem; font-weight: 800; }
.metrics dd { color: var(--blue); margin: .25rem 0 .15rem; font: 700 clamp(2.7rem, 4.8vw, 4rem)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
.metrics dd span { font-size: .52em; }
.metrics .metric-note { margin: 0; color: var(--muted); font: 500 .84rem/1.55 var(--body); letter-spacing: 0; }

.abstract, .citation { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.13fr); gap: 3.5rem; align-items: start; }
.prose { color: var(--muted); font-size: 1.07rem; line-height: 1.8; }
.prose p + p { margin-top: .85rem; }
.section-tinted { background: var(--tint); border-block: 1px solid var(--line); }
.section-intro { max-width: 52rem; margin-bottom: 2rem; }
.section-intro > p:last-child { margin-top: .9rem; color: var(--muted); max-width: 44rem; }
.paper-figure { border: 1px solid var(--line); background: white; border-radius: .95rem; padding: 1.15rem 1.15rem 0; }
.paper-figure a { display: block; border-radius: .25rem; }
.paper-figure img { width: 100%; height: auto; }
.paper-figure figcaption { padding-block: .8rem; margin-top: .65rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.method-steps { list-style: none; margin: 1rem 0 0; padding: 0; border: 1px solid var(--line); border-radius: .95rem; background: var(--white); }
.method-steps li { display: grid; grid-template-columns: 4.85rem minmax(10rem, 14rem) minmax(0, 1fr); align-items: center; column-gap: clamp(1rem, 2.4vw, 2rem); padding: 1.05rem clamp(1rem, 2.5vw, 1.65rem); }
.method-steps li + li { border-top: 1px solid var(--line); }
.method-steps h3 { font-size: 1.25rem; line-height: 1.22; }
.method-steps p { color: var(--muted); line-height: 1.6; }
.method-icon { display: grid; place-items: center; width: 100%; aspect-ratio: 1.3; border-radius: .72rem; background: #edf3ff; }
.method-icon img { width: min(100%, 4rem); height: auto; }

.benchmark { padding: 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: #f8faff; }
.segmented { display: flex; flex-wrap: wrap; gap: .25rem; width: fit-content; padding: .3rem; border: 1px solid #d2ddeb; background: #edf2fb; border-radius: .7rem; }
.segmented button { border: 1px solid transparent; border-radius: .45rem; padding: .54rem .86rem; min-height: 2.5rem; background: transparent; color: #344668; font-size: .88rem; font-weight: 800; line-height: 1.25; }
.segmented button:hover { background: #e0e8fc; }
.segmented button[aria-pressed="true"] { background: var(--blue); color: white; }
.benchmark-controls[hidden], .benchmark-panel[hidden] { display: none; }
.benchmark-controls [aria-selected="true"] { background: var(--blue); color: white; }
.benchmark-panel { margin-top: .9rem; padding: 1.35rem; min-width: 0; border: 1px solid var(--line); border-radius: .75rem; background: white; }
.benchmark-panel h3 { margin-bottom: .4rem; }
.benchmark-panel p { color: var(--muted); font-size: .88rem; }
.table-scroll-hint { display: none; margin-top: .6rem; }
.table-scroll { max-width: 100%; margin-block: .8rem; overflow: auto; border: 1px solid var(--line); border-radius: .5rem; }
.results-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 44rem; font-size: .89rem; font-variant-numeric: tabular-nums; }
#benchmark-plus .results-table { min-width: 63rem; }
.results-table caption { text-align: left; padding: .75rem .9rem; color: var(--muted); font-size: .85rem; }
.results-table :is(th, td) { padding: .57rem .75rem; border-bottom: 1px solid #e1e7f2; text-align: right; white-space: nowrap; }
.results-table thead th { background: #f1f5ff; color: #354769; font-weight: 800; }
.results-table :is(th, td):first-child, .results-table th[scope="row"] { text-align: left; }
.results-table tbody th { font-weight: 700; }
.results-table tbody tr:last-child > * { border-bottom: 0; }
.results-table .result-ours > * { color: #163d9c; background: #eaf1ff; font-weight: 650; }
.results-table .result-ours > th, .result-best { font-weight: 800; }
.result-runner-up { text-decoration: underline; text-underline-offset: .18em; }
.result-source { font-size: .84em; font-weight: 500; color: var(--muted); }
.results-table .result-delta { color: #4a5b78; font-size: .85em; font-weight: 650; }
.results-table :is(th, td):not(:first-child) { min-width: 4.8rem; }

.robotics { background: var(--navy); color: white; }
.robotics .eyebrow { color: #a9c4ff; }
.robotics .section-intro > p:last-child { color: #c9d6eb; }
.video-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1rem; }
.video-controls > p { font-size: .88rem; font-weight: 800; color: #dce7fa; }
.condition-controls { background: #1c2f4e; border-color: #3f5377; }
.condition-controls button { color: #dbe7fb; }
.condition-controls button:hover { background: #2a4168; }
.condition-controls button[aria-pressed="true"] { background: #dce8ff; color: #193d99; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.video-card { min-width: 0; border: 1px solid #3a4e70; border-radius: .85rem; overflow: hidden; background: #1a2b47; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; height: auto; background: #101a2b; }
.video-card-caption { display: flex; align-items: baseline; justify-content: space-between; gap: .45rem; flex-wrap: wrap; padding: .8rem .9rem; }
.video-card h3 { font-size: 1.14rem; }
.video-card-caption span { font-size: .79rem; color: #c2d2ed; }
.setup-details { margin-top: 1rem; border: 1px solid #3a4e70; border-radius: .85rem; background: #182944; }
.setup-details summary { cursor: pointer; padding: 1rem clamp(.85rem, 2.4vw, 1.35rem); font-weight: 800; }
.setup-details summary::marker { color: #a9c4ff; }
.setup-details summary:hover { color: #b8d2ff; }
.setup-details summary:focus-visible { outline: 3px solid #6894ff; outline-offset: 3px; }
.setup-content { display: grid; gap: 1.25rem; padding: 0 clamp(.6rem, 2.4vw, 1.35rem) clamp(.75rem, 2.4vw, 1.35rem); }
.setup-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; align-items: start; }
.setup-card { min-width: 0; padding: clamp(.65rem, 1.7vw, 1rem); border: 1px solid #3a4e70; border-radius: .7rem; background: #1d304e; }
.setup-card h3, .setup-card h4 { margin-bottom: .7rem; }
.setup-card h4 { font-family: var(--display); font-size: 1.12rem; }
.setup-camera-grid, .setup-step-grid { display: grid; gap: clamp(.5rem, 1.4vw, .95rem); }
.setup-camera-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.setup-step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.setup-photo { display: block; border-radius: .4rem; }
.setup-content img { width: 100%; height: auto; border-radius: .4rem; }
.setup-content figcaption { color: #d4e1f6; font-size: .86rem; line-height: 1.4; margin-top: .42rem; }
.setup-sequences { display: grid; gap: .7rem; }

.citation-box { overflow: hidden; background: var(--tint); border: 1px solid var(--line); border-radius: .85rem; }
.citation-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-bottom: 1px solid var(--line); padding: .65rem 1rem; font-size: .88rem; font-weight: 800; }
.citation-box pre { overflow-x: auto; margin: 0; padding: .9rem 1rem 1rem; font-size: .86rem; line-height: 1.65; color: #26385e; }
.citation-box pre code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.site-footer { background: var(--tint); border-top: 1px solid var(--line); }
.footer-inner { display: flex; gap: .75rem 1.35rem; flex-wrap: wrap; align-items: center; padding-block: 1.2rem; }
.footer-inner p { color: var(--muted); font-size: .84rem; }

@media (max-width: 1000px) {
  .wrap { width: min(100% - 3.5rem, 75rem); }
  .header-inner { gap: 1rem; }
  .hero { padding-top: 3.6rem; }
  .hero h1 { font-size: clamp(3.7rem, 8.3vw, 5.2rem); }
  .section { padding-block: 4.5rem; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 7.2rem; }
  .wrap { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 .5rem; padding-top: .55rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: .95rem; overflow-x: auto; padding-inline: .25rem; }
  .main-nav a { padding-block: .62rem; font-size: .82rem; }
  .hero { padding-block: 2.65rem 2rem; }
  .hero h1 { font-size: clamp(3.5rem, 14vw, 6rem); }
  .metrics { margin-top: 1.9rem; }
  .metrics > div { padding-inline: .7rem; }
  .metrics dt, .metrics .metric-note { line-height: 1.35; }
  .metrics dd { font-size: clamp(1.8rem, 6.1vw, 3rem); }
  .metrics .metric-note { font-size: .78rem; }
  .abstract, .citation { grid-template-columns: 1fr; gap: .85rem; }
  .section { padding-block: 3.4rem; }
  .video-grid, .setup-layout { grid-template-columns: 1fr; }
  .method-steps li { grid-template-columns: 3.85rem minmax(0, 1fr); gap: .35rem .8rem; align-items: start; padding: .9rem; }
  .method-icon { grid-row: span 2; }
  .method-icon img { width: min(100%, 3.5rem); }
  .method-steps h3 { grid-column: 2; font-size: 1.14rem; }
  .method-steps p { grid-column: 2; }
  .setup-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benchmark, .benchmark-panel { padding: .75rem; }
  .table-scroll-hint { display: block; }
  .results-table tbody th[scope="row"] { max-width: 12rem; white-space: normal; }
  .results-table .result-source { display: block; }
}

@media (max-width: 480px) {
  .paper-figure { padding-inline: .6rem; }
  .condition-controls button, .benchmark-controls button { padding-inline: .58rem; font-size: .82rem; }
  .benchmark-controls { width: 100%; }
  .benchmark-controls button { flex: 1 0 auto; padding-inline: .4rem; }
  .results-table :is(th, td) { padding-inline: .62rem; }
}

@media (max-width: 360px) {
  .benchmark-controls:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; }
}

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