.brand-intro[hidden], .intro-replay[hidden] { display: none !important; }
.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 9;
  color: var(--ink);
  pointer-events: none;
  user-select: none;
}
.intro-lockup {
  position: absolute;
  aspect-ratio: 4 / 1;
  transform-origin: left top;
}
.intro-house, .intro-wordmark, .intro-outline, .intro-beam {
  position: absolute;
  top: 0;
  bottom: 0;
}
.intro-house { left: 0; width: 21.875%; }
.intro-outline, .intro-beam { inset-inline: 0; }
.intro-outline, .intro-beam, .intro-wordmark { display: block; }
.intro-wordmark { right: 0; width: 70%; }
.intro-lockup svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.intro-seen .hero-statement { animation: none; }
.intro-replay {
  padding: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .intro-replay:hover { text-decoration: underline; text-underline-offset: .2em; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Reserve and paint the large mark during parsing, including a slow script download. */
  [data-intro-pending] .hero-statement { animation: none; }
  [data-intro-pending] .header .brand-mark,
  [data-intro-pending] .hero .geography { opacity: 0; }
  [data-intro-pending] #hero-title { position: relative; color: transparent; }
  [data-intro-pending] #hero-title::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("assets/esteam-ink.svg") left center / min(94%, 260vh) auto no-repeat;
    pointer-events: none;
  }
  /* Only the moving duplicate is visible until it reaches the real header mark. */
  [data-intro-phase] .header .brand-mark { opacity: 0; }
  [data-intro-phase="logo"] #hero-title,
  [data-intro-phase="logo"] .hero .geography { opacity: 0; pointer-events: none; }
  [data-intro-glint] .intro-beam {
    animation: intro-beam 1s var(--ease-out) both;
  }
  [data-intro-phase="handoff"] .intro-lockup {
    transform: translate(var(--dock-x), var(--dock-y)) scale(var(--dock-scale));
    transition: transform var(--intro-travel) ease-in-out;
  }
  [data-intro-phase="handoff"] #hero-title {
    animation: intro-copy 470ms var(--ease-out) 820ms both;
  }
  [data-intro-phase="handoff"] .hero .geography {
    animation: intro-copy 360ms var(--ease-out) 930ms both;
  }
  @keyframes intro-beam {
    0%, 100% { color: var(--ink); }
    44% { color: var(--accent); }
  }
  @keyframes intro-copy {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}
