.social-grid {
  display: flex;
  gap: var(--spacing-xxl);
  justify-content: center;
  padding: var(--spacing-lg) 0 0;
  width: 100%;
}
.social-links-invisible .btn--social {
  opacity: 0.001;
}
.btn--social {
  align-items: center;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 110px;
  opacity: 0.001;
  padding: 0;
  text-align: center;
  transition: transform 0.3s ease;
  white-space: nowrap;
  will-change: opacity, transform;
}
.social-links-visible .btn--social {
  animation: fadeIn 0.5s ease-in forwards;
}
.btn--social:focus-visible,
.btn--social:hover {
  color: var(--color-cloud);
  transform: scale(1.05) translateY(-2px);
}
.btn--social i {
  color: var(--text-light);
  font-size: 3.2rem;
  margin-bottom: 0.75rem;
  transition:
    color 0.3s ease,
    transform 0.3s ease,
    text-shadow 0.3s ease;
}
.btn--social span {
  display: block;
  font-size: 1rem;
  font-weight: 500;
}
.social-links-visible .btn--social:first-child {
  animation-delay: 0.2s;
}
.social-links-visible .btn--social:nth-child(2) {
  animation-delay: 0.4s;
}
.social-links-visible .btn--social:nth-child(3) {
  animation-delay: 0.6s;
}
.social-links-visible .btn--social:nth-child(4) {
  animation-delay: 0.8s;
}
.social-links-visible .btn--social:nth-child(5) {
  animation-delay: 1s;
}
.btn--social:focus {
  outline: none;
  -webkit-text-fill-color: initial;
  text-shadow: none;
}
.btn--social.social-button-fb:hover,
.btn--social.social-button-ig:hover,
.btn--social.social-button-tt:hover,
.btn--social.social-button-x:hover,
.btn--social.social-button-yt:hover,
.btn--social:focus {
  background: none;
  color: var(--text-light);
}
.btn--social.social-button-yt:focus-visible i,
.btn--social.social-button-yt:hover i {
  color: var(--color-brand-youtube);
}
.btn--social.social-button-x:focus-visible i,
.btn--social.social-button-x:hover i {
  color: var(--color-brand-twitter-x);
}
.btn--social.social-button-fb:focus-visible i,
.btn--social.social-button-fb:hover i {
  color: var(--color-brand-facebook);
}
.btn--social.social-button-tt:focus-visible i,
.btn--social.social-button-tt:hover i {
  color: var(--color-brand-tik-tok);
  text-shadow: 0 0 5px var(--color-brand-tik-tok-glow);
}
.btn--social.social-button-ig:focus-visible i,
.btn--social.social-button-ig:hover i {
  background: radial-gradient(
    circle at 30% 107%,
    var(--color-brand-instagram-1) 0,
    var(--color-brand-instagram-1) 5%,
    var(--color-brand-instagram-2) 45%,
    var(--color-brand-instagram-3) 60%,
    var(--color-brand-instagram-4) 90%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (pointer: coarse) {
  .btn--social,
  .btn--social:focus,
  .btn--social:hover {
    background: none;
    background-clip: initial;
    -webkit-background-clip: initial;
    color: var(--text-light);
    transform: none;
    -webkit-text-fill-color: initial;
    text-shadow: none;
  }
  .btn--social:active {
    transform: scale(1.05);
  }
  .btn--social.social-button-yt:active,
  .btn--social:active {
    color: var(--youtube);
  }
  .btn--social.social-button-x:active {
    color: var(--color-brand-twitter-x);
  }
  .btn--social.social-button-fb:active {
    color: var(--color-brand-facebook);
  }
  .btn--social.social-button-tt:active {
    color: var(--color-brand-tik-tok);
    text-shadow: 0 0 5px var(--color-brand-tik-tok-glow);
  }
  .btn--social.social-button-ig:active {
    background: radial-gradient(
      circle at 30% 107%,
      var(--color-brand-instagram-1) 0,
      var(--color-brand-instagram-1) 5%,
      var(--color-brand-instagram-2) 45%,
      var(--color-brand-instagram-3) 60%,
      var(--color-brand-instagram-4) 90%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
@media (max-width: 768px) {
  .social-links {
    padding: var(--spacing-xxl) 0;
  }
  .social-grid {
    gap: var(--spacing-xs);
    padding: var(--spacing-md) 0 0;
  }
  .btn--social {
    min-width: 68px;
    width: 100%;
  }
  .btn--social i {
    font-size: 2.2rem;
    margin-bottom: 0.45rem;
  }
  .btn--social span {
    font-size: 0.85rem;
  }
  .btn--social:focus-visible,
  .btn--social:hover {
    transform: scale(1.02);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn--social {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
