/* Moving between pages (pages.js): the page morphs into the next one. Matching pieces (the heading, the intro,
   the first few boxes) slide and reshape into their new places while their contents cross-fade; everything else
   fades. The header stays still. Nothing moves for people who ask their device for less motion */
.site-header{view-transition-name:site-header}
::view-transition-group(*){animation-duration:.6s;animation-timing-function:cubic-bezier(.65,0,.25,1)}
::view-transition-old(*),::view-transition-new(*){animation-duration:.6s;animation-timing-function:cubic-bezier(.65,0,.25,1)}
/* words keep their shape while they move and grow, instead of being stretched */
::view-transition-old(mg-title),::view-transition-new(mg-title),::view-transition-old(mg-intro),::view-transition-new(mg-intro),::view-transition-old(mg-jump),::view-transition-new(mg-jump){height:100%;width:auto;object-fit:none;object-position:left top}
::view-transition-old(root){animation:mg-out .3s ease both}
::view-transition-new(root){animation:mg-in .45s .15s ease both}
@keyframes mg-out{to{opacity:0}}
@keyframes mg-in{from{opacity:0}}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
