/* QuickHey team cards. Scoped to .qh-team-*.
   Full cards flip on a timer. Intro cards show the clay portrait and flip to the photograph on hover. */
.qh-team-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; }
.qh-team-grid--compact { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.qh-team-card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(18, 24, 38, .1); border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(3, 38, 78, .05), 0 12px 32px -12px rgba(3, 38, 78, .18); scroll-margin-top: 6rem; }
.qh-team-card .qh-team-media { position: relative; aspect-ratio: 1 / 1; perspective: 900px; overflow: hidden; background: #fff; }
.qh-team-card .qh-team-flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.4, .15, .2, 1); }
.qh-team-card.is-clay .qh-team-flip { transform: rotateY(180deg); }
.qh-team-card .qh-team-face { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.qh-team-card .qh-team-face--clay { transform: rotateY(180deg); }
.qh-team-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.25rem 1.35rem; color: #121826; }
.qh-team-card .qh-team-name { font-size: 1.25rem; line-height: 1.25; }
.qh-team-name a { color: inherit; text-decoration: none; }
.qh-team-name a:hover, .qh-team-name a:focus-visible { text-decoration: underline; }
.qh-team-role { font-weight: 700; color: #8a6510; }
.qh-team-city, .qh-team-focus { color: #4f5868; font-size: .95rem; }
.qh-team-bio { margin-top: .5rem; color: #3a4252; font-size: .98rem; line-height: 1.6; }
.qh-team-facts { display: grid; gap: .55rem; margin: .75rem 0 0; padding-top: .85rem; border-top: 1px solid rgba(18, 24, 38, .1); font-size: .92rem; }
.qh-team-facts dt { font-weight: 700; color: #03264e; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.qh-team-facts dd { margin: 0; color: #3a4252; }
.qh-team-more { margin-top: .6rem; font-weight: 700; }
.qh-team-card--compact .qh-team-body { padding: .85rem .9rem 1.05rem; }
.qh-team-card--compact .qh-team-name { font-size: 1.02rem; }
.qh-team-card--compact .qh-team-city, .qh-team-card--compact .qh-team-focus { font-size: .88rem; }
.qh-team-actions { margin-top: clamp(1.5rem, 3vw, 2.25rem); text-align: center; }
.qh-team-pause { display: block; margin: 0 0 1rem auto; padding: .4rem .9rem; border: 1px solid rgba(3, 38, 78, .3); border-radius: 999px; background: #fff; color: #03264e; font: inherit; font-size: .85rem; cursor: pointer; }
.qh-team-pause:hover, .qh-team-pause:focus-visible { background: #fdf2d5; }
.qh-team-grid--intro { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qh-team-still { display: block; width: 100%; height: 100%; object-fit: cover; }
.qh-team-card--intro .qh-team-bio { margin-top: .25rem; }
.qh-team-card--intro .qh-team-face--back { transform: rotateY(180deg); }
.qh-team-card--intro .qh-team-media:hover .qh-team-flip,
.qh-team-card--intro .qh-team-media:focus-within .qh-team-flip { transform: rotateY(180deg); }
@media (max-width: 1100px) { .qh-team-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .qh-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .qh-team-grid--intro { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .qh-team-grid--intro { grid-template-columns: 1fr; } .qh-team-grid { grid-template-columns: 1fr; } .qh-team-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }
@media (prefers-reduced-motion: reduce) { .qh-team-card .qh-team-flip { transition: none; } .qh-team-pause { display: none; } }
