:root {
  --paper: #fafbfa;
  --surface: #ffffff;
  --surface-muted: #f2f5f4;
  --surface-tint: #faf4f5;
  --ink: #18201e;
  --ink-soft: #56615e;
  --line: #d8dfdc;
  --line-strong: #b9c4c0;
  --accent: #a51c30;
  --accent-dark: #7f1425;
  --teal: #146c65;
  --teal-soft: #e2efec;
  --real: #187653;
  --fake: #c02b42;
  --dark: #171d1c;
  --dark-soft: #252d2b;
  --dark-line: #3b4643;
  --max-width: 1120px;
  --wide-width: 1280px;
  --header-height: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
audio,
video {
  font: inherit;
}

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

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--surface);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-width,
.page-wide {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.page-wide {
  width: min(calc(100% - 48px), var(--wide-width));
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(23, 32, 30, 0.13);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--wide-width));
  height: 100%;
  margin-inline: auto;
  gap: 30px;
}

.wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
}

.wordmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  gap: 2px;
  border: 1px solid var(--ink);
  border-radius: 4px;
}

.wordmark-mark i {
  display: block;
  width: 2px;
  background: var(--accent);
}

.wordmark-mark i:nth-child(1),
.wordmark-mark i:nth-child(5) {
  height: 6px;
}

.wordmark-mark i:nth-child(2),
.wordmark-mark i:nth-child(4) {
  height: 13px;
}

