:root {
  --ink: #242424;
  --muted: #666661;
  --line: #deded8;
  --soft: #f8f8f5;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1040px;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  font-synthesis: none;
}

/* A restrained, typeset research page. Color comes from the paper figures. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: #fff; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: #000; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #666; outline-offset: 5px;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
p { margin: 0 0 18px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-family: var(--serif); font-size: clamp(29px, 3vw, 36px); font-weight: 400; letter-spacing: -.025em; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
sup { font-size: .65em; line-height: 0; vertical-align: super; }
[hidden] { display: none !important; }
.container { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding-block: 70px; }
.section-intro { max-width: 760px; color: var(--muted); font-size: 16px; line-height: 1.85; margin: 19px 0 34px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 20; background: #fff; padding: 12px 20px; border: 1px solid var(--ink); }
.skip-link:focus { top: 12px; }

/* Navigation and paper masthead */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .98); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; justify-content: space-between; align-items: center; min-height: 62px; gap: 24px; }
.wordmark { font-family: var(--serif); font-style: italic; font-size: 19px; letter-spacing: -.035em; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; font-size: 12px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.hero { text-align: center; padding-top: 67px; padding-bottom: 48px; }
.project-name { display: block; font-family: var(--serif); font-size: clamp(54px, 6.5vw, 74px); font-weight: 400; letter-spacing: -.055em; line-height: 1.15; }
.paper-subtitle { display: block; max-width: 880px; margin: 18px auto 0; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.35; letter-spacing: -.025em; font-weight: 400; }
.authors { display: flex; justify-content: center; gap: 31px; margin: 28px 0 9px; font-size: 17px; }
.authors a { text-decoration: underline; text-decoration-color: #b6b6b0; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.authors a:hover { text-decoration-color: var(--ink); }
.authors sup { padding-left: 3px; }
.affiliations { display: flex; justify-content: center; gap: 24px; color: var(--muted); font-size: 13px; margin: 0; }
.venue { font-size: 14px; margin: 16px 0 0; font-weight: 600; }
.resource-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 27px 0 48px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 41px; padding: 9px 18px; border-radius: 3px; border: 1px solid #c8c8c2; font-size: 12px; line-height: 1.5; font-weight: 500; transition: background .15s, border-color .15s; white-space: nowrap; }
.button-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.button-dark:hover { background: #444; border-color: #444; color: #fff; }
.button-light { background: transparent; color: var(--ink); }
.button-light:hover { background: #f1f1ed; border-color: #888; }
.button[aria-disabled="true"], .button[aria-disabled="true"]:hover { color: var(--muted); background: var(--soft); border-color: var(--line); cursor: default; }
.coming-soon { font-size: 11px; font-weight: 400; }
.teaser { max-width: 980px; margin-inline: auto; }
.teaser img { width: 100%; height: auto; }
.figure-link { display: block; cursor: zoom-in; }
figcaption { font-size: 13px; color: var(--muted); line-height: 1.75; margin-top: 20px; text-align: center; }
figcaption strong { color: var(--ink); font-weight: 500; }
.teaser figcaption { font-family: var(--serif); font-size: 15px; margin: 22px auto 0; max-width: 810px; }
.teaser figcaption strong { font-weight: 400; color: var(--ink); }

/* Abstract */
.abstract-section { background: var(--soft); border-block: 1px solid var(--line); }
.abstract-section h2 { text-align: center; margin-bottom: 28px; }
.abstract-text { font-size: 15px; line-height: 1.95; color: #454541; margin: 0; }

/* Media and method figures */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 27px; }
.section-heading > p { font-size: 13px; color: var(--muted); margin: 0 0 3px; }
.video-frame { background: #fff; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.video-frame video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #fff; }
.method-section { padding-top: 0; }
.method-section > .container { border-top: 1px solid var(--line); padding-top: 64px; }
.architecture { padding: 15px 0 0; }
.architecture img { width: 100%; }
.method-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; margin-top: 40px; }
.method-steps article { border-top: 1px solid var(--line); padding-top: 18px; }
.step-number { font-family: var(--serif); font-size: 15px; color: #777770; display: block; margin-bottom: 10px; }
.method-steps h3 { font-size: 17px; margin-bottom: 12px; }
.method-steps p { font-size: 14px; color: var(--muted); line-height: 1.85; margin: 0; }
.sparse-detail { display: grid; grid-template-columns: .9fr 1.5fr; gap: 45px; align-items: center; margin-top: 43px; padding-top: 34px; border-top: 1px solid var(--line); }
.sparse-detail h3 { font-family: var(--serif); font-size: 25px; font-weight: 400; margin-bottom: 16px; }
.sparse-detail p { font-size: 14px; line-height: 1.85; color: var(--muted); margin: 0; }
.sparse-detail img { background: #fff; padding: 12px; }

/* Mesh results: one complete slide per independently playable video. */
#results { padding-top: 60px; border-top: 1px solid var(--line); }
.mesh-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
.mesh-clip { min-width: 0; }
.mesh-clip-featured { grid-column: 1 / -1; }
.mesh-clip h3 { font-size: 17px; font-weight: 500; margin-bottom: 14px; }
.mesh-clip-featured h3 { font-size: 19px; }
.mesh-video { max-width: 100%; height: auto; }
.clip-caption { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.clip-caption a { text-decoration: underline; text-underline-offset: 3px; }

/* Citation and footer */
.citation-section { background: var(--soft); border-block: 1px solid var(--line); padding-block: 56px 40px; }
.citation-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.citation-heading h2 { font-size: 31px; }
.citation-section pre { overflow-x: auto; padding: 24px; border-left: 2px solid #b1b1a8; background: #fff; font: 12px/1.85 Consolas, "SFMono-Regular", monospace; color: #484843; margin: 0; tab-size: 2; }
.copy-status { font-size: 12px; color: var(--muted); min-height: 20px; margin: 9px 0 0; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 30px; }
.footer p { font-size: 11px; margin: 0; text-align: center; color: var(--muted); line-height: 1.8; }
.footer p span { font-size: 10px; }
.back-top { font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .method-steps { gap: 24px; }
  .sparse-detail { gap: 25px; }
  .paper-subtitle { font-size: 28px; }
  .hero { padding-top: 54px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .section { padding-block: 49px; }
  .nav { min-height: 56px; gap: 12px; }
  .wordmark { font-size: 17px; }
  .nav-links { gap: 12px; font-size: 11px; }
  .nav-links a:last-child { display: none; }
  .hero { padding-top: 39px; padding-bottom: 34px; }
  .project-name { font-size: 52px; }
  .paper-subtitle { font-size: 24px; line-height: 1.35; margin-top: 15px; }
  .desktop-break { display: none; }
  .authors { gap: 22px; font-size: 15px; margin-top: 24px; }
  .affiliations { gap: 20px; font-size: 12px; }
  .resource-links { margin: 24px 0 34px; gap: 8px; }
  .button { font-size: 12px; padding: 9px 15px; min-height: 42px; }
  .teaser figcaption { font-size: 13px; margin-top: 20px; }
  .abstract-section h2 { font-size: 30px; margin-bottom: 23px; }
  .abstract-text { font-size: 14px; line-height: 1.9; }
  .section-intro { font-size: 14px; margin-bottom: 27px; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading > p { margin-top: 12px; font-size: 12px; }
  .section-heading > p br { display: none; }
  .method-section { padding-top: 0; }
  .method-section > .container { padding-top: 44px; }
  .architecture { padding: 5px 0 0; }
  .architecture figcaption { font-size: 11px; }
  .method-steps { grid-template-columns: 1fr; gap: 22px; margin-top: 27px; }
  .method-steps article { position: relative; padding: 19px 0 0 33px; }
  .step-number { position: absolute; top: 18px; left: 0; }
  .method-steps h3 { font-size: 17px; margin-bottom: 8px; }
  .sparse-detail { grid-template-columns: 1fr; gap: 22px; margin-top: 29px; padding-top: 27px; }
  .sparse-detail h3 { font-size: 24px; }
  .sparse-detail img { padding: 6px; }
  #results { padding-top: 44px; }
  .mesh-gallery { grid-template-columns: 1fr; gap: 29px; }
  .mesh-clip-featured { grid-column: auto; }
  .mesh-clip h3, .mesh-clip-featured h3 { font-size: 16px; margin-bottom: 12px; }
  .clip-caption { font-size: 10px; }
  .citation-section { padding-block: 43px 28px; }
  .citation-section pre { padding: 17px; font-size: 11px; }
  .citation-heading { gap: 10px; }
  .citation-heading h2 { font-size: 28px; }
  .footer { flex-wrap: wrap; padding-block: 24px; gap: 18px; }
  .footer p { order: 3; width: 100%; text-align: left; font-size: 10px; }
  .footer p br { display: none; }
  .footer p span { margin-left: 12px; }
  .back-top { font-size: 11px; }
}

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