/* ============================================================
   FAST AEROSPACE
   Layout: stark-defence.com inspired
   Palette: blue/navy brand system
   ============================================================ */

/* === TOKENS === */
:root {
  /* Light sections */
  --bg:          #F5F8FD;
  --bg-2:        #E8EEF8;
  --card-bg:     #FFFFFF;
  --card-bg-2:   #E0EAF8;
  --accent:      #3F6FB5;
  --accent-dark: #2E4E8C;
  --text:        #141B3D;
  --text-dim:    #22304D;
  --text-muted:  #6B82A0;
  --border:      rgba(20,27,61,0.12);
  --border-md:   rgba(20,27,61,0.22);

  /* Dark sections (nav, hero, gallery, contact, footer) */
  --dark:        #131733;
  --dark-2:      #0D1020;
  --dark-grad:   linear-gradient(30deg, #215BEB 0%, #133F7C 15%, #131733 60%, #000000 100%);
  --dark-text:   #FFFFFF;
  --dark-dim:    rgba(255,255,255,0.58);
  --dark-muted:  rgba(255,255,255,0.35);
  --dark-border: rgba(255,255,255,0.12);

  --f-display: Helvetica Neue, Helvetica, Arial, sans-serif;
  --f-body:    Helvetica Neue, Helvetica, Arial, sans-serif;

  --nav-h:   68px;
  --max-w:   1440px;
  --pad:     80px;
  --section: 130px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--dark-grad);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img    { display: block; max-width: 100%; }
a      { text-decoration: none; color: inherit; }
button { border: none; background: none; font-family: inherit; cursor: pointer; }

/* === UTILITIES === */
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Reveal */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal--d1 { transition-delay: 0.08s; }
.js .reveal--d2 { transition-delay: 0.16s; }
.js .reveal--d3 { transition-delay: 0.24s; }

/* Section label — neutral, not accent */
.lbl {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.70rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Text link — light context (used in Systems, Testing, Mission, Careers) */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid rgba(63,111,181,0.35);
  padding-bottom: 2px;
  transition: color 0.2s, gap 0.2s, border-color 0.2s;
}
.tlink:hover { color: var(--accent-dark); gap: 12px; border-color: var(--accent-dark); }

/* Text link — dark context override (hero, gallery, contact) */
.tlink--white {
  color: var(--dark-dim);
  border-bottom-color: rgba(255,255,255,0.25);
}
.tlink--white:hover { color: var(--dark-text); border-bottom-color: rgba(255,255,255,0.6); }

/* ============================================================
   NAV  (dark glass default — switches to light over bright sections)
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  min-height: var(--nav-h);
  background: rgba(19, 23, 51, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  transition: background 0.3s ease;
}
/* Light override — applied via JS when nav is over a bright section */
.nav--light {
  background: rgba(244, 247, 252, 0.90);
}
.nav--light .nav__logo-img        { filter: brightness(0); }
.nav--light .nav__links a         { color: var(--text); }
.nav--light .nav__links a:hover   { opacity: 0.50; }
.nav--light .nav__burger span     { background: var(--text); }
.nav--light .nav__mob ul a              { color: var(--text-dim); border-bottom-color: var(--border); }
.nav--light .nav__mob ul a:hover        { color: var(--text); }
.nav--light .nav__mob .nav__mob-card    { color: var(--text-dim) !important; border-bottom-color: var(--border) !important; }
.nav--light .nav__mob .nav__mob-card:hover { color: var(--text) !important; }
.nav--light .nav__mega-label      { color: rgba(0,0,0,0.30); }
.nav--light .nav__mega-card-cat   { color: var(--text-muted); }
.nav--light .nav__mega-card-name  { color: var(--text); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo-img {
  height: 28px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}
.nav__links a {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 0.80rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
  transition: opacity 0.18s;
  white-space: nowrap;
}
.nav__links a:hover { opacity: 0.65; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 22px;
  padding: 4px 0;
  margin-left: 32px;
}
.nav__burger span {
  display: block;
  height: 1px;
  background: var(--dark-text);
  transition: all 0.3s;
}

.nav__mob {
  display: none;
  padding: 24px var(--pad) 40px;
}
.nav__mob.open { display: block; }
.nav__mob ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}
.nav__mob ul a {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark-text);
  border-bottom: 1px solid var(--dark-border);
  padding: 18px 0;
  transition: color 0.2s;
}
.nav__mob ul a:hover { opacity: 0.65; }

