/* Work page head: a kanna, the Japanese hand plane, on a beam across two
   trestles. Takumi is the word for a master craftsman, and this page lists
   finished pieces. Once the scene is painted in, the plane is pulled the
   length of the beam, a shaving rises from its mouth as it goes, and the
   planed face is left behind it. Under reduced motion the pass is done.

   The drawing lives in source/heads/work.svg. Loaded after paint.css. */

/* The plane travels 348 units, from the right end of the beam to where it is
   drawn. The planed face is uncovered from the right, its edge under the
   plane's mouth: 554 units across the drawing at the start, 206 at the end.
   The three share one duration and one curve, so they stay together. */
@keyframes work-pass { from { transform: translateX(calc(348 * var(--u))); } }
@keyframes work-planed { from { clip-path: inset(0 0 0 86.6%); } to { clip-path: inset(0 0 0 32.2%); } }
@keyframes work-shaving {
  from { transform: translateX(calc(348 * var(--u))); clip-path: inset(54% 0 0 0); }
  to { clip-path: inset(38% 0 0 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .work-plane, .work-planed, .work-shaving { animation: work-pass 2.6s cubic-bezier(0.45, 0, 0.3, 1) 2.3s both; }
  .work-plane, .work-shaving { will-change: transform; }
  .work-planed { animation-name: work-planed; }
  .work-shaving { animation-name: work-shaving; }
}
