:root {
  --page: #f9fafb;
  --surface: #ffffff;
  --soft: #f5f4f0;
  --soft-2: #f8f8f8;
  --text: #262626;
  --muted: #6a6a6a;
  --line: rgba(0, 0, 0, 0.12);
  --line-soft: #e8e8e8;
  --yellow: #ffce44;
  --blue: #4476c6;
  --green: #5fbf6f;
  --purple: #7c5cc4;
  --content-wide: 1040px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

img,
video {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 32px 36px;
  background: var(--page);
}

.hero-shell {
  width: min(1248px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy {
  text-align: center;
}

.hero-kicker {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 {
  max-width: 1050px;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(28px, 4.9vw, 48px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.title-break {
  display: block;
}

.hero-authors,
.hero-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 940px;
  margin: 22px auto 0;
  color: #555;
  font-size: 15px;
  line-height: 1.5;
}

.hero-authors {
  gap: 4px 18px;
}

.hero-affiliations {
  gap: 4px 14px;
  max-width: 1020px;
  margin-top: 12px;
  color: #777;
  font-size: 13px;
}

.corresponding-affiliation {
  flex-basis: 100%;
}

.hero-authors span {
  white-space: nowrap;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 0;
}

.nav-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  background: #eff1f9;
  border-color: transparent;
  outline: none;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-arxiv {
  width: 31px;
  color: #b31b1b;
  font: 700 10px/1 Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.nav-icon-github {
  fill: #24292f;
}

.nav-icon-scholar circle {
  fill: #4285f4;
}

.nav-icon-scholar path {
  fill: #fff;
}

.intro-text {
  max-width: 800px;
  margin: 24px auto 0;
  padding: 0 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
  text-align: left;
}

.feature-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
}

.section-title {
  margin-bottom: 40px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.section-description {
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
  text-align: left;
}

.method-intro {
  max-width: var(--content-wide);
  margin: 0 auto 42px;
}

.method-intro p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.method-intro p + p {
  margin-top: 14px;
}

.video-carousel-side {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.carousel-sidebar {
  position: absolute;
  right: calc(100% + 24px);
  top: 0;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-category {
  padding: 8px;
  border-radius: 8px;
  background: var(--soft-2);
}

.sidebar-category-title {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sidebar-thumb {
  width: 100%;
  display: block;
  overflow: hidden;
  margin-top: 8px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
  text-align: inherit;
  transition: border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.sidebar-thumb:hover,
.sidebar-thumb:focus-visible {
  opacity: 0.95;
  outline: none;
  transform: scale(1.01);
}

.sidebar-thumb.active {
  border-color: var(--yellow);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(255, 206, 68, 0.3);
}

.sidebar-thumb video {
  width: 100%;
  aspect-ratio: 4 / 1;
  display: block;
  object-fit: contain;
  background: #111;
  pointer-events: none;
}

.sidebar-thumb-label {
  display: block;
  padding: 6px 4px;
  background: #f0f0f0;
  color: #666;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.sidebar-thumb.active .sidebar-thumb-label {
  background: #e8e8e8;
  color: #333;
  font-weight: 600;
}

.inline-demo-block {
  margin-top: 34px;
}

.inline-demo-title {
  margin-bottom: 8px;
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.inline-demo-description {
  max-width: 620px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.inline-demo-block .video-carousel-side {
  max-width: 760px;
}

.inline-demo-block .carousel-sidebar {
  position: static;
  width: 100%;
  margin-bottom: 16px;
}

.inline-demo-block .sidebar-category {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.inline-demo-block .sidebar-category-title {
  grid-column: 1 / -1;
}

.inline-demo-block .sidebar-thumb {
  margin-top: 0;
}

.carousel-main-side,
.single-video-container {
  overflow: hidden;
  border-radius: 12px;
  background: #1a1a1a;
  box-shadow: var(--shadow);
}

.carousel-main-side video {
  width: 100%;
  aspect-ratio: 4 / 1;
  display: block;
  object-fit: contain;
  background: #111;
}

.video-caption {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #eee;
  color: #555;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.chart-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 12px;
  background: var(--soft);
}

.chart-label {
  margin-bottom: 24px;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.chart-figure {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.chart-figure img {
  width: 100%;
  display: block;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 24px auto 0;
}

.metric-row div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.metric-row strong {
  display: block;
  color: #1a1a1a;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.metric-row span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.metric-row-wide {
  margin-bottom: 34px;
}

.metric-row-wide strong {
  font-size: 22px;
  line-height: 1.25;
}

.howitworks-content {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.howitworks-subsection + .howitworks-subsection {
  margin-top: 70px;
}

.howitworks-subsection:last-child {
  margin-bottom: 0;
}

.howitworks-subtitle {
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--yellow);
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.howitworks-text {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.method-figure {
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.method-figure img {
  width: 100%;
  display: block;
}

.wam-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1.04fr) 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 26px;
}

.flow-column {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.flow-column-main {
  border-color: rgba(68, 118, 198, 0.24);
  background: #f4f7fd;
}

.flow-column h4 {
  margin-bottom: 8px;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
}

.flow-column p {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.language-token {
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 6px 10px;
  border: 1px solid rgba(68, 118, 198, 0.18);
  border-radius: 999px;
  background: #eef3fb;
  color: #285aa3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.token-stream {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.token-stream-label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.video-token-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.video-token-strip span {
  min-height: 32px;
  border: 1px solid rgba(68, 118, 198, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(68, 118, 198, 0.3), rgba(68, 118, 198, 0.08)),
    linear-gradient(#fff, #f7f8fb);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.video-token-strip-future span {
  background:
    linear-gradient(135deg, rgba(68, 118, 198, 0.42), rgba(68, 118, 198, 0.14)),
    linear-gradient(#fff, #f7f8fb);
}

.action-token-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-items: center;
}

.action-token-strip span {
  height: 14px;
  border-radius: 999px;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(124, 92, 196, 0.12);
}

.action-token-strip span:nth-child(2) {
  background: #8d72d0;
  box-shadow: 0 0 0 4px rgba(124, 92, 196, 0.12);
}

.action-token-strip span:nth-child(3) {
  background: #6e4fb6;
  box-shadow: 0 0 0 4px rgba(124, 92, 196, 0.12);
}

.wam-core {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid rgba(68, 118, 198, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.core-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.core-track span {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #285aa3;
  font-size: 14px;
  font-weight: 700;
  background: #e9f0fb;
}

.core-track-action span {
  color: #5e439b;
  background: #f0ebfb;
}

.flow-arrow {
  position: relative;
  height: 2px;
  background: #b8b8b8;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #b8b8b8;
  border-right: 2px solid #b8b8b8;
  transform: translateY(-50%) rotate(45deg);
}

.training-step-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.training-step-card {
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8faf8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.training-step-card-blue {
  background: linear-gradient(180deg, #fff, #f7f9fd);
}

.training-step-card strong,
.training-step-card span {
  display: block;
}

.training-step-card strong {
  margin-bottom: 5px;
  color: #285aa3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.training-step-card h4 {
  margin-bottom: 12px;
  color: #1a1a1a;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.training-step-card > span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.stage-pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 138px;
  margin-bottom: 12px;
}

.stage-bundle {
  min-height: 138px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.stage-bundle small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.stage-language {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(68, 118, 198, 0.18);
  border-radius: 999px;
  background: #eef3fb;
  color: #285aa3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.stage-video-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.stage-video-strip span {
  height: 26px;
  border: 1px solid rgba(68, 118, 198, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(68, 118, 198, 0.34), rgba(68, 118, 198, 0.1)),
    #fff;
}

.stage-video-strip-future span {
  background:
    linear-gradient(135deg, rgba(68, 118, 198, 0.48), rgba(68, 118, 198, 0.16)),
    #fff;
}

.stage-action-strip {
  display: grid;
  gap: 5px;
  min-height: 44px;
  align-content: center;
}

.stage-action-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stage-action-strip span {
  height: 13px;
  border-radius: 999px;
  background: var(--purple);
}

.stage-action-strip span:nth-child(2) {
  background: #8d72d0;
}

.stage-action-strip span:nth-child(3) {
  background: #6e4fb6;
}

.stage-robot-arm {
  position: relative;
  height: 44px;
  margin-top: -2px;
}

.stage-robot-arm span {
  position: absolute;
  display: block;
}

.arm-base {
  left: 9px;
  bottom: 4px;
  width: 26px;
  height: 12px;
  border-radius: 10px 10px 5px 5px;
  background: #6e4fb6;
  box-shadow: 0 0 0 4px rgba(124, 92, 196, 0.12);
}

.arm-link {
  height: 9px;
  border-radius: 999px;
  background: var(--purple);
  transform-origin: left center;
}

.arm-link-one {
  left: 28px;
  bottom: 18px;
  width: 40px;
  transform: rotate(-30deg);
}

.arm-link-two {
  left: 62px;
  bottom: 34px;
  width: 36px;
  transform: rotate(28deg);
}

.arm-joint {
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #8d72d0;
  box-shadow: 0 0 0 2px rgba(124, 92, 196, 0.18);
}

.arm-joint-one {
  left: 57px;
  bottom: 25px;
}

.arm-joint-two {
  left: 91px;
  bottom: 19px;
}

.arm-gripper {
  left: 101px;
  bottom: 15px;
  width: 20px;
  height: 18px;
  border-right: 4px solid #6e4fb6;
  border-top: 4px solid #6e4fb6;
  border-bottom: 4px solid #6e4fb6;
  border-radius: 0 8px 8px 0;
}

.stage-arrow {
  position: relative;
  width: 100%;
  height: 2px;
  background: #aeb6c2;
}

.stage-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid #aeb6c2;
  border-right: 2px solid #aeb6c2;
  transform: translateY(-50%) rotate(45deg);
}

.result-table-grid {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

#robotwin .result-table-grid {
  max-width: var(--content-wide);
}

.table-note {
  max-width: 860px;
  margin: 0 auto -6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
}

#robotwin .table-note {
  max-width: 860px;
  text-align: center;
}

.table-panel {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.table-panel figcaption {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.table-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 16px;
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  color: #333;
  font-size: 13px;
  line-height: 1.35;
}

.compact-table {
  min-width: 560px;
}

.data-table th,
.data-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
  white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
  font-weight: 600;
}

#robotwin .table-panel {
  max-width: var(--content-wide);
  margin: 0 auto;
}

#robotwin .table-panel figcaption {
  text-align: center;
}

#robotwin .table-scroll {
  padding: 12px;
}

#robotwin .data-table {
  min-width: 760px;
  font-size: 12px;
}

#robotwin .compact-table {
  min-width: 500px;
}

#robotwin .data-table th,
#robotwin .data-table td,
#robotwin .data-table th:first-child,
#robotwin .data-table td:first-child {
  padding: 8px 7px;
  text-align: center;
}

.data-table thead th {
  color: #333;
  background: #f5f5f5;
  font-weight: 700;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table .ours {
  color: #285aa3;
  font-weight: 700;
  background: rgba(68, 118, 198, 0.08);
}

.data-table .best {
  color: #2f855a;
  font-weight: 800;
}

.metric-guide {
  max-width: var(--content-wide);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto 10px;
  padding: 13px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.metric-overview {
  max-width: 640px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
}

.metric-guide article {
  min-height: 0;
  padding: 0 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.metric-guide article + article {
  border-left: 1px solid var(--line-soft);
}

.metric-guide h3 {
  margin-bottom: 4px;
  color: #285aa3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.metric-guide p,
.metric-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.metric-guide strong,
.metric-note strong {
  color: #1f2937;
  font-weight: 700;
}

.metric-note {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.analysis-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.analysis-section {
  max-width: var(--content-wide);
  margin: 0 auto 64px;
}

.analysis-section:last-child {
  margin-bottom: 0;
}

.analysis-title {
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--yellow);
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}

.analysis-text {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.analysis-text + .analysis-text {
  margin-top: -14px;
}

.analysis-summary {
  max-width: 100%;
  margin-top: -10px;
  padding: 14px 16px;
  border: 1px solid rgba(68, 118, 198, 0.18);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: rgba(244, 247, 253, 0.78);
  color: #4f5f75;
}

.analysis-summary span {
  display: block;
}

.analysis-summary span + span {
  margin-top: 4px;
}

.baseline-list {
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 12px;
  margin: -10px 0 24px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.baseline-list div {
  min-height: 0;
  padding: 0 16px;
  border: 0;
  background: transparent;
}

.baseline-list div + div {
  border-left: 1px solid var(--line-soft);
}

.baseline-list strong,
.baseline-list span {
  display: inline;
}

.baseline-list strong {
  margin-right: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.baseline-list span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.visual-analysis-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visual-analysis-grid .visual-card:nth-child(2) img {
  aspect-ratio: 16 / 5;
}

.visual-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.visual-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: contain;
  background: #fff;
}

.visual-card div {
  padding: 16px;
}

.visual-card h3,
.visual-card h4 {
  margin-bottom: 8px;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.visual-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.analysis-table {
  margin-top: 18px;
}

.analysis-stack {
  display: grid;
  gap: 18px;
}

.analysis-stack > .analysis-text {
  margin-bottom: 0;
}

.analysis-callout {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(68, 118, 198, 0.16);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: #f4f7fd;
  color: #4f5f75;
  font-size: 14px;
  line-height: 1.65;
}

.wide-analysis-table {
  min-width: 920px;
}

.reconstruction-table {
  min-width: 0;
  table-layout: fixed;
  font-size: 11px;
}

.reconstruction-table th,
.reconstruction-table td {
  padding: 7px 5px;
}

.reconstruction-table th:first-child,
.reconstruction-table td:first-child {
  width: 92px;
}

.visual-comparison-row {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(260px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.visual-comparison-row .visual-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.visual-comparison-row .visual-card img {
  height: 238px;
  aspect-ratio: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.visual-comparison-row .visual-card div {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line-soft);
}

.reconstruction-card img {
  padding: 28px 38px;
}

.split-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.split-table-grid .compact-table {
  min-width: 520px;
}

.action-analysis-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.action-card,
.action-table {
  height: 100%;
}

.action-card img {
  aspect-ratio: 16 / 5;
}

.action-card-wide img {
  aspect-ratio: 16 / 4.6;
}

.citation-section {
  padding-bottom: 96px;
}

.citation-note {
  max-width: 720px;
  margin: -24px auto 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.citation-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--soft);
}

.citation-panel pre {
  margin: 0;
  overflow-x: auto;
}

.citation-panel code {
  color: #333;
  font: 14px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  white-space: pre;
}

.footer {
  padding: 30px 20px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 1200px) {
  .video-carousel-side {
    max-width: 700px;
  }

  .carousel-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
  }

  .sidebar-category {
    flex: 0 1 250px;
  }
}

@media (max-width: 900px) {
  .analysis-grid,
  .visual-analysis-grid,
  .split-table-grid,
  .action-analysis-layout {
    grid-template-columns: 1fr;
  }

  .metric-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 0;
  }

  .metric-guide article:nth-child(odd) {
    border-left: 0;
  }

  .metric-guide article:nth-child(even) {
    border-left: 1px solid var(--line-soft);
  }

}

@media (max-width: 768px) {
  .hero {
    padding: 40px 20px 28px;
  }

  .hero-links {
    gap: 10px;
    margin-bottom: 0;
  }

  .nav-button {
    min-height: 42px;
    padding: 12px 18px;
    font-size: 14px;
  }

  .intro-text {
    margin-top: 24px;
    font-size: 14px;
  }

  .feature-section {
    padding: 56px 20px;
  }

  .section-title {
    margin-bottom: 24px;
    line-height: 1.25;
  }

  .section-description {
    margin-bottom: 30px;
    font-size: 14px;
  }

  .carousel-sidebar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-category {
    flex: 0 0 190px;
    padding: 10px;
    border: 1px solid #eee;
    background: #fff;
  }

  .chart-container {
    padding: 20px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .method-intro {
    grid-template-columns: 1fr;
  }

  .baseline-list {
    grid-template-columns: 1fr;
  }

  .baseline-list div {
    padding: 0;
  }

  .baseline-list div + div {
    padding-top: 10px;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .metric-guide {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 0;
  }

  .metric-guide article,
  .metric-guide article + article,
  .metric-guide article:nth-child(even) {
    padding: 0;
    border-left: 0;
  }

  .metric-note {
    margin-bottom: 34px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .visual-comparison-row,
  .wam-flow,
  .training-step-row {
    grid-template-columns: 1fr;
  }

  .flow-column {
    min-height: 0;
  }

  .flow-arrow {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-authors {
    font-size: 14px;
    gap: 3px 12px;
  }

  .hero-affiliations {
    font-size: 12px;
  }

  .hero-links {
    width: 100%;
  }

  .nav-button {
    flex: 1 1 120px;
  }

  .feature-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .chart-container,
  .table-scroll {
    padding: 16px;
  }

  .citation-panel {
    padding: 18px;
  }

  .method-figure {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .method-figure img {
    width: 680px;
    max-width: none;
  }
}