/* Desktop dropdown */
/* Desktop mega menu trigger */
.nav__mega-trigger-wrap { position: relative; }
.nav__chevron {
  display: inline-block;
  font-size: 0.65em;
  margin-left: 4px;
  opacity: 0.65;
  transition: transform 0.22s;
  vertical-align: middle;
}
.nav__mega-trigger-wrap.open .nav__chevron { transform: rotate(180deg); }

/* Mega panel — inside <nav> in normal flow so the nav expands to cover it.
   No own backdrop-filter: the single blur on .nav covers everything uniformly. */
.nav__mega {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
@media (max-width: 800px) { .nav__mega { display: none; } }
.nav__mega.open { max-height: 500px; }
.nav__mega-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px var(--pad) 52px;
  opacity: 0;
  transition: opacity 0.2s ease 0.05s;
}
.nav__mega.open .nav__mega-inner { opacity: 1; }
.nav__mega-label {
  display: block;
  font-family: var(--f-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 28px;
}
.nav__mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 900px;
}
.nav__mega-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.nav__mega-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  background: #111;
}
.nav__mega-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.80);
  transition: transform 0.45s ease, filter 0.3s ease;
}
.nav__mega-card:hover .nav__mega-card-img img {
  transform: scale(1.05);
  filter: brightness(1);
}
.nav__mega-card-meta { padding: 14px 0 0; }
.nav__mega-card-cat {
  display: block;
  font-family: var(--f-display);
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
}
.nav__mega-card-name {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  transition: opacity 0.2s;
}
.nav__mega-card:hover .nav__mega-card-name { opacity: 0.65; }

/* Backdrop — outside nav stacking context, covers page below nav */
.nav__mega-backdrop {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  z-index: 897;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.nav__mega-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile sub-menu */
.nav__mob-item--has-sub .nav__mob-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--dark-border);
}
.nav__mob-item--has-sub .nav__mob-row > a {
  flex: 1;
  border-bottom: none;
  padding-right: 0;
}
.nav__mob-chevron {
  flex-shrink: 0;
  padding: 18px 0 18px 20px;
  color: rgba(255,255,255,0.50);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s;
}
.nav__mob-chevron.open { transform: rotate(90deg); }
.nav__mob-sub {
  display: none;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.nav__mob-sub.open { display: block; }
.nav__mob-sub li a {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: rgba(255,255,255,0.50) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  padding: 13px 0 !important;
}
.nav__mob-sub li a:hover { color: var(--dark-text) !important; }

/* Mobile system cards */
.nav__mob-sub li a.nav__mob-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  color: var(--dark-text) !important;
}
.nav__mob-card-img {
  flex-shrink: 0;
  width: 80px;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  background: #111;
}
.nav__mob-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
  transition: filter 0.25s;
}
.nav__mob-card:hover .nav__mob-card-img img { filter: brightness(1); }
.nav__mob-card-meta { display: flex; flex-direction: column; gap: 3px; }
.nav__mob-card .nav__mega-card-cat,
.nav__mob-card .nav__mega-card-name { color: inherit; }


.nav__mob.nav--light .nav__mob-chevron { color: var(--text-muted); }
.nav__mob.nav--light .nav__mob-sub li a { color: var(--text-muted) !important; border-bottom-color: var(--border) !important; }
.nav__mob.nav--light .nav__mob-sub li a:hover { color: var(--text) !important; }

/* ============================================================
   HERO  (dark — video with navy overlay)
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 88px;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,10,20,0.55) 0%,
    rgba(8,10,20,0.15) 52%,
    rgba(8,10,20,0.08) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
}
.hero__eyebrow {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.70rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.hero__headline {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.68rem, 4.2vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--dark-text);
  max-width: 1200px;
  margin-bottom: 36px;
}
.hero__sub {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--dark-dim);
  max-width: 500px;
  line-height: 1.72;
  margin-bottom: 44px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: 88px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  writing-mode: vertical-rl;
  font-family: var(--f-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.30), transparent);
  animation: line-fade 2.6s ease-in-out infinite;
}
@keyframes line-fade {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0.25; }
}

/* ============================================================
   SYSTEMS  (light bg)
   ============================================================ */
.systems { border-top: 1px solid var(--dark-border); background: var(--dark-grad); }

