.about-hero,
.about-hero * {
  box-sizing: border-box;
}

body.page-template-about .content-block--injected[data-injected="about-hero"] {
  margin-top: -20px;
}

.sample-parent-page .content-block--injected[data-injected="about-hero"] {
  margin-top: -20px;
}

@media (max-width: 900px) {
  body.page-template-about .content-block--injected[data-injected="about-hero"] {
    margin-top: -30px;
  }

  .sample-parent-page .content-block--injected[data-injected="about-hero"] {
    margin-top: -30px;
  }
}

@media (max-width: 640px) {
  body.page-template-about .content-block--injected[data-injected="about-hero"] {
    margin-top: -30px;
  }

  .sample-parent-page .content-block--injected[data-injected="about-hero"] {
    margin-top: -30px;
  }
}

.about-hero {
  --about-hero-radius-bottom: 250px;
  --about-hero-curve-border-width: 30px;
  --about-hero-video-width: 1728px;
  margin-top: 0;
  position: relative;
  min-height: 787px;
  z-index: 0;
  isolation: isolate;
  border-radius: 0 0 var(--about-hero-radius-bottom) var(--about-hero-radius-bottom);
  overflow: hidden;
  clip-path: inset(0 round 0 0 var(--about-hero-radius-bottom) var(--about-hero-radius-bottom));
  contain: paint;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  border-bottom: var(--about-hero-curve-border-width) solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.about-hero__video-wrap {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: -8px;
  width: max(var(--about-hero-video-width), 100vw);
  height: 972px;
  margin-left: calc(max(var(--about-hero-video-width), 100vw) / -2);
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  clip-path: inset(0 round 0 0 var(--about-hero-radius-bottom) var(--about-hero-radius-bottom));
}

.about-hero__video,
.about-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.about-hero__video::-webkit-media-controls,
.about-hero__video::-webkit-media-controls-enclosure,
.about-hero__video::-webkit-media-controls-panel,
.about-hero__video::-webkit-media-controls-overlay-play-button,
.about-hero__video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.about-hero__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 8, 61, 0.55);
  border-radius: inherit;
}

.about-hero__container {
  position: relative;
  z-index: 3;
  width: min(1290px, calc(100% - 40px));
  min-height: 787px;
  margin-inline: auto;
}

.about-hero__content {
  position: absolute;
  left: 0;
  bottom: 96px;
  width: min(740px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-hero__breadcrumbs {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  width: fit-content;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}

.about-hero__crumb-home {
  color: #ffffff;
  text-decoration: none;
}

.about-hero__crumb-home:hover,
.about-hero__crumb-home:focus-visible {
  color: #dde5ec;
}

.about-hero__crumb-sep {
  width: 12px;
  height: 12px;
  display: inline-flex;
  color: #ffffff;
}

.about-hero__crumb-current {
  color: #dde5ec;
}

.about-hero__title {
  margin: 0;
  width: min(740px, 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(58px, 7.2vw, 95px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.about-hero--location-office .about-hero__title {
  width: min(640px, 100%);
  max-width: 640px;
  text-wrap: balance;
  line-height: 0.98;
}

.about-hero--location-office .about-hero__dash-group {
  white-space: nowrap;
}

.about-hero__nowrap {
  white-space: nowrap;
}

@media (max-width: 1140px) {
  .about-hero {
    --about-hero-radius-bottom: 180px;
    --about-hero-video-width: 1520px;
    min-height: 700px;
  }

  .about-hero__container {
    min-height: 700px;
  }

  .about-hero__video-wrap {
    height: 860px;
  }

  .about-hero__content {
    bottom: 80px;
  }
}

@media (max-width: 900px) {
  .about-hero {
    --about-hero-radius-bottom: 110px;
    --about-hero-curve-border-width: 20px;
    --about-hero-video-width: 1320px;
    min-height: 560px;
  }

  .about-hero__container {
    min-height: 560px;
  }

  .about-hero__video-wrap {
    height: 660px;
    top: 0;
  }

  .about-hero__content {
    bottom: 60px;
    gap: 16px;
  }

  .about-hero:not(.about-hero--location-office) .about-hero__content {
    bottom: 84px;
  }

  .about-hero__title {
    font-size: clamp(42px, 10.6vw, 66px);
  }

  .about-hero--location-office .about-hero__title {
    width: min(560px, 100%);
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .about-hero {
    min-height: 500px;
  }

  .about-hero__container {
    width: min(100% - 28px, 1290px);
    min-height: 500px;
  }

  .about-hero__content {
    bottom: 48px;
  }

  .about-hero:not(.about-hero--location-office) .about-hero__content {
    bottom: 72px;
  }

  .about-hero__title {
    font-size: clamp(34px, 9.6vw, 46px);
    line-height: 1.04;
  }

  .about-hero--location-office .about-hero__title {
    width: 100%;
    max-width: 100%;
    line-height: 1.05;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }
}

/* Pre-hide hero text on About page so deferred JS can animate it in without a flash */
body.page-template-about .about-hero__breadcrumbs,
body.page-template-about .about-hero__title {
  opacity: 0;
}
