/* Our Team cards and the optional client shout-out band.
   Initials avatars use the site navy, cyan, and orange.
   A photo replaces the initials when content/our-team.json sets photo. */

.original-page .team-intro {
  background: rgba(var(--primary-light), 1);
  color: rgba(var(--accent2), 1);
  padding: 64px 0 56px;
}

.original-page .team-intro .width-container {
  max-width: 860px;
}

.original-page .team-intro p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
}

.original-page .team-roster {
  background: rgba(var(--accent2), 1);
  color: rgba(var(--white), 1);
  padding: 72px 0 88px;
}

.original-page .team-roster .section-title {
  color: rgba(var(--primary-light), 1);
  text-align: center;
  margin: 0;
}

.original-page .team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.original-page .team-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  background: rgba(var(--white), 1);
  color: rgba(var(--accent2), 1);
  border: 1px solid rgba(60, 180, 240, 0.35);
  border-top: 4px solid rgba(var(--primary), 1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(4, 21, 58, 0.16);
  padding: 28px 26px 24px;
}

.original-page .team-avatar,
.original-page .team-photo {
  width: 132px;
  height: 132px;
  margin: 0 0 16px;
  border-radius: 50%;
  border: 3px solid rgba(var(--accent1), 1);
  background: rgba(var(--accent2), 1);
  color: rgba(var(--primary), 1);
  flex: none;
}

.original-page .team-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Zoom toward each person's face. --zoom, --fx, --fy, and --ratio come from the photo file. */
.original-page .team-photo {
  position: relative;
  display: block;
  overflow: hidden;
}

.original-page .team-photo img {
  position: absolute;
  width: calc(var(--zoom) * 100%);
  height: calc(var(--zoom) * var(--ratio) * 100%);
  max-width: none;
  left: calc((0.5 - var(--fx) * var(--zoom)) * 100%);
  top: calc((0.5 - var(--fy) * var(--zoom) * var(--ratio)) * 100%);
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: fill;
}

.original-page .team-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 0 0 14px;
}

.original-page .team-card h3 {
  margin: 0 0 4px;
  color: rgba(var(--accent2), 1);
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.original-page .team-role {
  margin: 0;
  color: rgba(var(--primary-dark), 1);
  font-weight: 600;
  line-height: 1.4;
}

.original-page a.team-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: -8px -10px 0 0;
  color: rgba(var(--primary-dark), 1);
  background: transparent;
  border-radius: 8px;
  text-decoration: none;
}

.original-page a.team-linkedin svg {
  display: block;
  width: 24px;
  height: 24px;
}

.original-page a.team-linkedin:hover {
  color: rgba(var(--accent2), 1);
  background: rgba(var(--primary), 0.18);
}

.original-page a.team-linkedin:focus-visible {
  outline: 3px solid #f78d02;
  outline-offset: 2px;
  color: rgba(var(--accent2), 1);
  background: rgba(var(--primary), 0.18);
}

.original-page .team-card .team-bio {
  margin: 0;
  color: #24364d;
  font-size: 1rem;
  line-height: 1.65;
}

/* Approved quotes only. This band is omitted while clientShoutOuts is empty. */
.original-page .team-shoutouts {
  background: linear-gradient(180deg, rgba(var(--primary), 1) 0%, rgba(var(--primary-dark), 1) 100%);
  color: rgba(var(--white), 1);
  padding: 72px 0;
}

.original-page .team-shoutouts .section-title {
  color: rgba(var(--white), 1);
  text-align: center;
  margin: 0 0 28px;
}

.original-page .team-shoutout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.original-page .team-shoutouts figure {
  margin: 0;
  background: rgba(var(--white), 1);
  color: rgba(var(--accent2), 1);
  border-radius: 8px;
  padding: 24px;
}

.original-page .team-shoutouts blockquote {
  margin: 0 0 16px;
  line-height: 1.6;
}

.original-page .team-shoutouts figcaption {
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .original-page .team-grid,
  .original-page .team-shoutout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .original-page .team-intro,
  .original-page .team-roster,
  .original-page .team-shoutouts {
    padding: 48px 0;
  }

  .original-page .team-intro .width-container,
  .original-page .team-roster .width-container,
  .original-page .team-shoutouts .width-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .original-page .team-card {
    padding: 24px 20px;
  }

  .original-page .team-intro p {
    font-size: 1.05rem;
  }
}
