/* UWH Site Migrator v2.4.5 — shared animations across every page.
   Premium motion values follow the original home page: .9s hero reveal,
   .65s scroll reveal, .45s hover and 8s subtle dashboard float.
   No layout, typography, colors or source content changed. */

/* Match the exact easing, blur and upward entrance of the home page hero. */
@keyframes premiumReveal {
  from { opacity:0; transform:translateY(28px); filter:blur(8px); }
  to { opacity:1; transform:none; filter:blur(0); }
}
@keyframes dashboardFloatLite {
  0%,100% { transform:rotateY(-3deg) rotateX(1deg) translateY(0); }
  50% { transform:rotateY(-3deg) rotateX(1deg) translateY(-5px); }
}
@keyframes pulseDot {
  0%,100% { box-shadow:0 0 0 3px rgba(142,224,188,.15); }
  50% { box-shadow:0 0 0 9px rgba(142,224,188,0); }
}
.site-detail .detail-eyebrow::before { animation:pulseDot 2s infinite; }
.site-detail .hero-art-item {
  transition:transform .45s cubic-bezier(.2,.8,.2,1);
}
.site-detail .hero-art-item:hover { transform:translateX(5px); }

/* The inner pages use the same staggered hero entry as Home.
   Scope only to non-home pages to preserve the original dashboard animation. */
.has-js .site-detail .detail-hero .breadcrumb,
.has-js .site-detail .detail-hero .detail-eyebrow,
.has-js .site-detail .detail-hero h1,
.has-js .site-detail .detail-hero-grid > div:first-child > p,
.has-js .site-detail .detail-hero .detail-actions,
.has-js .site-detail .detail-hero .hero-points,
.has-js .site-detail .detail-hero .hero-art,
.has-js .download-view .download-head > *,
.has-js .legal-view .legal-hero > * {
  animation:premiumReveal .9s cubic-bezier(.2,.8,.2,1) both;
}
.has-js .site-detail .detail-hero .breadcrumb,
.has-js .download-view .download-head > :first-child,
.has-js .legal-view .legal-hero > :first-child { animation-delay:.07s; }
.has-js .site-detail .detail-hero .detail-eyebrow { animation-delay:.15s; }
.has-js .site-detail .detail-hero h1,
.has-js .download-view .download-head > h1,
.has-js .legal-view .legal-hero > h1 { animation-delay:.3s; }
.has-js .site-detail .detail-hero-grid > div:first-child > p,
.has-js .download-view .download-head > p,
.has-js .legal-view .legal-hero > p { animation-delay:.45s; }
.has-js .site-detail .detail-hero .detail-actions,
.has-js .download-view .download-head > .detail-trust,
.has-js .legal-view .legal-hero > .legal-updated { animation-delay:.6s; }
.has-js .site-detail .detail-hero .hero-points { animation-delay:.7s; }
.has-js .site-detail .detail-hero .hero-art {
  animation:premiumReveal .9s cubic-bezier(.2,.8,.2,1) .35s both,
            dashboardFloatLite 8s ease-in-out 1.4s infinite;
}

/* Shared scroll observer. Without JS or IntersectionObserver, all content
   is visible. A reveal becomes hidden only after the common JS is ready. */
.motion-ready .motion-reveal {
  transition:opacity .65s cubic-bezier(.2,.8,.2,1),
             transform .65s cubic-bezier(.2,.8,.2,1);
  transition-delay:var(--uwh-reveal-delay,0ms);
}
.motion-ready .motion-reveal:not(.visible) {
  opacity:0;
  transform:translateY(20px);
}
.motion-ready .motion-reveal.visible { opacity:1; }
.motion-ready .motion-reveal.motion-complete { transition-delay:0ms; }

/* Preserve existing lift/hover states; share home page's gentler timing. */
.site-detail .detail-card,
.site-detail .detail-step,
.site-detail .detail-link,
.site-detail .detail-board-row,
.legal-view .legal-card,
.download-view .download-package {
  transition-property:opacity, transform, box-shadow, border-color;
  transition-duration:.65s,.45s,.45s,.45s;
  transition-timing-function:cubic-bezier(.2,.8,.2,1);
}
.site-detail .detail-step:hover,
.site-detail .detail-link:hover,
.legal-view .legal-card:hover,
.download-view .download-package:hover {
  transform:translateY(-4px);
}
.site-detail .detail-board-row:hover { transform:translateX(5px); }

/* Staggered scroll items only need the reveal delay before completion.
   Restore instant hover responsiveness after the reveal has finished. */
.motion-ready .motion-reveal:not(.motion-complete) {
  transition-delay:var(--uwh-reveal-delay,0ms);
}

/* Accessibility: honor reduced motion everywhere without invisible items. */
@media (prefers-reduced-motion:reduce) {
  .has-js .site-detail .detail-hero .breadcrumb,
  .has-js .site-detail .detail-hero .detail-eyebrow,
  .has-js .site-detail .detail-hero h1,
  .has-js .site-detail .detail-hero-grid > div:first-child > p,
  .has-js .site-detail .detail-hero .detail-actions,
  .has-js .site-detail .detail-hero .hero-points,
  .has-js .site-detail .detail-hero .hero-art,
  .has-js .download-view .download-head > *,
  .has-js .legal-view .legal-hero > * {animation:none!important;opacity:1!important;filter:none!important;transform:none!important;}
  .motion-ready .motion-reveal,
  .motion-ready .motion-reveal:not(.visible) {opacity:1!important;transform:none!important;transition:none!important;}
  .site-detail .detail-eyebrow::before { animation:none!important; }
  .site-detail .hero-art-item:hover {transform:none!important;}
  .site-detail .detail-step:hover,
  .site-detail .detail-link:hover,
  .site-detail .detail-board-row:hover,
  .legal-view .legal-card:hover,
  .download-view .download-package:hover {transform:none!important;}
}