.systems__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: var(--section) var(--pad) 72px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.systems__header-left h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.68rem, 3.6vw, 3.6rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-top: 12px;
}
.systems__header-right {
  max-width: 400px;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--dark-dim);
  line-height: 1.75;
}
.systems .lbl { color: var(--dark-muted); }

.systems__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--dark-border);
}

/* Cards keep dark overlay — they're image-based */
.sys-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.sys-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.sys-card:hover img { transform: scale(1.05); }
.sys-card__over {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,10,20,0.95) 0%, rgba(8,10,20,0.20) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px;
}
.sys-card__cat {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 12px;
}
.sys-card__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.1vw, 2.1rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}
.sys-card__desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.60);
  line-height: 1.65;
  max-width: 340px;
  margin-bottom: 22px;
}
.sys-card__cta {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}
.sys-card:hover .sys-card__cta { color: #fff; gap: 11px; }

/* ============================================================
   FACTS BAR  (dark — consistent with gallery / contact)
   ============================================================ */
.facts {
  background: var(--dark-grad);
  border-top: none;
}
.facts__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-w);
  margin: 0 auto;
}
.fact {
  padding: 42px var(--pad);
  border-right: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.fact:last-child { border-right: none; }
.fact__val {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.56rem, 2.4vw, 2.88rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}
.fact__lbl {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

/* ============================================================
   TESTING
   ============================================================ */
.testing { background: var(--bg-2); }

/* Fullscreen cinematic video — mirrors hero layout */
.testing__cinematic {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.testing__cinematic-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.testing__cinematic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,10,20,0.40) 0%,
    rgba(8,10,20,0.15) 52%,
    rgba(8,10,20,0.08) 100%
  );
  z-index: 1;
}

/* Header text overlaid on the video */
.testing__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 88px;
  width: 100%;
}
.testing__header-left h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.68rem, 3.6vw, 3.6rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-top: 12px;
}
.testing__header .lbl { color: rgba(255,255,255,0.38); }
.testing__header-right {
  max-width: 400px;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--dark-dim);
  line-height: 1.75;
}

/* 4-col photo strip below the video */
.testing__photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.testing__photos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-right: 1px solid var(--border);
  transition: opacity 0.35s;
}
.testing__photos img:last-child { border-right: none; }
.testing__photos img:hover { opacity: 0.78; }

/* Captions */
.testing__captions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section) var(--pad) var(--section);
  border-top: 1px solid var(--border);
}
.testing__cap h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.testing__cap p { font-size: 0.92rem; color: var(--text-dim); line-height: 1.78; }

/* Horizontal image carousel */
.testing__gallery {
  position: relative;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.testing__gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.testing__gallery-track::-webkit-scrollbar { display: none; }
.testing__gallery-track img {
  height: 260px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
  scroll-snap-align: start;
  border-right: 1px solid var(--border);
  transition: opacity 0.3s;
  cursor: zoom-in;
}
.testing__gallery-track img:last-child { border-right: none; }
.testing__gallery-track img:hover { opacity: 0.82; }
.testing__gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  background: rgba(8,10,20,0.68);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.testing__gallery-btn:hover {
  background: rgba(8,10,20,0.92);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.testing__gallery-btn--prev { left: 20px; }
.testing__gallery-btn--next { right: 20px; }
@media (max-width: 800px) {
  .testing__captions { grid-template-columns: 1fr; }
  .testing__gallery-track img { height: 130px; }
}

/* ============================================================
   GALLERY  (dark — navy bg)
   ============================================================ */
.gallery {
  border-top: 1px solid var(--dark-border);
  background: var(--dark-grad);
}
.gallery__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: var(--section) var(--pad) 64px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.gallery .lbl { color: rgba(255,255,255,0.38); }
.gallery__cta-mobile { display: none; }
.gallery__header-left h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-top: 12px;
}

.gallery__strip { position: relative; overflow: hidden; }
.gallery__strip::before,
.gallery__strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}
.gallery__strip::before { left:  0; background: linear-gradient(to right, var(--dark), transparent); }
.gallery__strip::after  { right: 0; background: linear-gradient(to left,  var(--dark), transparent); }

.gallery__track {
  display: flex;
  gap: 8px;
  animation: g-scroll 60s linear infinite;
  width: max-content;
  padding-bottom: var(--section);
}
.gallery__track img {
  height: 380px;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--dark-border);
  filter: grayscale(15%);
  transition: filter 0.45s;
}
.gallery__track img:hover { filter: grayscale(0%); }

