.career-hero {
  --career-hero-image-x: 50%;
  --career-hero-image-y: 50%;
  --career-hero-mobile-image-x: 50%;
  --career-hero-mobile-image-y: 50%;

  position: relative;
  min-height: 45rem;
  overflow: hidden;
  background-color: var(--color-brand-primary-darkened);
  color: var(--color-text-on-dark);
  isolation: isolate;
}

@supports (height: 100svh) {
  .career-hero {
    min-height: max(45rem, 100svh);
  }
}

@media (min-width: 600px) {
  .career-hero {
    min-height: 48rem;
  }
}

@media (min-width: 900px) {
  .career-hero {
    min-height: 48rem;
  }
}

@supports (height: 100svh) {
  @media (min-width: 900px) {
    .career-hero {
      min-height: clamp(48rem, 100svh, 82rem);
    }
  }
}

.career-hero--image-left {
  --career-hero-image-x: 25%;
}

.career-hero--image-center {
  --career-hero-image-x: 50%;
}

.career-hero--image-right {
  --career-hero-image-x: 75%;
}

.career-hero--image-y-top {
  --career-hero-image-y: 0%;
}

.career-hero--image-y-center {
  --career-hero-image-y: 50%;
}

.career-hero--image-y-bottom {
  --career-hero-image-y: 100%;
}

.career-hero--image-mobile-left {
  --career-hero-mobile-image-x: 25%;
}

.career-hero--image-mobile-center {
  --career-hero-mobile-image-x: 50%;
}

.career-hero--image-mobile-right {
  --career-hero-mobile-image-x: 75%;
}

.career-hero--image-mobile-y-top {
  --career-hero-mobile-image-y: 0%;
}

.career-hero--image-mobile-y-center {
  --career-hero-mobile-image-y: 50%;
}

.career-hero--image-mobile-y-bottom {
  --career-hero-mobile-image-y: 100%;
}

.career-hero__media,
.career-hero__scrim {
  position: absolute;
  inset: 0;
}

.career-hero__media {
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--color-brand-primary-darkened);
}

.career-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--career-hero-mobile-image-x) var(--career-hero-mobile-image-y);
}

@media (min-width: 600px) {
  .career-hero__image {
    object-position: var(--career-hero-image-x) var(--career-hero-image-y);
  }
}

.career-hero__scrim {
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(3 8 54 / 70%) 0%, rgb(3 8 54 / 28%) 46%, rgb(3 8 42 / 78%) 100%),
    linear-gradient(90deg, rgb(3 8 54 / 48%) 0%, transparent 84%);
  pointer-events: none;
}

@media (min-width: 600px) {
  .career-hero__scrim {
    background:
      linear-gradient(180deg, rgb(3 8 42 / 16%) 0%, rgb(3 8 42 / 5%) 56%, rgb(3 8 42 / 72%) 100%),
      linear-gradient(90deg, rgb(3 8 54 / 78%) 0%, rgb(3 8 54 / 52%) 34%, rgb(3 8 54 / 8%) 72%, transparent 100%);
  }
}

@media (min-width: 900px) {
  .career-hero__scrim {
    background: linear-gradient(90deg, rgb(3 8 54 / 8%) 0%, transparent 48%);
  }
}

.career-hero.is-missing-image {
  background:
    radial-gradient(circle at 76% 72%, rgb(0 183 189 / 46%), transparent 34%),
    linear-gradient(135deg, var(--color-brand-primary-darkened), var(--color-brand-primary));
}

.career-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 144rem);
  min-height: inherit;
  flex-direction: column;
  padding: 7.75rem 1.25rem 1.5rem;
  margin-inline: auto;
}

@media (min-width: 600px) {
  .career-hero__inner {
    padding: 10rem clamp(2rem, 5vw, 4rem) 2.5rem;
  }
}

@media (min-width: 900px) {
  .career-hero__inner {
    padding:
      clamp(16rem, 34.6svh, 28.5rem)
      clamp(3rem, calc(5.56vw + 1.25rem), 9.25rem)
      clamp(2.5rem, 4vw, 4.5rem);
  }
}

.career-hero__content {
  width: min(100%, 39rem);
  text-shadow: 0 0.125rem 1.25rem rgb(0 0 0 / 36%);
}

@media (min-width: 900px) {
  .career-hero__content {
    width: min(100%, 86rem);
    text-shadow: none;
  }
}

.career-hero__eyebrow {
  margin: 0 0 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.25;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .career-hero__eyebrow {
    margin-bottom: 1.125rem;
    font-size: 1rem;
  }
}

