/* One page, one existing editorial image: an opening scene rather than a slideshow. */
body[data-page-hero] > .masthead {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  color: #fff;
  background: linear-gradient(180deg, #031a2bf2, #031a2b75 75%, #031a2b18);
}

body[data-page-hero] > .masthead .primary-nav {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-hero {
  --page-masthead-height: 240px;
  --page-story-inset: 45px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 760px;
  min-height: max(760px, 90svh);
  background: #061e2d;
  color: #fff;
}

.page-hero-scene,
.page-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.page-hero-scene > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--page-image-position, 64% center);
  transform: scale(1.035);
  animation: page-hero-drift 28s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.page-hero[data-page-motion="running"] .page-hero-scene > img {
  animation-play-state: running;
}

.page-hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, #031827f2 0%, #031827d9 26%, #0318279c 54%, #03182738 100%),
    linear-gradient(0deg, #031827ed, transparent 40%, #03182745 100%);
}

.page-hero-layout.container {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding-top: calc(var(--page-masthead-height) + 48px);
  padding-bottom: 48px;
}

.page-hero-story {
  width: min(100%, 910px);
  min-width: 0;
  padding-left: var(--page-story-inset);
}

.page-hero-eyebrow {
  display: block;
  margin-bottom: 23px;
  color: #b9ddf2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-hero-story h1 {
  max-width: 19ch;
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 5.4vw, 82px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.page-hero-story .page-hero-description {
  max-width: 55ch;
  margin-top: 27px;
  color: #d5e7f1;
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.65;
  overflow-wrap: break-word;
}

.page-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 30px;
}

.page-hero-actions .button {
  min-height: 52px;
  border-color: #0078cf;
  background: #0078cf;
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  gap: 25px;
}

.page-hero-actions .button:hover {
  border-color: #006bb7;
  background: #006bb7;
}

.page-hero-actions .text-link {
  color: #fff;
  font-size: 18px;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: #c4dbe8;
  font-size: 14px;
  line-height: 1.5;
}

.page-hero-meta > * {
  color: inherit;
}

.page-hero-bottom.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px 24px;
  margin-top: auto;
  padding: 20px 45px 28px;
  border-top: 1px solid #ffffff24;
}

.page-hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #d5e7f1;
  font-size: 14px;
  line-height: 1.5;
}

.page-hero-scroll > span[aria-hidden] {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ffffff55;
  border-radius: 50%;
}

.page-hero-scroll:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.page-hero-motion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #ffffff55;
  border-radius: 3px;
  background: #061e2d48;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.page-hero-motion[hidden] {
  display: none !important;
}

.page-hero .page-hero-caption {
  flex: 1 1 260px;
  max-width: 48ch;
  margin: 0;
  color: #c4dbe8;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.page-hero-motion:hover:not(:disabled) {
  background: #ffffff16;
}

.page-hero-motion:disabled {
  cursor: default;
  color: #c4dbe8;
}

.page-hero-motion [data-page-motion-icon] {
  display: inline-grid;
  width: 15px;
  place-items: center;
  line-height: 1;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 100%;
  width: 100%;
  margin: 0 0 30px;
  padding: 0 0 0 var(--page-story-inset);
  color: #c4dbe8;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.page-hero-breadcrumb .breadcrumb.container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  align-items: baseline;
  gap: 8px 12px;
}

.page-hero-breadcrumb .breadcrumb > span:not([aria-current]) {
  color: #b5cfdf;
}

.page-hero-breadcrumb a {
  color: #d5e7f1;
  text-decoration: underline;
  text-decoration-color: #ffffff60;
  text-underline-offset: 4px;
}

.page-hero-breadcrumb a:hover {
  color: #fff;
}

.page-hero-breadcrumb [aria-current] {
  color: #fff;
}

.page-content-start {
  scroll-margin-top: 32px;
}

@keyframes page-hero-drift {
  from { transform: scale(1.035) translateX(.25%); }
  to { transform: scale(1.085) translateX(-.55%); }
}

@media (max-width: 1280px) {
  .page-hero { --page-story-inset: 15px; }
  .page-hero-bottom.container { padding-inline: 15px; }
}

@media (max-width: 1000px) {
  .page-hero { --page-story-inset: 0px; min-height: 760px; }
  .page-hero-story h1 { font-size: clamp(43px, 6.5vw, 66px); }
  .page-hero-story .page-hero-description { max-width: 52ch; }
  .page-hero-bottom.container { padding-inline: 0; }
}

@media (max-width: 760px) {
  .page-hero { --page-masthead-height: 255px; min-height: 740px; }
  .page-hero-layout.container { padding-top: calc(var(--page-masthead-height) + 32px); padding-bottom: 37px; }
  .page-hero-story { width: 100%; }
  .page-hero-story h1 { max-width: 100%; font-size: clamp(40px, 7.5vw, 58px); line-height: 1.08; }
  .page-hero-eyebrow { margin-bottom: 19px; font-size: 12px; }
  .page-hero-story .page-hero-description { max-width: 100%; margin-top: 23px; font-size: 20px; }
  .page-hero-actions { margin-top: 25px; gap: 17px 22px; }
  .page-hero-actions .button { padding: 13px 20px; font-size: 17px; gap: 20px; }
  .page-hero-meta { font-size: 13px; }
  .page-hero-breadcrumb { margin-bottom: 24px; font-size: 13px; }
  .page-hero-bottom.container { padding-bottom: 22px; }
  .page-hero .page-hero-caption { order: 3; flex-basis: 100%; max-width: none; text-align: left; }
  .page-hero-shade { background: linear-gradient(90deg, #031827eb, #031827b3 65%, #03182791), linear-gradient(0deg, #031827ed, transparent 60%); }
}

@media (max-width: 430px) {
  .page-hero-story h1 { font-size: 41px; }
  .page-hero-story .page-hero-description { font-size: 19px; }
  .page-hero-actions { align-items: flex-start; flex-direction: column; }
  .page-hero-actions .button { max-width: 100%; }
  .page-hero-bottom.container { gap: 12px; }
  .page-hero-scroll { font-size: 13px; gap: 8px; }
  .page-hero-motion { padding-inline: 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-scene > img { animation: none !important; transform: none !important; }
}

html[data-whml-motion="reduced"] .page-hero-scene > img,
html[data-whml-images="true"] .page-hero-scene > img {
  animation: none !important;
  transform: none !important;
}

html[data-whml-images="true"] .page-hero-scene {
  visibility: hidden;
}
