@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
  --cobalt: #0047AB;
  --black: #101010;
  --muted: #68635d;
  --line: #dedbd6;
  --paper: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--cobalt);
  color: white;
}

.section {
  width: min(1240px, calc(100% - 80px));
  margin: 0 auto;
}

.hero {
  min-height: 92vh;
  padding: 42px 0 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow, .section-number, .card-index, .service > span, .risk, footer {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--cobalt);
  margin-bottom: 42px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 1050px;
  margin-bottom: 32px;
  font-size: clamp(64px, 10vw, 145px);
  line-height: .88;
  letter-spacing: -.07em;
  font-weight: 600;
}

em {
  color: var(--cobalt);
  font-family: "Playfair Display", serif;
  font-weight: 500;
  letter-spacing: -.045em;
}

.hero-copy {
  font-size: clamp(20px, 2vw, 28px);
  color: var(--muted);
  margin-bottom: 55px;
}

.arrow-link {
  width: fit-content;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 9px;
  font-weight: 600;
}

.arrow-link span { margin-left: 30px; }

.systems, .services {
  padding: 150px 0;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: 100px 1fr;
  margin-bottom: 80px;
}

.section-number { color: var(--cobalt); padding-top: 12px; }

h2 {
  font-size: clamp(52px, 7vw, 94px);
  line-height: .94;
  letter-spacing: -.06em;
  font-weight: 600;
  margin-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.card {
  min-height: 410px;
  padding: 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.card:last-child { border-right: 0; }

.card-index { color: var(--cobalt); }

.card h3 {
  font-size: clamp(42px, 5vw, 70px);
  letter-spacing: -.06em;
  margin: auto 0 24px;
}

.card p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 330px;
}

.risk {
  color: var(--muted);
  padding-top: 22px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.risk strong { color: var(--black); }

.risks {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 70px;
}

.risks p {
  padding: 22px 0;
  margin: 0;
  border-top: 1px solid var(--line);
  color: #383531;
  line-height: 1.5;
}

.risks span {
  color: var(--cobalt);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  margin-right: 25px;
}

.service-list { border-top: 1px solid var(--black); }

.service {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease;
}

.service:hover { padding-left: 15px; padding-right: 15px; }

.service > span { color: var(--cobalt); padding-top: 7px; }

.service h3 {
  font-size: clamp(27px, 3vw, 43px);
  letter-spacing: -.045em;
  margin-bottom: 10px;
}

.service p {
  color: var(--muted);
  max-width: 650px;
  line-height: 1.55;
  margin-bottom: 0;
}

.cta {
  padding: 170px 0 190px;
  position: relative;
}

.cta-mark {
  position: absolute;
  right: 0;
  top: 130px;
  color: var(--cobalt);
  font-size: 80px;
}

.cta h2 {
  margin: 35px 0 30px;
  max-width: 900px;
}

.cta p {
  color: var(--muted);
  font-size: 20px;
  margin-bottom: 42px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 70px;
  padding: 18px 22px;
  background: var(--black);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}

.cta-button:hover {
  background: var(--cobalt);
  transform: translateY(-2px);
}

footer {
  width: min(1240px, calc(100% - 80px));
  margin: 0 auto;
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.top-nav {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 30px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.top-nav a span {
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.top-nav a:first-child {
  font-weight: 700;
}

.top-nav a:hover {
  opacity: 0.65;
}

.top-nav a:hover span {
  transform: translate(2px, -2px);
}

@media (max-width: 800px) {
  .section, footer { width: min(100% - 40px, 1240px); }

  .hero {
    min-height: 85vh;
    padding-top: 30px;
  }

  .cards, .risks {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 350px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .card:last-child { border-bottom: 0; }

  .systems, .services { padding: 100px 0; }

  .section-intro {
    grid-template-columns: 55px 1fr;
    margin-bottom: 55px;
  }

  .service { grid-template-columns: 55px 1fr; }

  .cta-mark { top: 80px; font-size: 50px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 58px; }
  h2 { font-size: 48px; }
  .cta { padding: 110px 0 130px; }
}
