:root {
  --fg: #18181b;
  --fg-soft: #52525b;
  --fg-muted: #71717a;
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --border: #e7e7eb;
  --accent: #4f5bd5;
  --accent-soft: #eef0fc;
  --nav-bg: rgb(255 255 255 / 0.82);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 18px 40px -18px rgb(24 24 40 / 0.28);
  --radius: 14px;
  --w-text: 800px;
  --w-wide: 1000px;
  --w-hero: 1200px;
}

/* Dark: follows the system unless the nav button picked a theme (data-theme on <html>) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fg: #f4f4f5;
    --fg-soft: #b4b4bb;
    --fg-muted: #8b8b94;
    --bg: #111113;
    --bg-soft: #18181b;
    --border: #26262b;
    --accent: #9aa3ff;
    --accent-soft: #23253b;
    --nav-bg: rgb(17 17 19 / 0.82);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -18px rgb(0 0 0 / 0.7);
  }
}

:root[data-theme="dark"] {
  --fg: #f4f4f5;
  --fg-soft: #b4b4bb;
  --fg-muted: #8b8b94;
  --bg: #111113;
  --bg-soft: #18181b;
  --border: #26262b;
  --accent: #9aa3ff;
  --accent-soft: #23253b;
  --nav-bg: rgb(17 17 19 / 0.82);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -18px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-color: currentColor;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.name {
  font-weight: 700;
}

/* Layout */
.wrap,
.wrap-wide {
  margin: 0 auto;
  padding: 0 24px;
}

.wrap {
  max-width: calc(var(--w-text) + 48px);
}

.wrap-wide {
  max-width: calc(var(--w-wide) + 48px);
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--w-hero) + 48px);
  height: 56px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--fg-soft);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

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

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -10px;
  padding: 0;
  color: var(--fg-soft);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  color: var(--fg);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the icon shows the theme a click switches to */
.theme-toggle .icon-sun,
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
}

/* Hero */
.hero {
  padding: 128px 0 72px;
  text-align: center;
}

.venue {
  display: inline-block;
  margin: 0 0 22px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.title {
  margin: 0 0 26px;
}

.title-name {
  display: block;
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.title-sub {
  display: block;
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--fg-soft);
  text-wrap: balance;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 600;
}

.authors a {
  text-decoration-color: transparent;
}

.authors a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.affil {
  margin: 0 0 28px;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  border-color: var(--fg-muted);
  transform: translateY(-1px);
}

.btn-primary {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.btn-primary:hover {
  border-color: var(--fg);
}

.btn.is-disabled {
  color: var(--fg-muted);
  cursor: default;
}

.btn.is-disabled:hover {
  border-color: var(--border);
  transform: none;
}

.btn small {
  font-size: 0.74rem;
  font-weight: 600;
}

.teaser {
  max-width: max(1080px, calc(var(--w-wide) + 48px));
  margin: 0 auto;
  padding: 0 24px;
}

.teaser video,
.player-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.teaser video {
  outline: 1px solid var(--border);
  outline-offset: -1px;
}

.tldr {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 0 24px;
  color: var(--fg-soft);
  font-size: 1.12rem;
  line-height: 1.6;
}

.tldr-label {
  margin-right: 6px;
  color: var(--fg);
  font-weight: 800;
}

/* Sections */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 22px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section p {
  margin: 0 0 16px;
}

.lead {
  color: var(--fg-soft);
}


/* Video player */
.player {
  margin-top: 28px;
}

.player-stage {
  overflow: hidden;
}

.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* in-the-wild demo: 1920x960 renders (author 10/17, 16:8) */
.player--wide .player-stage,
.player--wide .tab img {
  aspect-ratio: 2 / 1;
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.player-tabs {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 4px;
  margin: -4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.player-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  flex: 0 0 132px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  opacity: 0.6;
  outline: 1px solid var(--border);
  outline-offset: -1px;
  transition: opacity 0.15s ease, outline-color 0.15s ease;
}

.tab img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
}

.tab span {
  position: absolute;
  left: 7px;
  bottom: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgb(24 24 27 / 0.72);
  color: #fff;
  font: 700 0.68rem/1.6 "Manrope", sans-serif;
}

.tab:hover {
  opacity: 0.85;
}

.tab.is-active {
  opacity: 1;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  color: var(--fg-soft);
  font-size: 0.9rem;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
}

/* Figures */
.figure {
  margin: 28px 0 40px;
}

.figure a {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.figure img {
  width: 100%;
}

.figure figcaption {
  margin-top: 12px;
  color: var(--fg-muted);
  font-size: 0.86rem;
  text-align: center;
}

.method-block + .method-block {
  margin-top: 28px;
}

/* BibTeX */
.bibtex-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.bibtex-head .section-title {
  margin: 0;
}

.bibtex pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font: 0.8rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg-soft);
  font: 600 0.8rem "Manrope", sans-serif;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--fg);
}

