:root {
  color-scheme: light;
  --ink: #222c37;
  --muted: #66717f;
  --blue: #2373a7;
  --line: #e4e9ee;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, pre:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 3px; }
button { font: inherit; cursor: pointer; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 8px 16px; background: #fff; z-index: 10; }
.skip-link:focus { top: 12px; }
.top-nav { width: min(1080px, calc(100% - 48px)); margin: auto; display: flex; justify-content: space-between; align-items: center; min-height: 76px; font-size: 14px; }
.top-nav div { display: flex; gap: 25px; }
.top-nav a { color: var(--muted); }
.home-link { font-weight: 600; }
.home-link span { margin-left: 5px; }
.hero { max-width: 1080px; margin: auto; padding: 42px 24px 0; text-align: center; }
.eyebrow { margin: 0 0 16px; color: var(--blue); font-size: 14px; font-weight: 600; }
h1, h2, h3 { line-height: 1.2; }
h1 { margin: 0 auto 28px; font-size: clamp(30px, 4vw, 48px); font-weight: 650; letter-spacing: -0.035em; }
.project-name { display: block; color: var(--blue); font-size: clamp(44px, 5.5vw, 66px); font-weight: 750; margin-bottom: 15px; }
.paper-title { white-space: nowrap; font-size: clamp(12px, 3.3vw, 44px); }
.authors { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; font-size: 18px; }
.authors span { white-space: nowrap; }
sup { font-size: 0.65em; margin-left: 2px; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 24px; margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.equal-contribution { margin: 4px 0 24px; color: var(--muted); font-size: 12px; }
.resource-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.button { display: inline-flex; align-items: center; gap: 9px; border-radius: 30px; background: #f1f4f6; color: var(--ink); padding: 8px 20px; font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.button span { font-size: 10px; letter-spacing: 0.04em; opacity: 0.8; }
.button.primary { background: var(--ink); color: #fff; }
.button:hover { text-decoration: none; border-color: var(--blue); }
.tagline { margin: 26px auto 25px; color: var(--muted); font-size: 18px; }
.section { width: min(960px, calc(100% - 48px)); margin: auto; padding: 65px 0; }
h2 { margin: 0 0 24px; font-size: clamp(25px, 3vw, 32px); letter-spacing: -0.025em; font-weight: 650; }
h3 { font-size: 18px; margin: 0 0 13px; font-weight: 650; }
.overview { text-align: center; }
.section-intro { max-width: 720px; margin: 0 auto 36px; color: var(--muted); }
.method { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 0; margin: 0; text-align: left; }
.method li { border-top: 1px solid var(--line); padding-top: 18px; }
.step { display: block; margin-bottom: 16px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.method p { color: var(--muted); font-size: 15px; margin: 0; }
.method-note { font-size: 13px; color: var(--muted); margin: 28px 0 0; }
.abstract-band { background: #f7f9fa; }
.reading-width { max-width: 760px; }
.reading-width h2 { text-align: center; }
.reading-width p { margin: 0 0 20px; font-size: 16px; line-height: 1.8; }
.reading-width p:last-child { margin-bottom: 0; }
#videos { text-align: center; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 32px; }
.video-grid h3 { font-size: 17px; text-align: left; }
.video-placeholder, .video-frame { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 8px; background: #f6f8fa; }
.video-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.play-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e7edf2; color: #657b8e; font-size: 16px; padding-left: 3px; }
.video-placeholder p { margin: 13px 0 2px; font-size: 14px; color: #536172; }
.video-platform { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; }
.citation-section { padding-top: 0; max-width: 860px; }
.citation-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.citation-heading h2 { margin: 0; }
.copy-button { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font-size: 13px; color: var(--blue); }
pre { margin: 0; padding: 24px; background: #f7f9fa; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; font-size: 12px; line-height: 1.75; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.copy-status { min-height: 1.6em; margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.site-footer { padding: 25px 24px 35px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.site-footer p { margin: 4px 0; }
.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 10;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 3px 12px rgba(34, 44, 55, 0.18);
}
.back-to-top svg { display: block; }
.back-to-top:hover { background: var(--ink); border-color: var(--ink); }
@media (max-width: 640px) {
  .top-nav { width: calc(100% - 32px); min-height: 60px; font-size: 12px; }
  .top-nav div { gap: 15px; }
  .hero { padding: 30px 20px 0; }
  .authors { gap: 8px 16px; font-size: 16px; }
  .affiliations { font-size: 13px; }
  .tagline { font-size: 16px; }
  .section { width: calc(100% - 40px); padding: 44px 0; }
  .method { grid-template-columns: 1fr; gap: 22px; }
  .method li { position: relative; padding-left: 40px; }
  .step { position: absolute; left: 0; top: 19px; }
  .method-note { text-align: left; }
  .video-grid { grid-template-columns: 1fr; }
  .citation-section { padding-top: 0; }
  pre { padding: 16px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
