/* Shared lower-page layout
 * Page-specific sections belong in css/pages/page-{slug}.css.
 */

.site-main--lower {
  /* Page-edge rhythm shared by lower pages. Internal section spacing remains
   * page-owned so supplied 1440px artboards can keep their exact composition. */
  --lower-section-space-start: 80px;
  --lower-section-space-end: 120px;
  --lower-content-max-width: 1224px;
  --lower-content-gutter: 108px;
  background: var(--color-cream);
}

@media (max-width: 1099px) {
  .site-main--lower {
    --lower-content-max-width: 920px;
    --lower-content-gutter: 40px;
  }
}

@media (max-width: 767px) {
  .site-main--lower {
    --lower-section-space-start: 64px;
    --lower-section-space-end: 96px;
    --lower-content-gutter: 24px;
  }
}

.c-image-placeholder {
  position: relative;
  overflow: hidden;
  background: #c4c8d1;
}

.c-image-placeholder > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-lower-section-heading {
  display: flex;
  align-items: baseline;
  margin: 0;
}

.c-lower-section-heading__label {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--color-blue);
  font-family: var(--font-latin);
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
}

.c-lower-section-heading__label-text { display: inline-block; }

.c-lower-section-heading__label::after {
  width: 24px;
  height: 1px;
  margin: 0 8px;
  background: var(--color-line);
  content: "";
}

.c-lower-section-heading__title {
  min-width: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 35px;
}

.c-lower-section-heading--split-title .c-lower-section-heading__title {
  display: inline-flex;
  height: 35px;
  align-items: baseline;
  font-size: 20px;
  font-weight: 500;
  line-height: 35px;
  letter-spacing: normal;
  white-space: nowrap;
}

.c-lower-section-heading--split-title .c-lower-section-heading__title-prefix {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .1em;
}

.c-lower-section-heading--split-title .c-lower-section-heading__title-emphasis {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: normal;
}

.c-lower-section-heading--light .c-lower-section-heading__label,
.c-lower-section-heading--light .c-lower-section-heading__title {
  color: #fff;
}

.c-lower-section-heading--light .c-lower-section-heading__label::after {
  background: rgba(255, 255, 255, .45);
}

/* Share the site's standard reveal pace; no JS must leave content readable. */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

html.has-lower-motion [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: none;
}

html.has-lower-motion [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .8s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html.has-lower-motion [data-reveal],
  html.has-lower-motion [data-reveal].is-visible { opacity: 1; transform: none; transition: none; }
}

.site-header--refactor,
.site-footer--lower {
  overflow-x: clip;
}

/*
 * Lower-page footer artwork includes a white lead-in before the blue footer
 * field. Reserve the visually matched 70px in normal flow so PAGE TOP stays
 * readable without covering the preceding JOIN artwork at any viewport width.
 */
.site-footer--lower {
  --lower-footer-page-top-band: 70px;
  isolation: isolate;
  margin-top: var(--lower-footer-page-top-band);
}

.site-footer--lower::before {
  position: absolute;
  z-index: 0;
  right: 0;
  left: 0;
  top: calc(-1 * var(--lower-footer-page-top-band));
  height: var(--lower-footer-page-top-band);
  background: #fff;
  content: "";
  pointer-events: none;
}

.site-footer--lower .site-footer__stage,
.site-footer--lower .site-footer__page-top {
  z-index: 1;
}

@media (min-width: 1440px) {
  .site-header--refactor .site-header__stage {
    left: 0;
    width: 100%;
  }
}

/* Lower-page shell keeps controls and type at their native size on compact
 * desktop widths. The layout reflows inside the viewport instead of scaling
 * the 1440px header/footer artboard as one component. */
@media (min-width: 1100px) and (max-width: 1439px) {
  .site-header--refactor {
    height: 64px;
  }

  .site-header--refactor .site-header__stage {
    position: fixed;
    left: auto;
    width: 100%;
    height: 64px;
    transform: none;
  }

  .site-header--refactor .site-header__controls {
    position: absolute;
    top: 16px;
    right: 24px;
    display: flex;
    gap: 8px;
  }

  .site-header--refactor .site-header__menu-button {
    position: relative;
    inset: auto;
  }

  .site-header--refactor .site-header__entries {
    right: 82px;
    left: auto;
  }

  .site-header--refactor .site-header__menu {
    width: 100%;
  }

}

