.orbit-ingredient {
  display: block;
  width: 92%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-inline: auto;
}

.orbit-ingredient,
.print-ingredient { filter: url(#ingredient-alpha); }

.orbit-item:nth-child(1) { --entry-x: -19px; --entry-rotation: -12deg; }
.orbit-item:nth-child(2) { --entry-x: 23px; --entry-rotation: 18deg; --entry-delay: 90ms; }
.orbit-item:nth-child(3) { --entry-x: 16px; --entry-rotation: -12deg; --entry-delay: 150ms; }
.orbit-item:nth-child(4) { --entry-x: -12px; --entry-rotation: 13deg; --entry-delay: 120ms; }

.orbit-drift {
  transform: rotate(var(--angle));
  animation: ingredient-settle 840ms cubic-bezier(.21, .76, .24, 1) var(--entry-delay, 0ms) backwards;
}

@keyframes ingredient-settle {
  0% { transform: translate(var(--entry-x), 15px) rotate(calc(var(--angle) + var(--entry-rotation))) scale(.89); opacity: 0; }
  68% { transform: translate(0, -4px) rotate(calc(var(--angle) - 4deg)) scale(1.03); opacity: 1; }
  100% { transform: rotate(var(--angle)); opacity: 1; }
}

.hero-pint-art {
  filter: drop-shadow(.45rem 1rem .62rem rgb(53 21 10 / .26));
}

.hero-pint-art svg { overflow: visible; }

.postcard-illustration {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.postcard-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.22, .75, .28, 1);
}

.postcard:is(:hover, :focus-visible, [aria-expanded="true"]) .postcard-illustration img {
  transform: translateY(-1%) scale(1.09);
}

.postcard-stamp {
  filter: drop-shadow(.1rem .18rem .12rem rgb(49 23 11 / .23));
  transition: transform 470ms cubic-bezier(.2, 1.6, .37, 1);
}

.postcard:is(:hover, :focus-visible, [aria-expanded="true"]) .postcard-stamp {
  animation: none;
  transform: translate(-.11rem, .16rem) rotate(-17deg) scale(1.04);
}

.crate-slots { inset: 2% 7.2% 40% 7.2%; }
.slot-pint svg { bottom: -7%; }
.slot-seed { bottom: 14%; }

.crate:has(.crate-slot.is-flying) [data-carrier-lid] {
  animation: carrier-settle 680ms cubic-bezier(.23, .78, .26, 1);
}

@keyframes carrier-settle {
  0%, 100% { transform: translateY(0); }
  32% { transform: translateY(-3px); }
  82% { transform: translateY(1px); }
}

.process-art {
  background: radial-gradient(ellipse at 26% 18%, rgb(255 245 205 / .34), transparent 68%), var(--process-tint);
}

.process-art > svg { width: 100%; height: 100%; min-height: 0; }

@media (max-width: 760px) {
  .orbit-ingredient { width: 86%; }
  .orbit-item:nth-child(n) { --entry-x: 0px; }
}

@media (max-width: 540px) and (pointer: coarse) {
  .flavor-dock { bottom: calc(var(--wave-height) + 3.15rem); }
}

@media (max-width: 479px) and (max-height: 680px) and (pointer: coarse) {
  .hero-intro { bottom: calc(var(--wave-height) + 8.85rem); }

  .pint-stage {
    top: auto;
    bottom: calc(var(--wave-height) + 12rem);
    width: clamp(7.8rem, min(48vw, 100svh - 435px), 11.8rem);
    transform: translateX(-50%);
  }

  .orbit-item:nth-child(3) { --y: calc(100% - var(--wave-height) - 13.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-drift,
  .crate:has(.crate-slot.is-flying) [data-carrier-lid] { animation: none; }

  .postcard-illustration img,
  .postcard-stamp { transition: none; }

  .postcard:is(:hover, :focus-visible, [aria-expanded="true"]) .postcard-illustration img { transform: none; }
}
