:root {
  --ink: #121b29;
  --muted: #657180;
  --blue: #0d00b2;
  --blue-dark: #100683;
  --line: #e2e7ed;
  --soft: #f7f6fc;
  --content-width: 860px;
  --media-width: 840px;
  --stage-title-size: 20px;
  --author-size: 20px;
  --affiliation-size: 16px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .3; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #988fee; outline-offset: 4px; }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.025em; }
h2 { margin: 0 0 20px; font-size: 32px; font-weight: 650; }
h3 { font-size: 22px; font-weight: 630; margin: 28px 0 16px; }
p { margin: 0 0 22px; }
sup { font-size: .62em; line-height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 100; background: white; padding: 10px 18px; }
.skip-link:focus { top: 8px; }
.top-nav { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / 97%); border-bottom: 1px solid var(--line); }
.nav-inner { width: min(960px, calc(100% - 52px)); margin: auto; padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 24px; }
.institution-logos { display: inline-flex; align-items: center; gap: clamp(5px, 1vw, 12px); flex-shrink: 0; }
.institution-logos a { display: grid; align-items: center; min-height: 32px; }
.institution-logos img { width: auto; height: clamp(16px, 2.75vw, 27px); }
.institution-logos .intellindust-logo { height: clamp(20px, 3.44vw, 34px); }
.institution-logos span { color: var(--muted); font-size: 17px; line-height: 1; }
.nav-links { display: flex; gap: 28px; font-size: var(--affiliation-size); }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.is-active { color: var(--blue); }
.masthead { --title-spacing: clamp(18px, 2vw, 24px); width: min(var(--content-width), calc(100% - 52px)); margin: auto; padding: var(--title-spacing) 0 32px; text-align: center; }
.title-lead { display: block; width: fit-content; max-width: 100%; margin-inline: auto; }
.title-logo { display: block; contain: inline-size; margin-bottom: 2px; }
.title-logo img { width: 100%; height: auto; }
.masthead h1 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.19; font-weight: 670; letter-spacing: -.035em; margin: 0; }
.authors { margin-top: calc(var(--title-spacing) - 6px); display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 7px 27px; font-size: var(--author-size); line-height: 1.6; color: var(--blue); }
.authors > * { white-space: nowrap; }
.authors sup { padding-left: 3px; }
.affiliations { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; font-size: var(--affiliation-size); margin-top: 12px; }
.affiliations sup { margin-right: 3px; }
.corresponding-author { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.authors-reserved { height: 23px; }
.resource-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.resource { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 18px; border: 1px solid var(--blue); border-radius: 5px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.3; }
.resource[aria-disabled="true"] { cursor: default; }
.resource:hover { background: var(--blue-dark); text-decoration: none; }
.demo-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 20px;
  min-height: 60px;
  padding-inline: clamp(12px, 2vw, 18px);
  border-inline-start: 3px solid var(--blue);
  background: #f2f1fb;
  color: var(--blue-dark);
}
.demo-entry strong { padding-block: 15px; font-size: clamp(17px, 2.15vw, 26px); font-weight: 650; line-height: 1.25; letter-spacing: -.025em; text-align: start; }
.demo-entry:hover { background: #eae8fa; text-decoration: none; }
.demo-action { min-height: 40px; padding: 6px 13px; gap: 7px; font-size: 16px; flex-shrink: 0; white-space: nowrap; }
.demo-entry:is(:hover, :focus-visible) .demo-action { background: var(--blue-dark); }
.resource svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
main, footer { width: min(var(--content-width), calc(100% - 52px)); margin-inline: auto; }
.abstract-section { border-top: 1px solid var(--line); padding: 42px 0 24px; }
.abstract-section > h2 { font-size: 25px; text-align: center; margin-bottom: 18px; }
.abstract-copy { margin: 0; font-size: 16px; line-height: 1.78; text-align: justify; }
.abstract-copy strong { font-weight: 650; }
.comparison-figure { margin-top: 0; }
.comparison-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.figure-zoom { display: block; padding: 0; background: transparent; border: 0; width: 100%; cursor: zoom-in; }
.figure-zoom img { width: 100%; }
.comparison-grid figcaption { text-align: center; font-size: 15px; font-weight: 600; margin-top: 15px; }
.task-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; vertical-align: 2px; }
.task-dot.segmentation { transform: rotate(45deg); }
.task-dot.pose { border-radius: 50%; }
.detection { background: #e98294; }
.segmentation { background: #ad8ac9; }
.pose { background: #62b6ad; }
.figure-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.comparison-figure > .figure-note {
  margin-top: 24px;
  color: var(--blue-dark);
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}
.content-section { border-top: 1px solid var(--line); padding: 48px 0; }
.section-intro { font-size: 16px; line-height: 1.75; }
.round-button { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; width: 38px; height: 38px; padding: 7px; color: var(--blue); }
.round-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round-button:hover:not(:disabled) { background: var(--soft); border-color: #bcb6e6; }
.task-tabs { display: flex; align-items: stretch; gap: 23px; border-bottom: 1px solid var(--line); margin: 22px 0 18px; }
.task-tabs button { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 11px 0 13px; background: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.task-tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.task-tabs button span { display: inline-block; margin-left: 5px; font-size: 11px; color: #8b94a0; font-weight: 400; }
.case-gallery { display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: none; scrollbar-width: none; padding: 2px 0 4px; }
.case-gallery::-webkit-scrollbar { display: none; }
.results-section { margin-top: 30px; }
.qualitative-frame { position: relative; }
#qualitative-play { --control-size: 44px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
#qualitative-play[hidden] { display: none; }
.video-annotations { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.qualitative-player { margin-bottom: 20px; }
.qualitative-player video { width: 100%; }
.case-card { flex: 0 0 200px; scroll-snap-align: start; min-width: 0; background: #fff; border: 0; padding: 0; text-align: left; cursor: zoom-in; }
.case-card canvas, #viewer-case canvas { display: block; width: 100%; height: auto; }
#viewer-case { min-width: 0; width: min(1200px, calc(95vw - 165px), calc((94dvh - 210px) * 1.5)); }
.case-caption { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.stage-narrative { margin: 22px 0 0; }
.stage-copy { flex: 1; min-width: 0; }
.stage-copy h3 { display: flex; align-items: center; gap: 10px; font-size: var(--stage-title-size); color: var(--blue); margin: 0 0 8px; letter-spacing: -.01em; }
.stage-copy p { margin: 0; font-size: 15px; line-height: 1.7; }
.stage-number { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; height: 27px; width: 27px; border-radius: 50%; color: white; background: var(--blue); font-size: 15px; font-weight: 650; }
.pipeline-player video { width: 100%; aspect-ratio: 16/9; background: white; }
.stage-timeline { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; min-width: 0; padding-top: calc((var(--control-size) - 4px) / 2); }
.stage-timeline button { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-width: 0; border: 0; background: transparent; text-align: left; padding: 0; color: #7d8795; font-size: 13px; }
.stage-track { display: block; height: 4px; background: #e9e7f3; overflow: hidden; margin-bottom: 10px; border-radius: 2px; }
.stage-track > span { display: block; height: 100%; width: var(--stage-progress, 0%); background: var(--blue); }
.stage-label { display: flex; gap: 8px; align-items: baseline; }
.stage-label b { font-weight: 600; font-size: 11px; }
.stage-timeline button.is-active { color: var(--blue); }
.stage-timeline button:hover { color: var(--blue); }
.video-control-row { --control-size: 40px; display: grid; grid-template-columns: var(--control-size) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 13px; }
.playback-toggle { display: flex; align-items: center; justify-content: center; width: var(--control-size); height: var(--control-size); padding: 0; border: 1px solid #dfdced; border-radius: 50%; background: white; color: var(--blue); }
.playback-toggle:hover { background: var(--soft); border-color: #bcb6e6; }
.playback-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.playback-toggle [data-icon="replay"] { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.media-status { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.media-status:empty { display: none; }
.empty-section { padding: 32px 0 14px; }
.empty-section h2 { font-size: 27px; }
.citation-space { min-height: 112px; padding: 12px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 3px; }
.citation-toolbar { display: flex; justify-content: flex-end; }
.citation-copy { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 124px; min-height: 34px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--blue); background: #fff; font-size: 14px; }
.citation-copy:hover:not(:disabled) { border-color: #bcb6e6; color: var(--blue-dark); }
.citation-copy:disabled { color: var(--muted); opacity: 1; }
.citation-copy svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.citation-space pre { overflow-x: auto; margin: 8px 0 0; font-size: 14px; }
.acknowledgments-space { height: 70px; }
footer { border-top: 1px solid var(--line); margin-top: 10px; padding: 23px 0 32px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
dialog { max-width: min(1200px, 95vw); width: fit-content; max-height: 94dvh; padding: 20px 24px 15px; border: 0; border-radius: 5px; background: white; box-shadow: 0 15px 80px #0004; }
dialog::backdrop { background: rgb(18 27 41 / 78%); }
body:has(#qualitative-viewer[open]) { overflow: hidden; }
#qualitative-viewer { width: 1200px; }
#qualitative-enlarged { width: 100%; max-height: calc(94dvh - 145px); background: #000; }
#qualitative-viewer-panel:fullscreen { display: grid; place-items: center; background: #000; }
#qualitative-viewer-panel:fullscreen video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
#qualitative-fullscreen { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; padding: 7px; border: 0; border-radius: 4px; color: #fff; background: #121b29b3; }
#qualitative-fullscreen svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.viewer-header h2 { font-size: 19px; margin: 0; }
.close-button { display: inline-flex; gap: 12px; align-items: center; border: 0; background: white; font-size: 13px; padding: 4px 0 4px 12px; }
.close-button span { font-size: 23px; }
dialog .task-tabs { margin: 12px 0 16px; }
.viewer-stage { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.viewer-stage img { width: auto; min-width: 0; max-width: calc(95vw - 165px); max-height: calc(94dvh - 210px); object-fit: contain; }
.viewer-stage img[src$=".svg"] { width: min(1100px, calc((94dvh - 210px) * 1.405)); }
dialog .figure-note { text-align: center; margin: 13px 0 0; }
.method-media { display: grid; aspect-ratio: 16/9; align-items: center; }
.method-media:has(#method-overview:not([hidden])) { aspect-ratio: auto; }
.method-media > * { grid-area: 1/1; width: 100%; }
.method-media #method-overview { align-self: stretch; display: grid; align-items: center; }
.method-media #method-overview img { width: 100%; max-height: 100%; object-fit: contain; }
.attention-timeline { grid-template-columns: 1fr 1fr; }
.attention-section > video { width: 100%; aspect-ratio: 16/9; background: white; margin: 25px 0 27px; }
.method-media, .attention-section > video, .video-control-row {
  width: min(100%, var(--media-width));
  margin-inline: auto;
}
@media (max-width: 850px) {
  .nav-inner { font-size: 18px; }
  .nav-links { gap: 20px; }
  .authors { gap: 7px 21px; }
  .comparison-grid { gap: 12px; }
  .comparison-grid figcaption { font-size: 12px; }
  .task-tabs { gap: 21px; }
  .task-tabs button span { display: block; margin-left: 0; margin-top: 2px; }

  :root { --stage-title-size: 18px; --author-size: 18px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-inner { width: calc(100% - 32px); padding: 10px 0; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 15px; }
  .nav-links { width: 100%; justify-content: space-between; gap: 10px; }
  :root { --stage-title-size: 17px; --author-size: 16px; --affiliation-size: 13px; scroll-padding-top: 112px; }
  .masthead { padding-bottom: 26px; }
  .masthead h1 { font-size: 28px; line-height: 1.22; }
  .authors { gap: 7px 19px; }
  .affiliations { row-gap: 0; column-gap: 20px; margin-top: 13px; }
  .authors-reserved { height: 21px; }
  .resource-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 320px; margin-inline: auto; }
  .resource { padding: 9px 12px; font-size: 12px; gap: 7px; min-height: 42px; }
  .demo-action { min-height: 37px; padding: 5px 9px; gap: 5px; font-size: 13px; }
  .resource svg { width: 16px; height: 16px; }
  .masthead, main, footer { width: calc(100% - 32px); }
  .abstract-section { padding: 30px 0 32px; }
  .abstract-copy { font-size: 15px; line-height: 1.78; text-align: left; }
  .comparison-figure { margin-top: 0; }
  .comparison-grid { grid-template-columns: 1fr; gap: 27px; max-width: 420px; margin: auto; }
  .comparison-grid figcaption { font-size: 14px; margin-top: 10px; }
  .figure-note { font-size: 12px; }
  .content-section { padding: 33px 0; }
  h2 { font-size: 27px; }
  h3 { font-size: 20px; }
  .section-intro { font-size: 15px; }
  .task-tabs { gap: 14px; margin-top: 16px; }
  .task-tabs button { font-size: 12px; line-height: 1.5; text-align: left; }
  .case-card { flex-basis: min(72%, 200px); }
  .stage-narrative { margin-top: 18px; }
  .stage-copy h3 { align-items: flex-start; gap: 7px; }
  .stage-number { width: 23px; height: 23px; font-size: 12px; }
  .stage-copy p { font-size: 13px; line-height: 1.65; }
  .video-control-row { --control-size: 36px; gap: 12px; margin-top: 15px; }
  .stage-timeline { gap: 9px; }
  .stage-label { flex-direction: column; gap: 1px; font-size: 11px; line-height: 1.5; }
  .stage-track { margin-bottom: 7px; }
  .attention-section > video { margin-block: 20px; }
  .empty-section { padding-top: 24px; }
  .empty-section h2 { font-size: 24px; }
  dialog { padding: 14px 12px; max-width: 96vw; }
  .viewer-header h2 { font-size: 16px; }
  .viewer-header { gap: 15px; }
  .viewer-stage { gap: 6px; }
  .viewer-stage .round-button { width: 27px; height: 27px; padding: 4px; }
  #viewer-case { width: min(calc(96vw - 91px), calc((94dvh - 210px) * 1.5)); }
  .viewer-stage img { max-width: calc(96vw - 91px); }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
