.syringe-assembly {
  position: absolute;
  width: min(390px, 34vw);
  height: 585px;
  right: 12%;
  top: 0;
  perspective: 1200px;
  filter: drop-shadow(0 38px 45px rgba(0, 0, 0, .42));
}

.syringe-tilt {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: product-yaw 12s ease-in-out infinite;
}

.part {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

.body-part {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  z-index: 2;
}

.ring-carriage {
  --thread-pitch: 8px;
  --thread-travel: 16px;
  position: absolute;
  width: 32%;
  aspect-ratio: 256 / 267;
  left: 34%;
  bottom: 16.5%;
  z-index: 4;
  pointer-events: none;
  animation: ring-travel 2s ease-in-out infinite;
}

.ring-spin {
  position: absolute;
  inset: 0;
  background-image: url('seringa-ring-sprite.png');
  background-repeat: no-repeat;
  background-size: 1200% 100%;
  background-position: 0 0;
  animation: ring-rotation 2s steps(11, end) infinite;
}

.cap-part {
  width: 25%;
  left: 37.5%;
  top: 1.5%;
  z-index: 5;
  transform-origin: 50% 100%;
  animation: cap-release 12s cubic-bezier(.65, 0, .25, 1) infinite;
}

.assembly-shadow {
  position: absolute;
  width: 55%;
  height: 18px;
  left: 22.5%;
  bottom: 4%;
  border-radius: 50%;
  background: rgba(0, 0, 0, .48);
  filter: blur(10px);
  transform: translateZ(-30px);
  animation: shadow-breathe 12s ease-in-out infinite;
}

@keyframes product-yaw {
  0%, 100% { transform: rotateY(-9deg) rotateX(2deg) translateY(4px); }
  25% { transform: rotateY(8deg) rotateX(-1deg) translateY(-8px); }
  50% { transform: rotateY(-5deg) rotateX(1deg) translateY(-3px); }
  75% { transform: rotateY(7deg) rotateX(-2deg) translateY(-10px); }
}

@keyframes ring-travel {
  0% { transform: translate3d(0, 0, 8px) scaleY(.88); }
  50% { transform: translate3d(0, calc(-1 * var(--thread-travel)), 8px) scaleY(.88); }
  100% { transform: translate3d(0, 0, 8px) scaleY(.88); }
}

@keyframes ring-rotation {
  0% { background-position: 0 0; }
  50% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@keyframes cap-release {
  0%, 18% { transform: translate3d(0, 0, 24px) rotate(0deg); }
  40%, 58% { transform: translate3d(74px, -52px, 65px) rotate(12deg); }
  82%, 100% { transform: translate3d(0, 0, 24px) rotate(0deg); }
}

@keyframes shadow-breathe {
  0%, 100% { opacity: .65; transform: scaleX(1) translateZ(-30px); }
  50% { opacity: .35; transform: scaleX(.82) translateZ(-30px); }
}

@media (max-width: 900px) {
  .syringe-assembly {
    width: 255px;
    height: 390px;
    right: 10%;
    top: -2%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .syringe-tilt, .ring-carriage, .ring-spin, .cap-part, .assembly-shadow { animation: none; }
}
