/* Motion primitives. Everything respects prefers-reduced-motion. */
@keyframes mg-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes mg-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes mg-scale-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes mg-draw {
  from {
    stroke-dashoffset: 62;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes mg-dot-pop {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes mg-pulse-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes mg-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
@keyframes mg-caret {
  50% {
    opacity: 0;
  }
}
@keyframes mg-ring {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 45%, transparent);
  }
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}
@keyframes mg-shimmer {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -50% 0;
  }
}

.fade-up {
  animation: mg-fade-up 0.6s var(--ease) both;
}
.fade-in {
  animation: mg-fade-in 0.4s ease both;
}
.d1 {
  animation-delay: 0.12s;
}
.d2 {
  animation-delay: 0.22s;
}
.d3 {
  animation-delay: 0.3s;
}
.d4 {
  animation-delay: 0.4s;
}
.logo-draw path {
  stroke-dasharray: 62;
  animation: mg-draw 1.1s var(--ease) 0.1s both;
}
.logo-draw circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: mg-dot-pop 0.5s var(--ease) 0.95s both;
}
.shimmer {
  background: linear-gradient(90deg, var(--raised) 0%, var(--hover) 40%, var(--raised) 80%);
  background-size: 200% 100%;
  animation: mg-shimmer 1.6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
