/*
 * WOW ATLAS Global 2.0 — Splash R4.1 additive vector polish.
 * R4 lifecycle and fail-safe JavaScript remain unchanged.
 */

.wa-splash-r4-enabled .wa-splash-r4 {
  background: #fe001e !important;
  animation: wa-splash-r4-1-reveal 2.08s linear forwards !important;
}

.wa-splash-r4-enabled .wa-splash-r4__mark {
  width: clamp(168px, 43vw, 220px);
  height: auto;
  object-fit: contain;
  opacity: 1;
  transform: scale(.94);
  transform-origin: 50.4573% 49.9611%;
  will-change: transform;
  animation: wa-splash-r4-1-through-o 1.28s cubic-bezier(.72, 0, .18, 1) .38s both !important;
}

/*
 * The SVG scales around the exact centre of the O. Once its counter fills
 * the viewport, only the unchanged red background remains for a short beat.
 */
@keyframes wa-splash-r4-1-through-o {
  0% {
    opacity: 1;
    transform: scale(.94);
  }

  18% {
    transform: scale(1);
  }

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

@keyframes wa-splash-r4-1-reveal {
  0%, 86% {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-splash-r4-enabled .wa-splash-r4 {
    animation: wa-splash-r4-1-reduced 1s ease-out forwards !important;
  }

  .wa-splash-r4-enabled .wa-splash-r4__mark {
    transform: none;
    animation: wa-splash-r4-1-mark-reduced .52s ease-out .1s forwards !important;
  }
}

@keyframes wa-splash-r4-1-mark-reduced {
  0%, 58% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes wa-splash-r4-1-reduced {
  0%, 72% {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
