/**
 * API team cards: same look as page_1.html #pfos-team.
 * With [data-team-mount].team-grid from assets/js/team-section.js
 */

/* Scroll reveal: same timing as page_1.html .reveal */
#pfos-team .reveal,
#our-team .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

#pfos-team .reveal.d1,
#our-team .reveal.d1 {
  transition-delay: 0.08s;
}

#pfos-team .reveal.on,
#our-team .reveal.on {
  opacity: 1;
  transform: translateY(0);
}

[data-team-mount].team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
  justify-items: center;
}

/* our-team.html: same max width and card rhythm as homepage #pfos-team */
[data-team-mount].team-grid.team-grid--standalone {
  max-width: 760px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  justify-items: center;
}

[data-team-mount].team-grid.team-grid--standalone .team-card {
  max-width: 380px;
  width: 100%;
}

[data-team-mount] .team-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 46, 93, 0.08);
  box-shadow: 0 4px 24px rgba(0, 35, 71, 0.1);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

[data-team-mount] .team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(0, 35, 71, 0.14);
}

[data-team-mount] .team-photo {
  min-height: 220px;
  height: 240px;
  background: linear-gradient(135deg, #002347 0%, #003a75 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

[data-team-mount] .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

[data-team-mount] .team-photo-initials {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  color: #fbb610;
  letter-spacing: 0.02em;
  user-select: none;
}

[data-team-mount] .team-body {
  padding: 20px;
}

[data-team-mount] .team-name {
  font-weight: 900;
  font-size: 1rem;
  color: #002347;
  margin-bottom: 3px;
}

[data-team-mount] .team-role {
  font-size: 12px;
  font-weight: 700;
  color: #007bff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

[data-team-mount] .team-bio {
  font-size: 0.83rem;
  color: #6b7fa3;
  line-height: 1.6;
  margin: 0 0 16px;
}

/* -------------------------------------------------------------------------
   our-team.html: band under navy hero (PFOS tokens via .pfos-ref)
------------------------------------------------------------------------- */
.pfos-team-page-section {
  font-family: "Urbanist", system-ui, sans-serif;
  background: linear-gradient(180deg, #eef2f8 0%, #ffffff 45%, #ffffff 100%);
  padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 10vw, 100px);
  border-top: 1px solid rgba(0, 35, 71, 0.08);
}

.pfos-team-page-inner {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.pfos-team-page-section [data-team-mount] .team-card {
  border: 1px solid rgba(0, 35, 71, 0.1);
  box-shadow: 0 10px 40px rgba(0, 35, 71, 0.1);
  border-radius: 18px;
}

.pfos-team-page-section [data-team-mount] .team-card:hover {
  box-shadow: 0 16px 48px rgba(0, 35, 71, 0.16);
  border-color: rgba(251, 182, 16, 0.35);
}

.pfos-team-page-section [data-team-mount] .team-name {
  color: var(--navy, #002347);
}

.pfos-team-page-section [data-team-mount] .team-role {
  color: var(--yellow-dk, #e6a800);
}

.pfos-team-page-section [data-team-mount] .team-bio {
  color: var(--muted, #6b7fa3);
}

.pfos-team-page-section [data-team-mount] .team-photo {
  background: linear-gradient(
    145deg,
    var(--navy-dk, #011b36) 0%,
    var(--navy-lt, #003a75) 100%
  );
}

.pfos-team-page-section [data-team-mount] .team-photo-initials {
  color: var(--yellow, #fbb610);
}
