:root {
  --blue: #245a9a;
  --blue-dark: #173f73;
  --blue-soft: #edf5fc;
  --blue-pale: #f7fbff;
  --ink: #172033;
  --body: #38465a;
  --muted: #6b7789;
  --line: #dfe7ef;
  --line-dark: #cbd8e6;
  --white: #ffffff;
  --green: #158765;
  --shadow: 0 14px 40px rgba(28, 63, 101, .09);
  --content: 980px;
  --wide: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  color: var(--body);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { display: block; max-width: 100%; }
button, summary { font: inherit; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.page-shell { width: min(var(--wide), calc(100% - 40px)); margin: 0 auto; }
.content-shell { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2b6db5, #42a5c6);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(220,229,239,.9);
  backdrop-filter: blur(14px);
}
.nav-shell {
  width: min(var(--wide), calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { color: var(--ink); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 20px 0 18px;
  color: #536075;
  font-size: 13px;
  font-weight: 700;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--blue);
  transform: translateX(-50%);
  transition: width .24s ease;
}
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--blue); }

.hero { padding: 48px 0 66px; text-align: center; border-bottom: 1px solid var(--line); }
.hero-shell { display: flex; flex-direction: column; align-items: center; }
.institution-strip {
  width: min(1020px, 100%);
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  margin: 0 auto 30px;
}
.institution-strip a { display: grid; place-items: center; transition: transform .25s ease, opacity .25s ease; }
.institution-strip a:not(.institution-air) { width: 88px; height: 88px; }
.institution-strip .institution-air { width: min(540px, 58%); }
.institution-strip img { width: 100%; max-height: 90px; object-fit: contain; }
.institution-strip a:hover { transform: translateY(-3px); opacity: .84; }
.institution-strip a { animation: logo-enter .65s cubic-bezier(.2,.7,.2,1) both; }
.institution-strip a:nth-child(2) { animation-delay: .08s; }
.institution-strip a:nth-child(3) { animation-delay: .16s; }
.institution-strip a:nth-child(4) { animation-delay: .24s; }

.venue-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px 12px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid #d7e7f6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.venue-chip span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(21,135,101,.12); }
.hero h1 { margin: 0; color: var(--ink); font-size: clamp(42px, 7vw, 72px); line-height: 1.04; letter-spacing: -.052em; }
.tagline { margin: 14px 0 24px; color: #263c5b; font-size: clamp(18px, 2.5vw, 25px); font-weight: 650; letter-spacing: -.018em; }

.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button svg { width: 17px; height: 17px; fill: currentColor; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(36,90,154,.15); }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { color: #fff; background: var(--blue-dark); }
.button-outline { color: var(--blue); background: #fff; }
.button-muted { color: #68768a; background: #f3f6f8; border-color: #dbe2e9; cursor: default; }
.button-muted:hover { transform: none; box-shadow: none; }

.authors { max-width: 920px; margin: 0; color: #33445e; font-size: 16px; line-height: 1.9; }
.authors a { border-bottom: 1px solid rgba(36,90,154,.25); }
.authors sup, .affiliations sup { margin-left: 1px; font-size: .68em; }
.affiliations { margin: 18px 0 0; color: #5e6b7d; font-size: 13px; line-height: 1.65; }
.affiliations span { color: #748095; }

.section { padding: 82px 0; border-bottom: 1px solid var(--line); }
.section-tint { background: var(--blue-pale); }
.section-news { padding: 42px 0; }
.section h3 { margin: 42px 0 15px; color: var(--ink); font-size: 21px; line-height: 1.35; letter-spacing: -.018em; }
.section-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 26px; }
.section-heading > span { color: #7ea4cc; font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.section-heading h2, .section-news h2 { margin: 0; color: var(--ink); font-size: clamp(29px, 4vw, 39px); line-height: 1.15; letter-spacing: -.035em; }
.section-heading::after { content: ""; flex: 1; height: 1px; margin-left: 8px; background: linear-gradient(90deg, var(--line-dark), transparent); }

.section-news h2 { margin-bottom: 18px; font-size: 27px; }
.news-line { display: flex; align-items: center; gap: 13px; padding: 16px 18px; border-left: 3px solid var(--blue); background: var(--blue-pale); }
.news-line time { flex: 0 0 auto; color: var(--blue); font-weight: 800; font-variant-numeric: tabular-nums; }
.news-line p { margin: 0; color: var(--ink); }
.news-pulse { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--green); animation: pulse 2.2s ease-out infinite; }

.prose { color: var(--body); font-size: 16.5px; }
.prose p { margin: 0 0 19px; }
.prose strong { color: var(--ink); }
.paper-figure { width: 100%; margin: 40px auto 46px; }
.paper-figure img { width: 100%; height: auto; border-radius: 3px; }
.paper-figure figcaption { max-width: 900px; margin: 12px auto 0; color: #66748a; font-size: 12px; line-height: 1.55; text-align: center; }
.paper-figure figcaption strong { color: #3b485c; }
.paper-figure-narrow { width: min(520px, 100%); }
.paper-figure:hover img { filter: saturate(1.02); }

.motion-figure { width: min(860px, 100%); }
.motion-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 900 / 760;
  background: #f4f8fc;
  border: 1px solid #e2ebf4;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.motion-stage img { width: 100%; height: 100%; object-fit: contain; }
.motion-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  color: #34506e;
  background: rgba(255,255,255,.9);
  border: 1px solid #dce7f1;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.motion-badge i { width: 6px; height: 6px; border-radius: 50%; background: #8c9bad; }
.motion-stage.is-playing .motion-badge i { background: #16a37a; animation: pulse 1.9s ease-out infinite; }

.highlight-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 34px; }
.highlight-list article { display: flex; gap: 13px; padding: 17px 0; border-bottom: 1px solid #dce7f1; }
.highlight-list article > span { flex: 0 0 auto; font-size: 23px; line-height: 1.4; }
.highlight-list p { margin: 0; font-size: 14.5px; line-height: 1.65; }
.highlight-list strong { color: var(--ink); }

.table-wrap { width: 100%; margin: 18px 0 25px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(25,56,90,.05); }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { color: #43536a; background: #f7fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .025em; }
tbody tr:last-child td { border-bottom: 0; }
.best-row td { color: var(--blue-dark); background: #eef6fd; }

.metric-definitions { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); margin: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-definitions dl { margin: 0; padding: 18px 14px; border-right: 1px solid var(--line); }
.metric-definitions dl:last-child { border-right: 0; }
.metric-definitions dt { color: var(--blue); font-weight: 850; }
.metric-definitions dd { margin: 5px 0 0; color: #66748a; font-size: 12px; line-height: 1.5; }
.scope-note { margin: 28px 0 48px; padding: 16px 18px; color: #506076; background: #fafcfe; border-left: 3px solid #91afd0; font-size: 13.5px; }
.scope-note strong { color: var(--ink); }
.result-block { padding-top: 18px; }
.result-block + .result-block { margin-top: 24px; border-top: 1px dashed var(--line-dark); }

blockquote { margin: 0 0 34px; padding: 20px 22px; color: #38506d; background: #fff; border-left: 4px solid var(--blue); box-shadow: 0 7px 25px rgba(25,56,90,.05); }
.method-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; counter-reset: method; }
.method-list li { position: relative; display: flex; gap: 16px; padding: 25px; background: #fff; border: 1px solid #dde8f2; border-radius: 8px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.method-list li:hover { transform: translateY(-3px); border-color: #b8d0e6; box-shadow: var(--shadow); }
.method-list li > span { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-size: 13px; font-weight: 850; }
.method-list h3 { margin: 2px 0 8px; font-size: 18px; }
.method-list p { margin: 0; color: #59677a; font-size: 13.5px; line-height: 1.62; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; margin-top: 46px; }
.two-column h3 { margin: 0 0 12px; }
.two-column p, .two-column li { font-size: 14px; }
.two-column ul { padding-left: 20px; }

.code-block { overflow: hidden; margin: 24px 0; color: #dbe8f5; background: #101b2a; border: 1px solid #26374c; border-radius: 8px; box-shadow: 0 12px 32px rgba(12,27,44,.12); }
.code-block > div { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; color: #98abc0; background: #152437; border-bottom: 1px solid #26374c; font-size: 12px; font-weight: 750; }
.code-block pre, .command-details pre { margin: 0; overflow-x: auto; }
.code-block pre { padding: 20px; }
.code-block code, .command-details code { font-size: 12.5px; line-height: 1.65; }
.copy-code { padding: 4px 9px; color: #c8d8e8; background: transparent; border: 1px solid #43576e; border-radius: 5px; cursor: pointer; font-size: 11px; }
.copy-code:hover, .copy-code.is-copied { color: #fff; border-color: #77a5d3; }
.small-note { color: #68758a; font-size: 13px; }
.small-note code { padding: 2px 5px; color: #344a65; background: #edf3f8; border-radius: 4px; }
.command-details { display: grid; gap: 10px; margin-top: 28px; }
.command-details details { background: #fff; border: 1px solid #dfe8f1; border-radius: 7px; }
.command-details summary { position: relative; padding: 13px 42px 13px 16px; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 750; list-style: none; }
.command-details summary::-webkit-details-marker { display: none; }
.command-details summary::after { content: "+"; position: absolute; right: 16px; color: var(--blue); font-size: 20px; font-weight: 400; line-height: 1; }
.command-details details[open] summary::after { content: "−"; }
.command-details pre { padding: 18px; color: #dbe8f5; background: #101b2a; border-radius: 0 0 7px 7px; }
.citation-block { margin-bottom: 0; }

footer { padding: 32px 0; color: #748095; background: #f8fafc; font-size: 12px; }
.footer-shell { display: flex; justify-content: space-between; gap: 30px; }
.footer-shell p { margin: 0; }

@keyframes logo-enter { from { opacity: 1; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(21,135,101,.34); } 70% { box-shadow: 0 0 0 8px rgba(21,135,101,0); } 100% { box-shadow: 0 0 0 0 rgba(21,135,101,0); } }

@media (max-width: 900px) {
  .metric-definitions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-definitions dl { border-bottom: 1px solid var(--line); }
  .metric-definitions dl:nth-child(2n) { border-right: 0; }
  .metric-definitions dl:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 108px; }
  .page-shell, .content-shell, .nav-shell { width: min(100% - 28px, var(--wide)); }
  .site-header { position: sticky; }
  .nav-shell { min-height: 88px; align-items: flex-start; flex-direction: column; gap: 4px; padding: 11px 0 7px; }
  .brand { line-height: 1.2; }
  .site-nav { width: 100%; gap: 20px; }
  .site-nav a { padding: 7px 0 9px; font-size: 12px; }
  .site-nav a::after { bottom: 4px; }
  .hero { padding: 34px 0 50px; }
  .institution-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; min-height: 0; margin-bottom: 26px; }
  .institution-strip .institution-air { grid-column: 1 / -1; width: min(100%, 460px); justify-self: center; }
  .institution-strip a:not(.institution-air) { width: 72px; height: 72px; justify-self: center; }
  .institution-strip img { max-height: 72px; }
  .hero h1 { font-size: clamp(36px, 10vw, 44px); }
  .tagline { max-width: 560px; font-size: 18px; line-height: 1.45; }
  .authors { font-size: 14px; }
  .affiliations { font-size: 12px; }
  .section { padding: 62px 0; }
  .section-news { padding: 34px 0; }
  .news-line { align-items: flex-start; flex-wrap: wrap; gap: 6px 10px; }
  .news-line p { width: calc(100% - 19px); margin-left: 19px; }
  .highlight-list, .method-list, .two-column { grid-template-columns: 1fr; }
  .method-list { gap: 12px; }
  .two-column { gap: 26px; }
  .paper-figure { margin: 30px auto 38px; }
  .motion-badge { top: 9px; left: 9px; }
  .footer-shell { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .hero-actions { width: 100%; }
  .button { flex: 1 1 30%; min-width: 0; padding: 9px 10px; font-size: 12px; }
  .button svg { width: 15px; height: 15px; }
  .prose { font-size: 15px; }
  .section-heading { gap: 10px; }
  .section-heading h2 { font-size: 29px; }
  .section-heading::after { display: none; }
  .metric-definitions { grid-template-columns: 1fr; }
  .metric-definitions dl { border-right: 0; }
  .method-list li { padding: 20px; }
  .code-block pre { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
