/* Card shell */
.team-card{
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 16px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.45), transparent 60%),
    rgba(255,255,255,0.18);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  transition: transform .18s ease, box-shadow .25s ease;
}
@media (hover:hover){
  .team-card:hover{ transform: translateY(-3px); box-shadow: 0 22px 48px rgba(0,0,0,0.14); }
}

/* Header: avatar + identity */
.team-card__header{
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
}

/* Avatar — circle crop */
.team-card__avatar{
  width: 100px; height: 100px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.team-card__avatar img{
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

/* Identity */
.team-card__name{
  margin: 0; font-size: 1.05rem; font-weight: 800; color: #111217; letter-spacing: -0.01em;
}
.team-card__role{
  margin: 4px 0 0; font-size: .94rem; color: rgba(17,18,23,0.7);
}

/* Bio */
.team-card__bio{
  color: rgba(17,18,23,0.82);
  font-size: .96rem; line-height: 1.55;
}
.team-card__bio p{ margin: 0 0 .8em; }
.team-card__bio p:last-child{ margin-bottom: 0; }

/* Footer actions */
.team-card__footer{
  margin-top: auto; /* push to bottom for equal-height cards */
  width: 100%;
  height: 40px;
}

/* Email pill */
.team-card__footer .btn{
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 9999px; text-decoration: none; font-weight: 700;
  transition: transform .12s ease, opacity .2s ease, box-shadow .2s ease,
  background .2s ease, border-color .2s ease;
  width: 100%;
  font-size: 70%;
  height: 100%;
  padding: 0px 5px;
}
.btn--pill{
  color: #111217; background: rgba(255,255,255,0.7); border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn--pill:hover{ transform: translateY(-1px); opacity: .95; }

/* Tighten on small screens */
@media (max-width: 520px){
  .team-card__header{ grid-template-columns: 72px 1fr; }
  .team-card__avatar{ width:72px; height:72px; }
}