/* Footer */
.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.85rem;
}

.footer .wrap-wide {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--fg);
}

/* Variant: dark hero */
.hero-dark .hero {
  background:
    radial-gradient(900px 420px at 50% -6%, rgb(99 102 241 / 0.28), transparent 70%),
    #0d0d12;
  color: #f4f4f5;
  --fg: #f4f4f5;
  --fg-soft: #b9b9c2;
  --fg-muted: #8e8e99;
  --bg: #0d0d12;
  --border: #2a2a33;
  --accent: #a5adff;
  --accent-soft: rgb(129 140 248 / 0.16);
  border-bottom: 0;
}

.hero-dark .hero + .section {
  border-top: 0;
}

.hero-dark .nav:not(.is-scrolled) {
  background: transparent;
  color: #f4f4f5;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero-dark .nav:not(.is-scrolled) .nav-links a {
  color: #b9b9c2;
}

.hero-dark .nav:not(.is-scrolled) .nav-links a:hover {
  color: #fff;
}

.hero-dark .nav:not(.is-scrolled) .theme-toggle {
  color: #b9b9c2;
  border-color: rgb(255 255 255 / 0.18);
}

.hero-dark .nav:not(.is-scrolled) .theme-toggle:hover {
  color: #fff;
}

@media (max-width: 720px) {
  html {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 0 56px;
  }

  .title-name {
    font-size: 3rem;
  }

  .title-sub {
    font-size: 1.15rem;
  }

  .authors {
    gap: 2px 16px;
    font-size: 1rem;
  }

  .links {
    margin-bottom: 40px;
  }

  .teaser {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .wrap,
  .wrap-wide,
  .tldr {
    padding: 0 16px;
  }

  .player-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .tab {
    flex-basis: 112px;
  }

  .figure a {
    padding: 10px;
  }

}

/* 3D hero */
.hero3d {
  position: relative;
  height: min(100svh, 1000px);
  min-height: 640px;
  padding: 0;
  overflow: hidden;
  background: #0b0b10;
  color: #f4f4f5;
  text-align: left;
  --fg: #f4f4f5;
  --fg-soft: #b9b9c2;
  --fg-muted: #8e8e99;
  --bg: #0b0b10;
  --border: #2a2a33;
  --accent: #a5adff;
  --accent-soft: rgb(129 140 248 / 0.16);
  --input: #3ee08f;
}

.hero3d + .section {
  border-top: 0;
}

.hero3d-stage {
  position: absolute;
  inset: 0;
}

.hero3d-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.hero3d-stage canvas:active {
  cursor: grabbing;
}

.hero3d-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(11 11 16 / 0.92) 0%, rgb(11 11 16 / 0.55) 34%, rgb(11 11 16 / 0) 56%),
    linear-gradient(180deg, rgb(11 11 16 / 0.8) 0%, rgb(11 11 16 / 0) 14%),
    linear-gradient(0deg, rgb(11 11 16 / 0.85) 0%, rgb(11 11 16 / 0) 22%);
  pointer-events: none;
}

.hero3d-copy {
  position: relative;
  z-index: 2;
  max-width: calc(var(--w-hero) + 48px);
  margin: 0 auto;
  padding: 150px 24px 0;
  pointer-events: none;
}

.hero3d-copy > * {
  max-width: 30rem;
}

.hero3d-copy a,
.hero3d-copy .btn {
  pointer-events: auto;
}

.hero3d .title-name {
  font-size: 4.6rem;
}

.hero3d .title-sub {
  margin: 12px 0 0;
  font-size: 1.4rem;
  text-wrap: balance;
}

.hero3d .authors,
.hero3d .links {
  justify-content: flex-start;
}

