:root {
  color-scheme: light;
  --ink: #363636;
  --muted: #5a5a5a;
  --line: #ececec;
  --soft: #f5f5f5;
  --paper: #ffffff;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Google Sans", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}

.container.is-max-desktop {
  max-width: var(--max-width) !important;
}

.project-hero .hero-body {
  padding-top: 4.25rem;
  padding-bottom: 3.75rem;
}

.publication-title {
  max-width: 980px;
  margin: 0 auto 1rem;
  color: var(--ink);
  font-size: 3rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.publication-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 600;
}

.section {
  padding: 3.5rem 1.5rem;
}

.section.is-light {
  background: var(--soft);
}

.title.is-3 {
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.abstract-copy {
  color: #363636;
  font-size: 1.08rem;
  line-height: 1.72;
}

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

.overview-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.framework-figure {
  width: min(980px, 100%);
  margin: 2rem auto 0;
}

.framework-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.framework-figure figcaption {
  margin-top: 1rem;
  color: #666666;
  font-size: 1rem;
}

.demo-section {
  background: var(--paper);
}

.listening-guide .hero-body {
  padding-top: 3rem;
  padding-bottom: 2.25rem;
}

.listening-guidelines {
  display: inline-block;
  max-width: 940px;
  margin: 0;
  padding-left: 1.5em;
  color: var(--ink);
  font-size: 1.25rem;
  text-align: left;
  list-style: disc;
}

.toggle-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 0;
}

.toggle-btn {
  min-width: 210px;
  padding: 13px 30px;
  border: 2px solid #6a6a6a;
  border-radius: 999px;
  color: #4a4a4a;
  background: #ffffff;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.toggle-btn:hover,
.toggle-btn:focus-visible {
  border-color: #5d5d5d;
  color: #3f3f3f;
  background: #f5f5f5;
  outline: none;
}

.toggle-btn.active {
  border-color: #000000;
  color: #ffffff;
  background: #000000;
}

.dataset-section[hidden] {
  display: none !important;
}

.dataset-heading {
  margin-bottom: 1.75rem;
}

.dataset-heading .title {
  margin-bottom: 0.5rem;
}

.section-note {
  max-width: 900px;
  margin: 0.375rem auto 0;
  color: #666666;
  font-size: 1rem;
  line-height: 1.45;
  text-align: center;
}

.more-demos {
  margin: 0.75rem 0 0;
  color: #5a5a5a;
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
}

.interactive-scene {
  padding: 2.25rem 0 2.5rem;
}

#section-stairs26 .interactive-scene {
  width: min(960px, 100%);
  margin-inline: auto;
}

.scene-heading {
  margin-bottom: 1.2rem;
}

.scene-heading h4 {
  margin: 0;
  color: #5a5a5a;
  font-size: 1.25rem;
  font-weight: 500;
}

.scene-source-count {
  margin-left: 0.25em;
  white-space: nowrap;
}

.scene-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

.media-panel,
.query-panel {
  min-width: 0;
  background: transparent;
}

.media-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
}

.media-label {
  min-height: 2.8rem;
  margin: 0;
  padding: 0.75rem 0.9rem 0.7rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.player-frame {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  border: 0;
  background: #000000;
}

.flat-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.flat-player {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #000000;
}

.flat-player-controls {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 10px;
  pointer-events: none;
}

.flat-player-button {
  padding: 8px 14px;
  border: 2px solid rgb(255 255 255 / 78%);
  border-radius: 8px;
  color: #ffffff;
  background: rgb(0 0 0 / 58%);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  backdrop-filter: blur(2px);
}

.flat-player-button:active {
  transform: translateY(1px);
}

.flat-player-fullscreen {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 38px;
  padding: 0;
  place-items: center;
  font-size: 19px;
}

.flat-player:fullscreen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.query-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
}

.query-label {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.query-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.query-tab {
  min-height: 2.5rem;
  padding: 0.5rem 0.8rem;
  border: 2px solid #6a6a6a;
  border-radius: 999px;
  color: #4a4a4a;
  background: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.query-tab:hover,
.query-tab:focus-visible {
  border-color: #000000;
  color: #000000;
  background: #f5f5f5;
  outline: none;
}

.query-tab[aria-selected="true"] {
  border-color: #000000;
  color: #ffffff;
  background: #000000;
}

@media (min-width: 769px) {
  .scene-controls {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  #section-stairs26 .scene-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .query-panel {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
  }

  .query-label {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
  }

  .query-tabs {
    flex-flow: row wrap;
    align-items: center;
  }
}

.scene-outputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.scene-outputs--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scene-output {
  overflow: hidden;
}

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

.demo-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 5px 18px rgb(47 47 47 / 6%);
}

.demo-item-heading {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.85rem 1rem 0.8rem;
}

.demo-item-heading span {
  color: #4a4a4a;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.demo-item-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.demo-item .player-frame {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  border: 0;
  background: #000000;
}

.demo-sequence {
  min-height: 3.3rem;
  margin: 0;
  padding: 0.8rem 1rem 0.9rem;
  color: #666666;
  font-size: 0.88rem;
  line-height: 1.45;
}

.footer {
  padding: 2rem 1.5rem;
  background: #fafafa;
}

.footer-copy {
  color: #666666;
  font-size: 0.9rem;
}

.footer-copy a {
  color: #3273dc;
}

.footer-copy a:hover,
.footer-copy a:focus {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .project-hero .hero-body {
    padding-top: 3rem;
    padding-bottom: 2.75rem;
  }

  .publication-title {
    font-size: 2.15rem;
  }

  .publication-subtitle {
    font-size: 1.05rem;
  }

  .section {
    padding: 2.75rem 1.25rem;
  }

  .abstract-copy {
    font-size: 1rem;
    text-align: left !important;
  }

  .framework-figure {
    margin-top: 1.5rem;
  }

  .framework-figure figcaption {
    font-size: 0.92rem;
  }

  .listening-guidelines {
    font-size: 1rem;
  }

  .toggle-wrap {
    gap: 10px;
  }

  .toggle-btn {
    width: 100%;
  }

  .scene-controls,
  .scene-outputs {
    grid-template-columns: 1fr;
  }

  .query-panel {
    padding: 1rem;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-sequence {
    min-height: 0;
  }
}