/* The footer artwork and responsive behavior are the same as the completed
 * TOP footer. Keep these lower-page rules numerically identical without
 * changing the protected TOP stylesheet. */
@media (min-width: 768px) {
  .site-footer--lower {
    height: auto;
    min-height: 501px;
    overflow: visible;
    clip-path: none;
  }

  .site-footer--lower .site-footer__stage {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    grid-template-columns: 288px 1fr;
    align-content: start;
    width: min(100%, 1440px);
    height: auto;
    min-height: 501px;
    gap: 40px 24px;
    margin-inline: auto;
    padding: 64px 108px 70px;
    transform: none;
  }

  .site-footer--lower .site-footer__page-top { left: 50%; transform: translateX(-50%); }
  .site-footer--lower .site-footer__logo { position: relative; top: 9px; left: auto; grid-column: 1; }
  .site-footer--lower .site-footer__entry-links { position: relative; top: auto; left: auto; grid-column: 2; grid-template-columns: 320px 320px 256px; }
  .site-footer--lower .site-footer__navigation { position: relative; top: auto; left: auto; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer--lower .site-footer__legal { right: 24px; bottom: 0; left: 24px; width: auto; }
}

@media (min-width: 1100px) {
  .site-footer--lower .site-footer__logo {
    top: 27px;
    width: 240px;
    height: auto;
  }
}

@media (min-width: 1100px) and (max-width: 1439px) {
  .site-footer--lower .site-footer__stage {
    --footer-compact-gutter: clamp(48px, 6.5vw, 92px);
    grid-template-columns: 214px minmax(0, 1fr);
    padding-inline: var(--footer-compact-gutter);
  }

  .site-footer--lower .site-footer__entry-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) and (max-width: 1299px) {
  .site-footer--lower .site-footer__stage {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 118px;
  }

  .site-footer--lower .site-footer__logo,
  .site-footer--lower .site-footer__entry-links,
  .site-footer--lower .site-footer__navigation { grid-column: 1; }

  .site-footer--lower .site-footer__logo { top: 0; }
  .site-footer--lower .site-footer__navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
}

@media (min-width: 1440px) and (max-width: 1455px) {
  .site-footer--lower .site-footer__stage {
    width: min(100%, var(--front-design-width));
    max-width: var(--front-design-width);
    margin-inline: auto;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .site-footer--lower .site-footer__stage {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 0;
    padding: 72px 40px 0;
  }

  .site-footer--lower .site-footer__logo,
  .site-footer--lower .site-footer__entry-links,
  .site-footer--lower .site-footer__navigation { grid-column: auto; }

  .site-footer--lower .site-footer__logo {
    position: static;
    top: auto;
    align-self: flex-start;
  }

  .site-footer--lower .site-footer__entry-links {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 48px;
  }

  .site-footer--lower .site-footer__entry-links a { padding: 0 12px 0 16px; }

  .site-footer--lower .site-footer__navigation {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 40px 24px;
    margin-top: 64px;
  }

  .site-footer--lower .site-footer__legal {
    position: static;
    width: 100%;
    margin-top: 64px;
  }
}

.lower-hero {
  position: relative;
  height: var(--lower-hero-height, 422px);
  overflow: hidden;
  background: var(--color-cream);
}

.lower-hero::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--color-line);
  content: "";
  pointer-events: none;
}

.lower-hero--simple-multiline { --lower-hero-height: 482px; }
.lower-hero--navigation { --lower-hero-height: 464px; }
.lower-hero--media { --lower-hero-height: 560px; }
.lower-hero--media-navigation { --lower-hero-height: 608px; }

.lower-hero__curve {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  max-width: none;
  fill: var(--color-blue);
  transform: translateY(-22.222222%);
}

/* Keep the supplied XD curve intact while giving its shallow edge a stable
 * one-device-pixel contour in browsers. The stroke is non-scaling so the
 * finish stays consistent across the desktop, tablet and phone crops. */
