/* Layered reveal of the verified TikTok traffic-distribution source graphic. */
.portfolio__module--tiktok-funnel {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--background-canvas-default);
}

.portfolio__module--tiktok-funnel .portfolio__module-media {
  position: relative;
  z-index: 0;
  transition: opacity var(--duration-fast) cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio__tiktok-funnel-motion {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  overflow: hidden;
  pointer-events: none;
}

.portfolio__module--tiktok-funnel.is-enhanced .portfolio__module-media {
  opacity: 0;
}

.portfolio__module--tiktok-funnel.is-enhanced .portfolio__tiktok-funnel-motion {
  display: block;
}

.portfolio__tiktok-funnel-base,
.portfolio__tiktok-funnel-mask,
.portfolio__tiktok-funnel-layer {
  position: absolute;
  inset: 0;
  display: block;
}

.portfolio__tiktok-funnel-base,
.portfolio__tiktok-funnel-layer {
  background-image: var(--tiktok-funnel-source);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.portfolio__tiktok-funnel-mask {
  background: var(--background-canvas-default);
  clip-path: var(--tiktok-funnel-clip);
}

.portfolio__tiktok-funnel-layer {
  clip-path: var(--tiktok-funnel-clip);
  transform-origin: var(--tiktok-funnel-origin);
  will-change: opacity, transform;
}

.portfolio__tiktok-funnel-layer--bar {
  opacity: 0;
}

.portfolio__tiktok-funnel-layer--bar-upper {
  transform: scaleY(0.02);
}

.portfolio__tiktok-funnel-layer--bar-lower {
  transform: scaleY(0.02);
}

.portfolio__tiktok-funnel-layer--block {
  opacity: 0;
  transform: scale(0.94);
}

.portfolio__tiktok-funnel-layer--label {
  opacity: 0;
  transform: translate3d(0, var(--space-4), 0);
}

.portfolio__tiktok-funnel-motion.is-playing .portfolio__tiktok-funnel-layer--bar {
  animation: tiktok-funnel-grow var(--duration-slow) cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--tiktok-funnel-delay);
}

.portfolio__tiktok-funnel-motion.is-playing .portfolio__tiktok-funnel-layer--block {
  animation: tiktok-funnel-block-in var(--duration-normal) cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--tiktok-funnel-delay);
}

.portfolio__tiktok-funnel-motion.is-playing .portfolio__tiktok-funnel-layer--label {
  animation: tiktok-funnel-label-in var(--duration-normal) cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--tiktok-funnel-delay);
}

@keyframes tiktok-funnel-grow {
  from {
    opacity: 0;
    transform: scaleY(0.02);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes tiktok-funnel-block-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tiktok-funnel-label-in {
  from {
    opacity: 0;
    transform: translate3d(0, var(--space-4), 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio__module--tiktok-funnel .portfolio__module-media {
    opacity: 1 !important;
  }

  .portfolio__tiktok-funnel-motion {
    display: none !important;
  }
}
