/* Independent artwork layers keep text and controls still and readable. */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.actor { position: absolute; width: 23%; height: auto; aspect-ratio: 448 / 512; }
.actor-entrance { display: block; height: 100%; }
.actor-float { display: block; width: 100%; height: 100%; transform-origin: 50% 70%; }
.actor-window { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; mask-image: linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent), linear-gradient(0deg,transparent,#000 4%,#000 96%,transparent); mask-composite: intersect; }
.actor img { position: absolute; width: 342.857143%; height: 200%; max-width: none; object-fit: fill; top: 0; left: 0; }
.actor-idea img, .actor-creator img { left: auto; right: 0; }
.actor-shop img, .actor-creator img { top: auto; bottom: 0; }
.actor-laptop { left: 1%; top: 1%; --float-time: 10s; --float-delay: -1.6s; --float-turn: -.6deg; }
.actor-idea { right: 1%; top: 0; --float-time: 11.2s; --float-delay: -3.2s; --float-turn: .7deg; }
.actor-shop { left: 1%; bottom: 1%; --float-time: 10.6s; --float-delay: -2.3s; --float-turn: .6deg; }
.actor-creator { right: 1%; bottom: 1%; --float-time: 9.8s; --float-delay: -.6s; --float-turn: -.8deg; }
.motif { position: absolute; font: 400 clamp(24px, 3vw, 45px)/1 sans-serif; color: #e1a11b; --spin-delay: 0s; }
.motif-one { top: 5%; left: 34%; color: #ce4c2c; }
.motif-two { top: 12%; right: 29%; color: #6a5c83; --spin-delay: -3s; }
.motif-three { top: 48%; left: 5%; color: #2d8095; --spin-delay: -5s; }
.motif-four { top: 48%; right: 4%; color: #df947f; --spin-delay: -1s; }
.motif-five { bottom: 6%; left: 38%; color: #157451; --spin-delay: -4s; }
.motif-six { bottom: 5%; right: 35%; font-size: 24px; --spin-delay: -2s; }
.button { transition: transform .2s, background .2s, box-shadow .2s; }
.button:active { transform: translateY(2px) scale(.985); box-shadow: none; }
.motion-toggle {
  position: fixed;
  bottom: 22px;
  left: 20px;
  z-index: 25;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid #3a4c3c35;
  border-radius: 99px;
  background: #eee8dbf2;
  color: #354234;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:disabled { cursor: default; }
.motion-toggle-icon { width: 13px; height: 13px; display: block; position: relative; }
.motion-toggle-icon:before, .motion-toggle-icon:after { content: ''; position: absolute; top: 1px; bottom: 1px; width: 3px; background: currentColor; }
.motion-toggle-icon:before { left: 2px; }
.motion-toggle-icon:after { right: 2px; }
[data-motion='off'] .motion-toggle-icon:before { width: 0; height: 0; top: 1px; left: 3px; background: none; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid currentColor; }
[data-motion='off'] .motion-toggle-icon:after { display: none; }
[data-motion='on'] .actor-float {
  animation: actor-float var(--float-time) ease-in-out var(--float-delay) infinite;
  animation-play-state: paused;
}
[data-motion='on'] .hero.is-active .actor-float { animation-play-state: running; }
[data-motion='on'] .motif { animation: motif-turn 16s ease-in-out var(--spin-delay) infinite; animation-play-state: paused; }
[data-motion='on'] .hero.is-active .motif { animation-play-state: running; }
[data-page-hidden='true'] .hero .actor-float,
[data-page-hidden='true'] .hero .motif { animation-play-state: paused !important; }
@keyframes actor-float {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(var(--float-turn)); }
}
@keyframes motif-turn {
  0%,100% { transform: rotate(-5deg) scale(.99); }
  50% { transform: rotate(8deg) scale(1.03); }
}
@media (max-width:700px) {
  .hero-stage { display:none; }
  .motion-toggle { left:14px; bottom:78px; min-height:36px; font-size:12px; padding:7px 10px; }
}
@media (prefers-reduced-motion:reduce) {
  .actor-float,.motif { animation:none !important; }
  .button { transition:none !important; }
}
