.site-footer {
  /* Clip the decorative ticker without creating a nested scroll container. */
  overflow: clip;
  color: white;
}

.site-footer a {
  color: white;
}

.site-footer__ticker {
  display: flex;
  width: max-content;
  color: #272727;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  animation: footer-marquee 24s linear infinite;
}

/* Equal groups cover the viewport even when a page has a short phrase. */
.site-footer__ticker > span {
  flex: 0 0 auto;
  min-width: 100vw;
}

@keyframes footer-marquee {
  to {
    transform: translateX(-50%);
  }
}

.site-footer__inner {
  padding-block: 2rem;
}

.site-footer__brand {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.site-footer__logo {
  position: relative;
  display: block;
  width: 7.5rem;
  height: 1.325rem;
}

.site-footer__logo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-footer__logo svg:last-child {
  display: block;
  clip-path: inset(0 84% 0 0);
}
.site-footer__logo svg:first-child {
  filter: brightness(0) invert(1);
}

.site-footer__brand small {
  color: #999999;
}

.site-footer__brand .button {
  width: fit-content;
  margin-top: 1rem;
  color: #272727;
  background: white;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1rem;
}

.site-footer__nav div {
  display: grid;
  align-content: start;
  gap: 1rem;
}
.site-footer__nav span {
  margin-top: 1rem;
  color: #b8b8b8;
}
.site-footer__nav a {
  font-weight: 600;
}
.site-footer__contacts a {
  font-size: 1.25rem;
}
.site-footer__contacts a:nth-last-child(-n + 2) {
  text-decoration: underline;
}

.site-footer__description {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #272727;
  color: #999999;
  font-size: 0.75rem;
}

@media (min-width: 1024px) {
  .site-footer__ticker {
    font-size: 7rem;
    color: #272727;
  }
  .site-footer__inner {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 3rem;
    padding-top: 3rem;
  }
  .site-footer__brand {
    margin: 0;
  }
  .site-footer__brand .button {
    height: 3.5rem;
    padding-block: 0;
  }
  .site-footer__nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
  .site-footer__nav span {
    margin-top: 0;
    color: #999999;
  }
  .site-footer__description {
    grid-column: 1 / -1;
    border-color: #272727;
    color: #999999;
  }
}

/* One shared footer appearance, matching the homepage. */
.site-footer {
  background: #fff;
  color: #272727;
}
.site-footer a {
  color: #272727;
}
.site-footer__ticker {
  color: #e6e6e6;
}
.site-footer__logo svg:first-child {
  filter: none;
}
.site-footer__brand .button {
  background: #272727;
  color: #fff;
}
.site-footer__description {
  border-color: #e6e6e6;
  color: #999;
}
.site-footer__nav > div {
  min-width: 0;
}
.site-footer__nav a {
  overflow-wrap: anywhere;
}
