.reference-nav__desktop-links.gooey-nav {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: rgba(7, 7, 10, .88);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.reference-nav__desktop-links.gooey-nav .reference-nav__desktop-link {
  position: relative;
  z-index: 4;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  transition: color 260ms ease, opacity 260ms ease;
}

.reference-nav__desktop-links.gooey-nav .reference-nav__desktop-link:hover,
.reference-nav__desktop-links.gooey-nav .reference-nav__desktop-link.is-gooey-active {
  background: transparent;
  color: #fff;
  opacity: 1;
}

.gooey-nav__effect {
  --gooey-x: 0px;
  --gooey-y: 0px;
  --gooey-width: 0px;
  --gooey-height: 0px;
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: var(--gooey-width);
  height: var(--gooey-height);
  pointer-events: none;
  transform: translate3d(var(--gooey-x), var(--gooey-y), 0);
  transition:
    width 600ms cubic-bezier(.22, 1, .36, 1),
    height 600ms cubic-bezier(.22, 1, .36, 1),
    transform 600ms cubic-bezier(.22, 1, .36, 1);
  will-change: width, height, transform;
}

.gooey-nav__liquid {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: transparent;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25rem;
  white-space: nowrap;
  border: 1px solid rgba(203, 166, 255, .5);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 18%, rgba(231, 208, 255, .42), transparent 34%),
    linear-gradient(120deg, rgba(85, 50, 190, .92), rgba(151, 73, 255, .88) 52%, rgba(84, 96, 255, .82));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .11),
    inset 0 -7px 16px rgba(56, 18, 122, .28),
    0 7px 22px rgba(104, 56, 255, .34),
    0 0 25px rgba(171, 94, 255, .2);
}

.gooey-nav__liquid::before,
.gooey-nav__liquid::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
  filter: blur(2px);
}

.gooey-nav__effect.is-animating .gooey-nav__liquid {
  animation: gooey-nav-pulse 760ms cubic-bezier(.18, .82, .24, 1) both;
}

.gooey-nav__effect.is-animating .gooey-nav__liquid::before {
  width: 18px;
  height: 18px;
  left: 5%;
  top: 38%;
  animation: gooey-nav-satellite-left 720ms ease-out both;
}

.gooey-nav__effect.is-animating .gooey-nav__liquid::after {
  width: 14px;
  height: 14px;
  right: 4%;
  bottom: 10%;
  animation: gooey-nav-satellite-right 780ms ease-out both;
}

.gooey-nav__particle {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px;
  opacity: 0;
  transform: translate3d(var(--start-x), var(--start-y), 0) rotate(var(--particle-rotate)) scale(var(--particle-scale));
  animation: gooey-nav-particle var(--particle-time) cubic-bezier(.16, .76, .22, 1) var(--particle-delay) both;
}

.gooey-nav__point {
  display: block;
  width: 7px;
  height: 7px;
  margin: 7px;
  border-radius: 50%;
  background: var(--particle-color);
  box-shadow: 0 0 12px 2px var(--particle-color);
  animation: gooey-nav-point var(--particle-time) ease-in-out var(--particle-delay) both;
}

@keyframes gooey-nav-particle {
  0% { opacity: 0; transform: translate3d(var(--start-x), var(--start-y), 0) rotate(0deg) scale(.35); }
  18% { opacity: 1; }
  72% { opacity: .92; }
  100% { opacity: 0; transform: translate3d(var(--end-x), var(--end-y), 0) rotate(var(--particle-rotate)) scale(var(--particle-scale)); }
}

@keyframes gooey-nav-point {
  0% { transform: scale(.2); filter: blur(1px); }
  38% { transform: scale(1.1); filter: blur(0); }
  100% { transform: scale(.06); filter: blur(1px); }
}

@keyframes gooey-nav-pulse {
  0% { transform: scale(.78); filter: saturate(1.5) brightness(1.2); }
  52% { transform: scale(1.09, .92); }
  100% { transform: scale(1); filter: none; }
}

@keyframes gooey-nav-satellite-left {
  0% { opacity: .9; transform: translate3d(-25px, -50%, 0) scale(.2); }
  100% { opacity: 0; transform: translate3d(7px, -50%, 0) scale(.9); }
}

@keyframes gooey-nav-satellite-right {
  0% { opacity: .82; transform: translate3d(26px, 12px, 0) scale(.25); }
  100% { opacity: 0; transform: translate3d(-5px, -2px, 0) scale(.85); }
}

@media (prefers-reduced-motion: reduce) {
  .gooey-nav__effect { transition-duration: .01ms; }
  .gooey-nav__particle,
  .gooey-nav__liquid::before,
  .gooey-nav__liquid::after { display: none; }
  .gooey-nav__effect.is-animating .gooey-nav__liquid { animation: none; }
}
