/* Estats inicials sota html.fx-js, que efectes.js o la xarxa del head retiren si alguna cosa falla. */
/* Estat previ: l'script és al peu i, sense això, el contingut es pinta abans d'amagar-se. fx-ready el desactiva. */
html.fx-js body.fx-on:not(.fx-ready) .t-title:not(.sr-only),
html.fx-js body.fx-on:not(.fx-ready) .sec-title .t-heading,
html.fx-js body.fx-on:not(.fx-ready) .hero-caption .t-heading,
html.fx-js body.fx-on:not(.fx-ready) #story-title,
html.fx-js body.fx-on:not(.fx-ready) [data-hero-slider],
html.fx-js body.fx-on:not(.fx-ready) [data-fitxa-slider],
html.fx-js body.fx-on:not(.fx-ready) .espais-row.h-scroll > *,
html.fx-js body.fx-on:not(.fx-ready) .mf-track > *,
html.fx-js body.fx-on:not(.fx-ready) .act-wrap,
html.fx-js body.fx-on:not(.fx-ready) .espai-wrap,
html.fx-js body.fx-on:not(.fx-ready) .agenda-item,
html.fx-js body.fx-on:not(.fx-ready) .proj-story-text,
html.fx-js body.fx-on:not(.fx-ready) .proj-story .wave--historia,
html.fx-js body.fx-on:not(.fx-ready) .proj-manifest .mf-row,
html.fx-js body.fx-on:not(.fx-ready) .fitxa-top .fitxa-meta .chip,
html.fx-js body.fx-on:not(.fx-ready) .fitxa-top .places-box,
html.fx-js body.fx-on:not(.fx-ready) .fitxa-top .fitxa-desc,
html.fx-js body.fx-on:not(.fx-ready) .fitxa-top .info-list > dt,
html.fx-js body.fx-on:not(.fx-ready) .fitxa-top .info-list > dd,
html.fx-js body.fx-on:not(.fx-ready) .fitxa-top .info-box > .btn,
html.fx-js body.fx-on:not(.fx-ready) .fitxa-top .info-box > p,
html.fx-js body.fx-on:not(.fx-ready) .fitxa-band .band-label,
html.fx-js body.fx-on:not(.fx-ready) .fitxa-band .band-block > p,
html.fx-js body.fx-on:not(.fx-ready) .fitxa-band .chip,
html.fx-js body.fx-on:not(.fx-ready) .fitxa-band .btn,
html.fx-js body.fx-on:not(.fx-ready) .fitxa-band .map-openfreemap-box { opacity: 0; }

html.fx-js body.fx-on .fx-pending { opacity: 0; transform: translate3d(0, 60px, 0); }
html.fx-js body.fx-on .fx-in { animation: fx-rise 1s cubic-bezier(.25, 1, .5, 1) backwards; animation-delay: var(--fx-delay, 0s); }
html.fx-js body.fx-on .fx-instant { animation: none; }

html.fx-js body.fx-on .fx-fade-pending { opacity: 0; }
html.fx-js body.fx-on .fx-fade-in { animation: fx-fade .6s ease-out backwards; }

html.fx-js body.fx-on .fx-stag-pending > * { opacity: 0; transform: translate3d(0, 40px, 0); }
html.fx-js body.fx-on .fx-stag-in > * { animation: fx-rise .8s cubic-bezier(.25, 1, .5, 1) backwards; animation-delay: var(--fx-delay, 0s); }

html.fx-js body.fx-on .fx-sec-pending { opacity: 0; transform: translate3d(0, 28px, 0); }
html.fx-js body.fx-on .fx-sec-pending.fx-sec--op { transform: none; }
html.fx-js body.fx-on .fx-sec-in { animation: fx-sec .7s cubic-bezier(.25, 1, .5, 1) backwards; animation-delay: var(--fx-delay, 0s); }
html.fx-js body.fx-on .fx-sec-in.fx-sec--op { animation-name: fx-sec-op; }

html.fx-js body.fx-on .fx-w { display: inline-block; font-family: inherit; font-weight: inherit; opacity: 0; }
html.fx-js body.fx-on .fx-title-in .fx-w { opacity: 1; animation: fx-word 1s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: var(--fx-delay, 0s); }

html.fx-js body.fx-on .fx-ww { display: inline; font-family: inherit; font-weight: inherit; color: inherit; opacity: .15; }

@keyframes fx-rise { from { opacity: 0; transform: translate3d(0, 60px, 0); } }
@keyframes fx-sec { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
@keyframes fx-sec-op { from { opacity: 0; } }
@keyframes fx-fade { from { opacity: 0; } }
@keyframes fx-word { from { opacity: 0; transform: translate3d(0, 30px, 0); } }

@media (prefers-reduced-motion: reduce) {
    html.fx-js body.fx-on:not(.fx-ready) .t-title:not(.sr-only),
    html.fx-js body.fx-on:not(.fx-ready) #story-title,
    html.fx-js body.fx-on:not(.fx-ready) .sec-title .t-heading,
    html.fx-js body.fx-on:not(.fx-ready) .hero-caption .t-heading,
    html.fx-js body.fx-on:not(.fx-ready) [data-hero-slider],
    html.fx-js body.fx-on:not(.fx-ready) [data-fitxa-slider],
    html.fx-js body.fx-on:not(.fx-ready) .espais-row.h-scroll > *,
    html.fx-js body.fx-on:not(.fx-ready) .mf-track > *,
    html.fx-js body.fx-on:not(.fx-ready) .act-wrap,
    html.fx-js body.fx-on:not(.fx-ready) .espai-wrap,
    html.fx-js body.fx-on:not(.fx-ready) .agenda-item,
    html.fx-js body.fx-on:not(.fx-ready) :is(.proj-story-text, .proj-story .wave--historia, .proj-manifest .mf-row, .fitxa-top .fitxa-meta .chip, .fitxa-top .places-box, .fitxa-top .fitxa-desc, .fitxa-top .info-list > dt, .fitxa-top .info-list > dd, .fitxa-top .info-box > .btn, .fitxa-top .info-box > p, .fitxa-band .band-label, .fitxa-band .band-block > p, .fitxa-band .chip, .fitxa-band .btn, .fitxa-band .map-openfreemap-box),
    html.fx-js body.fx-on .fx-sec-pending,
    html.fx-js body.fx-on .fx-sec-in,
    html.fx-js body.fx-on .fx-pending,
    html.fx-js body.fx-on .fx-fade-pending,
    html.fx-js body.fx-on .fx-stag-pending > *,
    html.fx-js body.fx-on .fx-w,
    html.fx-js body.fx-on .fx-ww { opacity: 1 !important; transform: none !important; animation: none !important; }
}
