/* Motion below the Hero. JS only adds these classes while each reveal runs. */
.category-panel .section-motion-item,
.section .section-motion-item{
  transition-property:opacity,transform;
  transition-duration:var(--section-duration,700ms);
  transition-timing-function:cubic-bezier(.22,1,.36,1);
  transition-delay:var(--section-delay,0ms);
}
.category-panel .section-motion-pending,
.section .section-motion-pending{opacity:0;transform:translate3d(0,20px,0)}
.category-panel .section-motion-card.section-motion-pending,
.gift-section .gift-picture.section-motion-pending{transform:translate3d(0,18px,0)}
.gift-section .gift-story.section-motion-pending{transform:translate3d(0,22px,0)}
.category-panel .section-motion-visible,
.section .section-motion-visible{opacity:1;transform:translate3d(0,0,0)}

/* One small glint, then a long rest; never across the heading itself. */
.category-head .collection-ornament{animation:collection-gold-glint 9s ease-in-out infinite}
@keyframes collection-gold-glint{
  0%,17%,100%{text-shadow:none}
  7%{text-shadow:0 0 9px #e6c593,0 0 3px #fff8e4}
}

/* The primary action in each lower section receives a quiet, intermittent glow. */
.gift-story > .btn,.moment .btn,.form-card > .btn{
  animation:section-cta-breathe 9s ease-in-out infinite;
}
@keyframes section-cta-breathe{
  0%,24%,100%{box-shadow:0 8px 20px #80535620}
  10%{box-shadow:0 9px 25px #80535632,0 0 17px #e1b99546}
}

@media(hover:hover) and (pointer:fine){
  .category-carousel .category-card:not(.section-motion-item){
    transition:transform 330ms cubic-bezier(.22,1,.36,1),box-shadow 330ms ease;
  }
  .category-carousel .category-card:not(.section-motion-item):hover{
    transform:translateY(-6px) scale(1.005);
    box-shadow:0 19px 39px #77595a2a,0 0 24px rgba(var(--flavor-rgb),.55);
  }
  .category-carousel .category-card{overflow:hidden}
  .category-carousel .category-card img{transition:transform 600ms ease}
  .category-carousel .category-card:hover img{transform:scale(1.02)}
  .section .btn{transition:transform 280ms ease,box-shadow 280ms ease,background 280ms ease}
  .section .btn:hover{transform:translateY(-2px);animation:none;box-shadow:0 12px 28px #754d4a32}
}

@media(max-width:800px){
  .category-head .collection-ornament,.gift-story > .btn,.moment .btn,.form-card > .btn{animation:none}
}
@media(prefers-reduced-motion:reduce){
  .category-panel .section-motion-item,.section .section-motion-item,
  .category-panel .section-motion-pending,.section .section-motion-pending{
    opacity:1!important;transform:none!important;transition:none!important;
  }
  .category-head .collection-ornament,.gift-story > .btn,.moment .btn,.form-card > .btn{animation:none!important}
  .category-carousel .category-card:hover,.section .btn:hover{transform:none!important}
  .category-carousel .category-card:hover img{transform:none!important}
}
