/* Motion for the composed step drawings of the transcribed recipes (js/scenes-cards.js).
   The kit's own motion (oven glow, whisk, mixer, simmer bubbles, steam, fridge mist, timer) comes from css/scenes.css;
   these add stirring, chopping, rolling, pouring, frying and a sparkle on the finished dish. Gentle, looping,
   a little uneven so it reads as hands at work rather than a machine. */
.sc-card .c-swirl, .sc-card .c-chop, .sc-card .c-sizzle, .sc-card .c-glint, .sc-card .c-fry, .sc-card .c-bob, .sc-card .c-stir { transform-box: fill-box; }
.sc-card .c-swirl { transform-origin: center; animation: cSwirl 3.4s linear infinite; }
.sc-card .c-swirl.fast { animation-duration: 1.3s; }
@keyframes cSwirl { to { transform: rotate(360deg); } }
.sc-card .c-stir { transform-origin: 85% 15%; animation: cStir 3.4s linear infinite; }
@keyframes cStir { /* the spoon's tip goes round the bowl with the swirl: left, far side, right, near side */
  0%, 100% { transform: translate(-28px, 0) rotate(-5deg); } 12.5% { transform: translate(-20px, -4px) rotate(-3deg); } 25% { transform: translate(0, -6px) rotate(0); }
  37.5% { transform: translate(20px, -4px) rotate(3deg); } 50% { transform: translate(28px, 0) rotate(5deg); } 62.5% { transform: translate(20px, 4px) rotate(3deg); }
  75% { transform: translate(0, 6px) rotate(0); } 87.5% { transform: translate(-20px, 4px) rotate(-3deg); } }
