/* Shared motion choreography. Copy as motion.css in each portable fixture. */
:root {
  --motion-play: running;
  --pointer-x: 0px;
  --pointer-y: 0px;
  --scroll-y: 0px;
  --view-scale: 1;
  --view-x: 0%;
  --view-y: 0%;
}
[data-parallax] {
  transform: translate3d(
    var(--pointer-x, 0px),
    calc(var(--pointer-y, 0px) + var(--scroll-y, 0px)),
    0
  );
  will-change: transform;
}
.art-dolly {
  width: 100%;
  height: 100%;
  transform-origin: 60% 50%;
  transform: scale(1.035);
}
.art-dolly picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.art-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(var(--view-x, 0%), var(--view-y, 0%))
    scale(var(--view-scale, 1));
  transition: transform 1.6s cubic-bezier(0.18, 0.75, 0.25, 1);
}
[data-art-stage][data-view="detail"] {
  --view-scale: 1.2;
  --view-x: -4%;
  --view-y: 4%;
}
[data-art-stage][data-view="horizon"] {
  --view-scale: 1.12;
  --view-x: 4%;
  --view-y: -3%;
}
.scene-choices {
  display: flex;
  align-items: center;
  gap: 25px;
}
.scene-choices button {
  position: relative;
  background: none;
  border: 0;
  padding: 16px 0;
  color: inherit;
  font: 11px var(--font-mono);
  white-space: nowrap;
}
.scene-choices button:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s;
}
.scene-choices button[aria-pressed="true"]:after,
.scene-choices button:hover:after {
  transform: scaleX(1);
}
.scene-choices button[aria-pressed="true"] {
  font-weight: 600;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  z-index: 30;
  width: 100%;
  background: var(--color-accent);
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left;
  pointer-events: none;
}
[data-tilt] {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-motion-state="paused"] *,
[data-motion-state="reduced"] * {
  animation-play-state: paused !important;
}
[data-motion-state="paused"] [data-parallax],
[data-motion-state="reduced"] [data-parallax] {
  will-change: auto;
}
[data-art-stage].is-offscreen .art-dolly {
  animation-play-state: paused !important;
}
[data-motion-state="reduced"] [data-tilt] {
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js [data-intro] {
    animation: intro-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--intro-delay, 0ms);
    animation-play-state: var(--motion-play);
  }
  .js [data-intro].hero__title > span {
    display: block;
    animation: title-unfold 1.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--intro-delay, 0ms) + 120ms);
    animation-play-state: var(--motion-play);
  }
  .js [data-intro].hero__title > span:nth-child(2) {
    animation-delay: calc(var(--intro-delay, 0ms) + 260ms);
  }
  .js .art-dolly {
    animation: art-breathe 18s ease-in-out infinite alternate;
    animation-play-state: var(--motion-play);
  }
  .js .is-revealing {
    animation: section-enter 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
    animation-play-state: var(--motion-play);
  }
  .button {
    transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.35s !important;
  }
  .button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 -5px var(--color-accent);
  }
  .button span[aria-hidden] {
    display: inline-block;
    transition: transform 0.35s;
  }
  .button:hover span[aria-hidden] {
    transform: translate(3px, -3px);
  }
  .hero__scroll > span:last-child {
    animation: arrow-nudge 1.7s ease-in-out infinite;
    animation-play-state: var(--motion-play);
  }
  .manifesto-flower {
    animation: slow-turn 35s linear infinite;
    animation-play-state: var(--motion-play);
  }
  .hero__asterisk {
    animation: slow-turn 22s linear infinite;
    animation-play-state: var(--motion-play);
  }
  .ticker__inner {
    transform: translateX(var(--ticker-x, 0px));
    transition: transform 0.1s linear;
  }
  [data-stage-title],
  [data-answer-output],
  .thought-card p {
    transition: opacity 0.3s, transform 0.3s;
  }
  .content-change {
    animation: content-swap 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes intro-rise {
    from {
      opacity: 0;
      transform: translateY(32px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes title-unfold {
    from {
      opacity: 0;
      transform: translateY(45px) rotate(2deg);
      clip-path: inset(0 0 100% 0);
    }
    to {
      opacity: 1;
      transform: none;
      clip-path: inset(0);
    }
  }
  @keyframes art-breathe {
    from {
      transform: scale(1.035) rotate(-0.25deg);
    }
    to {
      transform: scale(1.105) rotate(0.35deg);
    }
  }
  @keyframes section-enter {
    from {
      opacity: 0;
      transform: translateY(36px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes arrow-nudge {
    0%,
    100% {
      transform: translateY(-4px);
    }
    50% {
      transform: translateY(6px);
    }
  }
  @keyframes slow-turn {
    to {
      transform: rotate(360deg);
    }
  }
  @keyframes content-swap {
    from {
      opacity: 0.2;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-parallax],
  [data-tilt],
  .ticker__inner {
    transform: none !important;
  }
  [data-intro],
  .is-revealing,
  .art-dolly,
  .art-image {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 650px) {
  .scene-choices {
    gap: 18px;
  }
  .scene-choices button {
    font-size: 10px;
  }
  [data-parallax] {
    --pointer-x: 0px !important;
    --pointer-y: 0px !important;
    --scroll-y: 0px !important;
  }
}
