/* Mu Paprioka · web · motion that only decorates. With "reduce motion" in the system, or without JS, the page is complete and still.
   js/temprano.js (before the first paint) and js/efectos.js drive the parts that need JS: the panels that come in as they reach
   the screen, and the embers of the home (canvas[data-ascuas], colors from --t-ascuas in css/temas/neon.css).
   The motion of the home hero and the sections is in css/temas/base.css. */

@media (prefers-reduced-motion:no-preference){
  /* panels of the inner pages: in as they reach the screen (efectos.js adds .vis; temprano.js adds .anim to <html> only when that will happen) */
  html.anim .wrap section.w{transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
  html.anim .wrap section.w:not(.vis){opacity:0;transform:translateY(18px)}
}
@keyframes pap-surge{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

/* ---- /rankings: the podium rises when its panel comes in; the gold medal shines every 6 s -------------------------- */
.rk-pd .med::after{content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;opacity:0;
  background:linear-gradient(115deg,rgba(255,255,255,0) 38%,rgba(255,255,255,.8) 50%,rgba(255,255,255,0) 62%) 150% 0/260% 100% no-repeat}
@media (prefers-reduced-motion:no-preference){
  html.anim .rk-main .rk-pd{opacity:0}
  html.anim .rk-main.vis .rk-pd{animation:pap-surge .9s cubic-bezier(.2,.7,.2,1) both}
  html.anim .rk-main.vis .rk-pd.p1{animation-delay:.15s}
  html.anim .rk-main.vis .rk-pd.p2{animation-delay:.3s}
  html.anim .rk-main.vis .rk-pd.p3{animation-delay:.45s}
  .rk-pd .med.m1::after{opacity:1;animation:pap-medalla 6s ease-in-out 1.6s infinite}
  .rk-cl .ph img{transition:filter .2s,transform .4s cubic-bezier(.2,.7,.2,1)}
  .rk-cl:hover .ph img{transform:scale(1.07)}
}
@keyframes pap-medalla{0%{background-position:150% 0}24%,100%{background-position:-50% 0}}
