/* Stratex Aero - LIGHT THEME, Royal Purple, Modern Tech */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --purple: #5B2B9E;
  --purple-deep: #3A1A6B;
  --purple-bright: #7C3FD9;
  --purple-glow: #A78BFA;
  --purple-soft: #F4EFFC;
  --purple-line: #E5DAF5;

  --charcoal: #1A1A1F;
  --charcoal-2: #2A2A30;
  --charcoal-3: #3A3A42;

  --paper: #FFFFFF;
  --paper-2: #FAFAFB;
  --paper-3: #F4F4F6;

  --ink: #0A0A0D;
  --text: #1A1A1F;
  --text-2: #4A4A52;
  --text-3: #6E6E76;

  --line: rgba(26, 26, 31, 0.08);
  --line-strong: rgba(26, 26, 31, 0.16);
  --muted: rgba(26, 26, 31, 0.55);
  --muted-2: rgba(26, 26, 31, 0.72);

  --sans: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root { height: 100%; width: 100%; }

.app {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--paper);
}

/* Top header bar */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}

.brand-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--purple);
}
.brand-name {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 18px;
  color: var(--charcoal);
}
.brand-name .accent { color: var(--purple); }

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.topbar-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22C55E; box-shadow: 0 0 12px rgba(34,197,94,0.6);
  animation: pulse 2s infinite ease-in-out;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.stage { position: absolute; inset: 0; }
.section {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms cubic-bezier(.4,0,.2,1);
}
.section.active { opacity: 1; pointer-events: auto; }

/* Glass slider nav - light frosted */
.slider-nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(91, 43, 158, 0.12);
  border-radius: 999px;
  box-shadow:
    0 12px 40px rgba(91, 43, 158, 0.12),
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 -1px 0 rgba(91, 43, 158, 0.05) inset;
}

.slider-nav .indicator {
  position: absolute;
  top: 8px;
  bottom: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  box-shadow:
    0 4px 16px rgba(124, 63, 217, 0.4),
    0 1px 0 rgba(255,255,255,0.25) inset;
  transition: left 450ms cubic-bezier(.4,0,.2,1), width 450ms cubic-bezier(.4,0,.2,1);
  z-index: 0;
  will-change: left, width;
}

.nav-item {
  position: relative;
  z-index: 1;
  padding: 14px 30px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: color 220ms ease;
  white-space: nowrap;
}
.nav-item.active { color: #fff; }
.nav-item.is-hover { color: #fff; }
.slider-nav.is-hovering .nav-item.active:not(.is-hover) { color: var(--text-2); }

/* CTA pill */
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 300ms ease;
}
.cta-pill:hover {
  background: var(--purple-soft);
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-1px);
}
.cta-pill.primary {
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 8px 24px rgba(91, 43, 158, 0.3);
}
.cta-pill.primary:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  box-shadow: 0 12px 32px rgba(91, 43, 158, 0.45);
}

/* ======= HOME ======= */
.home {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--paper);
}

.home-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-bg .sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(167, 139, 250, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 90%, rgba(91, 43, 158, 0.08), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #FAF7FE 60%, #FFFFFF 100%);
  z-index: 1;
}
.home-bg .jet {
  position: absolute;
  right: -10%;
  top: 0;
  bottom: 0;
  width: 80%;
  background-image: url('../images/hangar.jpg');
  background-size: cover;
  background-position: right center;
  opacity: 0.38;
  filter: contrast(1.05) brightness(1.05) saturate(0.9);
  mask-image: linear-gradient(90deg, transparent 0%, black 35%, black 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 35%, black 100%);
  z-index: 2;
}
.home-bg .vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 30%, transparent 70%, rgba(255,255,255,0.6) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.7) 0%, transparent 40%);
  z-index: 3;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 43, 158, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 43, 158, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 70%);
}

/* Services page — hero-style background mirroring the home page */
.services-page { background: var(--paper); }
.services-page .page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.services-page .page-bg .jet {
  position: absolute;
  right: -10%;
  top: 0;
  bottom: 0;
  width: 80%;
  background-image: url('../images/Aircraft%20turning.jpg');
  background-size: cover;
  background-position: right center;
  opacity: 0.38;
  filter: contrast(1.05) brightness(1.05) saturate(0.9);
  mask-image: linear-gradient(90deg, transparent 0%, black 35%, black 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 35%, black 100%);
  z-index: 2;
}
.services-page .page-bg .vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 30%, transparent 70%, rgba(255,255,255,0.6) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.7) 0%, transparent 40%);
  z-index: 3;
  pointer-events: none;
}
.services-page .page {
  position: relative;
  z-index: 5;
  background: transparent;
}