.hero3d .links {
  max-width: 24rem; /* two rows, Paper · arXiv · Code / OmniEgoDB · BibTeX (author 10/18 "데스크탑도 두줄") */
  margin-bottom: 0;
}

.hero3d .btn {
  background: rgb(255 255 255 / 0.04);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero3d .btn-primary {
  background: var(--fg);
}

.hero3d-status {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
  transform: translate(10%, -50%);
  pointer-events: none;
}

.hero3d-hud,
.hero3d-legend {
  position: absolute;
  bottom: 26px;
  z-index: 3;
  display: flex;
  font-size: 0.82rem;
}

.hero3d-hud {
  left: max(24px, calc((100% - var(--w-hero)) / 2));
  flex-direction: column;
  gap: 12px;
  width: min(28rem, calc(100% - 48px)); /* in rem so the four device buttons stay on one line as the text grows */
}

.hud-devices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hud-devices button {
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  color: var(--fg-soft);
  font: 600 0.8rem "Manrope", sans-serif;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.hud-devices button:hover {
  color: var(--fg);
}

.hud-devices button.is-active {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.is-loading .hud-devices button.is-active {
  opacity: 0.6;
}

.hud-player {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-play {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.04);
  cursor: pointer;
}

.hud-play span,
.hud-play span::after {
  position: absolute;
  top: 10px;
  left: 11px;
  width: 3px;
  height: 11px;
  border-radius: 1px;
  background: var(--fg);
  content: "";
}

.hud-play span::after {
  top: 0;
  left: 6px;
}

.hud-play.is-paused span {
  left: 12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--fg);
  border-radius: 0;
  background: none;
}

.hud-play.is-paused span::after {
  display: none;
}

.hud-scrub {
  flex: 1;
  min-width: 0;
  accent-color: var(--accent);
}

.hud-time {
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

.hero3d-legend {
  right: max(24px, calc((100% - var(--w-wide)) / 2));
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  color: var(--fg-soft);
}

.hero3d-legend label,
.hero3d-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero3d-legend label {
  cursor: pointer;
}

.hero3d-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.hero3d-hint kbd {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  color: var(--fg-soft);
}

.hero3d-legend input {
  margin: 0;
  accent-color: #ffcf5c;
}

.swatch {
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 2px;
}

.swatch-body {
  background: #8ea6ea;
}

.swatch-gt {
  background: #ffcf5c;
}

.hand i {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font: 800 0.56rem/1 "Manrope", sans-serif;
  font-style: normal;
  opacity: 0.4;
}

.hand.is-on {
  color: var(--fg);
}

.hand.is-on i {
  border-color: var(--input);
  color: var(--input);
  box-shadow: 0 0 0 3px rgb(62 224 143 / 0.2);
  opacity: 1;
}

.swatch-input {
  background: var(--input);
}

.legend-head {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legend-head:not(:first-child) {
  margin-top: 8px;
}

.legend-head span {
  margin-left: 4px;
  color: var(--fg-muted);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.legend-input {
  color: var(--input);
}

/* "Input" pill on the video */
.input-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--input);
  color: #052414;
  font: 800 0.66rem/1.4 "Manrope", sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 0 0 4px rgb(62 224 143 / 0.18);
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.no-webgl .hero3d-stage {
  background: url("../images/posters/hero.jpg") center / cover;
  opacity: 0.35;
}

.no-webgl .hero3d-hud,
.no-webgl .hero3d-legend,
.no-webgl .hero3d-status {
  display: none;
}

.section-overview {
  padding-top: 64px;
}

@media (max-width: 860px) {
  .hero3d {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
    min-height: 0;
  }

  .hero3d-stage {
    position: relative;
    inset: auto;
    height: 92svh; /* taller than before (72svh) so the person has its own band below the input video and legend */
    min-height: 620px;
  }

  .hero3d-stage::before {
    background:
      linear-gradient(180deg, rgb(11 11 16 / 1) 0%, rgb(11 11 16 / 0) 18%),
      linear-gradient(0deg, rgb(11 11 16 / 0.9) 0%, rgb(11 11 16 / 0) 34%);
  }

  .hero3d-copy {
    padding: 100px 16px 8px;
    text-align: center;
  }

  .hero3d-copy > * {
    max-width: none;
  }

  .hero3d .title-name {
    font-size: 3rem;
  }

  .hero3d .title-sub {
    margin: 12px auto 0;
    font-size: 1.12rem;
  }

  .hero3d .authors,
  .hero3d .links {
    justify-content: center;
  }

  .hero3d .links {
    margin-inline: auto;
  }

  .hero3d-status {
    transform: translate(-50%, -50%);
  }

  .hero3d-hud {
    left: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
  }

  .hero3d-legend {
    top: 18px;
    right: 16px;
    bottom: auto;
    gap: 5px;
    font-size: 0.74rem;
  }
}

/* 3D hero: input video and legend on the right */
.hero3d-side {
  position: absolute;
  top: 50%;
  right: max(24px, calc((100% - var(--w-hero)) / 2));
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 280px;
  transform: translateY(-42%);
}

.hero3d-video {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(62 224 143 / 0.55);
  border-radius: 12px;
  background: #000;
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.8);
}

.hero3d-video video {
  display: block;
  width: 100%;
  height: auto;
  /* square inputs (Aria RGB) at the wide side-panel widths pushed the legend out of the hero */
  max-height: clamp(150px, calc(min(100svh, 1000px) - 30rem), 24rem);
  object-fit: contain;
  background: #000;
}

.hero3d-video figcaption {
  padding: 7px 11px;
  border-top: 1px solid var(--border);
  background: rgb(255 255 255 / 0.04);
  color: var(--fg-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.hero3d-novideo {
  display: none;
  margin: 0;
  padding: 44px 14px 16px;
  color: var(--fg-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.no-video video {
  display: none;
}

.no-video .hero3d-novideo {
  display: block;
}

.hero3d-side .hero3d-legend {
  position: static;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgb(11 11 16 / 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@media (max-width: 1140px) {
  .hero3d-side {
    width: 220px;
  }
}

@media (max-width: 860px) {
  .hero3d-side {
    top: 14px;
    right: 16px;
    left: 16px;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: auto;
    transform: none;
  }

  .hero3d-video {
    width: 40%;
  }

  .hero3d-side .hero3d-legend {
    align-items: flex-end;
    gap: 4px;
    font-size: 0.72rem;
  }
}

.section-overview .tldr {
  max-width: calc(var(--w-hero) + 48px); /* two lines on desktop */
  margin: 30px auto 0;
  text-align: center;
  text-wrap: balance;
}

/* Wide screens: media and the hero use more of the width; body text keeps --w-text (line length) */
@media (min-width: 1760px) {
  html {
    font-size: 20px;
  }
  :root {
    --w-text: 880px;
    --w-wide: 1400px;
    --w-hero: 1560px;
  }
  .hero3d {
    height: min(100svh, 1120px);
  }
  .hero3d-side {
    width: 400px;
  }
  .hero3d-video figcaption,
  .hero3d-side .hero3d-legend {
    font-size: 0.8rem;
  }
}

@media (min-width: 2240px) {
  html {
    font-size: 22px;
  }
  :root {
    --w-text: 960px;
    --w-wide: 1680px;
    --w-hero: 1840px;
  }
  .hero3d {
    height: min(100svh, 1240px);
  }
  .hero3d-side {
    width: 520px;
  }
  .hero3d-video figcaption,
  .hero3d-side .hero3d-legend {
    font-size: 0.82rem;
  }
}

/* 3D hero: which OmniEgoDB recording is playing (top of the right column) */
.hero3d-source {
  align-self: flex-start;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgb(11 11 16 / 0.62);
  color: var(--fg-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  pointer-events: auto;
}

.hero3d-source b {
  color: var(--fg);
  font-weight: 800;
}

.hero3d-source:hover {
  border-color: var(--accent);
}

@media (min-width: 1760px) {
  .hero3d-source {
    font-size: 0.9rem;
  }
}

@media (max-width: 860px) {
  .hero3d-source {
    display: none;
  }
}

/* narrow phones: the four device buttons on one line */
@media (max-width: 480px) {
  .hud-devices {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .hud-devices button {
    padding-inline: 8px;
    font-size: 0.74rem;
    white-space: nowrap;
  }
}

/* Hugging Face mark on the OmniEgoDB button (emoji; same box as the SVG icons) */
.icon-hf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05em;
  line-height: 1;
}
