/* Brief black interlude; all motion is opacity-only and independent of the site. */
#site-intro {
  display: none;
  place-items: center;
  overflow: hidden;
  background: #000;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

html.site-intro-active #site-intro {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  width: 100%;
  height: 100%;
  height: 100dvh;
  transition: opacity 360ms ease, visibility 0s linear 360ms;
}

html.site-intro-active #site-intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#site-intro img {
  display: block;
  width: min(360px, 78vw, 64svh);
  height: auto;
  max-height: 78svh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

html.site-intro-active body > :not(#site-intro) {
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.site-intro-active #site-intro {
    transition-duration: 160ms, 0s;
    transition-delay: 0s, 160ms;
  }

  #site-intro img {
    display: none;
  }
}