/* Contact page — title row with phone icon */
.title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 64px;
  flex-wrap: wrap;
}
.title-row .page-title { flex: 0 0 auto; }
.incoming-call {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  height: clamp(94px, 13.7vw, 220px);
  width: auto;
  text-decoration: none;
  color: inherit;
  transition: transform 350ms cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.incoming-call:hover { transform: scale(1.1); }
.incoming-call:active { transform: scale(1.04); }
.incoming-call img {
  height: 100%;
  width: auto;
  display: block;
  pointer-events: none;
}
.incoming-call .lottie-anim {
  height: 100%;
  aspect-ratio: 1;
  display: block;
  pointer-events: none;
}
.incoming-call .lottie-anim svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Aviator sunglasses overlay — synced to the Lottie's headset nod keyframes */
.incoming-call .csr-sunglasses {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  color: var(--purple);
}
.incoming-call:hover .csr-sunglasses {
  animation: csr-nod 1.167s linear infinite;
}
@keyframes csr-nod {
  0%, 10.7%    { transform: translateY(0); }
  32.1%        { transform: translateY(-2%); }
  57.1%        { transform: translateY(2%); }
  85.7%, 100%  { transform: translateY(0); }
}

/* Contact page — hero-style background mirroring the home page */
.contact-page { background: var(--paper); }
.contact-page .page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.contact-page .page-bg .jet {
  position: absolute;
  right: -10%;
  top: 0;
  bottom: 0;
  width: 80%;
  background-image: url('../images/MX%20Photo.jpg');
  background-size: cover;
  background-position: right center;
  opacity: 0.38;
  filter: contrast(1.05) brightness(1.05) saturate(0.9);
  mask-image: linear-gradient(90deg, transparent 0%, black 35%, black 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 35%, black 100%);
  z-index: 2;
}
.contact-page .page-bg .vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 30%, transparent 70%, rgba(255,255,255,0.6) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.7) 0%, transparent 40%);
  z-index: 3;
  pointer-events: none;
}
.contact-page .page {
  position: relative;
  z-index: 5;
  background: transparent;
}

/* Quality page — hero-style background mirroring the home page */
.quality-page { background: var(--paper); }
.quality-page .page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.quality-page .page-bg .jet {
  position: absolute;
  right: calc(-10% - 4cm);
  top: 0;
  bottom: 0;
  width: 80%;
  background-image: url('../images/MX%20Inspection.jpeg');
  background-size: cover;
  background-position: right center;
  opacity: 0.38;
  filter: contrast(1.05) brightness(1.05) saturate(0.9);
  mask-image: linear-gradient(90deg, transparent 0%, black 35%, black 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 35%, black 100%);
  z-index: 2;
}
.quality-page .page-bg .vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 30%, transparent 70%, rgba(255,255,255,0.6) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.7) 0%, transparent 40%);
  z-index: 3;
  pointer-events: none;
}
.quality-page .page {
  position: relative;
  z-index: 5;
  background: transparent;
}

/* About page — hero-style background mirroring the home page */
.about-page { background: var(--paper); }
.about-page .page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.about-page .page-bg .jet {
  position: absolute;
  right: calc(-10% - 2cm);
  top: 0;
  bottom: 0;
  width: 80%;
  background-image: url('../images/SWISS%20LANDING.jpg');
  background-size: cover;
  background-position: right center;
  opacity: 0.38;
  filter: contrast(1.05) brightness(1.05) saturate(0.9);
  mask-image: linear-gradient(90deg, transparent 0%, black 35%, black 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 35%, black 100%);
  z-index: 2;
}
.about-page .page-bg .vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 30%, transparent 70%, rgba(255,255,255,0.6) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.7) 0%, transparent 40%);
  z-index: 3;
  pointer-events: none;
}
.about-page .page {
  position: relative;
  z-index: 5;
  background: transparent;
}

.home-content {
  position: relative;
  z-index: 5;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 80px 240px;
  max-width: 1600px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-eyebrow .line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), transparent);
}

