html.titan-intro-active {
  overflow: hidden;
}

.titan-intro-active:not(.titan-intro-fading) body > :not(#titan-intro) {
  visibility: hidden;
}

#titan-intro:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

#titan-intro:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

#titan-intro img {
  display: block;
  width: 100vw;
  height: auto;
  max-height: 88vh;
  max-height: 88dvh;
  object-fit: contain;
}

.titan-intro-fading #titan-intro {
  animation: titan-intro-fade 1.5s ease-in-out forwards;
}

@keyframes titan-intro-fade {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .titan-intro-fading #titan-intro {
    animation-duration: 1ms;
  }
}
