.footer {
  padding: 48px 5.5% 28px;
  border-top: 1px solid var(--accent);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.footer .logo {
  font-size: 18px;
}

.footer-description {
  max-width: 360px;
  margin: 18px 0 12px;
  color: #77727b;
  font-size: 16px;
  line-height: 1.8;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-column h2 {
  margin: 0 0 4px;
  color: #8740b5;
  font-size: 14px;
  font-weight: normal;
}

.footer-column a {
  color: #77727b;
  text-decoration: none;
  font-size: 16px;
}

.footer-column a:hover {
  color: #b570ef;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid #242126;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #69636e;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.footer-eyes {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  font-size: 18px;
}

.footer-eyes span {
  opacity: 0;
  animation-duration: 4s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.footer-eyes span:nth-child(1) {
  animation-name: eye-first;
}

.footer-eyes span:nth-child(2) {
  animation-name: eye-second;
}

.footer-eyes span:nth-child(3) {
  animation-name: eye-third;
}

.footer-eyes span:nth-child(4) {
  animation-name: eye-fourth;
}

.footer-art {
  align-self: center;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.footer-art img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  animation: footer-art-glitch 4s linear infinite;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  justify-self: end;
  width: 100%;
  max-width: 380px;
}

@keyframes eye-first {
  0%       { opacity: 1; }
  87.5%    { opacity: 0; }
  100%     { opacity: 0; }
}

@keyframes eye-second {
  0%       { opacity: 0; }
  12.5%    { opacity: 1; }
  75%      { opacity: 0; }
  100%     { opacity: 0; }
}

@keyframes eye-third {
  0%       { opacity: 0; }
  25%      { opacity: 1; }
  62.5%    { opacity: 0; }
  100%     { opacity: 0; }
}

@keyframes eye-fourth {
  0%       { opacity: 0; }
  37.5%    { opacity: 1; }
  50%      { opacity: 0; }
  100%     { opacity: 0; }
}

.footer-eye-icon {
  display: block;
  width: 20px;
  height: 13px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-eyes > span:not(:last-child) .footer-eye-icon {
  filter: brightness(0) invert(1);
}

.footer-eyes > span:last-child {
  filter: none;
}

.footer-eyes > span:last-child .footer-eye-icon {
  filter: none;
}

.footer-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-location .footer-eye-icon {
  filter: grayscale(1);
}

@keyframes footer-art-glitch {
  0%, 92%, 96%, 100% {
    transform: translate(0, 0);
    filter: none;
  }

  92.5% {
    transform: translate(-3px, 1px);
    filter:
    drop-shadow(3px 0 0 #ff0000)
    drop-shadow(-3px 0 0 #9228ed);
  }

  93% {
    transform: translate(3px, -1px);
    filter:
    drop-shadow(-2px 0 0 #ff0000)
    drop-shadow(2px 0 0 #9228ed);
  }

  94% {
    transform: translate(-2px, 0);
    filter: none;
  }

  95% {
    transform: translate(2px, 1px);
    filter:
    drop-shadow(2px 0 0 #ff0000)
    drop-shadow(-2px 0 0 #9228ed);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-eyes span {
    animation: none;
    opacity: 1;
  }

  .footer-art img {
    animation: none;
  }
}
