/* Our Team page */

html.page-our-team-root {
  background: var(--nav-solid);
}

body.page-our-team {
  background: #ffffff;
}

body.page-our-team .site-main {
  padding-top: 0;
}

/* Hero */

.team-hero {
  position: relative;
  min-height: min(68vh, 34rem);
  min-height: min(68svh, 34rem);
  display: flex;
  align-items: flex-end;
  padding: clamp(5.5rem, 11vh, 7rem) clamp(1.5rem, 5vw, 3rem) clamp(3.5rem, 8vh, 5rem);
  overflow: hidden;
}

.team-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.team-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.team-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(13, 31, 23, 0.88) 0%, rgba(13, 31, 23, 0.5) 48%, rgba(27, 67, 50, 0.35) 100%),
    linear-gradient(to top, rgba(13, 31, 23, 0.95) 0%, rgba(27, 67, 50, 0.4) 55%, rgba(13, 31, 23, 0.15) 100%);
}

.team-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.team-hero__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.team-hero__rule {
  display: block;
  width: min(10rem, 24vw);
  height: 2px;
  margin: 0 0 1.15rem;
  background: var(--accent);
}

.team-hero__title {
  margin: 0 0 0.75rem;
  max-width: 12ch;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.team-hero__deck {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

/* Section headings */

.team-section {
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.team-section--alt {
  background: #f8fcf9;
}

.team-section__head {
  max-width: 72rem;
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}

.team-section__head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--nav-solid);
}

/* People grid */

.team-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 72rem;
  margin: 0 auto;
}

.team-grid--directors {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 72rem;
  gap: clamp(2rem, 4vw, 3rem);
}

.team-grid--members {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-grid--tech {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-grid--education {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 36rem;
}

.team-members-block {
  max-width: 72rem;
  margin: 0 auto;
}

.team-members-block + .team-members-block {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.team-members-block__label {
  margin: 0 0 1.35rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.team-grid--members .team-person__photo {
  width: 12.5rem;
  height: 12.5rem;
  margin-bottom: 1.15rem;
  border-width: 3px;
}

.team-grid--members .team-person__name {
  font-size: 1.28rem;
}

.team-grid--members .team-person__role {
  font-size: 0.95rem;
}

.team-person {
  text-align: center;
}

.team-person__photo {
  width: 10rem;
  height: 10rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(45, 106, 79, 0.2);
  box-shadow: 0 12px 32px rgba(27, 67, 50, 0.12);
  background: var(--light-accent);
  flex-shrink: 0;
}

.team-grid--directors .team-person__photo {
  width: min(100%, 18rem);
  height: min(100%, 18rem);
  max-width: 18rem;
  border-width: 5px;
  border-color: rgba(82, 183, 136, 0.55);
  box-shadow: 0 16px 40px rgba(27, 67, 50, 0.18);
}

.team-person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-person__name {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--nav-solid);
}

.team-grid--directors .team-person__name {
  font-size: 1.35rem;
}

.team-person__role {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

/* Join band */

.team-join {
  padding: clamp(3rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--nav-solid);
  color: var(--white);
  text-align: center;
}

.team-join h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
}

.team-join__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 4px;
  background: var(--accent);
  color: var(--nav-solid);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.team-join__btn:hover {
  background: #74c69d;
  transform: translateY(-1px);
}

.team-join__btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Partners */

.team-partners__lede {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.team-partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto 2rem;
  list-style: none;
  padding: 0;
}

.team-partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid rgba(45, 106, 79, 0.12);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.06);
}

.team-partners__item img {
  max-width: 100%;
  max-height: 4.25rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.team-partners__logo--flip {
  transform: rotate(180deg);
}

.team-partners__cta {
  text-align: center;
}

.team-partners__cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid rgba(82, 183, 136, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.team-partners__cta a:hover {
  color: var(--nav-solid);
  border-color: var(--accent);
}

.team-partners__cta svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

/* How can you help */

.team-help {
  position: relative;
  padding: clamp(4.5rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3.5rem, 7vw, 5rem);
  overflow: hidden;
}

.team-help__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=2000') center 32% / cover no-repeat;
}

.team-help__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(13, 31, 23, 0.55) 0%,
      rgba(27, 67, 50, 0.45) 45%,
      rgba(45, 106, 79, 0.5) 100%
    ),
    linear-gradient(
      180deg,
      rgba(27, 67, 50, 0.72) 0%,
      rgba(45, 106, 79, 0.78) 50%,
      rgba(27, 67, 50, 0.85) 100%
    );
}

.team-help__inner {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
}

.team-help__head {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4rem);
}

.team-help__head h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.team-help__head h2 strong {
  font-weight: 900;
}

.team-help__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 2.75rem);
  align-items: start;
}

.team-help-card {
  position: relative;
  padding: 4.5rem 1.5rem 1.75rem;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.team-help-card__avatar-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  background: var(--light-accent);
}

.team-help-card__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-help-card__body {
  text-align: left;
}

.team-help-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.team-help-card p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.team-help-card__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.team-help-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--nav-solid);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.team-help-card__links a:hover {
  color: var(--primary);
  gap: 0.7rem;
}

.team-help-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--nav-solid);
}

.team-help-card__arrow svg {
  width: 0.95rem;
  height: 0.95rem;
}

@media (max-width: 1024px) {
  .team-grid--tech {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .team-grid--members,
  .team-grid--tech,
  .team-grid--education {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-help__grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .team-grid--directors {
    grid-template-columns: 1fr;
  }

  .team-person__photo {
    width: 8.5rem;
    height: 8.5rem;
  }

  .team-grid--members .team-person__photo {
    width: 10.25rem;
    height: 10.25rem;
  }

  .team-grid--members .team-person__name {
    font-size: 1.15rem;
  }

  .team-grid--directors .team-person__photo {
    width: min(100%, 14rem);
    height: min(100%, 14rem);
    max-width: 14rem;
  }

  .team-hero__title {
    max-width: 100%;
  }

  .team-partners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
