:root{
  --bg: #0b1220;
  --bg-soft: #111a2e;         /* section breaks */
  --panel: rgba(255,255,255,.06);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.58);
  --border: rgba(255,255,255,.12);
  --accent: #7c9cff;
  --accent2: #52f2c7;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -20%, rgba(124,156,255,.28), transparent 60%),
              radial-gradient(900px 500px at 85% 5%, rgba(82,242,199,.18), transparent 65%),
              var(--bg);
  color: var(--text);
  line-height:1.6;
}
a{color:inherit}
.container{width:min(var(--max), calc(100% - 2rem)); margin:0 auto}

.small{font-size:.92rem}
.muted{color:var(--muted)}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.badge{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.25rem .6rem; border:1px solid var(--border);
  border-radius:999px; font-size:.85rem; color:var(--muted);
  background: rgba(255,255,255,.04);
}
.link{color:var(--accent); text-decoration:none}
.link:hover{text-decoration:underline}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem;
  padding:.85rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(124,156,255,.32), rgba(82,242,199,.18));
  box-shadow: var(--shadow);
  text-decoration:none;
  font-weight:600;
}
.btn:hover{transform: translateY(-1px)}
.btn--ghost{background: rgba(255,255,255,.06); box-shadow:none;}
.btn--sm{padding:.6rem .85rem; font-size:.95rem; box-shadow:none}

