:root {
  --ink: #132235;
  --muted: #5a6978;
  --line: #d8e0e7;
  --surface: #ffffff;
  --surface-alt: #eef3f7;
  --primary: #173a59;
  --accent: #2f8f6f;
  --warm: #c08322;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f4f7fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(244, 247, 250, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 7px;
  background: linear-gradient(135deg, #10263b, #1d5f72);
  color: #fff;
  box-shadow: 0 10px 26px rgba(16, 38, 59, .16);
}

.brand-mark svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 15px;
}

nav a,
.button,
.email-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

nav a:focus-visible,
.button:focus-visible,
.email-link:focus-visible {
  outline: 3px solid rgba(47, 143, 111, .42);
  outline-offset: 4px;
}

.hero {
  position: relative;
  display: grid;
  align-items: flex-end;
  justify-items: start;
  min-height: calc(100dvh - 82px);
  padding: clamp(42px, 7vw, 94px) clamp(18px, 4vw, 56px) clamp(42px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 730px;
  min-width: 0;
  padding: clamp(24px, 4vw, 46px) 0 0;
  color: #fff;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  background: #132235;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 24, 38, .88) 0%, rgba(12, 24, 38, .65) 42%, rgba(12, 24, 38, .18) 100%),
    linear-gradient(0deg, rgba(12, 24, 38, .64) 0%, rgba(12, 24, 38, .05) 44%);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-text {
  width: 100%;
  color: rgba(255, 255, 255, .84);
  max-width: 610px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #fff;
  border-radius: 6px;
  background: #fff;
  color: var(--primary);
}

.hero .button {
  color: #fff;
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
  font-weight: 750;
}

.button.secondary {
  background: transparent;
  color: #fff;
}

.band,
.split,
.contact-section {
  padding: clamp(54px, 7vw, 96px) clamp(18px, 4vw, 56px);
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.service-grid p,
.split p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(320px, 1.22fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

figure {
  margin: 0;
}

.process-photo {
  position: relative;
}

.process-photo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}

.metrics div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metrics dt {
  font-size: 28px;
  font-weight: 800;
}

.metrics dd {
  margin: 0;
  color: var(--muted);
}

.compact {
  background: #edf3f6;
}

.application-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.application-list span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #bfd0dc;
  border-radius: 6px;
  background: #fff;
  font-weight: 650;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--primary);
  color: #fff;
}

.contact-section .eyebrow,
.contact-section h2 {
  color: #fff;
}

.email-link {
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 6px;
  font-weight: 750;
  white-space: nowrap;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 190px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-text {
    max-width: 100%;
    font-size: 17px;
  }

  .service-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .contact-section {
    align-items: flex-start;
  }

  .email-link {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .band,
  .split,
  .contact-section,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-copy,
  .section-heading,
  .contact-section > div {
    max-width: 350px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-text {
    max-width: 350px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  html {
    scroll-behavior: auto;
  }
}
