/* The primary wordmark is navy with transparency, so it sits on a light field. */
.topline {
  height: 4px;
  background: linear-gradient(90deg, #082442 0 68%, var(--brand-red) 68% 94%, #9bb0c4 94%);
}

header {
  background: #fff;
  border-bottom: 1px solid #d9e1e9;
}

.brand {
  gap: 0.65rem;
  color: #092c53;
}

.brand-symbol {
  display: block;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
}

.brandtext {
  font-size: 0.97rem;
  letter-spacing: 0.055em;
}

.brandtext small {
  color: #536778;
  font-size: 0.65rem;
  letter-spacing: 0.105em;
}

.navlinks {
  color: #233951;
  font-size: 0.875rem;
}

.navlinks a:hover {
  color: #a91325;
}

.navlinks .navcta {
  color: #092c53 !important;
  border-color: #a8bbcd;
}

.navlinks .navcta:hover {
  color: #a91325 !important;
  border-color: #a91325;
}

.menu {
  color: #092c53;
}

:focus-visible {
  outline: 3px solid #3976a6;
  outline-offset: 4px;
}

.hero {
  isolation: isolate;
  background: linear-gradient(118deg, #071c35 8%, #10345a 80%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 48.5%;
  pointer-events: none;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.hero::before {
  width: calc(48.5% + 3px);
  background: #8197af;
}

.hero::after {
  background: linear-gradient(118deg, #e6edf5, #fff 70%);
}

.hero-inner {
  z-index: 1;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.25rem, 5.5vw, 5rem);
}

.hero-message {
  min-width: 0;
}

.hero-brand {
  display: grid;
  place-items: center;
  min-width: 0;
}

.hero-brand img {
  display: block;
  width: min(100%, 32rem);
  height: auto;
}

.cred {
  background: #102b46;
}

/* Keep each division's full artwork, including its original tagline. */
.service {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 5.25rem;
}

.service .service-identity {
  display: grid;
  align-items: center;
  margin: -0.625rem -0.75rem 1.125rem;
  aspect-ratio: 2 / 1;
  border-bottom: 1px solid #e2e9ef;
}

.logo-detail,
.logo-detail img {
  display: block;
  width: 100%;
  height: auto;
}

.logo-detail {
  cursor: zoom-in;
}

.service .service-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.375rem;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: auto;
  padding-top: 1.375rem;
}

.service-actions .service-link {
  align-self: center;
  margin-top: 0;
  padding: 0.625rem 0;
}

.service > p,
.service-offerings dd,
.company-layout p,
.team-experience dd,
.method .step p {
  font-size: 1rem;
  line-height: 1.6;
  color: #465b6c;
}

.service-offerings {
  margin: 0;
}

.service-offerings > div {
  padding-block: 0.875rem;
  border-top: 1px solid #e0e7ed;
}

.service-offerings dt {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.service-offerings dd {
  margin: 0.25rem 0 0;
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.company-layout h2 {
  margin: 0 0 1rem;
}

.company-layout p {
  margin: 0.625rem 0;
}

.company-layout h3 {
  margin: 1.75rem 0 0.8rem;
  color: var(--ink);
  font-size: 1.125rem;
}

.team-experience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
}

.team-experience > div {
  padding-top: 0.75rem;
  border-top: 2px solid #bfd0de;
}

.team-experience dt {
  color: var(--blue);
  font: 800 clamp(2rem, 3vw, 2.65rem)/1.1 Manrope, sans-serif;
}

.team-experience dt span {
  font-size: 1rem;
  font-weight: 600;
}

.team-experience dd {
  margin: 0.4rem 0 0;
}

.presentation-card {
  display: block;
  overflow: hidden;
  border: 1px solid #c2cfda;
  border-radius: var(--radius);
  background: #fff;
}

.presentation-card img {
  display: block;
  width: 100%;
  height: auto;
}

.presentation-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--ink);
  color: #fff;
}

.presentation-caption > span {
  color: #c6d9e8;
  font-size: 0.875rem;
}

.presentation-card:hover strong,
.presentation-card:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.method {
  background: var(--paper);
}

.method .approach {
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}

.method .approach-panel {
  min-height: 0;
}

.method .approach-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  color: #fff;
}

.method .approach-panel p {
  max-width: 38ch;
  margin: 0;
  color: #d2dfe9;
  font-size: 1rem;
}

.method .steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.method .step {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.75rem;
}

@media (max-width: 850px) {
  .company-layout,
  .method .approach {
    grid-template-columns: minmax(0, 1fr);
  }

  .presentation-card {
    width: min(100%, 38rem);
  }

  .nav {
    height: 4.25rem;
  }

  .menu {
    display: block;
    min-width: 2.75rem;
    min-height: 2.75rem;
    cursor: pointer;
  }

  .navlinks {
    position: absolute;
    inset: 4.25rem 0 auto;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
    padding: 1.125rem 1.375rem 1.375rem;
    background: #fff;
    border-bottom: 1px solid #d9e1e9;
  }

  .navlinks.open {
    display: flex;
  }

  .navcta {
    text-align: center;
  }
}

@media (max-width: 760px) {
  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 0;
    min-height: 0;
    padding: 0;
  }

  .hero-message {
    width: min(100% - 2.25rem, 36rem);
    margin-inline: auto;
    padding-block: 3rem 2.5rem;
  }

  .hero-brand {
    grid-row: 1;
    padding: 0.625rem 0 0.75rem;
    background: linear-gradient(118deg, #eaf0f6, #fff 75%);
    border-bottom: 2px solid #b3c1ce;
  }

  .hero-brand img {
    width: min(64vw, 14rem);
  }
}

@media (max-width: 650px) {
  .method .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-row > div:last-child {
    min-width: 0;
  }

  .contact-row a {
    overflow-wrap: anywhere;
  }

  .service .service-identity {
    margin-inline: -0.625rem;
  }
}
