/* Meet the Team — portrait cards */

@media only screen and (max-width: 1349px) {
  .section--team.fp-auto-height,
  .section--team.fp-auto-height .fp-tableCell,
  .fp-auto-height.section--team {
    height: auto !important;
  }

  .section--team .fp-tableCell {
    height: auto !important;
  }
}

@media only screen and (min-width: 1350px) {
  .section--team.fp-auto-height,
  .section--team.fp-auto-height .fp-tableCell,
  .fp-auto-height.section--team {
    height: 100% !important;
  }

  .section--team .fp-tableCell {
    height: 100% !important;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

.section--team .fp-tableCell {
  padding-top: 88px;
  padding-bottom: 40px;
}

.section--team .section__wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  height: auto;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
}

@media only screen and (min-width: 1350px) {
  .fp-viewing-team .header__item-nav {
    opacity: 0;
  }
}

@media only screen and (min-width: 1350px) and (max-width: 1600px) {
  .fp-viewing-team .header__item-logo {
    opacity: 0;
  }
}

@media only screen and (max-width: 1349px) {
  .fp-viewing-team .header__item-nav,
  .fp-viewing-team .header__item-logo {
    opacity: 1;
  }

  .section--team .fp-tableCell {
    padding-top: 40px;
    padding-bottom: 48px;
  }
}

.section--team:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(39, 39, 55, 0.55);
  z-index: -1;
}

.section--team:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url("../img/abstract-2.svg") no-repeat center bottom / 2320px;
  z-index: -2;
  opacity: 0.45;
}

.section--team .section__title {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.section--team .section__subtitle--team {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  color: #a2a7b3;
  margin-top: 4px;
  margin-bottom: 20px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.section--team .section__subtitle--team p {
  margin: 0;
}

.team-section__lede {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px !important;
}

.team-cards {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 24px 1fr 24px 1fr;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 20px;
  gap: 20px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.team-cards__item {
  min-width: 0;
}

.team-card {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1c243a;
  -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  -webkit-transform: translateY(18px);
  transform: translateY(18px);
  -webkit-transition: border-color 0.45s ease, opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--team-delay, 0) * 80ms), -webkit-box-shadow 0.45s ease, -webkit-transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition: border-color 0.45s ease, box-shadow 0.45s ease, opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--team-delay, 0) * 80ms), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.section--team.is-inview .team-card,
.section--team.active .team-card,
.team-card.is-visible {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.team-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #243154;
}

.team-card__photo,
.team-card__fallback {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: var(--team-object-position, 50% 18%);
  object-position: var(--team-object-position, 50% 18%);
  -webkit-transform: scale(1) translateY(0);
  transform: scale(1) translateY(0);
  -webkit-transition: -webkit-transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card__fallback {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: linear-gradient(165deg, #243154 0%, #2c3757 100%);
}

.team-card__media:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  pointer-events: none;
  background: -webkit-linear-gradient(top, rgba(18, 24, 40, 0) 0%, rgba(18, 24, 40, 0.72) 100%);
  background: linear-gradient(to top, rgba(18, 24, 40, 0.78) 0%, rgba(18, 24, 40, 0.28) 55%, rgba(18, 24, 40, 0) 100%);
  z-index: 1;
}

.team-card__bio {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 78px;
  z-index: 2;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  background: rgba(18, 24, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  opacity: 0;
  -webkit-transform: translateY(6px);
  transform: translateY(6px);
  pointer-events: none;
  -webkit-transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), -webkit-transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .team-card__bio {
    background: rgba(18, 24, 40, 0.92);
  }
}

.team-card__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  max-width: calc(100% - 24px);
  padding: 10px 12px 9px;
  border-radius: 10px;
  background: rgba(28, 36, 58, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.team-card__name {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.team-card__role {
  margin: 3px 0 0;
  color: #a9b8d4;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.team-card__linkedin {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: rgba(28, 36, 58, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.88;
  -webkit-transition: opacity 0.2s ease, background-color 0.2s ease, -webkit-transform 0.2s ease;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.team-card__linkedin:hover,
.team-card__linkedin:focus {
  opacity: 1;
  background: rgba(20, 121, 240, 0.9);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

.team-card:focus {
  outline: none;
}

.team-card:focus-visible {
  outline: 2px solid #1479f0;
  outline-offset: 3px;
}

.team-card__linkedin:focus-visible {
  outline: 2px solid #1479f0;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .team-card.is-visible:hover,
  .team-card.is-visible:focus-within {
    border-color: rgba(20, 121, 240, 0.4);
    -webkit-box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
  }

  .team-card.is-visible:hover .team-card__photo,
  .team-card.is-visible:focus-within .team-card__photo,
  .team-card.is-visible:hover .team-card__fallback,
  .team-card.is-visible:focus-within .team-card__fallback {
    -webkit-transform: scale(1.04) translateY(-2px);
    transform: scale(1.04) translateY(-2px);
  }

  .team-card.is-visible:hover .team-card__bio,
  .team-card.is-visible:focus-within .team-card__bio {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@media only screen and (max-width: 1099px) {
  .team-cards {
    -ms-grid-columns: 1fr 20px 1fr;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 20px;
    gap: 20px;
  }

  .section--team .title-h1 {
    font-size: 48px;
  }

  .team-card__bio {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@media only screen and (max-width: 767px) {
  .team-cards {
    padding: 0 16px;
    grid-template-columns: 1fr;
    max-width: 420px;
    grid-gap: 18px;
    gap: 18px;
  }

  .section--team .section__subtitle--team {
    margin-top: 8px;
    margin-bottom: 22px;
    font-size: 15px;
  }

  .section--team .title-h1 {
    font-size: 32px;
  }

  .team-card__bio {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-card__photo,
  .team-card__fallback,
  .team-card__bio,
  .team-card__linkedin {
    -webkit-transition: none !important;
    transition: none !important;
    -webkit-transform: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