.sc-card .c-chop { transform-origin: 96% 70%; animation: cChop 1.15s cubic-bezier(.5, 0, .4, 1) infinite; }
@keyframes cChop { 0%, 100% { transform: rotate(0deg); } 42% { transform: rotate(-12deg); } 58% { transform: rotate(-11deg); } 80% { transform: rotate(1deg); } }
.sc-card .c-roll { transform-box: fill-box; transform-origin: center; animation: cRoll 2.4s cubic-bezier(.45, .05, .55, .95) infinite alternate; }
@keyframes cRoll { from { transform: translateY(-8px) scale(.95); } to { transform: translateY(14px) scale(1.04); } }
/* pours are one unbroken stream, breathing a little; a long soft highlight slides down the thin top line */
.sc-card .c-stream { animation: cStreamW 1.3s ease-in-out infinite; }
@keyframes cStreamW { 0%, 100% { opacity: 1; } 50% { opacity: .92; } }
.sc-card .c-stream.hi { stroke-dasharray: 18 40; animation: cStream .9s linear infinite; }
@keyframes cStream { to { stroke-dashoffset: -58; } }
.sc-card .c-fry { transform-origin: center; animation: cFry 1.7s ease-in-out infinite; }
@keyframes cFry { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-.7px) scale(1.012, .99); } }
.sc-card .c-sizzle { transform-origin: center; opacity: 0; animation: cSizzle 1.5s ease-out infinite; }
@keyframes cSizzle { 0% { transform: scale(.3); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.sc-card .c-bob { animation: cBob 2.6s ease-in-out infinite alternate; }
@keyframes cBob { from { transform: translateY(-1.6px) rotate(-2deg); } to { transform: translateY(1.6px) rotate(2deg); } }
.sc-card .c-glint { transform-origin: center; opacity: 0; animation: cGlint 2.6s ease-in-out infinite; }
@keyframes cGlint { 0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; } 30% { transform: scale(1) rotate(30deg); opacity: 1; } 55% { transform: scale(.2) rotate(60deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sc-card * { animation: none !important; } .sc-card .c-glint, .sc-card .c-sizzle { opacity: 0 !important; } }
.sc-card .c-fall { opacity: 0; animation: cFall 1.6s cubic-bezier(.4, 0, .9, .6) infinite; }
@keyframes cFall { 0% { transform: translate(0, -6px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(var(--dx, 0), 14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sc-card .c-fall { opacity: 1 !important; } }
/* things added to the bowl drop in one after another and sink; flour drifts down from the sifter; the processor's load tumbles */
.sc-card .c-drop { opacity: 0; animation: cDrop 2.6s cubic-bezier(.5, 0, .9, .5) infinite; }
@keyframes cDrop { 0% { transform: translateY(70px); opacity: 0; } 10% { opacity: 1; transform: translateY(70px); } 55% { transform: translateY(calc(var(--fy, 150px))); opacity: 1; } 70%, 100% { transform: translateY(calc(var(--fy, 150px) + 4px)); opacity: 0; } }
.sc-card .c-sift { opacity: 0; animation: cSift 1.6s linear infinite; }
@keyframes cSift { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .95; } 100% { transform: translateY(46px); opacity: 0; } }
.sc-card .c-tumble { transform-box: fill-box; transform-origin: center; animation: cTumble .9s ease-in-out infinite alternate; }
@keyframes cTumble { from { transform: translate(-3px, 2px) rotate(-4deg); } to { transform: translate(3px, -3px) rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .sc-card .c-drop, .sc-card .c-sift { opacity: 0 !important; } }

/* the food processor: the S-blade spins round its post (seen from the side its arms sweep across and back),
   and the food is flung round the bowl, larger as it passes the near side, smaller and dimmer at the back */
.sc-card .c-spinY { animation: cSpinY .32s linear infinite; }
@keyframes cSpinY { 0% { transform: scaleX(1); } 25% { transform: scaleX(.08); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(-.08); } 100% { transform: scaleX(1); } }
.sc-card .c-orbit { transform-box: fill-box; transform-origin: center; animation: cOrbit .9s linear infinite; }
@keyframes cOrbit {
  0% { transform: translate(-26px, 0) scale(1); opacity: .9; } 25% { transform: translate(0, 6px) scale(1.18); opacity: 1; }
  50% { transform: translate(26px, 0) scale(1); opacity: .9; } 75% { transform: translate(0, -5px) scale(.8); opacity: .55; } 100% { transform: translate(-26px, 0) scale(1); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .sc-card .c-spinY, .sc-card .c-orbit { animation: none !important; } }

/* the hand mixer travels slowly round the bowl, as you'd guide it */
.sc-card .c-mixround { animation: cMixRound 4.6s ease-in-out infinite; }
@keyframes cMixRound { 0%, 100% { transform: translate(-14px, 0); } 25% { transform: translate(0, -4px); } 50% { transform: translate(14px, 0); } 75% { transform: translate(0, 4px); } }
/* where something drops in, or a pour lands: a ring spreads */
.sc-card .c-splash { transform-box: fill-box; transform-origin: center; opacity: 0; animation: cSplash 2.6s ease-out infinite; }
@keyframes cSplash { 0%, 54% { opacity: 0; transform: scale(.3); } 56% { opacity: .9; transform: scale(.5); } 80%, 100% { opacity: 0; transform: scale(2); } }
.sc-card .c-splash0, .sc-card .c-splash1 { animation: cRing 1.4s ease-out infinite; } .sc-card .c-splash1 { animation-delay: -.7s; }
@keyframes cRing { 0% { opacity: .85; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }
/* pouring from a bowl: it tips a little further as it empties, then eases back */
.sc-card .c-tilt { transform-box: fill-box; transform-origin: 20% 60%; animation: cTilt 4s ease-in-out infinite; }
@keyframes cTilt { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(6deg); } }
/* frying: now and then the pan is jerked, and what's in it flips up and lands again */
.sc-card .c-shake { animation: cShake 3.2s ease-in-out infinite; }
@keyframes cShake { 0%, 60%, 100% { transform: translate(0, 0) rotate(0); } 66% { transform: translate(-7px, 1px) rotate(-1.5deg); } 72% { transform: translate(6px, -2px) rotate(1.2deg); } 80% { transform: translate(0, 0) rotate(0); } }
.sc-card .c-flip { transform-box: fill-box; transform-origin: center; animation: cFlip 3.2s cubic-bezier(.3, 0, .5, 1) infinite; }
@keyframes cFlip { 0%, 62%, 100% { transform: translateY(0) rotate(0) scaleY(1); } 72% { transform: translateY(var(--hop, -14px)) rotate(var(--spin, 180deg)) scaleY(-1); } 80% { transform: translateY(0) rotate(var(--spin, 180deg)) scaleY(1); } 84% { transform: translateY(-1.5px) rotate(var(--spin, 180deg)); } 88% { transform: translateY(0) rotate(var(--spin, 180deg)); } }
/* in the oven: it rises a little and browns as the minutes pass */
.sc-card .c-bake { transform-box: fill-box; transform-origin: 50% 100%; animation: cBake 7s ease-in-out infinite; }
@keyframes cBake { 0% { transform: scaleY(.95); filter: saturate(.85) brightness(1.06); } 70%, 88% { transform: scaleY(1.04); filter: saturate(1.15) brightness(.9) sepia(.18); } 100% { transform: scaleY(.95); filter: saturate(.85) brightness(1.06); } }
@media (prefers-reduced-motion: reduce) { .sc-card .c-mixround, .sc-card .c-splash, .sc-card .c-tilt, .sc-card .c-shake, .sc-card .c-flip, .sc-card .c-bake { animation: none !important; } .sc-card .c-splash { opacity: 0 !important; } }
