/* Home page: scroll motion added on top of css/style.css. js/home-motion.js adds .hm-js to .mo, marks blocks with [data-hm]
   and adds .hm-in when one scrolls into view; the mark is removed once its animation ends, so a block's own rules take over again.
   Nothing here runs for people who ask for less motion, or without JavaScript. */
@media (prefers-reduced-motion:no-preference){
  .hm-js [data-hm]:not(.hm-in){opacity:0}
  .hm-js [data-hm].hm-in{animation:hm-rise .75s cubic-bezier(.2,.7,.2,1) var(--hd,0s) backwards}
  .hm-js [data-hm=left].hm-in{animation-name:hm-left}
  .hm-js [data-hm=right].hm-in{animation-name:hm-right}
  .hm-js [data-hm=pop].hm-in{animation-name:hm-pop}
  @keyframes hm-rise{from{opacity:0;transform:translateY(24px)}}
  @keyframes hm-left{from{opacity:0;transform:translateX(-32px)}}
  @keyframes hm-right{from{opacity:0;transform:translateX(32px)}}
  @keyframes hm-pop{from{opacity:0;transform:translateY(18px) scale(.96)}}
  /* The workspace window leans back until it is scrolled into view (the angle comes from the script) */
  .hm-js .wsframe{transform:perspective(1800px) rotateX(var(--hm-rx,0deg));transform-origin:50% 0;will-change:transform}
}
/* Sideways moves become a plain rise on narrow screens, where there is no room beside the block */
@media (prefers-reduced-motion:no-preference) and (max-width:900px){
  .hm-js [data-hm=left].hm-in,.hm-js [data-hm=right].hm-in{animation-name:hm-rise}
}
@media print{.hm-js [data-hm]{opacity:1!important;animation:none!important}}
