/* SETSUO & HANAKO — approved artwork motion, 2026-09-28. */
.sh-motion-stage { position: relative; isolation: isolate; }
.sh-motion-stage > .sh-motion-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  z-index: 1; pointer-events: none;
}
.sh-motion-stage.sh-motion-ready > img { opacity: 0; }
.sh-motion-stage > .sh-motion-canvas[hidden],
.sh-motion-stage > .sh-motion-toggle[hidden] { display: none; }
.sh-motion-stage > .caption { z-index: 2; }
.sh-motion-toggle {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  min-height: 36px; min-width: 58px; padding: 7px 10px;
  border: 1px solid rgba(21,21,21,.18); border-radius: 3px;
  background: rgba(244,241,234,.95); color: #151515;
  font: 12px/1.4 Arial,Helvetica,sans-serif; cursor: pointer;
}
.sh-motion-toggle:focus-visible { outline: 2px solid #151515; outline-offset: 3px; }
body[data-sh-motion-page="home"] .hero-image.sh-motion-ready { background: #f4f1ea; }
body[data-sh-motion-page="home"] .origin-image.sh-motion-ready { background: #111211; }
body[data-sh-motion-page="home"] .origin-copy { background: #111211; }
body[data-sh-motion-page="home"] .origin h2 { color: #f5f2eb; }
body[data-sh-motion-page="home"] .origin p { color: #d8d4cc; }
/* Only POPPING moves in the Selected artworks group. */
body[data-sh-motion-page="home"] .art-card:not(.popping) img { transition: none; }
body[data-sh-motion-page="home"] .art-card:not(.popping):hover img { transform: none; }
@media (max-width: 520px), (pointer: coarse) {
  .sh-motion-toggle { min-height: 44px; min-width: 54px; top: 8px; right: 8px; }
}
@media (max-width: 520px) {
  body[data-sh-motion-page="artworks"] .artworks-pair-grid,
  body[data-sh-motion-page="artworks"] .artworks-details-grid {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  }
  body[data-sh-motion-page="artworks"] .artwork-figure { min-width: 0; }
  body[data-sh-motion-page="artworks"] .artworks-pair-grid figcaption,
  body[data-sh-motion-page="artworks"] .artworks-details-grid figcaption {
    flex-direction: column; gap: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-sh-motion-page] { scroll-behavior: auto; }
  body[data-sh-motion-page] .art-card img,
  body[data-sh-motion-page] .artwork-figure img { transition: none; }
  body[data-sh-motion-page] .art-card:hover img,
  body[data-sh-motion-page] .artwork-figure:hover img { transform: none; }
}
