:root {
  --navy: #1c3557;
  --navy-deep: #13243c;
  --steel: #4d6d93;
  --blue: #3a6ea5;
  --mist: #d7e0ea;
  --fog: #eef2f6;
  --paper: #f7f8fa;
  --ink: #1d2838;
  --muted: #5c6b7e;
  --white: #ffffff;
  --line: rgba(28, 53, 87, 0.12);
  --shadow: 0 18px 40px rgba(19, 36, 60, 0.08);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  border-radius: 0.4rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.nav-cta:hover,
.nav-cta.active {
  background: var(--navy-deep);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 4px;
  background: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(58, 110, 165, 0.18), transparent 28%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 52%, #35557c 100%);
  color: var(--white);
}

.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 42%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 22% 42%;
  mix-blend-mode: lighten;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(28, 53, 87, 0.25) 0%,
    transparent 55%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 5.5rem;
}

.hero-copy {
  max-width: 34rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: 0.8rem;
}

.hero .eyebrow,
.contact .eyebrow {
  color: var(--mist);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--navy);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
  color: var(--navy);
}

.lede {
  max-width: 62ch;
  font-size: 1.15rem;
  color: var(--mist);
  margin-bottom: 2rem;
}

.hero-actions,
.stat-row,
.card-grid,
.steps,
.contact-panel,
.section-grid,
.clients,
.footer-bar {
  display: flex;
}

.hero-actions {
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--mist);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-alt {
  max-width: none;
  background: var(--white);
  padding: 5rem 1.5rem;
}

.section-alt > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.section-grid {
  gap: 2.5rem;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.section-grid > div:first-child {
  flex: 0 0 38%;
}

.prose {
  flex: 1;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose p + p {
  margin-top: 1rem;
}

.prose a,
.card a,
.info-list a,
.footer-bar a {
  color: var(--blue);
  border-bottom: 1px solid rgba(58, 110, 165, 0.35);
}

.prose a:hover,
.card a:hover,
.info-list a:hover,
.footer-bar a:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.stat-row {
  list-style: none;
  gap: 1rem;
}

.stat-row li {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow);
}

.stat-row strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.stat-row span,
.card p,
.steps p {
  color: var(--muted);
}

.clients-label {
  margin: 2.5rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--steel);
}

.clients {
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem 1.6rem;
  max-width: 40rem;
}

.clients a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  opacity: 0.78;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.clients a:hover,
.clients a:focus-visible {
  opacity: 1;
  filter: none;
  transform: translateY(-1px);
}

.clients img {
  height: 2.5rem;
  width: auto;
  max-width: 8.75rem;
  object-fit: contain;
}

.clients img.clients__mark {
  width: 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
}

.card {
  background: var(--fog);
  border: 1px solid var(--line);
  padding: 1.4rem 1.2rem;
}

.steps {
  list-style: none;
  flex-direction: column;
  gap: 1.2rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--white);
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
}

.steps span {
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
}

.contact {
  max-width: 1120px;
}

.contact-panel {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 2.2rem;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}

.contact p {
  color: var(--mist);
}

.contact h2 {
  color: var(--white);
  max-width: 16ch;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-details a {
  display: inline-block;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 2rem;
}

.legal-block {
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}

.legal-block:first-child {
  margin-top: 0;
}

.info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 2.5rem;
}

.info-list div {
  display: grid;
  gap: 0.2rem;
}

.info-list dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.info-list dd {
  color: var(--ink);
}

.legal-collapse {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.legal-collapse summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.legal-collapse summary::-webkit-details-marker {
  display: none;
}

.legal-collapse summary::after {
  content: "+";
  font-weight: 500;
  color: var(--steel);
}

.legal-collapse[open] summary {
  color: var(--navy);
}

.legal-collapse[open] summary::after {
  content: "–";
}

.legal-collapse .info-list {
  margin-top: 0.9rem;
}

.footer-bar {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bar p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.3rem;
    border-bottom: 1px solid var(--line);
    gap: 0.9rem;
  }

  .nav-links.open {
    display: flex;
  }

  .section-grid,
  .stat-row,
  .contact-panel {
    flex-direction: column;
  }

  .card-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 4.5rem;
  }

  .hero-visual {
    left: 0;
    opacity: 0.32;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
  }

  .hero-visual::after {
    background: linear-gradient(
      180deg,
      rgba(19, 36, 60, 0.45) 0%,
      transparent 40%,
      rgba(28, 53, 87, 0.5) 100%
    );
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
