/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > :nth-child(1) { transition-delay: 0ms; }
.stagger-children > :nth-child(2) { transition-delay: 100ms; }
.stagger-children > :nth-child(3) { transition-delay: 200ms; }
.stagger-children > :nth-child(4) { transition-delay: 300ms; }
.stagger-children > :nth-child(5) { transition-delay: 400ms; }
.stagger-children > :nth-child(6) { transition-delay: 500ms; }
.stagger-children > :nth-child(7) { transition-delay: 600ms; }
.stagger-children > :nth-child(8) { transition-delay: 700ms; }

/* Botanical float */
.botanical-float {
  animation: botanicalFloat 7s ease-in-out infinite;
}

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

/* Hero shimmer */
.hero__shimmer {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background:
    radial-gradient(ellipse 40% 40% at 30% 50%, rgba(197, 207, 192, 0.3), transparent),
    radial-gradient(ellipse 35% 35% at 70% 40%, rgba(212, 165, 165, 0.2), transparent);
  animation: heroShimmer 8s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
  0% { background-position: 0% 0%; opacity: 0.3; }
  50% { opacity: 0.5; }
  100% { background-position: 100% 100%; opacity: 0.3; }
}

/* SVG draw line */
.draw-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s var(--ease-soft);
}

.draw-line.is-visible {
  stroke-dashoffset: 0;
}

/* Spark pulse — footer star */
.spark-pulse {
  animation: sparkPulse 3s ease-in-out infinite;
}

@keyframes sparkPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .botanical-float,
  .hero__shimmer,
  .spark-pulse {
    animation: none;
  }

  .draw-line {
    stroke-dashoffset: 0;
    transition: none;
  }
}
