.story-sample-link { margin-top: 22px; min-height: 44px; font-size: 12px; }
@media (max-width: 580px) {
  .story-sample-link { margin-top: 12px; font-size: 11px; }
  .story-sticky { min-height: 760px; height: auto; padding-bottom: 18px; }
  .product-story { min-height: 1100px; }
}
/* Full transparent objects, not clipped halves of a closed jar. */
.story-stage { --jar-size: 600px; }
.story-stage .animated-jar { width: min(100%, var(--jar-size)); height: auto; aspect-ratio: 1; flex-shrink: 0; }
.animated-jar .jar-closed { visibility: visible; }
.animated-jar .jar-lower, .animated-jar .jar-upper { visibility: hidden; clip-path: none; }
.animated-jar[data-layers-ready=true] .jar-closed { visibility: hidden; }
.animated-jar[data-layers-ready=true] .jar-lower, .animated-jar[data-layers-ready=true] .jar-upper { visibility: visible; }
.animated-jar .jar-lower { inset: 0; width: 100%; height: 100%; object-fit: contain; }
.animated-jar .jar-upper { inset: auto; left: var(--cap-left); top: var(--cap-top); width: var(--cap-width); height: var(--cap-height); object-fit: fill; z-index: 2; transform: translateY(calc(var(--lid-lift) * -1)); }
/* Registration matches the cap silhouette to the complete threaded neck.
   The isolated source canvases are preserved; positioning changes only in CSS. */
.story-stage.coconut { --cap-left: 18.894%; --cap-top: -8.69%; --cap-width: 62.278%; --cap-height: 40.678%; }
.story-stage.honey { --cap-left: 22.985%; --cap-top: 1.476%; --cap-width: 53.919%; --cap-height: 31.373%; }
@media (max-width: 1100px) { .story-stage { --jar-size: 540px; } }
@media (max-width: 800px) { .story-stage { --jar-size: 460px; } }
@media (max-width: 580px) { .story-stage { --jar-size: 365px; } }
@media (prefers-reduced-motion: reduce) {
  .product-story, .story-sticky { min-height: 0; height: auto; }
  .animated-jar[data-layers-ready=true] .jar-closed { visibility: visible; }
  .animated-jar[data-layers-ready=true] .jar-lower, .animated-jar[data-layers-ready=true] .jar-upper { visibility: hidden; }
}
