/* POSHT NAGHSHE V5.3 — reliable, visible global cinematic backdrop.
   Backgrounds are PREBLURRED WEBP assets: no costly full-screen CSS blur.
   Only opacity is animated at transitions. */
html{background:#020509}
body.ultra-v4{
  background:#020509!important;
  position:relative;
}
.world-backdrop{
  position:fixed;inset:0;z-index:0;
  overflow:hidden;pointer-events:none;
  background:#0a1117;
  isolation:isolate;
}
.world-backdrop-slide{
  position:absolute;inset:-2%;
  opacity:0;
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  transform:scale(1.025);
  transition:opacity 1800ms ease;
  will-change:opacity;
}
.world-backdrop-slide.is-active{opacity:1}
.world-backdrop-dim{
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse at 75% 24%,rgba(30,61,78,.08),transparent 55%),
    linear-gradient(180deg,rgba(1,5,9,.16),rgba(3,8,15,.29) 52%,rgba(1,5,10,.34)),
    linear-gradient(90deg,rgba(2,6,12,.16),transparent 36%,rgba(2,6,12,.2));
}
/* Crucial fix: previously z-index:-4 plus solid section surfaces made the slideshow invisible. */
body.ultra-v4 main,body.ultra-v4 footer{position:relative;z-index:1}
body.ultra-v4 .hero,
body.ultra-v4 .cinematic-feature,
body.ultra-v4 .docs-section,
body.ultra-v4 .shorts-section,
body.ultra-v4 .atlas-section,
body.ultra-v4 .command-section,
body.ultra-v4 .philosophy-section,
body.ultra-v4 .join-section{
  background:transparent!important;
}
body.ultra-v4 .hero:before{
  background:linear-gradient(90deg,rgba(2,8,14,.68),rgba(3,8,15,.32) 56%,rgba(3,8,15,.45)),
             linear-gradient(180deg,rgba(2,7,14,.25),transparent 42%,rgba(1,5,9,.24))!important;
  opacity:.38!important;
}
body.ultra-v4 .hero:after{opacity:.12!important;animation:none!important}
/* Preserve readable typography with subtle sectional glass shading, not opaque paints. */
body.ultra-v4 .docs-section:after,
body.ultra-v4 .shorts-section:after,
body.ultra-v4 .atlas-section:after,
body.ultra-v4 .command-section:after,
body.ultra-v4 .philosophy-section:after,
body.ultra-v4 .join-section:after{
  content:"";pointer-events:none;position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(2,6,11,.12),rgba(2,7,12,.06) 43%,rgba(2,6,11,.14));
  z-index:0;
}
body.ultra-v4 .docs-section>.container,
body.ultra-v4 .shorts-section>.container,
body.ultra-v4 .atlas-section>.container,
body.ultra-v4 .command-section>.container,
body.ultra-v4 .philosophy-section>.container,
body.ultra-v4 .join-section>.container{position:relative;z-index:1}
body.ultra-v4 .separator-editorial{position:relative;z-index:1}
body.ultra-v4 .ticker{background:rgba(5,11,18,.50)}
body.ultra-v4 .footer{background:rgba(3,8,13,.70)!important;border-top:1px solid rgba(236,205,155,.16)}
body.ultra-v4 .atlas-shell{background:linear-gradient(160deg,rgba(7,20,29,.87),rgba(4,12,20,.80))!important}
body.ultra-v4 .join-panel{background:linear-gradient(165deg,rgba(7,19,31,.86),rgba(8,17,25,.76))!important}
body.ultra-v4 .command-glass-panel{background:linear-gradient(160deg,rgba(10,28,40,.86),rgba(4,12,20,.80))!important}
/* A visible location indicator and manual next scene makes the 60-second behavior verifiable. */
.world-scene-control{
  position:fixed;left:22px;bottom:20px;z-index:45;
  direction:ltr;display:flex;align-items:center;gap:10px;
  padding:9px 9px 9px 15px;
  border:1px solid rgba(223,186,120,.36);
  border-radius:16px;
  color:#f7eedf;
  background:linear-gradient(145deg,rgba(8,19,30,.85),rgba(6,14,24,.80));
  box-shadow:0 14px 45px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.08);
  max-width:min(370px,calc(100vw - 36px));
  backdrop-filter:blur(9px);
}
.world-scene-control .scene-led{width:7px;height:7px;border-radius:50%;background:#e5b870;box-shadow:0 0 12px #e4ac69;flex:none}
.world-scene-meta{display:flex;flex-direction:column;gap:2px;min-width:0}
.world-scene-meta small{font:600 8px/1.5 Arial,sans-serif;letter-spacing:2px;color:#d3b78d}
.world-scene-meta strong{font:600 11px/1.5 var(--font);color:#f5ead7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.world-scene-next{width:33px;height:33px;display:grid;place-items:center;flex:none;background:rgba(228,191,128,.13);color:#f4d6a5;border:1px solid rgba(231,198,146,.36);border-radius:11px;font:18px/1 Arial,sans-serif;cursor:pointer;transition:background .2s,border-color .2s}
.world-scene-next:hover{background:rgba(228,191,128,.27);border-color:#e8c68a}
.world-scene-next:focus-visible{outline:2px solid #fff0ce;outline-offset:2px}
.world-scene-progress{height:2px;position:absolute;bottom:0;left:14px;right:14px;background:rgba(232,195,135,.11);overflow:hidden;border-radius:3px}
.world-scene-progress i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#a77c41,#ffe3ac);transform-origin:left center;animation:sceneCountdown 60s linear forwards}
@keyframes sceneCountdown{from{transform:scaleX(0)}to{transform:scaleX(1)}}
body.cinema-active .world-scene-control,
body.modal-open .world-scene-control{display:none}
@media(max-width:720px){
 .world-backdrop-slide{inset:-3%;transform:scale(1.035)}
 .world-scene-control{left:12px;bottom:12px;padding:7px 7px 7px 10px;gap:7px;border-radius:13px;max-width:min(280px,calc(100vw - 24px))}
 .world-scene-meta small{font-size:7px}
 .world-scene-meta strong{font-size:9px}
 .world-scene-next{width:31px;height:31px}
}
@media(prefers-reduced-motion:reduce){
 .world-backdrop-slide{transition:opacity .6s ease}
 .world-scene-progress i{animation:none;transform:scaleX(1)}
}
/* Compositor-only, slow cinematic motion on the already preblurred bitmaps. */
@keyframes worldSceneDrift{
 from{transform:scale(1.025) translate3d(0,0,0)}
 to{transform:scale(1.09) translate3d(-1.5%,.8%,0)}
}
.world-backdrop-slide.is-active{animation:worldSceneDrift 60s ease-in-out both}
@media(max-width:720px){
 .world-scene-control{max-width:155px;gap:5px;padding:5px 6px 5px 8px;border-radius:12px}
 .world-scene-control .scene-led{display:none}
 .world-scene-meta small{display:none}
 .world-scene-meta strong{font-size:8px;letter-spacing:0}
 .world-scene-next{width:26px;height:26px;border-radius:8px;font-size:15px}
}
@media(prefers-reduced-motion:reduce){.world-backdrop-slide.is-active{animation:none}}
