/* AERILIS V2.4 — authentic brand PNGs are included unmodified.
   CSS crops transparent canvas margins only; no filters or recolouring. */
:root {
  --bg: #050607;
  --bg2: #121619;
  --silver: #F3F5F4;
  --green: #3AF29B;
  --slate: #98A3A0;
  --header-height: 100px;
  --header-gutter: clamp(24px, 4vw, 88px);
  --hero-gutter: clamp(32px, 6vw, 132px);
  --content: 1440px;
}
html { scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: visible;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.site-shell { overflow: clip; }
button { color: inherit; }
img[src$=".svg"], img[src$=".png"] {
  filter: none !important;
  mix-blend-mode: normal !important;
  image-rendering: auto;
}
/* No composited transform left on logo ancestors after reveal. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.visible { opacity: 1; transform: none; }

/* NAVIGATION — type and logo keep a usable minimum size. */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid rgba(243,245,244,.13);
  background: rgba(5,8,9,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background .25s;
}
.site-header.scrolled { background: rgba(5,6,7,.98); }
.header-inner {
  height: 100%;
  width: min(100%, 2200px);
  margin-inline: auto;
  padding-inline: var(--header-gutter);
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.4vw, 48px);
}
/* The official 4096×1101 horizontal PNG has ~25% transparent space above/below.
   This crop only changes the visible canvas; the original file is unmodified. */
