:root {
  color-scheme: light;
  --ink: #183037;
  --muted: #52666a;
  --deep: #142b31;
  --deep-2: #1a373b;
  --paper: #f6f8f6;
  --line: #dbe4e0;
  --accent: #e8816d;
  --teal: #2d8f85;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
figure, p, h1, h2, h3 { margin-top: 0; }

.shell { width: min(100% - 3rem, 1240px); margin-inline: auto; }
.site-header { position: relative; z-index: 5; background: var(--deep); color: #eef4f0; }
.nav { min-height: 88px; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: white; text-decoration: none; font-size: 1.2rem; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 35px; height: 35px; border: 1px solid #76938e; border-radius: 10px; color: #f8f6f1; font-size: 1rem; font-weight: 900; }
.nav-links { display: flex; gap: 2.15rem; align-items: center; margin-left: auto; }
.nav-links a, .site-footer a { text-decoration: none; font-weight: 600; }
.nav-links a { font-size: .91rem; color: #e0e9e6; }
.nav-links a:hover, .nav-links a:focus-visible { color: white; text-decoration: underline; text-underline-offset: .35rem; }
.nav-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.25rem; background: var(--accent); color: #242a28; border-radius: 999px; text-decoration: none; font-weight: 750; font-size: .88rem; white-space: nowrap; }
.nav-pill:hover, .button-primary:hover { background: #f49a86; }

.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 74% 45%, #274b49 0%, var(--deep) 49%, #10262d 100%); color: #f8faf8; padding: 4.65rem 0 5.25rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(2.25rem, 5vw, 5.5rem); position: relative; z-index: 1; }
.hero-glow { position: absolute; width: 720px; height: 720px; right: -170px; top: -210px; border-radius: 50%; background: #6db0a2; filter: blur(125px); opacity: .09; pointer-events: none; }
.eyebrow { margin-bottom: 1.1rem; color: #477b78; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; }
.eyebrow.light { color: #b6d2cc; }
.hero h1 { max-width: 12ch; font-size: clamp(2.85rem, 4.55vw, 5.15rem); line-height: 1.065; letter-spacing: -.065em; font-weight: 780; margin-bottom: 1.8rem; }
.authors { font-weight: 760; font-size: 1.04rem; line-height: 1.5; margin-bottom: .95rem; }
sup { font-size: .7em; }
.affiliations { color: #bfd0cc; font-size: .85rem; line-height: 1.48; }
.affiliations p { margin-bottom: .2rem; }
.affiliations a { text-decoration-color: #dfb1a4; text-underline-offset: .2rem; }
.hero-summary { color: #dfeae7; font-size: 1.12rem; line-height: 1.68; max-width: 39rem; margin: 1.9rem 0 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.1rem; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 760; }
.button-primary { background: var(--accent); color: #202b2b; }
.button-outline { border: 1px solid #88a7a0; color: #f4faf7; }
.button-outline:hover { background: #ffffff1a; }
.hero-text-link { align-self: center; color: #e4eeea; font-size: .91rem; font-weight: 700; text-decoration-color: #9ebeb6; text-underline-offset: .28rem; margin-left: .25rem; }
.hero-text-link:hover { color: white; }
.hero-figure { width: 100%; padding: .8rem; border: 1px solid #66827d; border-radius: 23px; background: #ffffff17; box-shadow: 0 22px 65px #071b1f44; transform: translateY(1.2rem); }
.hero-figure img { width: 100%; height: auto; border-radius: 13px; background: white; }
.hero-figure figcaption { color: #c6d5d0; font-size: .83rem; padding: .78rem .38rem .1rem; }
.task-visual { position: relative; overflow: hidden; border-radius: 13px; }
.task-visual img { border-radius: 0; }
.task-label-row { position: absolute; top: 0; left: 0; right: 0; height: 5.1%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; background: #171918f2; color: white; font-size: clamp(7px, .72vw, 11px); font-weight: 800; letter-spacing: .01em; }
.task-label-row-bottom { top: 51.6%; height: 8%; }
.task-label-row span { min-width: 0; padding-inline: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.section { padding: 5.9rem 0; scroll-margin-top: 1rem; }
.section-intro { margin-bottom: 2.5rem; max-width: 760px; }
.section-intro.narrow { max-width: 880px; }
.section-intro h2 { font-size: clamp(2.15rem, 3.7vw, 3.4rem); line-height: 1.12; letter-spacing: -.052em; margin-bottom: 1rem; }
.section-intro p:not(.eyebrow) { font-size: 1.08rem; line-height: 1.72; color: var(--muted); margin-bottom: 0; }
.overview { padding-bottom: 3.25rem; }
.overview .section-intro { margin-bottom: 0; }
.method { padding-top: 2.8rem; }
.paper-figure { background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 32px #1f41400d; overflow: hidden; }
.paper-figure img { width: 100%; height: auto; }
.method-figure { padding: .7rem; }

.videos { background: #eaf1ee; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.video-card { overflow: hidden; background: #fbfcfb; border: 1px solid #d4e0db; border-radius: 19px; box-shadow: 0 12px 28px #1e3c380a; }
.video-frame { position: relative; aspect-ratio: 16/9; background: #17282e; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-info { position: relative; padding: 1.45rem 1.55rem 1.6rem; min-height: 155px; }
.video-number { display: block; color: var(--teal); font-size: .8rem; letter-spacing: .12em; font-weight: 850; margin-bottom: .42rem; }
.video-info h3 { margin-bottom: .5rem; font-size: 1.32rem; letter-spacing: -.03em; }
.video-info p { margin-bottom: 0; color: var(--muted); font-size: .96rem; line-height: 1.55; }

.results { background: #fbfaf7; }
.results .section-intro { max-width: 830px; }
.data-panel { min-width: 0; background: white; border: 1px solid #dce4df; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 42px #173b3409; }
.data-panel + .data-panel, .result-pair, .localisation-panel { margin-top: 1.4rem; }
.panel-heading { padding: 1.85rem 2rem 1.55rem; }
.panel-kicker { color: #ad685b; text-transform: uppercase; letter-spacing: .13em; font-size: .74rem; font-weight: 850; margin-bottom: .48rem; }
.panel-heading h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); letter-spacing: -.045em; line-height: 1.2; margin-bottom: .5rem; }
.panel-heading p:not(.panel-kicker) { color: var(--muted); line-height: 1.58; margin-bottom: 0; }
.policy-visual { padding: 1.5rem 2rem 1.6rem; border-top: 1px solid var(--line); background: #f4f8f5; }
[hidden] { display: none !important; }
.chart-topline { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem; }
.chart-topline h4 { font-size: 1.18rem; letter-spacing: -.025em; margin-bottom: .2rem; }
.chart-topline p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.family-switch { display: inline-flex; padding: .24rem; gap: .18rem; border: 1px solid #cadbd3; border-radius: 999px; background: white; white-space: nowrap; }
.family-switch button { border: 0; border-radius: 999px; background: transparent; color: #526762; padding: .48rem .9rem; cursor: pointer; font-weight: 800; font-size: .82rem; }
.family-switch button[aria-pressed="true"] { background: var(--deep-2); color: white; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin: 1.3rem 0 1rem; font-size: .83rem; color: #405851; font-weight: 650; }
.chart-legend span { display: inline-flex; align-items: center; gap: .42rem; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend-velocity { background: #9fb1aa; }
.legend-pose { background: var(--teal); }
.policy-chart { display: grid; gap: .75rem; }
.chart-row { display: grid; grid-template-columns: minmax(170px, 240px) minmax(0, 1fr); align-items: center; gap: 1rem; }
.chart-task { color: #243e3e; font-size: .87rem; font-weight: 760; line-height: 1.3; }
.chart-pair { display: grid; gap: .25rem; }
.chart-series { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: center; gap: .55rem; }
.bar-track { display: block; height: 15px; border-radius: 999px; background: #dce8e2; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: inherit; }
.bar-fill.velocity { background: #9fb1aa; }
.bar-fill.pose { background: var(--teal); }
.chart-series strong { color: #284640; font-size: .8rem; font-variant-numeric: tabular-nums; text-align: right; }
.chart-axis { display: flex; justify-content: space-between; margin: .45rem 50px 0 calc(min(240px, 22vw) + 1rem); color: #72857e; font-size: .73rem; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
.data-table { width: 100%; border-collapse: collapse; font-size: .87rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.data-table caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.policy-table { min-width: 760px; }
.data-table th, .data-table td { padding: .9rem 1rem; border-bottom: 1px solid #e7ede8; }
.data-table th { text-align: left; }
.data-table td { text-align: center; white-space: nowrap; }
.data-table tbody tr:nth-child(even) { background: #fafbf9; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody th { font-weight: 750; }
.data-table thead { background: #233f3d; color: white; }
.data-table thead th { border-color: #45615b; }
.data-table .group-head th:not(:first-child), .data-table .sub-head th { text-align: center; }
.data-table .sub-head th { background: #2a4a45; padding-top: .45rem; padding-bottom: .5rem; }
.data-table abbr { text-decoration: none; cursor: help; }
.data-table .row-best { color: #a95343; background: #fff0e9; font-weight: 850; }
.table-note { color: #62756c; font-size: .82rem; line-height: 1.55; margin: 0; padding: .9rem 2rem 1.3rem; border-top: 1px solid #edf0ed; }
.result-pair { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.4rem; }
.result-pair .data-panel { margin: 0; }
.compact-table { min-width: 545px; font-size: .8rem; }
.compact-table thead th { font-size: .76rem; line-height: 1.25; }
.compact-table th:first-child { width: 48%; }
.compact-table small { display: block; color: #6d8077; font-size: .72rem; font-weight: 500; }
.compact-table .emphasis-row { background: #e6f3ed !important; color: #1c554a; font-weight: 850; }
.compact-table .emphasis-row small { color: #4d776b; }
.feedback-body { padding: .25rem 2rem 1.4rem; }
.mini-heading { margin: .2rem 0 .85rem; color: #314944; font-size: .85rem; font-weight: 850; }
.mini-heading span { color: #78887f; font-size: .76rem; font-weight: 500; margin-left: .3rem; }
.simple-bar-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 44px; gap: .65rem; align-items: center; margin-bottom: .7rem; color: #4d625c; font-size: .82rem; }
.simple-bar-row strong { text-align: right; color: #28443f; font-size: .95rem; font-variant-numeric: tabular-nums; }
.simple-track { height: 12px; overflow: hidden; border-radius: 999px; background: #edf1ee; }
.simple-track i { display: block; height: 100%; border-radius: inherit; }
.velocity-fill { background: #a1b1aa; }
.pose-fill { background: var(--teal); }
.tracking-heading { margin-top: 1.5rem; }
.tracking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.tracking-grid div { padding: .8rem; border: 1px solid #e3ebe5; border-radius: 10px; background: #f8faf8; }
.tracking-grid .improved { background: #ecf7f1; border-color: #b9dec8; }
.tracking-grid dt { color: #64786e; font-size: .72rem; line-height: 1.3; }
.tracking-grid dd { margin: .25rem 0 0; color: #25453e; font-size: 1.45rem; letter-spacing: -.04em; font-weight: 800; font-variant-numeric: tabular-nums; }
.tracking-grid dd small { font-size: .68rem; font-weight: 650; }
.localisation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; padding: .2rem 2rem 1.4rem; }
.localisation-task { padding: 1.25rem; border-radius: 13px; background: #f3f8f5; border: 1px solid #dfece4; }
.localisation-task h4 { margin-bottom: 1.1rem; font-size: 1.03rem; letter-spacing: -.025em; }
.localisation-task .simple-bar-row { grid-template-columns: 75px minmax(0,1fr) 42px; }
.paper-section { background: var(--deep); color: white; }
.paper-callout { max-width: 900px; text-align: center; }
.paper-callout h2 { font-size: clamp(2.15rem, 4vw, 3.6rem); letter-spacing: -.055em; line-height: 1.12; margin-bottom: .9rem; }
.paper-callout p:not(.eyebrow) { max-width: 640px; margin: 0 auto 1.6rem; color: #c7d8d1; font-size: 1.06rem; line-height: 1.65; }

.citation-shell { max-width: 1000px; }
.citation-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.citation-heading .eyebrow { margin-bottom: .6rem; }
.citation-heading h2 { margin-bottom: 0; font-size: clamp(2rem, 3.7vw, 3rem); letter-spacing: -.045em; }
.copy-citation { border: 0; cursor: pointer; }
.citation-code { max-width: 100%; margin: 0; padding: clamp(1rem, 3vw, 2rem); overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--ink); font: .88rem/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; }
.citation-code code { font: inherit; }
.citation-status { min-height: 1.5rem; margin: .75rem 0 0; color: var(--muted); font-size: .9rem; }

.site-footer { background: #10262b; color: #becdc8; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.6rem 0; font-size: .86rem; }
.site-footer a:hover { color: white; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 1050px) {
  .nav-links { gap: 1.1rem; }
  .nav-pill { display: none; }
  .hero h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); }
}

@media (max-width: 800px) {
  .shell { width: min(100% - 2rem, 680px); }
  .nav { min-height: 74px; gap: 1rem; }
  .nav-links { margin-left: auto; gap: .9rem; }
  .nav-links a { font-size: .82rem; }
  .hero { padding: 3.3rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero h1 { max-width: 16ch; }
  .hero-figure { transform: none; }
  .section { padding: 4.2rem 0; }
  .overview { padding-bottom: 2.2rem; }
  .method { padding-top: 2.2rem; }
  .result-pair, .localisation-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .brand-mark { width: 31px; height: 31px; }
  .nav { flex-wrap: wrap; padding: .8rem 0; }
  .nav-links { width: 100%; margin-left: 0; justify-content: space-between; }
  .hero h1 { font-size: clamp(2.45rem, 11vw, 3.45rem); }
  .hero-summary { font-size: 1rem; }
  .affiliations { font-size: .8rem; }
  .video-grid { grid-template-columns: 1fr; }
  .video-info { min-height: auto; }
  .paper-figure, .video-card, .data-panel { border-radius: 13px; }
  .panel-heading, .policy-visual, .feedback-body { padding-left: 1.1rem; padding-right: 1.1rem; }
  .table-note { padding-left: 1.1rem; padding-right: 1.1rem; }
  .chart-topline { align-items: start; flex-direction: column; }
  .chart-row { grid-template-columns: 1fr; gap: .2rem; }
  .chart-axis { margin-left: 0; }
  .localisation-grid { padding-left: 1.1rem; padding-right: 1.1rem; }
  .hero-text-link { margin-left: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

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