.editorial-image-section {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.editorial-image-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(26rem, 0.92fr);
  min-height: 40rem;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.editorial-image-grid.media-right {
  grid-template-columns: minmax(26rem, 0.92fr) minmax(0, 1.08fr);
}

.media-right .editorial-media {
  order: 2;
}

.editorial-media {
  position: relative;
  min-height: 40rem;
  overflow: hidden;
  background: var(--ink-3);
}

.editorial-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 9, 15, 0.68), transparent 52%);
  pointer-events: none;
}

.editorial-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.82);
  transition: transform 800ms cubic-bezier(.22, 1, .36, 1), filter 500ms ease;
}

/* Keep the multinational team inside the tall desktop crop. */
.home-page .editorial-image-section .editorial-media img {
  object-position: right center;
}

/* The assessment scene needs its own crop: the right edge is empty wall, so the
   page-level rule above would frame nobody. */
.home-page .editorial-image-section .editorial-media.crop-assessment img {
  object-position: 52% center;
}

/* Preserve the remote-working professional in the portrait-shaped crop. */
.candidates-page .editorial-image-section .editorial-media img {
  object-position: left center;
}

/* Keep both people framed in the candidate-assessment scene. */
.companies-page .editorial-image-section .editorial-media img {
  object-position: right center;
}

.editorial-image-grid:hover .editorial-media img {
  transform: scale(1.018);
  filter: contrast(1.06) brightness(0.88);
}

.editorial-caption {
  position: absolute;
  z-index: 1;
  left: 1.5rem;
  bottom: 1.35rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.editorial-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 4.5vw, 5rem);
}

.editorial-content h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.6rem, 4.1vw, 4.25rem);
  font-weight: 350;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.editorial-content > .section-intro {
  margin-top: 1.6rem;
}

.editorial-content .advantage-list {
  margin-top: 2.5rem;
}

.editorial-content .advantage-row {
  grid-template-columns: 2.8rem 1fr;
  padding: 1rem 0;
}

.editorial-content .advantage-row p {
  font-size: 1.02rem;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .editorial-image-grid,
  .editorial-image-grid.media-right {
    grid-template-columns: 1fr;
  }

  .media-right .editorial-media {
    order: 0;
  }

  .editorial-media,
  .editorial-image-grid {
    min-height: 31rem;
  }

  .editorial-media {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 600px) {
  .editorial-image-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .editorial-image-grid {
    min-height: 0;
  }

  .editorial-media {
    min-height: 18rem;
    aspect-ratio: 4 / 3;
  }

  .editorial-content {
    padding: 2rem 1.4rem 2.4rem;
  }

  .editorial-content h2 {
    font-size: clamp(2.3rem, 11vw, 3.25rem);
  }

  .editorial-content .advantage-list {
    margin-top: 1.8rem;
  }
}
