/* SmartStack page mockup: motion.css
   Start states for animation only. Every rule is scoped under html.has-motion, which is set before first
   paint when motion is allowed and removed by js/core.js for reduced motion or when GSAP cannot load.
   Remove this file's <link> and the page still reads: nothing here is needed for layout or legibility. */

/* [data-reveal] (or "up"): fade and rise once on enter */
html.has-motion [data-reveal]:not([data-reveal="lines"]):not([data-reveal="fade"]):not([data-reveal="media"]):not([data-reveal-state="done"]) {
  opacity: 0; transform: translate3d(0, 24px, 0);
}
/* [data-reveal="fade"]: fade only */
html.has-motion [data-reveal="fade"]:not([data-reveal-state="done"]) { opacity: 0; }
/* [data-reveal="lines"]: hidden until core has split it into masked lines (data-reveal-state="ready") */
html.has-motion [data-reveal="lines"]:not([data-reveal-state]) { visibility: hidden; }
/* [data-reveal="media"] on a .media frame: the frame fades and rises, its image settles from 1.06 to 1 */
html.has-motion [data-reveal="media"]:not([data-reveal-state="done"]) { opacity: 0; transform: translate3d(0, 24px, 0); }
html.has-motion [data-reveal="media"]:not([data-reveal-state="done"]) > :is(img, video, picture, canvas) { transform: scale(1.06); }

/* Failsafe: core.js marks html.ss-booted as soon as GSAP is there. A CDN that is held rather than refused (a
   school web filter, a slow proxy) blocks GSAP and the boot behind it; after 4 s every start state above shows
   its content anyway. Once GSAP boots these rules no longer match and GSAP alone owns the reveals. */
@keyframes ss-failsafe { to { opacity: 1; transform: none; visibility: visible; } }
html.has-motion:not(.ss-booted) [data-reveal]:not([data-reveal="lines"]):not([data-reveal="fade"]):not([data-reveal="media"]):not([data-reveal-state="done"]),
html.has-motion:not(.ss-booted) [data-reveal="fade"]:not([data-reveal-state="done"]),
html.has-motion:not(.ss-booted) [data-reveal="lines"]:not([data-reveal-state]),
html.has-motion:not(.ss-booted) [data-reveal="media"]:not([data-reveal-state="done"]),
html.has-motion:not(.ss-booted) [data-reveal="media"]:not([data-reveal-state="done"]) > :is(img, video, picture, canvas) {
  animation: ss-failsafe 0s linear 4s forwards;
}
