:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --paper: #ffffff;
  --ink: #17201b;
  --muted: #5f6f66;
  --line: #d9e1dc;
  --soft: #eaf1ee;
  --accent: #286f68;
  --accent-dark: #174b48;
  --accent-light: #dcefeb;
  --shadow: 0 18px 48px rgba(26, 45, 38, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 225, 220, 0.85);
  background: rgba(246, 248, 247, 0.88);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.brand {
  min-width: auto;
  min-height: 22px;
  border-radius: 6px;
  background: transparent;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 58px 0 24px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  min-height: clamp(44px, 7vw, 76px);
  margin: 0 auto;
  border-radius: 8px;
  font-size: clamp(44px, 6.8vw, 76px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

h1:empty {
  width: min(680px, 100%);
  background: linear-gradient(90deg, var(--soft), #fff, var(--soft));
}

.subtitle {
  width: min(980px, 100%);
  min-height: 88px;
  margin: 20px auto 16px;
  border-radius: 8px;
  color: #314039;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 650;
  line-height: 1.2;
}

.hero-teaser {
  width: min(960px, 100%);
  margin: 28px auto 0;
  padding: 34px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}

.hero-teaser img {
  display: block;
  width: 100%;
}

.subtitle:empty,
.authors:empty,
.affiliations:empty,
.notes:empty,
.abstract-text:empty,
.section-heading h2:empty,
.section-heading p:empty,
.card-title span:empty,
.card-title strong:empty,
.method-title h3:empty,
.method-grid p:empty,
.metric-value:empty,
.metric-label:empty,
.table-title:empty,
.table-note:empty,
.footer p:empty {
  display: block;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--soft), #fff, var(--soft));
}

.authors {
  min-height: 26px;
  margin: 18px auto 6px;
  font-size: 14px;
  font-weight: 700;
}

.authors:empty {
  width: min(520px, 100%);
}

.affiliations,
.notes {
  width: min(900px, 100%);
  min-height: 20px;
  margin: 4px auto;
  color: var(--muted);
  font-size: 14px;
}

.affiliations:empty {
  width: min(760px, 100%);
}

.notes:empty {
  width: min(360px, 100%);
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(26, 45, 38, 0.05);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.button svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button svg.logo-fill,
.button svg.quote-icon {
  fill: currentColor;
  stroke: none;
}

.button-mark {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border-radius: 3px;
  background: #b21f2d;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.button.primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.button.disabled {
  color: #89968f;
  background: #edf1ef;
  box-shadow: none;
}

.hero-qa {
  width: min(980px, 100%);
  margin: 28px auto 0;
  padding: 22px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(26, 45, 38, 0.075);
}

.hero-eyebrow {
  margin: 0 0 20px;
  text-align: left;
}

.hero-question {
  margin: 0;
}

.hero-question {
  color: var(--accent-dark);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 700;
  line-height: 1.28;
}

.section {
  margin: 34px 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.video-first {
  margin-top: 12px;
}

.section-heading {
  width: min(850px, 100%);
  margin-bottom: 22px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sound-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sound-note::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--accent);
}

h2 {
  min-height: 46px;
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading h2:empty {
  width: min(640px, 100%);
}

.section-heading p:not(.eyebrow) {
  min-height: 25px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.section-heading p:not(.eyebrow):empty {
  width: min(760px, 100%);
}

.section-heading .speed-note {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  min-width: 140px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--accent-dark);
  background: var(--accent-light);
  font-size: 13px;
  font-weight: 850;
}

.section-label-row .eyebrow,
.section-heading .sound-note {
  margin: 0;
}

.collapsible-heading {
  width: 100%;
}

.visualization-toggle svg {
  transition: transform 160ms ease;
}

.collapsible-section.is-expanded .visualization-toggle svg {
  transform: rotate(180deg);
}

.collapsible-content {
  margin-top: 18px;
}

.video-frame,
.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101412;
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%) 0 0 / 28px 28px,
    #111;
  object-fit: contain;
}

.hero-video video {
  max-height: 72vh;
}

.real-world-teaser {
  margin-bottom: 0;
}

.real-world-diversity {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  margin-bottom: 28px;
}

.diversity-title {
  margin: 0;
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 850;
}

.native-video-frame {
  border: 0;
  border-radius: 0;
  background: #fff;
}

.native-video-frame video {
  aspect-ratio: 1480 / 720;
  background: #fff;
  object-fit: contain;
}

.real-world-note {
  width: min(920px, 100%);
  margin: 6px auto 0;
  color: #26342e;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.55;
  text-align: center;
}

.real-world-note strong {
  color: var(--accent-dark);
  font-weight: 850;
}

.teaser-note {
  margin-bottom: 28px;
}

.grasp-gallery {
  display: grid;
  gap: 14px;
}

.gallery-controls {
  display: grid;
  gap: 10px;
}

.selector-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.selector-label {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.object-tabs,
.mode-tabs {
  display: grid;
  gap: 6px;
}

.object-tabs {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.mode-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-tab {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #a9cbc4;
  border-radius: 7px;
  color: var(--accent-dark);
  background: #fff;
  box-shadow: 0 4px 12px rgba(26, 45, 38, 0.05);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.gallery-tab:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
}

.gallery-tab.active {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(40, 111, 104, 0.18);
}

.object-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  padding: 6px 8px;
  line-height: 1.2;
  text-align: center;
}

.object-tab span {
  overflow-wrap: break-word;
}

.object-tab small {
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.72;
}

.gallery-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.gallery-object,
.gallery-meta,
.gallery-mode {
  margin: 0;
}

.gallery-object {
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.gallery-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.gallery-mode {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 850;
}

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

.pose-card video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pose-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(40, 111, 104, 0.08) 25%, transparent 25%) 0 0 / 28px 28px,
    #f8fbfa;
  font-size: 15px;
  font-weight: 800;
}

.gallery-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #a9b8b1;
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbfa;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.overview-figure {
  margin: 24px 0 0;
}

.overview-figure img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.overview-note {
  width: min(960px, 100%);
  margin: 22px auto 0;
  color: #26342e;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.55;
  text-align: center;
}

.overview-note strong {
  color: var(--accent-dark);
  font-weight: 850;
}

.overview-copy {
  width: min(980px, 100%);
  margin: 0 auto;
  color: #26342e;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.58;
}

.overview-copy p {
  margin: 0;
}

.overview-copy p + p {
  margin-top: 14px;
}

.overview-copy strong {
  color: var(--accent-dark);
  font-weight: 850;
}

.overview-benefit-intro {
  width: min(920px, 100%);
  margin: 22px auto 0;
  color: #26342e;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.5;
  text-align: center;
}

.overview-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 20px;
}

.overview-benefit {
  min-height: 168px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.overview-benefit-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.overview-benefit span {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
}

.overview-benefit h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
}

.overview-benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.overview-equation {
  width: 100%;
  margin: 18px auto;
  padding: 0;
  overflow-x: auto;
  color: var(--ink);
  text-align: center;
}

.overview-equation mjx-container[jax="SVG"][display="true"] {
  margin: 0 auto;
}

.synthesis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.synthesis-figure {
  margin: 0;
}

.synthesis-figure figcaption {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 850;
}

.synthesis-figure img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.synthesis-note {
  width: min(920px, 100%);
  margin: 22px auto 0;
  color: #26342e;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.55;
  text-align: center;
}

.synthesis-note strong {
  color: var(--accent-dark);
  font-weight: 850;
}

.result-figure-stack {
  display: grid;
  gap: 26px;
}

.result-figure {
  margin: 0;
}

.result-figure img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.result-figure figcaption {
  width: min(940px, 100%);
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 550;
  line-height: 1.5;
  text-align: center;
}

.result-figure figcaption strong {
  color: var(--accent-dark);
  font-weight: 850;
}

.result-figure .dataset-stat-caption {
  width: min(920px, 100%);
  margin-top: 22px;
  color: #26342e;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.55;
}

.result-copy {
  width: 100%;
  margin: 16px 0 0;
  color: #26342e;
  font-size: 17px;
  line-height: 1.62;
  text-align: left;
}

.result-copy p {
  margin: 0;
}

.result-copy p + p {
  margin-top: 12px;
}

.visualization-item {
  margin: 0;
}

.visualization-item + .visualization-item {
  margin-top: 34px;
}

.visualization-item figcaption {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 850;
}

.visualization-image {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.visualization-image-narrow {
  width: 60%;
  margin-inline: auto;
}

.visualization-image-medium {
  width: 80%;
  margin-inline: auto;
}

.visualization-item p {
  width: min(920px, 100%);
  margin: 18px auto 0;
  color: #26342e;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.58;
  text-align: center;
}

.visualization-item strong {
  color: var(--accent-dark);
  font-weight: 850;
}

.related-work-list {
  display: grid;
  gap: 16px;
}

.related-work-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.related-work-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.related-work-item h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1.3;
}

.related-work-website {
  min-height: 30px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent-dark);
  background: #fff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.related-work-website.pending {
  color: #89968f;
  background: #edf1ef;
}