.hero-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--charcoal);
  text-wrap: balance;
  max-width: 100%;
  overflow-wrap: break-word;
}
.hero-title .accent {
  color: var(--purple);
  position: relative;
}

.slogan-rotator {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  height: 1em;
}
.slogan-rotator .word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: var(--purple);
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(.4,0,.2,1), transform 700ms cubic-bezier(.4,0,.2,1);
}
.slogan-rotator .word.in {
  opacity: 1;
  transform: translateY(0);
}
.slogan-rotator .word.out {
  opacity: 0;
  transform: translateY(-20px);
}
.slogan-rotator .ghost {
  visibility: hidden;
  white-space: nowrap;
}

.hero-sub {
  margin-top: 32px;
  max-width: 540px;
  font-family: var(--sans);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
}

.hero-meta {
  position: absolute;
  bottom: 110px;
  left: 80px;
  right: 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 6;
  pointer-events: none;
  gap: 40px;
  max-width: 1600px;
  margin: 0 auto;
}
@media (min-width: 1600px) {
  .hero-meta { left: 50%; transform: translateX(-50%); width: calc(100% - 160px); }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 56px);
  width: 100%;
  pointer-events: auto;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  padding-left: 16px;
  min-width: 0;
}

/* Stagger reveal — each stat fades up after page load */
.stat .num,
.stat .label {
  opacity: 0;
  transform: translateY(10px);
  animation: statReveal 720ms cubic-bezier(.2, .7, .2, 1) forwards;
}
.stat:nth-child(1) .num   { animation-delay: 200ms; }
.stat:nth-child(1) .label { animation-delay: 360ms; }
.stat:nth-child(2) .num   { animation-delay: 340ms; }
.stat:nth-child(2) .label { animation-delay: 500ms; }
.stat:nth-child(3) .num   { animation-delay: 480ms; }
.stat:nth-child(3) .label { animation-delay: 640ms; }
.stat:nth-child(4) .num   { animation-delay: 620ms; }
.stat:nth-child(4) .label { animation-delay: 780ms; }

@keyframes statReveal {
  to { opacity: 1; transform: translateY(0); }
}
.stat::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--purple), transparent);
}
.stat .num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stat .num .num-slash { color: var(--purple); }
.stat .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-coords {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: right;
  line-height: 1.8;
  pointer-events: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ======= PAGES ======= */
.page {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 43, 158, 0.2) transparent;
}
.page::-webkit-scrollbar { width: 6px; }
.page::-webkit-scrollbar-thumb { background: rgba(91, 43, 158, 0.2); border-radius: 3px; }

.page-pad {
  padding: 120px 80px 140px;
  max-width: 1600px;
  margin: 0 auto;
}

.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 28px;
  font-weight: 500;
}
.page-eyebrow .line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), transparent);
}
.page-eyebrow .num {
  font-family: var(--mono);
  color: var(--text-3);
  font-size: 11px;
}

.page-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--charcoal);
  text-wrap: balance;
}
.page-title .it { color: var(--purple); }

.page-lede {
  margin-top: 32px;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
}
.page-lede strong { color: var(--charcoal); font-weight: 500; }

/* About page lede spans the full content area, matching the grids below */
.about-page .page-lede { max-width: none; }

/* About — subtle entry animations for header on load */
.about-page .page-title,
.about-page .page-lede {
  animation: aboutFadeIn 900ms cubic-bezier(.2, .7, .2, 1) both;
}
.about-page .page-lede { animation-delay: 180ms; }
@keyframes aboutFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* About — scroll reveal for the 6 points grid (3D card-flap, slow & staggered) */
.about-page .points-grid {
  perspective: 1400px;
}
.about-page .points-grid .point {
  opacity: 0;
  transform: rotateX(-30deg) translateY(28px);
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition:
    opacity 1200ms cubic-bezier(.22, 1, .36, 1),
    transform 1200ms cubic-bezier(.22, 1, .36, 1);
}
.about-page .points-grid .point.in-view {
  opacity: 1;
  transform: rotateX(0deg) translateY(0);
}
.about-page .points-grid .point:nth-child(1).in-view { transition-delay: 0ms; }
.about-page .points-grid .point:nth-child(2).in-view { transition-delay: 160ms; }
.about-page .points-grid .point:nth-child(3).in-view { transition-delay: 320ms; }
.about-page .points-grid .point:nth-child(4).in-view { transition-delay: 480ms; }
.about-page .points-grid .point:nth-child(5).in-view { transition-delay: 640ms; }
.about-page .points-grid .point:nth-child(6).in-view { transition-delay: 800ms; }

