.contact-card-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
}

.contact-mascot {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(100% - 10px);
  width: 112px;
  max-width: 36%;
  aspect-ratio: 217 / 181;
  transform: perspective(500px) rotateX(var(--mascot-tilt-x, 0deg)) rotateY(var(--mascot-tilt-y, 0deg));
  transform-origin: 50% 94%;
  transition: transform 450ms cubic-bezier(.2, .8, .3, 1);
}

.contact-mascot::before {
  content: "";
  position: absolute;
  right: 14%;
  bottom: 0;
  width: 65%;
  height: 8px;
  border-radius: 50%;
  background: #00000066;
  filter: blur(4px);
  pointer-events: none;
}

.contact-mascot-pose {
  width: 100%;
  height: 100%;
  position: relative;
  transform: rotate(3deg);
  transform-origin: 50% 94%;
}

.contact-mascot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #00000045);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .contact-mascot:hover .contact-mascot-pose { animation: contact-mascot-sway 1.8s ease-in-out infinite; }
}

@keyframes contact-mascot-sway {
  0%, 100% { transform: rotate(3deg) scale(1); }
  25% { transform: rotate(0deg) scale(1.015); }
  65% { transform: rotate(5deg) scale(1.025); }
}

@media (max-width: 600px) {
  .contact-card-wrap { margin-top: 65px; }
  .contact-mascot { width: 100px; right: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-mascot { transition: none; }
}
