.stage {
  --landscape-opacity: 0;
  --tuwaiq-opacity: 0;
  --night: #080d0c;
  --sand: #bc8758;
}
/* Reflect the decorative scene as one layer so live and fallback art share
   the camera, ground, shadows and trails while text keeps its natural flow. */
:root[dir="rtl"] .stage {
  transform: scaleX(-1);
}
.landscape,
.landscape-shade,
#oryx-webgl,
#origin-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.landscape {
  opacity: var(--landscape-opacity);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 57% 62%;
  transform: translate3d(var(--land-x, 0px), var(--land-y, 0px), 0) scale(var(--land-scale, 1.055));
}
.landscape-diriyah {
  background-image: url("./assets/diriyah-night.webp");
}
.landscape-tuwaiq {
  background-image: url("./assets/tuwaiq-run.webp");
  background-position: 50% 64%;
  opacity: var(--tuwaiq-opacity);
}
/* The two side washes follow the copy as the backdrop crossfades. */
.landscape-shade {
  opacity: var(--culture-visible, 0);
  background: linear-gradient(180deg, #060b0b50 0%, #060b0b04 18%, #060b0b09 62%, #080d0ccb 100%);
}
.landscape-shade::before,
.landscape-shade::after {
  content: "";
  position: absolute;
  inset: 0;
}
.landscape-shade::before {
  opacity: calc(1 - var(--shade-side, 0));
  background: linear-gradient(90deg, #050a09c9 0%, #060b0b83 25%, #060a0a19 55%, #060a0a18 100%);
}
.landscape-shade::after {
  opacity: var(--shade-side, 0);
  background: linear-gradient(270deg, #050a09ed 0%, #060b0b9c 36%, #060a0a18 70%);
}
.has-living-hero .hero-image,
.has-living-hero .hero-shade { opacity: 0; }
/* Tuwaiq and Diriyah share one open frame through the launch. */
.has-motion .platform.chapter { border-top-color: transparent; }
.has-motion .platform.chapter::before { display: none; }

.has-living-hero .hero-content:not(:focus-within) { opacity: var(--hero-copy, 1); }
.has-living-hero .hero-footer:not(:focus-within) { opacity: var(--hero-caption, 1); }
.has-living-hero.enhanced .platform .chapter-copy.is-visible:not(:focus-within) {
  opacity: var(--platform-copy, 1);
  transform: translateY(var(--platform-rise, 0));
  transition: none;
}

#oryx-webgl { visibility: hidden; }
.has-webgl-oryx #oryx-webgl { visibility: visible; }
#origin-canvas { pointer-events: none; }

.motion-paused,
.motion-paused * { scroll-behavior: auto; }
.motion-paused.enhanced [data-reveal] { opacity: 1; transform: none; transition: none; }
.motion-paused .scroll-cue > span::after,
.motion-paused .diriyah-heart { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .scroll-cue > span::after,
  .diriyah-heart { animation: none; }
}

@media (max-width: 700px) {
  .landscape { background-size: auto 69%; transform-origin: center top; }
  .landscape-diriyah { background-position: 61% 0; }
  .landscape-tuwaiq { background-position: 45% 0; }
  .scroll-cue { flex-shrink: 0; }
  .hero-footer p { text-align: end; }
  .landscape-shade {
    background: linear-gradient(180deg, #060b0b2d 0%, #060b0b0a 29%, #080d0c9c 57%, #080d0cf5 83%);
  }
  .landscape-shade::before,
  .landscape-shade::after { display: none; }
}