/* About — Why Stratex? heading wiggles emphatically on hover */
.about-page .why-stratex {
  display: inline-block;
  transform-origin: center center;
  cursor: default;
  will-change: transform;
}
.about-page .why-stratex:hover {
  animation: whyWiggle 700ms cubic-bezier(.36, .07, .19, .97);
}
@keyframes whyWiggle {
  0%   { transform: translate(0, 0) rotate(0); }
  10%  { transform: translate(-2px, 0) rotate(-5deg) scale(1.03); }
  20%  { transform: translate(3px, 0) rotate(6deg) scale(1.05); }
  35%  { transform: translate(-3px, -2px) rotate(-5deg) scale(1.05); }
  50%  { transform: translate(3px, 0) rotate(4deg) scale(1.04); }
  65%  { transform: translate(-2px, 0) rotate(-3deg) scale(1.03); }
  80%  { transform: translate(1px, 0) rotate(2deg) scale(1.02); }
  100% { transform: translate(0, 0) rotate(0) scale(1); }
}

/* About */
.about-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.team-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: all 400ms ease;
}
.team-card:hover {
  border-color: var(--purple);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(91, 43, 158, 0.12);
}

.team-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--purple-soft) 0%, #FFFFFF 100%);
  overflow: hidden;
}
.team-photo .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 140px;
  color: var(--purple);
  letter-spacing: -0.04em;
}
.team-photo .team-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}
.team-photo .swatch {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.25), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(91, 43, 158, 0.15), transparent 60%);
}
.team-photo .corner-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--purple-line);
  font-weight: 500;
}

.team-info {
  padding: 22px 22px 22px;
}
.team-info h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
.team-info .role {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 500;
}
.team-info .bio {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.team-info .linkedin {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}
.team-info .linkedin:hover { color: var(--purple-deep); }

/* Key points */
.points-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.point {
  background: var(--paper);
  padding: 40px 32px;
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  transition: background 400ms ease;
}
.point .body { margin-top: 0; }
.point:hover { background: var(--purple-soft); }
.point .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 500;
}
.point .word {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 28px;
  color: var(--purple);
  margin-top: 8px;
  letter-spacing: -0.02em;
}
.point .body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin-top: 24px;
}
.point .body strong {
  color: var(--charcoal);
  font-weight: 500;
}
.point .body .it { color: var(--purple); }

/* ======= QUALITY ======= */
.quality-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 0;
}

/* The Lottie seal is the bounding "purple badge" — everything else nests concentrically inside */
.asa-stack {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  margin-left: auto;
  overflow: visible;
}
.asa-seal {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background-color: var(--purple);
  overflow: visible;
  box-shadow: 0 24px 60px rgba(91, 43, 158, 0.25);
}
.asa-seal svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* New self-contained Quality Seal SVG (with built-in hover animation) */
.quality-seal {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* Inner wrapper anchored over the medallion's visual centre (upper area), not the geometric
   centre — so the ring + logo sit above the ribbon tails. */
.asa-badge {
  position: absolute;
  top: 6%;
  left: 18%;
  right: 18%;
  bottom: 30%;
  z-index: 2;
  border-radius: 50%;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  color: #fff;
}
.asa-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.asa-ring .plane-orbit {
  opacity: 0;
  transition: opacity 250ms ease;
}
.asa-stack:hover .asa-ring .plane-orbit {
  opacity: 1;
}

.asa-logo-wrap {
  position: relative;
  z-index: 2;
  width: 50%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.asa-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pillars {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pillar {
  padding: 36px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 400ms ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.pillar:hover {
  background: var(--paper);
  border-color: var(--purple);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(91, 43, 158, 0.1);
}
.pillar .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
  margin-bottom: 24px;
  border: 1px solid var(--purple-line);
}
.pillar h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.pillar p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.cert-strip {
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 40px;
  background: var(--purple-soft);
  border: 1px solid var(--purple-line);
  border-radius: 20px;
}
.cert-strip .copy h5 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.cert-strip .copy p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-2);
}

/* ======= SERVICES ======= */
.svc-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc-card {
  position: relative;
  padding: 40px 36px 48px;
  min-height: 540px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 500ms cubic-bezier(.4,0,.2,1);
  cursor: default;
}
.svc-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(91, 43, 158, 0.14);
}
.svc-card .glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms;
}
.svc-card:hover .glow { opacity: 1; }

