/* ============================================================
   Founding Self, PLLC — Scroll-reveal animation states
   Paired with assets/js/scroll-reveal.js (IntersectionObserver).
   ============================================================ */

/* Scoped under html.js (set by an inline head script) so content stays
   fully visible if JavaScript fails to load or run — no permanently
   hidden page for non-JS/crawler/failure cases. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--duration-slow) var(--ease-standard),
    transform var(--duration-slow) var(--ease-standard);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js [data-reveal="fade"] {
  transform: none;
}

html.js [data-reveal="scale"] {
  transform: scale(0.96);
}

html.js [data-reveal="scale"].is-visible {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
