/* Load after styles.css. All content remains visible without this layer or JS. */
.opus-motion-progress {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  height: 2px;
  background: var(--brass, #bca17e);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.opus-motion-pan-frame { overflow: hidden; }

/* The editorial plane carries its own color across the architectural frame. */
.opus-motion-stage { isolation: isolate; }
.opus-motion-panel {
  position: relative;
  z-index: 1;
  background: var(--brown, #533c31);
}

.opus-motion-cue {
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 200ms ease, border-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .opus-motion-cue.opus-motion-cue-active {
    transform: translateY(3px);
    background-color: #bca17e26;
    border-color: var(--brass, #bca17e);
  }
  .opus-motion-cue:active { transform: translateY(4px) scale(.97); }
}

/* WAAPI is canceled in JS too, including preference changes while playing. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .opus-motion-item, .opus-motion-pan, .opus-motion-cue {
    transform: none !important;
    clip-path: none !important;
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
  }
  .opus-motion-progress { display: none; }
}

@media print {
  .opus-motion-progress { display: none; }
  .opus-motion-item, .opus-motion-pan, .opus-motion-cue {
    transform: none !important;
    clip-path: none !important;
    opacity: 1 !important;
  }
}
