/* ========================================
   TEAM PAGE STYLES
======================================== */

/* ========== HERO ========== */
.hero {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-inline: 9.8rem;
  padding-block: min(29rem, 29vh) min(8rem, 8vh);
  position: relative;
  width: 100%;
  height: fit-content;
  min-height: 600px;
  isolation: isolate;
  overflow: hidden;
  height: 100vh;
}

@media screen and (orientation: portrait) {
  .hero {
    padding-inline: 1.5rem;
    padding-block: 16.8rem min(5.4rem, 5.4vh);
    position: relative;
  }
}

.hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.hero .hero__flex {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero .hero__flex .uptown-link-t1 {
  opacity: 0;
  visibility: hidden;
}

.hero .hero__flex .hero__heading {
  display: grid;
  width: fit-content;
  color: #fff;
  font-size: min(18rem, 18vh);
  line-height: 1;
  opacity: 0;
  visibility: hidden;
}

@media screen and (orientation: portrait) {
  .hero .hero__flex .uptown-link-t1 {
    margin-bottom: 1.7rem;
  }

  .hero .hero__flex .hero__heading {
    font-size: 5rem;
  }
}

.hero .hero__flex .hero__heading span {
}

.hero .hero__flex .hero__heading span:nth-child(2) {
  margin-left: 18rem;
}

@media screen and (orientation: portrait) {
  .hero .hero__flex .hero__heading span:nth-child(2) {
    margin-left: 5rem;
  }
}

.hero .hero__flex .hero__description {
  max-width: 50.5rem;
  color: #c1c1c1;
  font-size: 2.5rem;
  line-height: normal;
  margin-top: auto;
  opacity: 0;
  visibility: hidden;
}

@media screen and (orientation: portrait) {
  .hero .hero__flex .hero__description {
    max-width: 28.5rem;
    font-size: 1.4rem;
  }
}

/* ========== TEAM ========== */
.team {
  background: #fff;
  padding-block: 10rem 12rem;
  position: relative;
}

.team::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url(/assets/images/patterns/lines-4.webp);
  mask-image: linear-gradient(transparent 5%, black 30%, black 90%, transparent 99%);
  user-select: none;
  background-size: contain;
  pointer-events: none;
}

@media screen and (orientation: portrait) {
  .team {
    padding-block: 6rem 6.5rem;
  }

  .team::before {
    background-image: unset;
  }
}

/* flex wrapper  */
.team .team-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 6.5rem;
}