.svc-card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 500;
}
.svc-card .icon {
  width: 100%;
  height: 140px;
  display: grid;
  place-items: center;
  margin-top: 20px;
  margin-bottom: 28px;
  color: var(--purple);
}
.svc-card .icon > * {
  width: 140px;
  height: 140px;
}
.svc-icon-lottie {
  display: grid;
  place-items: center;
}
.svc-icon-lottie svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ----- Jet engine: SMIL animation built into the asset ----- */
.svc-jet {
  display: block;
  color: var(--purple);
  overflow: visible;
}

/* ----- APU: enlarge on hover, air in (left), bolts in centre, smoke out (right) ----- */
.svc-apu {
  display: block;
  color: var(--purple);
  overflow: visible;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 350ms cubic-bezier(.4,0,.2,1);
}
.svc-card:hover .svc-apu {
  transform: scale(1.12);
}

.svc-apu .apu-bolt {
  transform-box: fill-box;
  transform-origin: center;
  transition: filter 300ms ease;
}
.svc-card:hover .svc-apu .apu-bolt {
  animation: apu-bolt-charge 0.55s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.95));
}
@keyframes apu-bolt-charge {
  from { transform: scale(1); }
  to   { transform: scale(1.4); }
}

.svc-apu .apu-extras { opacity: 0; transition: opacity 200ms ease; }
.svc-card:hover .svc-apu .apu-extras { opacity: 1; }

/* Mini lightning bolts radiating outward from the centre */
.svc-apu .mini-bolt {
  transform-box: fill-box;
  transform-origin: center;
  transform: translate(138px, 151px) scale(0);
  opacity: 0;
}
.svc-card:hover .svc-apu .mb-1 { animation: mb-shoot-1 1.1s ease-out infinite; }
.svc-card:hover .svc-apu .mb-2 { animation: mb-shoot-2 1.1s ease-out 0.27s infinite; }
.svc-card:hover .svc-apu .mb-3 { animation: mb-shoot-3 1.1s ease-out 0.55s infinite; }
.svc-card:hover .svc-apu .mb-4 { animation: mb-shoot-4 1.1s ease-out 0.82s infinite; }

@keyframes mb-shoot-1 {
  0%   { opacity: 0; transform: translate(138px, 151px) scale(0.4) rotate(25deg); }
  20%  { opacity: 1; transform: translate(138px, 151px) scale(2.3) rotate(25deg); }
  100% { opacity: 0; transform: translate(180px, 110px) scale(1.6) rotate(25deg); }
}
@keyframes mb-shoot-2 {
  0%   { opacity: 0; transform: translate(138px, 151px) scale(0.4) rotate(-35deg); }
  20%  { opacity: 1; transform: translate(138px, 151px) scale(2.3) rotate(-35deg); }
  100% { opacity: 0; transform: translate(98px, 110px)  scale(1.6) rotate(-35deg); }
}
@keyframes mb-shoot-3 {
  0%   { opacity: 0; transform: translate(138px, 151px) scale(0.4) rotate(155deg); }
  20%  { opacity: 1; transform: translate(138px, 151px) scale(2.3) rotate(155deg); }
  100% { opacity: 0; transform: translate(180px, 192px) scale(1.6) rotate(155deg); }
}
@keyframes mb-shoot-4 {
  0%   { opacity: 0; transform: translate(138px, 151px) scale(0.4) rotate(-155deg); }
  20%  { opacity: 1; transform: translate(138px, 151px) scale(2.3) rotate(-155deg); }
  100% { opacity: 0; transform: translate(98px, 192px)  scale(1.6) rotate(-155deg); }
}

