/* ============================================
   ANIMATIONS — Keyframes & States (Progressive Enhancement)
   ============================================ */

/* Content remains 100% visible by default; GSAP handles initial states */
[data-animate],
[data-stagger] > * {
  will-change: transform, opacity;
}

/* ── Glow pulse ── */

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 25px rgba(var(--color-primary-rgb), 0.25);
  }
  50% {
    box-shadow: 0 0 50px rgba(var(--color-primary-rgb), 0.55);
  }
}

/* ── Float animation ── */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ── Spin ── */

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Loading spinner ── */

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(136, 1, 254, 0.25);
  border-top-color: var(--color-primary-deep);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

.btn.is-loading .spinner {
  display: inline-block;
}

.btn.is-loading .btn__text {
  display: none;
}

/* ── 3D Tilt (Controlled exclusively by GSAP — no CSS transform transition conflict) ── */

.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-card__inner {
  will-change: transform;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tilt-card__inner.method__step-layout {
  display: grid;
}

/* ── Parallax layer ── */

.parallax-layer {
  will-change: transform;
}
