/* Site-wide type scale and responsive layout safeguards. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-size: 16px;
}

.site-header .brand {
  width: 155px;
  height: 88px;
}

.site-header .brand img,
.footer-logo {
  filter: brightness(1.34) saturate(1.18) contrast(1.06);
}

.footer-logo {
  width: 260px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: currentColor;
  transition: transform .2s ease, color .2s ease;
}

.social-link:hover svg {
  transform: translateY(-1px);
  color: var(--gold-light);
}

h1 {
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
}

h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

h3 {
  font-size: 23px;
}

.hero,
.page-hero {
  min-height: clamp(560px, 76vh, 760px);
  padding-top: clamp(90px, 8vw, 118px);
  padding-bottom: clamp(72px, 8vw, 110px);
}

.hero p:not(.kicker),
.page-hero p:not(.kicker),
.prose {
  font-size: 17px;
  line-height: 1.7;
}

.section {
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(72px, 8vw, 120px);
}

.section-head {
  margin-top: 34px;
  margin-bottom: 46px;
}

.service-grid h3,
.sector-grid h3 {
  font-size: 21px;
}

.footer-grid {
  padding-top: 60px;
  padding-bottom: 60px;
}

@media (max-width: 850px) {
  .site-header {
    height: 74px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .brand {
    width: 128px;
    height: 72px;
  }

  .site-header nav {
    top: 73px;
    padding: 20px;
    gap: 18px;
    font-size: 12px;
    background: var(--navy) !important;
    border-bottom: 1px solid rgba(240, 212, 119, .28) !important;
    box-shadow: 0 18px 34px rgba(3, 14, 29, .28);
  }

  /* Keep the opened mobile menu on the same navy/gold theme as the header.
     The base stylesheet's white panel otherwise makes these links nearly
     invisible when a later theme rule supplies light text. */
  .site-header nav a,
  .site-header nav a:visited {
    color: #e8eef4 !important;
    font-family: var(--sans);
  }

  .site-header nav a:hover,
  .site-header nav a:focus-visible,
  .site-header nav a.active {
    color: var(--gold-light) !important;
  }

  .site-header nav .nav-cta {
    color: #fff !important;
    border-bottom-color: var(--gold-light) !important;
  }

  .hero,
  .page-hero {
    min-height: 620px;
    padding: 82px 22px 64px;
  }

  .hero-copy {
    padding-top: 18px;
  }

  h1 {
    font-size: clamp(38px, 8.5vw, 56px);
  }

  h2 {
    font-size: clamp(32px, 7vw, 46px);
  }

  .hero p:not(.kicker),
  .page-hero p:not(.kicker),
  .prose {
    font-size: 16px;
    line-height: 1.65;
  }

  .section {
    padding: 72px 22px;
  }

  .section-head {
    gap: 22px;
    margin: 26px 0 34px;
  }

  .service-grid,
  .sector-grid {
    gap: 12px;
  }

  .service-grid article {
    min-height: 240px;
    padding: 20px;
  }

  .service-grid h3 {
    margin-top: 30px;
    font-size: 20px;
  }

  .service-grid p,
  .sector-grid p,
  .detail-grid p {
    font-size: 14px;
    line-height: 1.6;
  }

  .footer-grid {
    padding: 54px 22px;
  }

  .footer-bottom {
    padding: 18px 22px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 38px;
    line-height: 1;
  }

  h2 {
    font-size: 31px;
  }

  h3,
  .service-grid h3,
  .sector-grid h3 {
    font-size: 20px;
  }

  .hero,
  .page-hero {
    min-height: 570px;
    padding: 70px 20px 54px;
  }

  .hero-copy {
    padding-top: 8px;
  }

  .hero-media {
    right: -190px;
    bottom: -56px;
    width: 420px;
    opacity: .38;
  }

  .section {
    padding: 58px 20px;
  }

  .kicker {
    font-size: 10px;
    margin-bottom: 20px;
  }

  .prose,
  .hero p:not(.kicker),
  .page-hero p:not(.kicker) {
    font-size: 16px;
  }

  .service-grid article {
    min-height: 0;
  }

  .motion {
    min-height: 360px;
  }

  .motion h2 {
    font-size: 31px;
  }

  .form-card {
    padding: 22px;
  }
}