/* Air intake — curved wisps drawn from above + below into the APU left edge */
.svc-apu .airflow {
  fill: none;
  stroke: rgba(91, 43, 158, 0.75);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
}
.svc-card:hover .svc-apu .af-1 { animation: airflow-draw 1.4s ease-in infinite; }
.svc-card:hover .svc-apu .af-2 { animation: airflow-draw 1.4s ease-in 0.3s infinite; }
.svc-card:hover .svc-apu .af-3 { animation: airflow-draw 1.4s ease-in 0.6s infinite; }
.svc-card:hover .svc-apu .af-4 { animation: airflow-draw 1.4s ease-in 0.9s infinite; }

@keyframes airflow-draw {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  18%  { opacity: 1; }
  70%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Exhaust smoke — fluffy clouds drifting out the RIGHT side, up and away */
.svc-apu .smoke {
  transform-box: fill-box;
  transform-origin: center;
  fill: rgba(167, 139, 250, 0.72);
  filter: drop-shadow(0 2px 6px rgba(91, 43, 158, 0.25));
  transform: translate(245px, 150px) scale(0);
  opacity: 0;
}
.svc-card:hover .svc-apu .s-1 { animation: smoke-out-1 1.8s ease-out infinite; }
.svc-card:hover .svc-apu .s-2 { animation: smoke-out-2 1.8s ease-out 0.5s infinite; }
.svc-card:hover .svc-apu .s-3 { animation: smoke-out-3 1.8s ease-out 1s infinite; }

@keyframes smoke-out-1 {
  0%   { opacity: 0.75; transform: translate(245px, 130px) scale(0.35); }
  100% { opacity: 0;    transform: translate(335px, 55px)  scale(1.9); }
}
@keyframes smoke-out-2 {
  0%   { opacity: 0.7;  transform: translate(245px, 150px) scale(0.3); }
  100% { opacity: 0;    transform: translate(325px, 85px)  scale(1.7); }
}
@keyframes smoke-out-3 {
  0%   { opacity: 0.75; transform: translate(245px, 170px) scale(0.35); }
  100% { opacity: 0;    transform: translate(345px, 120px) scale(2.1); }
}
.svc-card h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}
.svc-card .h-it { color: var(--purple); }
.svc-card p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  flex: 1;
}
.svc-card .features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc-card .feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 500;
}
.svc-card .feature::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--purple);
}

/* Aircraft strip */
.aircraft-strip {
  margin-top: 56px;
  padding: 28px 32px;
  background: var(--purple-soft);
  border: 1px solid var(--purple-line);
  border-radius: 24px;
}
.aircraft-strip h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
.aircraft-strip h4 .it { color: var(--purple); }
.aircraft-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--purple-line);
  border: 1px solid var(--purple-line);
  border-radius: 16px;
  overflow: hidden;
}
.aircraft {
  background: var(--paper);
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 400ms ease;
}
.aircraft:hover { background: var(--paper-3); }
.aircraft .code {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}
.aircraft .name {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}
.aircraft .facts {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
}
.aircraft .fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed var(--purple-line);
  font-family: var(--mono);
  font-size: 11px;
}
.aircraft .fact:last-child { padding-bottom: 0; }
.aircraft .fact .k {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}
.aircraft .fact .v {
  color: var(--charcoal);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

/* ======= CONTACT ======= */
.contact-layout {
  position: relative;
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.offices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 8px;
}

.office {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  cursor: pointer;
  transition: all 350ms ease;
}
.office.small {
  padding: 18px 18px 44px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 110px;
}
.office.small .row {
  gap: 10px;
}
.office.small .name {
  font-size: 16px;
}
.office.small .addr {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
}
.office:hover {
  background: var(--paper-3);
  border-color: var(--purple);
  box-shadow: 0 8px 24px rgba(91, 43, 158, 0.12);
}
.office.active {
  background: var(--purple-soft);
  border-color: var(--purple);
  box-shadow: 0 8px 24px rgba(91, 43, 158, 0.12);
}
.office .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.office .name {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.office .city {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Country flag badge in bottom-right of each office card */
.office .flag {
  position: absolute;
  bottom: 12px;
  right: 14px;
  width: 30px;
  height: auto;
  line-height: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18));
}
.office .flag img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.office .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 4px 10px;
  border: 1px solid var(--purple-line);
  border-radius: 999px;
  background: var(--paper);
  white-space: nowrap;
  font-weight: 500;
}
.office .addr {
  margin-top: 14px;
  padding-right: 42px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

.globe-wrap {
  position: relative;
  height: 100%;
  min-height: 380px;
  background: transparent;
  overflow: visible;
}
.globe-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  display: block;
}

