/* A shorter opening and direct, full-frame research demonstrations. */
.ego-story { margin-top: 44px; }
.ego-chapter { padding-block: 38px 48px; border-top: 1px solid var(--line); }
.ego-chapter-heading { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 36px; }
.ego-chapter-number { color: var(--blue); background: var(--blue-soft); border-radius: 8px; padding: 8px 12px; font-size: 14px; font-weight: 600; flex: none; margin-top: 6px; }
body .ego-chapter h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; }
.ego-chapter-heading p { max-width: 780px; margin-top: 14px; font-size: 16px; line-height: 1.75; }
.ego-story figure { margin: 0; min-width: 0; }
.ego-story img { display: block; }
.ego-protocol-layout { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(220px, 1fr); gap: 44px; align-items: center; }
.ego-protocol-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 36px; }
.ego-protocol-steps li > span { display: block; color: var(--blue); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
body .ego-story h4 { font-size: 20px; line-height: 1.35; }
.ego-protocol-steps p { margin-top: 8px; font-size: 15px; line-height: 1.7; }
.ego-scaling-panels { display: grid; gap: 44px; }
.ego-figure-heading { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; margin-bottom: 24px; }
.ego-figure-heading > span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.ego-takeaway { margin-top: 28px; }
.ego-takeaway strong { color: var(--ink); font-size: clamp(21px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.ego-takeaway p { font-size: 13px; color: var(--muted); margin-top: 9px; line-height: 1.7; }
.ego-diversity-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); align-items: start; gap: 36px; }
.ego-diversity-layout h4 { margin-bottom: 24px; }
.ego-table-scroll { overflow-x: auto; }
.ego-corpus-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.ego-corpus-table caption { caption-side: bottom; text-align: left; color: var(--muted); padding-top: 12px; line-height: 1.6; }
.ego-corpus-table th, .ego-corpus-table td { padding: 9px 6px; text-align: right; white-space: nowrap; }
.ego-corpus-table th:first-child { text-align: left; }
.ego-corpus-table th { color: var(--ink); font-weight: 500; }
.ego-corpus-table thead, .ego-corpus-table tbody { border-bottom: 1px solid var(--line); }
.ego-corpus-table thead { border-top: 1px solid var(--line); }
.ego-table-note { font-size: 12px; line-height: 1.7; margin-top: 12px; }
.ego-efficiency figure { padding-block: 16px 24px; }
@media (max-width: 1000px) {
  .ego-protocol-layout, .ego-diversity-layout { grid-template-columns: 1fr; gap: 28px; }
  .ego-protocol-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .ego-corpus-table { font-size: 14px; }
}
@media (max-width: 600px) {
  .ego-story { margin-top: 28px; }
  .ego-chapter { padding-block: 28px 34px; }
  .ego-chapter-heading { gap: 12px; margin-bottom: 28px; }
  .ego-chapter-number { font-size: 12px; padding: 6px 9px; }
  .ego-chapter-heading p { font-size: 14px; }
  .ego-protocol-steps { grid-template-columns: 1fr; gap: 20px; }
  .ego-protocol-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 8px; }
  .ego-protocol-steps li > span { grid-row: span 2; padding-top: 4px; }
  .ego-protocol-steps p { grid-column: 2; margin: 0; font-size: 13px; }
  body .ego-story h4 { font-size: 18px; }
  .ego-figure-heading { flex-direction: column; gap: 6px; margin-bottom: 16px; }
  .ego-corpus-table { font-size: 11px; }
  .ego-corpus-table th, .ego-corpus-table td { padding: 8px 5px; }
}
body .hero { padding-top: 42px; padding-bottom: 28px; }
body .hero h1 { font-size: clamp(52px, 6.6vw, 88px); }
body .hero h1 .paper-subtitle { font-size: clamp(28px, 3vw, 40px); margin-top: 24px; max-width: 1160px; line-height: 1.25; }
body .hero .paper-info { margin-top: 30px; }
body .hero .authors { font-size: 14px; line-height: 1.65; }
body .hero .author-note { margin-top: 8px; }
body .institution-logos { gap: 26px; margin: 18px auto 0; }
body .institution-logos img { height: 40px; max-width: 140px; object-fit: contain; }
body .institution-logos .logo-pku { height: 40px; max-width: 150px; }
body .research-links { gap: 8px; margin-top: 20px; }
body .research-link { min-height: 40px; padding: 8px 14px; }
body .research-link.intro-link { background: var(--ink); border-color: var(--ink); color: white; cursor: pointer; }
body .hero .research-links-status { margin-top: 8px; }
.hero-demo { display: grid; grid-template-columns: .72fr 32px 2fr; gap: 20px; align-items: center; margin: 30px auto 0; text-align: left; }
.hero-demo figure { min-width: 0; margin: 0; }
.hero-demo img, .hero-demo video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; border-radius: 8px; background: #edf1f5; }
.hero-goal img { border: 1px solid var(--line); }
.hero-demo img { height: auto; }
.hero-demo-arrow { color: var(--orange); text-align: center; font-size: 26px; }
.hero-demo figcaption { margin-top: 9px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hero-demo figcaption span { color: var(--muted); }
body .hero-metrics { margin-top: 28px; }
body .section:not(.benchmark-section) { padding-top: 72px; padding-bottom: 72px; }
body .section:not(.benchmark-section) .section-heading { margin-bottom: 30px; }
body .scaling-heading { align-items: center; }
body .scaling-heading .mini-stat { border: 0; padding: 0; margin: 0; white-space: nowrap; }
body .scaling-heading .mini-stat strong { font-size: 27px; }
body .scaling-heading .mini-stat small { font-size: 14px; font-weight: 400; }
body .goal-design-steps { margin: 0 0 24px; }
body .goal-design-steps > div { padding: 22px; display: flex; align-items: center; }
body .goal-design-steps strong { margin: 0; }
.research-details { border-block: 1px solid var(--line); margin: 22px 0; padding: 0; text-align: left; }
.research-details summary { cursor: pointer; padding: 16px 0; font-size: 15px; font-weight: 600; color: var(--blue); }
.research-details summary > span { font-size: 13px; margin-left: 12px; color: var(--muted); font-weight: 400; }
.research-details > p { padding: 0 0 18px; max-width: 820px; font-size: 14px; line-height: 1.7; }
.research-details #action-space-explainer { padding-bottom: 24px; }
body .method-section .architecture-section { padding-top: 12px; }
/* The full-width section background leaves the same gutters as its neighbours. */
body .method-section { background: #f7f9fb; border: 0; }
body .method-section .goal-design-steps > div { border: 0; background: #fff; padding: 24px 28px; }
body .method-section .research-details { border-color: #e2e7ed; }
body .benchmark-scope { line-height: 1.8; }
body .long-camera-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; background: transparent; border: 0; border-radius: 0; }
.long-camera { margin: 0; min-width: 0; }
.long-camera > figcaption { margin: 0 0 12px; color: var(--blue); font-size: 13px; font-weight: 600; text-align: left; }
body .long-camera-pair video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
@media (max-width: 700px) { body .long-camera-pair { grid-template-columns: 1fr; gap: 24px; } }
body .architecture-section .architecture-intro { margin-bottom: 20px; }
body .real-results { margin-bottom: 36px; }
body .zero-gallery-heading { align-items: center; }
body #zero-gallery-summary { text-align: left; margin-top: 8px; }
body #zero-motion { flex: none; }
body .zero-card-media > .zero-card-preview { opacity: 1; }
body .zero-card-play { width: 30px; height: 30px; font-size: 17px; bottom: 9px; right: 9px; }
body .zero-card-copy { padding-top: 10px; }
body .zero-card-title { font-size: 16px; }
body .demo-toolbar { margin-bottom: 16px; }
body .pair-controls { margin-top: 0; margin-bottom: 18px; }
body .goal-case .goal-input { min-height: 0; grid-template-columns: 112px 1fr; column-gap: 16px; padding: 0 0 16px; }
body .goal-thumbnail { width: 112px; }
body .goal-thumbnail img { height: 76px; }
body .goal-input-copy .case-label { font-size: 11px; }
body .goal-input-copy h4 { font-size: 18px; margin-top: 4px; }
body .goal-case video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #0d1722; }
body .goal-output-label { padding-top: 9px; letter-spacing: 0; }
body .comparison-note { margin-top: 16px; }
body .legacy-camera-views { margin-bottom: 0; }
body .legacy-camera-views > .zero-camera-pair { padding-bottom: 20px; }
.intro-dialog { width: min(1120px, 94vw); max-width: 94vw; max-height: 92dvh; margin: auto; padding: 0; border: 0; border-radius: 12px; background: #fff; overflow: auto; }
.intro-dialog::backdrop { background: rgb(15 27 41 / 75%); backdrop-filter: blur(4px); }
.intro-dialog video { display: block; width: 100%; max-height: 76dvh; background: #0d1722; }
.intro-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; font-size: 14px; }
.intro-toolbar button { min-height: 44px; border: 0; background: transparent; color: var(--blue); font: inherit; cursor: pointer; }
body.intro-open { overflow: hidden; }
@media (max-width: 900px) {
  body .hero .authors { font-size: 13px; }
  .hero-demo { grid-template-columns: .8fr 22px 1.8fr; gap: 12px; }
  body .scaling-heading .mini-stat strong { font-size: 23px; }
}
@media (max-width: 600px) {
  body .hero { padding-top: 28px; }
  body .hero h1 { font-size: clamp(31px, 8.4vw, 48px); }
  body .hero h1 .paper-subtitle { font-size: clamp(23px, 5.8vw, 28px); line-height: 1.3; margin-top: 20px; }
  body .hero .authors { font-size: 12px; line-height: 1.65; }
  body .hero .paper-info { margin-top: 18px; }
  body .institution-logos { gap: 14px; margin-top: 14px; flex-wrap: wrap; }
  body .institution-logos img { height: 28px; max-width: 66px; }
  body .institution-logos .logo-pku { height: 28px; max-width: 94px; }
  body .research-links { display: flex; gap: 6px; margin-top: 16px; }
  body .research-link { font-size: 12px; padding: 8px 10px; min-height: 40px; gap: 6px; }
  body .research-link:last-child { min-width: 0; }
  .hero-demo { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .hero-goal { display: flex; align-items: center; gap: 12px; }
  .hero-goal img { width: 108px; }
  .hero-goal figcaption { margin: 0; }
  .hero-demo-arrow { display: none; }
  .hero-demo figcaption { font-size: 11px; }
  body .section:not(.benchmark-section) { padding-top: 48px; padding-bottom: 48px; }
  body .scaling-heading .mini-stat { margin-top: 8px; }
  body .goal-design-steps { grid-template-columns: 1fr; }
  body .goal-design-steps > div { padding: 16px; }
  body .goal-design-steps strong { font-size: 18px; }
  body .zero-gallery-heading { flex-direction: row; align-items: flex-start; gap: 12px; }
  body .zero-gallery-heading h3 { font-size: 23px; }
  body #zero-motion { font-size: 12px; padding: 9px 11px; }
  body #zero-gallery-summary { font-size: 12px; }
  body .goal-case .goal-input { grid-template-columns: 94px 1fr; gap: 12px; }
  body .goal-thumbnail { width: 94px; }
  body .goal-thumbnail img { height: 66px; }
  body .goal-input-copy h4 { font-size: 17px; }
  .intro-toolbar { padding: 8px 14px; }
}

.long-timeline { display: flex; align-items: center; gap: 16px; margin: 16px 0 20px; }
.long-timeline input { flex: 1; min-width: 0; accent-color: var(--blue); cursor: pointer; }
.long-timeline output { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
