/* No JavaScript: the description remains readable beneath the photograph. */
.team-card__back { padding: 1.25rem; }
.team-card__back .team-card__desc { white-space: pre-line; overflow-wrap: anywhere; margin: 0; }
.team-card__portrait { width: 270px; max-width: 100%; margin-bottom: 1rem; }
.team-card__portrait.is-enhanced { position: relative; perspective: 1000px; }
.is-enhanced .team-card__faces { position: relative; aspect-ratio: 1; transform-style: preserve-3d; transition: transform 0.5s ease; pointer-events: none; z-index: 1; }
.is-enhanced.is-flipped .team-card__faces { transform: rotateY(180deg); }
.is-enhanced .team-card__front,
.is-enhanced .team-card__back { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.is-enhanced .team-card__back { transform: rotateY(180deg); background: var(--bg-card); border: 3px solid rgba(255,255,255,0.15); padding: 2.75rem 2rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.is-enhanced .team-card__back .team-card__desc { width: 100%; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; pointer-events: auto; scrollbar-width: thin; }
/* The whole portrait is the accessible touch/keyboard control, with no visible button bar. */
.team-card__toggle { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: transparent; font-size: 0; cursor: pointer; }
.team-card__toggle:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.team-card__back:focus-visible { outline: 3px solid var(--purple); outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) {
  .team-card, .is-enhanced .team-card__faces { transition: none; }
  .team-card:hover { transform: none; }
}
