/* VacationOS — Exuma 2026 Showcase
   motion.css — stage crossfades, fallback reveals, static/reduced behavior */

/* stage frames crossfade under JS control; the transition softens
   the JS-driven opacity steps between animation frames */
.stage-on .stage-device-col .screen .frame {
  transition: opacity 180ms linear;
}

.stage-on .step-copy {
  transition: opacity 120ms linear, transform 120ms linear;
}

.stage-on .stage-backdrop .atmo-b {
  transition: opacity 120ms linear;
}

.stage-on .stage-backdrop .living-world {
  transition: opacity 200ms linear;
}

/* ---------- fallback reveals (sequential layout only) ---------- */

.stage-off [data-reveal] {
  opacity: 0;
  transform: translateY(1.4rem);
  transition:
    opacity 800ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.stage-off [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

/* fallback devices always show their own single frame */
.stage-off .step-device .screen img,
html:not(.js) .step-device .screen img {
  opacity: 1;
}

/* ---------- static capture mode (?static=1) ---------- */

.static-capture [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .screen .frame {
    transition: none !important;
  }
}