.lower-hero__curve path {
  stroke: var(--color-blue);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

/* The supplied lower-page FV curve is a 1440x360 decoration. Above the
 * reference artboard, keep its vertical geometry at the approved 360px and
 * extend only horizontally so the curve cannot descend into the fixed-size
 * title block. This scales the decoration only, never the FV layout/content. */
@media (min-width: 1456px) {
  .lower-hero__curve {
    height: 360px;
    aspect-ratio: auto;
    transform: translateY(-80px);
  }
}

.lower-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: min(var(--lower-content-max-width), calc(100% - (var(--lower-content-gutter) * 2)));
  height: 100%;
  margin: 0 auto;
  column-gap: var(--front-grid-gap);
}

.lower-hero__heading {
  position: absolute;
  top: 255px;
  left: 0;
  width: min(600px, 49.019608%);
}

.lower-hero__label,
.c-related-links__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--color-blue);
  font-family: var(--font-latin);
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.05em;
}

.lower-hero__label span,
.c-related-links__eyebrow span {
  color: var(--color-line);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
}

.lower-hero__title {
  margin-top: 15px;
  font-size: 40px;
  font-weight: 500;
  line-height: 60px;
  letter-spacing: 0.05em;
}

.lower-hero__title span { display: block; }

.lower-hero__media {
  position: absolute;
  top: 96px;
  right: 0;
  overflow: hidden;
  width: min(600px, 49.019608%);
  height: 400px;
  border-radius: 16px;
  background: var(--color-line);
}

.lower-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lower-hero__navigation {
  position: absolute;
  right: 0;
  bottom: 40px;
  display: flex;
  min-height: 32px;
  align-items: center;
  color: var(--color-blue);
  white-space: nowrap;
}

.lower-hero--navigation .lower-hero__navigation { bottom: 50px; }

.lower-hero__navigation a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 32px;
}

.lower-hero__navigation a::before {
  position: absolute;
  inset: -6px 0;
  content: "";
}

.lower-hero__navigation a + a {
  margin-left: 32px;
  padding-left: 31px;
  border-left: 1px dashed var(--color-line);
}

.lower-hero__navigation-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  transition: background-color 0.25s ease, transform 0.35s ease-in;
}

.lower-hero__navigation-arrow .c-arrow-icon {
  transform: rotate(90deg);
}

@keyframes lower-hero-arrow-spin-clockwise {
  from { transform: rotate(90deg); }
  to { transform: rotate(450deg); }
}

.lower-hero__accent-line {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  width: 288px;
  height: 1px;
  background: var(--color-blue);
}

@media (min-width: 1100px) and (max-width: 1439px) {
  .lower-hero__media {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .lower-hero__navigation a { gap: 16px; }

  .lower-hero__navigation a + a {
    margin-left: 20px;
    padding-left: 19px;
  }
}

@media (min-width: 1100px) and (max-width: 1179px) {
  .lower-hero__title {
    font-size: 38px;
    line-height: 56px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .lower-hero__navigation a:hover .lower-hero__navigation-arrow {
    background: var(--color-blue-hover);
    transform: scale(1.05);
  }

  .lower-hero__navigation a:hover .c-arrow-icon {
    animation: lower-hero-arrow-spin-clockwise var(--motion-arrow-duration) var(--motion-arrow-easing);
  }
}

.lower-hero__navigation a:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--color-blue);
  outline-offset: 4px;
}

.lower-hero__navigation a:focus-visible .lower-hero__navigation-arrow {
  background: var(--color-blue-hover);
  transform: scale(1.05);
}

.lower-hero__navigation a:focus-visible .c-arrow-icon {
  animation: lower-hero-arrow-spin-clockwise var(--motion-arrow-duration) var(--motion-arrow-easing);
}

.lower-page__article {
  width: min(1224px, calc(100% - (var(--lower-content-gutter) * 2)));
  min-height: 320px;
  margin: 0 auto;
  padding: var(--lower-section-space-start) 0 var(--lower-section-space-end);
}

.lower-page__content > :first-child { margin-top: 0; }
.lower-page__content > :last-child { margin-bottom: 0; }

.c-related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fff;
}

