:root {
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Keep persistent hero copy steady while the product changes. */
.hero--showcase.is-switching .hero-text h1,
.hero--showcase.is-switching .hero-actions,
.hero--showcase.is-switching .hero-features { animation: none; }
.hero--showcase.is-switching .hero-backdrop-word {
  animation: showcase-title-enter 850ms var(--motion-ease) both;
}
.hero--showcase.is-switching .hero-text p {
  animation: showcase-copy-enter 650ms 100ms var(--motion-ease) both;
}
@keyframes showcase-title-enter {
  from { opacity: .3; transform: translate(calc(-50% + 24px), -50%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes showcase-copy-enter {
  from { opacity: .35; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-list a { transition: background-color 350ms ease; }
.category-list a > i, .shop-text-link i {
  transition: transform 400ms var(--motion-ease);
}
.motion-image { overflow: hidden; }
.article-grid article > .motion-image { padding: 0; }
.motion-image img { transition: transform 850ms var(--motion-ease); }
.hero-actions a, .hero-carousel-pagination button, .catalog-form button {
  transition: transform 250ms var(--motion-ease), background-color 300ms ease, box-shadow 300ms ease;
}
.hero-actions a:active, .hero-carousel-pagination button:active, .catalog-form button:active {
  transform: scale(.98);
}
.service-rows details { transition: background-color 350ms ease; }
.service-rows summary {
  position: relative;
  list-style: none;
  padding-right: 36px;
}
.service-rows summary::-webkit-details-marker { display: none; }
.service-rows summary::before, .service-rows summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: .7em;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 350ms var(--motion-ease);
}
.service-rows summary::after { transform: rotate(90deg); }
.service-rows details[open] summary::after { transform: rotate(0); }
@media (hover: hover) and (pointer: fine) {
  .category-list a:hover > i, .shop-text-link:hover i { transform: translateX(5px); }
  .category-image:hover .motion-image img,
  .article-grid article:hover .motion-image img { transform: scale(1.035); }
  .hero-actions a:hover, .catalog-form button:hover { transform: translateY(-2px); }
  .hero-actions a:active, .catalog-form button:active { transform: scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .hero--showcase.is-switching .hero-backdrop-word,
  .hero--showcase.is-switching .hero-text p { animation: none !important; }
  .motion-image img, .category-list a, .category-list a > i,
  .shop-text-link i, .hero-actions a, .hero-carousel-pagination button,
  .catalog-form button, .service-rows details,
  .service-rows summary::before, .service-rows summary::after { transition: none !important; }
  .motion-image img, .category-list a > i, .shop-text-link i,
  .hero-actions a, .catalog-form button, .hero-carousel-pagination button { transform: none !important; }
}
