:root {
  --bg: #021327;
  --bg-alt: #05192f;
  --surface: #08213d;
  --line: #17324f;
  --line-strong: #24476d;
  --text: #e6edf5;
  --muted: #94a6ba;
  --accent: #2aa8e0;
  --accent-hover: #4dbbeb;
  --radius: 4px;
  --container: 1120px;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-body);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.2em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75em 1.4em;
  border-radius: var(--radius);
  background: var(--accent);
  color: #021327;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: transparent; border-color: var(--text); }
.btn-small { padding: 0.5em 1.1em; font-size: 0.9rem; }
.btn-large { padding: 0.9em 1.9em; font-size: 1rem; }

.text-link {
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand-name .del { color: #fff; }
.brand-name .op { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 80px 0 88px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-art img {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  /* the image's navy background is darker than the hero, so lighten drops it out */
  mix-blend-mode: lighten;
}

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-head {
  max-width: 620px;
  margin-bottom: 40px;
}
.section-head p:last-child { color: var(--muted); }

/* Services: a ruled grid rather than floating boxes */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
}
.card-grid .card {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line-strong);
}
.card-grid .card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card-cta { display: flex; flex-direction: column; }
.card-cta p { margin-bottom: 14px !important; }
.card-cta .text-link { margin-top: auto; }

/* Our work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.work-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.work-card:hover { border-color: var(--line-strong); }
.work-card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.work-card .work-tag {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.work-card .text-link { margin-top: auto; padding-top: 16px; color: var(--accent); }
.work-card:hover .text-link { text-decoration: underline; }

/* Approach steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 32px;
}
.steps li {
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.steps p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* Who we serve */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.split > div p { color: var(--muted); }
.audience {
  list-style: none;
  margin: 0;
  padding: 0;
}
.audience li {
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
}
.audience li:last-child { border-bottom: 1px solid var(--line-strong); }
.audience h3 { margin-bottom: 4px; }
.audience p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Mission */
.mission blockquote { max-width: 860px; }
.mission-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 1.2em;
}
.mission blockquote {
  margin: 0;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  line-height: 1.45;
}

/* FAQ */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}
.faq-item {
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}
.faq-item h3 { margin-bottom: 6px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 820px) {
  .faq-list { grid-template-columns: 1fr; }
}

/* Contact */
.contact { background: var(--bg); }
.contact-inner > h2, .contact-inner > p { max-width: 720px; }
.contact-inner p { color: var(--muted); margin-bottom: 28px; }
.contact-details {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
}
.contact-details li { display: flex; flex-direction: column; gap: 2px; }
.contact-details span {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.8rem;
}
.contact-details a {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-details a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 0.92rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 32px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand strong { display: block; }
.footer-brand span { color: var(--muted); font-size: 0.88rem; }
.footer-brand .footer-contact { display: block; margin-top: 4px; }
.footer-contact a { color: var(--muted); text-decoration: none; }
.footer-contact a:hover { color: var(--text); }
.footer-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; text-align: center; }

  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 320px; margin: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .card-grid, .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
