/* Motion layer (motion.js). Loaded last. */

/* hero headline words */
.hw-on .hw{display:inline-block;opacity:0;filter:blur(14px);translate:0 .32em;
 animation:hw-in 1.15s cubic-bezier(.16,1,.3,1) calc(.18s + var(--i) * .085s) forwards}
.hw-on em.hw{padding-right:.06em}
@keyframes hw-in{to{opacity:1;filter:blur(0);translate:0 0}}
.hero h1.rv{opacity:1;transform:none}

/* laptops: scroll drives the rise, so only fade on reveal */
.devs.rv{transition:opacity 1s var(--out)}
.devs{will-change:rotate,scale,translate}

/* tilt + glare */
.tilt{transition:rotate .9s cubic-bezier(.16,1,.3,1);transform-style:preserve-3d}
.tilt.tilting{transition:rotate .18s linear}
.glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:5;opacity:0;transition:opacity .5s ease;
 background:radial-gradient(520px circle at var(--gx,50%) var(--gy,0%),rgba(255,255,255,.16),transparent 55%);mix-blend-mode:soft-light}
.tilting>.glare{opacity:1}

/* magnetic buttons */
.mag{transition:translate .6s cubic-bezier(.16,1,.3,1),transform .35s var(--out),background .25s,box-shadow .35s,color .25s}
.mag:hover{transition:translate .15s linear,transform .35s var(--out),background .25s,box-shadow .35s,color .25s}

/* tighter rhythm between sections */
.sec{padding:clamp(80px,9vw,128px) 0}

@media (prefers-reduced-motion:reduce){
 .hw-on .hw{animation:none;opacity:1;filter:none;translate:none}
 .tilt,.mag{transition:none}
}
