#frontier-intro[hidden] {
  display: none !important;
}
#frontier-intro {
  position: absolute;
  z-index: 5;
  left: 8%;
  top: 19%;
  width: min(22rem, 30vw);
  pointer-events: none;
  color: var(--es-ink);
}
.frontier-word {
  font: var(--es-display-weight) clamp(2.8rem, 5vw, 5.5rem) / 1
    var(--es-font-display);
  letter-spacing: -0.055em;
  margin: 0;
}
.frontier-line {
  font: var(--es-text-small) / 1.5 var(--es-font-data);
  letter-spacing: 0.08em;
  color: var(--es-muted);
  margin: 1rem 0 0;
}
body.is-guided-intro #overview,
body.is-guided-intro #telemetry,
body.is-guided-intro .telemetry-layer,
body.is-guided-intro .es-telemetry,
body.is-guided-intro .brand-subtitle {
  visibility: hidden !important;
  pointer-events: none;
}
@media (max-width: 700px) {
  #frontier-intro {
    left: 5%;
    top: 12%;
    width: 90%;
  }
  .frontier-word {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }
  .frontier-line {
    font-size: var(--es-text-small);
  }
}
@media (prefers-reduced-motion: reduce) {
  .frontier-word {
    opacity: 1 !important;
  }
}
/* The narrated room line, captioned above the portal (WCAG 1.2.1), clear of
   the bottom-left copy column: scene status, hint, and the ⓘ footnote that
   opens 30rem wide from the footer's 4.5% inset. */
.room-caption {
  position: fixed;
  z-index: 7;
  left: 50%;
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4rem);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(40rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.5rem 0.9rem;
  border-radius: var(--es-radius-m);
  background: var(--es-panel);
  color: var(--es-ink);
  font: var(--es-text-small) / 1.5 var(--es-font-body);
  text-align: center;
  pointer-events: none;
}
.room-caption-attribution {
  display: block;
  color: var(--es-muted);
}
/* Wide screens, and short ones that hide the status and hint: a lane right of
   that column, up to the footer's right inset, centred when the page allows. */
@media (min-width: 1024px), (min-width: 701px) and (max-height: 540px) {
  .room-caption {
    left: max(calc(4.5% + 31rem), calc(50% - 20rem));
    transform: none;
    max-width: min(40rem, calc(91% - 31rem));
  }
}
/* Taller narrow screens have no lane: the caption rises above the column
   (status and hint end 7.3rem plus two lines up) and the open footnote. */
@media (max-width: 1023px) and (min-height: 541px) {
  .room-caption {
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 10.5rem);
  }
}
