/* ═══════════════════════════════════════════════════════════
   BASS AERO — bass.aero
   Palette (locked, v4):
     Base            #2C2C2C   Stats anchor   #242424
     Service odd     #272727   Service even   #323232
     Light break     #F5F4F0   Story break    #ECEAE5
     Footer          #1E1E1E   Borders        #383838
     Red             #CC1309   Pill           #FAF9F7
     Headings        #F5F4F0   Body on dark   #9A9A9A
   Fonts: Inter (headings/UI) · DM Sans (body)
   ═══════════════════════════════════════════════════════════ */

:root {
  --base: #2C2C2C;
  --deep: #242424;
  --odd: #272727;
  --even: #323232;
  --light: #F5F4F0;
  --story: #ECEAE5;
  --footer: #1E1E1E;
  --border: #383838;
  --border-light: #E0DFDB;
  --red: #CC1309;
  --pill: #FAF9F7;
  --head: #F5F4F0;
  --body: #C4C4C4;
  --ink: #1A1A1A;
  --pad-x: clamp(20px, 5.5vw, 80px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Cinematic scroll-snap — desktop/tablet-landscape only (mobile sections
   run many screens tall; snap there does nothing but tug). Proximity, not
   mandatory, so a fast scroller can still fling straight past. */
@media (min-width: 1025px) {
  html { scroll-snap-type: y proximity; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-snap-type: none; } }
body {
  font-family: 'Inter', sans-serif;
  background: var(--base);
  color: var(--head);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.red { color: var(--red); }

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 14px 24px;
  display: flex; justify-content: center;
  z-index: 100;
  transition: transform .35s ease;
}
.navbar.hidden { transform: translateY(-110%); }
.navbar-pill {
  background: var(--pill);
  border-radius: 999px;
  box-shadow: 0 2px 20px rgba(0,0,0,.22);
  padding: 0 12px 0 24px;
  height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1320px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 32px; width: auto; display: block; }
.footer-logo-img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 38px; align-items: center; }
.nav-link { font-family: 'DM Sans', sans-serif; font-size: 14px; color: #555; }
.nav-link:hover { color: var(--ink); }

/* ── Solutions nav dropdown — hover on desktop, plain link (no dropdown) on touch ── */
.nav-item-dropdown { position: relative; display: flex; align-items: center; }
.nav-caret { display: inline-block; font-size: 10px; margin-left: 3px; transform: translateY(1px); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 14px;
  background: var(--pill); border-radius: 12px; padding: 8px;
  box-shadow: 0 10px 32px rgba(0,0,0,.28);
  min-width: 168px; z-index: 50;
}
.nav-dropdown-link {
  display: block; font-family: 'DM Sans', sans-serif; font-size: 14px; color: #555;
  padding: 10px 14px; border-radius: 8px; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown-link:hover { background: var(--base); color: var(--head); }
@media (hover: hover) and (pointer: fine) {
  .nav-dropdown {
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav-item-dropdown:hover .nav-dropdown,
  .nav-item-dropdown:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
}
@media not all and (hover: hover) and (pointer: fine) {
  .nav-dropdown { display: none; }
  .nav-caret { display: none; }
}
.nav-cta {
  font-size: 13px; font-weight: 600; color: #fff;
  background: var(--red);
  padding: 9px 24px; border-radius: 999px; letter-spacing: .03em; margin-left: 8px;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }
.nav-actions { display: flex; align-items: center; gap: 22px; }

/* ── Floating 24/7 ops call button ─────────────────────────── */
.fab-phone {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  display: inline-flex; align-items: center; flex-direction: row-reverse;
  height: 60px; width: 60px; padding: 0;
  border-radius: 30px; overflow: hidden;
  background: var(--red); color: #fff;
  box-shadow: 0 8px 24px rgba(204,19,9,.38), 0 2px 8px rgba(0,0,0,.25);
  transition: width .28s cubic-bezier(.4,0,.2,1), box-shadow .2s, transform .2s;
}
.fab-phone-ring {
  position: absolute; right: 0; top: 0; width: 60px; height: 60px;
  border-radius: 50%; background: var(--red);
  animation: fabPulse 2.4s ease-out infinite; z-index: -1;
}
@keyframes fabPulse {
  0%   { transform: scale(1); opacity: .55; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
.fab-phone-ic {
  width: 24px; height: 24px; flex-shrink: 0;
  margin: 0 18px; color: #fff;
}
.fab-phone-label {
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  white-space: nowrap; padding-left: 24px;
  opacity: 0; transition: opacity .2s .06s;
}
.fab-phone:hover, .fab-phone:focus-visible {
  width: 288px;
  box-shadow: 0 10px 30px rgba(204,19,9,.5), 0 3px 10px rgba(0,0,0,.3);
  outline: none;
}
.fab-phone:hover .fab-phone-label,
.fab-phone:focus-visible .fab-phone-label { opacity: 1; }
.fab-phone:hover .fab-phone-ring,
.fab-phone:focus-visible .fab-phone-ring { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .fab-phone-ring { animation: none; opacity: 0; }
  .fab-phone { transition: box-shadow .2s; }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: #1A1A1A;
  min-height: 100vh;
  padding: 160px var(--pad-x) 120px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-map {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #1A1A1A;
  animation: heroMapIn 1.9s var(--ease) both;
  filter: brightness(calc(1 - var(--hero-exit, 0) * 0.45));
  will-change: filter;
}
.hero-map .airspace-map { width: 100%; height: 100%; overflow: visible; transform: scale(1.28) translate(-18%, 6%); }
@keyframes heroMapIn { from { opacity: 0; } to { opacity: 1; } }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.62) 34%, rgba(26,26,26,0.22) 68%, rgba(26,26,26,0) 100%),
    linear-gradient(180deg, rgba(26,26,26,0.35) 0%, rgba(26,26,26,0) 42%, rgba(26,26,26,0) 55%, rgba(26,26,26,0.52) 100%),
    radial-gradient(135% 130% at 62% 45%, rgba(0,0,0,0) 46%, rgba(0,0,0,0.5) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-map { animation: none; } }
@media (max-width: 768px) {
  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(26,26,26,0.86) 0%, rgba(26,26,26,0.7) 55%, rgba(26,26,26,0.42) 100%),
      linear-gradient(180deg, rgba(26,26,26,0) 52%, rgba(26,26,26,0.5) 100%);
  }
}
.hero-content {
  position: relative; z-index: 2; max-width: 680px;
  opacity: calc(1 - var(--hero-exit, 0));
  transform: translateY(calc(var(--hero-exit, 0) * -60px));
  will-change: opacity, transform;
}
/* Cinematic on-load choreography — slow, staggered rise for the hero copy */
.hero-content .reveal { transition-duration: .75s; transform: translateY(30px); }
.hero-content .reveal.in { transform: none; }
.hero-content .eyebrow.reveal { transition-delay: .05s; }
.hero-content .hero-h1.reveal { transition-delay: .18s; }
.hero-content .hero-sub.reveal { transition-delay: .34s; }
.hero-content .btn-outline.reveal { transition-delay: .48s; }
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--red); margin-bottom: 30px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--red); }
.hero-h1 {
  font-size: clamp(56px, 9.2vw, 112px);
  font-weight: 900; line-height: .9; letter-spacing: -0.045em;
  margin-bottom: 40px;
}
.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px; color: var(--body); line-height: 1.65;
  max-width: 480px; margin-bottom: 52px;
}
.btn-outline {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--red); border: 1.5px solid var(--red);
  padding: 14px 34px; letter-spacing: .1em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn-outline:hover { background: var(--red); color: #fff; }
.scroll-hint {
  position: absolute; bottom: 44px; left: var(--pad-x); z-index: 2;
  font-family: 'DM Sans', sans-serif; font-size: 10px;
  color: #6b7688; letter-spacing: .2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.scroll-hint::after { content: ''; width: 48px; height: 1px; background: #3a4a5c; }

/* ── Image slots (structural placeholders — replaced by final assets) ── */
.img-slot {
  background: #222;
  border: 1px dashed #444;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.img-slot figcaption {
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  color: #555; letter-spacing: .12em; text-transform: uppercase; line-height: 1.8;
}
/* ── Stats bar ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--deep);
  display: grid; grid-template-columns: repeat(4, 1fr);
  scroll-snap-align: start;
  border-top: 1px solid #333; border-bottom: 1px solid #333;
}
.stat { padding: 44px clamp(24px, 4vw, 60px); border-right: 1px solid #333; }
.stat:last-child { border-right: none; }
.stat-num { font-size: clamp(36px, 4vw, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.stat-label { font-family: 'DM Sans', sans-serif; font-size: 13px; color: #666; line-height: 1.45; }
.stat-ctm { background: var(--pill); display: flex; align-items: center; justify-content: center; padding: 20px 24px; }
.ctm-badge-img { height: clamp(64px, 9vw, 120px); width: auto; display: block; }

/* ── Section shared ────────────────────────────────────────── */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::before { content: ''; width: 22px; height: 1px; background: var(--red); }
.h2-dark { font-size: clamp(36px, 4.8vw, 58px); font-weight: 700; line-height: 1.04; letter-spacing: -0.028em; color: var(--head); margin-bottom: 22px; max-width: 680px; }
.h2-light { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; line-height: 1.04; letter-spacing: -0.028em; color: var(--ink); margin-bottom: 64px; max-width: 580px; }
.body-dark { font-family: 'DM Sans', sans-serif; font-size: 17px; color: var(--body); line-height: 1.65; max-width: 560px; }

/* ── Services ──────────────────────────────────────────────── */
.services-intro { background: var(--base); padding: clamp(80px, 9vw, 124px) var(--pad-x) clamp(56px, 6vw, 82px); border-bottom: 1px solid var(--border); }
.svc { display: grid; border-bottom: 1px solid var(--border); min-height: 300px; }
.svc-odd { background: var(--odd); grid-template-columns: 1fr minmax(300px, 460px); }
.svc-even { background: var(--even); grid-template-columns: minmax(300px, 460px) 1fr; }
.svc-text { padding: clamp(52px, 6vw, 76px) var(--pad-x); display: flex; flex-direction: column; justify-content: center; }
.svc-tag { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.svc-title { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 16px; }
.svc-desc { font-family: 'DM Sans', sans-serif; font-size: 16px; color: var(--body); line-height: 1.65; max-width: 500px; }
.svc-odd .svc-img { border-left: 1px solid var(--border); }
.svc-even .svc-img { border-right: 1px solid var(--border); }
figure.svc-img { margin: 0; display: flex; overflow: hidden; position: relative; }
/* Phase 4 — unified cinematic grade + depth scrim across all service photos */
figure.svc-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(180deg, rgba(16,26,38,0) 58%, rgba(16,26,38,.30) 100%),
    rgba(22,44,72,.05);
}
.svc-photo { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.04) contrast(1.05) brightness(.97); transition: transform .6s var(--ease); }
.svc-img:hover .svc-photo { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) { .svc-photo { transition: none; } .svc-img:hover .svc-photo { transform: none; } }
/* Trip Support tile shows the full desk (incl. Jeppesen) — display whole image, no cover crop */
figure.svc-img-tall { display: block; }
.svc-img-tall .svc-photo { height: auto; }
/* Service 5 — animated airspace map (self-contained SVG) */
.airspace-map { display: block; width: 100%; height: 100%; }
@keyframes am-pulse { 0%, 100% { filter: brightness(0.72); } 50% { filter: brightness(1.4); } }
.am-land { animation: am-pulse 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .am-land { animation: none; } }

/* ── Track record (light break) ────────────────────────────── */
.track { background: #FAF5EA; padding: clamp(80px, 9vw, 124px) var(--pad-x); border-bottom: 1px solid var(--border-light); scroll-snap-align: start; }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -32px; }
.track-item { padding: 36px 72px 36px 32px; border-bottom: 1px solid var(--border-light); position: relative; transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease); }
.track-item:nth-child(even) { padding: 36px 32px 36px 72px; border-left: 1px solid var(--border-light); }
.track-item:nth-last-child(-n+2) { border-bottom: none; }
.track-num { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: .15em; margin-bottom: 14px; }
.track-text { font-family: 'DM Sans', sans-serif; font-size: 16px; color: #444; line-height: 1.65; transition: color .3s var(--ease); }
/* Hover interaction — the whole item grows and lifts, text sharpens */
.track-item:hover { transform: scale(1.05); background: #FCFBF9; box-shadow: 0 14px 34px rgba(22, 33, 47, 0.12); z-index: 2; }
.track-item:hover .track-text { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .track-item:hover { transform: none; }
}

/* ── Story (light break) ───────────────────────────────────── */
/* Story — dark cinematic bridge into the team section */
.story {
  background: #1E1E1E; padding: clamp(96px, 10vw, 150px) var(--pad-x); text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06); position: relative; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  scroll-snap-align: start;
}
.story-map { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.story-map-img { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: grayscale(1) brightness(1.3); transform: scale(1.3) translateX(-10%); }
.story-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(130% 90% at 50% 45%, rgba(30,30,30,0.04) 0%, rgba(30,30,30,0.58) 100%),
    linear-gradient(180deg, rgba(30,30,30,0.50) 0%, rgba(30,30,30,0) 26%, rgba(30,30,30,0) 74%, rgba(30,30,30,0.50) 100%);
}
.story-content { position: relative; z-index: 2; width: 100%; }
.story-content .reveal { transition-duration: .7s; }
.story-content .story-h.reveal { transition-delay: .05s; }
.story-content .story-line.reveal:nth-of-type(1) { transition-delay: .16s; }
.story-content .story-line.reveal:nth-of-type(2) { transition-delay: .26s; }
.story-content .story-rule.reveal { transition-delay: .36s; }
.story-content .story-punch.reveal { transition-delay: .46s; }
.story-h { font-size: clamp(40px, 5.4vw, 70px); font-weight: 700; color: var(--head); letter-spacing: -0.032em; line-height: 1.03; margin-bottom: 40px; }
.story-line { font-family: 'DM Sans', sans-serif; font-size: 17px; color: #A3A3A3; line-height: 1.65; max-width: 600px; margin: 0 auto 12px; }
.story-rule { display: block; width: 52px; height: 2px; border-radius: 2px; background: var(--red); margin: 36px auto 30px; box-shadow: 0 0 16px rgba(204,19,9,.55); }
.story-punch { font-family: 'DM Sans', sans-serif; font-size: clamp(21px, 2.5vw, 28px); font-weight: 500; color: #FFFFFF; line-height: 1.42; letter-spacing: -0.012em; max-width: 680px; margin: 0 auto; }

/* ── Solutions ─────────────────────────────────────────────── */
.solutions { background: var(--base); padding: clamp(80px, 9vw, 124px) var(--pad-x); border-bottom: 1px solid var(--border); scroll-snap-align: start; }
.solutions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }

/* Each card sits over its own product's identity colour — a dim glow at
   rest, brightening on hover — so "we built our own tools" is backed by
   the actual products' own light, not a generic card treatment. */
.solutions-card {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 28px;
  padding: 36px 36px 40px; border: 1px solid var(--border); border-radius: 10px;
  background: #202020;
  transition: border-color 250ms ease, transform 250ms ease, background 250ms ease;
}
.sol-body { flex: 1 1 auto; min-width: 0; }
.solutions-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .55; transition: opacity 350ms ease;
}
.solutions-card:hover::before, .solutions-card:focus-visible::before { opacity: 1; }
.solutions-card > * { position: relative; z-index: 1; }
.solutions-card:hover, .solutions-card:focus-visible {
  transform: translateY(-3px); outline: none;
}
.solutions-card .svc-desc { max-width: none; }

.sol-opsdesk::before { background: radial-gradient(560px 320px at 12% -10%, rgba(74,147,224,.20), transparent 68%); }
.sol-opsdesk:hover, .sol-opsdesk:focus-visible { border-color: rgba(74,147,224,.55); }

.sol-oic::before { background: radial-gradient(560px 320px at 12% -10%, rgba(255,128,0,.16), transparent 68%); }
.sol-oic:hover, .sol-oic:focus-visible { border-color: rgba(255,128,0,.5); }

.sol-mark {
  flex: 0 0 auto; width: 96px; margin-top: 4px;
  filter: drop-shadow(0 0 0 transparent); transition: filter 350ms ease, transform 350ms ease;
}
.sol-mark svg { display: block; width: 100%; height: auto; }
.sol-opsdesk .sol-mark { aspect-ratio: 156 / 105; }
.sol-oic .sol-mark { width: 132px; aspect-ratio: 382 / 152; }
.sol-opsdesk:hover .sol-mark, .sol-opsdesk:focus-visible .sol-mark {
  filter: drop-shadow(0 0 22px rgba(79,163,240,.55)); transform: translateY(-2px);
}
.sol-oic:hover .sol-mark, .sol-oic:focus-visible .sol-mark {
  filter: drop-shadow(0 0 20px rgba(255,128,0,.55)); transform: translateY(-2px);
}

.about { background: var(--base); padding: clamp(80px, 9vw, 124px) var(--pad-x); border-bottom: 1px solid var(--border); scroll-snap-align: start; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about-body { font-family: 'DM Sans', sans-serif; font-size: 17px; color: var(--body); line-height: 1.7; margin-bottom: 22px; }
.team-label { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }
.team-label::before { content: ''; width: 22px; height: 1px; background: var(--red); }
.team-member { padding: 22px 0; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 18px; cursor: pointer; }
.team-member:last-child { border-bottom: none; }
.team-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.team-text { position: relative; flex: 1; min-width: 0; }
.team-name { font-size: 20px; font-weight: 700; margin-bottom: 3px; }
.team-role { font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--red); font-weight: 500; margin-bottom: 5px; }
.team-cred { font-family: 'DM Sans', sans-serif; font-size: 16px; color: #666; line-height: 1.5; }
.team-popup {
  position: absolute; top: 100%; left: 0; margin-top: 10px;
  width: min(440px, calc(100vw - 2 * var(--pad-x)));
  background: var(--even); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 26px; box-shadow: 0 12px 32px rgba(0,0,0,.4);
  z-index: 20;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.team-popup p { font-family: 'DM Sans', sans-serif; font-size: 14.5px; color: var(--body); line-height: 1.7; }
.team-popup p + p { margin-top: 14px; }
.team-popup-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 18px; }
.team-member.show-bio .team-popup { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
@media (max-width: 768px) {
  .team-popup { position: static; width: auto; margin-top: 0; transform: none; display: none; }
  .team-member.show-bio .team-popup { display: block; margin-top: 14px; }
}

/* ── Contact ───────────────────────────────────────────────── */
.contact { background: var(--odd); padding: clamp(80px, 9vw, 124px) var(--pad-x); display: grid; grid-template-columns: 1fr 1fr; gap: 100px; border-top: 1px solid var(--border); scroll-snap-align: start; }
.contact-sub { font-family: 'DM Sans', sans-serif; font-size: 17px; color: var(--body); line-height: 1.6; margin-bottom: 48px; }
.contact-detail { margin-bottom: 28px; }
.c-label { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #555; margin-bottom: 7px; }
.c-val { font-size: 17px; font-weight: 600; }
.c-val a:hover, .c-val-sm a:hover { color: var(--red); }
.c-val-sm { font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--body); margin-top: 3px; line-height: 1.6; }
.mono { font-family: 'Courier New', monospace; letter-spacing: .04em; }

.f-label { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: #555; margin-bottom: 8px; display: block; }
.f-input {
  width: 100%; background: #222; border: 1px solid var(--border);
  padding: 13px 18px; font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--head); margin-bottom: 18px;
}
.f-input:focus { outline: none; border-color: var(--red); }
.f-area { height: 110px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.cf-turnstile { margin: 6px 0 22px; }
.btn-solid {
  background: var(--red); color: #fff; border: 0; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; padding: 15px 38px;
  transition: filter .25s;
}
.btn-solid:hover { filter: brightness(1.12); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--footer);
  padding: 44px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid #2a2a2a;
}
.footer-logo-pill { background: var(--pill); border-radius: 999px; padding: 10px 26px; display: inline-flex; align-items: center; box-shadow: 0 1px 10px rgba(0,0,0,.3); }
.footer-links { display: flex; gap: 32px; }
.footer-links a { font-family: 'DM Sans', sans-serif; font-size: 12px; color: #555; }
.footer-links a:hover { color: var(--head); }
.footer-copy, .footer-ctm { font-family: 'DM Sans', sans-serif; font-size: 11px; color: #555; line-height: 1.6; }
.footer-ctm { text-align: right; }
.footer-ctm-group { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-ctm-pill { background: var(--pill); border-radius: 999px; padding: 8px 24px; display: inline-flex; align-items: center; }
.footer-ctm-img { height: 40px; width: auto; display: block; }

/* ═══ RESPONSIVE ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { padding-top: 120px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid #333; }
  .about-grid, .contact { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute; top: 70px; left: 24px; right: 24px;
    background: var(--pill); border-radius: 20px;
    flex-direction: column; gap: 0; padding: 12px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
  }
  .nav-links.open { display: flex; }
  .nav-link, .nav-cta { padding: 14px 28px; width: 100%; text-align: left; }
  .nav-cta { background: none; color: var(--red); border-radius: 0; margin: 0; }
  .nav-toggle { display: block; }
  .fab-phone { right: 18px; bottom: 18px; height: 54px; width: 54px; border-radius: 27px; }
  .fab-phone-ring { width: 54px; height: 54px; }
  .fab-phone-ic { margin: 0 15px; }
  .fab-phone:hover, .fab-phone:focus-visible { width: 54px; }
  .fab-phone:hover .fab-phone-label, .fab-phone:focus-visible .fab-phone-label { opacity: 0; }
  .svc-odd, .svc-even { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .svc-even .svc-img { order: 2; }
  .svc-img { min-height: 220px; border: none !important; border-top: 1px solid var(--border) !important; }
  .track-grid { grid-template-columns: 1fr; margin: 0; }
  .track-item, .track-item:nth-child(even) { padding: 28px 0; border-left: none; }
  .track-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-light); }
  .track-item:last-child { border-bottom: none; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer-ctm { text-align: left; }
  .footer-ctm-group { align-items: flex-start; }
}
@media (max-width: 480px) {
  /* too narrow for the mark to sit beside the text without cramping it —
     drop back to the mark stacked above, as before this layout change */
  .solutions-card { flex-direction: column; }
  .sol-mark { margin-top: 0; margin-bottom: 22px; }
}

/* Portrait: centre both world maps on Singapore (WSSS).
   Fill height at the map's natural 2:1 ratio, then shift so the WSSS
   point (x = 946/1200 ≈ 78.8% in both maps) sits at the horizontal
   centre — aspect-independent, works on any portrait phone/tablet. */
@media (orientation: portrait) {
  .hero-map .airspace-map,
  .story-map-img {
    position: absolute; top: 0; left: 50%;
    height: 100%; width: auto; max-width: none; aspect-ratio: 2 / 1;
    transform: translateX(-78.8%);
  }
}
