/* Standalone team directory; keep the homepage portrait treatment. */
.team-directory { padding-top: 64px; padding-bottom: 88px; }
.team-intro { max-width: 760px; margin-bottom: 42px; }
.team-page .section-title { margin: 0 0 24px; font-size: 3rem; line-height: 1.1; }
.team-intro .section-body-text { max-width: 650px; margin: 0; text-align: left; line-height: 1.8; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.team-grid .team-card { min-width: 0; margin: 0; }
.team-grid .team-card[hidden] { display: none !important; }
.team-grid .team-photo { transition: filter 550ms ease, transform 650ms cubic-bezier(.2,.65,.3,1); }
.team-grid .team-meta { margin-top: 14px; }
.team-grid .team-name { margin: 0 0 4px; font: 500 .98rem/1.45 var(--font-sans); color: #7d6c4d; }
.team-grid .team-role { font: 300 .84rem/1.6 var(--font-sans); color: #4f6273; }
.team-pagination { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 26px; }
.team-pagination[hidden] { display: none; }
#team-count { margin: 0; font-size: .75rem; color: #4f6273; }
.team-more { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; border: 0; padding: 8px 0; color: #7d6c4d; background: transparent; font: 400 .86rem var(--font-sans); cursor: pointer; }
.team-more span { font-size: 1.4rem; font-weight: 200; transition: transform 400ms ease; }
.team-more:hover span { transform: rotate(90deg); }
.team-more[hidden] { display: none; }
.team-contact { padding-block: 56px 88px; background: #f7f6f3; }
.team-contact-inner { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr); align-items: start; gap: 64px; }
.team-contact .contact-form { margin: 40px 0 0; }
.team-contact .contact-grid { column-gap: 32px; }
.team-page .contact-input:focus-visible, .team-page .contact-textarea:focus-visible { outline: none; border-bottom-color: #7d6c4d; box-shadow: 0 1px 0 #7d6c4d; }
.team-contact .contact-status:empty { margin: 0; }
.team-page [data-team-reveal], .team-grid .team-card { transition: opacity 800ms ease, translate 900ms cubic-bezier(.2,.65,.3,1); transition-delay: var(--team-delay, 0ms); }
.team-motion [data-team-reveal]:not(.is-revealed),
.team-motion .team-card:not(.is-revealed) { opacity: 0; translate: 0 12px; }
.team-motion [data-team-title]:not(.is-revealed) { opacity: 0; }
.team-page .team-title-ghost { display: block; visibility: hidden; white-space: pre-line; }
.team-page .team-title-typing { position: absolute; top: 0; left: 0; width: 100%; white-space: pre-line; }
.team-title-letter { animation: team-letter-in 300ms ease both; }
@keyframes team-letter-in { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 768px) and (max-width: 1199.98px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .team-contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .team-contact .contact-form { max-width: none; margin-top: 0; }
}
@media (max-width: 767.98px) {
  .team-directory { padding-top: 40px; padding-bottom: 48px; }
  .team-intro { margin-bottom: 30px; }
  .team-page .section-title { font-size: clamp(2rem, 6.5vw, 3rem); margin-bottom: 20px; }
  .team-intro .section-body-text { font-size: .92rem; line-height: 1.75; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .team-grid .team-name { font-size: .88rem; }
  .team-grid .team-role { font-size: .78rem; line-height: 1.5; }
  .team-contact { padding-block: 48px; }
}
@media (max-width: 399.98px) {
  .team-grid { column-gap: 14px; }
  .team-grid .team-name { font-size: .82rem; }
  .team-grid .team-role { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .team-page [data-team-reveal], .team-grid .team-card, .team-grid .team-photo, .team-more span { transition: none; }
  .team-title-letter { animation: none; }
}
