/* 3-UAE Studio — animated night-skyline hero (Burj Khalifa)
   Works with assets/hero/hero-sky.js, which draws the scene into #preview.
   To undo: remove the two lines that load hero-sky.css and hero-sky.js from index.html. */

/* the old device mockup is replaced by the skyline */
#preview .hx-vis{display:none!important}

#preview.hx-sky{
  position:relative;isolation:isolate;overflow:hidden;background:#04091c;
  margin-top:calc(-1 * var(--sky-t,0px));padding-top:var(--sky-t,0px);padding-bottom:0;
  min-height:var(--sky-vh,100vh)
}
#preview.hx-sky>.hxs{position:absolute;inset:0;z-index:0;pointer-events:none}
#preview.hx-sky .hxs-cv{position:absolute;inset:0;width:100%;height:100%;display:block}
#preview.hx-sky .hxs-scrim{position:absolute;inset:0}
#preview.hx-sky>.hx-grid{position:relative;z-index:2;box-sizing:border-box}
main>.svc-wrap{position:relative;z-index:3}

/* desktop: text beside the tower */
#preview.hx-sky[data-sky=split]>.hx-grid{
  display:flex;align-items:center;justify-content:flex-start;
  min-height:calc(var(--sky-vh,100vh) - var(--sky-t,0px));padding-top:20px;padding-bottom:48px
}
#preview.hx-sky[data-sky=split] .hx-txt{width:100%;max-width:min(560px,42vw)}

/* phones & tablets: tower on top, text underneath */
#preview.hx-sky[data-sky=stack]>.hx-grid{display:block;padding-top:var(--sky-pt,52vh);padding-bottom:56px}
#preview.hx-sky[data-sky=stack] .hx-txt{max-width:640px;margin-inline:auto}

#preview.hx-sky h1{text-shadow:0 4px 40px rgba(0,0,0,.45)}
