.team-section {
  padding: 104px 0 110px;
  background: #ffffff;
}

.team-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.team-heading h2 {
  margin-top: 0;
}

.team-intro {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--text-muted);
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.team-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.team-card {
  display: flex;
  flex-direction: column;
}

.team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f8e6e6 0%, #efe3e8 50%, #dfe7e9 100%);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), transparent 55%);
  pointer-events: none;
}

.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.team-photo-designer {
  background: linear-gradient(160deg, #e4e9f5 0%, #efe3e8 55%, #f8e6e6 100%);
}

.team-photo-coder {
  background: linear-gradient(160deg, #dfe7e9 0%, #e9e6ef 50%, #f8e6e6 100%);
}

.team-initials {
  color: var(--primary);
  font-size: clamp(48px, 4.6vw, 76px);
  font-weight: var(--fw-display);
  letter-spacing: -0.05em;
  opacity: 0.9;
  transition: transform 0.5s var(--ease-out);
}

.team-card:hover .team-photo {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(44, 34, 34, 0.12);
}

.team-card:hover .team-photo img {
  transform: scale(1.04);
}

.team-card:hover .team-initials {
  transform: scale(1.06);
}

.team-meta {
  margin-top: 24px;
}

.team-role {
  color: var(--primary);
  font-size: clamp(18px, 1.3vw, 22px);
  font-weight: var(--fw-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.team-meta h3 {
  margin-top: 8px;
  color: var(--text);
  font-size: var(--fs-card-title);
  line-height: 1.1;
  letter-spacing: var(--ls-title);
  font-weight: var(--fw-title);
}

.team-bio {
  margin-top: 10px;
  max-width: 340px;
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
}

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

@media (max-width: 720px) {
  .team-section {
    padding: 72px 0 64px;
  }

  .team-intro {
    font-size: 17px;
  }

  .team-grid {
    margin-top: 40px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .team-photo {
    border-radius: 22px;
  }

  .team-meta {
    text-align: center;
    margin-top: 18px;
  }

  .team-meta h3 {
    font-size: 24px;
  }

  .team-bio {
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
  }
}