@keyframes g-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   NEWS  (light bg)
   ============================================================ */
.news {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.news__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: var(--section) var(--pad) 64px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.news__header-left h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.68rem, 3.6vw, 3.6rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 12px;
}
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: var(--section);
}
.news-card {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.news-card:last-child { border-right: none; }

.news-card__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  flex-shrink: 0;
}
.news-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.news-card:hover .news-card__img img { transform: scale(1.04); }

.news-card__body {
  padding: 24px 28px 0;
  flex: 1;
}
.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.news-card__cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.news-card__date {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.news-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.50;
  color: var(--text);
}
.news-card__title a {
  color: inherit;
  transition: color 0.2s;
}
.news-card__title a:hover { color: var(--accent); }

/* ============================================================
   MISSION / ABOUT  (alternate light bg)
   ============================================================ */
.mission {
  border-top: 1px solid var(--border);
  padding: var(--section) 0;
  background: var(--bg);
}
.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.mission-inner h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 12px;
  margin-bottom: 36px;
}
.mission-inner p {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.80;
  margin-bottom: 20px;
}
.mission-inner p:last-of-type { margin-bottom: 0; }

/* ============================================================
   CAREERS  (bg-2 light)
   ============================================================ */
.careers {
  border-top: 1px solid var(--border);
  padding: var(--section) 0;
  background: var(--bg-2);
}
.careers__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.careers__left h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 4.2rem);
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 14px;
}
.careers__right { max-width: 380px; flex-shrink: 0; }
.careers__right p {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 32px;
}

/* ============================================================
   CONTACT  (dark — navy bg)
   ============================================================ */
.contact {
  border-top: 1px solid var(--dark-border);
  padding: var(--section) 0;
  background: var(--dark-grad);
}
.contact__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.contact .lbl { color: rgba(255,255,255,0.38); }
.contact__headline {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.8vw, 5.1rem);
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--dark-text);
  max-width: 1000px;
  margin-bottom: 64px;
}
.contact__entries {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  border-top: 1px solid var(--dark-border);
  padding-top: 40px;
}
.contact__entry-label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.70rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 10px;
}
.contact__entry-link {
  font-size: 1.05rem;
  color: var(--dark-dim);
  border-bottom: 1px solid rgba(255,255,255,0.20);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.contact__entry-link:hover { color: var(--dark-text); border-color: rgba(255,255,255,0.55); }

/* ============================================================
   FOOTER  (dark — stark-defence.com layout)
   ============================================================ */
.footer {
  border-top: 1px solid var(--dark-border);
  background: var(--dark-grad);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Head: tagline left, logo top-right */
.footer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 0 88px;
}
.footer__tagline {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.44rem, 3.3vw, 3.9rem);
  line-height: 0.90;
  text-transform: uppercase;
  color: var(--dark-text);
}
.footer__logo { display: flex; align-items: center; flex-shrink: 0; margin-top: 6px; }
.footer__logo-img {
  height: 80px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 1;
  transition: opacity 0.2s;
}
.footer__logo:hover .footer__logo-img { opacity: 0.70; }

/* Columns — spread full width like Stark */
.footer__cols {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--dark-border);
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col .lbl { color: rgba(255,255,255,0.32); margin-bottom: 4px; }
.footer__link {
  font-family: var(--f-display);
  font-size: 0.90rem;
  color: var(--dark-dim);
  transition: color 0.18s;
  width: fit-content;
}
.footer__link:hover { color: var(--dark-text); }

/* Bottom bar */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--dark-border);
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--dark-muted);
}
.footer__bottom-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__cookie-btn {
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--dark-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.18s;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.18);
}
.footer__cookie-btn:hover {
  color: var(--dark-dim);
  text-decoration-color: rgba(255,255,255,0.45);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  transform: scale(0.95);
  transition: transform 0.28s ease;
  cursor: default;
}
.lightbox.open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: color 0.18s;
}
.lightbox__close:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  :root { --pad: 48px; --section: 96px; }
  .systems__header,
  .testing__header,
  .gallery__header,
  .careers__inner  { flex-direction: column; align-items: flex-start; }
  .systems__header-right,
  .testing__header-right,
  .careers__right  { max-width: 100%; }
  .facts__row { grid-template-columns: 1fr 1fr; }
  .fact       { border-right: none; border-bottom: 1px solid var(--dark-border); }
  .fact:nth-child(odd)         { border-right: 1px solid var(--dark-border); }
  .fact:nth-last-child(-n+2)   { border-bottom: none; }
}