.career-hero__title {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.75rem, 12vw, 3.75rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

@media (min-width: 600px) {
  .career-hero__title {
    font-size: clamp(3.75rem, 7vw, 5rem);
  }
}

@media (min-width: 900px) {
  .career-hero__title {
    max-width: none;
    font-size: clamp(4.5rem, 6.95vw, 7.5rem);
  }
}

.career-hero__body {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .career-hero__body {
    max-width: 42rem;
    margin-top: 1.5rem;
    font-size: clamp(1.125rem, 1.273vw, 1.375rem);
    line-height: 1.36;
  }
}

.career-hero__actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .career-hero__actions {
    margin-top: 1.75rem;
  }
}

@media (min-width: 900px) {
  .career-hero__actions {
    margin-top: 2.5rem;
    gap: 1rem;
  }
}

.career-hero__cta {
  width: 100%;
  min-width: min(100%, 12.5rem);
}

@media (min-width: 600px) {
  .career-hero__cta {
    width: auto;
  }
}

@media (min-width: 900px) {
  .career-hero__cta {
    min-width: 13.5rem;
  }
}

.career-hero__cta:focus-visible {
  outline-color: var(--color-focus-ring);
  outline-offset: 3px;
}

.career-hero__stats {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  border-block: 1px solid rgb(255 255 255 / 36%);
  margin: auto 0 0;
  background-color: rgb(4 11 54 / 13%);
  -webkit-backdrop-filter: blur(8px) saturate(112%);
  backdrop-filter: blur(8px) saturate(112%);
}

.career-hero--stats-1 .career-hero__stats {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .career-hero__stats {
    grid-template-columns: repeat(var(--career-hero-stat-columns), minmax(0, 1fr));
    margin-top: auto;
  }
}

@media (min-width: 1200px) {
  .career-hero__stats {
    width: min(42.5vw, 52rem);
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.75fr);
    align-self: flex-start;
    padding: 0;
    border: 0;
    border-top: 1px dashed rgb(255 255 255 / 66%);
    margin-top: 3.625rem;
    background-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.career-hero__stat {
  display: flex;
  min-width: 0;
  min-height: 5.75rem;
  flex-direction: column;
  justify-content: center;
  padding: 0.875rem;
  text-align: center;
  text-shadow: 0 0.125rem 0.875rem rgb(0 0 0 / 44%);
}

@media (min-width: 600px) {
  .career-hero__stat {
    min-height: 6.5rem;
    padding: 1rem clamp(0.75rem, 2vw, 2rem);
  }
}

@media (min-width: 1200px) {
  .career-hero__stat {
    min-height: 7.75rem;
    align-items: flex-start;
    padding: 1.25rem 0 0;
    text-align: left;
    text-shadow: none;
  }
}

.career-hero__stat:nth-child(even) {
  border-left: 1px solid rgb(255 255 255 / 28%);
}

@media (min-width: 600px) {
  .career-hero__stat:nth-child(even) {
    border-left: 0;
  }
}

.career-hero__stat:nth-child(n + 3) {
  border-top: 1px solid rgb(255 255 255 / 28%);
}

.career-hero__stat:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (min-width: 600px) {
  .career-hero__stat:nth-child(n + 3) {
    border-top: 0;
  }
}

@media (min-width: 600px) {
  .career-hero__stat:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (min-width: 600px) {
  .career-hero__stat + .career-hero__stat {
    border-left: 1px solid rgb(255 255 255 / 30%);
  }
}

@media (min-width: 1200px) {
  .career-hero__stat + .career-hero__stat {
    border-left: 0;
  }
}

.career-hero__stat-label {
  order: 1;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

@media (min-width: 1200px) {
  .career-hero__stat-label {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
  }
}

.career-hero__stat-value {
  order: 2;
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  font-size: clamp(1.75rem, 8vw, 2.375rem);
  font-weight: 300;
  gap: 0.3em;
  letter-spacing: -0.035em;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

@media (min-width: 600px) {
  .career-hero__stat-value {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
  }
}

@media (min-width: 1200px) {
  .career-hero__stat-value {
    justify-content: flex-start;
    font-size: clamp(3.5rem, 4.17vw, 4.5rem);
  }
}

.career-hero__stat-number {
  min-width: 0;
}

.career-hero__stat-suffix {
  font-size: 0.36em;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

@media (min-width: 1200px) {
  .career-hero__stat-suffix {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
  }
}

.career-hero.is-missing-stats .career-hero__content {
  margin-block: auto;
}

@media (prefers-reduced-motion: reduce) {
  .career-hero__cta {
    transition: none;
  }
}
