/* Asymmetric, editorial team composition: less corporate portrait rail, more agency rhythm. */
.team-section {
  padding-top: clamp(58px, 5vw, 84px);
  padding-bottom: clamp(62px, 5.4vw, 90px);
}

.team-section .section-intro {
  margin-bottom: clamp(30px, 3.2vw, 44px);
}

.team-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1vw, 18px);
  align-items: stretch;
}

.team-rail > article {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: clamp(300px, 25vw, 420px);
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #dce2df;
  isolation: isolate;
}

.team-index {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  color: #fff;
  background: rgba(17,27,42,.18);
  backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: .08em;
}

.team-rail > article > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8) contrast(1.02);
  transition: transform .65s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}

.team-person-nick > img { object-position: 50% 44%; }
.team-person-astrid > img { object-position: 50% 20%; }
.team-person-mo > img { object-position: 50% 18%; }
.team-person-rogier > img { object-position: 50% 18%; }

.team-rail > article:hover > img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.02);
}

.team-rail > article > div {
  position: absolute;
  z-index: 3;
  left: 14px;
  right: auto;
  bottom: 14px;
  width: min(86%, 320px);
  padding: 12px 14px 13px;
  color: var(--deep);
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 32px rgba(17,27,42,.13);
  transition: background .3s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}

.team-rail > article:hover > div {
  background: var(--green);
  transform: translateY(-5px);
}

.team-rail h3 {
  margin: 0 0 4px;
  color: var(--deep);
  font-size: clamp(16px, 1.2vw, 21px);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.team-rail p {
  margin: 0;
  color: #526071;
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .team-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    min-height: 0;
  }

  .team-rail > article {
    height: clamp(300px, 45vw, 390px);
  }
}

@media (max-width: 720px) {
  .team-section .section-intro {
    margin-bottom: 26px;
  }

  .team-rail {
    display: flex;
    min-height: 0;
    padding-right: var(--side);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .team-rail::-webkit-scrollbar { display: none; }

  .team-rail > article {
    flex: 0 0 68vw;
    width: 68vw;
    height: 78vw;
    max-height: 430px;
    scroll-snap-align: start;
  }

  .team-rail > article > div {
    left: 14px;
    bottom: 14px;
  }
}
