.mobile-intro {
  display: none;
}

@media (max-width: 620px) {
  .mobile-intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #05020a;
    opacity: 1;
  }

  .mobile-intro video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #05020a;
    filter: brightness(1);
    opacity: 1;
    transition: filter 850ms ease, opacity 850ms ease;
  }

  .mobile-intro.is-ending {
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease;
  }

  .mobile-intro.is-ending video {
    filter: brightness(0.08);
    opacity: 0;
  }

  .modal.mobile-intro-reveal {
    z-index: 10001;
    animation: mobile-intro-light 1100ms ease-out both;
  }

  .modal.mobile-intro-reveal .modal-card {
    animation: mobile-intro-card-light 950ms ease-out both;
  }

  @keyframes mobile-intro-light {
    0% {
      opacity: 0;
      background: rgba(0, 0, 0, 0.99);
    }

    24% {
      opacity: 1;
      background: rgba(0, 0, 0, 0.97);
    }

    100% {
      opacity: 1;
      background: rgba(2, 2, 8, 0.84);
    }
  }

  @keyframes mobile-intro-card-light {
    0% {
      opacity: 0;
      filter: brightness(0.12);
      transform: scale(0.985);
    }

    100% {
      opacity: 1;
      filter: brightness(1);
      transform: scale(1);
    }
  }
}

@media (max-width: 620px) and (prefers-reduced-motion: reduce) {
  .mobile-intro.is-ending,
  .mobile-intro video {
    transition-duration: 1ms;
  }

  .modal.mobile-intro-reveal,
  .modal.mobile-intro-reveal .modal-card {
    animation-duration: 1ms;
  }
}