/* --- Keyframes --- */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.8); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hero entrance stagger --- */

.hero__badge { animation: fade-in-up 0.7s ease 0.1s both; }
.hero__name  { animation: fade-in-up 0.7s ease 0.25s both; }
.hero__subtitle { animation: fade-in-up 0.7s ease 0.45s both; }
.hero__cta   { animation: fade-in-up 0.7s ease 0.6s both; }

/* --- Scroll reveal --- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > *:nth-child(1)  { transition-delay: 0ms; }
.stagger > *:nth-child(2)  { transition-delay: 70ms; }
.stagger > *:nth-child(3)  { transition-delay: 140ms; }
.stagger > *:nth-child(4)  { transition-delay: 210ms; }
.stagger > *:nth-child(5)  { transition-delay: 280ms; }
.stagger > *:nth-child(6)  { transition-delay: 350ms; }
.stagger > *:nth-child(7)  { transition-delay: 420ms; }
.stagger > *:nth-child(8)  { transition-delay: 490ms; }
.stagger > *:nth-child(9)  { transition-delay: 560ms; }
.stagger > *:nth-child(10) { transition-delay: 630ms; }

/* --- Text scramble placeholder --- */

.scramble-text {
  display: inline-block;
}

/* --- 3D tilt cards --- */

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.06) 0%,
    transparent 60%
  );
}

.tilt-card:hover .tilt-card__shine {
  opacity: 1;
}

/* --- Card visible on filter --- */

.card[style*="display: none"] {
  animation: none;
}

/* --- Reduced motion --- */

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__badge,
  .hero__name,
  .hero__subtitle,
  .hero__cta {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .blob {
    animation: none;
  }

  .marquee-track {
    animation: none;
  }

  .bento__music-bar {
    animation: none;
  }

  .contact__status .dot {
    animation: none;
  }
}
