/* One small gesture per illustration, in its original 32 × 32 coordinate space. */
@media (prefers-reduced-motion: no-preference) {
  /* The display advances on the downstroke of 2, +, 3 and =. */
  .icon-tax-preparation.is-performing .calc-key {
    transform-box: fill-box;
    transform-origin: center;
    animation: dm-calc-press 380ms var(--key-delay) cubic-bezier(.33,0,.30,1);
  }
  .calc-key-two { --key-delay: 0ms; }
  .calc-key-plus { --key-delay: 450ms; }
  .calc-key-three { --key-delay: 900ms; }
  .calc-key-equals { --key-delay: 1350ms; }
  @keyframes dm-calc-press {
    0%, 100% { transform: none; filter: brightness(1); }
    28%, 59% { transform: translateY(1.15px) scale(.91); filter: brightness(.69); }
  }
  .icon-tax-preparation.is-performing :is(.calc-read-two,.calc-read-plus,.calc-read-three,.calc-read-total) {
    animation-duration: 2250ms;
    animation-timing-function: step-end;
  }
  .icon-tax-preparation.is-performing .calc-read-two { animation-name: dm-calc-two; }
  .icon-tax-preparation.is-performing .calc-read-plus { animation-name: dm-calc-plus; }
  .icon-tax-preparation.is-performing .calc-read-three { animation-name: dm-calc-three; }
  .icon-tax-preparation.is-performing .calc-read-total { animation-name: dm-calc-total; }
  @keyframes dm-calc-two { 0%,25%,100% { opacity:0; } 5% { opacity:1; } }
  @keyframes dm-calc-plus { 0%,45%,100% { opacity:0; } 25% { opacity:1; } }
  @keyframes dm-calc-three { 0%,65%,100% { opacity:0; } 45% { opacity:1; } }
  @keyframes dm-calc-total { 0%,65%,100% { opacity:1; } 5% { opacity:0; } }

  /* Each leaf narrows edge-on at the spine, then opens onto the left page. */
  .icon-accounting-bookkeeping.is-performing .ledger-leaf {
    transform-box: view-box;
    transform-origin: 16px 8.5px;
    animation: dm-turn-leaf 1.12s cubic-bezier(.38,.05,.29,.98);
  }
  .icon-accounting-bookkeeping.is-performing .leaf-second {
    animation-delay: .55s;
  }
  @keyframes dm-turn-leaf {
    0% { transform: scaleX(1) skewY(0deg); opacity: 0; }
    4% { opacity: 1; }
    20% { transform: scaleX(.86) skewY(-12deg); --leaf-paper: #f4e1bd; }
    48% { transform: scaleX(.08) skewY(-25deg); --leaf-paper: #e4c89c; }
    72% { transform: scaleX(-.76) skewY(-17deg); --leaf-paper: #fbefd9; }
    94% { transform: scaleX(-1) skewY(0deg); opacity: 1; }
    100% { transform: scaleX(-1) skewY(0deg); opacity: 0; }
  }

  /* Fitted enamel halves close once; the gold check stamps onto the joined face. */
  .icon-insurance.is-performing .shield-half {
    transform-box: view-box;
    transform-origin: 16px 16px;
    animation: dm-shield-left 1.75s cubic-bezier(.32,.02,.2,1) 1;
  }
  .icon-insurance.is-performing .shield-right {
    animation-name: dm-shield-right;
  }
  .icon-insurance.is-performing .shield-check {
    transform-box: view-box;
    transform-origin: 16px 16px;
    animation: dm-shield-approve 1.75s cubic-bezier(.25,.07,.2,1) 1;
  }
  @keyframes dm-shield-left {
    0%, 58%, 100% { transform: none; }
    13%, 22% { transform: translate(-3.4px,-.7px) rotate(-5deg); }
    43% { transform: translate(.35px,.2px) rotate(.7deg); }
    49% { transform: translate(-.25px,0) rotate(-.4deg); }
  }
  @keyframes dm-shield-right {
    0%, 58%, 100% { transform: none; }
    13%, 22% { transform: translate(3.4px,-.7px) rotate(5deg); }
    43% { transform: translate(-.35px,.2px) rotate(-.7deg); }
    49% { transform: translate(.25px,0) rotate(.4deg); }
  }
  @keyframes dm-shield-approve {
    0%, 73%, 100% { transform: none; opacity: 1; }
    7%, 43% { transform: translateY(-2px) scale(1.25); opacity: 0; }
    51% { transform: translateY(-2px) scale(1.25); opacity: 0; }
    58% { transform: translateY(.8px) scale(.9); opacity: 1; }
    65% { transform: translateY(-.25px) scale(1.06); opacity: 1; }
  }

  .icon-notary.is-performing .notary-tool {
    transform-box: view-box;
    transform-origin: 19px 16px;
    transform: rotate(8deg);
    animation: dm-stamp-document 1.65s cubic-bezier(.4,.04,.27,1);
  }
  .icon-notary.is-performing .notary-paper {
    animation: dm-paper-pressure 1.65s ease-out;
  }
  .icon-notary.is-performing .notary-seal {
    animation: dm-ink-impression 1.65s ease-out;
  }
  @keyframes dm-stamp-document {
    0%, 100% { transform: rotate(8deg); }
    20% { transform: translate(1px,-1.8px) rotate(13deg); }
    41%, 49% { transform: translate(0,9.1px) rotate(0deg); }
    66% { transform: translate(1.1px,-.7px) rotate(6deg); }
    82% { transform: translate(0,.4px) rotate(9deg); }
  }
  @keyframes dm-paper-pressure {
    0%, 36%, 65%, 100% { transform: none; }
    43%, 49% { transform: translateY(.7px); }
  }
  @keyframes dm-ink-impression {
    0%, 48%, 100% { opacity: 1; }
    16%, 40% { opacity: 0; }
  }

  /* A greeting, three typing beats, then the translated reply. */
  .icon-translation-interpretation.is-performing .greeting-bubble {
    transform-box: view-box;
    transform-origin: 6px 17px;
    animation: dm-greeting 1.9s ease-in-out;
  }
  .icon-translation-interpretation.is-performing .reply-bubble {
    transform-box: view-box;
    transform-origin: 25px 27px;
    animation: dm-reply 1.9s ease-in-out;
  }
  .icon-translation-interpretation.is-performing .reply-word {
    animation: dm-reply-word 1.9s ease-in-out;
  }
  .icon-translation-interpretation.is-performing .typing-dots {
    animation: dm-typing 1.9s linear;
  }
  .icon-translation-interpretation.is-performing .typing-dots circle {
    animation: dm-dot-beat .39s .49s ease-in-out;
  }
  .icon-translation-interpretation.is-performing .typing-dots circle:nth-child(2) { animation-delay: .63s; }
  .icon-translation-interpretation.is-performing .typing-dots circle:nth-child(3) { animation-delay: .77s; }
  @keyframes dm-greeting {
    0%, 48%, 100% { transform: none; }
    16% { transform: translate(-.6px,-1.3px) rotate(-4deg) scale(1.09); }
  }
  @keyframes dm-reply {
    0%, 100% { transform: none; }
    17%, 55% { transform: translate(1px,1px) scale(.94); }
    72% { transform: translate(-.4px,-.8px) scale(1.08); }
  }
  @keyframes dm-reply-word {
    0%, 73%, 100% { opacity: 1; }
    14%, 60% { opacity: 0; }
  }
  @keyframes dm-typing {
    0%, 14%, 65%, 100% { opacity: 0; }
    22%, 58% { opacity: 1; }
  }
  @keyframes dm-dot-beat {
    0%, 100% { transform: none; }
    48% { transform: translateY(-1.8px); }
  }

  /* A boarding pass separates at the perforation as the plane climbs out. */
  .icon-travel-tickets.is-performing {
    --flight-time: 1.85s;
  }
  .icon-travel-tickets.is-performing .boarding-pass {
    transform-box: view-box;
    transform-origin: 13px 17px;
    animation: dm-hold-ticket var(--flight-time) ease-in-out;
  }
  .icon-travel-tickets.is-performing .ticket-stub {
    transform-box: view-box;
    transform-origin: 21px 23.3px;
    animation: dm-tear-stub var(--flight-time) ease-in-out;
  }
  .icon-travel-tickets.is-performing .ticket-plane {
    transform-box: view-box;
    transform-origin: 12.7px 16.2px;
    animation: dm-departure var(--flight-time) linear;
  }
  .icon-travel-tickets.is-performing .flight-trail {
    stroke-dasharray: 1 1;
    animation: dm-contrail var(--flight-time) linear;
  }
  @keyframes dm-hold-ticket {
    0%, 100% { transform: none; }
    14% { transform: rotate(-3deg); }
    34%, 70% { transform: translate(-1px, 2.6px) rotate(4deg); }
  }
  @keyframes dm-tear-stub {
    0%, 13%, 100% { transform: none; }
    25% { transform: rotate(14deg); }
    41%, 64% { transform: translate(3.3px, 2px) rotate(18deg); }
    87% { transform: translate(-.2px, 0) rotate(-2deg); }
  }
  @keyframes dm-departure {
    0%, 100% { transform: none; opacity: 1; }
    17% { transform: translate(-1.1px, 1px) rotate(7deg); opacity: 1; }
    37% { transform: translate(2.8px, -.2px) rotate(4deg) scale(1.06); }
    54% { transform: translate(7.4px, -4.5px) rotate(-9deg) scale(1.08); }
    66% { transform: translate(10.8px, -9px) rotate(-17deg); opacity: 1; }
    76% { transform: translate(13px, -12px) rotate(-22deg) scale(.88); opacity: 0; }
    78% { transform: translate(-1.2px, 1px) scale(.88); opacity: 0; }
  }
  @keyframes dm-contrail {
    0%, 23% { stroke-dashoffset: 1; opacity: 0; }
    38% { stroke-dashoffset: .85; opacity: .85; }
    68% { stroke-dashoffset: .17; opacity: .85; }
    79% { stroke-dashoffset: 0; opacity: .55; }
    92%, 100% { stroke-dashoffset: 0; opacity: 0; }
  }

  /* Each lid edge stays pinned to its own rim as the free edge folds inward. */
  .icon-parcel-shipping.is-performing .parcel-flap-far { animation: dm-close-far 2.6s ease-in-out; }
  .icon-parcel-shipping.is-performing .parcel-flap-near { animation: dm-close-near 2.6s ease-in-out; }
  .icon-parcel-shipping.is-performing .parcel-tape {
    transform-box: fill-box;
    animation: dm-seal-carton 2.6s ease-in-out;
  }
  @keyframes dm-close-far {
    0%, 4%, 100% { d:path('M16 6.6 L26.8 12 L30.45 7.25 L19.65 1.85 Z'); }
    17%, 93% { d:path('M16 6.6 L26.8 12 L26.2 6.65 L15.4 1.25 Z'); }
    32%, 81% { d:path('M16 6.6 L26.8 12 L21.4 14.7 L10.6 9.3 Z'); }
  }
  @keyframes dm-close-near {
    0%, 21%, 100% { d:path('M5.2 12 L16 17.4 L12.15 19.1 L1.35 13.7 Z'); }
    35%, 85% { d:path('M5.2 12 L16 17.4 L16 11.4 L5.2 6 Z'); }
    49%, 77% { d:path('M5.2 12 L16 17.4 L21.4 14.7 L10.6 9.3 Z'); }
  }
  @keyframes dm-seal-carton {
    0%, 48% { opacity:0; clip-path:inset(0 100% 0 0); }
    50% { opacity:1; clip-path:inset(0 98% 0 0); }
    61%, 73% { opacity:1; clip-path:inset(0); }
    78%, 100% { opacity:0; clip-path:inset(0); }
  }

  /* One gold coin goes from the sending wallet to the receiving wallet. */
  .icon-money-transfers.is-performing .transfer-coin {
    animation: dm-send-coin 1.8s ease-in-out;
  }
  .icon-money-transfers.is-performing .transfer-route {
    animation: dm-clear-route 1.8s ease-in-out;
  }
  .icon-money-transfers.is-performing .transfer-receiver {
    transform-box: view-box;
    transform-origin: 24.5px 27.9px;
    animation: dm-wallet-catch 1.8s ease-in-out;
  }
  .icon-money-transfers.is-performing .transfer-received {
    animation: dm-transfer-receipt 1.8s ease-in-out;
  }
  @keyframes dm-send-coin {
    0%, 6%, 100% { transform: translate(0, 0); opacity: 1; }
    21% { transform: translate(3.5px, -3.4px); opacity: 1; }
    37% { transform: translate(9.6px, -4.5px); opacity: 1; }
    49% { transform: translate(14.6px, -1.5px); opacity: 1; }
    59% { transform: translate(16.8px, 1.3px); opacity: 1; }
    67% { transform: translate(16.8px, 6.2px); opacity: 0; }
    82% { transform: translate(0, 4px); opacity: 0; }
  }
  @keyframes dm-clear-route {
    0%, 100% { opacity: 1; }
    17%, 83% { opacity: .08; }
  }
  @keyframes dm-wallet-catch {
    0%, 57%, 83%, 100% { transform: scale(1); }
    65% { transform: scale(1.05, .9); }
    73% { transform: scale(.985, 1.035); }
  }
  @keyframes dm-transfer-receipt {
    0%, 64%, 96%, 100% { opacity: 0; }
    73%, 85% { opacity: 1; }
  }

  /* A telephone receiver lifts from its cradle, connects once, then rests. */
  .icon-calling-cards.is-performing .phone-receiver {
    transform-box: view-box;
    transform-origin: 11.5px 17px;
    animation: dm-lift-receiver 1.85s cubic-bezier(.34,.02,.2,1) 1;
  }
  .icon-calling-cards.is-performing .call-signals {
    opacity: 1;
  }
  .icon-calling-cards.is-performing .call-wave {
    transform-box: view-box;
    transform-origin: 22.3px 12.1px;
    animation: dm-call-pulse-near 1.85s ease-out 1;
  }
  .icon-calling-cards.is-performing .call-wave-far {
    animation-name: dm-call-pulse-far;
  }
  @keyframes dm-lift-receiver {
    0%, 96%, 100% { transform: none; }
    23%, 67% { transform: translate(-.8px,-3.5px) rotate(-8deg); }
    85% { transform: translate(0,.35px) rotate(1.5deg); }
  }
  @keyframes dm-call-pulse-near {
    0%, 100% { transform: none; opacity: 0; }
    29%, 76% { transform: scale(.76); opacity: 0; }
    40% { transform: scale(.91); opacity: 1; }
    56% { transform: scale(1.09); opacity: .95; }
    68% { transform: scale(1.16); opacity: 0; }
  }
  @keyframes dm-call-pulse-far {
    0%, 100% { transform: none; opacity: 0; }
    39%, 85% { transform: scale(.78); opacity: 0; }
    51% { transform: scale(.94); opacity: .85; }
    65% { transform: scale(1.05); opacity: .9; }
    77% { transform: scale(1.1); opacity: 0; }
  }

  /* Only the marker lifts. The contact point anchors the ripple to the map. */
  .icon-directions-pin.is-performing {
    --pin-time: 1.15s;
  }
  .icon-directions-pin.is-performing .pin-marker,
  .icon-directions-pin.is-performing .pin-contact,
  .icon-directions-pin.is-performing .pin-ripple {
    transform-box: view-box;
    transform-origin: 16px 26px;
  }
  .icon-directions-pin.is-performing .pin-marker {
    animation: dm-land-marker var(--pin-time) ease-out;
  }
  .icon-directions-pin.is-performing .pin-contact {
    animation: dm-contact-shadow var(--pin-time) ease-out;
  }
  .icon-directions-pin.is-performing .pin-ripple {
    animation: dm-impact-ripple var(--pin-time) ease-out;
  }
  @keyframes dm-land-marker {
    0%, 70%, 100% { transform: none; }
    24% {
      transform: translateY(-6.2px) rotate(-3deg);
      animation-timing-function: cubic-bezier(.48,.02,.88,.45);
    }
    44% { transform: scale(1.09,.91); }
    54% { transform: translateY(-1.15px) scale(.98,1.025); }
  }
  @keyframes dm-contact-shadow {
    0%, 70%, 100% { opacity: .55; transform: none; }
    24% { opacity: .22; transform: scale(.62); }
    44% { opacity: .85; transform: scale(1.2); }
  }
  @keyframes dm-impact-ripple {
    0%, 43% { transform: scale(.18); opacity: 0; }
    47% { transform: scale(.29); opacity: .95; }
    73% { transform: scale(.83); opacity: .66; }
    100% { transform: scale(1); opacity: 0; }
  }

  .icon-compass.is-performing .compass-needle {
    transform-box: view-box;
    transform-origin: 16px 18px;
    animation: dm-find-north 1.95s cubic-bezier(.38,.03,.32,1);
  }
  .icon-compass.is-performing .compass-glint {
    transform-box: view-box;
    transform-origin: 16px 18px;
    animation: dm-brass-glint 1.95s ease-in-out;
  }
  .icon-compass.is-performing .compass-north {
    animation: dm-north-marker 1.95s ease-out;
  }
  @keyframes dm-find-north {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-30deg); }
    38% { transform: rotate(84deg); }
    59% { transform: rotate(-23deg); }
    74% { transform: rotate(8deg); }
    88% { transform: rotate(-2deg); }
  }
  @keyframes dm-brass-glint {
    0%, 100% { transform: rotate(0deg); opacity: 1; }
    43% { transform: rotate(78deg); opacity: .9; }
    64% { transform: rotate(114deg); opacity: 0; }
    67% { transform: rotate(0deg); opacity: 0; }
  }
  @keyframes dm-north-marker {
    0%, 58%, 100% { fill: #59303e; }
    76% { fill: #a77930; }
  }
}
