/* The wings and body are masks of one transparent photographic asset. */
.garden-flight-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: layout paint;
  opacity: 0;
}
.garden-flight-layer[data-active="true"] { opacity: 1; }
.garden-butterfly {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(43px, 5vw, 65px);
  aspect-ratio: 1;
  opacity: 0;
  perspective: 220px;
  transform-origin: 50% 52%;
  filter: drop-shadow(0 3px 2px rgb(72 42 13 / .16));
  will-change: transform;
}
.garden-butterfly img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.garden-wing { transform-origin: 50% 48%; }
.garden-wing-left { clip-path: polygon(0 0, 20% 0, 37% 20%, 47% 37%, 48% 46%, 48% 100%, 0 100%); }
.garden-wing-right { clip-path: polygon(80% 0, 100% 0, 100% 100%, 52% 100%, 52% 46%, 53% 37%, 63% 20%); }
.garden-butterfly-body {
  clip-path: polygon(36% 10%, 40% 10%, 50% 33%, 60% 10%, 64% 10%, 53% 38%, 54% 77%, 46% 77%, 47% 38%);
}
.garden-butterfly[data-size="small"] { width: clamp(32px,4vw,48px); }
@media (max-width: 599px) {
  .garden-butterfly { width: 48px; }
  .garden-butterfly[data-size="small"] { width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .garden-flight-layer { display: none; }
}
