/* Motion is an enhancement. All content stays readable without JavaScript. */
:root { --motion-ease: cubic-bezier(.16, 1, .3, 1); }
.reading-progress {
  position: fixed; inset: 0 0 auto; height: 3px; z-index: 40;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}
.button, .nav-contact {
  transition: background .3s, color .3s, border-color .3s, box-shadow .4s, transform .4s var(--motion-ease);
}
.text-link { transition: color .3s, border-color .3s; }
.text-link:hover { color: var(--red); border-color: var(--red); }
.product-list article { transition: background .35s, padding .45s var(--motion-ease); }
.product-list article:focus-within { background: #ffffff06; }
.work-image img { transition: transform 1.1s var(--motion-ease), filter .8s; }
.collection-meta .text-link, .product-info a { text-underline-offset: 6px; }
.service-name > span { display: block; }

@media (min-width: 801px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .motion-enabled .sculpture {
    transform: rotateX(var(--pointer-y, 0deg)) rotateY(var(--pointer-x, 0deg));
    transition: transform .55s var(--motion-ease);
    transform-style: flat;
  }
  .motion-enabled .slab,
  .motion-enabled .system-art:hover .slab {
    transform: translate3d(var(--scroll-x, 0px), var(--scroll-y, 0px), 0)
      rotateX(22deg) rotateY(-33deg) rotateZ(calc(-12deg + var(--scroll-turn, 0deg)));
    transition: none;
  }
  .motion-enabled .slab-back { z-index: 1; }
  .motion-enabled .slab-mid { z-index: 2; }
  .motion-enabled .slab-front { z-index: 3; }
  .button:hover, .nav-contact:hover { transform: translateY(-3px); box-shadow: 0 8px 25px #0002; }
  .button:active, .nav-contact:active { transform: translateY(0); }
  .product-list article:hover { background: #ffffff04; padding-left: 14px; }
  .work-grid article:hover img { transform: scale(1.035); filter: saturate(1); }
  .service-name { position: sticky; top: 48px; align-self: start; }
  .editorial aside { position: sticky; top: 48px; align-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress { display: none; }
  .sculpture, .slab, .cover-graphic, .philosophy-mark { rotate: none; }
  .product-list article:hover { padding-left: 0; }
}
