/* Ekibimiz section: staff cards with image-ready portrait slots. */

.team-section {
  background:
    linear-gradient(135deg, rgba(113, 128, 111, .14), transparent 42%),
    var(--paper);
}

.team-section .kicker { color: var(--claret); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 380px));
  justify-content: start;
  gap: 14px;
}

.team-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 250, 240, .76);
  box-shadow: 0 22px 70px rgba(18, 25, 34, .08);
}

.team-photo {
  aspect-ratio: 4 / 3.7;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(118, 40, 50, .92), rgba(18, 25, 34, .96)),
    var(--navy);
  color: var(--gold);
}

.team-photo span {
  font-family: var(--serif);
  font-size: clamp(74px, 10vw, 118px);
  line-height: 1;
}

.team-info {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(22px, 3vw, 32px);
}

.team-info h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  line-height: 1;
}

.team-info p {
  margin: 0;
  color: var(--claret);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.team-info a {
  width: fit-content;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  transition: color .24s var(--ease);
}

.team-info a:hover,
.team-info a:focus-visible {
  color: var(--claret);
}

@media (max-width: 680px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-info a { overflow-wrap: anywhere; }
}
