/* ── Reset & Vars ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0f1e35;
  --navy-md: #152c4a;
  --navy-lt: #1e3a5f;
  --blue:    #2563a8;
  --sky:     #4a9fd4;
  --ice:     #c8dff2;
  --white:   #eef4fb;
  --muted:   rgba(200,223,242,0.75);
  --border:  rgba(74,159,212,0.18);
  --border-h:rgba(74,159,212,0.45);
  --mono:    'JetBrains Mono', monospace;
  --sans:    'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Grain */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.022;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Nav ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(24px, 5vw, 60px);
  background: rgba(15,30,53,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img {
  width: 38px; height: 38px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.nav-logo-name {
  font-family: var(--sans); font-weight: 700;
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
}

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active { color: var(--sky); }

.nav-cta {
  font-family: var(--mono) !important; font-size: 10.5px !important;
  letter-spacing: 0.16em !important; text-transform: uppercase !important;
  color: var(--sky) !important;
  border: 1px solid var(--border);
  padding: 7px 16px; border-radius: 2px;
  transition: border-color .2s, color .2s, background .2s !important;
}
.nav-cta:hover {
  border-color: var(--sky) !important;
  background: rgba(74,159,212,0.1) !important;
  color: var(--white) !important;
}

/* ── Page wrapper ── */
.page { padding-top: 80px; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(80px,12vw,160px) clamp(24px,5vw,60px) clamp(60px,8vw,100px);
}

canvas.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-glow {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-55%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(ellipse, rgba(37,99,168,0.22) 0%, rgba(37,99,168,0.05) 50%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 860px; }

.eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: '//'; opacity: .5; }

h1.hero-title {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(44px, 7.5vw, 100px);
  line-height: 0.93; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--white);
}
h1.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(74,159,212,0.55);
}

.hero-divider {
  width: 64px; height: 2px;
  background: linear-gradient(to right, var(--sky), transparent);
  margin: 28px 0;
}

.hero-sub {
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 300; line-height: 1.65;
  color: var(--muted); max-width: 520px;
}

.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: var(--white);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 2px;
  transition: background .2s, transform .1s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--sky); }
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 2px;
  border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--sky); color: var(--white); }

/* ── Page hero (internal pages) ── */
.page-hero {
  padding: clamp(60px,8vw,100px) clamp(24px,5vw,60px) clamp(40px,5vw,64px);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero-glow {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(37,99,168,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 0.95; letter-spacing: -0.02em;
  text-transform: uppercase;
}
.page-hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(74,159,212,0.55);
}
.page-hero-sub {
  margin-top: 20px;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 300; color: var(--muted); max-width: 540px; line-height: 1.65;
}

/* ── Sections ── */
section { padding: clamp(60px,8vw,100px) clamp(24px,5vw,60px); }
section + section { border-top: 1px solid var(--border); }

.section-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: '//'; opacity: .5; }

.section-title {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(28px, 3.5vw, 46px);
  letter-spacing: -0.01em; line-height: 1.1;
  margin-bottom: 16px; text-transform: uppercase;
}
.section-title .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(74,159,212,0.55);
}
.section-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300; color: var(--muted);
  max-width: 560px; line-height: 1.65;
  margin-bottom: 52px;
}

/* ── Cards grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 32px 28px;
  transition: border-color .25s, background .25s, transform .2s;
}
.card:hover {
  border-color: var(--border-h);
  background: rgba(74,159,212,0.05);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px; height: 40px; margin-bottom: 20px;
  color: var(--sky);
}

.card-num {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; color: rgba(74,159,212,.45);
  margin-bottom: 14px;
}

.card h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 17px; letter-spacing: 0.02em;
  text-transform: uppercase; margin-bottom: 10px;
  color: var(--white);
}

.card p {
  font-size: 14px; font-weight: 300;
  color: var(--muted); line-height: 1.65;
}

/* ── Image cards ── */
.img-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.img-card {
  border: 1px solid var(--border);
  border-radius: 3px; overflow: hidden;
  transition: border-color .25s, transform .2s;
}
.img-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.img-card img { width: 100%; height: 220px; object-fit: cover; display: block; filter: brightness(.75) saturate(.8); transition: filter .3s; }
.img-card:hover img { filter: brightness(.85) saturate(1); }
.img-card-body { padding: 24px 22px; }
.img-card-body h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 16px; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 8px;
}
.img-card-body p { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.6; }

/* ── Team cards ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  gap: 24px;
}
.team-card {
  border: 1px solid var(--border); border-radius: 3px;
  overflow: hidden; transition: border-color .25s, transform .2s;
}
.team-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.team-card img { width: 100%; height: 260px; object-fit: cover; filter: brightness(.7) saturate(.6); transition: filter .3s; }
.team-card:hover img { filter: brightness(.85) saturate(.9); }
.team-card-body { padding: 22px 20px; }
.team-card-body h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.team-card-body .role {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 12px;
}
.team-card-body p { font-size: 13.5px; font-weight: 300; color: var(--muted); line-height: 1.6; }

/* ── Two-col layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.two-col.reverse .two-col-img { order: -1; }
.two-col-img img { width: 100%; border-radius: 3px; border: 1px solid var(--border); filter: brightness(.75) saturate(.7); }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px; align-items: start;
}
.contact-info { }
.contact-info-item { margin-bottom: 28px; }
.contact-info-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 6px;
}
.contact-info-value {
  font-size: 16px; font-weight: 300; color: var(--white);
}
.contact-info-value a { transition: color .2s; }
.contact-info-value a:hover { color: var(--sky); }

.contact-form { }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  padding: 12px 16px; border-radius: 2px; outline: none;
  transition: border-color .2s, background .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(200,223,242,0.25); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sky);
  background: rgba(74,159,212,0.06);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── CTA Band ── */
.cta-band {
  background: var(--navy-md);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px,6vw,80px) clamp(24px,5vw,60px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band-text h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(24px,3vw,36px);
  letter-spacing: -0.01em; text-transform: uppercase;
  margin-bottom: 8px;
}
.cta-band-text p { font-size: 15px; font-weight: 300; color: var(--muted); }

/* ── Tags row ── */
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 2px;
  transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--sky); color: var(--sky); cursor: default; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(32px,4vw,48px) clamp(24px,5vw,60px);
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { width: 30px; height: 30px; object-fit: contain; filter: brightness(0) invert(1); opacity: .7; }
.footer-logo-name {
  font-family: var(--sans); font-weight: 700;
  font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(200,223,242,0.4);
}
.footer-right {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; color: rgba(200,223,242,0.22);
  line-height: 1.9; text-align: right;
}

/* ── Status badge ── */
.status-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky); border: 1px solid var(--border);
  background: rgba(74,159,212,0.07);
  padding: 5px 12px; border-radius: 2px;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sky); animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* ── Divider line ── */
.h-divider {
  width: 64px; height: 2px;
  background: linear-gradient(to right, var(--sky), transparent);
  margin: 24px 0;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.anim-fade-up { animation: fadeUp .9s ease both; }
.anim-fade-up-1 { animation: fadeUp .9s ease both .1s; }
.anim-fade-up-2 { animation: fadeUp .9s ease both .22s; }
.anim-fade-up-3 { animation: fadeUp .9s ease both .34s; }
.anim-fade-up-4 { animation: fadeUp .9s ease both .46s; }
.anim-fade-up-5 { animation: fadeUp .9s ease both .58s; }

/* ── Responsive ── */
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .two-col-img { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links .hide-mobile { display: none; }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; }
  .team-grid { grid-template-columns: 1fr; }
}
