/* GENERATED by tools/lab5_site/make_model.py from s/motion.css: do not edit. The arrivals and the button's lift
   alone, for a page that keeps its own stylesheet (Offramp under the shared bar). Every rule is keyed on
   [data-rise], a keyframe, or a button. */
/* Arrivals, each copied from the 2022 site's interaction file (docs/lab5-2022-site): upward only, except the two
   side slides it had.
     (default)  "Element Appears": from 30px below; the move takes 600 ms and the fade 1 s, both linear
     load       the opening words on page load: one block from 20px after 600 ms; fade 600 ms ease, move 600 ms out-quad
     far        the opening picture: from 60px, same timing, 800 ms after the words start
     review     what clients said: from 20px; fade 800 ms ease, move 500 ms out-quad; 0, 200 and 400 ms apart
     bottom     "slideInBottom": from 100px, 1 s out-quart
     left/right "slideInLeft/Right": from 100px to the side, 1 s out-quart
     grow       "growIn": from 75% size, 1 s out-quart */
.motion [data-rise]:not(.done) { transition: transform .6s linear, opacity 1s linear; }
.motion [data-rise]:not(.in) { opacity: 0; transform: translate3d(0, 30px, 0); will-change: opacity, transform; }
/* The opening is plain CSS, so it needs no script and no timer and can never be left hidden: the words wait 600 ms
   (as the 2022 site's did) and rise 20px in 600 ms; the picture starts 800 ms after them and rises 60px. */
@keyframes lab5-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lab5-rise-20 { from { transform: translate3d(0, 20px, 0); } to { transform: none; } }
@keyframes lab5-rise-60 { from { transform: translate3d(0, 60px, 0); } to { transform: none; } }
@keyframes lab5-swing { 0% { transform: rotate(-12deg); } 20% { transform: rotate(7.5deg); } 40% { transform: rotate(-4.6deg); } 58% { transform: rotate(2.7deg); } 74% { transform: rotate(-1.5deg); } 88% { transform: rotate(.7deg); } 100% { transform: none; } }
@keyframes lab5-sway { 0%, 100% { transform: none; } 25% { transform: rotate(1.1deg); } 75% { transform: rotate(-1.1deg); } }
/* A ball under gravity (Patrick, 27 Nov: "a bit more of a bounce", after the pen he sent, "but I want it to end
   faster"): it comes up from below, 70px past its place, falls back and bounces on its own resting line, each
   bounce about a third of the last (70, 25, 9, 3px). Every rise slows as a thrown thing does and every fall speeds
   up, with one gravity throughout, so the timings below are worked out, not chosen: 1.11 s in all. */
@keyframes lab5-ball {
  0% { transform: translate3d(0, 140px, 0); animation-timing-function: cubic-bezier(.33, .67, .67, 1); }
  34.2% { transform: translate3d(0, -70px, 0); animation-timing-function: cubic-bezier(.33, 0, .67, .33); }
  54% { transform: none; animation-timing-function: cubic-bezier(.33, .67, .67, 1); }
  65.8% { transform: translate3d(0, -25px, 0); animation-timing-function: cubic-bezier(.33, 0, .67, .33); }
  77.6% { transform: none; animation-timing-function: cubic-bezier(.33, .67, .67, 1); }
  84.7% { transform: translate3d(0, -9px, 0); animation-timing-function: cubic-bezier(.33, 0, .67, .33); }
  91.8% { transform: none; animation-timing-function: cubic-bezier(.33, .67, .67, 1); }
  95.9% { transform: translate3d(0, -3px, 0); animation-timing-function: cubic-bezier(.33, 0, .67, .33); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  [data-rise="load"] { animation: lab5-fade .6s ease .6s both, lab5-rise-20 .6s cubic-bezier(.25, .46, .45, .94) .6s both; }
  [data-rise="far"] { animation: lab5-fade .6s ease 1.4s both, lab5-rise-60 .6s cubic-bezier(.25, .46, .45, .94) 1.4s both; }
  /* a hero's circle arrives with its drawing inside it, like a ball bouncing into view (Patrick, 27 Nov): up from
     below, a little past its place, and two smaller settles; it starts when the picture used to, 800 ms after the words */
  [data-rise="ball"] { animation: lab5-fade .25s ease 1.4s both, lab5-ball 1.11s linear 1.4s both; }
  /* three balls land one after another, about a fifth of a second apart: near enough to read as one arrival, far
     enough to see (Patrick, 27 Nov; the first try, 0.05 and 0.12 s apart, could not be seen) */
  [data-rise="ball"][data-nth="2"] { animation-delay: 1.6s, 1.6s; animation-duration: .25s, 1.17s; }
  [data-rise="ball"][data-nth="3"] { animation-delay: 1.82s, 1.82s; animation-duration: .25s, 1.06s; }
  /* the hanging map (Patrick, 27 Nov: "the hanging map on the about page needs to be animated"): it swings in from
     the hand that holds it, each swing smaller than the last, then keeps a slow sway, as a hung thing does. The
     pivot is the 2022 page's own, 40% 10%. The pointer's lean is on the picture inside, so the two add up. */
  [data-rise="swing"] { transform-origin: 40% 10%; animation: lab5-fade .4s ease 1s both, lab5-swing 2.8s ease-in-out 1s both, lab5-sway 7s ease-in-out 3.8s infinite; }
}
.motion [data-rise="review"]:not(.done) { transition: opacity .8s ease, transform .5s cubic-bezier(.25, .46, .45, .94); }
.motion [data-rise="review"]:not(.in) { transform: translate3d(0, 20px, 0); }
.motion [data-rise="bottom"]:not(.done), .motion [data-rise="left"]:not(.done), .motion [data-rise="right"]:not(.done), .motion [data-rise="grow"]:not(.done) { transition: opacity 1s cubic-bezier(.165, .84, .44, 1), transform 1s cubic-bezier(.165, .84, .44, 1); }
.motion [data-rise="bottom"]:not(.in) { transform: translate3d(0, 100px, 0); }
.motion [data-rise="left"]:not(.in) { transform: translate3d(-100px, 0, 0); }
.motion [data-rise="right"]:not(.in) { transform: translate3d(100px, 0, 0); }
.motion [data-rise="grow"]:not(.in) { transform: scale(.75); }
.motion .btn { transition: transform .2s cubic-bezier(.42, 0, 1, 1), background-color .3s, color .25s; }
@media (hover: hover) { .motion .btn:hover { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .motion [data-rise]:not(.in) { opacity: 1; transform: none; }
  .motion [data-rise]:not(.done) { transition: none; }
  .motion .btn { transition: none; }
  .motion .btn:hover { transform: none; }
}
