/* Opulent hub — motion layer. Quiet, quick, physical. Everything here is decoration only:
   no layout changes, and it all switches off for people who ask for reduced motion. */
:root{--m-ease:cubic-bezier(.2,.7,.2,1);--m-spring:cubic-bezier(.34,1.4,.64,1);--m-fast:.18s;--m-mid:.32s;--m-slow:.5s}

@keyframes m-up{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes m-fade{from{opacity:0}to{opacity:1}}
@keyframes m-pop{from{opacity:0;transform:scale(.96) translateY(8px)}to{opacity:1;transform:none}}
@keyframes m-sheet{from{opacity:0;transform:scale(.97) translateY(14px)}to{opacity:1;transform:none}}
@keyframes m-shimmer{from{background-position:-200% 0}to{background-position:200% 0}}
@keyframes m-heart{0%{transform:scale(1)}35%{transform:scale(1.28)}70%{transform:scale(.94)}100%{transform:scale(1)}}

/* entrances */
.m-in{animation:m-up var(--m-slow) var(--m-ease) both}
.m-stagger>*{animation:m-up var(--m-slow) var(--m-ease) both}
.m-stagger>*:nth-child(1){animation-delay:.02s}.m-stagger>*:nth-child(2){animation-delay:.05s}.m-stagger>*:nth-child(3){animation-delay:.08s}
.m-stagger>*:nth-child(4){animation-delay:.11s}.m-stagger>*:nth-child(5){animation-delay:.14s}.m-stagger>*:nth-child(6){animation-delay:.17s}
.m-stagger>*:nth-child(7){animation-delay:.2s}.m-stagger>*:nth-child(8){animation-delay:.23s}.m-stagger>*:nth-child(n+9){animation-delay:.26s}

/* hover + press */
.m-lift{transition:transform var(--m-mid) var(--m-ease),box-shadow var(--m-mid) var(--m-ease)}
@media(hover:hover){.m-lift:hover{transform:translateY(-3px);box-shadow:0 16px 34px -18px rgba(0,0,0,.28)}}
.m-lift:active{transform:translateY(-1px) scale(.985);transition-duration:.08s}
.m-press{transition:transform .12s var(--m-ease),background-color var(--m-fast),opacity var(--m-fast)}
.m-press:active{transform:scale(.96)}
.m-img{animation:m-fade .45s ease both}

/* shared page pieces (portal, shoots, pick, files) — no structural change, motion only */
.sh,.ph,.it,.cl,.fd,.fi{transition:transform var(--m-mid) var(--m-ease),box-shadow var(--m-mid) var(--m-ease)}
@media(hover:hover){.sh:hover,.cl:hover,.fd:hover,.fi:hover,.it:hover,.ph:hover{transform:translateY(-3px);box-shadow:0 16px 34px -18px rgba(0,0,0,.28)}}
.sh:active,.cl:active,.fd:active,.fi:active,.it:active,.ph:active{transform:scale(.985);transition-duration:.08s}
.shoots>*,.grid>*,.folders>*{animation:m-up var(--m-slow) var(--m-ease) both}
.shoots>*:nth-child(2),.grid>*:nth-child(2),.folders>*:nth-child(2){animation-delay:.04s}
.shoots>*:nth-child(3),.grid>*:nth-child(3),.folders>*:nth-child(3){animation-delay:.08s}
.shoots>*:nth-child(4),.grid>*:nth-child(4),.folders>*:nth-child(4){animation-delay:.12s}
.shoots>*:nth-child(5),.grid>*:nth-child(5),.folders>*:nth-child(5){animation-delay:.16s}
.shoots>*:nth-child(6),.grid>*:nth-child(6),.folders>*:nth-child(6){animation-delay:.2s}
.shoots>*:nth-child(n+7),.grid>*:nth-child(n+7),.folders>*:nth-child(n+7){animation-delay:.24s}
.grid>*:nth-child(n+25){animation:none}
.chip,.btn,.pill,.go,.again,.cb,.nav button,.clbtn,.day,.tray button,button.x{transition:transform .12s var(--m-ease),background-color var(--m-fast),color var(--m-fast),box-shadow var(--m-fast),opacity var(--m-fast)}
.chip:active,.btn:active,.pill:active,.go:active,.again:active,.nav button:active,.clbtn:active,.day:active,.tray button:active,button.x:active{transform:scale(.95)}
.sheet.on .box{animation:m-sheet .38s var(--m-ease) both}
.sheet.on{animation:m-fade .25s ease both}
.dlg.on{animation:m-fade .2s ease both}.dlg.on .in{animation:m-pop .3s var(--m-spring) both}
.menu.on{animation:m-pop .22s var(--m-ease) both;transform-origin:top right}
.tray{transition:transform .45s var(--m-spring)!important}
.hrt{transition:transform .2s var(--m-ease),background-color .2s}
.ph.hearted .hrt{animation:m-heart .45s var(--m-ease)}
.queue.on{animation:m-pop .3s var(--m-ease) both}
.banner.on,.done.on,.sendbox{animation:m-up .5s var(--m-ease) both}
h1,.sub{animation:m-up .55s var(--m-ease) both}
.sub{animation-delay:.05s}
img{transition:opacity .4s ease}
:focus-visible{outline:2px solid #147EFB;outline-offset:2px;border-radius:inherit}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{animation-duration:.01ms!important;animation-delay:0s!important;transition-duration:.01ms!important}
}
