/* Editorial cup — floats above the first screen (not clipped inside the hero band). */

/* Vendored hero shell uses overflow-hidden; let the cup bleed outward. */
.field:has(.hero-editorial-cup-stage) > div,
div:has(> .hero-editorial-cup-stage) {
  overflow: visible !important;
}

/* WebGL crema pool — keep the band low; cup sits on espresso above it */
.field:has(.hero-editorial-cup-stage) > div > div:has(> canvas) {
  z-index: 1;
  clip-path: inset(40% 0 0 0);
  opacity: 0.78;
}

.hero-editorial-cup-stage {
  --cup: clamp(2.75rem, 1.75rem + 3.2vw, 5rem);
  position: relative;
  z-index: 20;
  overflow: visible;
  pointer-events: none;
  align-items: flex-end;
  padding-top: calc(var(--cup) * 0.25);
}

.hero-editorial-cup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 0;
  min-height: 0;
  width: 100%;
  overflow: visible;
}

.hero-editorial-cup--center {
  padding-bottom: 0;
}

.hero-editorial-cup__shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 4%;
  height: 22%;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.5);
  filter: blur(28px);
  pointer-events: none;
}

.hero-editorial-cup__img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  /* multiply traps the saucer in a visible “plate” on dark bg */
  mix-blend-mode: normal;
  filter: drop-shadow(0 18px 36px rgb(0 0 0 / 0.55)) saturate(1.1);
}

.hero-editorial-cup--center .hero-editorial-cup__img {
  max-width: min(92vw, calc(var(--cup) * 5.75));
  max-height: min(38svh, calc(var(--cup) * 4.35));
  margin-bottom: calc(var(--cup) * -0.28);
  transform: translateY(calc(var(--cup) * -0.32));
  transform-origin: bottom center;
}

@media (min-width: 56.25rem) {
  .hero-editorial-cup--center .hero-editorial-cup__img {
    max-width: min(36vw, calc(var(--cup) * 6.25));
    max-height: min(44svh, calc(var(--cup) * 4.85));
    margin-bottom: calc(var(--cup) * -0.22);
    transform: translateY(calc(var(--cup) * -0.38));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-editorial-cup--center .hero-editorial-cup__img {
    animation: hero-editorial-cup-float 4.5s ease-in-out infinite;
  }
}

@keyframes hero-editorial-cup-float {
  0%,
  100% {
    transform: translateY(calc(var(--cup) * -0.32));
  }
  50% {
    transform: translateY(calc(var(--cup) * -0.32 - 6px));
  }
}

@media (min-width: 56.25rem) {
  @keyframes hero-editorial-cup-float {
    0%,
    100% {
      transform: translateY(calc(var(--cup) * -0.38));
    }
    50% {
      transform: translateY(calc(var(--cup) * -0.38 - 6px));
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-editorial-cup__img {
    animation: none;
  }
}
