/* ── Page hero ──────────────────────────────────────────────── */
.team-hero {
  padding: 80px 0 0;
}

.team-section {
  padding: 48px 0 100px;
}

/* ── Grid — centred, max 2 columns ──────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 32px;
}

/* ── Card ───────────────────────────────────────────────────── */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Hover lift only on devices that truly hover — avoids a stuck state on touch */
@media (hover: hover) {
  .team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(88, 101, 242, 0.35);
  }
}

/* ── Photo ──────────────────────────────────────────────────── */
.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(0, 209, 178, 0.15));
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-position, center top);
  transform: scale(var(--img-scale, 1)) translateY(var(--img-offset-y, 0%));
  transform-origin: center top;
  display: block;
}

/* ── Text content ───────────────────────────────────────────── */
.team-info {
  padding: 28px 32px 32px;
}

.team-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.team-role {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.team-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ── LinkedIn button ────────────────────────────────────────── */
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 10px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

@media (hover: hover) {
  .linkedin-btn:hover {
    color: white;
    border-color: rgba(88, 101, 242, 0.5);
    background: rgba(88, 101, 242, 0.08);
  }
}

.linkedin-btn svg {
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: auto;
  }
}

@media (max-width: 680px) {
  .team-hero {
    padding: 48px 0 0;
  }
  .team-section {
    padding: 32px 0 64px;
  }
  .team-info {
    padding: 24px 22px 26px;
  }
  .team-info h3 {
    font-size: 1.25rem;
  }
  .team-bio {
    font-size: 0.92rem;
  }
}
