.footer-social {
  margin-top: 24px;
}

.footer-social-title {
  margin: 0 0 16px;
  color: #8fff00;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .21em;
  text-transform: uppercase;
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.footer-social-link {
  --jozi-angle: -4deg;
  --jozi-shadow: 8px 8px 0 #ff3aa7;
  --platform-shadow: 0 10px 24px rgba(24, 119, 242, .42);
  position: relative;
  display: inline-grid !important;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 !important;
  box-sizing: border-box;
  color: #0b0b12 !important;
  border: 2px solid #f7f5fb;
  clip-path: polygon(0 0,80% 0,100% 20%,100% 50%,100% 100%,50% 100%,20% 100%,0 80%,0 50%,0 0,20% 0,50% 0);
  transform: rotate(var(--jozi-angle));
  box-shadow: var(--jozi-shadow);
  isolation: isolate;
  overflow: hidden;
}

.footer-social-link svg {
  position: relative;
  z-index: 3;
  width: 26px;
  height: 26px;
  fill: currentColor;
  filter: drop-shadow(2px 2px 0 rgba(247,245,251,.45));
}

.footer-social-platform-fill {
  position: absolute;
  z-index: 2;
  inset: -2px;
  opacity: 0;
}

.footer-social-link::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 12px;
  height: 12px;
  right: -1px;
  top: -1px;
  background: #f7f5fb;
  clip-path: polygon(50% 0,61% 36%,100% 50%,61% 64%,50% 100%,39% 64%,0 50%,39% 36%);
}

.footer-social-facebook {
  background: #8fff00;
}

.footer-social-facebook .footer-social-platform-fill {
  background: #1877f2;
}

.footer-social-linkedin {
  --jozi-angle: 4deg;
  --jozi-shadow: 8px 8px 0 #8fff00;
  --platform-shadow: 0 10px 24px rgba(10,102,194,.42);
  background: #ff3aa7;
}

.footer-social-linkedin .footer-social-platform-fill {
  background: #0a66c2;
}

.footer-social-instagram {
  --jozi-angle: -3deg;
  --jozi-shadow: 8px 8px 0 #f7f5fb;
  --platform-shadow: 0 10px 24px rgba(214,36,159,.42);
  background: repeating-linear-gradient(135deg,#8fff00 0 10px,#8fff00 10px 14px,#ff3aa7 14px 24px,#ff3aa7 24px 28px);
}

.footer-social-instagram .footer-social-platform-fill {
  background: radial-gradient(circle at 30% 105%,#fdf497 0 7%,#fdf497 8%,#fd5949 38%,#d6249f 62%,#285aeb 92%);
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  outline: none;
  animation: footer-social-shape 3.4s cubic-bezier(.45,0,.55,1) infinite;
}

.footer-social-link:hover .footer-social-platform-fill,
.footer-social-link:focus-visible .footer-social-platform-fill {
  animation: footer-social-fill 3.4s cubic-bezier(.45,0,.55,1) infinite;
}

.footer-social-link:hover svg,
.footer-social-link:focus-visible svg {
  animation: footer-social-symbol 3.4s cubic-bezier(.45,0,.55,1) infinite;
}

.footer-social-link:hover::after,
.footer-social-link:focus-visible::after {
  animation: footer-social-spark 3.4s cubic-bezier(.45,0,.55,1) infinite;
}

@keyframes footer-social-shape {
  0%,100% {
    clip-path: polygon(0 0,80% 0,100% 20%,100% 50%,100% 100%,50% 100%,20% 100%,0 80%,0 50%,0 0,20% 0,50% 0);
    transform: rotate(var(--jozi-angle));
    box-shadow: var(--jozi-shadow);
    border-color: #f7f5fb;
  }
  45%,55% {
    clip-path: polygon(50% 0,75% 7%,93% 25%,100% 50%,93% 75%,75% 93%,50% 100%,25% 93%,7% 75%,0 50%,7% 25%,25% 7%);
    transform: translateY(-7px) rotate(0) scale(1.08);
    box-shadow: var(--platform-shadow);
    border-color: transparent;
  }
}

@keyframes footer-social-fill {
  0%,100% { opacity: 0; }
  45%,55% { opacity: 1; }
}

@keyframes footer-social-symbol {
  0%,100% {
    color: #0b0b12;
    filter: drop-shadow(2px 2px 0 rgba(247,245,251,.45));
    transform: scale(1);
  }
  45%,55% {
    color: #fff;
    filter: none;
    transform: scale(.94);
  }
}

@keyframes footer-social-spark {
  0%,100% { opacity: 1; transform: rotate(0) scale(1); }
  45%,55% { opacity: 0; transform: rotate(135deg) scale(0); }
}

footer > .footer-social {
  width: max-content;
  max-width: calc(100% - 40px);
  margin: 28px auto 0;
}

@media (max-width: 600px) {
  .footer-social-row { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-social-link:hover,
  .footer-social-link:focus-visible,
  .footer-social-link:hover .footer-social-platform-fill,
  .footer-social-link:focus-visible .footer-social-platform-fill,
  .footer-social-link:hover svg,
  .footer-social-link:focus-visible svg,
  .footer-social-link:hover::after,
  .footer-social-link:focus-visible::after {
    animation: none;
  }
}
