@charset "UTF-8";

/* === TEAM SECTION LAYOUT === */
.team {
  overflow: hidden;
}
.team .title {
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(51px, 11.25rem, 180px);
  line-height: 1;
  margin-bottom: clamp(20px, 3.75rem, 60px);
}
.team .top-text {
  float: right;
  width: 100%;
  max-width: 26.111em;
  font-weight: normal;
  line-height: 1.4;
  font-size: clamp(20px, 2.25rem, 36px);
  margin-bottom: clamp(50px, 12.5rem, 200px);
}
@media (min-width: 1000px) {
  .team .top-text {
    line-height: 1.5;
  }
}

/* === STATIC GRID LAYOUTS === */
.team-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center items always */
  gap: clamp(10px, 2vw, 40px);
  margin-top: -269px;
  padding: 24px;
  margin-bottom: 149px;
}


.team-row.row-3 .team-el {
  flex: 0 1 calc(100% / 3 - 30px);
  max-width: calc(100% / 3 - 30px);
}

.team-row.row-4 .team-el {
  flex: 0 1 calc(100% / 4 - 30px);
  max-width: calc(100% / 4 - 30px);
}


.row-4 {
      margin-top: -169px;
}
@media (max-width: 768px) {
  .team-row.row-3 .team-el,
  .team-row.row-4 .team-el,
  .team-row .team-el {
    flex: 0 0 100% !important;
    max-width: 90% !important;
    margin: 0 auto 40px;
  }

  .team-row {
    flex-direction: column;
    align-items: center;
    padding: 16px;
    margin-top: 0;
    margin-bottom: 60px;
  }

  .team-el .image-wrapper {
    aspect-ratio: 3 / 4;
    height: auto;
    padding-top: 0 !important;
  }
}


/* === SWIPER LAYOUT === */
.slider-team {
  margin: 200px calc(var(--gap) / -2) 0;
  overflow: visible !important;
  width: auto !important;
  --gap: clamp(10px, 3rem, 48px);
  clear: both;
}
.slider-team .swiper-slide {
  padding: 0 calc(var(--gap) / 2);
  width: 33.3333%;
  min-width: 260px;
  display: flex !important;
  flex-direction: column;
}
.slider-team .swiper-slide:first-child {
  margin-left: auto;
}
.slider-team .swiper-slide:last-child {
  margin-right: auto;
}

/* === TEAM CARD === */
.team-el {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  text-align: center;
  font-weight: 500;
  font-size: clamp(18px, 1.6875rem, 27px);
  line-height: 1.19;
  border-radius: clamp(15px, 1.5rem, 24px);
  backface-visibility: hidden;
  overflow: hidden;
  transition: transform 0.8s ease, opacity 0.4s ease;
  transform: translate3d(0, 0, 0);
}

/* === IMAGE WRAPPER LOGIC === */
.team-el .image-wrapper {
  position: relative;
  width: 100%;

  aspect-ratio: 3 / 4;
height: auto;
padding-top: 0; /* disable the old padding trick */

  
  overflow: hidden;
  border-radius: inherit;
  z-index: 1;
}
.team-el .image-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
  border-radius: inherit;
  display: block;
}
.team-el .img-hover {
  opacity: 0;
}
.team-el:hover .img-hover {
  opacity: 1;
  border: 1px solid #919191 !important;
}
.team-el:hover .img-default {
  opacity: 0;
}

/* === VIDEO OVERLAY === */
.team-el video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: inherit;
}
@media (pointer: fine) {
  .team-el video {
    transition: filter 0.4s ease;
    filter: grayscale(100%);
  }
  .team-el:before, .team-el:after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    margin: -1px;
    transition: opacity 0.4s ease;
  }
  /*.team-el:before {
    background: rgba(0, 0, 0, 0.4);
    mix-blend-mode: overlay;
  }*/
  .team-el:hover video {
    filter: grayscale(0%);
  }
  .team-el:hover:before, .team-el:hover:after {
    opacity: 0;
  }
}

/* === TEXT ON IMAGE === */
.team-el .text {
  z-index: 3;
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: clamp(20px, 3rem, 48px) 20px;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.team-el .name {
  font-weight: bold;
  font-size: clamp(27px, 3.15rem, 56px);
  margin-bottom: clamp(5px, 0.5rem, 8px);
  color: white;
  -webkit-text-stroke: 1px rgba(62, 0, 147, 0.96);
  text-shadow:
    -1px -1px 0 rgba(62, 0, 147, 0.96),
     1px -1px 0 rgba(62, 0, 147, 0.96),
    -1px  1px 0 rgba(62, 0, 147, 0.96),
     1px  1px 0 rgba(62, 0, 147, 0.96);
}

/* === SOCIAL ICONS === */
.team-el .soc, .team-el .soc li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.team-el .soc {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(8px, 0.8125rem, 13px);
  margin-top: clamp(15px, 2rem, 32px);
}
.team-el .soc a {
  display: block;
  width: clamp(50px, 5rem, 80px);
  height: clamp(50px, 5rem, 80px);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: clamp(12.5px, 1.25rem, 20px);
}
.team-el .soc a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* === SCROLL-IN ANIMATION === */
.js_detect-scroll:not(.visible) .team-el {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, var(--distance, 40px), 0);
}
.js_detect-scroll.visible .team-row .team-el {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js_detect-scroll.visible .team-row .team-el:nth-child(n) {
  transition-delay: calc((var(--i, 0)) * var(--delay, 120ms));
}
