/* ===========================
   TEAM MEMBERS (ABOUT)
   =========================== */

.section--team {
  padding-top: 160px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 150px;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: max(100px, 15vh);
}

.team-member__photo {
  width: 280px;
  aspect-ratio: 3/4;
  border-radius: var(--r-16);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-member__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 900ms cubic-bezier(.22, .61, .36, 1),
    transform 900ms cubic-bezier(.22, .61, .36, 1);
}

.team-member__info.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.team-member__name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.team-member__title {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 500;
}

.team-member__bio {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
  max-width: 400px;
}

@media (max-width: 768px) {
  .section--team {
    padding-top: 100px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-bottom: 100px;
  }

  .team-member {
    gap: max(80px, 12vh);
  }

  .team-member__photo {
    width: 240px;
  }
}
