.careers-page {
  --soft: #dfe4e1;
  --yellow: #f7d605;
  --yellow-soft: var(--yellow);
}

.careers-page main > section[id],
.careers-page #contact-footer { scroll-margin-top: 88px; }

.careers-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(660px, 52.8vw, 800px);
  padding: 184px 0 64px;
  background: var(--black);
  color: var(--white);
}

.careers-hero__media, .careers-hero__veil { position: absolute; inset: 124px 0 0; }
.careers-hero__media { overflow: hidden; }
.careers-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(5%);
  transition: opacity 1s ease, transform 1s cubic-bezier(.22, 1, .36, 1);
}
.careers-hero__slide.is-active { z-index: 2; opacity: 1; transform: translateX(0); }
.careers-hero__slide.is-leaving { z-index: 1; transform: translateX(-5%); }
.careers-hero__slide img { display: block; width: 75%; height: 100%; margin-left: auto; object-fit: cover; object-position: right top; }
.careers-hero__veil {
  z-index: 3;
  background: linear-gradient(90deg, var(--black) 18%, rgb(7 9 10 / 95%) 30%, rgb(7 9 10 / 55%) 52%, rgb(7 9 10 / 8%) 74%);
  pointer-events: none;
}
.careers-hero__content { position: relative; z-index: 4; }

.careers-hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(48px, 6.5vw, 86px);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .98;
}
.careers-hero h1 span { display: block; color: var(--yellow); }
.careers-hero__intro {
  max-width: 560px;
  margin: 26px 0 0;
  color: #c5cecf;
  font-size: 18px;
  line-height: 1.65;
}

.careers-paths { padding: 60px 0 76px; background: var(--soft); }
.careers-paths__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
}
.careers-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.careers-card:hover, .careers-card:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px var(--yellow), 0 20px 48px rgb(7 9 10 / 13%);
}
.careers-card .eyebrow { margin-bottom: 18px; color: var(--muted); }
.careers-card--introduce {
  --muted: #c5cecf;
  --ink: var(--white);
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}
.careers-card--introduce .eyebrow { color: var(--yellow); }
.careers-card--openings {
  --muted: #303b3d;
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--black);
}
.careers-card--openings .eyebrow { color: var(--black); }
.careers-card h2 {
  max-width: 440px;
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.06;
}
.careers-card__intro { margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.careers-details { margin-top: 26px; }
.careers-details h3 { margin: 0; font-size: 14px; font-weight: 750; }
.careers-details ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.careers-details li::marker { color: var(--ink); }
.careers-card__action { width: 100%; margin-top: auto; padding-top: 32px; }
.careers-card .button { min-height: 52px; max-width: 100%; }
.careers-email-address { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.careers-email-address:hover { color: var(--yellow); }
.careers-indeed-link { background: var(--black); color: var(--white); }
.careers-indeed-link:hover { background: #242829; transform: translateY(-1px); }
.careers-page .footer-column a[aria-current="page"] { color: var(--yellow); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .careers-card { transition: translate .3s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
  .careers-card:hover { translate: 0 -4px; }
}

@media (max-width: 960px) {
  .careers-hero { display: block; min-height: 0; padding: 464px 0 48px; }
  .careers-hero__media, .careers-hero__veil { inset: 124px 0 auto; height: 380px; }
  .careers-hero__slide img { width: 100%; }
  .careers-hero__veil { background: linear-gradient(0deg, var(--black), rgb(7 9 10 / 10%) 48%, rgb(7 9 10 / 5%)); }
  .careers-hero h1 { max-width: none; }
  .careers-hero__intro { max-width: 640px; }
  .careers-card { padding: 30px; }
}

@media (max-width: 720px) {
  .careers-hero { padding: 376px 0 40px; }
  .careers-hero__media, .careers-hero__veil { inset: 110px 0 auto; height: 300px; }
  .careers-hero h1 { font-size: clamp(44px, 12vw, 62px); }
  .careers-hero__intro { margin-top: 24px; font-size: 16px; }
  .careers-paths { padding: 32px 0 48px; }
  .careers-paths__grid { grid-template-columns: 1fr; gap: 20px; }
  .careers-card { padding: 28px 24px; }
  .careers-card h2 { font-size: 34px; }
  .careers-card__intro { font-size: 16px; }
  .careers-card .button { width: 100%; padding-inline: 16px; }
  .careers-card__action { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .careers-hero__slide { transition: none; transform: none; }
}
