/* Homepage-only generated atmosphere. Content panels keep their readable surfaces. */
body.ma-cinematic { isolation: isolate; }
.page-atmosphere {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  pointer-events: none; background: #0A1628;
}
.page-atmosphere img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  max-width: none; object-fit: cover; opacity: 0;
}
.page-atmosphere img:first-child { opacity: 1; }
.page-atmosphere::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(10,22,40,0.22);
}
.ma-cinematic main > section,
.ma-cinematic main > .trust-bar,
.ma-cinematic > footer { background: transparent !important; }
.ma-cinematic main > .ma-edge,
.ma-cinematic > .ma-edge,
.ma-cinematic main > section > .ma-grain,
.ma-cinematic .hero::after { display: none; }
.ma-cinematic .hero::before {
  background: linear-gradient(90deg, rgba(10,22,40,.65), rgba(10,22,40,.16)) !important;
  pointer-events: none;
}
.ma-cinematic main > .atmosphere-light { padding: 48px 24px; }
.atmosphere-light > .section-inner {
  max-width: 1100px; padding: clamp(24px,4vw,56px);
  background: rgba(247,248,250,.98); border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
}
@media (max-width: 600px) {
  .ma-cinematic main > .atmosphere-light { padding: 28px 16px; }
  .atmosphere-light > .section-inner { padding: 28px 18px; border-radius: 18px; }
  .ma-cinematic .hero::before { background: rgba(10,22,40,.24) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .page-atmosphere img:not(:first-child) { display: none !important; }
}

/* The supplied logo opens the page; the existing navigation follows the entrance. */
body.ma-portal { padding-top: 0 !important; background: #0A1628; }
.ma-portal #navbar { position: sticky; top: 0; }
.brand-entry { position: relative; height: 100svh; background: #0A1628; }
.brand-entry[hidden] { display: none; }
.brand-entry-stage {
  position: relative; width: 100%; height: 100svh; overflow: hidden;
  display: grid; place-items: center; background: #0A1628;
}
.brand-entry-logo {
  position: relative; z-index: 1; display: block;
  width: min(62vw, 680px); height: auto; max-height: 66svh;
  object-fit: contain;
}
.brand-entry-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0;
}
.portal-running .brand-entry { height: 200svh; }
.portal-running .brand-entry-stage { position: fixed; inset: 0; z-index: 2500; pointer-events: none; }
.portal-running .brand-entry-canvas { opacity: 1; }
.portal-running .brand-entry-logo { visibility: hidden; }
.portal-at-start #navbar,
.portal-at-start #scroll-progress,
.portal-at-start .mobile-sticky-cta,
.portal-at-start #ma-chat-btn,
.portal-at-start #ma-chat-panel { visibility: hidden !important; pointer-events: none !important; }
.ma-portal #main-content { scroll-margin-top: 78px; }
.ma-portal .hero { min-height: calc(100svh - 78px); }
.ma-portal .hero-content { grid-template-columns: 1fr; width: 100%; max-width: 840px; text-align: center; padding: 72px 28px; }
.ma-portal .hero-visual, .ma-portal .hero-scroll-cue { display: none; }
.ma-portal .hero-welcome-block, .ma-portal .hero-welcome-text { animation: none; }
.ma-portal .hero-eyebrow { font-size: .76rem; letter-spacing: .19em; text-transform: uppercase; color: #FFD749 !important; margin-bottom: 22px; }
.ma-portal .hero-welcome-text {
  background: none; -webkit-text-fill-color: #fff; color: #fff;
  font-size: clamp(2.8rem, 5.6vw, 5rem); line-height: 1.04; letter-spacing: .015em;
}
.ma-portal .hero-sub { max-width: 590px; margin: 0 auto 30px; color: #e0e6ef; }
.ma-portal .hero-buttons, .ma-portal .hero-proof-row { justify-content: center; }
.ma-portal .hero-buttons .btn-text { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; }
.ma-portal .hero-cta-note { color: #c5cad3; }
.ma-portal .hero::before { background: rgba(10,22,40,.5) !important; }
.portal-static .brand-entry, .portal-static .brand-entry-stage { height: clamp(260px, 55svh, 540px); }
.portal-static .brand-entry-logo { max-height: 38svh; }
@media (max-width: 600px) {
  .brand-entry-logo { width: 84vw; }
  .portal-running .brand-entry { height: 150svh; }
  .ma-portal .hero-content { padding: 56px 22px; }
  .ma-portal .hero-buttons { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-entry, .brand-entry-stage { height: clamp(260px, 55svh, 540px) !important; }
  .brand-entry-stage { position: relative !important; opacity: 1 !important; visibility: visible !important; }
  .brand-entry-logo { max-height: 38svh; opacity: 1 !important; visibility: visible !important; }
  .brand-entry-canvas { display: none !important; }
}
