/* DariQueen — scroll reveal animations (added Nov 17, 2026 at Joshua's request)
   Elements slide up + fade in as they enter the viewport.
   Safety: content is only hidden when <html> has .js-anim (set by an inline
   head script). reveal.js reveals elements via IntersectionObserver and
   clears the fallback timer; if it never runs, .rv-off shows everything.
   prefers-reduced-motion disables all of it. */

html.js-anim:not(.rv-off) .rv {
  opacity: 0;
  transform: translateY(26px);
}

html.js-anim .rv {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--rvd, 0ms);
  will-change: opacity, transform;
}

html.js-anim .rv.rv-in {
  opacity: 1;
  transform: translateY(0);
}

html.rv-off .rv {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Hero entrance on page load (homepage) */
@keyframes dq-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

html.js-anim:not(.rv-off) .hero-copy > *,
html.js-anim:not(.rv-off) .hero-img {
  animation: dq-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
html.js-anim:not(.rv-off) .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
html.js-anim:not(.rv-off) .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
html.js-anim:not(.rv-off) .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
html.js-anim:not(.rv-off) .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
html.js-anim:not(.rv-off) .hero-img { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  html.js-anim .rv {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html.js-anim:not(.rv-off) .hero-copy > *,
  html.js-anim:not(.rv-off) .hero-img {
    animation: none !important;
  }
}
