.team-section {
  --team-gold: var(--gold, #d4af37);
  --team-ink: var(--graphite, #25282b);
  --team-muted: #646b72;
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  color: var(--team-ink);
  background: var(--white, #fffdf9);
}

.team-section::before {
  position: absolute;
  top: 0;
  right: clamp(1.5rem, 7vw, 7rem);
  width: clamp(4rem, 10vw, 9rem);
  height: 0.28rem;
  background: var(--team-gold);
  content: "";
}

.team-section-inner {
  position: relative;
  z-index: 1;
}

.team-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.75fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.team-section-heading.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.team-section-heading small {
  display: block;
  margin-bottom: 1.1rem;
  color: #94751d;
  font: 600 0.68rem/1 var(--font-mono, monospace);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.team-section-heading h2 {
  max-width: 42rem;
  margin: 0;
  color: var(--team-ink);
  font: 600 clamp(2.45rem, 5vw, 4.7rem)/0.98 var(--font-display, Inter, sans-serif);
  letter-spacing: -0.075em;
}

.team-section-heading h2 span {
  color: #ad8c2b;
}

.team-section-copy p {
  margin: 0;
  color: var(--team-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.team-section-copy p + p {
  margin-top: 0.75rem;
}

.team-section-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #e5e7e5;
  box-shadow: 0 1.2rem 2.8rem rgba(37, 40, 43, 0.14);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 750ms ease, transform 750ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.team-section-photo.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.team-section-photo::after {
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 253, 249, 0.55);
  content: "";
  pointer-events: none;
}

.team-section-photo img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.025);
  transition: transform 1000ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.team-section-photo.is-visible img {
  transform: scale(1);
}

.team-section-photo figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 2vw, 1.5rem);
  color: var(--team-ink);
  background: #f1efe8;
}

.team-section-photo figcaption span:first-child {
  color: var(--team-ink);
  font: 600 0.64rem/1.4 var(--font-mono, monospace);
  letter-spacing: 0.1em;
}

.team-section-photo figcaption span:last-child {
  color: var(--team-muted);
  font-size: 0.72rem;
  text-align: right;
}

@media (max-width: 820px) {
  .team-section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.3rem;
  }

  .team-section-copy {
    max-width: 42rem;
  }
}

@media (max-width: 560px) {
  .team-section {
    padding: 4rem 0;
  }

  .team-section-photo::after {
    inset: 0.55rem;
  }

  .team-section-photo figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .team-section-photo figcaption span:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-section-heading,
  .team-section-photo,
  .team-section-photo img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
