/* AIIA v29 — remove all preloaders + lower homepage hero content
   Safe override only. No layout grid/card/footer changes. */

/* Kill every known loader/preloader overlay on all public pages */
#pageLoader,
#preloader,
#loader,
.page-loader,
.preloader,
.aiia-loader,
.aiia-page-loader,
.aiia-preloader,
.loading-screen,
.loader-screen,
.loading-overlay,
.preloader-overlay,
[data-loader],
[data-preloader],
[data-aiia-loader],
[class*="preloader"],
[class*="page-loader"],
[class*="loading-screen"],
[class*="loader-screen"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

html,
body {
  overflow-x: hidden !important;
}

body.aiia-no-loader {
  opacity: 1 !important;
  visibility: visible !important;
}

body.aiia-no-loader::before,
body.aiia-no-loader::after {
  content: none !important;
  display: none !important;
}

/* Homepage hero spacing: content moves lower so it is not glued to logo/header. */
body.aiia-home-page section#top.hero,
body.aiia-home-page #top.hero,
body.aiia-home-page .top-hero,
body.aiia-home-page .hero:first-of-type {
  padding-top: clamp(150px, 14vh, 210px) !important;
}

body.aiia-home-page section#top.hero .hero-content,
body.aiia-home-page section#top.hero .hero-copy,
body.aiia-home-page section#top.hero .hero-text,
body.aiia-home-page section#top.hero .hero-inner,
body.aiia-home-page section#top.hero .hero-shell,
body.aiia-home-page #top.hero .hero-content,
body.aiia-home-page #top.hero .hero-copy,
body.aiia-home-page #top.hero .hero-text,
body.aiia-home-page #top.hero .hero-inner,
body.aiia-home-page #top.hero .hero-shell,
body.aiia-home-page .top-hero .hero-content,
body.aiia-home-page .top-hero .hero-copy,
body.aiia-home-page .top-hero .hero-text,
body.aiia-home-page .top-hero .hero-inner,
body.aiia-home-page .top-hero .hero-shell {
  margin-top: clamp(34px, 5vh, 72px) !important;
}

@media (max-width: 768px) {
  body.aiia-home-page section#top.hero,
  body.aiia-home-page #top.hero,
  body.aiia-home-page .top-hero,
  body.aiia-home-page .hero:first-of-type {
    padding-top: 135px !important;
  }

  body.aiia-home-page section#top.hero .hero-content,
  body.aiia-home-page section#top.hero .hero-copy,
  body.aiia-home-page section#top.hero .hero-text,
  body.aiia-home-page section#top.hero .hero-inner,
  body.aiia-home-page section#top.hero .hero-shell,
  body.aiia-home-page #top.hero .hero-content,
  body.aiia-home-page #top.hero .hero-copy,
  body.aiia-home-page #top.hero .hero-text,
  body.aiia-home-page #top.hero .hero-inner,
  body.aiia-home-page #top.hero .hero-shell,
  body.aiia-home-page .top-hero .hero-content,
  body.aiia-home-page .top-hero .hero-copy,
  body.aiia-home-page .top-hero .hero-text,
  body.aiia-home-page .top-hero .hero-inner,
  body.aiia-home-page .top-hero .hero-shell {
    margin-top: 36px !important;
  }
}


/* AIIA public v40: mobile airplane + exact hero title + desktop menu background */
:root{
  --aiia-v40-menu-bg:rgba(2,8,23,.78);
  --aiia-v40-menu-border:rgba(255,255,255,.14);
}

/* Desktop/tablet: when the menu wraps or drops down, keep it on a readable glass background */
@media (min-width:981px){
  .site-header{
    align-items:center !important;
    gap:16px !important;
    padding:12px 18px !important;
    background:linear-gradient(180deg,rgba(2,8,23,.82),rgba(2,8,23,.56)) !important;
    border:1px solid var(--aiia-v40-menu-border) !important;
    border-radius:24px !important;
    box-shadow:0 20px 58px rgba(0,0,0,.30) !important;
    backdrop-filter:blur(18px) saturate(1.12) !important;
    -webkit-backdrop-filter:blur(18px) saturate(1.12) !important;
    overflow:visible !important;
  }
  .site-header .nav{
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    align-items:center !important;
    gap:10px 14px !important;
    min-width:0 !important;
    padding:7px 10px !important;
    border-radius:18px !important;
    background:rgba(2,8,23,.46) !important;
    border:1px solid rgba(255,255,255,.08) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
  }
  .site-header .nav a,
  .site-header .nav button,
  .site-header .nav-team-trigger{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:8px 10px !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.035) !important;
    color:rgba(255,255,255,.88) !important;
    text-shadow:0 2px 14px rgba(0,0,0,.45) !important;
    white-space:nowrap !important;
  }
  .site-header .nav a:hover,
  .site-header .nav-team-trigger:hover{
    background:rgba(34,211,238,.13) !important;
    color:#fff !important;
  }
}