/* =========================
   Announcement (optional)
========================= */
.announce{
  position: sticky; top:0; z-index:30;
  background: rgba(9, 14, 26, .7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.announce__inner{
  display:flex; gap:.8rem; align-items:center; justify-content:center;
  padding:.55rem 0;
}
.announce__text{color:var(--muted)}
.announce__link{color:var(--accent); text-decoration:none}
.announce__link:hover{text-decoration:underline}

/* =========================
   Header (FIXED)
========================= */
.header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(11,18,32,.96);   /* stops hero text showing through */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.header__inner{
  position: relative;              /* anchor for mobile dropdown */
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.75rem 0;
  gap:1rem;
  min-height: 74px;                /* stable height fixes mobile placement */
}

/* Brand */
.brand{
  display:flex; align-items:center; gap:.75rem;
  text-decoration:none;
}
.brand__mark{
  width:44px; height:44px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(124,156,255,.45), rgba(82,242,199,.25));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
  font-weight:800;
}

/* Logo (single source of truth) */
.brand__logo{
  height: 64px;     /* desktop */
  width: auto;
  display:block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

/* Optional text if you ever use it */
.brand__title{display:block; font-weight:800; letter-spacing:.2px}
.brand__subtitle{display:block; font-size:.85rem; color:var(--muted2)}

/* Nav */
.nav{display:flex; align-items:center; gap:1rem;}
.nav a{
  text-decoration:none; color:var(--muted);
  padding:.35rem .55rem; border-radius: 999px;
}
.nav a:hover{background: rgba(255,255,255,.06); color: var(--text)}
.nav a[aria-current="page"]{color:var(--text); background: rgba(255,255,255,.06);}

.nav__toggle{
  display:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  width:44px; height:44px;
  align-items:center; justify-content:center;
  color:var(--text);
}
.nav__toggleBars{
  width:18px; height:2px; background: var(--text);
  position:relative; display:block;
}
.nav__toggleBars::before,.nav__toggleBars::after{
  content:""; position:absolute; left:0; width:18px; height:2px; background: var(--text);
}
.nav__toggleBars::before{top:-6px}
.nav__toggleBars::after{top:6px}

/* Page background */
.page{
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

/* =========================
   Hero (home)
========================= */
.hero{padding: 4.2rem 0 2.4rem}
.hero__grid{
  display:grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 2.2rem;
  align-items: start;
}
.kicker{color: var(--muted); margin:0 0 .7rem; font-weight:600}
.hero h1{
  margin:.1rem 0 .9rem;
  line-height:1.1;
  letter-spacing:-.02em;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
}
.lead{color: var(--muted); margin:0 0 1.4rem; font-size:1.05rem}
.hero__actions{display:flex; gap:.85rem; flex-wrap:wrap}

.quicklinks{display:flex; gap:.55rem; flex-wrap:wrap; margin-top: 1.25rem}
.pill{
  display:inline-flex;
  padding:.45rem .75rem;
  border:1px solid var(--border);
  border-radius: 999px;
  text-decoration:none;
  color: var(--muted);
  background: rgba(255,255,255,.04);
}
.pill:hover{color:var(--text); background: rgba(255,255,255,.06)}

/* Media card */
.mediaCard{
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.mediaCard__top{
  display:flex; align-items:center; gap:.5rem;
  padding:.7rem .9rem;
  border-bottom:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.dot{width:10px; height:10px; border-radius: 999px; background: rgba(255,255,255,.2)}
.mediaCard__label{margin-left:.4rem; color:var(--muted); font-size:.9rem}
.mediaCard__body{padding: 1.2rem}
.mediaCard__caption{display:flex; flex-wrap:wrap; gap:.45rem}
.chip{
  font-size:.85rem; color:var(--muted);
  border:1px solid var(--border);
  padding:.25rem .55rem; border-radius:999px;
  background: rgba(255,255,255,.04);
}

/* Hero 4 images */
.heroImageGrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.heroImageGrid img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.04);
}

/* Page hero (inner pages) */
.pageHero{
  padding: 2.4rem 0 1.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 85%);
}
.pageHero h1{
  margin:.2rem 0 0;
  line-height:1.12;
  letter-spacing:-.02em;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

/* Sections */
.section{padding: 3.2rem 0}
.section.alt{background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 75%)}
.section.light{background:#f7f9fc; color:#0b1220;}
.section__head{margin-bottom: 1.4rem}
.section__head h2{margin:0 0 .5rem; font-size: clamp(1.6rem, 2.4vw, 2rem)}
.section__sub{margin-top: 2rem}

/* Layout */
.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:1.1rem}
.grid3{display:grid; grid-template-columns: 1fr 1fr 1fr; gap:1.1rem}
.stack{display:grid; gap: .9rem}

.card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  padding: 1.15rem 1.15rem 1.05rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.card h2,.card h3{margin:.1rem 0 .45rem; letter-spacing:-.01em}
.card.highlight{
  background: linear-gradient(135deg, rgba(124,156,255,.18), rgba(82,242,199,.10));
  border-color: rgba(255,255,255,.18);
}
.list{margin:.65rem 0 0; padding-left: 1.05rem; color: var(--muted)}
.list li{margin:.25rem 0}

/* Capability grid (new) */
.capabilitiesGrid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.capCard{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.capCard img{
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 10px;
}
.capCard h4{margin: 6px 0 4px; font-size: 1rem;}
.capCard p{font-size: 0.82rem; color: var(--muted);}
.capCard:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}

/* Forms */
input, textarea, select{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  padding: .7rem .85rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
}
input:focus, textarea:focus, select:focus{border-color: rgba(124,156,255,.6)}
textarea{resize: vertical}
.formRow{display:grid; grid-template-columns: 1fr 1fr; gap:.75rem}

/* Profile passport-style */
.profileCard{text-align:center; padding-top:24px;}
.profilePhotoWrap{display:flex; justify-content:center; margin-bottom:14px;}
.profilePhoto{
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}

/* Map */
.mapPlaceholder{
  height: 220px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.22);
  display:grid; place-items:center;
  color: var(--muted);
  background: rgba(255,255,255,.03);
}
.mapEmbed{
  width: 100%;
  min-height: 360px;
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  padding: 1.3rem 0;
  background: rgba(11,18,32,.5);
}
.footer__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; flex-wrap:wrap;
}
.inlineLinks a{color: var(--accent); text-decoration:none}
.inlineLinks a:hover{text-decoration:underline}

/* =========================
   Responsive
========================= */
@media (max-width: 1024px){
  .capabilitiesGrid{grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 960px){
  .hero__grid{grid-template-columns: 1fr; gap: 1.35rem}
  .grid3{grid-template-columns: 1fr 1fr}
}
@media (max-width: 768px){
  .brand__logo{height:56px;}
  .profilePhoto{width:110px; height:140px;}
}
@media (max-width: 720px){
  .announce__inner{justify-content:flex-start}

  .brand__logo{height:46px;}
  .nav__toggle{
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  /* Mobile dropdown menu (single source of truth) */
  .nav{
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display:none;
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
    padding: .7rem;
    width: min(340px, calc(100vw - 2rem));
    background: rgba(11,18,32,.98);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 10000;
  }
  .nav.is-open{display:flex}
  .nav a{padding: .55rem .65rem}

  .grid2{grid-template-columns: 1fr}
  .grid3{grid-template-columns: 1fr}
  .formRow{grid-template-columns: 1fr}

  .heroImageGrid{grid-template-columns: 1fr;}
  .heroImageGrid img{height:200px;}
}
@media (max-width: 560px){
  .capabilitiesGrid{grid-template-columns: 1fr;}
}
