.team-minds-wrap {
  position: relative;
  z-index: 8;
  padding: 0;
  background: #0a2744;
}

.team-minds {
  margin: 0;
  height: 100vh;
  height: 100dvh;
}

.team-minds-stage {
  position: relative;
  height: 100%;
}

.team-minds-panel {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: clamp(5.5rem, 7vw, 8rem) 0 clamp(4.8rem, 6vh, 7rem);
  background:
    radial-gradient(
      ellipse 70% 45% at 50% -8%,
      rgba(70, 140, 210, 0.22) 0%,
      transparent 58%
    ),
    linear-gradient(180deg, #0c2a48 0%, #081f38 48%, #061828 100%);
  color: #fff;
}

.team-minds-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(48rem, 58%);
  background: url("https://pub-054a1125fc0742889f3b9dd273d56586.r2.dev/SOLLUS-Landing-Page/home/teambg.webp") center bottom / 100% auto no-repeat;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: soft-light;
}

.team-minds-story {
  position: relative;
  z-index: 1;
  height: 100%;
}

.team-minds-copy {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: min(92rem, calc(100% - 6.4rem));
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.team-minds-focus,
.team-minds-overview {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.team-minds-focus {
  justify-content: flex-end;
  width: 100%;
  padding-top: clamp(11rem, 14vw, 16rem);
}

.team-minds-overview {
  justify-content: center;
  gap: clamp(2.4rem, 3.5vw, 4.5rem);
  width: min(128rem, calc(100% - 6.4rem));
  padding-bottom: clamp(1.6rem, 3vh, 3.2rem);
  box-sizing: border-box;
  pointer-events: none;
}

.team-minds-title {
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", "Marcellus", serif;
  font-size: clamp(3.4rem, 4.6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-align: center;
}

.team-minds-desc {
  max-width: 54rem;
  margin: 1.4rem auto 0;
  color: rgba(230, 240, 255, 0.84);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 1.3vw, 1.65rem);
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}

.team-minds-viewport {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.team-minds-track {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 2.5vw, 3.2rem);
  will-change: transform;
  backface-visibility: hidden;
}

.team-minds-slide {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(2rem, 3vw, 4rem);
  width: min(96rem, 68vw);
  transform-origin: center center;
}

.team-minds-slide-media {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  aspect-ratio: 3 / 3.75;
  background: #163853;
  box-shadow: 0 1.8rem 4.4rem rgba(0, 12, 28, 0.4);
  align-self: center;
}

.team-minds-slide-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.team-minds-slide-copy {
  min-width: 0;
  padding-right: clamp(0.5rem, 2vw, 2rem);
}

.team-minds-card-name {
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", "Marcellus", serif;
  font-size: clamp(3rem, 3.6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.team-minds-card-role {
  margin: 1rem 0 0;
  color: rgba(210, 225, 240, 0.72);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 1.45vw, 1.85rem);
  font-weight: 400;
  line-height: 1.4;
}

.team-minds-card-bio {
  max-width: 42rem;
  margin: 1.8rem 0 0;
  color: rgba(230, 240, 255, 0.88);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 1.25vw, 1.6rem);
  font-weight: 400;
  line-height: 1.6;
}

.team-minds-progress {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  width: min(108rem, 86vw);
  margin: clamp(1.6rem, 2.5vw, 2.8rem) auto 0;
  color: rgba(220, 235, 250, 0.55);
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.team-minds-progress-index {
  color: rgba(255, 255, 255, 0.92);
}

.team-minds-progress-sep {
  opacity: 0.55;
}

/* Phase 2 — all three cards */
.team-minds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 2.8vw, 3.6rem);
  width: 100%;
  align-items: start;
}

.team-minds-grid-card {
  min-width: 0;
  text-align: left;
}

.team-minds-grid-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 1.6rem;
  aspect-ratio: 1 / 1.05;
  background: #163853;
  box-shadow: 0 1.4rem 3.2rem rgba(0, 12, 28, 0.35);
}