.brand { flex: 0 0 clamp(302px, 27vw, 420px); width: clamp(302px, 27vw, 420px); display:block; }
.brand-framed { position:relative; aspect-ratio:3800 / 610; overflow:hidden; flex-shrink:0; }
.brand-framed img { position:absolute; max-width:none; width:107.79%; height:auto; top:-40.98%; left:-2.63%; margin:0; opacity:1; filter:none!important; image-rendering:auto; }
.desktop-nav { display: flex; gap: clamp(22px, 2vw, 38px); align-items: center; margin-inline: auto; }
.desktop-nav a {
  position: relative;
  padding-block: 16px;
  color: #c7d1cd;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .055em;
  line-height: 1.4;
  white-space: nowrap;
  transition: color .2s;
}
.desktop-nav a::after { content:""; position:absolute; left:0; right:0; bottom:7px; height:1px; background:var(--green); opacity:0; transition:opacity .2s; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--green); }
.desktop-nav a.active::after { opacity: .8; }
.header-actions { display: flex; gap: 24px; align-items: center; }
.project-status { display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: .09em; color: #b5c4bd; white-space: nowrap; }
.header-cta {
  border: 1px solid rgba(58,242,155,.55);
  color: var(--green);
  padding: 14px 20px;
  display: inline-flex;
  gap: 19px;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .13em;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.header-cta span { font-size: 20px; font-weight: 400; line-height: 1; }
.header-cta:hover { background: rgba(58,242,155,.08); border-color: var(--green); }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 10px; background: transparent; border: 1px solid rgba(243,245,244,.2); cursor: pointer; }
.menu-toggle span { width: 24px; height: 1px; display: block; background: var(--silver); margin: 7px auto; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav {
  position: fixed;
  z-index: 99;
  inset: var(--header-height) 0 auto;
  max-height: calc(100svh - var(--header-height));
  overflow-y: auto;
  padding: 24px var(--header-gutter) 32px;
  border-bottom: 1px solid var(--border);
  background: #080c0d;
  box-shadow: 0 24px 48px rgba(0,0,0,.45);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav:not([hidden]) { display: grid; }
.mobile-nav a { font-size: 18px; letter-spacing: .07em; padding: 17px 4px; border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { color: var(--green); }

/* HERO — its height is driven by content, not a fixed clipping rectangle. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(820px, 100svh);
  padding: calc(var(--header-height) + 44px) 0 112px;
  background: var(--bg);
  border-bottom: 1px solid rgba(243,245,244,.18);
  overflow: hidden;
}
.hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 75% at 45% 22%, rgba(18,42,34,.45), transparent 78%),
    radial-gradient(ellipse 35% 52% at 78% 32%, rgba(38,70,64,.12), transparent 75%);
}
.hero-aircraft {
  position: absolute;
  z-index: 0;
  top: var(--header-height);
  bottom: -3%;
  right: 0;
  width: min(67vw, 1420px);
  background: url('assets/aircraft-right-v23.webp') center right / cover no-repeat;
  opacity: .92;
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.13) 15%, #000 46%), linear-gradient(180deg, #000 0%, #000 67%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.13) 15%, #000 46%), linear-gradient(180deg, #000 0%, #000 67%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,6,7,.35) 0%, rgba(5,6,7,.28) 35%, transparent 70%),
    linear-gradient(180deg, rgba(5,6,7,.09) 36%, rgba(5,6,7,.15) 64%, #050607 100%);
}
.hero-trail {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, 2140px);
  margin-inline: auto;
  padding-inline: var(--hero-gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.eyebrow { font-size: 11px; line-height: 1.6; font-weight: 600; letter-spacing: .2em; color: #c6d3cc; }
.hero-eyebrow { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; }
.eyebrow-rule { display: inline-block; width: 36px; height: 1px; flex: 0 0 auto; background: var(--green); opacity: .8; }
/* Only blank top/bottom margins of the SVG's document are outside this slot.
   The A, beam, wordmark and signature are all displayed in full. */
.hero-lockup {
  position: relative;
  width: clamp(560px, 57vw, 1040px);
  aspect-ratio: 1672 / 710;
  margin: 0 0 20px -28px;
  overflow: hidden;
  flex: 0 0 auto;
}
.hero-logo {
  position: absolute;
  left: 0;
  top: -14.084507%; /* 100 / 710 of the viewport slot; source y=100. */
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  opacity: 1;
  transform: none;
  animation: none;
}
.hero h1 {
  font-size: clamp(30px, 2.65vw, 52px);
  font-weight: 300;
  letter-spacing: .115em;
  line-height: 1.24;
  margin: 0 0 20px;
  max-width: 1080px;
  color: var(--silver);
  text-wrap: balance;
}
.hero h1 span, .hero h1 em { white-space: nowrap; }
.hero h1 em { font-style: normal; color: #c8dcd0; }
.hero-description {
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: .015em;
  max-width: 520px;
  color: #c2cdc7;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 56px;
  padding: 16px 24px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .11em;
  line-height: 1.4;
  transition: background .2s, border-color .2s;
}
.button span { font-size: 20px; line-height: 1; font-weight: 400; }
.button-primary { background: var(--green); border-color: var(--green); color: #050607; box-shadow: 0 8px 36px rgba(58,242,155,.09); }
.button-primary:hover { background: #8effc4; border-color: #8effc4; }
.button-secondary { color: var(--silver); background: rgba(5,10,10,.65); border-color: rgba(243,245,244,.35); }
.button-secondary:hover { color: var(--green); border-color: var(--green); }
.hero-side { position: absolute; z-index: 4; top: 50%; display: flex; align-items: center; gap: 20px; color: #a8bab1; font-size: 9px; font-weight: 500; letter-spacing: .2em; }
.hero-side-left { left: 25px; transform: rotate(-90deg) translate(-50%,0); transform-origin: top left; }
.hero-side-right { right: 25px; transform: rotate(90deg) translate(50%,0); transform-origin: top right; }
.side-bar { width: 36px; height: 1px; display: block; background: var(--green); }
.hero-bottom { position: absolute; z-index: 4; bottom: 26px; left: var(--header-gutter); right: var(--header-gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; font-size: 10px; line-height: 1.5; letter-spacing: .14em; color: #a7b9af; }
.hero-coordinate { display: flex; gap: 14px; align-items: center; }
.hero-coordinate.right { justify-content: flex-end; }
.small-green-line { width: 20px; height: 2px; flex: 0 0 auto; background: var(--green); }
.scroll-cue { display: flex; flex-direction: column; gap: 10px; align-items: center; font-size: 10px; }
.scroll-icon { width: 26px; height: 36px; border: 1px solid rgba(243,245,244,.25); border-radius: 18px; display: grid; place-items: center; color: var(--green); font-size: 15px; }

/* EXISTING SECTIONS — same organization; improved reading sizes and logos. */
.section-intro { font-size: 17px; }
.kicker { font-size: 11px; }
.quiet-note { line-height: 1.7; }
.section-intro .quiet-note, .community-copy .quiet-note { font-size: 13px; color: #a1b2a9; }
.network-node.core img { width: 144px; height: auto; margin: 0 0 4px; }
.network-node.core { min-height: 220px; }
.network-node .node-type, .network-devices .node-type { font-size: 9px; }
.network-node strong, .network-devices strong { font-size: 14px; }
.network-node small, .network-devices small { font-size: 9px; }
.network-cable span { font-size: 10px; }
.stage-topline, .stage-bottomline { font-size: 10px; }
.deck-card-top, .deck-subtitle { font-size: 10px; }
.decks-footnote { font-size: 10px; }
.tech-item h3 { font-size: 15px; letter-spacing: .1em; }
.tech-item p { font-size: 15px; }
.community-copy > p:not(.kicker) { font-size: 17px; }
.pilot-card-top img { width: 110px; height: auto; }
.pilot-card-top span, .pilot-card-middle span, .pilot-card-bottom { font-size: 10px; }
.pilot-card-middle strong { font-size: 24px; }
.concept-caption { font-size: 10px; }
.launch-mark { width: clamp(210px, 18vw, 270px); height: auto; margin: -12px auto 16px; filter: none !important; transform: none; }
.launch-content > p:not(.kicker) { font-size: 17px; color: #b7c8be; }
.launch-state { font-size: 12px; }
.footer-brand { width: 328px; }
.footer-brand img { width: 107.79%; height: auto; }
.site-footer > p { font-size: 10px; margin-top: 8px; }
.footer-links { margin-top: -62px; }
.footer-links a { font-size: 12px; }
.footer-bottom { font-size: 10px; }

@media (min-width: 2200px) {
  :root { --header-height: 112px; --content: 1640px; }
  .brand { flex-basis: 435px; width:435px; }
  .desktop-nav { gap: 42px; }
  .desktop-nav a { font-size: 17px; }
  .hero-content { width: min(100%, 2400px); }
  .hero-lockup { width: clamp(1040px, 39vw, 1240px); }
  .hero h1 { font-size: 58px; }
  .hero-description { font-size: 22px; max-width: 620px; }
  .hero-eyebrow { font-size: 13px; }
  .button { font-size: 14px; padding: 19px 28px; }
  .hero-aircraft { width: 61%; background-size: cover; }
}
@media (max-width: 1500px) { .project-status { display: none; } }
@media (max-width: 1250px) {
  .brand { flex-basis: 300px; width:300px; }
  .desktop-nav { gap: 22px; }
  .header-inner { gap: 24px; }
  .header-cta { padding-inline: 16px; }
  .hero-side { display: none; }
  .hero-lockup { width: clamp(540px, 64vw, 800px); }
  .hero h1 { font-size: 36px; max-width: 850px; }
}
@media (max-width: 1100px) {
  :root { --header-height: 88px; --hero-gutter: 40px; }
  .brand { flex-basis: 295px; width:295px; }
  .desktop-nav, .header-cta, .project-status { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: block; }
  .hero { min-height: max(800px, 100svh); padding-top: calc(var(--header-height) + 46px); }
  .hero-content { max-width: 100%; }
  .hero-aircraft { width: 78%; opacity: .72; background-position: right center; }
  .hero-lockup { width: min(82vw, 790px); }
  .hero h1 { max-width: 760px; font-size: clamp(32px, 4vw, 42px); }
  .hero-description { max-width: 490px; }
  .hero-eyebrow { font-size: 10px; gap: 14px; }
  .section-intro { font-size: 16px; }
  .deck-grid { grid-template-columns: 1fr; max-width: 780px; margin-inline: auto; }
  .instrument-plate { transform: none; }
  .instrument { width: 175px; }
  .instrument.attitude { width: 205px; }
  .deck-card { min-height: 490px; }
  .glass-scene { height: 280px; margin-inline: 40px; }
  .deck-card h3 { font-size: 50px; }
  .network-map { padding-inline: 24px; }
  .network-node.core img { width: 130px; }
  .network-node strong, .network-devices strong { font-size: 12px; }
  .network-devices small { font-size: 8px; }
  .tech-item h3 { font-size: 13px; letter-spacing: .045em; }
  .tech-item p { font-size: 14px; }
  .community-section { grid-template-columns: 1fr; gap: 36px; }
  .community-copy { max-width: 650px; }
  .pilot-card-scene { height: 370px; }
  .pilot-card { width: min(100%, 470px); }
}
@media (max-width: 700px) {
  :root { --header-height: 80px; --header-gutter: 20px; --hero-gutter: 24px; }
  .header-inner { gap: 16px; }
  .brand { flex-basis: 250px; width:250px; }
  .hero { min-height: max(780px, 100svh); padding-top: calc(var(--header-height) + 46px); padding-bottom: 106px; }
  .hero-content { align-items: center; text-align: center; }
  .hero-eyebrow { justify-content: center; gap: 10px; font-size: 9px; letter-spacing: .1em; margin-bottom: 26px; }
  .eyebrow-rule { width: 18px; }
  .hero-lockup { width: 100%; max-width: 570px; margin: 0 0 28px; }
  .hero h1 { font-size: clamp(28px, 7.3vw, 42px); letter-spacing: .105em; margin-bottom: 20px; max-width: 560px; }
  .hero h1 em { display: block; margin-top: 5px; }
  .hero-description { font-size: 16px; max-width: 375px; margin-bottom: 26px; }
  .hero-buttons { flex-direction: column; width: min(100%, 360px); gap: 12px; }
  .button { width: 100%; min-height: 54px; }
  .hero-aircraft { top: var(--header-height); bottom: 20%; width: 100%; right: 0; opacity: .43; background-position: right top; -webkit-mask-image: linear-gradient(90deg, transparent, #000 74%), linear-gradient(180deg, #000 0%, #000 35%, transparent 100%); mask-image: linear-gradient(90deg, transparent, #000 74%), linear-gradient(180deg, #000 0%, #000 35%, transparent 100%); }
  .hero-vignette { background: linear-gradient(180deg, rgba(5,6,7,.05) 10%, rgba(5,6,7,.45) 43%, #050607 84%); }
  .hero-bottom { display: flex; justify-content: center; bottom: 24px; }
  .hero-coordinate { display: none; }
  .hero-side { display: none; }
  .scroll-cue { font-size: 9px; }
  .section h2, .tech-heading h2 { font-size: clamp(40px, 9.5vw, 62px); }
  .section-intro { font-size: 16px; }
  .kicker { font-size: 10px; }
  .network-node.core { width: 220px; min-height: 190px; }
  .network-node.sim { width: 220px; }
  .network-node.core img { width: 148px; height: auto; }
  .network-node strong, .network-devices strong { font-size: 13px; }
  .network-node .node-type, .network-devices .node-type { font-size: 9px; }
  .network-node small, .network-devices small { font-size: 9px; }
  .network-cable span { font-size: 9px; }
  .network-map { min-height: 730px; padding-block: 74px; }
  .platform-stage { min-height: 730px; }
  .stage-bottomline, .stage-topline { font-size: 9px; }
  .deck-card-top { padding: 22px 20px; font-size: 9px; letter-spacing: .11em; }
  .developing { font-size: 9px; }
  .instrument-plate { margin-inline: 0; padding-inline: 0; }
  .instrument { width: clamp(102px, 25vw, 158px); }
  .instrument.attitude { width: clamp(120px, 28vw, 178px); }
  .deck-card h3 { font-size: clamp(38px, 10vw, 50px); }
  .deck-card-bottom { padding: 24px; }
  .deck-glass .glass-scene { margin-inline: 24px; }
  .decks-footnote { font-size: 9px; }
  .tech-item h3 { font-size: 13px; }
  .tech-item p { font-size: 14px; }
  .community-copy > p:not(.kicker) { font-size: 16px; }
  .pilot-card { padding: 24px; }
  .pilot-card-middle strong { font-size: clamp(17px, 4.5vw, 23px); }
  .pilot-card-top span, .pilot-card-bottom { font-size: 8px; letter-spacing: .1em; }
  .launch-content { padding: 74px 24px; }
  .launch-content h2 { font-size: clamp(35px, 8.5vw, 54px); }
  .launch-content > p:not(.kicker) { font-size: 16px; }
  .launch-state { font-size: 10px; letter-spacing: .14em; }
  .footer-brand { width: 260px; max-width: 100%; }
  .footer-links { margin: 30px 0 35px; gap: 24px; }
  .footer-links a { font-size: 11px; }
  .footer-bottom { font-size: 10px; letter-spacing: .08em; }
}
@media (max-width: 370px) {
  :root { --header-gutter: 16px; --hero-gutter: 20px; }
  .brand { flex-basis: 215px; width:215px; }
  .header-inner { gap: 12px; }
  .hero-eyebrow { font-size: 8px; letter-spacing: .055em; gap: 8px; }
  .eyebrow-rule { width: 12px; }
  .hero h1 { font-size: 27px; }
  .button { font-size: 11px; }
  .developing { font-size: 8px; }
  .deck-card-top { font-size: 8px; }
  .deck-card { min-height: 440px; }
  .glass-topline { padding-inline: 8px; gap: 5px; font-size: 8px; }
  .glass-topline b { font-size: 12px; margin-left: 2px; }
  .glass-bottomline { font-size: 7px; gap: 4px; padding-inline: 6px; }
  .pilot-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Additional intrinsic-size protection: resilient even if an embedding page
   applies CSS zoom (distinct from native browser zoom). */
.hero-lockup { max-width: 100%; }
.header-inner { container-type: inline-size; container-name: aerilis-header; }
@container aerilis-header (max-width: 980px) {
  .desktop-nav, .header-cta, .project-status { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: block; }
  .brand { flex: 0 1 295px; min-width: 0; width: min(295px, calc(100% - 64px)); max-width: calc(100% - 64px); }
}

/* V2.4: PNG integrity + visual crispness + correct flex layout. */
.brand-framed img, .hero-logo, .launch-mark, .network-node.core img, .pilot-card-top img {
  image-rendering: auto; object-fit: contain; backface-visibility: visible;
  mix-blend-mode: normal; filter:none!important;
}
.brand-framed img { object-fit: initial; }
.hero-logo { image-rendering: auto; }
@media (max-width: 700px) {
  .brand { flex: 0 0 min(250px, calc(100% - 70px)); width: min(250px, calc(100% - 70px)); }
  .footer-brand { width: min(290px, 85vw); }
}
@media (max-width: 370px) {
  .brand { flex-basis: min(215px, calc(100% - 70px)); width: min(215px, calc(100% - 70px)); }
}