.wordmark-mark i:nth-child(3) {
  height: 18px;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 620;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.hero {
  overflow: hidden;
  padding: 42px 0 20px;
  background: var(--surface);
}

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

.section-index {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1040px;
  margin: 0 auto 15px;
  color: var(--ink);
  font-family: Charter, Cambria, Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 650;
  line-height: 1.08;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lede {
  max-width: 800px;
  margin: 17px auto 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.hero-media {
  width: min(calc(100% - 48px), 760px);
  margin-top: 26px;
}

.hero-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #29312f;
  border-radius: 4px;
  background: #111615;
  box-shadow: 0 14px 34px rgba(22, 30, 28, 0.13);
}

.hero-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-label {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
  background: rgba(18, 23, 22, 0.86);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f14f62;
  box-shadow: 0 0 0 4px rgba(241, 79, 98, 0.17);
}

.hero-media figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  text-align: center;
}

.section-band {
  padding: 88px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.section-band-muted {
  background: var(--surface-muted);
}

.section-band-tint {
  background: var(--surface-tint);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading-wide {
  max-width: 900px;
}

.section-heading h2 {
  margin: 9px 0 14px;
  color: inherit;
  font-family: Charter, Cambria, Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 650;
  line-height: 1.18;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.abstract-section {
  background: var(--surface-muted);
}

.abstract-copy {
  max-width: 860px;
  margin-inline: auto;
}

.abstract-copy p {
  margin: 0 0 17px;
  color: #35413d;
  font-family: Charter, Cambria, Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.78;
}

.abstract-copy p:last-child {
  margin-bottom: 0;
}

.method-figure {
  margin: 44px 0 0;
}

.method-image-link {
  display: block;
  position: relative;
  cursor: zoom-in;
}

.method-image-link img {
  width: 100%;
  height: auto;
}

.method-figure > figcaption {
  max-width: 820px;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.demo-console {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(24, 34, 31, 0.06);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}

.console-header h3 {
  margin: 3px 0 0;
  font-family: Charter, Cambria, Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.3;
}

.console-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 720;
  line-height: 1.4;
  text-transform: uppercase;
}

.console-count {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 680;
}

.console-controls {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.7fr) minmax(0, 1.5fr);
  gap: 18px;
  padding: 17px 22px 19px;
  border-bottom: 1px solid var(--line);
  background: #f7f9f8;
}

.models-controls {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.8fr) minmax(0, 0.7fr);
}

.platform-controls {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.7fr);
}

.console-controls fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.console-controls legend {
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 680;
  line-height: 1.3;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

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

.model-control {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.platform-control {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segmented-control button {
  min-width: 0;
  min-height: 30px;
  padding: 5px 8px;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 630;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segmented-control button:hover {
  color: var(--ink);
}

.segmented-control button[aria-pressed="true"] {
  background: var(--accent);
  color: #ffffff;
}

.segmented-control button:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid rgba(23, 111, 104, 0.28);
  outline-offset: 2px;
}

.media-stage {
  position: relative;
  background: #101513;
}

.media-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f1413;
  object-fit: contain;
}

.media-status {
  min-height: 31px;
  padding: 7px 13px;
  border-top: 1px solid var(--line);
  background: #f7f9f8;
  color: #68736f;
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.audio-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.audio-track {
  min-width: 0;
  padding: 18px 22px 20px;
}

.audio-track + .audio-track {
  border-left: 1px solid var(--line);
}

.audio-track-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.audio-track-label strong,
.audio-track-label small {
  display: block;
}

.audio-track-label strong {
  font-size: 13px;
  line-height: 1.35;
}

.audio-track-label small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.35;
}

.track-index {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--teal);
  border-radius: 3px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.track-index.cloned {
  border-color: var(--accent);
  color: var(--accent);
}

.audio-track audio {
  display: block;
  width: 100%;
  height: 40px;
}

.console-note {
  margin: 0;
  padding: 13px 22px 15px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

.label-legend {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding: 12px 24px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

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

.label-swatch {
  width: 18px;
  height: 5px;
  border-radius: 1px;
}

.label-swatch.real {
  background: var(--real);
}

.label-swatch.fake {
  background: var(--fake);
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-wordmark {
  color: var(--ink);
}

.footer-wordmark .wordmark-mark {
  border-color: var(--line-strong);
}

.footer-inner p {
  margin: 0;
  color: #7a8581;
  font-size: 12px;
  text-align: right;
}

@media (max-width: 920px) {
  .section-band {
    padding: 76px 0;
  }

  .console-controls,
  .models-controls,
  .platform-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .console-controls fieldset:last-child,
  .models-controls fieldset:first-child,
  .platform-controls fieldset:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .models-controls fieldset:first-child,
  .platform-controls fieldset:first-child {
    grid-row: 1;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 58px;
  }

  .page-width,
  .page-wide {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    width: calc(100% - 24px);
    gap: 18px;
  }

  .wordmark {
    font-size: 14px;
  }

  .wordmark-mark {
    width: 24px;
    height: 24px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 19px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .hero {
    padding: 35px 0 22px;
  }

  .hero h1 {
    margin-top: 11px;
    font-size: 38px;
    line-height: 1.12;
  }

  .paper-authors {
    flex-direction: column;
    gap: 3px;
    margin-top: 15px;
  }

  .paper-authors span::before {
    display: none;
  }

  .hero-lede {
    margin-top: 14px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 17px;
  }

  .hero-media {
    width: min(calc(100% - 28px), 640px);
    margin-top: 23px;
  }

  .hero-video-label {
    top: 8px;
    left: 8px;
    padding: 6px 8px;
    font-size: 9px;
  }

  .hero-media figcaption {
    font-size: 10px;
  }

  .section-band {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .section-heading > p:last-child {
    font-size: 15px;
  }

  .abstract-copy p {
    font-size: 16px;
    line-height: 1.72;
  }

  .method-figure > figcaption {
    margin-top: 18px;
    text-align: left;
  }

  .console-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 80px;
    padding: 17px 16px;
    gap: 8px;
  }

  .console-header h3 {
    font-size: 16px;
  }

  .console-controls,
  .models-controls,
  .platform-controls {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .console-controls fieldset:last-child,
  .models-controls fieldset:first-child,
  .platform-controls fieldset:first-child {
    grid-column: auto;
  }

  .model-control {
    grid-template-columns: repeat(5, minmax(64px, 1fr));
    overflow-x: auto;
  }

  .audio-comparison {
    grid-template-columns: 1fr;
  }

  .audio-track {
    padding: 17px 16px 19px;
  }

  .audio-track + .audio-track {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .console-note,
  .label-legend {
    padding-inline: 16px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner p {
    text-align: left;
  }
}

@media (max-width: 440px) {
  .wordmark > span:last-child {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    font-size: 11px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero {
    padding: 24px 0 10px;
  }

  .hero-lede {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-actions {
    max-width: 362px;
    margin-top: 14px;
    margin-inline: auto;
  }

  .button {
    width: 100%;
    min-height: 36px;
  }

  .hero-media {
    width: min(calc(100% - 64px), 326px);
    margin-top: 16px;
  }

  .abstract-section {
    padding-top: 48px;
  }

  .horizon-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 3px;
  }

  .model-control {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 3px;
    overflow: visible;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