@media screen and (orientation: portrait) {
  .team .team-flex {
    padding-inline: 1.5rem;
    gap: 2rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/* heading  */
.team .team-flex .team-heading {
  display: grid;
}

.team .team-flex .team-heading span {
  color: #009ca8;
  font-size: 8rem;
  line-height: 135%;
  text-transform: uppercase;
}
.team .team-flex .team-heading span:nth-child(2) {
  color: #171717;
}

.team .team-flex .team-text {
  color: #171717;
  font-size: 2.2rem;
  line-height: normal;
  max-width: 40.8rem;
}

@media screen and (orientation: portrait) {
  .team .team-flex .team-heading span {
    font-size: 3.5rem;
    line-height: 120%;
    max-width: 29.5rem;
  }

  .team .team-flex .team-text {
    font-size: 1.4rem;
    max-width: 29rem;
  }
}

/* grid  */
.team .team-grid {
  display: grid;
  padding-block: min(12rem, 12vh) 0;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(67.5rem, auto);
  gap: 11rem 12rem;
  padding-inline: 9.5rem;
  justify-items: center;
  position: relative;
  z-index: 1;
}

@media screen and (orientation: portrait) {
  .team .team-grid {
    padding-block: 5.5rem 0;
    padding-inline: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(22.4rem, auto);
    gap: 3.5rem 1rem;
  }
}

.team .team-grid .team-grid__item:nth-child(1) {
  grid-column: 1 / span 3;
  width: auto;
}

.team .team-grid .team-grid__item:nth-child(1) .team-grid__item-wrapper {
  width: 50rem;
}


@media screen and (orientation: portrait) {
  .team .team-grid .team-grid__item:nth-child(1) {
    grid-column: 1 / span 2;
  }

  .team .team-grid .team-grid__item:nth-child(1) .team-grid__item-wrapper {
    width:100%;
  }
  
}

.team .team-grid .team-grid__item {
  width: 100%;
}

.team-grid__item-wrapper {
  width: 100%;
  height: 100%;
  margin-inline: auto;
}

@media screen and (orientation: portrait) {
  .team-grid__item-wrapper {
    width: min(100%, 18rem);
  }
}

.team-grid__item-wrapper img {
  height: 56.2rem;
  margin-bottom: 3.7rem;
  mask-image: linear-gradient(to bottom, black 60%, transparent);
  transition: var(--transition);
  object-fit: contain;
}

@media screen and (orientation: portrait) {
  .team-grid__item-wrapper img {
    height: 18.5rem;
    margin-bottom: 1.2rem;
  }
}

.team-grid__item-wrapper .team-grid__item-rol {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
  height: fit-content;
  margin-bottom: 2rem;
  text-transform: uppercase;
  transition: var(--transition);
}

@media screen and (orientation: portrait) {
  .team-grid__item-wrapper .team-grid__item-rol {
    gap: 0.3rem;
    margin-bottom: 1rem;
  }
}

.team-grid__item-wrapper .team-grid__item-rol .team-grid__item-rol-icon {
  width: 1.2rem;
  height: 1.2rem;
  transform: rotate(-43.264deg);
  flex-shrink: 0;
  background: #009ca8;
}

@media screen and (orientation: portrait) {
  .team-grid__item-wrapper .team-grid__item-rol .team-grid__item-rol-icon {
    width: 0.4rem;
    height: 0.4rem;
  }
}

.team-grid__item-wrapper .team-grid__item-rol .team-grid__item-rol-text {
  color: #009ca8;
  font-size: 2rem;
  line-height: normal;
  text-align: center;
}

@media screen and (orientation: portrait) {
  .team-grid__item-wrapper .team-grid__item-rol .team-grid__item-rol-text {
    font-size: 0.65rem;
  }
}

.team-grid__item-wrapper .team-grid__item-name {
  color: #171717;
  text-align: center;
  font-size: 4rem;
  line-height: 90%;
  text-transform: uppercase;
  transition: var(--transition);
}

@media screen and (orientation: portrait) {
  .team-grid__item-wrapper .team-grid__item-name {
    font-size: 1.31rem;
    line-height: 90%;
  }
}

.team__cta {
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.team__cta .CTA-btn .CTA-btn__blur {
  opacity: 0.3;
}

.team__cta .CTA-btn .CTA-btn__inner .CTA-btn__icon {
  width: 0.8rem;
  height: 0.8rem;
}

.team__cta .CTA-btn .CTA-btn__inner .CTA-btn__text {
  color: #009ca8;
}

/* STATES  */
.team .team-grid .team-grid__item.--not-active {
  pointer-events: none;
  position: absolute;
  opacity: 0;
}

.team .team-grid .team-grid__item.--is-next img {
  mask-image: linear-gradient(to bottom, black 0%, transparent);
  opacity: 0.5;
}
.team .team-grid .team-grid__item.--is-next :is(.team-grid__item-rol, .team-grid__item-name) {
  display: none;
}

/* ========== SHOWCASE ========== */
.showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  padding: 7rem 7.5rem;
  isolation: isolate;
}

@media screen and (orientation: portrait) {
  .showcase {
    align-items: flex-start;
    min-height: 400px;
    padding: 6.5rem 1.5rem 4rem;
  }
}

.showcase video {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.showcase [data-video-layer] {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.403);
  pointer-events: none;
  user-select: none;
  transition: var(--transition);
  opacity: 0;
}

.showcase [data-controls-wrapper] {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 17rem;
  height: 17rem;
  border-radius: 100%;
  border: 1.5px solid #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

@media screen and (orientation: portrait) {
  .showcase [data-controls-wrapper] {
    width: 12rem;
    height: 12rem;
    border: 1px solid #fff;
  }
}

.showcase .showcase-play__btn {
  width: 3.5rem;
  height: 3.8rem;
  margin-left: 1rem;
}

@media screen and (orientation: portrait) {
  .showcase [data-video-layer] {
    display: none;
  }

  .showcase .showcase-play__btn {
    width: 2.4rem;
    height: 2.6rem;
    margin-left: 0.5rem;
  }
}

.showcase .showcase-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #fff;
  pointer-events: none;
}

.showcase .showcase-flex .showcase-heading {
  font-size: 4.5rem;
  line-height: 120%;
  text-transform: uppercase;
}

@media screen and (orientation: portrait) {
  .showcase .showcase-flex {
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
    height: 100%;
  }

  .showcase .showcase-flex .showcase-heading {
    font-size: 3.5rem;
    line-height: 120%;
    width: 27.2rem;
  }
}

.showcase .showcase-flex .showcase-description {
  font-size: 2.5rem;
  line-height: normal;
  max-width: 52rem;
}

@media screen and (orientation: portrait) {
  .showcase .showcase-flex .showcase-description {
    font-size: 1.4rem;
    max-width: 26rem;
  }
}

video::-webkit-media-controls-panel {
  opacity: 0;
  transition: var(--transition);
  transform: translateY(30px);
}

@media screen and (orientation: portrait) {
}

[data-video-wrapper].show-controls video::-webkit-media-controls-panel {
  opacity: 1;
  transform: translateY(0px);
}

[data-video-wrapper][data-video-playing="false"] [data-video-layer] {
  opacity: 1;
}
