.team-scene {
  position: relative;
  z-index: 22;
  background: #000;
  color: #fff;
  font-family: var(--calone-font-sans);
}

.team-profile {
  --team-scroll-progress: 0;
  position: relative;
  min-height: 500vh;
  background: #030303;
}

.team-profile__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: #030303;
}

.team-profile__media,
.team-profile__intro-video,
.team-profile__scroll-video,
.team-profile__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.team-profile__media {
  z-index: 0;
}

.team-profile__intro-video,
.team-profile__scroll-video {
  display: block;
  object-fit: cover;
  background: #030303;
}

.team-profile__intro-video {
  z-index: 0;
  opacity: 1;
}

.team-profile__scroll-video {
  z-index: 1;
  opacity: 0;
  will-change: opacity;
}

.team-profile__shade {
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .12) 38%, rgba(0, 0, 0, .66) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .24), transparent 24%, transparent 68%, rgba(0, 0, 0, .46));
  transition: opacity 680ms var(--ease-calone);
}

.team-profile__content {
  position: absolute;
  top: 50%;
  right: clamp(28px, 5vw, 88px);
  z-index: 3;
  width: min(40vw, 680px);
  max-height: 78svh;
  overflow-y: auto;
  margin: 0;
  padding: 8px 10px 8px 0;
  color: #fff;
  opacity: 0;
  transform: translate3d(42px, -46%, 0);
  filter: blur(8px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .28) transparent;
  transition:
    opacity 680ms var(--ease-calone),
    transform 680ms var(--ease-calone),
    filter 680ms var(--ease-calone);
}

.team-profile.is-intro-complete .team-profile__shade {
  opacity: 1;
}

.team-profile.is-intro-complete .team-profile__content {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
  filter: blur(0);
}

.team-profile__header {
  margin-bottom: clamp(22px, 2.4vw, 34px);
}

.team-profile__header h2 {
  margin: 0;
  font-size: clamp(42px, 4.6vw, 76px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
}

.team-profile__role {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.team-profile__bio {
  max-width: 68ch;
}

.team-profile__paragraph {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(12px, .92vw, 15px);
  font-weight: 400;
  line-height: 1.58;
}

.team-profile__paragraph + .team-profile__paragraph {
  margin-top: 18px;
}

.team-profile__loading {
  position: absolute;
  bottom: 32px;
  left: clamp(24px, 4vw, 64px);
  z-index: 4;
  margin: 0;
  color: rgba(255, 255, 255, .56);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: opacity 300ms ease;
}

.team-profile.is-intro-playing .team-profile__loading::after {
  content: " · em reprodução";
}

.team-profile.is-intro-complete .team-profile__loading {
  opacity: 0;
}

.team-profile.is-video-unavailable .team-profile__scroll-video {
  display: none;
}

html.is-team-scroll-locked,
html.is-team-scroll-locked body {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 900px) {
  .team-profile__content {
    right: 32px;
    width: min(54vw, 620px);
  }

  .team-profile__paragraph {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .team-profile {
    min-height: 440vh;
  }

  .team-profile__sticky {
    min-height: 520px;
  }

  .team-profile__shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, .08) 28%, rgba(0, 0, 0, .82) 100%);
  }

  .team-profile__content {
    top: auto;
    right: 20px;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 20px;
    width: auto;
    max-height: 52svh;
    overflow-y: auto;
    padding: 4px 8px 8px 0;
    transform: translate3d(0, 34px, 0);
  }

  .team-profile.is-intro-complete .team-profile__content {
    transform: translate3d(0, 0, 0);
  }

  .team-profile__header h2 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .team-profile__paragraph {
    font-size: 12px;
    line-height: 1.52;
  }

  .team-profile__loading {
    bottom: 22px;
    left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-profile {
    min-height: 180vh;
  }

  .team-profile__content,
  .team-profile__shade,
  .team-profile__loading {
    transition: none;
  }

  .team-profile__content {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
    filter: none;
  }

  .team-profile__shade {
    opacity: 1;
  }
}
