/* AIIA v51 - FINAL targeted fixes
   1) Journey: hide old loading line, show percent loader before content, remove old 2D plane.
   2) Contact: do not open mail app; submit form to PHP endpoint.
   Does not touch admin/database/storage/uploads/GLB. */

/* Journey boot loader: hides page until flight is ready. */
html.aiia-v51-flight-loading,
html.aiia-v51-flight-loading body{
  background:#020814 !important;
}
html.aiia-v51-flight-loading body{
  overflow:hidden !important;
}
html.aiia-v51-flight-loading body > *:not(#aiiaV51FlightLoader){
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}
#aiiaV51FlightLoader{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483647 !important;
  display:grid !important;
  place-items:center !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  background:
    radial-gradient(circle at 50% 32%, rgba(51,204,255,.18), transparent 34%),
    linear-gradient(180deg,#020814 0%,#061427 55%,#020814 100%) !important;
  color:#fff !important;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif !important;
  transition:opacity .45s ease, visibility .45s ease !important;
}
#aiiaV51FlightLoader.aiia-v51-done{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
#aiiaV51FlightLoader .aiia-v51-loader-box{
  width:min(420px,calc(100vw - 40px)) !important;
  text-align:center !important;
  padding:30px 24px !important;
  border-radius:28px !important;
  border:1px solid rgba(255,255,255,.13) !important;
  background:rgba(4,12,28,.52) !important;
  box-shadow:0 28px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08) !important;
  backdrop-filter:blur(20px) !important;
  -webkit-backdrop-filter:blur(20px) !important;
}
#aiiaV51FlightLoader .aiia-v51-loader-kicker{
  display:block !important;
  margin:0 0 14px !important;
  color:rgba(255,255,255,.68) !important;
  font-weight:900 !important;
  font-size:11px !important;
  line-height:1.4 !important;
  text-transform:uppercase !important;
  letter-spacing:.22em !important;
}
#aiiaV51FlightLoader .aiia-v51-loader-percent{
  margin:0 !important;
  color:#fff !important;
  font:950 clamp(44px,7vw,74px)/1 Sora,Inter,system-ui,sans-serif !important;
  letter-spacing:-.05em !important;
  text-shadow:0 0 28px rgba(51,204,255,.30) !important;
}
#aiiaV51FlightLoader .aiia-v51-loader-status{
  margin-top:14px !important;
  color:rgba(255,255,255,.56) !important;
  font-weight:850 !important;
  font-size:10px !important;
  line-height:1.45 !important;
  text-transform:uppercase !important;
  letter-spacing:.16em !important;
}

/* Kill the old/secondary 2D airplane. Keep the real GLB/WebGL canvas #c. */
body.aiia-v51-journey #canv,
body.aiia-v51-journey canvas#canv,
body.aiia-v51-journey canvas.birdExact,
body.aiia-v51-journey #canv.birdExact,
body.aiia-v51-journey .birdExact,
body.aiia-v51-journey .birdOcclusion,
body.aiia-v51-journey .modal__planeWrap,
body.aiia-v51-journey .modal__plane,
body.aiia-v51-journey .cloudTitle,
body.aiia-v51-journey #cloudTitle,
body.aiia-v51-journey .cloudTyperCanvas,
body.aiia-v51-journey #cloudTyperCanvas,
body.aiia-v51-journey .cloudTyperLabel,
body.aiia-v51-journey #cloudTyperLabel{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
  transform:none !important;
}
body.aiia-v51-journey #c,
body.aiia-v51-journey canvas#c{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* Remove the old white linear loader/progress that appeared over the Journey screen. */
body.aiia-v51-journey #loading,
body.aiia-v51-journey .loading,
body.aiia-v51-journey .loader,
body.aiia-v51-journey .loader .bar,
body.aiia-v51-journey .loader .bar span,
body.aiia-v51-journey #aiiaJourneyBootLoader,
body.aiia-v51-journey .aiia-v49-bar,
body.aiia-v51-journey .aiia-v49-bar span{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

body.aiia-v51-journey.aiia-v51-ready .scroll{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}
body.aiia-v51-journey.aiia-v51-ready .scroll::before{
  content:"SCROLL TO EXPLORE" !important;
  display:block !important;
  margin-bottom:8px !important;
  color:rgba(255,255,255,.88) !important;
  letter-spacing:.20em !important;
}

/* Contact form status */
.aiia-v51-form-status{
  margin-top:14px !important;
  padding:12px 14px !important;
  border-radius:14px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  background:rgba(255,255,255,.07) !important;
  color:rgba(255,255,255,.86) !important;
  font:700 13px/1.45 Inter,system-ui,sans-serif !important;
}
.aiia-v51-form-status.ok{border-color:rgba(34,211,238,.30)!important;background:rgba(34,211,238,.10)!important;}
.aiia-v51-form-status.err{border-color:rgba(255,105,105,.30)!important;background:rgba(255,105,105,.10)!important;}
