/* Gate 1 hero adapted from the user-supplied D:/Marine reference. */
:root {
  color-scheme: light;
  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --text-title: #0f172a;
  --text-main: #334155;
  --text-muted: #596b83;
  --primary: #0078b8;
  --primary-hover: #0369a1;
  --primary-subtle: #e0f2fe;
  --primary-border: #bae6fd;
  --border-color: #e2e8f0;
  --radius-pill: 9999px;
  --container-max: 1160px;
  --transition: 180ms ease-in-out;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; background: var(--bg-page); }
body { min-height: 100vh; color: var(--text-main); background: var(--bg-page); font-family: var(--font-sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; transition: color var(--transition); }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 5px; }
main:focus { outline: none; }
::selection { background: var(--primary-subtle); color: var(--text-title); }
.container { width: 100%; max-width: var(--container-max); padding-inline: 24px; margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 10px 20px; background: var(--text-title); color: white; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.hero-section { display: flex; align-items: center; min-height: 100svh; padding: 40px 0; text-align: center; background-color: #07354d; background-image: linear-gradient(180deg, rgba(3, 20, 36, .65), rgba(3, 25, 43, .59) 48%, rgba(2, 22, 36, .73)), url('./static/images/webpage.webp'); background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-title { max-width: 1080px; margin: 0 auto 24px; color: var(--text-title); font-size: clamp(38px, 4.1vw, 56px); font-weight: 800; line-height: 1.18; letter-spacing: -.03em; text-wrap: balance; }
.hero-authors { max-width: 1080px; margin: 0 auto 22px; padding: 0; list-style: none; color: var(--text-title); font-size: 17px; line-height: 1.75; font-weight: 500; }
.author-item { display: inline-block; }
.author-item::after { content: ', '; white-space: pre-wrap; }
.author-item:last-child::after { content: none; }
.author-item a:hover { color: var(--primary); text-decoration: underline; }
.author-item sup { color: var(--primary); font-weight: 650; font-size: .65em; margin-left: 2px; margin-right: 3px; }
.hero-affiliations { max-width: 1030px; margin: 0 auto 22px; padding: 0; list-style: none; font-size: 16px; line-height: 1.85; color: var(--text-muted); }
.affil-item { display: inline-block; max-width: 100%; }
.affil-item:not(:last-child)::after { content: ' · '; padding-inline: 7px; white-space: nowrap; }
.affil-item sup { color: var(--primary); font-size: .8em; margin-right: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 21px; min-height: 48px; border-radius: var(--radius-pill); border: 1px solid transparent; font-size: 16px; font-weight: 600; line-height: 1.5; white-space: nowrap; transition: background-color var(--transition), border-color var(--transition), color var(--transition); }
.btn .svg-inline--fa, .btn i { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--text-title); color: white; border-color: var(--text-title); }
.btn-primary:hover { background: #334155; border-color: #334155; }
.btn-secondary { background: white; border-color: var(--border-color); color: var(--text-title); }
.btn-secondary:not(:disabled):hover { background: var(--bg-subtle); border-color: #cbd5e1; color: var(--primary); }
.venue-badge { display: inline-flex; align-items: center; justify-content: center; gap: 9px; max-width: 100%; margin-bottom: 20px; padding: 7px 18px; border-radius: var(--radius-pill); background: var(--primary-subtle); color: var(--primary); border: 1px solid var(--primary-border); font-size: 15px; font-weight: 600; line-height: 1.6; letter-spacing: .01em; }
.venue-badge .svg-inline--fa, .venue-badge i { width: 16px; height: 18px; flex-shrink: 0; }
.venue-badge { color: var(--primary-hover); }
.reveal { opacity: 1; transform: none; transition: opacity 450ms ease, transform 450ms ease; }
.reveal.is-pending { opacity: 0; transform: translateY(12px); }
@media (max-width: 900px) {
  .hero-section { padding-top: 48px; }
  .hero-title { font-size: clamp(32px, 5vw, 44px); }
  .hero-authors { font-size: 17px; }
  .hero-affiliations { font-size: 15px; }
  .btn { font-size: 15px; padding: 11px 19px; min-height: 48px; }
  .venue-badge { font-size: 14px; }
}
@media (max-width: 600px) {
  .container { padding-inline: 20px; }
  .hero-section { padding: 36px 0 40px; }
  .hero-title { font-size: clamp(29px, 7.4vw, 40px); line-height: 1.22; letter-spacing: -.025em; margin-bottom: 25px; }
  .hero-authors { font-size: 16px; line-height: 1.95; margin-bottom: 24px; }
  .author-item { display: inline-block; }
  .hero-affiliations { font-size: 13px; line-height: 1.8; margin-bottom: 28px; }
  .affil-item { display: block; margin-top: 8px; }
  .affil-item:not(:last-child)::after { content: none; }
  .hero-actions { gap: 10px; margin-bottom: 25px; }
  .btn { font-size: 14px; padding: 10px 16px; min-height: 46px; }
  .venue-badge { border-radius: 18px; font-size: 12px; padding: 10px 14px; }
}
/* Gate 2: paper teaser, abstract, and exactly three dataset highlights. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.overview-section { padding: 48px 0; background: var(--bg-subtle); }
.teaser-section { padding: 32px 0 48px; background: var(--bg-page); }
.abstract-figure { margin: 32px auto 0; }
.teaser-figure { margin: 0 auto; }
.teaser-figure, .abstract-figure, .pipeline-figure, .stats-figure, .dimensions-figure, .paper-result { max-width: 1000px; }
.teaser-link { display: block; border: 1px solid var(--border-color); border-radius: 10px; background: white; overflow: hidden; cursor: zoom-in; }
.teaser-link img { width: 100%; height: auto; }
.teaser-caption { margin-top: 16px; padding-inline: 2px; color: var(--text-muted); font-size: 14px; line-height: 1.7; text-align: center; font-style: italic; }
.teaser-caption strong { font-weight: 600; color: var(--text-main); font-style: italic; }
.abstract-content { max-width: 980px; margin: 0 auto; }
.abstract-content h2 { margin: 0 0 28px; color: var(--text-title); font-size: 34px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; text-align: center; }
.abstract-text { font-size: 16px; line-height: 1.8; color: var(--text-main); text-align: left; }
.abstract-text p + p { margin-top: 20px; }
.abstract-text strong { color: var(--text-title); font-weight: 600; }
.key-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1010px; margin: 0 auto; text-align: left; }
.highlight-card { padding: 22px 24px; border: 1.5px solid #cbd5e1; border-radius: 12px; background: #f8fafc; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.highlight-card:hover { border-color: #0f172a; background: #ffffff; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06); }


.key-highlights dt { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #334e68; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; }
.key-highlights dt .svg-inline--fa, .key-highlights dt svg, .key-highlights dt i { width: 17px; height: 17px; flex-shrink: 0; color: #334e68; }


.key-highlights dd { margin-top: 10px; color: #0f172a; font-size: 36px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; }
/* The reef image and its color treatment are confined to the opening section. */
.hero-section .hero-title { color: #ffffff; text-shadow: 0 2px 16px rgba(0, 15, 27, .3); }
.hero-section .hero-authors { color: #ffffff; }
.hero-section .hero-affiliations { color: #e1edf4; }
.hero-section .author-item sup, .hero-section .affil-item sup { color: #a6e4ff; }
.hero-section .author-item a:hover { color: #bcecff; }
.hero-section .venue-badge { color: #e4f5ff; background: rgba(4, 37, 58, .88); border-color: #79adc4; }
.hero-section .btn-primary { color: #07354d; background: #ffffff; border-color: #ffffff; }
.hero-section .btn-primary:hover { background: #e0f2fe; border-color: #e0f2fe; }
.hero-section .btn-secondary { color: #ffffff; background: rgba(4, 31, 48, .87); border-color: #7ba6bc; }
.hero-section .btn-secondary:hover { color: #ffffff; background: #124d68; border-color: #bcecff; }
.hero-section .highlight-card { background: rgba(3, 29, 46, .89); border-color: #7199ae; box-shadow: none; }
.hero-section .highlight-card:hover { background: #0b3a52; border-color: #bcecff; }
.hero-section .key-highlights dt, .hero-section .key-highlights dt .svg-inline--fa, .hero-section .key-highlights dt i { color: #c5e8f7; }
.hero-section .key-highlights dd { color: #ffffff; }
.hero-section :focus-visible { outline-color: #bcecff; }
@media (max-width: 600px) {
  .hero-section { background-position: 52% center; }
}
@media (min-width: 901px) and (max-height: 740px) {
  .hero-section { padding: 20px 0 16px; }
  .hero-title { margin-bottom: 18px; }
  .hero-authors { margin-bottom: 16px; }
  .hero-affiliations { margin-bottom: 16px; }
  .venue-badge { margin-bottom: 14px; }
  .hero-actions { margin-bottom: 18px; }
}
.figure-viewer { width: min(1600px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid var(--border-color); border-radius: 12px; color: var(--text-title); background: white; overflow: hidden; }
.figure-viewer::backdrop { background: rgba(15, 23, 42, .72); }
.figure-viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.figure-viewer-toolbar h2 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.figure-viewer-controls { display: flex; gap: 8px; }
.figure-viewer-controls button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-color); border-radius: 7px; background: white; color: var(--text-title); font-size: 25px; line-height: 1; }
.figure-viewer-controls button:hover { background: var(--bg-subtle); }
.figure-viewport { max-height: calc(100dvh - 118px); overflow: auto; overscroll-behavior: contain; }
.figure-viewport img { width: 100%; height: auto; max-width: none; }
.figure-viewport.is-zoomed img { width: max(100%, 2800px); }
body.figure-viewer-open { overflow: hidden; }
@media (min-width: 601px) and (max-width: 900px) {
  .key-highlights { gap: 12px; }
  .highlight-card { padding: 18px 16px 20px; }
  .key-highlights dt { font-size: 10px; gap: 8px; }
  .key-highlights dd { font-size: 27px; }
}
@media (max-width: 600px) {
  .overview-section { padding: 32px 0; }
  .teaser-section { padding: 24px 0 32px; }
  .abstract-figure { margin-top: 24px; }
  .teaser-link { border-radius: 6px; }
  .teaser-caption { font-size: 12px; margin-top: 12px; }
  .abstract-content { margin-top: 0; }
  .abstract-content h2 { font-size: 28px; margin-bottom: 22px; }
  .abstract-text { font-size: 14.5px; line-height: 1.75; }
  .abstract-text p + p { margin-top: 16px; }
  .key-highlights { grid-template-columns: 1fr; gap: 12px; margin-bottom: 26px; }
  .highlight-card { padding: 18px 20px; border-radius: 13px; }
  .key-highlights dd { font-size: 32px; margin-top: 7px; }
  .key-highlights dt { font-size: 11px; }
  .figure-viewer { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .figure-viewer-toolbar { padding: 10px 12px; gap: 8px; }
  .figure-viewer-toolbar h2 { font-size: 13px; }
  .figure-viewport { max-height: calc(100dvh - 90px); }
}
/* Gate 3: local video samples, synchronized annotations, and question browsing. */
.demo-section { padding: 48px 0; background: var(--bg-page); }
.demo-heading { margin-bottom: 36px; text-align: left; }
.demo-heading h2 { color: var(--text-title); font-size: 34px; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.demo-showcase { padding: 28px; background: white; border: 1px solid var(--border-color); border-radius: 16px; }
.sample-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sample-heading h3 { color: var(--text-title); font-size: 23px; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; }
.sample-heading p { margin-top: 4px; color: var(--text-muted); font-size: 13px; }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.demo-media { min-width: 0; }
.demo-video-frame { position: relative; }
#demo-video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0f172a; border-radius: 8px; }
.video-start { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #0f172a; }
.video-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play-label { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: white; background: rgba(15,23,42,.85); font-size: 14px; font-weight: 600; transition: background-color var(--transition); }
.video-start:hover .video-play-label { background: #0f172a; }
.video-play-label > span { font-size: 12px; }
.sample-caption { margin-top: 18px; padding: 14px 16px; border: 1.5px solid #cbd5e1; border-radius: 8px; background: #ffffff; transition: border-color var(--transition), box-shadow var(--transition); }
.sample-caption:hover { border-color: #0f172a; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
.sample-caption h4 { margin-bottom: 6px; color: #334e68; font-size: 11px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; line-height: 1.35; }
.annotation-heading { color: var(--text-title); font-size: 14px; font-weight: 650; margin-bottom: 10px; }
.sample-caption p { color: #050b14; font-size: 13.5px; font-weight: 500; line-height: 1.65; }
.demo-details { display: flex; flex-direction: column; height: 560px; min-width: 0; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.demo-tabs { position: relative; display: flex; flex-shrink: 0; margin: 12px 14px 10px; padding: 3px; background: #f1f5f9; border: 1.5px solid #cbd5e1; border-radius: 9px; }
.demo-tab-slider { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: #ffffff; border-radius: 6px; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04); border: 1px solid rgba(203, 213, 225, 0.8); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1; }
.demo-tabs[data-active="qa"] .demo-tab-slider { transform: translateX(100%); }
.demo-tabs button { position: relative; z-index: 2; flex: 1; width: 50%; padding: 9px 0; border: none; background: transparent; font-size: 13px; font-weight: 700; color: #334e68; cursor: pointer; text-align: center; transition: color 0.2s; }
.demo-tabs button:hover { color: #0f172a; }
.demo-tabs button[aria-selected="true"] { color: #0f172a; font-weight: 800; }

.demo-panel { flex: 1; min-height: 0; padding: 20px 16px 24px 20px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #9baebf #f8fafc; }
.demo-panel:focus-visible { outline-offset: -3px; }
.attribute-group + .attribute-group { margin-top: 24px; }
.attribute-group h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #0f172a; font-size: 11.5px; line-height: 1.5; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-left: 3.5px solid #0f172a; padding-left: 8px; }
.attribute-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.attribute-cards > div { min-width: 0; padding: 12px 14px; border: 1.5px solid #cbd5e1; border-radius: 8px; background: #ffffff; transition: border-color var(--transition), box-shadow var(--transition); }
.attribute-cards > div:hover { border-color: #0f172a; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
.attribute-cards-wide { grid-template-columns: 1fr; }
.attribute-cards dt { margin-bottom: 5px; color: #334e68; font-size: 11px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; line-height: 1.35; }
.attribute-cards dd { color: #050b14; font-size: 13.5px; font-weight: 500; line-height: 1.55; overflow-wrap: anywhere; }
.question-list { display: grid; gap: 11px; }
.qa-item { border: 1.5px solid #cbd5e1; border-radius: 8px; background: #ffffff; transition: border-color var(--transition), box-shadow var(--transition); }
.qa-item:hover { border-color: #0f172a; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
.qa-item[open] { border-color: #0f172a; border-left: 4px solid #0f172a; }
.qa-item > summary { position: relative; padding: 12px 34px 12px 14px; list-style: none; cursor: pointer; border-radius: 7px; }
.qa-item > summary::-webkit-details-marker { display: none; }
.qa-item > summary::after { content: '+'; position: absolute; top: 11px; right: 14px; color: #334e68; font-size: 20px; font-weight: 700; line-height: 1; }
.qa-item[open] > summary::after { content: '−'; color: #0f172a; }
.qa-item > summary:hover { background: #f8fafc; }
.qa-item > summary:focus-visible { outline-offset: -3px; }
.qa-type { display: flex; align-items: center; margin-bottom: 6px; color: #334e68; font-size: 11px; line-height: 1.35; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.qa-sep { display: inline-block; width: 1.5px; height: 11px; background-color: #334e68; margin: 0 7px; border-radius: 1px; flex-shrink: 0; }
.qa-question { display: block; color: #050b14; font-size: 13.5px; line-height: 1.55; font-weight: 700; }
.qa-content { padding: 0 14px 14px; border-top: 1px dashed #e2e8f0; margin-top: 6px; padding-top: 10px; }
.qa-choices { display: grid; min-width: 0; gap: 8px; border: 0; margin: 4px 0 6px; padding: 0; }
.qa-option { display: grid; grid-template-columns: 18px 16px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 10px 12px; border: 1.5px solid #cbd5e1; border-radius: 7px; background: #ffffff; font-size: 13px; line-height: 1.6; cursor: pointer; transition: all 0.15s; }
.qa-option input { width: 15px; height: 15px; margin: 0; align-self: start; margin-top: 3px; accent-color: #0f172a; }
.qa-option:hover { border-color: #0f172a; background: #f8fafc; }
.qa-option:focus-within { outline: 2px solid #0f172a; outline-offset: 2px; }
.qa-option .option-letter { font-weight: 800; color: #334e68; font-size: 12.5px; }
.qa-option .option-text { font-weight: 600; color: #050b14; }


.qa-option input:focus-visible { outline: none; }
.qa-option.is-correct { border-color: #15803d; background: #f0fdf4; color: #14532d; box-shadow: inset 3.5px 0 #15803d; }
.qa-option.is-incorrect { border-color: #b91c1c; background: #fef2f2; color: #7f1d1d; box-shadow: inset 3.5px 0 #b91c1c; }
.qa-option.is-correct input { accent-color: #15803d; }
.qa-option.is-incorrect input { accent-color: #b91c1c; }
.qa-option.is-correct .option-letter, .qa-option.is-correct .option-text { color: #14532d; font-weight: 700; }
.qa-option.is-incorrect .option-letter, .qa-option.is-incorrect .option-text { color: #7f1d1d; font-weight: 700; }


.qa-reference { margin-top: 6px; padding: 12px 14px; border: 1.5px solid #cbd5e1; border-left: 4px solid #0f172a; border-radius: 6px; background: #f8fafc; }
.qa-reference h5 { margin-bottom: 6px; color: #334e68; font-size: 11px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.qa-reference p { color: #050b14; font-size: 13px; font-weight: 600; line-height: 1.6; }
.sample-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.sample-choice { min-width: 0; padding: 3px; border: 1.5px solid #cbd5e1; border-radius: 8px; background: #ffffff; cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition); }
.sample-choice img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; }

.sample-choice:hover { border-color: #0f172a; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.sample-choice[aria-pressed="true"] { border-color: #0f172a; box-shadow: 0 0 0 1.5px #0f172a; }
.video-error, .demo-noscript { padding-top: 12px; color: var(--text-muted); font-size: 13px; }
@media (max-width: 900px) {
  .demo-showcase { padding: 22px; }
  .demo-layout { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .demo-section { padding: 32px 0; }
  .demo-heading { margin-bottom: 26px; }
  .demo-heading h2 { font-size: 28px; }
  .demo-showcase { display: flex; flex-direction: column; padding: 16px; border-radius: 12px; }
  .sample-heading { align-items: flex-start; gap: 8px; margin-bottom: 18px; }
  .sample-heading h3 { font-size: 20px; }
  .sample-heading p { font-size: 12px; }
  .sample-caption { padding: 16px; }
  .sample-caption p { font-size: 13px; }
  .demo-tabs { margin: 10px 10px 8px; }
  .demo-details { height: min(560px, 75svh); min-height: 320px; }
  .demo-panel { padding: 16px 10px 20px 14px; }
  .attribute-cards { grid-template-columns: 1fr; }
  .qa-item > summary { padding-left: 12px; }
  .qa-content { padding-inline: 12px; }
  .sample-picker { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 0 18px; scroll-snap-type: x proximity; }
  .sample-choice { flex: 0 0 130px; scroll-snap-align: start; }
}
/* Gate 4: Dataset Pipeline */
.pipeline-section { padding: 48px 0; background: var(--bg-subtle); }
.pipeline-heading, .stats-heading { margin-bottom: 36px; text-align: left; }
.pipeline-heading h2, .stats-heading h2 { color: var(--text-title); font-size: 34px; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.pipeline-figure, .stats-figure { margin: 0 auto; }
.pipeline-figure + .pipeline-figure { margin-top: 48px; }
.figure-description { max-width: 980px; margin: 18px auto 0; font-size: 16px; line-height: 1.8; color: var(--text-main); text-align: left; }

/* Gate 5: Dataset Statistics */
.stats-section { padding: 48px 0; background: var(--bg-page); }

/* Task Dimensions */
.dimensions-section { padding: 48px 0; background: var(--bg-subtle); }
.dimensions-heading { margin-bottom: 36px; text-align: left; }
.dimensions-heading h2 { color: var(--text-title); font-size: 34px; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.dimensions-table-card { max-width: 1040px; margin: 0 auto; border: 1px solid var(--border-color); border-radius: 12px; background: white; overflow: hidden; box-shadow: 0 4px 18px rgba(15, 23, 42, .03); }
.dimensions-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.dimensions-table .col-dimension { width: 38%; }
.dimensions-table .col-meaning { width: 62%; }
.dimensions-table thead th { background: #f8fafc; border-bottom: 2px solid #cbd5e1; color: var(--text-title); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 15px 22px; }
.dimensions-table tbody tr { border-top: 1px solid #edf2f7; transition: background-color var(--transition); }
.dimensions-table tbody tr:hover { background: #f8fafc; }
.dimensions-table tbody th, .dimensions-table tbody td { padding: 14px 22px; vertical-align: middle; }
.dimensions-table tbody th { color: var(--text-title); font-size: 14.5px; font-weight: 600; line-height: 1.5; text-align: left; }
.dim-name { display: inline; color: var(--text-title); }
.dim-badge { display: inline-flex; align-items: center; justify-content: center; margin-left: 8px; padding: 2px 7px; border-radius: 4px; background: #edf5fa; border: 1px solid #cfe2ee; color: #155880; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11.5px; font-weight: 700; vertical-align: baseline; white-space: nowrap; }
.dimensions-table tbody td { color: var(--text-main); font-size: 14px; line-height: 1.7; }
.dimensions-table tbody td strong { color: var(--text-title); font-weight: 600; }
.dimensions-figure { margin: 0 auto; }

@media (max-width: 600px) {
  .pipeline-section { padding: 32px 0; }
  .pipeline-heading, .stats-heading, .dimensions-heading { margin-bottom: 26px; }
  .pipeline-heading h2, .stats-heading h2, .dimensions-heading h2 { font-size: 28px; }
  .pipeline-figure + .pipeline-figure { margin-top: 36px; }
  .figure-description { font-size: 14.5px; line-height: 1.75; margin-top: 14px; }
  .stats-section { padding: 32px 0; }
  .dimensions-section { padding: 32px 0; }
  .dimensions-table .col-dimension { width: 44%; }
  .dimensions-table .col-meaning { width: 56%; }
  .dimensions-table thead th { font-size: 12px; padding: 12px 14px; }
  .dimensions-table tbody th, .dimensions-table tbody td { padding: 12px 14px; font-size: 12.5px; line-height: 1.6; overflow-wrap: anywhere; }
  .dim-badge { margin-left: 4px; padding: 1px 6px; font-size: 10px; }
}
/* Gate 6: paper benchmarks and citation. */
.results-section, .citation-section { padding: 48px 0; }
.results-section { background: var(--bg-page); }
.citation-section { background: var(--bg-subtle); }
.results-heading, .citation-heading { margin-bottom: 32px; text-align: left; }
.results-heading h2, .citation-heading h2 { color: var(--text-title); font-size: 34px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.paper-result { margin: 0 auto; }
.paper-result + .paper-result { margin-top: 48px; }
.result-table-camera { max-width: 780px; }
.result-radar { max-width: 940px; }
.citation-section .container { max-width: 1008px; }
.citation-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.copy-bibtex-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 100px; padding: 11px 16px; border: 0; border-radius: 10px; background: var(--primary-hover); color: white; font-size: 14px; font-weight: 600; transition: background-color var(--transition), box-shadow var(--transition); }
.copy-bibtex-button .svg-inline--fa, .copy-bibtex-button i { width: 14px; height: 16px; }
.copy-bibtex-button:hover { background: #075985; box-shadow: 0 2px 5px rgba(15, 23, 42, .12); }
.copy-bibtex-button.is-copied { background: #047857; }
.citation-block { border: 1px solid var(--border-color); border-radius: 12px; background: #f1f5f9; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.citation-block pre { padding: 24px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.8 ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace; color: var(--text-title); tab-size: 2; }
.citation-block code { font: inherit; }
.citation-block pre:focus-visible { outline-offset: -3px; }
.copy-status { min-height: 24px; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
@media (max-width: 600px) {
  .results-section, .citation-section { padding: 32px 0; }
  .results-heading, .citation-heading { margin-bottom: 26px; }
  .results-heading h2, .citation-heading h2 { font-size: 28px; }
  .paper-result + .paper-result { margin-top: 32px; }
  .citation-heading { margin-bottom: 18px; }
  .copy-bibtex-button { min-width: 94px; padding-inline: 14px; font-size: 13px; }
  .citation-block pre { padding: 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}
