/* Shared motion layer for the landing pages.
   Everything here only applies when <html> has the "motion" class, which is
   added by an inline script in <head> unless the visitor prefers reduced motion.
   Elements are hidden only after motion.js marks them, so content never stays
   hidden if the script fails to load. */
:root{ --ease: cubic-bezier(.2,.75,.2,1); }

/* Scroll reveal */
.motion .rv{opacity:0; transform:translate3d(0,28px,0); transition:opacity .8s var(--ease), transform .9s var(--ease); transition-delay:calc(var(--i,0) * 90ms)}
.motion .rv.in{opacity:1; transform:none}
.motion .rv-img{opacity:0; clip-path:inset(10% 6% 10% 6%); transform:scale(1.06); transition:opacity .7s var(--ease), clip-path 1.2s var(--ease), transform 1.6s var(--ease); transition-delay:calc(var(--i,0) * 110ms)}
.motion .rv-img.in{opacity:1; clip-path:inset(0); transform:none}

/* Hero entrance on load */
.motion [data-hero] > *{animation:mo-rise .95s var(--ease) both}
.motion [data-hero] > *:nth-child(1){animation-delay:.05s}
.motion [data-hero] > *:nth-child(2){animation-delay:.15s}
.motion [data-hero] > *:nth-child(3){animation-delay:.27s}
.motion [data-hero] > *:nth-child(4){animation-delay:.39s}
.motion [data-hero] > *:nth-child(5){animation-delay:.5s}
.motion [data-hero] > *:nth-child(6){animation-delay:.6s}
.motion [data-hero-media]{animation:mo-unveil 1.4s var(--ease) .2s both}
.motion [data-hero-float]{animation:mo-pop .9s var(--ease) .9s both}
@keyframes mo-rise{from{opacity:0; transform:translate3d(0,26px,0)} to{opacity:1; transform:none}}
@keyframes mo-unveil{from{opacity:0; clip-path:inset(0 0 100% 0); transform:scale(1.05)} to{opacity:1; clip-path:inset(0); transform:none}}
@keyframes mo-pop{from{opacity:0; transform:translate3d(0,18px,0) scale(.96)} to{opacity:1; transform:none}}

/* Notice bar slides in */
.motion .notice{animation:mo-drop .7s var(--ease) both}
@keyframes mo-drop{from{opacity:0; transform:translateY(-100%)} to{opacity:1; transform:none}}

/* Ambient glow blobs behind the hero */
.glow{position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0}
.glow i{position:absolute; width:46vmax; height:46vmax; border-radius:50%; filter:blur(70px); opacity:.45}
.motion .glow i{animation:mo-drift 22s ease-in-out infinite alternate}
.motion .glow i:nth-child(2){animation-duration:28s; animation-direction:alternate-reverse}
@keyframes mo-drift{from{transform:translate3d(-6%,-4%,0) scale(1)} to{transform:translate3d(8%,6%,0) scale(1.12)}}

/* Header shadow once scrolled */
header.site{transition:box-shadow .35s ease, background .35s ease}
header.site.scrolled{box-shadow:0 10px 30px -20px rgba(15,25,35,.45)}

/* Hover lift for buttons and cards */
.btn{transition:transform .22s var(--ease), box-shadow .22s var(--ease), background .15s, color .15s, border-color .15s}
.btn:hover{transform:translateY(-2px); box-shadow:0 10px 24px -14px rgba(15,25,35,.55)}
.btn:active{transform:translateY(0)}
.lift{transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s}
.lift:hover{transform:translateY(-4px); box-shadow:0 22px 40px -28px rgba(15,25,35,.45)}

/* Scroll progress bar */
.progress{position:fixed; top:0; left:0; height:3px; width:100%; transform-origin:0 50%; transform:scaleX(var(--p,0)); z-index:60; pointer-events:none}

@media (prefers-reduced-motion: reduce){
  .btn:hover,.lift:hover{transform:none}
  .progress{display:none}
}
