:root {
  --motion-sage: #6f8660;
  --motion-forest: #183a2a;
  --motion-forest-soft: #355845;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
}

.hero {
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 82% 50%, color-mix(in srgb, var(--motion-sage) 12%, transparent), transparent 42%);
  content: "";
  opacity: 0;
  animation: motion-hero-glow .9s ease-out .25s forwards;
  pointer-events: none;
}

.hero::after {
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  right: -120px;
  bottom: -140px;
  border: 1px solid color-mix(in srgb, var(--motion-forest-soft) 18%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 38px color-mix(in srgb, var(--motion-forest-soft) 5%, transparent),
              0 0 0 76px color-mix(in srgb, var(--motion-forest-soft) 3%, transparent);
  content: "";
  animation: motion-ring-breathe 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-grid {
  position: relative;
}

.hero .eyebrow,
.hero h1,
.hero-copy,
.hero-actions {
  animation: motion-rise-in .65s cubic-bezier(.2,.7,.25,1) both;
}

.hero h1 { animation-delay: 90ms; }
.hero-copy { animation-delay: 170ms; }
.hero-actions { animation-delay: 240ms; }

.hero-image-shell img {
  animation: motion-image-in .95s var(--motion-ease) .18s both;
}

.hero-actions .button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .22s var(--motion-ease), box-shadow .22s var(--motion-ease), filter .22s ease;
}

.hero-actions .button::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, #ffffff22 48%, transparent 72%);
  content: "";
  transform: translateX(-130%);
  transition: transform .55s var(--motion-ease);
}

.hero-actions .button:hover::after {
  transform: translateX(130%);
}

.hero-actions .button:active {
  transform: translateY(3px) scale(.98);
}

.hero-stage::before,
.hero-stage::after {
  position: absolute;
  z-index: 1;
  width: 31px;
  height: 23px;
  border-radius: 62% 38% 60% 40% / 50% 56% 44% 50%;
  background: linear-gradient(135deg, #edc365, var(--motion-sage));
  box-shadow: 0 8px 18px #3e573a22;
  content: "";
  opacity: .8;
  pointer-events: none;
  animation: motion-cashew-float 5.5s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-stage::before {
  top: 15%;
  left: 10%;
  animation-delay: -1.6s;
}

.hero-stage::after {
  right: 9%;
  bottom: 17%;
  width: 24px;
  height: 18px;
  animation-delay: -3.2s;
}

.announcement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.announcement::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -32%;
  width: 24%;
  background: linear-gradient(100deg, transparent, #e0a82e28, transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-20deg);
  animation: motion-banner-sheen 1.2s ease-out .5s both;
}

.product-card {
  transition: opacity .55s ease, transform .18s, box-shadow .28s var(--motion-ease), translate .28s var(--motion-ease);
}

.reveal {
  transition-delay: var(--motion-delay, 0ms);
}

.product-card .price-line {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease .12s, transform .4s ease .12s;
}

.product-card.in .price-line {
  opacity: 1;
  transform: translateY(0);
}

.product-card .quick-add {
  transition: transform .18s var(--motion-ease), box-shadow .18s ease, filter .18s ease, background-color .18s ease;
}

.product-card .quick-add:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.product-card .quick-add.is-added {
  background: var(--motion-forest);
  box-shadow: 0 5px 0 #0e281c;
  animation: motion-add-confirm .42s var(--motion-ease);
}

.category-tile {
  transition: box-shadow .28s var(--motion-ease), filter .28s ease, transform .28s var(--motion-ease);
}

.category-tile img {
  transition: transform .38s var(--motion-ease), filter .38s ease;
}

.category-tile strong,
.category-tile span {
  transition: transform .28s var(--motion-ease);
}

.chip {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.main-nav a,
.category-links a {
  position: relative;
  transition: color .18s ease;
}

.main-nav a::after,
.category-links a::after {
  position: absolute;
  height: 2px;
  right: 0;
  bottom: -7px;
  left: 0;
  border-radius: 99px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .24s var(--motion-ease);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.category-links a:hover::after,
.category-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-bottom > a {
  transition: color .18s ease, transform .18s ease;
}

.site-footer a:not(.brand) {
  transition: color .18s ease, transform .18s var(--motion-ease);
}

.site-footer a:not(.brand):hover {
  color: var(--brand);
  transform: translateX(3px);
}

.loading-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--mute);
}

.loading-state img {
  width: 118px;
  height: 64px;
  border-radius: 8px;
  box-shadow: 0 10px 28px #183a2a1f;
  animation: motion-logo-breathe 1.1s ease-in-out infinite alternate;
}

.loading-state span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

@media (hover: hover) {
  .product-card:hover {
    translate: 0 -6px;
    box-shadow: 0 22px 48px color-mix(in srgb, var(--motion-forest) 14%, transparent);
  }

  .category-tile:hover {
    filter: saturate(1.04);
    transform: translateY(-4px);
    box-shadow: 0 16px 34px #183a2a25;
  }

  .category-tile:hover strong,
  .category-tile:hover span {
    transform: translateX(3px);
  }

  .chip:hover {
    transform: translateY(-1px);
  }

  .footer-bottom > a:hover {
    transform: translateY(-2px);
  }
}

@keyframes motion-rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes motion-image-in {
  from { opacity: 0; transform: translate3d(0, 12px, 48px) scale(.96); }
  to { opacity: 1; transform: translate3d(0, 0, 48px) scale(1); }
}

@keyframes motion-ring-breathe {
  from { opacity: .35; transform: scale(.96) rotate(-4deg); }
  to { opacity: .8; transform: scale(1.04) rotate(4deg); }
}

@keyframes motion-logo-breathe {
  from { opacity: .72; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes motion-add-confirm {
  0% { transform: scale(1); }
  45% { transform: scale(.94); }
  72% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes motion-hero-glow {
  to { opacity: 1; }
}

@keyframes motion-cashew-float {
  from { transform: translate3d(0, -4px, 0) rotate(-12deg); }
  to { transform: translate3d(0, 7px, 0) rotate(9deg); }
}

@keyframes motion-banner-sheen {
  from { opacity: 0; transform: translateX(0) skewX(-20deg); }
  20% { opacity: 1; }
  to { opacity: 0; transform: translateX(620%) skewX(-20deg); }
}

@media (max-width: 760px) {
  .hero-stage::before {
    top: 8%;
    left: 7%;
  }

  .hero-stage::after {
    right: 6%;
    bottom: 10%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero .eyebrow,
  .hero h1,
  .hero-copy,
  .hero-actions,
  .hero-image-shell img,
  .hero-stage::before,
  .hero-stage::after,
  .announcement::after {
    animation: none;
    opacity: 1;
  }

  .hero-image-shell img {
    transform: translateZ(48px);
  }

  .product-card,
  .product-card .quick-add,
  .category-tile,
  .category-tile img,
  .chip,
  .footer-bottom > a {
    transition: none;
  }

  .product-card .price-line {
    opacity: 1;
    transform: none;
  }

  .product-card:hover {
    translate: none;
  }
}
