* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: #ffffff;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.funnel-field {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  height: 110px;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.particle-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.logo-lockup {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 10px;
  width: 178px;
  aspect-ratio: 125 / 21;
  transform: translateX(-50%);
}

.logo-lockup__mark {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.logo-funnel-target {
  position: absolute;
  z-index: 2;
  top: 31.9%;
  right: 0;
  width: 12.21%;
  height: 68.1%;
  pointer-events: none;
}

.logo-funnel-glow {
  position: absolute;
  z-index: 0;
  top: 29%;
  right: -1%;
  bottom: -5%;
  width: 14.5%;
  border-radius: 5px;
  background: linear-gradient(
    to bottom,
    rgba(159, 143, 232, 0.48),
    rgba(101, 203, 182, 0.34) 48%,
    rgba(109, 184, 223, 0.22)
  );
  filter: blur(6px);
  opacity: 0.22;
  transform-origin: 50% 0;
}

.logo-lockup.is-capturing .logo-funnel-glow {
  animation: capture-glow 720ms ease-out;
}

@keyframes capture-glow {
  0% {
    opacity: 0.08;
    transform: scaleY(0.12) translateY(-4px);
  }
  55% {
    opacity: 0.72;
    transform: scaleY(1) translateY(0);
  }
  100% {
    opacity: 0.22;
    transform: scaleY(1) translateY(0);
  }
}

@media (max-width: 480px) {
  .funnel-field {
    height: 100px;
  }

  .logo-lockup {
    bottom: 10px;
    width: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