@media (max-width: 800px) {
  :root { --pad: 24px; --section: 72px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .systems__grid { grid-template-columns: 1fr; }
  .sys-card { border-right: none; border-bottom: 1px solid var(--border); aspect-ratio: 15/13; }
  .sys-card__cat, .sys-card__desc { display: none; }
  .testing__photos { grid-template-columns: 1fr 1fr; }
  .testing__photos img { border-right: none; border-bottom: 1px solid var(--border); }
  .testing__photos img:last-child { border-bottom: none; }
  .testing__captions { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .news-card { border-right: none; border-bottom: 1px solid var(--border); }
  .news-card:last-child { border-bottom: none; }
  .news__header { flex-direction: column; align-items: flex-start; }
  .facts__row { grid-template-columns: 1fr 1fr; }
  .gallery__track img { height: 240px; }
  .gallery__strip::before,
  .gallery__strip::after { width: 48px; }
  .gallery__cta-desktop { display: none; }
  .gallery__cta-mobile {
    display: inline-flex;
    margin: 32px var(--pad) 48px;
  }
  .contact__entries { gap: 36px; flex-direction: column; }
  .footer__head { flex-direction: column-reverse; align-items: flex-start; gap: 32px; padding: 56px 0 64px; }
  .footer__cols { flex-direction: column; gap: 28px; }
  .footer__bottom { gap: 12px; }
  .footer__bottom-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero__scroll { display: none; }
  .mission-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MISSION PAGE
   ============================================================ */
.m-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 96px;
  overflow: hidden;
  background: var(--dark-2);
}
.m-hero__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/HyperDart/hd/HyperDart_flight.jpg') center/cover no-repeat;
  z-index: 0;
}
.m-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,10,20,0.55) 0%,
    rgba(8,10,20,0.15) 52%,
    rgba(8,10,20,0.08) 100%
  );
  z-index: 1;
}
.m-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
}
.m-hero__content .lbl { color: var(--dark-muted); }
.m-hero__headline {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 6rem);
  line-height: 0.93;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--dark-text);
  max-width: 900px;
  margin-top: 18px;
}

.m-statement {
  background: var(--bg);
  padding: var(--section) 0;
}
.m-statement__text {
  font-family: var(--f-display);
  font-size: clamp(calc(1.55rem), calc(3vw), calc(2.6rem));
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 1060px;
}
.m-statement__text strong { color: var(--text); font-weight: 700; }

.m-facts {
  background: var(--dark-grad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.m-fact {
  padding: 52px var(--pad);
  border-right: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.m-fact:last-child { border-right: none; }
.m-fact__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  color: var(--dark-text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.m-fact__lbl {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.m-tech {
  background: var(--bg);
  padding: var(--section) 0;
}
.m-tech__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.m-tech__left h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 3rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 18px;
}
.m-tech__right { padding-top: 58px; }
.m-tech__right p {
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  color: var(--text-dim);
  line-height: 1.78;
  margin-bottom: 20px;
}

.m-markets {
  background: var(--dark-grad);
  padding: var(--section) 0;
}
.m-markets__header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  margin-bottom: 60px;
}
.m-markets__header .lbl { color: var(--dark-muted); }
.m-markets__header h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 3rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-top: 16px;
}
.m-markets__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--dark-border);
}
.m-market {
  padding: 52px 48px 52px 0;
  border-right: 1px solid var(--dark-border);
}
.m-market:last-child { border-right: none; padding: 52px 0 52px 48px; }
.m-market__num {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 20px;
}
.m-market h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  text-transform: uppercase;
  color: var(--dark-text);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.m-market p { font-size: 0.94rem; color: var(--dark-dim); line-height: 1.72; }

.m-milestone {
  position: relative;
  height: 70vh;
  min-height: 440px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.m-milestone__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.m-milestone__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8,10,20,0.90) 40%, rgba(8,10,20,0.25) 100%);
  z-index: 1;
}
.m-milestone__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
}
.m-milestone__content .lbl { color: var(--dark-muted); }
.m-milestone__content h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 3.8rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--dark-text);
  max-width: 560px;
  margin: 16px 0 24px;
}
.m-milestone__content p {
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  color: var(--dark-dim);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 32px;
}

