.atlas-intro {
  --intro-opening-trim: 40ms;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: #000;
  animation: atlas-intro-reveal 1.04s linear calc(-1 * var(--intro-opening-trim)) both;
}

.atlas-intro > * { grid-area: 1 / 1; }

.atlas-intro-mark {
  position: relative;
  width: min(195px, 44vw);
  aspect-ratio: 1;
  animation: atlas-intro-logo 1.24s ease-in-out calc(-1 * var(--intro-opening-trim)) both;
}

.atlas-intro-mark img {
  position: relative;
  display: block;
  width: 100%;
}

@supports (mask-image: url("/assets/brand/atlasahead-intro-mark.webp")) {
  .atlas-intro-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    mask: url("/assets/brand/atlasahead-intro-mark.webp") center / 100% 100%;
    background: linear-gradient(111deg, transparent 40%, #82caff65 46%,
      #ffffffee 50%, #a6d9ff70 53%, transparent 60%) 100% 0 / 200% 100%;
    mix-blend-mode: screen;
    animation: atlas-intro-chrome 385ms linear calc(385ms - var(--intro-opening-trim)) both;
  }
}

@keyframes atlas-intro-chrome {
  0% { background-position: 100% 0; opacity: 0; }
  8%, 92% { opacity: 1; }
  100% { background-position: 0 0; opacity: 0; }
}

@keyframes atlas-intro-logo {
  0%, 4% { opacity: 0; transform: scale(.88); }
  31.25%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes atlas-intro-reveal {
  0%, 84% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-intro { display: none; }
}

.atlas-intro-replay {
  position: fixed;
  z-index: 9999;
  right: 18px;
  bottom: 18px;
  padding: .65rem 1rem;
  border: 1px solid #78b8f3;
  border-radius: 999px;
  background: #071728;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
