/* Phase-one motion layer: short entrances and interaction feedback, without layout shifts. */
@keyframes mirror-enter {
  from { opacity: 0; transform: translate3d(0,18px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
@keyframes mirror-draw {
  from { stroke-dashoffset: var(--path-length); opacity: .2; }
  to { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes mirror-frame {
  from { opacity: 0; transform: translate3d(24px,0,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
@keyframes mirror-menu {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.motion-enabled .hero-copy > * {
  animation: mirror-enter .75s cubic-bezier(.2,.7,.2,1) both;
}
.motion-enabled .hero-copy > :nth-child(2) { animation-delay: .09s; }
.motion-enabled .hero-copy > :nth-child(3) { animation-delay: .18s; }
.motion-enabled .hero-copy > :nth-child(4) { animation-delay: .27s; }
.motion-enabled .hero-copy > :nth-child(5) { animation-delay: .36s; }
.motion-enabled .hero-visual {
  animation: mirror-frame .95s cubic-bezier(.2,.7,.2,1) .12s both;
}
.hero-visual .motion-path {
  stroke-dasharray: var(--path-length);
  animation: mirror-draw 1.7s cubic-bezier(.3,.1,.25,1) var(--draw-delay,.3s) both;
}
.reveal-ready {
  opacity: 0;
  transform: translate3d(0,20px,0);
  transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay,0ms);
}
.reveal-ready.is-visible {
  opacity: 1;
  transform: translate3d(0,0,0);
}
.site-header {
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.has-scrolled {
  box-shadow: 0 7px 22px #111c2512;
  border-color: #d7dfe4;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: #8799a5;
  transform-origin: left;
  transform: scaleX(var(--scroll-progress,0));
  pointer-events: none;
}
.button .icon, .round-link .icon, .hero-secondary .icon {
  transition: transform .25s ease;
}
.button:hover .icon, .round-link:hover .icon, .hero-secondary:hover .icon {
  transform: translateX(4px);
}
.primary-nav > a:not(.active)::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 17px;
  height: 2px;
  background: #667c89;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.primary-nav > a:not(.active):hover::after { transform: scaleX(1); }
.category-card, .brand-grid > a, .gallery-thumb {
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.category-card:hover { box-shadow: inset 0 -3px 0 #9aacb6; }
.category-card .product-outline { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.category-card:hover .product-outline { transform: translateY(-3px) scale(1.035); }
.brand-grid > a > .icon { transition: transform .25s ease; }
.brand-grid > a:hover > .icon { transform: translateX(5px); }
.product-card.reveal-ready.is-visible:hover { transform: translateY(-4px); transition-delay: 0ms; }
.gallery-thumb:hover { border-color: #79909f; box-shadow: 0 3px 12px #203a4d10; }
.tabs > button { transition: border-color .25s ease, color .25s ease; }
@media (max-width:800px) {
  .primary-nav > a:not(.active)::after { bottom: 14px; }
}
@media (max-width:600px) {
  .primary-nav > a:not(.active)::after { bottom: 10px; height: 1px; }
  .reveal-ready { transform: translate3d(0,12px,0); }
  .motion-enabled .hero-copy > * { animation-duration: .6s; }
  .motion-enabled .primary-nav.open { animation: mirror-menu .2s ease both; }
}
@media print {
  .reveal-ready { opacity: 1!important; transform: none!important; }
}
@media (prefers-reduced-motion:reduce) {
  .motion-enabled .hero-copy > *, .motion-enabled .hero-visual, .hero-visual .motion-path {
    animation: none!important;
    opacity: 1!important;
    transform: none!important;
    stroke-dasharray: none!important;
  }
  .reveal-ready { opacity: 1!important; transform: none!important; transition: none!important; }
  .product-card.reveal-ready.is-visible:hover, .category-card:hover .product-outline,
  .button:hover .icon, .round-link:hover .icon, .hero-secondary:hover .icon,
  .brand-grid > a:hover > .icon { transform: none!important; }
}
