/* ─── Team ─────────────────────────────────────────── */
.team {
  padding: 6rem 0;
  background-color: var(--color-bg);
  text-align: center;
}

.team__header {
  max-width: 800px;
  margin: 0 auto 5rem;
}

.team__title {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.05;
  color: #111;
  margin-bottom: 2rem;
  letter-spacing: -0.04em;
}

.team__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

@media (max-width: 1024px) {
  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .team__grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}

.team-member {
  position: relative;
  aspect-ratio: 0.75 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  background-color: #eee;
}

.team-member__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  filter: brightness(0.85); /* Add slight dark tint to images */
}

.team-member:hover .team-member__image {
  transform: scale(1.05);
}

.team-member__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  /* Reduced white fade gradient */
  background: linear-gradient(to top, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 30%, transparent 60%);
  color: #111;
  text-align: left;
}

.team-member__name {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.team-member__role {
  font-size: 0.9375rem;
  opacity: 0.8;
  font-weight: 300;
}

