/* Motion is scoped to the key visual; the static SVG is the first-paint fallback. */
.hero-art .hero-visual {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art[data-motion-ready] .kv-moving,
.hero-art[data-motion-ready] .art-label {
  animation-play-state: paused;
}
.hero-art[data-motion="running"] .kv-moving,
.hero-art[data-motion="running"] .art-label {
  animation-play-state: running;
}

.hero-art .kv-ring {
  transform-origin: 315px 292px;
  animation: kv-ring-turn 38s linear infinite;
}
.hero-art .kv-torus-float {
  animation: kv-ring-float 9s ease-in-out infinite;
}
.hero-art .kv-sphere-float {
  animation: kv-sphere-float 7.5s ease-in-out infinite;
}
.hero-art .kv-sphere {
  transform-origin: 119px 427px;
  animation: kv-sphere-turn 17s ease-in-out infinite;
}
.hero-art .kv-star {
  transform-origin: 463px 141px;
  animation: kv-star-turn 48s linear infinite;
}
.hero-art .kv-flow {
  animation: kv-flow 5s linear infinite;
}
.hero-art .kv-ring-shadow {
  transform-origin: 314px 431px;
  animation: kv-shadow-breathe 9s ease-in-out infinite;
}
.hero-art .kv-sphere-shadow {
  transform-origin: 123px 484px;
  animation: kv-shadow-breathe 7.5s ease-in-out infinite;
}
.hero-art .kv-details {
  animation: kv-detail-breathe 6s ease-in-out infinite;
}
.hero-art[data-motion-ready] .art-label {
  animation-name: kv-label-float;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.hero-art .art-label-one { --label-angle: -5deg; animation-duration: 8s; }
.hero-art .art-label-two { --label-angle: 4deg; animation-duration: 10s; }
.hero-art .art-label-three { --label-angle: -3deg; animation-duration: 7.5s; }

.motion-toggle {
  display: inline-flex;
  min-height: 36px;
  min-width: 87px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #bfc5b4;
  border-radius: 3px;
  padding: 7px 10px;
  background: #f6f5ef;
  color: #4b5543;
  font-family: var(--font);
  font-size: 9px;
  letter-spacing: .03em;
}
.motion-toggle:hover:not(:disabled) { background: #e0e5d4; }
.motion-toggle:disabled { color: #68715e; cursor: default; }
.motion-toggle svg { width: 11px; height: 11px; }
.motion-play-icon { display: none; }
.motion-toggle[data-paused="true"] .motion-pause-icon { display: none; }
.motion-toggle[data-paused="true"] .motion-play-icon { display: block; }
.hero-art[data-motion-ready] .art-footer-arrow { display: none; }

@keyframes kv-ring-turn { to { transform: rotate(360deg); } }
@keyframes kv-ring-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -10px); }
}
@keyframes kv-sphere-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, -14px); }
}
@keyframes kv-sphere-turn {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-28deg); }
}
@keyframes kv-star-turn { to { transform: rotate(-360deg); } }
@keyframes kv-flow { to { stroke-dashoffset: -32; } }
@keyframes kv-shadow-breathe {
  0%, 100% { transform: scale(1); opacity: .16; }
  50% { transform: scale(.92, .8); opacity: .1; }
}
@keyframes kv-detail-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
@keyframes kv-label-float {
  0%, 100% { transform: translateY(0) rotate(var(--label-angle)); }
  50% { transform: translateY(-4px) rotate(var(--label-angle)); }
}

@media (min-width: 601px) and (max-width: 800px) {
  .hero-art .hero-visual { width: 113%; transform: translateX(-5%); }
  .motion-toggle { min-width: 70px; font-size: 8px; padding: 6px; gap: 6px; }
}
@media (max-width: 600px) {
  .motion-toggle { min-height: 36px; min-width: 77px; font-size: 8px; padding: 6px 8px; }
  .hero-art .art-bottomline { bottom: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .kv-moving,
  .hero-art .art-label { animation: none !important; }
}