.related-work-item p {
  margin: 0;
  color: #26342e;
  font-size: 16px;
  line-height: 1.62;
}

.abstract-text {
  min-height: 150px;
  width: calc(100% - 42px);
  margin: 0;
  color: #26342e;
  font-size: 17px;
  text-wrap: pretty;
}

.hugs-letter {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.metric {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.metric-value {
  min-height: 31px;
  color: var(--accent-dark);
  font-size: 31px;
  font-weight: 850;
  line-height: 1;
}

.metric-label {
  min-height: 20px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hugs-highlight-row {
  align-items: stretch;
}

.hugs-card {
  display: flex;
  flex-direction: column;
}

.hugs-card .metric-value {
  font-size: 40px;
  font-weight: 900;
}

.hugs-card .metric-label {
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 850;
}

.hugs-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.abstract-teaser {
  margin-top: 24px;
}

.video-card {
  background: #fff;
}

.card-title {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.card-title span:empty {
  width: 90px;
  min-height: 18px;
}

.card-title strong {
  color: var(--ink);
  font-size: 16px;
}

.card-title strong:empty {
  width: 170px;
  min-height: 19px;
}

.figure-block {
  margin: 0;
}

.image-slot {
  width: 100%;
  min-height: 360px;
  border: 1px dashed #a9b8b1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(40, 111, 104, 0.08) 25%, transparent 25%) 0 0 / 28px 28px,
    #fff;
}

.table-card {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-title {
  min-height: 46px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  font-weight: 850;
}

.table-note {
  min-height: 42px;
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  height: 38px;
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

th {
  background: #f8fbfa;
  font-weight: 850;
}

.ours-row {
  background: var(--accent-light);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.method-grid > div {
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.method-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.method-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8ddd8;
  border-radius: 8px;
  color: var(--accent-dark);
  background: #fff;
}

.method-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

h3 {
  margin: 0;
  font-size: 18px;
}

.method-title h3:empty {
  width: 160px;
  min-height: 24px;
}

.method-grid p {
  min-height: 64px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.bibtex {
  min-height: 130px;
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #e7f2ed;
  background: #101412;
  font-size: 13px;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 44px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.footer p {
  min-height: 20px;
  margin: 0 auto;
}

.footer p:empty {
  width: 220px;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
    gap: 8px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 36px;
  }

  .metric-row,
  .method-grid,
  .overview-benefits,
  .pose-grid,
  .synthesis-grid {
    grid-template-columns: 1fr;
  }

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

  .mode-tabs {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 20px;
  }

  .card-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-current {
    align-items: flex-start;
    flex-direction: column;
  }

  .collapsible-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .related-work-title-row {
    flex-direction: column;
    gap: 10px;
  }

  .visualization-image-narrow {
    width: 100%;
  }

  .visualization-image-medium {
    width: 100%;
  }

  .image-slot {
    min-height: 220px;
  }

  .hero-teaser {
    padding: 24px 14px 16px;
  }

  .hero-qa {
    padding: 16px;
  }
}
