:root {
  --orange: #3273dc;
  --navy: #363636;
  --ink: #222a35;
  --muted: #5f6670;
  --line: #dfe3e8;
  --light: #f6f7f8;
  --shell: min(1040px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Noto Sans", "Helvetica Neue", Arial, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }
.shell { width: var(--shell); margin: 0 auto; }
.narrow { max-width: 830px; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 20; padding: 8px 14px; background: #fff; border-radius: 4px; }
.skip-link:focus { top: 16px; }

/* Publication header, following the supplied MorphMimic reference. */
.hero { min-height: 590px; position: relative; overflow: hidden; color: #fff; background: #777; }
.hero-media, .hero-video, .hero-shade { position: absolute; inset: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; filter: blur(1px); }
.hero-video.is-active { opacity: 1; }
.hero-shade { z-index: 1; background: rgba(20, 24, 31, .58); }
.hero-content { min-height: 590px; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 54px 0 48px; text-align: center; }
.publication-title { max-width: 980px; margin: 0; font-family: "Google Sans", "Noto Sans", sans-serif; font-size: clamp(2.25rem, 4.8vw, 3.75rem); line-height: 1.12; font-weight: 700; text-shadow: 0 2px 5px rgba(0,0,0,.55); }
.authors { max-width: 980px; margin-top: 27px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 17px; font-family: "Google Sans", "Noto Sans", sans-serif; font-size: 1.05rem; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.authors a:hover { color: #ffe1d1; text-decoration: underline; }
sup { font-size: .65em; vertical-align: super; }
.affiliations { max-width: 920px; margin: 17px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 19px; font-size: .82rem; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.resource-links { margin-top: 29px; display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
.resource-link { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 0 18px; color: #fff; background: var(--navy); border-radius: 999px; font-size: .87rem; font-weight: 600; transition: background .15s ease; }
.resource-link:hover { background: #222; }
.resource-link .icon { width: 1.25em; display: inline-flex; align-items: center; justify-content: center; }

/* Standard academic project-page sections. */
.section { padding: 62px 0; background: #fff; }
.section + .section { border-top: 1px solid #f0f1f3; }
.section-dark, .section-paper, .section-tint, .section-deploy { color: var(--ink); background: #fff; }
.section-paper { background: var(--light); }
.section-heading { max-width: 900px; margin: 0 auto 34px; text-align: center; }
.section-heading h2, .narrow h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.35rem); line-height: 1.2; font-weight: 700; }
.section-heading > p { max-width: 760px; margin: 18px auto 0; color: var(--muted); font-size: .98rem; }
.kicker { display: none; }
.compact-heading { margin-bottom: 28px; }
.reveal { opacity: 1; transform: none; }

.demo-frame { max-width: 920px; margin: auto; overflow: hidden; border-radius: 8px; background: #000; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.demo-frame video { width: 100%; max-height: 74vh; }
.narrow { text-align: center; }
.abstract-copy { margin: 25px 0 0; color: #383f48; font-size: 1rem; line-height: 1.72; text-align: justify; }
.dataset-statistics-title { max-width: 980px; margin: 34px auto 14px; font-size: 1.45rem; }
.dataset-statistics { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 2fr); gap: 28px; align-items: stretch; }
.dataset-statistics .figure-card { max-width: none; width: 100%; }
.stat-row { margin: 0; padding: 24px 28px; display: grid; grid-template-columns: 1fr; gap: 22px; align-content: center; border: 1px solid var(--line); background: var(--light); }
.stat-row div { display: flex; flex-direction: column; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.stat-row div:last-child { padding-bottom: 0; border-bottom: 0; }
.stat-row strong { color: var(--ink); font-size: 2rem; line-height: 1.1; }
.stat-row span { margin-top: 5px; color: var(--muted); font-size: .76rem; }

.figure-card, .framework-card { max-width: 980px; margin: 0 auto; padding: 10px; border: 1px solid #eceef0; background: #fff; }
.figure-card { max-width: 650px; }
.figure-card img, .framework-card img { width: 100%; height: auto; }
.figure-card figcaption { margin: 10px 5px 2px; color: #5e6269; font-size: .8rem; text-align: center; }
.media-explorer { max-width: 980px; margin: 52px auto 0; }
.explorer-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.explorer-head h3, .results-intro h3 { margin: 0; font-size: 1.55rem; line-height: 1.2; }
.tabs { display: inline-flex; border: 1px solid #cfd4db; border-radius: 6px; overflow: hidden; }
.tab { min-height: 36px; padding: 0 14px; color: #4f5660; border: 0; border-right: 1px solid #cfd4db; background: #fff; cursor: pointer; font-size: .78rem; font-weight: 700; }
.tab:last-child { border-right: 0; }
.tab.is-active { color: #fff; background: var(--navy); }
.tab-panel[hidden] { display: none; }
.robot-video-group + .robot-video-group, .comparison-row + .comparison-row { margin-top: 28px; }
.robot-video-group h4, .comparison-row h4 { margin: 0 0 10px; color: #3d434c; font-size: .94rem; font-weight: 700; }
.video-grid { display: grid; gap: 12px; }
.three-up { grid-template-columns: repeat(3, 1fr); }
.four-up { grid-template-columns: repeat(2, 1fr); }
.video-card { position: relative; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #111; }
.video-card figcaption { position: static; padding: 8px 10px; color: #333; background: #fff; font-size: .75rem; font-weight: 700; }
.video-card.featured { outline: 2px solid #555; outline-offset: -2px; }
.video-card.featured figcaption span { float: right; padding: 2px 7px; color: #fff; background: #555; border-radius: 3px; font-size: .62rem; text-transform: uppercase; }

.method-copy { max-width: 900px; margin: 22px auto 0; color: #363b43; font-size: 1rem; line-height: 1.72; text-align: justify; }
.method-copy p { margin: 0; }
.results-block { max-width: 980px; margin: 62px auto 0; }
.results-intro { margin-bottom: 19px; text-align: center; }
.results-intro > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: .8rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .96rem; font-variant-numeric: tabular-nums; }
th, td { padding: 13px 15px; text-align: center; border-bottom: 1px solid #bfc5cc; }
tbody td:first-child, thead tr:first-child th:first-child { text-align: left; }
thead { border-top: 2px solid #59616c; border-bottom: 2px solid #59616c; }
thead th { font-weight: 700; }
tbody tr:last-child td { border-bottom: 2px solid #59616c; }
.best { font-weight: 800; background: #eeeeee; }
.baseline-descriptions { margin-top: 22px; padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; color: #444a53; background: #f7f7f7; border: 1px solid var(--line); font-size: .86rem; line-height: 1.55; }
.baseline-descriptions p { margin: 0; }
.baseline-explorer { padding-top: 50px; border-top: 1px solid var(--line); }
.generative-explorer { padding-top: 50px; border-top: 1px solid var(--line); }

.deploy-grid { max-width: 900px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.deploy-copy { max-width: 900px; margin: -5px auto 30px; color: #363b43; font-size: .98rem; line-height: 1.72; text-align: justify; }
.deploy-copy p { margin: 0 0 14px; }
.deploy-copy p:last-child { margin-bottom: 0; }
.deploy-copy code { padding: .08em .28em; background: #f0f1f3; border-radius: 3px; font-size: .92em; }
.deploy-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.deploy-card video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #000; }
.deploy-card figcaption { padding: 10px 12px; color: #3f454e; font-size: .8rem; text-align: center; font-weight: 700; }
.deploy-card figcaption span { margin-right: 7px; color: #555; }
.bib-head { display: flex; align-items: flex-end; justify-content: space-between; }
.bib-head h2::after { margin-left: 0; }
.copy-button { min-width: 75px; height: 36px; border: 0; border-radius: 6px; color: #fff; background: var(--navy); cursor: pointer; font-size: .78rem; font-weight: 700; }
pre { margin: 25px 0 0; padding: 22px; overflow-x: auto; color: #e9edf3; background: #1d2430; border-radius: 6px; font: .77rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: left; }
footer { padding: 30px 0; color: #777d85; background: var(--light); border-top: 1px solid var(--line); text-align: center; font-size: .76rem; }
footer p { margin: 0; }

@media (max-width: 800px) {
  .hero, .hero-content { min-height: 650px; }
  .authors { font-size: .9rem; }
  .three-up, .four-up { grid-template-columns: repeat(2, 1fr); }
  .method-steps { grid-template-columns: 1fr; }
  .method-steps div { border-right: 0; border-bottom: 1px solid var(--line); }
  .method-steps div:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  :root { --shell: min(100% - 28px, 1040px); }
  .hero, .hero-content { min-height: 100svh; }
  .hero-content { padding: 38px 0; }
  .publication-title { font-size: 2.25rem; }
  .authors { margin-top: 20px; font-size: .78rem; gap: 2px 10px; }
  .affiliations { font-size: .7rem; }
  .resource-links { gap: 7px; }
  .resource-link { min-height: 38px; padding: 0 13px; font-size: .78rem; }
  .section { padding: 48px 0; }
  .abstract-copy { text-align: left; }
  .method-copy { text-align: left; }
  .dataset-statistics { grid-template-columns: 1fr; }
  .baseline-descriptions { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 18px; }
  .stat-row div { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-row div:last-child { padding: 0; border-bottom: 0; }
  .explorer-head { align-items: flex-start; flex-direction: column; }
  .three-up, .deploy-grid { grid-template-columns: 1fr; }
}

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