/* Header, hero (light head + cinematic stage), operations band, footer */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 120px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav a:hover { background: var(--paper); color: var(--ink); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header__actions .btn { min-height: 40px; padding: 0 18px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 200ms var(--ease-out), background-color 200ms ease;
}

.menu-toggle__bar { position: relative; }
.menu-toggle__bar::before,
.menu-toggle__bar::after { content: ''; position: absolute; left: 0; }
.menu-toggle__bar::before { transform: translateY(-5px); }
.menu-toggle__bar::after { transform: translateY(5px); }
.menu-toggle[aria-expanded='true'] .menu-toggle__bar { background: transparent; }
.menu-toggle[aria-expanded='true'] .menu-toggle__bar::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__bar::after { transform: rotate(-45deg); }

.mobile-nav { display: none; }

/* ---------- Hero: centered light head ---------- */
.hero { position: relative; isolation: isolate; padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem) var(--space-section); }

.hero__aura {
  position: absolute;
  inset: -72px 0 auto;
  z-index: -1;
  height: 980px;
  background:
    radial-gradient(760px 440px at 50% 6%, rgba(0, 148, 249, 0.16), transparent 70%),
    linear-gradient(rgba(11, 21, 38, 0.05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(11, 21, 38, 0.05) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 18%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 18%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero__head { text-align: center; }

.hero__title {
  margin-top: 26px;
  font-size: var(--text-hero);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero__title .accent { color: var(--blue); }

.hero__sub {
  max-width: 40em;
  margin: 26px auto 0;
  color: var(--ink-3);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* ---------- Hero: cinematic photo stage ---------- */
.stage { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper); isolation: isolate; }
.stage > picture img { width: 100%; height: 100%; object-fit: cover; }

.hero__stage { height: clamp(460px, 52vw, 680px); margin-top: clamp(3rem, 2.5rem + 2.5vw, 5rem); }
.hero__stage picture { position: absolute; inset: 0; }
.hero__stage picture img { object-position: 60% 40%; }

.hero__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(5, 10, 20, 0.82) 0%, rgba(5, 10, 20, 0.38) 24%, rgba(5, 10, 20, 0) 52%),
    linear-gradient(90deg, rgba(5, 10, 20, 0.28) 0%, rgba(5, 10, 20, 0) 45%);
  pointer-events: none;
}

.hero__card { position: absolute; left: 32px; bottom: calc(var(--stats-h, 120px) + 24px); z-index: 2; }

.hero__stats {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 12, 24, 0.32);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.hero__stat { padding: 22px 24px 24px 0; }
.hero__stage { --stats-h: 124px; }
.hero__stats { min-height: var(--stats-h); }
.hero__stat + .hero__stat { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.18); }

.hero__stat b {
  display: block;
  color: #fff;
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero__stat > span { display: block; margin-top: 8px; color: #e1e9f3; font-size: var(--text-sm); }

/* ---------- Operations band (light, dotted map) ---------- */
.ops { background: linear-gradient(180deg, var(--surface) 0%, var(--wash) 100%); }

.ops__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
  align-items: center;
}

.ops__stats { grid-column: 1 / span 5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.ops__stat { padding: 28px 24px 28px 0; }
.ops__stat:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-strong); }
.ops__stat:nth-child(n + 3) { border-top: 1px solid var(--line-strong); }

.ops__stat b {
  display: block;
  color: var(--ink);
  font-size: clamp(2.25rem, 1.7rem + 1.8vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ops__stat b small { margin-left: 2px; font-size: 0.55em; color: var(--blue-text); letter-spacing: -0.02em; }
.ops__stat > span { display: block; margin-top: 10px; color: var(--ink-3); font-size: var(--text-sm); }

.ops__map { position: relative; grid-column: 6 / span 7; margin: 0; }
.ops__map img { width: 100%; height: auto; }
.ops__arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ops__arcs text { fill: var(--ink); font-family: var(--font-mono); font-size: 13px; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 64px 40px; border-top: 1px solid var(--line); }

.site-footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.site-footer__brand { grid-column: 1 / span 4; display: grid; align-content: start; gap: 18px; }
.site-footer__brand img { width: 132px; }
.site-footer__brand p { color: var(--ink-3); font-size: var(--text-sm); }

.site-footer__col { grid-column: span 2; }
.site-footer__brand + .site-footer__col { grid-column: 7 / span 2; }

.site-footer__col h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer__col li + li { margin-top: 10px; }
.site-footer__col a { color: var(--ink-3); font-size: var(--text-sm); text-decoration: none; }
.site-footer__col a:hover { color: var(--blue-text); }

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--text-xs);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .site-header__actions .btn { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }

  .mobile-nav {
    display: grid;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    padding-inline: var(--gutter);
    transition: max-height 300ms var(--ease-out);
  }

  .mobile-nav.is-open { max-height: 480px; padding-bottom: 20px; }
  .mobile-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
  .mobile-nav .btn { margin-top: 12px; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hero__card { display: none; }
}

@media (max-width: 900px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.18); }
  .ops__stats,
  .ops__map { grid-column: 1 / -1; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__col,
  .site-footer__brand + .site-footer__col { grid-column: span 4; }
}

@media (max-width: 640px) {
  :root { --text-hero: clamp(1.75rem, 8.7vw, 2.5rem); }
  .hero__head .pill { padding-left: 14px; font-size: 12px; white-space: nowrap; }
  .hero__head .pill b { display: none; }
  .hero__stage { height: auto; overflow: visible; background: none; }
  .hero__stage picture { position: relative; }
  .hero__stage picture img { height: 300px; border-radius: var(--radius-lg); }
  .hero__stage::after { display: none; }
  .hero__card { position: relative; left: auto; bottom: auto; margin: -64px 12px 0; }
  .hero__stats { position: relative; margin-top: 16px; padding: 0; border-top: 1px solid var(--line); background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero__stat b { color: var(--ink); }
  .hero__stat > span { color: var(--ink-3); }
  .hero__stat + .hero__stat { border-left-color: var(--line); }
  .hero__stat:nth-child(n + 3) { border-top-color: var(--line); }
  .site-footer__col,
  .site-footer__brand + .site-footer__col { grid-column: span 6; }
  .site-footer__legal { flex-direction: column; gap: 8px; }
}