/* Exact homepage hero title/subtitle requested in the review */
.aiia-home-page .hero-copy h1{
  max-width:980px !important;
  line-height:.96 !important;
  letter-spacing:-.065em !important;
}
.aiia-home-page .hero-copy h1 span{
  white-space:normal !important;
}
.aiia-home-page .hero-copy > p{
  max-width:730px !important;
  font-weight:560 !important;
}

/* Mobile: bring the airplane up and reduce its occupied height so the title is visible in the first view */
@media (max-width:760px){
  .aiia-home-page .hero{
    display:flex !important;
    flex-direction:column !important;
    padding-top:94px !important;
    gap:0 !important;
  }
  .aiia-home-page .hero .hero-art.aiia-plane-stage,
  .aiia-home-page .hero .aiia-plane-stage{
    order:1 !important;
    min-height:255px !important;
    height:255px !important;
    margin-top:-18px !important;
    margin-bottom:-10px !important;
    overflow:visible !important;
    position:relative !important;
  }
  .aiia-home-page .hero .home-plane-stage{
    inset:-30px 0 0 0 !important;
    overflow:visible !important;
  }
  .aiia-home-page .hero .home-plane-canvas{
    left:50% !important;
    right:auto !important;
    top:-62px !important;
    transform:translateX(-50%) !important;
    width:130vw !important;
    height:335px !important;
    min-height:335px !important;
    max-height:none !important;
    z-index:8 !important;
  }
  .aiia-home-page .hero-codepen-clouds.cloud-back{top:-8% !important;opacity:.20 !important;}
  .aiia-home-page .hero-codepen-clouds.cloud-front{top:34% !important;opacity:.14 !important;}
  .aiia-home-page .hero-copy{
    order:2 !important;
    position:relative !important;
    z-index:30 !important;
    margin-top:-4px !important;
    text-align:left !important;
  }
  .aiia-home-page .hero-copy .eyebrow{margin-bottom:10px !important;}
  .aiia-home-page .hero-copy h1{
    font-size:clamp(35px,10.5vw,46px) !important;
    line-height:.94 !important;
    margin:0 !important;
    letter-spacing:-.06em !important;
  }
  .aiia-home-page .hero-copy > p{
    font-size:14px !important;
    line-height:1.58 !important;
    max-width:94vw !important;
    margin-top:16px !important;
  }
  .aiia-home-page .hero-actions{margin-top:18px !important;}
  .aiia-home-page .hero-badges{margin-top:20px !important;}
}

@media (max-width:420px){
  .aiia-home-page .hero{padding-top:88px !important;}
  .aiia-home-page .hero .hero-art.aiia-plane-stage,
  .aiia-home-page .hero .aiia-plane-stage{
    min-height:225px !important;
    height:225px !important;
    margin-top:-18px !important;
  }
  .aiia-home-page .hero .home-plane-canvas{
    top:-58px !important;
    width:140vw !important;
    height:305px !important;
    min-height:305px !important;
  }
  .aiia-home-page .hero-copy h1{font-size:clamp(32px,10.2vw,40px) !important;}
}