@media (max-width: 800px) {
  .m-hero { height: 100vh; height: 100svh; padding-bottom: 72px; }
  .m-hero__content { padding: 0 var(--pad); }
  .m-facts { grid-template-columns: 1fr 1fr; }
  .m-fact { padding: 36px var(--pad); }
  .m-fact:nth-child(2) { border-right: none; }
  .m-fact:nth-child(3) { border-top: 1px solid var(--dark-border); border-right: 1px solid var(--dark-border); }
  .m-tech__grid { grid-template-columns: 1fr; gap: 32px; }
  .m-tech__right { padding-top: 0; }
  .m-markets__grid { grid-template-columns: 1fr; }
  .m-market { padding: 40px 0; border-right: none; border-bottom: 1px solid var(--dark-border); }
  .m-market:last-child { padding: 40px 0; border-bottom: none; }
  .m-milestone { height: auto; min-height: 520px; align-items: flex-end; padding-bottom: 56px; }
  .m-milestone__overlay { background: linear-gradient(to top, rgba(8,10,20,0.95) 40%, rgba(8,10,20,0.30) 100%); }
}

/* ============================================================
   ARTICLE PAGE  (ar-*)  — two-column split layout
   ============================================================ */

/* ── Wrapper grid ── */
.ar-wrap {
  display: grid;
  grid-template-columns: 2fr 3fr;
  padding-top: var(--nav-h);
  background: #ffffff;
  min-height: calc(100vh - var(--nav-h));
}

/* ── Left column: meta + image ── */
.ar-left {
  padding: 48px var(--pad) var(--section);
  border-right: 1px solid var(--border);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.ar-tags {
  font-family: var(--f-display); font-weight: 600;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted);
}
.ar-cat { color: var(--accent); }
.ar-sep { margin: 0 7px; opacity: 0.45; }
.ar-date { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; }
.ar-left-img { width: 100%; display: block; object-fit: cover; object-position: center; }

/* ── Right column: back / title / excerpt / body ── */
.ar-right {
  padding: 48px var(--pad) var(--section);
  background: #ffffff;
}
.ar-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 600;
  font-size: 0.70rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 40px;
  transition: color 0.2s;
}
.ar-back:hover { color: var(--text); }
.ar-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 3.6rem);
  line-height: 0.93; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--text);
  margin-bottom: 22px;
}
.ar-excerpt {
  font-size: 0.97rem; color: var(--text-muted);
  line-height: 1.74; max-width: 560px;
}
.ar-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 40px 0;
}
.ar-body p { font-size: 1.01rem; color: var(--text-dim); line-height: 1.84; margin-bottom: 24px; }
.ar-body h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.38rem);
  text-transform: uppercase; color: var(--text);
  margin: 48px 0 16px;
}
.ar-body blockquote { border-left: 2px solid var(--accent); padding: 2px 0 2px 22px; margin: 32px 0; }
.ar-body blockquote p { color: var(--text); font-style: italic; margin-bottom: 8px; }
.ar-body blockquote cite {
  font-size: 0.73rem; font-style: normal; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}

/* ── Press contact ── */
.ar-contact {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: var(--section) var(--pad);
  text-align: center;
}
.ar-contact__inner { max-width: 560px; margin: 0 auto; }
.ar-contact .lbl { color: var(--text-muted); display: block; text-align: center; }
.ar-contact h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 0.92; text-transform: uppercase;
  color: var(--text); margin-top: 16px; margin-bottom: 20px;
}
.ar-contact p { font-size: 0.95rem; color: var(--text-dim); line-height: 1.78; margin-bottom: 36px; }
.ar-contact__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 700;
  font-size: 0.80rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border-bottom: 1px solid rgba(63,111,181,0.35);
  padding-bottom: 2px;
  transition: gap 0.2s, border-color 0.2s;
}
.ar-contact__cta:hover { gap: 14px; border-color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .ar-wrap { grid-template-columns: 1fr; }
  .ar-left {
    border-right: none; border-bottom: 1px solid var(--border);
    padding-bottom: calc(var(--section) * 0.6);
  }
  .ar-contact { padding: calc(var(--section) * 0.7) var(--pad); }
}
