/* 3D motion shared by every page (desktop). Mobile has its own rules in m.css. */
@media (min-width:761px) and (prefers-reduced-motion:no-preference){
/* big titles: each letter turns up from below, like a lid */
html[data-fx] .big:not(body) .ln,html[data-fx] #h .ln{perspective:700px}
html[data-fx] .big:not(body) .ch,html[data-fx] #h .ch{transform-origin:50% 100% -.35em;transform:rotateX(-100deg);transition:translate 1.3s cubic-bezier(.16,1,.3,1),transform 1.7s cubic-bezier(.16,1,.3,1)}
html[data-fx] .on .big:not(body) .ch,html[data-fx] .in #h .ch{transform:none}
/* list rows (Eventi, Dove ho insegnato): each row folds down from its top edge */
html[data-fx] .yr,html[data-fx] .past{perspective:1500px}
html[data-fx] .yr .row,html[data-fx] .yr .clip,html[data-fx] .past .row{transform-origin:50% 0;transform:rotateX(-72deg);transition:opacity .9s,translate 1.1s cubic-bezier(.16,1,.3,1),color .4s,transform 1.6s cubic-bezier(.16,1,.3,1)}
html[data-fx] .yr .row.on,html[data-fx] .yr .clip.on,html[data-fx] .past.on .row{transform:none}
/* year headings roll in like a drum */
html[data-fx] .yr .y{transform-origin:50% 50% -.6em;transform:rotateX(90deg);opacity:0!important;transition:transform 1.5s cubic-bezier(.16,1,.3,1),opacity 1s}
html[data-fx] .yr .y.fxon{transform:none;opacity:.9!important}
/* photos lean towards the mouse */
html[data-fx] .fxt{will-change:transform}
}
