/* ==========================================================================
   Sporos shared motion layer
   Lightweight, GSAP-free scroll motion for every page EXCEPT the homepage
   (the homepage keeps its own richer inline GSAP choreography).

   Tiering is controlled by a data-motion attribute on <html>:
     data-motion="full"   full reveals + count-ups + scroll-progress
     data-motion="light"  gentle reveals + count-ups (no scroll-progress)  [default]
     data-motion="none"   no motion at all (forms / booking)

   Safety: elements are only hidden once JS has confirmed it will reveal them
   (html.sporos-js) AND motion is not disabled. So visitors with JS off, or on
   a data-motion="none" page, always see fully-rendered content.
   ========================================================================== */

/* --- Reveals --------------------------------------------------------------- */
.sporos-js:not([data-motion="none"]) .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.sporos-js:not([data-motion="none"]) .reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }

/* Reduced motion: fade only, no movement (still gated on JS so nothing is left
   hidden without it). */
@media (prefers-reduced-motion: reduce) {
  .sporos-js:not([data-motion="none"]) .reveal {
    transform: none;
    transition: opacity 0.6s ease;
  }
  .sporos-js:not([data-motion="none"]) .reveal.visible { transform: none; }
  .sporos-scroll-progress { display: none; }
}

/* --- Scroll-progress bar (full tier only) ---------------------------------- */
.sporos-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #C49B7A, #E5CDB5);
  z-index: 60;
  pointer-events: none;
  opacity: 0.9;
}