.team-minds-grid-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.team-minds-grid-name {
  margin: 1.6rem 0 0;
  color: #fff;
  font-family: "Playfair Display", "Marcellus", serif;
  font-size: clamp(2rem, 2.1vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.team-minds-grid-role {
  margin: 0.55rem 0 0;
  color: rgba(220, 235, 250, 0.78);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 1.25vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
}

.team-minds-grid-bio {
  display: none;
}

/* Phase 3 — advisors */
.team-minds-advisors {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: clamp(1rem, 2vh, 2rem) 0 clamp(2.4rem, 4.5vh, 4.5rem);
  box-sizing: border-box;
  text-align: center;
}

.team-minds-advisors-title {
  margin: 0 0 clamp(1.6rem, 2.4vh, 2.8rem);
  color: #fff;
  font-family: "Playfair Display", "Marcellus", serif;
  font-size: clamp(3.2rem, 4vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  flex: 0 0 auto;
}

.team-minds-advisors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.1rem, 1.5vw, 1.8rem) clamp(1.1rem, 1.5vw, 1.8rem);
  width: min(118rem, 100%);
  margin: 0 auto;
  justify-items: stretch;
  align-items: stretch;
  flex: 0 1 auto;
  min-height: 0;
}

.team-minds-advisor {
  display: block;
  width: 100%;
  max-width: none;
  perspective: 1400px;
  text-align: center;
}

.team-minds-advisor-inner {
  position: relative;
  width: 100%;
  min-height: clamp(25rem, 38vh, 32rem);
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-minds-advisor:hover .team-minds-advisor-inner,
.team-minds-advisor:focus-within .team-minds-advisor-inner {
  transform: rotateY(180deg);
}

.team-minds-advisor-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: clamp(1.6rem, 2vw, 2.3rem) clamp(1.3rem, 1.6vw, 1.9rem);
  border-radius: 1.5rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
}

.team-minds-advisor-face.is-front {
  background: linear-gradient(155deg, #0d2740 0%, #163a58 48%, #1c4a6d 100%);
  border: 1px solid rgba(168, 198, 224, 0.18);
  box-shadow: 0 1.2rem 2.8rem rgba(0, 10, 24, 0.28);
}

.team-minds-advisor-face.is-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #0c2238 0%, #143550 100%);
  border: 1px solid rgba(190, 214, 236, 0.55);
  box-shadow: 0 1.2rem 2.8rem rgba(0, 10, 24, 0.28);
  justify-content: center;
  overflow: hidden;
}

.team-minds-advisor-copy {
  min-width: 0;
}

.team-minds-advisor-media {
  width: clamp(10rem, 10.5vw, 13rem);
  height: clamp(10rem, 10.5vw, 13rem);
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  overflow: hidden;
  background: #163853;
  box-shadow: 0 1rem 2.4rem rgba(0, 12, 28, 0.35);
}

.team-minds-advisor-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.team-minds-advisor-name {
  margin: 1.1rem 0 0;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.6rem, 1.5vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.team-minds-advisor-role {
  margin: 0.5rem 0 0;
  color: rgba(210, 225, 240, 0.7);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.25rem, 1.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
}

.team-minds-advisor-bio {
  margin: 0;
  color: rgba(236, 244, 252, 0.94);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.3rem, 1.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
  overflow: auto;
  max-height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .team-minds-advisor-inner {
    transition: none;
  }

  .team-minds-advisor:hover .team-minds-advisor-inner,
  .team-minds-advisor:focus-within .team-minds-advisor-inner {
    transform: none;
  }

  .team-minds-advisor-face.is-back {
    position: relative;
    transform: none;
    margin-top: 1rem;
    min-height: 0;
  }

  .team-minds-advisor-inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .team-minds-advisor-face {
    position: relative;
    inset: auto;
    backface-visibility: visible;
  }
}

@media screen and (max-width: 991px) {
  .team-minds-overview {
    width: calc(100% - 4.8rem);
  }

  .team-minds-slide {
    width: min(84rem, 78vw);
    gap: 2.2rem;
  }

  .team-minds-card-name {
    font-size: clamp(2.6rem, 5vw, 3.6rem);
  }

  .team-minds-grid {
    gap: 1.6rem;
  }

  .team-minds-advisors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(64rem, 100%);
    gap: 1.6rem 1.2rem;
  }

  .team-minds-advisor-inner {
    min-height: clamp(27rem, 40vh, 34rem);
  }

  .team-minds-advisors {
    padding-bottom: clamp(2rem, 4vh, 3.5rem);
  }
}

@media screen and (max-width: 767px) {
  .team-minds-wrap {
    height: auto;
  }

  .team-minds {
    height: auto;
  }

  .team-minds-stage {
    position: relative;
    height: auto;
  }

  .team-minds-panel {
    height: auto;
    overflow: visible;
    padding: 5.6rem 0 6.4rem;
  }

  .team-minds-story {
    height: auto;
    display: flex;
    flex-direction: column;
    width: calc(100% - 3.2rem);
    margin: 0 auto;
  }

  .team-minds-copy {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0 0 3.2rem;
    transform: none;
    pointer-events: auto;
    text-align: left;
  }

  .team-minds-title {
    font-size: clamp(3.2rem, 9vw, 4rem);
    text-align: left;
  }

  .team-minds-desc {
    max-width: none;
    margin: 1.4rem 0 0;
    font-size: 1.35rem;
    text-align: left;
  }

  /* Mobile: static stacked list — hide desktop carousel */
  .team-minds-focus {
    display: none !important;
  }

  .team-minds-overview {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 4.8rem;
    margin: 0;
    pointer-events: auto;
    justify-content: flex-start;
  }

  .team-minds-grid {
    grid-template-columns: 1fr;
    gap: 3.6rem;
  }

  .team-minds-grid-media {
    max-width: none;
    margin: 0;
    border-radius: 1.6rem;
    aspect-ratio: 3 / 3.5;
  }

  .team-minds-grid-card {
    text-align: left;
    will-change: transform, opacity;
  }

  .team-minds-grid-name {
    margin-top: 1.6rem;
    font-size: 2.6rem;
  }

  .team-minds-grid-role {
    margin-top: 0.7rem;
    font-size: 1.4rem;
  }

  .team-minds-grid-bio {
    display: block;
    margin: 1.4rem 0 0;
    color: rgba(230, 240, 255, 0.84);
    font-family: "Montserrat", sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.55;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .team-minds-advisors {
    position: relative;
    inset: auto;
    display: block;
    padding: 0;
    will-change: transform, opacity;
  }

  .team-minds-advisors-title {
    margin: 0 0 2.4rem;
    font-size: 2.8rem;
    text-align: left;
  }

  .team-minds-advisors-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 2rem;
    justify-items: stretch;
  }

  .team-minds-advisor {
    perspective: none;
    will-change: transform, opacity;
  }

  /* One combined card: photo + name row, bio below (matches design) */
  .team-minds-advisor-inner {
    min-height: 0;
    height: auto;
    transform: none !important;
    transform-style: flat;
    transition: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 2rem 1.8rem 2.2rem;
    border-radius: 2rem;
    background: linear-gradient(160deg, #0c2238 0%, #12324c 100%);
    border: 1px solid rgba(210, 225, 240, 0.55);
    box-shadow: 0 1.2rem 2.8rem rgba(0, 10, 24, 0.28);
    box-sizing: border-box;
  }

  .team-minds-advisor:hover .team-minds-advisor-inner,
  .team-minds-advisor:focus-within .team-minds-advisor-inner {
    transform: none !important;
  }

  .team-minds-advisor-face {
    position: relative;
    inset: auto;
    transform: none !important;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    padding: 0;
    gap: 0;
    border-radius: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .team-minds-advisor-face.is-front {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 1.6rem;
  }

  .team-minds-advisor-face.is-back {
    display: block;
    margin-top: 1.6rem;
    justify-content: flex-start;
    overflow: visible;
  }

  .team-minds-advisor-media {
    flex: 0 0 auto;
    width: 8.8rem;
    height: 8.8rem;
    margin: 0;
    box-shadow: none;
  }

  .team-minds-advisor-copy {
    flex: 1 1 auto;
    text-align: left;
  }

  .team-minds-advisor-name {
    margin-top: 0;
    font-family: "Playfair Display", "Marcellus", serif;
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-align: left;
  }

  .team-minds-advisor-role {
    margin-top: 0.55rem;
    font-size: 1.45rem;
    line-height: 1.4;
    color: rgba(190, 208, 228, 0.78);
    text-align: left;
  }

  .team-minds-advisor-bio {
    font-size: 1.55rem;
    line-height: 1.6;
    text-align: left;
    overflow: visible;
    max-height: none;
    color: rgba(244, 248, 252, 0.96);
  }
}
