/* ==========================================
   PurPassion — Animations & Scroll Reveals
   ========================================== */

/* --- Kitsunebi Orb Animations --- */
@keyframes kitsunebi-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-14px) scale(1.15);
    opacity: 1;
  }
}

@keyframes kitsunebi-glow {
  0%, 100% {
    box-shadow: 0 0 8px 4px rgba(244, 169, 66, 0.2);
  }
  50% {
    box-shadow: 0 0 18px 10px rgba(244, 169, 66, 0.45);
  }
}

/* --- Hero Entrance --- */
@keyframes hero-title-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-tagline-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-scroll-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-50%) translateY(6px);
  }
}

@keyframes cloud-drift {
  0% { transform: translateX(0); }
  50% { transform: translateX(20px); }
  100% { transform: translateX(0); }
}

.hero__title {
  animation: hero-title-in 0.9s ease both;
}

.hero__tagline {
  animation: hero-tagline-in 0.7s ease 0.6s both;
}

.hero__scroll-hint {
  animation: hero-scroll-pulse 2.5s ease-in-out 2s infinite;
}

.hero__clouds {
  animation: cloud-drift 30s ease-in-out infinite;
}


/* --- Scroll Reveal System --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal-stagger].revealed > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger].revealed > *:nth-child(1)  { transition-delay: 0.0s; }
[data-reveal-stagger].revealed > *:nth-child(2)  { transition-delay: 0.08s; }
[data-reveal-stagger].revealed > *:nth-child(3)  { transition-delay: 0.16s; }
[data-reveal-stagger].revealed > *:nth-child(4)  { transition-delay: 0.24s; }
[data-reveal-stagger].revealed > *:nth-child(5)  { transition-delay: 0.32s; }
[data-reveal-stagger].revealed > *:nth-child(6)  { transition-delay: 0.40s; }
[data-reveal-stagger].revealed > *:nth-child(7)  { transition-delay: 0.48s; }
[data-reveal-stagger].revealed > *:nth-child(8)  { transition-delay: 0.56s; }
[data-reveal-stagger].revealed > *:nth-child(9)  { transition-delay: 0.64s; }
[data-reveal-stagger].revealed > *:nth-child(10) { transition-delay: 0.72s; }

/* Ings cloud stagger — even more items */
.ings-cloud.revealed span {
  opacity: 0.7;
  transform: scale(1);
}

.ings-cloud span {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ings-cloud.revealed span:nth-child(1)  { transition-delay: 0.0s; }
.ings-cloud.revealed span:nth-child(2)  { transition-delay: 0.04s; }
.ings-cloud.revealed span:nth-child(3)  { transition-delay: 0.08s; }
.ings-cloud.revealed span:nth-child(4)  { transition-delay: 0.12s; }
.ings-cloud.revealed span:nth-child(5)  { transition-delay: 0.16s; }
.ings-cloud.revealed span:nth-child(6)  { transition-delay: 0.2s; }
.ings-cloud.revealed span:nth-child(7)  { transition-delay: 0.24s; }
.ings-cloud.revealed span:nth-child(8)  { transition-delay: 0.28s; }
.ings-cloud.revealed span:nth-child(9)  { transition-delay: 0.32s; }
.ings-cloud.revealed span:nth-child(10) { transition-delay: 0.36s; }
.ings-cloud.revealed span:nth-child(11) { transition-delay: 0.4s; }
.ings-cloud.revealed span:nth-child(12) { transition-delay: 0.44s; }
.ings-cloud.revealed span:nth-child(13) { transition-delay: 0.48s; }
.ings-cloud.revealed span:nth-child(14) { transition-delay: 0.52s; }
.ings-cloud.revealed span:nth-child(15) { transition-delay: 0.56s; }
.ings-cloud.revealed span:nth-child(16) { transition-delay: 0.6s; }
.ings-cloud.revealed span:nth-child(17) { transition-delay: 0.64s; }
.ings-cloud.revealed span:nth-child(18) { transition-delay: 0.68s; }
.ings-cloud.revealed span:nth-child(19) { transition-delay: 0.72s; }
.ings-cloud.revealed span:nth-child(20) { transition-delay: 0.76s; }


/* --- AI Bar animation handled via .revealed class in styles.css --- */


/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__title,
  .hero__tagline,
  .hero__scroll-hint,
  .hero__clouds {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .ings-cloud span {
    opacity: 0.7;
    transform: none;
    transition: none;
  }

  .ai-viz__fill {
    transition: none;
  }

  .ai-viz .ai-viz__fill--theoretical {
    width: 90%;
  }

  .ai-viz .ai-viz__fill--actual {
    width: 35%;
  }
}
