/* Ryan Studios motion pack.
   To revert: remove the motion.css <link> and motion.js <script> tags (or redeploy the backup). */

/* 1. Smooth page-to-page transitions (Chrome / Edge). The top bar stays still while the page cross-fades. */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: m-vt-out .26s ease both; }
::view-transition-new(root) { animation: m-vt-in .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes m-vt-out { to { opacity: 0; filter: blur(8px); } }
@keyframes m-vt-in { from { opacity: 0; filter: blur(10px); } }

/* 2. Hero headline comes into focus as it rises */
.m-ready .hero h1 .line { animation: m-focus 1.4s cubic-bezier(.2,.8,.2,1) backwards; }
.m-ready .hero h1 .line:nth-child(2) { animation-delay: .14s; }
@keyframes m-focus { from { filter: blur(14px); opacity: .25; } }

/* 3. Section titles wipe up out of a mask when they scroll in */
.m-ready .reveal:not(.in) h2.display { clip-path: inset(0 0 100% 0); }
.m-ready .reveal.in h2.display { animation: m-wipe 1s cubic-bezier(.7,0,.2,1) .05s backwards; }
@keyframes m-wipe { from { clip-path: inset(0 0 100% 0); filter: blur(6px); } to { clip-path: inset(-20% -5% -30% -5%); filter: blur(0); } }

/* 6. FAQ / docs dropdowns open and close smoothly instead of snapping */
:root { interpolate-size: allow-keywords; }
details::details-content { block-size: 0; overflow: clip; transition: block-size .42s cubic-bezier(.2,.8,.2,1), content-visibility .42s allow-discrete; }
details[open]::details-content { block-size: auto; }

/* 7. Hero drifts away as you scroll (only when the device allows motion) */
@media (prefers-reduced-motion: no-preference) {
  .m-ready .hero-bg { translate: 0 calc(var(--sy, 0) * .3px); }
  .m-ready .hero > .wrap { translate: 0 calc(var(--sy, 0) * -.1px); opacity: calc(1 - var(--sy, 0) / 750); }
}

/* no light swipe on hover anywhere */
.btn-gold::after { display: none !important; }
