.metal-drops {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .metal-drops {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .metal-drops > i {
    /* Coordinates follow the baked highlights on the S and g. */
    --tip-x: 11.555%;
    --tip-y: 55.898%;
    --travel: 880%;
    position: absolute;
    left: var(--tip-x);
    top: var(--tip-y);
    width: 0.56%;
    min-width: 2px;
    aspect-ratio: 0.78;
    border-radius: 51% 49% 49% 51% / 71% 70% 30% 29%;
    background:
      radial-gradient(ellipse at 34% 29%, #f3fbff 0%, #d0e0e8 6%, transparent 24%),
      radial-gradient(ellipse at 52% 89%, #adc5d6 0%, transparent 26%),
      linear-gradient(111deg, #172532 5%, #97b4c4 24%, #425863 40%, #101a22 59%, #536975 84%, #b9d2dd 100%);
    transform-origin: 50% 0;
    opacity: 0;
    animation: liquid-metal-release 7.8s linear -4.6s infinite;
  }

  .metal-drops > i:nth-child(2) {
    --tip-x: 87.368%;
    --tip-y: 58.448%;
    --travel: 740%;
    animation-duration: 9.7s;
    animation-delay: -2.1s;
  }

  @keyframes liquid-metal-release {
    0%, 52% {
      opacity: 0;
      transform: translate(-50%, -25%) scale(0.3, 0.22);
    }
    62% {
      opacity: 0.72;
      transform: translate(-50%, -25%) scale(0.78, 0.6);
    }
    73% {
      opacity: 0.96;
      transform: translate(-50%, -18%) scale(0.94, 1.04);
      animation-timing-function: ease-in;
    }
    77% {
      opacity: 0.96;
      transform: translate(-50%, 12%) scale(0.77, 1.27);
      animation-timing-function: cubic-bezier(0.45, 0, 0.8, 0.64);
    }
    84% {
      opacity: 0.76;
      transform: translate(-50%, calc(var(--travel) * 0.36)) scale(0.86, 0.94);
      animation-timing-function: ease-in;
    }
    89%, 100% {
      opacity: 0;
      transform: translate(-50%, var(--travel)) scale(0.73, 0.8);
    }
  }
}

@media (prefers-reduced-motion: no-preference) and (max-aspect-ratio: 4/5) {
  .metal-drops > i {
    /* The upper bead clears the second line of the portrait wordmark. */
    --tip-x: 69.330%;
    --tip-y: 29.904%;
    --travel: 410%;
    width: 0.95%;
  }

  .metal-drops > i:nth-child(2) {
    --tip-x: 82.752%;
    --tip-y: 49.641%;
    --travel: 850%;
  }
}