.c-related-links__item {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 355px;
  flex-direction: column;
  overflow: hidden;
  padding: 75px clamp(64px, calc((100vw - 1224px) / 2), 108px);
}

.c-related-links__item::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--color-pale-blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 450ms cubic-bezier(.22, 1, .36, 1);
}

.c-related-links__item + .c-related-links__item::before {
  position: absolute;
  top: 82px;
  left: 0;
  width: 1px;
  height: 191px;
  background: #ededed;
  content: "";
}

.c-related-links__item strong {
  display: block;
  margin-top: 9px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.c-related-links__item i {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
}

.c-related-links__item i {
  position: absolute;
  right: 64px;
  bottom: 89px;
  width: 60px;
  height: 60px;
  background: var(--color-blue);
  color: #fff;
  transition: background-color 0.25s ease, transform 0.35s ease-in;
}

.c-related-links__item i .c-arrow-icon {
  width: 20px;
  height: 12px;
}

.c-related-links__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-line);
  font-family: var(--font-latin);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.7;
}

.c-related-links__eyebrow b {
  color: var(--color-blue);
  font-size: 12px;
}

.c-related-links__eyebrow span { line-height: inherit; }

.lower-breadcrumbs {
  min-height: 52px;
  padding: 14px 0;
  background: var(--color-blue);
  color: #fff;
  font-size: 14px;
  line-height: 24px;
}

.lower-breadcrumbs ol {
  display: flex;
  width: min(calc(100% - 216px), 1224px);
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin: 0 auto;
  gap: 8px;
}

