/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TEAM SECTION
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#team {
  background: var(--white);
}

.team-header {
  padding: 100px 80px 0;
  border-bottom: 1px solid var(--border);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.team-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255, 255, 255, .03) 79px, rgba(255, 255, 255, .03) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255, 255, 255, .03) 79px, rgba(255, 255, 255, .03) 80px);
  pointer-events: none;
}

.team-header-inner {
  max-width: 680px;
  position: relative;
  z-index: 1;
  padding-bottom: 72px;
}

.team-header-eyebrow {
  font-family: var(--type-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
  margin-bottom: 20px;
}

.team-header-h2 {
  font-family: var(--type-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: #FDFCFA;
  line-height: 1.1;
  margin-bottom: 20px;
}

.team-header-h2 em {
  font-style: italic;
  color: var(--gold);
}

.team-header-sub {
  font-size: .95rem;
  color: rgba(255, 255, 255, .4);
  line-height: 1.85;
  max-width: 540px;
}

/* Cards grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* was repeat(3, 1fr) */
  gap: 28px;
  background: transparent;
  padding: 48px 80px 64px;
}

.team-card {
  background: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(21, 42, 69, .06);
  transition: box-shadow .3s ease, transform .3s ease;
}

.team-card:hover {
  box-shadow: 0 8px 40px rgba(21, 42, 69, .13);
  transform: translateY(-3px);
}

.team-card-photo {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--pale);
}

.ian img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--pale);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 0%;
  display: block;
  transition: transform .6s ease;
  filter: grayscale(15%);
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .6s ease;
  filter: grayscale(15%);
}

.team-card:hover .team-card-photo img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

.team-card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(21, 42, 69, .45) 100%);
  pointer-events: none;
}

.team-card-body {
  padding: 36px 36px 40px;
  border-top: 1px solid var(--border);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.team-card-accent {
  height: 2px;
  background: var(--gold);
  width: 32px;
  margin-bottom: 20px;
}

.team-card-name {
  font-family: var(--type-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}

.team-card-title {
  font-family: var(--type-mono);
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.team-card-credential {
  font-family: var(--type-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.team-card-bio {
  font-size: .875rem;
  line-height: 1.85;
  color: var(--muted);
  flex: 1;
}

.team-card-bio strong {
  color: var(--ink2);
  font-weight: 400;
}

/* Past firms tag row */
.team-firms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.team-firm-tag {
  font-family: var(--type-mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--ink2);
  background: var(--pale);
}

/* Bottom CTA strip */
.team-cta {
  background: var(--pale);
  padding: 64px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  border-top: 1px solid var(--border);
}

.team-cta-text {
  max-width: 560px;
}

.team-cta-eyebrow {
  font-family: var(--type-mono);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.team-cta-body {
  font-size: 1rem;
  color: var(--ink2);
  line-height: 1.75;
}

/* Team responsive */
@media(max-width:1024px) {
  .team-header {
    padding: 72px 40px 0;
  }

  .team-header-inner {
    padding-bottom: 56px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .team-card-photo {
    aspect-ratio: 3/2;
  }

  .team-card-body {
    padding: 28px 32px 36px;
  }

  .team-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 56px 40px;
    gap: 28px;
  }
}

@media(max-width:768px) {
  .team-header {
    padding: 56px 24px 0;
  }

  .team-header-inner {
    padding-bottom: 40px;
  }

  .team-grid {
    padding: 28px 24px;
  }

  .team-card-body {
    padding: 24px 24px 32px;
  }

  .team-cta {
    padding: 48px 24px;
  }

  .team-cta-actions {
    width: 100%;
  }

  .team-cta .btn-email {
    display: block;
    text-align: center;
  }
}