.contact-cta {
  margin-top: 56px;
  padding: 56px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  border: 1px solid var(--purple);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.4), transparent 70%);
  pointer-events: none;
}
.contact-cta h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
  position: relative;
}
.contact-cta h3 .it { color: rgba(255,255,255,0.6); }
.contact-cta p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
  max-width: 420px;
  position: relative;
}
.contact-cta .right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.contact-cta .field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all 300ms ease;
}
.contact-cta .field:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.contact-cta .field .ico {
  width: 18px; height: 18px;
  color: #fff;
  flex-shrink: 0;
}

.contact-cta .big-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 28px;
  background: #fff;
  color: var(--purple);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transition: all 300ms ease;
}
.contact-cta .big-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* Footer */
.foot {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.foot .socials { display: flex; gap: 14px; }
.foot .socials a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 200ms;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.foot .socials a:hover {
  color: var(--purple);
  border-color: var(--purple);
}

/* Keyboard hint */
.kbd-hint {
  position: fixed;
  bottom: 30px;
  right: 28px;
  z-index: 60;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--charcoal);
}

/* Responsive */
@media (max-width: 980px) {
  .home-content { padding: 100px 32px 220px; }
  .hero-meta { left: 32px; right: 32px; bottom: 100px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-coords { text-align: left; }
  .page-pad { padding: 100px 28px 140px; }
  .about-grid, .pillars, .svc-grid, .points-grid, .aircraft-list { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .map-wrap { aspect-ratio: 4 / 3.4; height: auto; }
  .quality-hero { grid-template-columns: 1fr; }
  .contact-cta { grid-template-columns: 1fr; padding: 40px 32px; }
  .topbar { padding: 18px 24px; }
}
@media (max-width: 640px) {
  .about-grid, .pillars, .svc-grid, .points-grid, .aircraft-list { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(44px, 13vw, 80px); }
  .topbar-meta { display: none; }

  /* --- Stats row: 2 columns on phones --- */
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
  }

  /* --- Bottom nav: horizontally-scrollable pill bar --- */
  .slider-nav {
    left: 12px;
    right: 12px;
    transform: none;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Clear the iPhone home indicator / Safari bottom bar */
    bottom: calc(14px + env(safe-area-inset-bottom));
    /* Fade the right edge to signal more items; removed at scroll end */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
  }
  .slider-nav.scroll-end {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .slider-nav::-webkit-scrollbar { display: none; }
  /* Touch has no hover — drive the active pill from the current page instead */
  .slider-nav .indicator { display: none; }
  .nav-item {
    flex: 0 0 auto;
    padding: 12px 20px;
  }
  .nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--purple-bright), var(--purple));
    box-shadow:
      0 4px 16px rgba(124, 63, 217, 0.4),
      0 1px 0 rgba(255, 255, 255, 0.25) inset;
  }

  /* Keep page content clear of the floating nav */
  .page-pad { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
  .home-content { padding-bottom: calc(220px + env(safe-area-inset-bottom)); }

  /* --- Locations: spacing + swipe carousel --- */
  .contact-layout { margin-top: 28px; gap: 24px; }
  .offices { gap: 12px; min-width: 0; }

  .office-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Bleed to the screen edges so the next card peeks in */
    margin: 0 -28px;
    padding: 4px 28px;
    scroll-padding-left: 28px;
  }
  .office-grid::-webkit-scrollbar { display: none; }
  .office-grid > .office {
    flex: 0 0 86%;
    min-width: 0;
    scroll-snap-align: start;
  }
  .office.small { min-height: 128px; }

  /* Globe sits cleanly below the cards, no overlap or bleed */
  .globe-wrap {
    min-height: 300px;
    margin-top: 4px;
    overflow: hidden;
    border-radius: 16px;
  }
}
@media (max-height: 720px) {
  .home-content { padding-top: 90px; padding-bottom: 220px; }
  .hero-title { font-size: clamp(48px, 7.5vw, 110px); }
  .hero-sub { margin-top: 22px; font-size: 14px; max-width: 460px; }
  .hero-eyebrow { margin-bottom: 18px; }
  .stat .num { font-size: clamp(22px, 2.4vw, 32px); }
  .hero-meta { bottom: 96px; }
}
