:root {
  --ink: #142f35;
  --ink-soft: #4d6267;
  --paper: #ffffff;
  --mist: #f2f6f5;
  --warm: #fbf8f1;
  --line: #d3dfdc;
  --coral: #d65f49;
  --teal: #177b81;
  --deep-teal: #0e3f45;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: var(--paper);
  background: var(--deep-teal);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.content-width { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.narrow-width { width: min(850px, calc(100% - 48px)); margin: 0 auto; }
.section-band { padding: 84px 0; }

h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: 0; }
h1 {
  margin-bottom: 21px;
  font-size: 52px;
  line-height: 1.16;
  font-weight: 800;
}
h1 span { display: block; font-weight: 600; }
h2 {
  margin-bottom: 17px;
  font-size: 29px;
  line-height: 1.2;
  text-align: center;
}

.project-header {
  padding: 86px 0 62px;
  text-align: center;
}
.project-label {
  margin-bottom: 16px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}
.project-header h1 { max-width: 1010px; margin-right: auto; margin-left: auto; }
.project-authors { margin-bottom: 26px; color: var(--ink-soft); font-size: 17px; }
.project-authors a { color: var(--teal); font-weight: 700; }
.project-authors a:hover, .project-authors a:focus-visible { color: var(--coral); }
.project-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.link-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  font-weight: 800;
}
.link-button:hover, .link-button:focus-visible { border-color: var(--teal); color: var(--teal); background: var(--mist); }
.link-button svg { width: 17px; height: 17px; }

.abstract-section { padding-top: 25px; padding-bottom: 80px; }
.abstract-section h2 { margin-bottom: 19px; }
.abstract-section p { margin-bottom: 0; color: var(--ink-soft); text-align: center; font-size: 17px; }

.showcase-section { padding-top: 45px; background: var(--mist); }
.showcase-figure, .wide-figure { margin: 28px 0 0; }
.showcase-figure img, .wide-figure img { width: 100%; border: 1px solid var(--line); }
figcaption { padding: 12px 0 0; color: var(--ink-soft); font-size: 13px; text-align: center; }

.method-section { background: var(--paper); }
.section-lead { max-width: 810px; margin: 0 auto; color: var(--ink-soft); text-align: center; }

.qualitative-section { background: var(--warm); }
.case-tabs { display: flex; justify-content: center; gap: 7px; margin: 34px 0 18px; }
.case-tab {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
}
.case-tab:hover, .case-tab:focus-visible { color: var(--teal); border-color: var(--teal); }
.case-tab.is-active { color: var(--paper); border-color: var(--deep-teal); background: var(--deep-teal); }

.prediction-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.prediction-panel { min-width: 0; margin: 0; border: 1px solid var(--line); background: var(--paper); }
.prediction-panel video { width: 100%; aspect-ratio: 832 / 480; background: #0a272c; object-fit: contain; }
.panel-title { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.panel-title span { font-size: 14px; font-weight: 800; }
.panel-title small { color: var(--ink-soft); font-family: var(--mono); font-size: 10px; text-align: right; }
.stage3-panel { border-color: var(--coral); }
.stage3-panel .panel-title { color: var(--paper); background: var(--coral); }
.stage3-panel .panel-title small { color: rgba(255, 255, 255, 0.88); }

.applications-section { background: var(--paper); }
.result-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-strip > div { min-height: 130px; padding: 20px; }
.result-strip > div + div { border-left: 1px solid var(--line); }
.result-strip span, .result-strip small { display: block; color: var(--ink-soft); font-size: 12px; }
.result-strip strong { display: block; margin: 8px 0 1px; color: var(--deep-teal); font-family: var(--mono); font-size: 25px; font-weight: 500; }

.ablation-section { background: var(--mist); }
.site-footer { border-top: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.85); background: var(--deep-teal); }
.footer-content { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--mono); font-size: 12px; }
.footer-content a { display: inline-flex; align-items: center; gap: 7px; color: var(--paper); }
.footer-content a:hover, .footer-content a:focus-visible { color: #f2d077; }
.footer-content svg { width: 15px; height: 15px; }

@media (max-width: 920px) {
  .prediction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-strip { grid-template-columns: repeat(2, 1fr); }
  .result-strip > div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .result-strip > div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .content-width, .narrow-width { width: min(100% - 28px, 1180px); }
  .section-band { padding: 62px 0; }
  .project-header { padding: 64px 0 45px; }
  h1 { font-size: 36px; line-height: 1.18; }
  h2 { font-size: 25px; }
  .project-authors, .abstract-section p { font-size: 15px; }
  .abstract-section { padding-top: 14px; padding-bottom: 58px; }
  .prediction-grid, .result-strip { grid-template-columns: 1fr; }
  .result-strip > div + div, .result-strip > div:nth-child(3), .result-strip > div:nth-child(4) { border-top: 1px solid var(--line); border-left: 0; }
  .result-strip > div { min-height: 105px; }
  .footer-content { align-items: flex-start; flex-direction: column; justify-content: center; }
}
