/* The Digital & Marketing closing panel. Each finished part covers its placeholder in turn, in
   its site-step-* order 550ms apart, and the Live badge follows the last. They clear again in the same order
   before the next build, so the page never sits finished and blank at once. Nothing paints for the first
   1.4s, so a loop paused off screen as the page loads never rests half faded in. */

:root {
  /* One full loop. */
  --site-cycle: 10s;
}

@layer utilities {
  @media (prefers-reduced-motion: no-preference) {
    .motion-safe\:animate-site-paint {
      animation: site-paint var(--site-cycle) var(--ease-smooth-out) calc(var(--site-step, 0) * 550ms) infinite both;
    }

    .motion-safe\:animate-site-live {
      animation: site-live var(--site-cycle) var(--ease-smooth-out) infinite both;
    }
  }

  /* A part's place in the build order. */
  .site-step-0 {
    --site-step: 0;
  }

  .site-step-1 {
    --site-step: 1;
  }

  .site-step-2 {
    --site-step: 2;
  }

  .site-step-3 {
    --site-step: 3;
  }

  .site-step-4 {
    --site-step: 4;
  }
}

@keyframes site-paint {
  0%,
  14% {
    opacity: 0;
    transform: translateY(4px);
  }
  20%,
  76% {
    opacity: 1;
    transform: none;
  }
  82%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes site-live {
  0%,
  48% {
    opacity: 0;
    transform: scale(0.8);
  }
  52% {
    opacity: 1;
    transform: scale(1.06);
  }
  55%,
  74% {
    opacity: 1;
    transform: scale(1);
  }
  78%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
