/* Hero-local media/layout only. Floating site controls overlay the full-bleed scene. */
#home[data-nabawi] { height: 100svh; --nabawi-header-height: 0px; }
/* Original 136svh approach, then only 15svh of fully revealed mosque hold. */
#home[data-nabawi][data-nabawi-mode="cinematic"] { height: 251svh; }
#home[data-nabawi] > .hero-sticky {
  top: 0;
  height: 100svh;
  min-height: 100svh;
}
#home[data-nabawi] #hero-master {
  background-image: none;
  transform: none;
  filter: none;
  will-change: auto;
  pointer-events: none;
}
#home[data-nabawi] #nabawi-poster,
#home[data-nabawi] #nabawi-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none;
}
#home[data-nabawi] #nabawi-poster { object-fit: cover; }
#home[data-nabawi] #nabawi-canvas { visibility: hidden; }
#home[data-nabawi][data-scene-ready="true"] #nabawi-canvas { visibility: visible; }
#home[data-nabawi][data-scene-ready="true"] #nabawi-poster { visibility: hidden; }
/* Keep the green dome above the unchanged marketing/CTA block. */
#home[data-nabawi] #hero-intro { top: auto; bottom: calc(var(--nabawi-cue-height, 70px) + 24px); transform: translate(-50%, 0); }
#home[data-nabawi] .hero-scrim,
#home[data-nabawi] .hero-glow { display: none; }
#home[data-nabawi] #scroll-cue { bottom: 12px; }
#home[data-nabawi]:not([data-nabawi-mode="cinematic"]) #scroll-cue { display: none; }
/* On wide desktop windows, the visitor stands inside the room. Keep the
 * complete opening unobstructed by moving the unchanged copy onto the left
 * wall/floor area instead of stacking it beneath a rectangular picture. */
@media (min-width: 1200px) and (min-height: 700px) {
  #home[data-nabawi] #hero-intro {
    left: clamp(2rem, 4vw, 5rem);
    width: min(440px, 30vw);
    text-align: left;
    transform: none;
  }
  #home[data-nabawi] #hero-intro .hero-badge {
    padding: 0.48rem 0.9rem;
    margin-bottom: 0.55rem;
    font-size: 0.66rem;
  }
  #home[data-nabawi] #hero-intro h1 {
    font-size: clamp(3.4rem, 3.8vw, 4.3rem);
    line-height: 0.92;
  }
  #home[data-nabawi] #hero-intro p {
    max-width: 590px;
    margin-top: 0.65rem;
    font-size: 1rem;
    line-height: 1.48;
  }
  #home[data-nabawi] #hero-intro .hero-actions {
    justify-content: flex-start;
    gap: 0.7rem;
    margin-top: 0.85rem;
  }
  #home[data-nabawi] #hero-intro .btn {
    min-height: 48px;
    padding: 0.72rem 1.25rem;
    font-size: 0.88rem;
  }
}
@media (max-width: 720px) {
  #home[data-nabawi] { --nabawi-header-height: 0px; --nabawi-cue-height: 0px; }
}
@media (prefers-reduced-motion: reduce) {
  #home[data-nabawi][data-nabawi-mode] { height: 100svh; }
  #home[data-nabawi] > .hero-sticky { position: relative; top: 0; height: 100%; min-height: 100%; }
}
/* Static fallbacks keep their short-screen flow; cinematic mode remains scrollable. */
@media (max-height: 650px) {
  #home[data-nabawi][data-nabawi-mode]:not([data-nabawi-mode="cinematic"]) {
    height: 640px;
    padding-top: 0;
    box-sizing: border-box;
  }
  #home[data-nabawi]:not([data-nabawi-mode="cinematic"]) > .hero-sticky { position: relative; top: 0; height: 640px; min-height: 640px; }
}
