:root {
  --navy: #202840;
  --blue: #2d508c;
  --blue-soft: #eef3fb;
  --green: #668455;
  --ink: #121722;
  --muted: #5d687b;
  --line: #d6deea;
  --paper: #f6f8fb;
  --white: #fff;
  --page: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, Pretendard, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 20; top: -80px; left: 20px; padding: 10px 16px; color: white; background: var(--navy); }
.skip-link:focus { top: 20px; }
.page-width { width: min(var(--page), calc(100% - 48px)); margin-inline: auto; }
.page-narrow { width: min(var(--page), calc(100% - 48px)); margin-inline: auto; }
.paper-section.page-width { width: min(var(--page), calc(100% - 48px)); }

.hero { width: min(var(--page), calc(100% - 48px)); padding: 48px 0; text-align: center; }
.identity-row { min-height: 54px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.lab-marks { display: flex; align-items: center; gap: 12px; }
.lab-marks img:first-child { width: 38px; height: 40px; object-fit: contain; }
.lab-marks img:last-child { width: 154px; }
.identity-row > p { margin: 0; color: var(--blue); font-size: 14px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.identity-row > p span { display: inline-block; margin-right: 12px; padding: 8px 13px; border-radius: 999px; color: white; background: var(--navy); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { max-width: var(--page); margin: 0 auto; font-size: clamp(28px, 2.3vw, 32px); line-height: 1.18; letter-spacing: -.035em; font-weight: 800; }
h1 em { color: var(--blue); font-family: Newsreader, Georgia, serif; font-size: 1.08em; font-weight: 600; }
.authors { margin: 26px 0 6px; font-size: 20px; font-weight: 700; }
.authors a { text-underline-offset: 4px; }
.authors span { margin: 0 10px; color: #9aa6b9; }
.affiliations { margin: 0; color: var(--muted); font-size: 16px; }
.publication-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.publication-links a { padding: 9px 18px; border-radius: 999px; color: white; background: var(--navy); font-size: 16px; font-weight: 750; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.publication-links a:hover { transform: translateY(-2px); background: var(--blue); }
.tagline { max-width: 768px; margin: 30px auto 0; color: var(--muted); font-size: 20px; line-height: 1.6; text-align: justify; text-justify: inter-word; }
.tagline strong { color: var(--ink); }

.paper-section { padding: 48px 0; }
.paper-section + .paper-section { border-top: 1px solid #e7ebf2; }
.paper-section h2 { margin: 0; font-size: clamp(24px, 2.15vw, 32px); line-height: 1.2; letter-spacing: -.028em; }
.paper-section > h2 { text-align: center; }
.paper-section p:not(.eyebrow), .module-description li { text-align: justify; text-justify: inter-word; }
.abstract { margin: 24px 0 0; color: #414c60; font-size: 16px; line-height: 1.6; text-align: justify; }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.highlights div { padding: 22px; text-align: center; border-right: 1px solid var(--line); }
.highlights div:last-child { border-right: 0; }
.highlights strong { display: block; color: var(--blue); font-size: 22px; }
.highlights span { color: var(--muted); font-size: 12px; }

.section-header { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.section-header > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: white; background: var(--blue); font-weight: 800; }
.section-header p { margin: 0 0 6px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-header h2 { font-size: 25px; text-align: left; white-space: nowrap; }
.section-intro { max-width: 900px; margin: 24px 0 32px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.figure-frame { margin: 0; padding: 24px; background: white; border: 1px solid var(--line); }
.figure-frame img { width: 100%; }

.split-feature { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); gap: 24px; align-items: center; }
.feature-copy > p:not(.eyebrow) { margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.feature-copy strong { color: var(--ink); }
.feature-callout { margin-top: 28px; padding: 17px 19px; border-left: 4px solid var(--blue); color: var(--navy); background: var(--blue-soft); font-size: 14px; font-weight: 750; line-height: 1.55; text-align: justify; text-justify: inter-word; }
.full-width-callout { margin-top: 18px; padding-block: 14px; white-space: nowrap; text-align: center; }
.feature-figure { padding: 18px; }
.motivation-layout { margin-top: 32px; }
.motivation-layout .feature-figure img { min-height: 360px; object-fit: contain; }

.method-viewer { margin-top: 34px; }
.method-figure-wrap { position: relative; overflow: hidden; padding: 20px; border: 1px solid var(--line); background: white; }
.method-figure-wrap img { width: 100%; }
.module-highlight { position: absolute; top: 5%; bottom: 5%; left: 24%; width: 30%; border-radius: 18px; background: linear-gradient(145deg, rgba(45, 80, 140, .11), rgba(45, 80, 140, .035)); box-shadow: 0 16px 40px rgba(32, 40, 64, .16), 0 0 0 9999px rgba(255, 255, 255, .42); pointer-events: none; transition: left .55s cubic-bezier(.22,.8,.25,1), width .55s cubic-bezier(.22,.8,.25,1), background .3s ease, box-shadow .3s ease; }
.module-highlight span { position: absolute; top: 12px; left: 12px; padding: 7px 11px; border-radius: 999px; color: white; background: var(--blue); box-shadow: 0 6px 18px rgba(45,80,140,.24); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.module-highlight span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #bcd2f7; vertical-align: 1px; }
.method-viewer[data-mode="temporal"] .module-highlight { left: 54%; width: 25%; background: linear-gradient(145deg, rgba(32, 40, 64, .12), rgba(32, 40, 64, .035)); box-shadow: 0 16px 40px rgba(32,40,64,.17), 0 0 0 9999px rgba(255,255,255,.42); }
.method-viewer[data-mode="temporal"] .module-highlight span { background: var(--navy); }
.method-viewer[data-mode="inference"] .module-highlight { left: 78.5%; width: 20%; background: linear-gradient(145deg, rgba(109,119,136,.13), rgba(109,119,136,.04)); box-shadow: 0 16px 40px rgba(61,70,85,.16), 0 0 0 9999px rgba(255,255,255,.42); }
.method-viewer[data-mode="inference"] .module-highlight span { background: #6d7788; }

.round-visualizer { margin-top: 16px; padding: 19px 22px 22px; color: white; background: var(--navy); }
.round-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.round-heading span { color: #b9c7dc; font-size: 13px; font-weight: 700; }
.round-heading strong { font-size: 14px; }
.task-journey { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px 132px; gap: 10px; align-items: stretch; margin-top: 17px; }
.task-lane { padding: 13px 15px 12px; border: 1px solid #46516a; border-radius: 12px; background: rgba(255,255,255,.025); transition: border-color .3s ease, background .3s ease, transform .3s ease; }
.task-lane.active-lane { border-color: #7699d4; background: rgba(72,111,175,.13); transform: translateY(-2px); }
.task-lane.complete-lane { border-color: #55715e; background: rgba(102,132,85,.08); }
.task-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.task-label b { font-size: 12px; }
.task-label small { color: #93a2ba; font-size: 9px; }
.task-track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 12px; }
.task-track::before { content: ""; position: absolute; top: 12px; left: 8%; right: 8%; height: 2px; border-radius: 2px; background: #46516a; }
.journey-step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; color: #7f8aa0; }
.journey-step b { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #5e6980; border-radius: 50%; background: var(--navy); font-size: 10px; transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.journey-step small { font-size: 8px; }
.journey-step.done, .journey-step.active { color: white; }
.journey-step.done b { border-color: #6e8fc7; background: #35588f; }
.journey-step.active b { border-color: white; background: var(--blue); box-shadow: 0 0 0 4px rgba(126,156,207,.24); transform: scale(1.08); }
.journey-step.boundary.active b { background: var(--green); }
.journey-arrow { display: grid; place-items: center; color: #64718a; font-size: 20px; }
.ready-card { align-content: center; min-height: 82px; padding: 12px; border: 1px solid #46516a; border-radius: 12px; background: rgba(255,255,255,.025); text-align: center; }
.ready-card b { width: 32px; height: 32px; }
.ready-card span { font-size: 10px; font-weight: 750; line-height: 1.25; }
.ready-card.done, .ready-card.active { border-color: #8a96aa; background: rgba(138,150,170,.14); }
.ready-card.active b { background: #6d7788; }

.module-selector { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border: 1px solid var(--line); }
.module-tab { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px 18px; color: #5d687b; background: white; border: 0; border-right: 1px solid var(--line); cursor: pointer; font-weight: 750; text-align: left; }
.module-tab:last-child { border-right: 0; }
.module-tab span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; color: white; background: #8590a2; }
.module-tab.active { color: var(--blue); background: var(--blue-soft); }
.module-tab.active span { background: var(--blue); }
.module-description { height: 230px; padding: 30px 34px; overflow-y: auto; border: 1px solid var(--line); border-top: 0; }
.module-description h3 { margin: 0; color: var(--navy); font-size: 22px; line-height: 1.35; }
.module-description ul { margin: 20px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.module-description li + li { margin-top: 7px; }
.module-description strong { color: var(--ink); }

.table-block { margin-top: 36px; border: 1px solid var(--line); background: white; }
.table-title { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.table-title h3 { margin: 0; font-size: 20px; }
.table-title p { margin: 0; color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.results-table { min-width: 0; table-layout: fixed; font-size: 10px; }
.results-table th, .results-table td { padding: 8px 3px; }
th, td { padding: 10px 8px; border-bottom: 1px solid #e4e8ef; text-align: center; white-space: nowrap; }
thead th { color: var(--navy); background: #f4f7fb; font-weight: 800; }
.results-table th:first-child { position: static; width: 78px; min-width: 0; text-align: left; background: white; }
.results-table thead th:first-child { background: #f4f7fb; }
.joint-row th, .joint-row td { color: #4f5b70; background: #fafbfc !important; font-weight: 700; }
.ours th, .ours td { color: #173f7b; background: #eaf1fb !important; font-weight: 800; }
.result-figure-block { margin-top: 58px; }
.result-figure-block > h3 { margin: 0; font-size: 24px; }
.result-figure-block > p { max-width: 900px; margin: 10px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.figure-frame.learning { padding: 36px; }
.figure-frame.learning img { max-width: 1080px; margin: auto; }
.subsection-heading h3 { margin: 8px 0 0; font-size: 24px; line-height: 1.3; white-space: nowrap; }
.subsection-heading .eyebrow { margin: 0; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.learning-layout { grid-template-columns: minmax(300px, .65fr) minmax(0, 1.35fr); align-items: center; margin-top: 24px; }
.learning-layout .learning { padding: 22px; }
.learning-layout .learning img { max-width: none; }

.section-header.compact { margin-bottom: 32px; }
.analysis-intro { max-width: 1040px; margin-top: -8px; }
.ablation-table { min-width: 760px; font-size: 14px; }
.ablation-table th:first-child { text-align: left; }
.ablation-table .drop { color: #b83d3d; font-weight: 750; }
.ablation-figure { padding: 34px; }
.ablation-figure img { width: 100%; }

.citation-section { padding-bottom: 100px; }
.citation-heading { display: flex; align-items: center; justify-content: space-between; }
.citation-heading h2 { text-align: left; }
.copy-citation { padding: 9px 16px; border: 1px solid var(--navy); border-radius: 5px; color: white; background: var(--navy); cursor: pointer; font-size: 13px; font-weight: 750; }
pre { margin: 20px 0 0; padding: 24px; overflow-x: auto; border: 1px solid var(--line); background: #f6f8fb; color: #283248; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }

footer { border-top: 1px solid var(--line); }
footer > div { min-height: 110px; display: flex; align-items: center; justify-content: space-between; }
footer img { width: 165px; }
footer span { color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .page-width, .page-narrow { width: min(100% - 48px, 680px); }
  .identity-row { align-items: flex-start; gap: 24px; }
  .lab-marks img:last-child { width: 120px; }
  .identity-row > p { font-size: 10px; }
  .identity-row > p span { display: block; margin: 0 0 6px; padding: 6px 9px; }
  h1 { font-size: 28px; }
  h1 br { display: none; }
  .paper-section { padding: 48px 0; }
  .highlights { grid-template-columns: 1fr; }
  .highlights div { border-right: 0; border-bottom: 1px solid var(--line); }
  .highlights div:last-child { border-bottom: 0; }
  .section-header { grid-template-columns: 42px 1fr; gap: 12px; }
  .section-header > span { width: 38px; height: 38px; font-size: 12px; }
  .section-intro { margin-left: 0; }
  .split-feature { grid-template-columns: 1fr; gap: 28px; }
  .section-header h2, .subsection-heading h3 { white-space: normal; }
  .full-width-callout { white-space: normal; text-align: justify; }
  .motivation-layout .feature-figure img { min-height: 0; }
  .figure-frame, .method-figure-wrap { padding: 10px; }
  .module-highlight { display: none; }
  .round-visualizer { padding-inline: 12px; }
  .round-heading { align-items: flex-start; }
  .round-heading strong { max-width: 55%; text-align: right; font-size: 11px; }
  .task-journey { grid-template-columns: 1fr; }
  .journey-arrow { height: 18px; transform: rotate(90deg); }
  .ready-card { min-height: 74px; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 10px; }
  .module-selector { grid-template-columns: 1fr; }
  .module-tab { border-right: 0; border-bottom: 1px solid var(--line); }
  .module-tab:last-child { border-bottom: 0; }
  .module-description { height: auto; min-height: 330px; padding: 24px 20px; overflow: visible; }
  .table-title { display: block; }
  .table-title p { margin-top: 6px; }
  .results-table { min-width: 900px; table-layout: auto; font-size: 9px; }
  .results-table th, .results-table td { padding: 7px 3px; }
  .figure-frame.learning, .ablation-figure { padding: 14px; }
  .learning-layout { grid-template-columns: 1fr; }
  pre { padding: 16px; font-size: 11px; }
  footer > div { flex-direction: column; justify-content: center; gap: 13px; }
}

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