/* Moosh peeks.
   Each peek is a clipping window sitting on an edge. His body is cut at the edge line
   and his paws hang --grip px over the front of it. */
.moosh {
  --grip: 0px;
  position: absolute;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  bottom: calc(100% - var(--grip));
}
.moosh picture { display: block; }
.moosh img {
  display: block;
  width: 100%;
  height: auto;
  transform: none;
  transition: transform 360ms cubic-bezier(.22, .8, .24, 1);
}
.moosh.is-armed img { transform: translateY(100%); }
/* While hidden or rising, clip off the toe overhang so nothing shows below the edge.
   The toes drop over the edge as the slide lands. */
.moosh.is-armed,
.moosh.is-rising { clip-path: inset(0 0 var(--grip) 0); }
.moosh.no-anim img { transition: none; }
.moosh-edge { position: relative; }

/* Top peek: hero poster, buy panel, empty-cart card.
   --moosh-r is the host's top-right radius so both paws stay on the straight edge. */
.moosh--top {
  --grip: 5px;
  right: calc(var(--moosh-r, 0px) + 20px);
  width: 132px;
}
@media (max-width: 639px) {
  .moosh--top {
    --grip: 3px;
    right: calc(var(--moosh-r, 0px) + 14px);
    width: 88px;
  }
}

/* Footer pop, cheeks puffed. */
.moosh--footer {
  --grip: 5px;
  right: 12%;
  width: 150px;
}
@media (max-width: 639px) {
  .moosh--footer {
    --grip: 4px;
    right: 16px;
    width: 120px;
  }
}

/* 404: Moosh sits on the caption's top rule, with the copy directly under him. */
.moosh-404-fig {
  margin: 0 auto 28px;
  width: max-content;
  max-width: 100%;
  padding-top: 144px;
}
.moosh-404-cap {
  position: relative;
  width: 340px;
  max-width: 100%;
  margin: 0 auto;
  border-top: 1px solid var(--color-ink-200, rgb(232, 221, 210));
  padding-top: 14px;
  text-align: center;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  color: rgb(53, 44, 39);
  letter-spacing: 0;
}
.moosh-404-cap strong,
.moosh-404-cap span {
  display: block;
  white-space: nowrap;
}
.moosh-404-cap strong {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.moosh-404-cap span {
  margin-top: 2px;
  font-size: 13px;
  line-height: 19px;
  font-weight: 400;
  color: rgba(53, 44, 39, 0.68);
}
.moosh--404 {
  --grip: 11px;
  left: 50%;
  margin-left: -150px;
  width: 300px;
}
@media (max-width: 639px) {
  .moosh-404-fig { padding-top: 106px; }
  .moosh-404-cap { width: min(100%, 340px); }
  .moosh-404-cap strong { font-size: 13px; line-height: 18px; }
  .moosh-404-cap span {
    font-size: clamp(10.5px, 3.05vw, 12px);
    line-height: 16px;
    letter-spacing: -0.012em;
  }
  .moosh--404 {
    --grip: 8px;
    margin-left: -110px;
    width: 220px;
  }
}

@media (max-width: 359px) {
  .moosh--top,
  .moosh--footer { display: none; }
  .moosh-404-cap span {
    font-size: 10px;
    letter-spacing: -0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moosh img { transition: none !important; }
}
