:root {
  --paper: #ffffff;
  --paper-deep: #f3f6f5;
  --ink: #18231f;
  --muted: #53605a;
  --quiet: #74807a;
  --hairline: rgba(24, 35, 31, 0.12);
  --hairline-strong: rgba(24, 35, 31, 0.18);
  --value-green: #2f6f62;
  --accent-blue: #4f7fa7;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(24, 35, 31, 0.08);
  --soft-shadow: 0 12px 32px rgba(24, 35, 31, 0.055);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(24, 35, 31, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 35, 31, 0.024) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-wrap: pretty;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.side-nav a,
.eyebrow,
.section-kicker,
.resource-link span,
.metric,
.method-copy span,
.stat-grid span,
.site-footer,
.task-label,
.switcher-tabs button {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.lab-logo-link {
  display: flex;
  min-width: 0;
  align-items: center;
  border-radius: 6px;
  text-decoration: none;
}

.header-logo-group {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1.4vw, 16px);
}

.lab-logo-link:hover,
.lab-logo-link:focus-visible {
  outline: 2px solid rgba(47, 111, 98, 0.38);
  outline-offset: 4px;
}

.lab-logo {
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.gewu-logo {
  width: clamp(158px, 16vw, 220px);
  max-height: 56px;
}

.logo-separator {
  color: var(--quiet);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1;
}

.xhumanoid-logo {
  width: clamp(148px, 14vw, 210px);
  max-height: 34px;
}

.brand {
  min-height: 44px;
  display: flex;
  align-items: center;
  flex: 0 1 360px;
  max-width: min(36vw, 380px);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.project-logo {
  width: 100%;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.side-nav {
  position: fixed;
  right: auto;
  left: 22px;
  top: 50%;
  z-index: 30;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.side-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: var(--soft-shadow);
}

.side-nav a:hover,
.side-nav a:focus-visible {
  border-color: rgba(57, 114, 100, 0.42);
  color: var(--value-green);
  outline: none;
}

.section-shell {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0;
}

.hero {
  padding-top: clamp(72px, 10vw, 132px);
}

.eyebrow,
.section-kicker {
  color: var(--value-green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 1220px;
  margin-top: 16px;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.05;
}

h2 {
  max-width: 900px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.06;
}

h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.paper-meta {
  max-width: 1220px;
  margin: 30px auto 0;
  text-align: center;
}

.authors {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 750;
  line-height: 1.32;
}

.author-break {
  display: block;
}

.author-second-line {
  display: inline-block;
}

.authors a {
  color: inherit;
  text-decoration: none;
}

.authors a:hover,
.authors a:focus-visible {
  color: var(--value-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  outline: none;
}

.authors sup,
.affiliations sup {
  font-size: 0.68em;
  line-height: 0;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 18px;
  max-width: 1080px;
  margin: 12px auto 0;
  padding: 0;
  color: var(--ink);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.3;
  list-style: none;
}

.affiliations li {
  margin: 0;
}

.contribution-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin: 8px 0 0;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(22px, 4vw, 58px);
  align-items: end;
  margin-top: 28px;
}

.hero-copy {
  max-width: 940px;
  margin: 0;
  font-size: clamp(15px, 1.4vw, 17px);
}

.hero-note {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.hero-note span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  color: var(--muted);
  font-size: 14px;
}

.hero-note span::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-blue);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.resource-link {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.resource-link:hover,
.resource-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(57, 114, 100, 0.42);
  background: var(--white);
  outline: none;
}

.disabled-link strong {
  color: var(--quiet);
}

.resource-link span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.resource-link strong {
  font-size: 16px;
}

.video-placeholder {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--hairline-strong);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(47, 111, 98, 0.12), rgba(79, 127, 167, 0.11)),
    var(--paper-deep);
  text-align: center;
}

.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(32, 40, 33, 0.22);
  border-radius: 7px;
}

.video-placeholder strong {
  position: relative;
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.video-placeholder p {
  position: relative;
  margin: 8px 0 0;
}

.video-placeholder.has-video {
  display: block;
  padding: 0;
  background: #000;
}

.video-placeholder.has-video::before {
  display: none;
}

.video-placeholder video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #000;
  border: 0;
}

.video-annotation {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 12px;
  pointer-events: none;
}

.video-marker,
.video-note {
  width: fit-content;
  max-width: min(82%, 380px);
  border-radius: 6px;
  color: var(--white);
  text-align: left;
}

.video-marker {
  padding: 7px 11px 8px;
  background: rgba(79, 127, 167, 0.9);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
}

.video-note {
  justify-self: end;
  padding: 7px 10px 8px;
  background: rgba(32, 40, 33, 0.62);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.hero-video {
  min-height: clamp(320px, 48vw, 640px);
  margin-top: 34px;
  box-shadow: var(--shadow);
}

.youtube-video {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  border-radius: 9px;
  background: #000;
}

.youtube-video.hero-video {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.youtube-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.task-video {
  min-height: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.portrait-video {
  width: min(100%, 320px);
  aspect-ratio: var(--video-aspect, 368 / 640);
  justify-self: center;
}

.portrait-video.has-video video {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: var(--video-aspect, 368 / 640);
  object-fit: contain;
  background: #000;
}

.small-demo {
  min-height: 220px;
}

.play-mark {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 10px 26px rgba(32, 40, 33, 0.18);
}

.play-mark::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 560px);
  gap: clamp(24px, 4vw, 58px);
  align-items: end;
  margin-top: 12px;
  margin-bottom: 28px;
}

.section-heading p {
  margin: 0;
}

.task-heading {
  grid-template-columns: 1fr;
}

.task-heading h2 {
  max-width: none;
}

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

.task-showcase,
.figure-panel,
.stat-grid div,
.result-copy,
.recovery-band {
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: var(--white);
}

.task-showcase {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--soft-shadow);
}

.task-copy-stack {
  display: grid;
  gap: 12px;
}

.task-copy {
  max-width: 600px;
  padding: 0;
}

.task-selector-card {
  appearance: none;
  width: 100%;
  min-height: 190px;
  padding: 18px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.task-selector-card:hover,
.task-selector-card:focus-visible {
  border-color: rgba(57, 114, 100, 0.28);
  outline: none;
}

.task-selector-card.is-active {
  border-color: rgba(57, 114, 100, 0.38);
  border-left-color: var(--value-green);
  background: rgba(57, 114, 100, 0.07);
}

.task-selector-card.is-inactive {
  opacity: 0.42;
  filter: blur(0.5px) grayscale(0.35);
}

.task-copy p {
  margin-bottom: 14px;
}

.task-copy h3 {
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.08;
}

.task-label {
  margin: 0 0 10px;
  color: var(--value-green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.metric {
  color: var(--accent-blue);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.task-video-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  align-items: start;
}

.task-video-panel {
  display: grid;
  justify-items: center;
  border-radius: 8px;
  cursor: pointer;
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.task-video-panel:focus-visible {
  outline: 2px solid rgba(57, 114, 100, 0.5);
  outline-offset: 5px;
}

.task-video-panel.is-active {
  opacity: 1;
  filter: none;
  transform: translateY(-2px);
}

.task-video-panel.is-inactive {
  opacity: 0.36;
  filter: blur(1px) grayscale(0.4);
  transform: scale(0.985);
}

.task-video-panel.is-inactive:hover {
  opacity: 0.62;
  filter: blur(0.25px) grayscale(0.2);
}

.task-video-panel.is-inactive video {
  pointer-events: none;
}

.figure-panel {
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.figure-panel img {
  display: block;
  width: 100%;
  background: white;
}

.figure-panel figcaption {
  padding: 13px 16px 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pipeline-panel img {
  padding: 12px;
}

.method-video-stack {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.method-module {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.45fr);
  gap: 28px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.method-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
}

.method-copy span {
  display: block;
  margin-bottom: 14px;
  color: var(--value-green);
  font-size: 12px;
  font-weight: 800;
}

.method-copy p {
  margin-bottom: 0;
}

.video-switcher {
  display: grid;
  gap: 12px;
}

.single-method-video {
  display: grid;
  justify-items: center;
}

.switcher-tabs {
  order: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.switcher-tabs button {
  width: 8px;
  height: 8px;
  min-height: 8px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(32, 40, 33, 0.24);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.switcher-tabs button:hover,
.switcher-tabs button:focus-visible {
  background: var(--muted);
  outline: none;
}

.switcher-tabs button.is-active {
  width: 34px;
  background: var(--ink);
  outline: none;
}

.switcher-stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
}

.switcher-panel {
  position: relative;
  grid-area: 1 / 1;
  width: min(74%, 720px);
  visibility: hidden;
  opacity: 0;
  transform: scale(0.84);
  transform-origin: center;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  pointer-events: none;
  z-index: 0;
}

.switcher-panel.is-active {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 3;
}

.switcher-panel.is-prev,
.switcher-panel.is-next {
  visibility: visible;
  opacity: 0.34;
  pointer-events: none;
  z-index: 1;
}

.switcher-panel.is-prev {
  transform: translateX(-88%) scale(0.76) rotate(-1.5deg);
}

.switcher-panel.is-next {
  transform: translateX(88%) scale(0.76) rotate(1.5deg);
}

.method-video {
  width: 100%;
  min-height: 0;
  aspect-ratio: var(--video-aspect, 1008 / 586);
  border: 0;
  border-radius: 9px;
  box-shadow: 0 22px 54px rgba(32, 40, 33, 0.16);
}

.method-video-direct {
  width: min(74%, 720px);
}

.switcher-panel.is-prev .method-video,
.switcher-panel.is-next .method-video {
  box-shadow: none;
}

.method-video::before {
  display: none;
}

.method-video .play-mark {
  margin-top: 22px;
}

.method-video.has-video .play-mark,
.method-video.has-video > div:not(.video-annotation) {
  display: none;
}

.method-video strong {
  position: absolute;
  top: -1px;
  left: -1px;
  max-width: calc(100% - 32px);
  padding: 8px 14px 9px;
  border-bottom-right-radius: 7px;
  background: var(--accent-blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 650;
  text-align: left;
}

.method-video p {
  position: absolute;
  right: 18px;
  bottom: 16px;
  margin: 0;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(32, 40, 33, 0.5);
  color: var(--white);
  font-size: 13px;
}

.secondary-demos {
  align-content: stretch;
}

.detailed-demo-gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 0.78fr) minmax(250px, 0.92fr);
  grid-template-areas:
    "main main portrait"
    "chip-a chip-b portrait";
  gap: 14px;
  align-items: center;
}

.demo-card {
  min-width: 0;
  margin: 0;
}

.demo-card-main {
  grid-area: main;
}

.demo-card:nth-of-type(2) {
  grid-area: chip-a;
}

.demo-card:nth-of-type(3) {
  grid-area: chip-b;
}

.demo-card-portrait {
  grid-area: portrait;
  justify-self: center;
  width: min(100%, 310px);
}

.demo-video {
  min-height: 0;
  aspect-ratio: var(--video-aspect, 16 / 9);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.portrait-demo-video {
  aspect-ratio: var(--video-aspect, 9 / 16);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-grid div {
  padding: 18px;
}

.stat-grid strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.stat-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.result-copy {
  padding: 24px;
}

.result-copy ul {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.evidence-grid {
  margin-top: 18px;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  align-items: start;
}

.compact {
  box-shadow: var(--soft-shadow);
}

.compact img {
  min-height: 180px;
  object-fit: contain;
  padding: 12px;
}

.recovery-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.6fr);
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
}

.recovery-band p:last-child {
  margin-bottom: 0;
}

.condition-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.condition-copy {
  min-width: 0;
}

.condition-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: clamp(15px, 1.18vw, 17px);
  line-height: 1.68;
}

.condition-copy p:last-of-type {
  margin-bottom: 20px;
}

.condition-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.condition-points span {
  padding: 8px 10px;
  border: 1px solid rgba(47, 111, 98, 0.24);
  border-radius: 7px;
  background: rgba(47, 111, 98, 0.07);
  color: var(--value-green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.condition-figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

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

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

.bibtex {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.55;
}

.copy-button {
  min-height: 46px;
  margin-top: 14px;
  padding: 0 18px;
  border: 1px solid rgba(32, 40, 33, 0.2);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 750;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: var(--value-green);
  outline: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 44px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer a {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--value-green);
  outline: none;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 921px) {
  .section-shell,
  .site-footer {
    width: min(var(--max-width), calc(100% - 172px));
    margin-left: max(126px, calc((100% - var(--max-width)) / 2));
    margin-right: auto;
  }

  .hero > h1,
  .hero > .paper-meta {
    width: min(1220px, calc(100vw - 172px));
    max-width: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .side-nav {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    transform: none;
  }

  .side-nav a {
    min-height: 44px;
    padding: 0 6px;
    font-size: 10px;
  }

  .section-shell {
    width: min(100% - 28px, var(--max-width));
  }

  .hero-grid,
  .resource-grid,
  .demo-grid,
  .evidence-grid,
  .detailed-demo-gallery,
  .method-module,
  .stat-grid,
  .result-layout,
  .condition-panel,
  .section-heading,
  .recovery-band {
    grid-template-columns: 1fr;
  }

  .detailed-demo-gallery {
    grid-template-areas:
      "main"
      "chip-a"
      "chip-b"
      "portrait";
  }

  .demo-card-portrait {
    width: min(100%, 320px);
  }

  h1 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .author-second-line {
    display: inline;
  }

  .hero-video {
    min-height: 280px;
  }

  .youtube-video.hero-video {
    min-height: 0;
  }

  .video-placeholder {
    min-height: 230px;
  }

  .task-video {
    min-height: 0;
  }

  .task-showcase {
    grid-template-columns: 1fr;
  }

  .task-selector-card {
    min-height: auto;
    padding: 16px;
  }

  .task-video-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portrait-video {
    width: min(100%, 320px);
    justify-self: center;
  }

  .switcher-tabs {
    grid-template-columns: none;
  }

  .method-module {
    gap: 16px;
  }

  .switcher-stage {
    min-height: 0;
  }

  .switcher-panel {
    width: 82%;
  }

  .method-video-direct {
    width: 82%;
  }

  .switcher-panel.is-prev {
    transform: translateX(-80%) scale(0.72) rotate(-1deg);
  }

  .switcher-panel.is-next {
    transform: translateX(80%) scale(0.72) rotate(1deg);
  }

  .site-footer {
    padding-bottom: 78px;
  }
}

@media (max-width: 520px) {
  .section-shell {
    width: min(100% - 22px, var(--max-width));
  }

  .site-header {
    min-height: 74px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-logo-group {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .gewu-logo {
    width: clamp(118px, 34vw, 148px);
    max-height: 44px;
  }

  .logo-separator {
    font-size: 18px;
  }

  .xhumanoid-logo {
    width: clamp(116px, 33vw, 144px);
    max-height: 28px;
  }

  .brand {
    flex-basis: 210px;
    max-width: 68vw;
    min-height: 38px;
  }

  .project-logo {
    max-height: 34px;
  }

  .side-nav {
    gap: 4px;
  }

  .side-nav a {
    min-width: 0;
    padding: 0 2px;
    overflow: hidden;
    font-size: 9px;
    letter-spacing: 0.03em;
  }

  .authors {
    font-size: 12px;
    line-height: 1.28;
    overflow-wrap: break-word;
  }

  .affiliations {
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: break-word;
  }

  .contribution-note {
    font-size: 10px;
  }

  .resource-link,
  .copy-button {
    min-height: 48px;
  }

  .video-placeholder {
    padding: 22px;
  }

  .video-placeholder::before {
    inset: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
