/* Photographic career cards. ImageGen creates the candid base scenes; the
   supplied project mark is composited afterwards from one immutable master. */

.vacancy-card {
  isolation: isolate;
  min-height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #061536;
  color: #fff;
  box-shadow:
    0 30px 72px rgba(2, 18, 50, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.vacancy-card--featured {
  min-height: 616px;
}

.vacancy-card:nth-child(2),
.vacancy-card:nth-child(3) {
  min-height: 300px;
}

.vacancy-card__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.vacancy-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--vacancy-media-position, 50% 28%);
  transform: scale(1.005);
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.vacancy-card::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(2, 12, 34, 0.05) 0%, rgba(2, 12, 34, 0.04) 34%, rgba(2, 12, 34, 0.66) 67%, rgba(2, 12, 34, 0.97) 100%),
    linear-gradient(90deg, rgba(3, 16, 44, 0.13), transparent 58%);
  content: "";
  pointer-events: none;
}

.vacancy-card::after {
  position: absolute;
  z-index: 1;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(30px - 1px);
  content: "";
  pointer-events: none;
}

.vacancy-card:hover .vacancy-card__media img {
  transform: scale(1.035);
}

.vacancy-card > :not(.vacancy-card__media) {
  position: relative;
  z-index: 2;
}

.vacancy-card__top {
  justify-content: flex-end;
}

.vacancy-card__icon {
  display: none;
}

.vacancy-card__badge,
.vacancy-card--featured .vacancy-card__badge {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(3, 18, 49, 0.38);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
}

.vacancy-card__location,
.vacancy-card--featured .vacancy-card__location {
  color: rgba(255, 255, 255, 0.76);
}

.vacancy-card__location img,
.vacancy-card__action img {
  filter: brightness(0) invert(1);
}

.vacancy-card h3,
.vacancy-card--featured h3 {
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.34);
}

.vacancy-card > p:not(.vacancy-card__location),
.vacancy-card--featured > p:not(.vacancy-card__location) {
  color: rgba(255, 255, 255, 0.8);
}

.vacancy-card__action,
.vacancy-card--featured .vacancy-card__action {
  color: #fff;
}

.vacancy-card__action::before {
  position: absolute;
  right: -10px;
  bottom: -8px;
  left: -10px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  content: "";
  transition: opacity 180ms ease;
}

.vacancy-card__action:hover::before,
.vacancy-card__action:focus-visible::before {
  opacity: 1;
}

@media (max-width: 1100px) {
  .vacancy-card--featured {
    min-height: 520px;
  }

  .vacancy-card:nth-child(n + 2) {
    min-height: 390px;
  }
}

@media (max-width: 680px) {
  .vacancy-card,
  .vacancy-card:nth-child(n + 2) {
    min-height: 450px;
    padding: 24px;
  }

  .vacancy-card--featured {
    min-height: 490px;
  }

  .vacancy-card--featured h3 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .vacancy-card::before {
    background:
      linear-gradient(180deg, rgba(2, 12, 34, 0.03) 0%, rgba(2, 12, 34, 0.08) 36%, rgba(2, 12, 34, 0.78) 68%, rgba(2, 12, 34, 0.98) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vacancy-card__media img {
    transition: none;
  }

  .vacancy-card:hover .vacancy-card__media img {
    transform: scale(1.005);
  }
}
