/* About team — expandable cards + 3D sculpture canvas */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 2rem;
}

.team-card {
  position: relative;
  background: rgba(18, 18, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 22px 18px 20px;
  min-height: 220px;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.4s ease;
  text-align: center;
}

.team-card:hover {
  border-color: rgba(212, 168, 75, 0.35);
  box-shadow: 0 0 0 1px rgba(212, 168, 75, 0.2), 0 0 28px rgba(212, 168, 75, 0.1);
  transform: translateY(-3px);
}

.team-card.is-open {
  border-color: rgba(212, 168, 75, 0.45);
  box-shadow: 0 0 0 1px rgba(212, 168, 75, 0.25), 0 18px 50px rgba(0, 0, 0, 0.4);
}

.team-card__shape {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border: none;
  background: transparent;
}

@media (max-width: 767px) {
  .team-card__shape {
    width: 72px;
    height: 72px;
  }
}

.team-card__name {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #f7f6f2;
  letter-spacing: -0.02em;
}

.team-card__role {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212, 168, 75, 0.95);
}

.team-card__bio {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(244, 244, 239, 0.82);
  text-align: left;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, margin 0.35s ease;
}

.team-card.is-open .team-card__bio {
  max-height: 220px;
  opacity: 1;
  margin-top: 14px;
}

/* Hide legacy photo blocks if any remain */
.team-member-photo,
.team-card img,
.team-card .media-ph,
.team-card .media-frame {
  display: none !important;
}
