@font-face {
  font-family: Geist;
  src: url("fonts/Geist-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* FINEST Fig. 1: navy structure, blue-gray baselines, warm exploratory results. */
  --accent: #345f8a;
  --accent-hover: #264968;
  --accent-ink: #244767;
  --tint: #edf3f8;
  --tint-hover: #e0eaf4;
  --surface: #f7f9fc;
  --ink: #172c42;
  --text-primary: #233244;
  --text-secondary: #4b5d70;
  --rule: #d8e1e9;
  --border-strong: #bdcddd;
  --warm: #c88f5b;
  --warm-ink: #8b542b;
  --plot-direct: #7f9eb2;
  --plot-exploratory: #d69c64;
  --paper-font: Geist, Arial, Helvetica, sans-serif;
}

body { font-family: var(--paper-font); font-size: 18px; line-height: 1.75; background: white; color: var(--text-primary); }
button { -webkit-appearance: none; appearance: none; }
/* Shared components use the paper's typeface, including controls and figure captions. */
figcaption, .caption, .btn, .text-link, .section-kicker, table, summary,
.media-label, .video-toggle, .video-title, .footer, .toast, .modal-head,
.modal-controls button, .tab-list button { font-family: var(--paper-font); }
.container { width: min(1040px, calc(100% - 48px)); margin: auto; }
.prose { max-width: 820px; }
h2 { font-size: 32px; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 24px; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; margin: 32px 0 16px; }
h4 { font-size: 16px; font-weight: 600; line-height: 1.4; }
figcaption, .caption { font-size: 16px; line-height: 1.65; color: var(--text-secondary); }
figure > figcaption:not(.video-title), .section > .caption { max-width: 820px; margin-left: auto; margin-right: auto; }
figure > figcaption { margin-top: 12px; }
.video-title { font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--text-primary); align-items: baseline; }
.speed { white-space: nowrap; font-size: 16px; color: var(--text-secondary); }
.media-label { font-size: 16px; line-height: 1.5; color: var(--text-secondary); }
summary { font-size: 16px; font-weight: 600; }
.table-scroll { margin: 24px 0; }
table { font-size: 16px; }
.policy-symbol { white-space: nowrap; }
.policy-symbol sub { font-size: .7em; line-height: 0; vertical-align: -.3em; }
figure + .table-scroll { margin-top: 28px; }
.figure-actions { margin-top: 8px; }
.figure-button { font-size: 16px; line-height: 1.5; }
.modal-head { line-height: 1.5; }
.modal-controls { flex-shrink: 0; }
/* Paper-specific surfaces override the shared components without recoloring the challenge. */
h1, h2, h3, h4 { color: var(--ink); }
.media-frame { background: var(--surface); }
.footer, details, td, th, .modal-head { border-color: var(--rule); }
.footer { color: var(--text-secondary); }
.video-toggle, .modal-controls button, .view-switch button, .figure-modal { border-color: var(--border-strong); }
.toast { border-color: var(--border-strong); color: var(--text-primary); box-shadow: 0 4px 24px #172c421a; }
.figure-modal::backdrop { background: #172c42cc; }
.dataset-numberline strong { color: var(--accent-ink); }


/* The masthead uses the viewport; long-form research text stays at reading width. */
.hero, .hero-media {
  width: min(1480px, calc(100vw - 80px)); max-width: none;
  position: relative; left: 50%; transform: translateX(-50%);
  margin-left: 0; margin-right: 0;
}
.hero { text-align: center; padding: 64px 0 38px; }
.hero h1 { font-size: clamp(88px, 7.5vw, 116px); line-height: 1; letter-spacing: -.06em; font-weight: 680; margin: 0 0 26px; color: var(--ink); }
.hero .subtitle { font-size: clamp(30px, 2.9vw, 44px); font-weight: 570; line-height: 1.22; letter-spacing: -.03em; margin: 0 auto 30px; text-wrap: balance; }
.hero .subtitle span { display: block; }
.authors { display: flex; flex-direction: column; align-items: center; max-width: 1240px; gap: 8px; margin: auto; font-size: 16px; line-height: 1.6; letter-spacing: -.15px; }
.author-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px clamp(16px, 1.7vw, 28px); max-width: 100%; }
.authors span { white-space: nowrap; }
.authors a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--border-strong); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.authors a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
.authors sup { font-size: 12px; line-height: 0; margin-left: 3px; color: var(--accent); }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 24px; max-width: 990px; margin: 20px auto 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.affiliations li { margin: 0; padding: 0; }
.affiliations sup { margin-right: 4px; color: var(--accent); font-size: 11px; }
.corresponding { font-size: 14px; font-style: italic; color: var(--text-secondary); margin: 12px 0 0; }
.institution-logos { display: flex; flex-wrap: wrap; row-gap: 18px; align-items: center; justify-content: center; gap: 38px; margin: 24px auto 30px; padding: 0; list-style: none; }
.institution-logos li { margin: 0; padding: 0; }
.institution-mark { position: relative; display: block; width: 58px; height: 58px; overflow: hidden; }
.institution-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Preserve the full official GAC Group wordmark and its aspect ratio. */
.institution-mark-gac { width: 220px; }
/* Show the official ZJU emblem without the PNG's surrounding whitespace. */
.institution-mark-zju img { position: absolute; width: 177.653631%; height: 141.340782%; max-width: none; left: -36.312849%; top: -23.463687%; }
.hero .button-row { justify-content: center; gap: 12px; }
.hero .btn { min-width: 166px; min-height: 76px; border-radius: 9px; padding: 12px 22px; font-size: 18px; font-weight: 600; background: #f2f6fa; border-color: #d7e1eb; color: #294965; box-shadow: none; transition: background .18s, border-color .18s, color .18s; }
.hero .btn:hover { background: #e6eef6; border-color: #a6bbce; color: #203e59; box-shadow: none; }
.hero .btn.soon { background: #fafbfc; border-color: #e5e9ee; color: #667584; }
.hero .btn.soon:hover { background: #f4f6f8; border-color: #d2dae3; color: #566676; }
.hero .btn .icon { display: none; }
.hero .btn .button-text { gap: 3px; }
.hero .btn small { font-size: 16px; color: var(--text-secondary); font-weight: 400; }
.hero .btn.soon small { color: #607080; }
.hero .challenge-entry { gap: 14px; background: #f7f1e9; border-color: #e5d8c8; color: #765338; }
.hero .challenge-entry:hover { background: #efe3d4; border-color: #c8aa8c; color: #65442c; }
.hero .challenge-entry .icon { display: block; width: 21px; height: 21px; }
.hero .challenge-entry span { color: inherit; }
.hero-media { width: min(1320px, calc(100vw - 80px)); margin-top: 0; margin-bottom: 0; }
.hero-video-meta { display: flex; justify-content: space-between; gap: 18px; margin: 0 0 10px; font-size: 16px; font-weight: 450; line-height: 1.5; color: var(--text-secondary); }
.hero-media .media-frame { border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); box-shadow: 0 5px 22px #172c4209; }
.hero-media video { aspect-ratio: 16/9; background: white; object-fit: contain; }
.hero-media figcaption { text-align: center; font-size: 18px; margin-top: 18px; }
.hero-media figcaption strong { color: var(--accent); font-weight: 600; }
.overview-play { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 11px; white-space: nowrap; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: white; box-shadow: 0 3px 14px #172c4225; padding: 13px 18px; min-height: 48px; font-size: 16px; font-weight: 500; line-height: 1.3; }
.overview-play:hover { background: var(--accent-hover); }
.overview-play .icon { width: 16px; height: 16px; }
.overview-play small { font-size: 16px; border-left: 1px solid #ffffff60; padding-left: 12px; margin-left: 1px; }
/* A readable chapter bar remains available throughout the research story. */
.section-nav { position: sticky; top: 12px; z-index: 20; display: flex; justify-content: center; gap: 5px; margin: 30px auto 0; padding: 7px; border: 1px solid var(--rule); border-radius: 13px; background: #f7f9fcf5; box-shadow: 0 5px 20px #172c4208; backdrop-filter: blur(12px); }
.section-nav a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 12px 14px; border-radius: 8px; font-size: 18px; font-weight: 550; letter-spacing: -.025em; line-height: 1.3; text-decoration: none; color: var(--accent-ink); white-space: nowrap; transition: background .18s, color .18s; }
.section-nav .nav-number { font-size: 16px; font-weight: 500; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.section-nav a > span:last-child { color: var(--accent-ink); }
.section-nav a:hover { background: var(--tint-hover); color: var(--accent-ink); }
.section-nav a[aria-current=location] { color: white; background: var(--accent); background-image: linear-gradient(var(--accent),var(--accent)); }
.section-nav a[aria-current=location] .nav-number { color: #e4edf6; }
.section-nav a[aria-current=location] > span:last-child { color: white; }
.insight { padding: 22px 26px; border-left: 4px solid var(--warm); border-radius: 0 10px 10px 0; margin-top: 28px; margin-bottom: 32px; background: linear-gradient(110deg,var(--tint),var(--surface)); font-size: 20px; line-height: 1.6; letter-spacing: -.015em; }
.insight p { margin: 0; }
.insight strong { color: var(--accent-ink); font-weight: 650; }
.footer, .text-link, .video-toggle, .toast, .modal-head, .modal-controls button { font-size: 16px; }


.section { margin-top: 72px; scroll-margin-top: 106px; }
.section h2 { text-align: center; text-wrap: balance; }
.subsection { margin-top: 48px; }
.highlights { padding-top: 5px; }
.highlights ol { max-width: 820px; padding-left: 28px; margin: 0 auto; }
.highlights li { padding-left: 10px; margin-bottom: 18px; }
.highlights li::marker { font-weight: 700; color: var(--accent); }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 28px auto; }
.comparison-grid video { height: 280px; object-fit: contain; }
.task-explorer { margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 28px; }
.task-explorer h3 { margin-top: 0; }
.task-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 24px; }
.task-tabs button { background: white; border: 1px solid var(--border-strong); color: var(--text-primary); border-radius: 4px; padding: 8px 13px; font-size: 16px; line-height: 1.5; min-height: 38px; }
.task-tabs button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: white; }
.task-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.task-copy { min-width: 0; }
.task-copy h4 { font-size: 27px; margin: 6px 0 14px; }
.task-copy p { font-size: 17px; }
.task-copy .section-kicker { font-size: 16px; }
.task-copy .caption { font-size: 16px; }
.task-video { min-width: 0; }
.task-video video { aspect-ratio: 1; max-height: 440px; }
.view-switch { margin: 24px 0 12px; }
.view-switch button { font-size: 16px; }
.replay { background: none; border: 0; color: var(--accent); font-size: 16px; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.demonstration-montage { max-width: 980px; margin: 28px auto; }
.demonstration-montage .media-frame { border: 1px solid var(--rule); border-radius: 9px; }
.dataset-numberline { display: flex; gap: 40px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 28px 0; padding: 24px 0; }
.dataset-numberline strong { display: block; font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dataset-numberline span { display: block; font-size: 16px; color: var(--text-secondary); margin-top: 8px; }
.interface { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin: 28px 0 18px; }
.interface > div { border-top: 2px solid var(--border-strong); padding-top: 14px; }
.interface h4 { margin: 0 0 8px; }
.interface p { font-size: 16px; line-height: 1.6; margin-bottom: 0; }
.baselines { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.baselines > span { border: 1px solid var(--border-strong); border-radius: 4px; padding: 7px 12px; font-size: 16px; line-height: 1.5; }
.result-bars { padding: 24px 28px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; margin: 24px 0; font-variant-numeric: tabular-nums; }
.bar-legend { display: flex; gap: 24px; font-size: 16px; margin-bottom: 20px; justify-content: flex-end; }
.bar-legend span { display: flex; gap: 8px; align-items: center; }
.bar-legend i { width: 13px; height: 9px; background: var(--plot-direct); }
.bar-legend span:last-child i { background: var(--plot-exploratory); }
.bar-group { display: grid; grid-template-columns: 112px 1fr; gap: 20px; margin-bottom: 16px; align-items: center; }
.bar-group:last-of-type { margin-bottom: 0; }
.bar-name { font-size: 16px; font-weight: 600; }
.bar-tracks { border-left: 1px solid var(--border-strong); padding: 2px 0; margin-right: 58px; background: repeating-linear-gradient(to right,transparent 0,transparent calc(20% - 1px),var(--rule) calc(20% - 1px),var(--rule) 20%); }
.bar { height: 24px; background: var(--plot-direct); margin: 3px 0; position: relative; }
.bar.exploratory { background: var(--plot-exploratory); }
.bar span { position: absolute; left: calc(100% + 7px); top: 0; font-size: 16px; line-height: 24px; color: var(--text-primary); white-space: nowrap; }
.axis { display: flex; justify-content: space-between; margin: 8px 58px 0 132px; font-size: 16px; color: var(--text-secondary); }
.result-details .table-scroll { margin-top: 16px; }
.result-details table { min-width: 1120px; font-size: 16px; }
.result-details td, .result-details th { padding: 10px; }
.result-details .subhead th { background: white; }
.result-details .ci { font-size: 16px; color: var(--text-secondary); }
.result-details .exp { background: #edf3f880; }
.research-figure { max-width: 900px; margin-left: auto; margin-right: auto; }
.compact-figure { max-width: 740px; margin-left: auto; margin-right: auto; }
/* Real hardware is a compact validation, with full numbers available on demand. */
.real-summary { display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 44px; align-items: center; max-width: 900px; margin: 0 auto 26px; }
.setup-figure { width: 100%; margin: 0; }
.setup-figure .figure-image { border-radius: 10px; }
.setup-figure .figure-actions { justify-content: center; }
.real-summary-copy p { margin-bottom: 18px; }
.real-result { border-top: 1px solid var(--rule); padding-top: 15px; }
.real-result-label { color: var(--accent-ink); font-size: 16px; font-weight: 550; }
.real-result-values { display: flex; align-items: center; gap: 22px; margin: 6px 0 8px; font-size: 38px; line-height: 1.2; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.real-result-values strong { color: var(--warm-ink); font-weight: 650; }
.real-result-values .result-arrow { font-size: 30px; color: var(--warm); }
.real-result p { font-size: 16px; line-height: 1.6; margin-bottom: 0; }
.real-result p strong { color: var(--accent-ink); font-weight: 550; }
.real-videos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.real-videos figure { margin: 0; min-width: 0; }
.real-videos video { height: 190px; object-fit: contain; background: var(--surface); }
.real-videos .video-title { display: block; font-size: 17px; margin: 10px 0 0; }
.real-protocol { margin: 18px 0 0; font-size: 16px; line-height: 1.65; color: var(--text-secondary); }
.real-results-details { margin-top: 18px; }
.real-results-details .table-scroll { margin-bottom: 4px; }

@media (max-width: 1100px) {
  .authors { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 21px; max-width: 950px; font-size: 16px; }
  .author-row { display: contents; }
  .hero .subtitle { font-size: clamp(27px,2.85vw,32px); }
}
@media (max-width: 1023px) {
  .task-layout { gap: 24px; }
  .real-videos video { height: 170px; }
  .section-nav a { font-size: 16px; padding: 12px 10px; gap: 7px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 40px); }
  h2 { font-size: 26px; margin-bottom: 20px; }
  h3 { font-size: 21px; margin-top: 28px; }
  figcaption, .caption { font-size: 16px; }
  .video-title { font-size: 16px; }
  .hero, .hero-media { position: static; transform: none; width: 100%; max-width: 100%; }
  .hero { padding: 40px 0 30px; }
  .hero h1 { font-size: 70px; letter-spacing: -3.7px; margin-bottom: 20px; }
  .hero .subtitle { font-size: 23px; line-height: 1.34; letter-spacing: -.55px; margin-bottom: 25px; }
  .hero .subtitle span { display: inline; }
  .hero .subtitle span + span::before { content: ' '; }
  .authors { align-items: baseline; font-size: 16px; gap: 5px 14px; line-height: 1.65; letter-spacing: 0; }
  .affiliations { gap: 5px 16px; max-width: 460px; margin-top: 18px; font-size: 14px; }
  .corresponding { margin: 12px 0 0; }
  .institution-logos { gap: clamp(15px, 5vw, 26px); margin: 22px auto 26px; }
  .institution-mark { width: 44px; height: 44px; }
  .institution-mark-gac { width: 200px; }
  .hero .button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 440px; margin: auto; }
  .hero .btn { min-width: 0; min-height: 76px; padding: 12px 10px; font-size: 18px; }
  .hero .btn small { font-size: 16px; }
  .hero-video-meta { font-size: 16px; gap: 8px; flex-wrap: wrap; }
  .hero-media .media-frame { border-radius: 7px; }
  .overview-play { bottom: 12px; padding: 10px 13px; min-height: 40px; gap: 8px; font-size: 16px; }
  .overview-play small { font-size: 16px; padding-left: 9px; }
  .section-nav { justify-content: flex-start; top: 8px; gap: 4px; margin-top: 24px; padding: 6px; overflow-x: auto; scrollbar-width: thin; border-radius: 10px; }
  .section-nav a { flex: 0 0 auto; min-height: 48px; gap: 8px; padding: 10px 13px; font-size: 17px; }
  .insight { padding: 18px 20px; font-size: 18px; }
  .section { margin-top: 48px; scroll-margin-top: 90px; }
  .section h2 { text-align: left; }
  .subsection { margin-top: 32px; }
  .highlights ol { padding-left: 23px; }
  .highlights li { padding-left: 5px; }
  .comparison-grid { gap: 16px; }
  .comparison-grid video { height: 210px; }
  .task-tabs { gap: 6px; }
  .task-tabs button { font-size: 16px; padding: 8px 10px; }
  .task-layout { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .task-copy h4 { font-size: 24px; }
  .task-copy p { font-size: 16px; }
  .task-copy .caption { font-size: 16px; }
  .view-switch { margin: 16px 0 0; }
  .task-video { max-width: 480px; width: 100%; margin: auto; }
  .task-video video { max-height: 420px; }
  .dataset-numberline { gap: 28px; flex-wrap: wrap; }
  .dataset-numberline strong { font-size: 29px; }
  .dataset-numberline span { font-size: 16px; }
  .interface { grid-template-columns: 1fr; gap: 20px; }
  .interface > div { padding-top: 12px; }
  .result-bars { padding: 20px 16px; }
  .bar-group { grid-template-columns: 105px 1fr; gap: 10px; }
  .bar-name { font-size: 16px; }
  .bar-legend { font-size: 16px; gap: 16px; }
  .bar-tracks { margin-right: 54px; }
  .axis { margin-left: 115px; margin-right: 54px; font-size: 16px; }
  .axis span:not(:first-child):not(:last-child) { display: none; }
  .bar span { font-size: 16px; left: calc(100% + 4px); }
  .real-summary { grid-template-columns: 1fr; gap: 20px; margin-bottom: 22px; }
  .setup-figure { max-width: 200px; margin: 0 auto; }
  .real-result-values { font-size: 34px; }
  .real-videos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 14px; }
  .real-videos figure { scroll-snap-align: start; }
  .real-videos video { height: 180px; }
  .modal-head { flex-wrap: wrap; }

}
@media (max-width: 420px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-grid video { height: 260px; }
}
