/* ============================================================
   Renee — Animations
   Keyframes, transitions, micro-interactions.
   ============================================================ */

@keyframes announceMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes announceMarqueeRtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

@keyframes brandMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes brandMarqueeRtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.15); }
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(127, 92, 72, 0.7); }
  100% { box-shadow: 0 0 0 14px rgba(127, 92, 72, 0); }
}

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(12px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger reveal — applied to top-level page sections */
.reveal-on-load > * {
  opacity: 0;
  animation: fadeUp 600ms var(--ease-out) forwards;
}
.reveal-on-load > *:nth-child(1) { animation-delay: 0ms; }
.reveal-on-load > *:nth-child(2) { animation-delay: 80ms; }
.reveal-on-load > *:nth-child(3) { animation-delay: 160ms; }
.reveal-on-load > *:nth-child(4) { animation-delay: 240ms; }
.reveal-on-load > *:nth-child(5) { animation-delay: 320ms; }
.reveal-on-load > *:nth-child(6) { animation-delay: 400ms; }
.reveal-on-load > *:nth-child(7) { animation-delay: 480ms; }

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