/* Team page — American corporate directory layout */
.team-page .inner-hero {
  padding-bottom: 72px;
}
.team-page .inner-hero h1 em {
  font-style: normal;
  color: var(--red-2);
}
.team-section {
  padding-top: 48px;
}
.team-section-intro {
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.team-directory {
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 7vh, 64px);
}
.team-tier-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.team-tier-title {
  margin: 0;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.team-tier-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.team-grid--leadership {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}
.team-card--president .team-card-btn {
  border-color: rgba(196, 30, 40, 0.45);
  background: linear-gradient(180deg, rgba(196, 30, 40, 0.08), var(--bg-card) 42%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.team-card-president-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.team-card--president .team-card-role {
  color: #ffc4c8;
}
.team-card {
  min-width: 0;
}
.team-page .team-directory,
.team-page .team-card {
  opacity: 1;
  visibility: visible;
}
.team-card-btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}
.team-card-btn:hover,
.team-card-btn:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(196, 30, 40, 0.45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  outline: none;
}
.team-card-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
}
.team-photo-frame,
.team-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
}
.team-photo-frame img {
  object-fit: cover;
  object-position: center top;
}
.team-photo-img {
  filter: grayscale(100%) contrast(1.04);
  transform: scale(1);
  transition:
    filter 0.55s var(--ease),
    transform 0.65s var(--ease);
}
.team-photo-img--color,
.team-card-btn:hover .team-photo-img,
.team-card-btn:focus-visible .team-photo-img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.03);
}
.team-card-photo-accent {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.4s var(--ease);
}
.team-card-btn:hover .team-card-photo-accent,
.team-card-btn:focus-visible .team-card-photo-accent {
  width: 100%;
}
.team-card-body {
  padding: 18px 16px 20px;
}
.team-card-role {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-2);
  line-height: 1.35;
}
.team-card-name {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.team-card-cta {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.team-card-btn:hover .team-card-cta,
.team-card-btn:focus-visible .team-card-cta {
  color: #fff;
}
.team-quote-block {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 28px;
}
.team-quote-block p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
}
.team-quote-block cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.team-modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
}
.team-modal::backdrop {
  background: rgba(4, 6, 9, 0.85);
  backdrop-filter: blur(8px);
}
.team-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.15fr;
  width: min(880px, 94vw);
  max-height: min(88vh, 680px);
  margin: auto;
  margin-top: 6vh;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-card);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
}
.team-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
}
.team-modal-close:hover {
  background: var(--red);
}
.team-modal-media {
  min-height: 280px;
  background: #0a0a0a;
}
.team-modal-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center top;
}
.team-modal-body {
  padding: 32px 28px;
  overflow-y: auto;
}
.team-modal-role {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-2);
}
.team-modal-body h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}
.team-modal-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-modal-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
  .team-modal-media {
    min-height: 220px;
  }
  .team-modal-media img {
    min-height: 220px;
  }
}
@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
