/* Shared lower-page frame. Lower pages show the ambient layer from first paint. */
html:not([data-page="home"]) {
  --canvas-progress: 1;
}

/* Lower-page section and footer gaps stay independent of the top page. */
body:not(.page-home) .section + .section,
body:not(.page-home) .site-footer {
  margin-top: 30px;
}

body:not(.page-home) .site-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  min-height: 120px;
  padding: 36px 40px;
  background: url("../images/common/header-gradient.svg") center / 100% 100%,
    url("../images/common/header-base.svg") center / 100% 100%;
  color: #000;
}

body:not(.page-home) .site-header::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: url("../images/common/strengths-noise.webp") 0 0 / 1280px;
  opacity: .4;
  pointer-events: none;
}

body:not(.page-home) .site-header .brand {
  filter: brightness(0);
}

body:not(.page-home) .header-action-button__border-line {
  stroke: rgb(0 0 0 / .5);
}

body:not(.page-home) .header-actions__recruit {
  background: #000;
  color: #fff;
}

body:not(.page-home) .global-nav > a::after,
body:not(.page-home) .global-nav .header-dropdown__trigger::after {
  background: rgb(0 0 0 / .45);
}

.page-hero {
  position: relative;
  isolation: isolate;
  min-height: 400px;
  background: url("../images/common/lower-kv.svg") center / 100% 100% no-repeat;
  color: #fff;
}

.page-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: url("../images/common/hero-texture.webp") center / cover;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.page-hero__inner {
  width: min(1160px, calc(100% - 120px));
  margin-inline: auto;
  display: flow-root;
  padding-block: 0 80px;
}

.breadcrumbs {
  padding: 28px 60px 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 20px;
}

.breadcrumbs li + li::before {
  content: ">";
  margin-right: 5px;
}

.page-hero__heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 72px;
}

.page-hero h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.5;
}

.page-hero__english {
  margin: 0;
  font-family: var(--serif-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-hero__lead {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
}

.content-width {
  width: min(1060px, calc(100% - 120px));
  margin-inline: auto;
}

.lower-section-width {
  width: min(1160px, calc(100% - 120px));
  margin-inline: auto;
}

.lower-heading {
  position: relative;
  min-height: 70px;
  padding-left: 21px;
}

.lower-heading::before {
  position: absolute;
  top: -5px;
  bottom: -20px;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(#0008, #00000006 85%);
}

.lower-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.6;
  text-box: trim-both cap alphabetic;
}

.lower-heading p {
  margin: 30px 0 0;
  font-family: var(--serif-en);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-box: trim-both cap alphabetic;
}

.related-links {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 90px 20px;
}

.related-links .pill-link {
  max-width: 100%;
}

@media (min-width: 768px) and (max-width: 900px) {
  body:not(.page-home) .site-header {
    padding-inline: 20px;
  }
}

@media (max-width: 767px) {
  body:not(.page-home) .site-header {
    min-height: 72px;
    padding: 17px 20px;
  }

  body:not(.page-home) .site-header .brand__mark {
    width: 38px;
    height: 30px;
  }

  body:not(.page-home) .menu-button span {
    background: #000;
  }

  .page-hero {
    min-height: 320px;
  }

  .page-hero__inner {
    width: calc(100% - 40px);
    padding-block: 54px 70px;
  }

  .breadcrumbs {
    display: none;
  }

  .page-hero__heading {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 8px;
    margin: 0;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .page-hero__english {
    font-size: 11px;
    line-height: 20px;
  }

  .page-hero__lead {
    margin-top: 20px;
    font-size: 14px;
  }

  .content-width {
    width: calc(100% - 40px);
  }

  .lower-section-width {
    width: calc(100% - 40px);
  }

  .lower-heading {
    min-height: 76px;
    padding: 5px 0 0 16px;
  }

  .lower-heading::before {
    top: 0;
    bottom: 0;
  }

  .lower-heading h2 {
    font-size: 24px;
    line-height: 1.5;
  }

  .lower-heading p {
    margin-top: 25px;
    font-size: 11px;
  }

  .related-links {
    align-items: center;
    flex-direction: column;
    gap: 15px;
    padding-block: 60px;
  }

  body:not(.page-home) .pill-link.pill-link--outline {
    width: min(270px, 100%);
    height: 54px;
    font-size: 14px;
  }

}

/* Related pages: pill buttons on desktop and mobile. */


.page-links {
  padding-block: 90px;
}

.page-links__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
}

.page-links__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border: 1px solid #00234d;
  border-radius: 100px;
  background: #ffffff1a;
  padding: 10px 42px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-box: trim-both cap alphabetic;
  color: var(--navy);
  transition: color .42s cubic-bezier(.22, 1, .36, 1);
}

.page-links__link img {
  position: absolute;
  right: 25px;
  flex: 0 0 15px;
  transition: filter .42s cubic-bezier(.22, 1, .36, 1);
}

.page-links__link:focus-visible {
  color: var(--navy);
}

.page-links__link:focus-visible img {
  filter: invert(15%) sepia(61%) saturate(1594%) hue-rotate(179deg) brightness(91%) contrast(105%);
}

@media (hover: hover) {
  .page-links__link {
    isolation: isolate;
    overflow: hidden;
    transition: border-color .36s ease, color .42s ease;
  }

  .page-links__link::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #375372 0%, #b43737 88%);
    content: "";
    opacity: 0;
    transition: opacity .52s cubic-bezier(.22, 1, .36, 1);
  }

  .page-links__link > span,
  .page-links__link > img {
    z-index: 1;
  }

  .page-links__link:hover {
    border-color: rgba(255, 255, 255, .1);
    color: #fff;
  }

  .page-links__link:hover::before {
    opacity: 1;
  }

  .page-links__link:hover img {
    filter: brightness(0) invert(1);
  }

  .page-links__link:hover img {
    filter: brightness(0) invert(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-links__link,
  .page-links__link img,
  .page-links__link::before {
    transition: none;
  }
}

@media (max-width: 767px) {

  .page-links {
    padding-block: 60px;
  }

  .page-links__inner {
    grid-template-columns: minmax(0, 270px);
    justify-content: center;
    gap: 15px;
  }

  .page-links__link {
    min-height: 54px;
    border: 0;
    background: #fff;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .page-links__link::before {
    content: none;
  }
}