.lower-breadcrumbs li { display: flex; min-width: 0; align-items: center; }
.lower-breadcrumbs li:first-child { flex: 0 0 auto; }
.lower-breadcrumbs li:last-child { flex: 0 1 auto; }
.lower-breadcrumbs li:last-child > :where(a, span) { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lower-breadcrumbs li + li::before {
  flex: 0 0 auto;
  margin-right: 8px;
  content: "｜";
}

@media (min-width: 1440px) and (max-width: 1455px) {
  .lower-breadcrumbs ol { width: 1224px; margin-right: 0; margin-left: 108px; }
}

@media (max-width: 1199px) {
  .lower-breadcrumbs ol { width: min(calc(100% - 80px), 920px); }
}

.lower-breadcrumbs a:focus-visible,
.c-related-links__item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.c-related-links__item:focus-visible::after { transform: scaleX(1); }
.c-related-links__item:focus-visible i { background: var(--color-blue-hover); transform: scale(1.133333); }
.c-related-links__item:focus-visible .c-arrow-icon { animation: arrow-spin-clockwise var(--motion-arrow-duration) var(--motion-arrow-easing); }

@media (hover: hover) and (pointer: fine) {
  .c-related-links__item:hover::after { transform: scaleX(1); }
  .c-related-links__item:hover i { background: var(--color-blue-hover); transform: scale(1.133333); }
  .c-related-links__item:hover .c-arrow-icon { animation: arrow-spin-clockwise var(--motion-arrow-duration) var(--motion-arrow-easing); }

}

@media (max-width: 1099px) {
  .lower-hero {
    height: auto;
    min-height: 0;
  }

  /* Lift the stacked tablet FV curve and its flow content together by 24px. */
  .lower-hero__curve {
    top: 0;
    left: 50%;
    width: max(100%, 960px);
    height: 240px;
    transform: translate(-50%, -30%);
  }

  .lower-hero__inner {
    display: block;
    height: auto;
    padding: 200px 0 72px;
  }

  .lower-hero__heading,
  .lower-hero__media,
  .lower-hero__navigation {
    position: relative;
    inset: auto;
  }

  .lower-hero__heading {
    top: auto;
    left: auto;
    width: min(600px, 100%);
  }

  .lower-hero__media {
    right: auto;
    width: min(600px, 100%);
    height: auto;
    margin: 40px 0 0 auto;
    aspect-ratio: 3 / 2;
  }

  .lower-hero__navigation,
  .lower-hero--navigation .lower-hero__navigation {
    right: auto;
    bottom: auto;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
    white-space: normal;
  }

  .lower-hero__navigation a {
    min-height: 64px;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 16px;
    line-height: 1.5;
  }

  .lower-hero__navigation a::before { inset: 0; }

  .lower-hero__navigation a + a {
    margin-left: 0;
    padding-left: 16px;
    border-left: 1px dashed var(--color-line);
  }

  .lower-hero__navigation a:nth-child(n + 3) {
    border-top: 1px dashed var(--color-line);
  }

  .lower-hero__navigation a:nth-child(odd) { border-left: 0; }

  .lower-hero__accent-line { width: min(288px, 40%); }

  .c-related-links__item { min-height: 300px; padding: 88px 40px; }
  .c-related-links__item i { right: 40px; bottom: 48px; }
}

@media (min-width: 768px) and (max-width: 1099px) {
  /* Own the tablet grid's vertical divider at the navigation level so every
     row shares the exact same x-coordinate instead of adjoining cell borders. */
  .lower-hero__navigation::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0;
    border-left: 1px dashed var(--color-line);
    content: "";
    pointer-events: none;
  }

  .lower-hero__navigation a + a { border-left: 0; }

  /* Complete the empty half-cell edge in a three-item menu. */
  .lower-hero__navigation a:first-child:nth-last-child(3) + a::after {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 0;
    border-top: 1px dashed var(--color-line);
    content: "";
    pointer-events: none;
  }

  .lower-hero__inner {
    padding: 192px 0 64px;
  }

  .lower-hero__heading,
  .lower-hero__media,
  .lower-hero__navigation,
  .lower-hero--navigation .lower-hero__navigation {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .lower-hero__title {
    margin-top: 12px;
    font-size: 36px;
    line-height: 1.5;
  }

  .lower-hero__media { margin-top: 36px; }

  .lower-hero__navigation,
  .lower-hero--navigation .lower-hero__navigation { margin-top: 32px; }

}

@media (max-width: 767px) {
  .c-lower-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .c-lower-section-heading__label::after { display: none; }
  .c-lower-section-heading__title { width: 100%; }
  .c-lower-section-heading--split-title .c-lower-section-heading__title { display: block; height: auto; line-height: 1.5; white-space: normal; }
  .c-lower-section-heading--split-title .c-lower-section-heading__title-prefix,
  .c-lower-section-heading--split-title .c-lower-section-heading__title-emphasis { display: inline-block; white-space: nowrap; }

  /* Lift the phone curve further while keeping the compacted content position. */
  .lower-hero__curve {
    top: 0;
    width: 720px;
    height: 180px;
    transform: translate(-50%, -30%);
  }

  .lower-hero__inner {
    width: calc(100% - 48px);
    padding: 148px 0 56px;
  }

  .lower-hero__label { width: 100%; }

  .lower-hero__title {
    margin-top: 12px;
    font-size: 32px;
    line-break: strict;
    line-height: 1.5;
  }

  .lower-hero__title-break { display: none; }

  .lower-hero__media { margin-top: 32px; }

  .lower-hero__navigation,
  .lower-hero--navigation .lower-hero__navigation {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .lower-hero__navigation a,
  .lower-hero__navigation a + a {
    min-height: 56px;
    padding: 8px 0;
    border-top: 1px dashed var(--color-line);
    border-left: 0;
  }

  .lower-hero__navigation a:first-child { border-top: 0; }

  .lower-hero__accent-line { width: 96px; }

  .lower-page__article { width: calc(100% - 48px); }
  .c-related-links { grid-template-columns: 1fr; }
  .c-related-links__item { min-height: 277px; padding: 76px 24px; }
  .c-related-links__item + .c-related-links__item { min-height: 270px; padding-top: 36px; padding-bottom: 36px; }
  .c-related-links__item + .c-related-links__item::before { top: 0; left: 24px; width: calc(100% - 48px); height: 1px; }
  .c-related-links__item strong { font-size: 20px; }
  .c-related-links .front-recruit__pc-break { display: none; }
  .c-related-links__item i { right: 24px; bottom: 40px; }
  .c-related-links__item + .c-related-links__item i { bottom: 73px; }

  .lower-breadcrumbs ol { width: calc(100% - 48px); }
}
