:root {
  color-scheme: light;
  --ink: #172622;
  --muted: #4f635c;
  --green: #176448;
  --green-dark: #104a35;
  --mint: #e5efe6;
  --navy: #335e78;
  --line: #d9e3da;
  --paper: #fbfcf9;
  --white: #fff;
  --shell: 74rem;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
a { color: inherit; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible {
  outline: 3px solid #358866; outline-offset: 4px;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
.shell { max-width: var(--shell); width: calc(100% - 3rem); margin-inline: auto; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 4; padding: .7rem; background: var(--white); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { background: #fdfefa; border-bottom: 1px solid var(--line); }
.navbar { min-height: 4.5rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-weight: 780; font-size: 1.13rem; letter-spacing: -.045em; text-decoration: none; }
.brand-mark { width: 1.5rem; height: 1.5rem; flex: none; object-fit: contain; }
.navbar nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem clamp(.6rem, 1.5vw, 1.4rem); font-size: .93rem; color: var(--muted); }
.navbar nav a { text-decoration: none; }
.navbar nav a:hover, .site-footer a:hover { color: var(--green); text-decoration: underline; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.45rem; padding: .45rem .9rem; border-radius: .42rem; font-size: .89rem; font-weight: 640; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.paper-button { color: var(--white); background: var(--green-dark); border-color: var(--green-dark); }
.paper-button:hover { background: #1f6148; border-color: #1f6148; }
.blog-button { color: var(--green-dark); background: var(--mint); border-color: #bfd3c3; }
.blog-button:hover { background: #d6e7d8; border-color: #9fc0a7; }
.lang-button { color: var(--ink); background: #f3f7f2; border-color: #cbdad0; min-width: 3.4rem; }
.lang-button:hover { background: #e5efe6; border-color: #a8c3b0; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: .65rem; flex-wrap: wrap; margin-top: 1.15rem; }
.result-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; gap: 1.25rem; font-size: .93rem; }
.hero { padding: clamp(2rem, 5vw, 4.4rem) 0 2.2rem; background: radial-gradient(ellipse at 78% 5%, #e3f0e0 0%, transparent 58%), #f2f6ed; border-bottom: 1px solid var(--line); }
.hero-title { max-width: 61rem; margin: 0 auto 2.7rem; text-align: center; }
h1, .section-heading h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.055em; }
h1 { font-size: clamp(3.6rem, 8vw, 6.15rem); line-height: .96; margin-bottom: .95rem; }
.paper-title { margin: 0 auto 1.1rem; max-width: 48rem; font-size: clamp(1.2rem, 2.7vw, 1.86rem); font-weight: 650; line-height: 1.24; letter-spacing: -.035em; }
.authors { max-width: 57rem; margin: 0 auto; color: #314a3f; font-size: .96rem; }
.author-row { display: block; }
.author-name { display: inline-block; white-space: nowrap; }
.authors sup, .equal-contribution sup { color: var(--green); margin-left: .08em; }
.affiliations, .equal-contribution { font-size: .88rem; color: var(--muted); }
.affiliations { margin-top: .4rem; }
.featured { border: 1px solid #cedcce; background: var(--white); border-radius: .82rem; padding: .95rem; box-shadow: 0 14px 45px #19362912; }
.featured-heading { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; margin: .25rem .2rem .8rem; }
.featured-heading h2 { font-size: 1.25rem; letter-spacing: -.025em; }
.featured-heading span { color: var(--muted); font-size: .85rem; text-align: right; }
.streams { display: grid; grid-template-columns: repeat(var(--streams,2), minmax(0,1fr)); column-gap: .55rem; }
.stream { min-width: 0; overflow: hidden; border-radius: .49rem; background: #182722; }
@supports (grid-template-rows: subgrid) {
  .streams { grid-template-rows: auto auto; }
  .stream { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
}
.stream figcaption { display: flex; align-items: center; padding: .46rem .72rem; min-height: 2.1rem; background: #dfede1; color: #174d37; font-size: .87rem; font-weight: 650; line-height: 1.15; }
.stream figcaption strong { font-weight: 800; }
.stream:nth-child(2) figcaption { background: #e4edf3; color: #214b64; }
.stream:nth-child(3) figcaption { background: #f1e9e5; color: #754b40; }
.stream video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
#robotwin .stream video { aspect-ratio: 4 / 3; }
.transport { min-height: 3.25rem; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .75rem; padding: .66rem .12rem 0; }
.transport input { width: 100%; min-width: 1.25rem; accent-color: var(--green); cursor: pointer; }
.transport button, .transport select, #close-pair {
  border-radius: .36rem; border: 1px solid #cbdad0; background: #f3f8f3; color: #1b5039;
  font-weight: 650; font-size: .87rem; min-height: 2.15rem; padding: .25rem .65rem;
}
.transport button:hover, #close-pair:hover { background: #e7f1e7; }
.transport .play { min-width: 6.1rem; text-align: center; background: var(--green-dark); color: white; border-color: var(--green-dark); }
.transport .play:hover { background: var(--green); }
.transport .clock { font-size: .85rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.player-status { color: #8b3429; font-size: .875rem; }
.player-status:empty { display: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 1.7rem; border-bottom: 1px solid var(--line); }
.stats > div { padding: .35rem 1.35rem; }
.stats > div:first-child { padding-left: 0; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats strong { font-size: clamp(1.6rem,4vw,2.65rem); color: var(--green-dark); line-height: 1.1; letter-spacing: -.06em; font-weight: 710; white-space: nowrap; }
.stats strong span { font-size: .65em; }
.stats p { margin-top: .25rem; color: var(--muted); }
.section { padding-block: clamp(2.5rem,5vw,4.85rem); }
.section-heading { margin-bottom: 1.35rem; }
.section-heading h2 { font-size: clamp(2.25rem, 4.5vw, 3.8rem); margin-bottom: .55rem; }
.section-heading p { max-width: 49rem; color: var(--muted); }
.segmented { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .24rem; border: 1px solid var(--line); border-radius: .51rem; background: #eef2ec; }
.segmented button { padding: .38rem .77rem; border: 0; border-radius: .34rem; color: #455951; background: transparent; font-size: .93rem; font-weight: 650; }
.segmented button[aria-pressed="true"] { background: var(--green-dark); color: #fff; }
.segmented button:not([aria-pressed="true"]):hover { background: #dce9db; }
.demos-section + .demos-section { border-top: 1px solid var(--line); }
.demo-layout { display: grid; grid-template-columns: minmax(14rem, .95fr) minmax(0,3fr); gap: 1.05rem; align-items: start; }
.demo-list { display: grid; gap: .4rem; }
.demo-choice { width: 100%; min-height: 3.9rem; display: grid; grid-template-columns: 4.1rem 1fr; align-items: center; gap: .63rem; text-align: left; background: #f3f6f0; color: var(--ink); border: 1px solid transparent; padding: .34rem .43rem; border-radius: .42rem; font-size: .88rem; font-weight: 630; line-height: 1.22; }
.demo-choice img { aspect-ratio: 1.65; object-fit: cover; width: 100%; border-radius: .24rem; }
.demo-choice:hover { background: #e8f1e6; }
.demo-choice[aria-pressed="true"] { border-color: #8bb69d; background: #e0eee2; color: #104d33; }
.demo-stage { min-width: 0; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: .66rem; }
.stage-heading { margin-bottom: .9rem; }
.stage-heading h3 { font-size: 1.37rem; letter-spacing: -.024em; }
.stage-heading p { margin-top: .3rem; color: var(--muted); }
.dataset-section { background: #ebf2e9; border-block: 1px solid var(--line); }
.dataset-toolbar { display: flex; align-items: end; justify-content: space-between; gap: .8rem 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.composition { flex: 1 1 25rem; max-width: 39rem; }
.composition-bar { display: grid; grid-template-columns: 5260fr 9227fr 6782fr; height: .67rem; gap: 2px; border-radius: 10rem; overflow: hidden; margin-bottom: .47rem; }
.source-real { background: #408964; }.source-astr { background: #637fa4; }.source-agi { background: #a6866c; }
.composition-legend { display: flex; gap: .25rem 1rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.composition-legend i { display: inline-block; width: .52rem; height: .52rem; border-radius: 50%; margin-right: .32rem; }
.mosaic { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .68rem; }
.pair-tile { padding: .55rem; background: #f9fcf8; color: var(--ink); border: 1px solid #cbdbcd; border-radius: .55rem; text-align: left; min-width: 0; }
.pair-tile:hover { border-color: #548d6f; background: #fff; }
.tile-title { display: flex; justify-content: space-between; gap: .35rem; align-items: baseline; font-weight: 690; line-height: 1.2; margin: .12rem 0 .52rem; }
.tile-title small { display: inline-block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.frame-row { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 2px; padding-bottom: 2px; }
.frame-row img { width: 100%; aspect-ratio: 1.4; object-fit: cover; background: #dee9de; }
.tile-labels { display: block; margin-top: .25rem; font-size: .78rem; color: var(--muted); }
.results-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); align-items: center; gap: clamp(1rem,4vw,3.3rem); }
.result-chart { padding: .9rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--white); }
.result-chart img { width: 100%; height: auto; }
.result-chart figcaption { color: var(--muted); margin: .6rem .12rem .1rem; font-size: .84rem; }
.result-copy h3 { font-size: clamp(1.3rem,3vw,1.75rem); letter-spacing: -.035em; }
.result-copy p { color: var(--muted); margin: .68rem 0 1rem; }
.citation-section { border-top: 1px solid var(--line); }
.citation-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.citation-heading h2 { margin: 0; }
.citation-copy { background: #f3f8f3; color: var(--green-dark); border: 1px solid #cbdad0; }
.citation-copy:hover { background: #e7f1e7; }
.citation-code { margin: 0; padding: clamp(.75rem,2vw,1.4rem); border: 1px solid var(--line); border-radius: .6rem; background: #edf3eb; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .86rem; }
.site-footer { background: #edf3eb; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; align-items: center; min-height: 5.4rem; }
.footer-row > a { font-size: .93rem; }
dialog { color: var(--ink); background: var(--white); border: 1px solid #c3d7c7; border-radius: .8rem; width: min(90vw, 62rem); max-height: 90vh; padding: 1.1rem; box-shadow: 0 1rem 4rem #071c1466; }
dialog::backdrop { background: #14251bc7; }
.dialog-heading { display: flex; justify-content: space-between; gap: .8rem; align-items: start; margin-bottom: .9rem; }
.dialog-heading h2 { font-size: 1.5rem; }
.dialog-heading p { color: var(--muted); margin-top: .2rem; }

@media (max-width: 52rem) {
  .navbar { grid-template-columns: 1fr auto; padding-block: .45rem; }
  .navbar nav { grid-row: 2; grid-column: 1 / -1; padding-bottom: .35rem; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .demo-layout { grid-template-columns: 1fr; }
  .demo-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mosaic { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 35rem) {
  .shell { width: calc(100% - 1.6rem); }
  .navbar { min-height: 3.75rem; gap: .45rem; grid-template-columns: 1fr auto; }
  .navbar nav { grid-row: 2; grid-column: 1/-1; gap: .32rem .85rem; padding: .05rem 0 .6rem; }
  .header-actions { grid-column: 2; grid-row: 1; gap: .35rem; }
  .header-actions .button { min-height: 2.1rem; padding: .3rem .6rem; font-size: .8rem; }
  .hero-title { margin-bottom: 1.6rem; }
  .featured, .demo-stage { padding: .55rem; }
  .featured-heading { align-items: center; margin: .25rem .12rem .55rem; }
  .featured-heading h2 { font-size: 1.06rem; }
  .featured-heading span { font-size: .75rem; }
  .streams { column-gap: .28rem; }
  .stream figcaption { font-size: .78rem; padding: .35rem .35rem; min-height: 2.35rem; }
  .transport { gap: .36rem; }
  .transport .play { min-width: 3.85rem; padding-inline: .32rem; }
  .transport .clock { font-size: .76rem; }
  .transport select { padding-inline: .15rem; }
  .stats > div { padding: .3rem .6rem; }
  .stats p { font-size: .79rem; line-height: 1.3; }
  .demo-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .demo-choice { grid-template-columns: 2.7rem 1fr; font-size: .8rem; }
  .mosaic, .results-layout { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
