:root {
  --ink: #17202a;
  --muted: #5e6b78;
  --line: #d9e1e8;
  --paper: #f8fafb;
  --panel: #ffffff;
  --teal: #007d8a;
  --red: #bd3f32;
  --gold: #c39130;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  border-bottom: 1px solid rgba(23, 32, 42, 0.12);
  background: rgba(248, 250, 251, 0.92);
}

.nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 72px;
  padding: 0 28px;
}

.brand {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--teal);
}

main {
  overflow: hidden;
}

.hero {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  color: #ffffff;
}

.hero-inner {
  display: flex;
  margin: 0;
  min-height: min(780px, calc(100vh - 72px));
  overflow: hidden;
  padding: 0;
  position: relative;
}

.hero-inner::before {
  background: linear-gradient(90deg, rgba(23, 32, 42, 0.92) 0%, rgba(23, 32, 42, 0.82) 28%, rgba(23, 32, 42, 0.34) 55%, rgba(23, 32, 42, 0) 78%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  margin: 0 auto;
  max-width: 1180px;
  padding: 86px 28px 64px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.eyebrow {
  color: #45c8d4;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 5.4vw, 4.9rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 680px;
}

.lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 1.8vw, 1.36rem);
  margin: 28px 0 0;
  max-width: 640px;
}

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

.button {
  align-items: center;
  border: 1px solid var(--ink);
  display: inline-flex;
  font-weight: 760;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.78);
  color: #ffffff;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero-image {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center right;
  position: absolute;
  width: 100%;
}

.metrics {
  background: var(--ink);
  color: #ffffff;
}

.metrics-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 28px;
}

.metric {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding: 34px 28px;
}

.metric:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.metric strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.2;
}

.metric span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  margin-top: 8px;
}

.section,
.page-wrap {
  margin: 0 auto;
  max-width: 1180px;
  padding: 80px 28px;
  scroll-margin-top: 24px;
}

.page-wrap {
  padding-top: 62px;
}

.section-heading,
.page-heading {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  margin-bottom: 38px;
}

.page-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 38px;
}

h2,
.page-title {
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  letter-spacing: 0;
  line-height: 1.06;
  margin: 0;
}

.section-heading p,
.page-heading p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
  max-width: 690px;
}

.marker {
  display: block;
  height: 4px;
  margin-bottom: 26px;
  width: 54px;
}

.marker.teal {
  background: var(--teal);
}

.marker.red {
  background: var(--red);
}

.marker.gold {
  background: var(--gold);
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.3rem);
  margin-top: 0;
}

.prose p + p {
  margin-top: 18px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  padding: 24px 28px;
  text-align: center;
}

.not-found {
  margin: 0 auto;
  max-width: 620px;
  min-height: 52vh;
  padding: 90px 28px;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  margin: 0 0 24px;
}

.not-found p {
  color: var(--muted);
  margin: 10px 0 0;
}

.not-found strong {
  color: var(--ink);
}

.not-found a {
  color: var(--ink);
  font-weight: 750;
  text-decoration-color: rgba(0, 125, 138, 0.4);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.not-found a:hover {
  color: var(--teal);
}

@media (max-width: 850px) {
  .nav {
    align-items: center;
    flex-direction: row;
    gap: 18px;
    min-height: 0;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .brand {
    font-size: 0.82rem;
  }

  .nav-links {
    flex-wrap: wrap;
    font-size: 0.92rem;
    gap: 14px;
    justify-content: flex-end;
  }

  .hero-inner,
  .section-heading,
  .page-heading {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 620px;
  }

  h1 {
    font-size: clamp(2.35rem, 8vw, 3.35rem);
  }

  .lead {
    font-size: 1rem;
    margin-top: 18px;
  }

  .actions {
    gap: 10px;
    margin-top: 22px;
  }

  .button {
    font-size: 0.95rem;
    min-height: 42px;
    padding: 0 14px;
  }

  .hero-copy {
    padding-bottom: 44px;
    padding-top: 56px;
  }

  .hero-inner::before {
    background: linear-gradient(180deg, rgba(23, 32, 42, 0.92) 0%, rgba(23, 32, 42, 0.74) 58%, rgba(23, 32, 42, 0.22) 100%);
  }

  .hero-image {
    object-position: 63% center;
  }

  .section,
  .page-wrap {
    padding-bottom: 58px;
    padding-top: 58px;
  }

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

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

  .metric,
  .metric:last-child {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

}

@media (max-width: 560px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }
}
