:root {
  --navy: #203853;
  --navy-deep: #1b2f47;
  --ice: #d8eafd;
  --blue: #0d97ff;
  --slate: #4e657e;
  --white: #ffffff;
  --font-head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 92%); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(32,56,83,0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.brand .brand-top { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; }
.brand .brand-sub { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 0.22em; margin-top: 4px; }
.nav { display: flex; gap: 44px; align-items: center; }
.nav a { font-size: 19px; letter-spacing: 0.02em; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--navy); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: .2s; }

/* Hero */
.hero {
  position: relative; min-height: 78vh; min-height: 78svh; display: grid; place-items: center; text-align: center; color: var(--white);
  background: var(--navy) url("../img/hero.jpg") center/cover no-repeat;
  isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32,56,83,0.45) 0%, rgba(32,56,83,0.55) 60%, rgba(32,56,83,0.7) 100%); z-index: -1; }
.hero .wrap { padding: 96px 0; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); max-width: 16ch; margin: 0 auto 40px; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.btn {
  display: inline-block; font-family: var(--font-body); font-size: 18px; font-weight: 500;
  background: var(--ice); color: var(--navy); border: 1px solid var(--navy); border-radius: 10px;
  padding: 14px 40px; transition: background .2s, transform .15s; cursor: pointer;
}
.btn:hover { background: #fff; transform: translateY(-1px); }

/* Sections */
.section { padding: 110px 0; }
.section-title { font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.04em; margin-bottom: 48px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lead { font-size: 22px; line-height: 1.5; }
.lead p + p { margin-top: 1.4em; }
.photo { border-radius: 4px; overflow: hidden; box-shadow: 0 24px 60px rgba(32,56,83,0.18); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; }

/* What we do */
.dark { background: var(--navy); color: var(--white); }
.dark .section-title { text-align: center; margin-bottom: 72px; }
.services { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.services .photo { position: sticky; top: 120px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.service + .service { margin-top: 56px; }
.service h3 { font-size: 30px; margin-bottom: 14px; }
.service p { font-size: 20px; line-height: 1.5; color: rgba(255,255,255,0.92); }

/* Contact */
.contact {
  background: radial-gradient(120% 90% at 8% 20%, #7e94b0 0%, rgba(126,148,176,0) 55%),
              linear-gradient(112deg, #2c4867 0%, #4d6a8c 45%, #2f5fa6 100%);
  color: var(--white);
}
.contact .section-title { text-align: center; margin-bottom: 24px; }
.contact .intro { text-align: center; max-width: 42ch; margin: 0 auto 56px; font-size: 17px; }
.form { max-width: 520px; margin: 0 auto; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 17px; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; border: 0; border-radius: 2px; padding: 10px 12px; font: inherit; color: var(--white);
  background: rgba(255,255,255,0.22); outline: none; transition: background .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { background: rgba(255,255,255,0.32); box-shadow: 0 0 0 2px rgba(255,255,255,0.5); }
.field textarea { min-height: 120px; resize: vertical; }
.form-actions { text-align: center; }
.btn-submit {
  font: inherit; font-size: 16px; color: var(--ice); background: var(--blue); border: 1px solid var(--slate);
  width: 300px; max-width: 100%; padding: 10px; cursor: pointer; transition: filter .15s;
}
.btn-submit:hover { filter: brightness(1.08); }
.btn-submit[disabled] { opacity: .6; cursor: default; }
.form-note { text-align: center; margin-top: 18px; min-height: 1.4em; font-size: 16px; }
.form-note.error { color: #ffd6d6; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--white); padding: 80px 0 60px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.site-footer img { width: 110px; margin: 0 auto; }
.site-footer address { font-style: normal; font-size: 14px; line-height: 1.6; }
.site-footer address a { display: block; margin-bottom: 20px; }
.site-footer .copy { grid-column: 1 / -1; text-align: center; font-size: 13px; opacity: .8; margin-top: 30px; }

/* Careers page */
.page-hero { background: var(--navy); color: var(--white); padding: 90px 0 70px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.04em; margin-bottom: 24px; }
.page-hero p { font-size: 20px; max-width: 70ch; }
.jobs { padding: 80px 0; }
.job { padding: 44px 0; border-top: 1px solid rgba(32,56,83,0.15); }
.job:first-child { border-top: 0; padding-top: 0; }
.job h2 { font-size: 32px; margin-bottom: 12px; }
.job .summary { font-size: 20px; margin-bottom: 18px; }
.job ul { margin: 0; padding-left: 1.2em; font-size: 18px; }
.job li { margin: 6px 0; }
.apply { background: var(--ice); padding: 60px 0; }
.apply h2 { font-size: 30px; margin-bottom: 14px; }
.apply p { font-size: 19px; max-width: 70ch; margin: 0; }
.apply a { text-decoration: underline; text-underline-offset: 3px; }

/* Responsive */
@media (max-width: 900px) {
  .split, .services { grid-template-columns: 1fr; gap: 40px; }
  .services .photo { position: static; }
  .split .photo { order: -1; }
  .section { padding: 80px 0; }
}
@media (max-width: 760px) {
  .site-header .wrap { height: 76px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid rgba(32,56,83,0.1); display: none;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; text-align: center; padding: 16px 0; border-top: 1px solid rgba(32,56,83,0.08); }
  .nav a::after { display: none; }
  .hero { min-height: 70vh; }
  .lead, .service p { font-size: 18px; }
  .site-footer .wrap { grid-template-columns: 1fr; text-align: center; }
  .site-footer address a { margin-bottom: 12px; }
}
