﻿.team {
  background: #f4f1e9;
  overflow: hidden;
}
.team-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  align-items: end;
  margin-bottom: 58px;
}
.team-intro h2 {
  font-size: clamp(44px, 5vw, 72px);
  margin: 0;
}
.team-intro .body-copy {
  max-width: 480px;
  margin: 0;
}
.team-command {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  min-height: 430px;
  background: #12120f;
  color: #fff;
  box-shadow: 0 28px 70px #28211624;
}
.team-profile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  overflow: hidden;
  background: linear-gradient(145deg, #242015, #11110e);
}
.profile-orbit {
  position: absolute;
  width: 330px;
  height: 330px;
  top: 50%;
  left: 50%;
  border: 1px solid #c7a34c40;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: teamOrbit 18s linear infinite;
}
.profile-orbit:before,
.profile-orbit:after {
  content: "";
  position: absolute;
  border: 1px solid #c7a34c25;
  border-radius: 50%;
  inset: 28px;
}
.profile-orbit:after {
  inset: 62px;
}
.profile-orbit span {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #edd27b;
  border-radius: 50%;
  box-shadow: 0 0 16px #edd27b;
}
.profile-orbit span:nth-child(1) {
  top: 18px;
  left: 50%;
}
.profile-orbit span:nth-child(2) {
  right: 24px;
  bottom: 63px;
}
.profile-orbit span:nth-child(3) {
  left: 35px;
  bottom: 78px;
}
.profile-monogram {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid #c7a34c;
  background: #15130e;
  margin-bottom: 38px;
}
.profile-monogram img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.team-profile .kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}
.team-profile h3 {
  position: relative;
  z-index: 1;
  font-size: 29px;
  margin: 0 0 8px;
}
.team-profile > p:not(.kicker) {
  position: relative;
  z-index: 1;
  color: #b9b5aa;
  font-size: 13px;
  max-width: 310px;
  line-height: 2;
}
.profile-stat {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  margin-top: 23px;
  padding-top: 15px;
  border-top: 1px solid #ffffff1c;
  font-size: 11px;
}
.profile-stat span {
  color: #858178;
}
.profile-stat b {
  color: #edd27b;
}
.team-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #403a2d;
  padding: 1px;
}
.role-card {
  position: relative;
  text-align: right;
  padding: 30px 22px;
  background: #12120f;
  color: #fff;
  border: 0;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}
.role-card:hover,
.role-card.is-active {
  background: #29251b;
  transform: translateY(-7px);
}
.role-card:after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #c7a34c;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.role-card.is-active:after {
  transform: scaleX(1);
}
.role-card > span {
  color: #c7a34c;
  font: 700 11px Manrope;
}
.role-card strong,
.role-card small {
  display: block;
}
.role-card strong {
  font-size: 18px;
  margin-top: 72px;
}
.role-card small {
  color: #aaa59a;
  font-size: 11px;
  margin-top: 4px;
}
.role-card > b {
  position: absolute;
  left: 20px;
  bottom: 25px;
  color: #edd27b;
  font-size: 21px;
}
.team-progress {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px;
  color: #9c978c;
  font-size: 11px;
}
.team-progress i {
  height: 3px;
  flex: 1;
  background: #3b362b;
  position: relative;
}
.team-progress i b {
  display: block;
  width: 100%;
  height: 100%;
  background: #c7a34c;
}
.team-progress strong {
  color: #edd27b;
  font: 700 11px Manrope;
}
.is-swapping {
  animation: teamTextSwap 0.35s ease;
}
@keyframes teamOrbit {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes teamTextSwap {
  50% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 900px) {
  .team-intro {
    gap: 5vw;
  }
  .team-command {
    grid-template-columns: 1fr;
  }
  .team-profile {
    min-height: 350px;
  }
  .team-roles {
    min-height: 300px;
  }
}
@media (max-width: 680px) {
  .team-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 35px;
  }
  .team-command {
    min-height: 0;
  }
  .team-profile {
    padding: 32px 25px;
    min-height: 360px;
  }
  .profile-orbit {
    width: 280px;
    height: 280px;
  }
  .team-roles {
    grid-template-columns: 1fr;
  }
  .role-card {
    min-height: 150px;
  }
  .role-card strong {
    margin-top: 32px;
  }
  .team-progress {
    padding: 18px 14px;
  }
  .team-profile h3 {
    font-size: 25px;
  }
}

