/* site-wide load and hover motion for the pages outside the data engine (18 Nov 2026).
   .rv is added by motion.js only, so content stays visible if the script does not run. */
@keyframes nrfSettle{from{opacity:0;transform:translateY(14px);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
@keyframes nrfFade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:no-preference){
  html:not(.calm) #app>.banner .wrap>div>*,html:not(.calm) #app>.ab-hero>*,html:not(.calm) #app>.ar-hero .ar-hero-in>*{animation:nrfSettle .7s cubic-bezier(.16,1,.3,1) both}
  html:not(.calm) #app>.banner .wrap>div>:nth-child(2),html:not(.calm) #app>.ar-hero .ar-hero-in>:nth-child(2){animation-delay:.08s}
  html:not(.calm) #app>.banner .wrap>div>:nth-child(n+3),html:not(.calm) #app>.ar-hero .ar-hero-in>:nth-child(n+3){animation-delay:.16s}
  html:not(.calm) #app>.motto{animation:nrfFade .8s ease .15s both}
  html:not(.calm) .rv{opacity:0;translate:0 20px;transition:opacity .6s ease var(--rv-d,0ms),translate .7s cubic-bezier(.16,1,.3,1) var(--rv-d,0ms),transform .28s cubic-bezier(.16,1,.3,1),box-shadow .28s ease,background-color .3s ease,border-color .3s ease}
  html:not(.calm) .rv.in{opacity:1;translate:none}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  html:not(.calm) #app .card:not(.ag-card):hover,html:not(.calm) #app .ab-block:hover>.card{transform:translateY(-3px);box-shadow:var(--shadow-h)}
  html:not(.calm) #app .card.empty:hover,html:not(.calm) .adm-main .card:hover,html:not(.calm) #app .side .card:hover{transform:none;box-shadow:var(--shadow)}
  html:not(.calm) #app .ar-poster,html:not(.calm) #app .vcard,html:not(.calm) #app .work,html:not(.calm) #app .fa{transition:transform .28s cubic-bezier(.16,1,.3,1),box-shadow .28s ease}
  html:not(.calm) #app .ar-poster:hover,html:not(.calm) #app .vcard:hover,html:not(.calm) #app .work:hover,html:not(.calm) #app .fa:hover{transform:translateY(-3px)}
}
/* phones: page-load is a plain fade; scroll reveals are not used there (see motion.js) */
@media(max-width:760px),(hover:none){
  html:not(.calm) #app>.banner .wrap>div>*,html:not(.calm) #app>.ab-hero>*,html:not(.calm) #app>.ar-hero .ar-hero-in>*{animation-name:nrfFade;animation-duration:.5s}
}
/* Home on phones: its section reveals cost 12 slow frames per scroll on a Redmi Note 11 against 1-2 without, so sections are simply shown */
@media(max-width:760px),(hover:none){.reveal{opacity:1!important;transform:none!important;transition:none!important}}
@media print{.rv{opacity:1!important;translate:none!important}}
