:root {
  --text: #202124;
  --muted: #5f6368;
  --link: #3273dc;
  --border: #e5e7eb;
  --soft: #f6f7f8;
  --button: #363636;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img, video { display: block; max-width: 100%; }
a { color: var(--link); }
strong { color: inherit; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 8px 12px;
  color: #fff;
  background: #111;
}
.skip-link:focus { top: 12px; }

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow-shell { width: min(920px, calc(100% - 40px)); }

.hero-section {
  padding: 72px 0 38px;
  text-align: center;
  background: #fff;
}

.publication-title {
  max-width: 1000px;
  margin: 0 auto 16px;
  color: #111;
  font-size: clamp(2.1rem, 4.1vw, 3.2rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.025em;
}

.publication-venue {
  margin: 0 0 12px;
  color: #111;
  font-size: 1.25rem;
  font-weight: 600;
}

.publication-authors {
  max-width: 1040px;
  margin: 0 auto 8px;
  color: var(--link);
  font-size: 1.12rem;
  line-height: 1.75;
}

.publication-authors span { white-space: nowrap; }
.publication-authors sup, .publication-affiliations sup { color: var(--text); }

.publication-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  margin: 0 auto 22px;
  color: #333;
  font-size: .98rem;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 38px;
}

.project-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  color: #fff;
  background: var(--button);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 120ms ease;
}
.project-button:hover, .project-button:focus { color: #fff; background: #111; }

.hero-figure {
  margin: 0 auto;
  text-align: left;
}
.hero-figure img { width: 100%; height: auto; }
.hero-figure figcaption,
.paper-figure figcaption {
  margin-top: 10px;
  color: #4b5563;
  font-size: .95rem;
  line-height: 1.55;
}

.section-block {
  padding: 54px 0;
  background: #fff;
}

.section-block + .section-block { border-top: 1px solid #f0f0f0; }

.section-heading {
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #3f4650;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.section-heading > .eyebrow { font-size: 1.05rem; }

.section-heading h2,
.abstract-section h2 {
  margin: 0 0 12px;
  color: #111;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.section-heading p,
.method-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.abstract-section { padding-top: 48px; }
.abstract-section .eyebrow { display: none; }
.abstract-section h2 { text-align: center; }
.abstract-copy {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: justify;
}

.suite-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
}

.suite-flow article,
.adaptation-grid article {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.suite-flow h3,
.adaptation-grid h3 {
  margin: 2px 0 8px;
  color: #111;
  font-size: 1.22rem;
  font-weight: 600;
}
.suite-flow p, .adaptation-grid p { margin: 0; color: var(--muted); font-size: .94rem; }
.flow-index, .flow-kicker { display: inline; color: var(--muted); font-size: .8rem; font-weight: 600; }
.flow-index::after { content: " · "; }
.flow-arrow { align-self: center; color: #9ca3af; font-size: 1.35rem; }
.paper-figure { margin: 28px auto 0; }
.paper-figure img { width: 100%; height: auto; }
.wide-figure { margin-top: 0; }

.method-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 26px;
}
.method-summary article { padding-top: 14px; border-top: 2px solid #d7d9dd; }
.method-summary strong, .method-summary span { display: block; }
.method-summary strong { margin-bottom: 5px; color: #111; font-size: .96rem; }
.method-summary span { color: var(--muted); font-size: .9rem; line-height: 1.55; }

.adaptation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.adaptation-grid article { border-top: 3px solid var(--module-border); }
.adaptation-grid article:nth-child(1) { --module-bg: #fff1be; --module-ink: #735600; --module-border: #d2a62c; }
.adaptation-grid article:nth-child(2) { --module-bg: #dceefa; --module-ink: #245f87; --module-border: #4d8fbd; }
.adaptation-grid article:nth-child(3) { --module-bg: #e2efd8; --module-ink: #3d6933; --module-border: #6e9a56; }
.adaptation-grid h3 { color: var(--module-ink); }
.module-highlight {
  padding: .05em .18em;
  color: var(--module-ink);
  background: var(--module-bg);
  border-radius: 2px;
  font-weight: 650;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.decoder-result {
  display: grid;
  grid-template-columns: .58fr 1.42fr;
  align-items: center;
  gap: 34px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.decoder-result-copy {
  padding-left: 18px;
  border-left: 3px solid #cfd3d8;
}
.decoder-result-copy h3 {
  margin: 0 0 8px;
  color: #111;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
.decoder-result-copy p { margin: 0; color: var(--muted); font-size: .98rem; }
.decoder-result .paper-figure { margin: 0; }
.decoder-video-figure {
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.decoder-composite-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  background: transparent;
}

.adc-content {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 42px;
}
.method-list { margin: 20px 0 0; padding: 0; list-style: none; }
.method-list li { display: grid; grid-template-columns: 32px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--border); }
.method-list li > span { color: var(--muted); font-size: .78rem; }
.method-list strong, .method-list small { display: block; }
.method-list small { color: var(--muted); font-size: .86rem; }
.adc-figure { width: min(100%, 520px); margin: 0 auto; }

.dataset-section, .gallery-section { color: var(--text); background: #fff; }
.light-heading h2 { color: #111; }
.light-heading p { color: var(--muted); }
.dataset-figure { margin: 0; }
.dataset-figure img { width: 100%; height: auto; }
.dataset-video-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  background: transparent;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .12);
}
.dataset-composite-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}
.decoder-pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 28px;
}
.decoder-pipeline > div {
  display: flex;
  min-height: 92px;
  padding: 12px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  text-align: center;
}
.decoder-pipeline span { font-size: .88rem; font-weight: 600; }
.decoder-pipeline small { color: var(--muted); font-size: .72rem; }
.decoder-pipeline > i { align-self: center; color: #9ca3af; font-style: normal; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.metric-grid article {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 5px;
  text-align: center;
}
.metric-grid strong, .metric-grid span, .metric-grid small { display: block; }
.metric-grid strong { color: #111; font-size: 1.55rem; }
.metric-grid span { color: #333; font-size: .87rem; font-weight: 600; }
.metric-grid small { color: var(--muted); font-size: .72rem; }

.results-section .page-shell { width: min(1240px, calc(100% - 40px)); }
.results-table-wrap { overflow-x: auto; border: 1px solid var(--border); }
.results-table { width: 100%; min-width: 1050px; table-layout: fixed; border-collapse: collapse; font-size: .78rem; }
.results-table th, .results-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.results-table th { color: #3f3f46; background: var(--soft); font-weight: 600; }
.results-table thead th { text-align: center; }
.results-table thead tr:first-child th:nth-child(-n + 3),
.results-table tbody td:nth-child(-n + 3) { text-align: center; }
.results-table thead tr:nth-child(2) th,
.results-table tbody td:nth-child(n + 4) {
  padding-right: 4px;
  padding-left: 4px;
  text-align: center !important;
}
.results-table tbody td:nth-child(n + 4) { font-variant-numeric: tabular-nums; }
.results-table .best { color: #b42318; font-weight: 700; }
.results-table .second { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.results-table .ours-row td.regular { font-weight: 400 !important; }
.results-table .section-break td { border-top: 2px solid #cfd3d8; }
.ours-row { background: #fff8f6; font-weight: 600; }
.results-table caption { padding: 10px 4px 0; color: var(--muted); caption-side: bottom; font-size: .78rem; text-align: left; }

.qualitative-figure { margin-top: 32px; }
.ablation-panel {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.ablation-panel h3 { margin: 4px 0 10px; color: #111; font-size: 1.45rem; font-weight: 600; }
.ablation-panel p { margin: 0; color: var(--muted); font-size: .94rem; }
.ablation-panel img { width: 100%; height: auto; }

.gallery-shell { width: min(1320px, calc(100% - 32px)); }
.gallery-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: -8px 0 24px;
  color: var(--muted);
  font-size: .84rem;
}
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #9ca3af; }
.adc-dot { background: #4f9f6f; }
.trans-dot { background: #d95f44; }
.state-dot { background: #4f83bd; }

.media-cases { display: grid; gap: 22px; }
.media-case { border: 1px solid var(--border); background: #fff; }
.media-case-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.media-case-header h3 { margin: 0; color: #333; font-size: .9rem; font-weight: 600; }
.case-sync {
  padding: 5px 10px;
  color: #333;
  background: #fff;
  border: 1px solid #cfd3d8;
  border-radius: 4px;
  font-size: .75rem;
  cursor: pointer;
}
.case-sync:hover { background: var(--soft); }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.video-cell { min-width: 0; margin: 0; background: #fff; }
.video-cell figcaption { padding: 7px 9px; color: #4b5563; background: #fafafa; font-size: .72rem; font-weight: 600; text-align: center; }
.video-cell video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.gallery-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.load-cases-button {
  padding: 9px 16px;
  color: #fff;
  background: var(--button);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.load-cases-button span, .load-cases-button small { display: block; }
.load-cases-button small { color: #d1d5db; font-size: .68rem; }
.load-cases-button:disabled { opacity: .6; cursor: default; }
.ghost-link { font-size: .9rem; }

.deployment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.deployment-grid figure { position: relative; margin: 0; }
.deployment-grid img { width: 100%; height: auto; }
.deployment-grid figcaption { margin-top: 7px; color: var(--muted); font-size: .84rem; text-align: center; }
.deployment-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.deployment-stats div { padding: 14px; border: 1px solid var(--border); text-align: center; }
.deployment-stats strong, .deployment-stats span { display: block; }
.deployment-stats strong { color: #111; font-size: 1.45rem; }
.deployment-stats span { color: var(--muted); font-size: .8rem; }
.real-robot-heading { margin: 48px 0 20px; text-align: center; }
.real-robot-heading h3 { margin: 4px 0 5px; color: #111; font-size: 1.45rem; font-weight: 600; }
.real-robot-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.real-robot-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.real-robot-cases .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.more-results-note { margin: 22px 0 0; font-size: .9rem; text-align: center; }

.citation-section { background: var(--soft); }
.citation-box { position: relative; max-width: 920px; margin: 0 auto; padding: 24px; background: #fff; border: 1px solid var(--border); }
.citation-box pre { margin: 0; padding: 0 84px 0 0; color: #222; background: transparent; white-space: pre-wrap; word-break: break-word; font-size: .82rem; line-height: 1.55; }
.copy-button { position: absolute; top: 14px; right: 14px; padding: 6px 10px; color: #333; background: #fff; border: 1px solid #cfd3d8; border-radius: 4px; cursor: pointer; }
.copy-button.is-copied { color: #176b43; border-color: #57a87e; }
.copy-toast { position: fixed; right: 20px; bottom: 20px; z-index: 20; padding: 8px 12px; color: #fff; background: #333; border-radius: 4px; font-size: .8rem; opacity: 0; pointer-events: none; }
.copy-toast.is-visible { opacity: 1; }

.site-footer { padding: 34px 0; color: #6b7280; background: #fff; border-top: 1px solid var(--border); }
.footer-inner { max-width: 820px; text-align: center; }
.footer-inner p { margin: 0; font-size: .82rem; line-height: 1.6; }

.hero-grid, .hero-shape, .venue-pill, .hero-deck, .hero-stats, .nav-toggle, .site-nav, .scroll-top { display: none !important; }

@media (max-width: 900px) {
  .suite-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); text-align: center; }
  .adaptation-grid { grid-template-columns: 1fr; }
  .method-summary { grid-template-columns: 1fr; gap: 14px; }
  .decoder-result { grid-template-columns: 1fr; gap: 22px; }
  .decoder-pipeline { grid-template-columns: 1fr; }
  .decoder-pipeline > i { transform: rotate(90deg); text-align: center; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .page-shell, .narrow-shell { width: min(100% - 26px, 1120px); }
  .hero-section { padding: 45px 0 25px; }
  .publication-title { font-size: 2rem; }
  .publication-venue { font-size: 1.08rem; }
  .publication-authors { font-size: 1rem; }
  .publication-affiliations { display: block; font-size: .88rem; }
  .publication-affiliations span { display: block; }
  .publication-links { margin-bottom: 28px; }
  .project-button { min-height: 39px; padding: 8px 14px; font-size: .86rem; }
  .section-block { padding: 42px 0; }
  .abstract-copy { font-size: 1rem; text-align: left; }
  .adc-content, .ablation-panel { grid-template-columns: 1fr; gap: 24px; }
  .dataset-video-carousel { aspect-ratio: 16 / 9; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .deployment-grid, .real-robot-cases { grid-template-columns: 1fr; }
  .citation-box { padding: 18px 14px; }
  .citation-box pre { padding: 38px 0 0; font-size: .72rem; }
}

@media (max-width: 520px) {
  .publication-title { font-size: 1.72rem; }
  .publication-links { gap: 7px; }
  .video-grid, .real-robot-cases .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid, .deployment-stats { grid-template-columns: 1fr; }
  .gallery-shell { width: min(100% - 18px, 1320px); }
}

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