.team .portrait { height: auto; aspect-ratio: 4 / 5; flex-shrink: 0; }
.team .portrait img { object-fit: contain; object-position: center; transition: filter .35s ease; }
.team-card:hover .portrait img { transform: none; }
.team .card-body { padding: 22px; }
.team .credential { margin-bottom: 10px; font-size: .7rem; }
.team .summary { min-height: 0; margin-top: 12px; font-size: .94rem; }
.team .focus-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; margin-bottom: 20px; }
.team .focus-list li { display: grid; place-items: center; padding: 6px; font-size: .7rem; line-height: 1.3; text-align: center; }
.team .bio-details { padding-top: 18px; }
.team .team-card { position: relative; transition: transform .35s cubic-bezier(.2, .65, .3, 1); }
.team-card.is-flippable { display: block; overflow: visible; perspective: 1400px; background: transparent; border: 0; box-shadow: none; }
.team-card-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .6s ease; }
.team-card.is-flipped .team-card-inner { transform: rotateY(180deg); }
.team-card-front, .team-card-back { border: 1px solid rgba(27,43,56,.1); border-radius: 22px; background: #fff; box-shadow: 0 14px 36px rgba(30,43,54,.07); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: border-color .25s ease, box-shadow .25s ease; }
.team-card-front { display: flex; height: 100%; flex-direction: column; overflow: hidden; }
.team-card-front .card-body { flex: 1; }
.team-card-back { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 28px; transform: rotateY(180deg); background: #f4f8fa; }
.team-card-back h3 { margin-bottom: 22px; }
.team-card-bio { flex: 1; min-height: 0; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #9db6c5 transparent; color: #526270; font-size: .98rem; line-height: 1.7; }
.team-card-bio p { margin: 0; }
.team-card-bio p + p { margin-top: 18px; }
.team-card-bio:focus-visible { outline: 2px solid #89bfdc; outline-offset: 4px; border-radius: 4px; }
.team-card .bio-toggle { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; margin-top: auto; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: #1c425d; text-align: left; font-weight: 600; cursor: pointer; }
.team-card-back .bio-toggle { margin-top: 22px; flex-shrink: 0; }
.team-card .bio-toggle:is(:hover, :focus-visible) { padding: 12px; border-radius: 10px; background: #1c425d; color: #fff; }
.team-card .bio-toggle:focus-visible { outline: 3px solid #89bfdc; outline-offset: 3px; }
.bio-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (hover: hover) {
  .team-card:hover .team-card-front, .team-card:hover .team-card-back { border-color: #adc2ce; box-shadow: 0 18px 40px rgba(30,43,54,.12); }
  .team .portrait:hover img { filter: brightness(1.025); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .team .team-card:hover { z-index: 2; transform: translateY(-4px) scale(1.025); }
}
@media (prefers-reduced-motion: reduce) { .team-card-inner, .team .team-card { transition: none; } }

/* Founder portrait and the three supporting highlights. */
.founder-photo img { transition: transform .65s cubic-bezier(.2, .65, .3, 1); }
.founder-highlights li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; line-height: 1.4; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease; }
.founder-highlight-icon { display: inline-flex; flex: 0 0 auto; color: #285878; }
.founder-highlight-icon svg { width: 24px; height: 24px; }
@media (max-width: 620px) {
  .founder-highlights li { flex-direction: row; align-items: center; }
}
@media (hover: hover) {
  .founder-highlights li:hover { border-color: #adc2ce; background: #f7fbfd; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .founder-photo:hover img { transform: scale(1.035); }
  .founder-highlights li:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(27,43,56,.08); }
}
@media (prefers-reduced-motion: reduce) {
  .founder-photo img, .founder-highlights li { transition: none; }
}
