.illustration-stage {
  position: relative;
  display: block;
}

.art-motion-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  --art-animation: art-motion-visibility;
  --art-ink: #11120f;
  --art-paper: #fefefe;
  --art-gold: #ffca38;
}

.art-ink { fill: var(--art-ink); }
.art-paper { fill: var(--art-paper); }
.art-gold { fill: var(--art-gold); }
.art-ink-line { stroke: var(--art-ink); }
.art-paper-line { stroke: var(--art-paper); }
.art-gold-line { stroke: var(--art-gold); }

path:is(.art-ink-line, .art-paper-line, .art-gold-line) {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-motion-overlay,
.art-motion-part {
  animation-duration: var(--art-duration, 1.9s);
  animation-fill-mode: both;
}

.art-motion-overlay { animation-timing-function: linear; }

.art-motion-part {
  transform-box: view-box;
  transform-origin: var(--art-pivot, 0 0);
  animation-timing-function: var(--art-easing, ease-in-out);
}

@media (prefers-reduced-motion: no-preference) {
  :where(.product-card:has(:focus-visible), .card-art:focus-visible,
    .product-hero-art:focus-visible, .product-hero-art:has(:focus-visible))
    :is(.art-motion-overlay, .art-motion-part) {
    animation-name: var(--art-animation);
  }

  @media (hover: hover) and (pointer: fine) {
    :where(.product-card:hover, .card-art:hover, .product-hero-art:hover)
      :is(.art-motion-overlay, .art-motion-part) {
      animation-name: var(--art-animation);
    }
  }
}

@keyframes art-motion-visibility {
  0%, 100% { opacity: 0; }
  4%, 97% { opacity: 1; }
}

.illustration-stage--handfont { --art-duration: 2.15s; }
.art-handfont-pen {
  --art-animation: art-handfont-write;
  --art-pivot: 403px 512px;
}
.art-handfont-stroke {
  --art-animation: art-handfont-ink;
  --art-easing: linear;
}

@keyframes art-handfont-write {
  0%, 100% { transform: none; }
  24% { transform: translate(13px, -78px) rotate(-4deg); }
  38% { transform: translate(30px, -81px) rotate(-3deg); }
  51% { transform: translate(48px, -79px) rotate(-1deg); }
  63% { transform: translate(68px, -77px) rotate(1deg); }
  76% { transform: translate(88px, -94px) rotate(-3deg); }
  83% { transform: translate(92px, -112px) rotate(-6deg); }
}

@keyframes art-handfont-ink {
  0%, 24% { stroke-dashoffset: 1; opacity: 0; }
  25% { opacity: 1; }
  38% { stroke-dashoffset: .78; }
  51% { stroke-dashoffset: .55; }
  63% { stroke-dashoffset: .3; }
  76%, 100% { stroke-dashoffset: 0; }
  85% { opacity: 1; }
  98%, 100% { opacity: 0; }
}

.art-ezscanner-sweep {
  --art-animation: art-ezscanner-read;
  --art-easing: linear;
}
.art-ezscanner-brackets { --art-animation: art-ezscanner-found; }

@keyframes art-ezscanner-read {
  0% { transform: translateY(-66px); }
  82%, 100% { transform: translateY(246px); }
}

@keyframes art-ezscanner-found {
  0%, 48%, 100% { opacity: 0; }
  71%, 84% { opacity: 1; }
}

.art-pixcompress-plate { --art-animation: art-pixcompress-press; }
.art-pixcompress-pressure { --art-animation: art-pixcompress-marks; }

@keyframes art-pixcompress-press {
  0%, 100% { transform: none; }
  31% { transform: translateY(18px); }
  46%, 63% { transform: translateY(24px); }
  84% { transform: translateY(4px); }
}

@keyframes art-pixcompress-marks {
  0%, 25%, 100% { opacity: 0; }
  47%, 58% { opacity: .92; }
  78% { opacity: 0; }
}

.art-ezstatus-photo { --art-animation: art-ezstatus-file-photo; }
.art-ezstatus-frame { --art-animation: art-ezstatus-file-film; }
.art-ezstatus-frame-middle { animation-delay: .16s; }
.art-ezstatus-frame-bottom { animation-delay: .32s; }

@keyframes art-ezstatus-file-photo {
  0%, 100% { transform: none; }
  38% { transform: translate(7px, 25px); }
  54%, 67% { transform: translate(5px, 19px); }
}

@keyframes art-ezstatus-file-film {
  0%, 6%, 57%, 100% { opacity: 0; }
  28%, 35% { opacity: .57; }
}

.art-songlet-notes {
  --art-animation: art-songlet-chord;
  --art-pivot: 648px 105px;
}
.art-songlet-eighth {
  --art-animation: art-songlet-beat;
  --art-pivot: 687px 169px;
}
.art-songlet-sound { --art-animation: art-songlet-ring; }

@keyframes art-songlet-chord {
  0%, 53%, 100% { transform: none; }
  24% { transform: translate(10px, -21px) rotate(-9deg); }
  71% { transform: translate(6px, -12px) rotate(-5deg); }
}

@keyframes art-songlet-beat {
  0%, 15%, 61%, 100% { transform: none; }
  34% { transform: translate(12px, -22px) rotate(10deg); }
  80% { transform: translate(6px, -13px) rotate(7deg); }
}

@keyframes art-songlet-ring {
  0%, 54%, 100% { opacity: 0; }
  25%, 74% { opacity: .94; }
}

.illustration-stage--car-code-guide { --art-duration: 2s; }
.art-car-left-needle {
  --art-animation: art-car-speedometer;
  --art-pivot: 256.5px 292.3px;
}
.art-car-right-needle {
  --art-animation: art-car-tachometer;
  --art-pivot: 565.4px 273.4px;
}
.art-car-warning { --art-animation: art-car-warning-light; }

@keyframes art-car-speedometer {
  0%, 100% { transform: none; }
  35% { transform: rotate(100deg); }
  51%, 63% { transform: rotate(88deg); }
}

@keyframes art-car-tachometer {
  0%, 100% { transform: none; }
  29% { transform: rotate(52deg); }
  43%, 57% { transform: rotate(44deg); }
  69% { transform: rotate(47deg); }
}

@keyframes art-car-warning-light {
  0%, 20%, 100% { opacity: 0; }
  41%, 65% { opacity: 1; }
}

.illustration-stage--pixmagnify { --art-duration: 2.05s; }
.art-pixmagnify-zoom {
  --art-animation: art-pixmagnify-focus;
  --art-pivot: 414px 217px;
}
.art-pixmagnify-glint { --art-animation: art-pixmagnify-reflection; }

@keyframes art-pixmagnify-focus {
  0%, 100% { transform: none; }
  38% { transform: translate(2px, 2px) scale(1.22); }
  66% { transform: translate(-10px, 6px) scale(1.23); }
}

@keyframes art-pixmagnify-reflection {
  0%, 20% { transform: translateX(-235px); opacity: 0; }
  41%, 57% { opacity: .48; }
  84%, 100% { transform: translateX(231px); opacity: 0; }
}

.art-noisewell-wave {
  --art-animation: art-noisewell-breathe;
  --art-pivot: 403px 245px;
}
.art-noisewell-echo {
  --art-animation: art-noisewell-echo;
  --art-pivot: 403px 245px;
}
.art-noisewell-dial {
  --art-animation: art-noisewell-turn;
  --art-pivot: 515px 381px;
}

@keyframes art-noisewell-breathe {
  0%, 100% { transform: none; }
  40%, 63% { transform: translate(8px, -2px) scale(1.12); }
}

@keyframes art-noisewell-echo {
  0%, 20%, 100% { opacity: 0; transform: scale(.89); }
  42%, 59% { opacity: .95; }
  85% { opacity: 0; transform: translateY(-9px) scale(1.12); }
}

@keyframes art-noisewell-turn {
  0%, 100% { transform: none; }
  36% { transform: rotate(78deg); }
  54%, 65% { transform: rotate(71deg); }
}

.illustration-stage--critbox { --art-duration: 1.65s; }
.art-critbox-die {
  --art-animation: art-critbox-roll;
  --art-pivot: 233px 429px;
}
.art-critbox-shadow {
  --art-animation: art-critbox-shadow;
  --art-pivot: 222px 471px;
}

@keyframes art-critbox-roll {
  0%, 100% { transform: none; }
  10% { transform: translateY(2px) scale(.99, .99); }
  34% { transform: translate(-12px, -61px) rotate(-17deg); }
  55% { transform: translate(5px, -1px) rotate(8deg); }
  72% { transform: translate(-1px, -18px) rotate(-4deg); }
  88% { transform: none; }
}

@keyframes art-critbox-shadow {
  0%, 10%, 55%, 88%, 100% { transform: none; opacity: 1; }
  34% { transform: scale(.66, .52); opacity: .7; }
  72% { transform: scale(.87, .76); opacity: .89; }
}
