.site-footer {
  padding: 0 0 36px;
  color: rgba(195, 195, 195, 0.72);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.site-footer--static {
  margin-top: 48px;
  zoom: 0.9;
}

.site-footer__rail {
  --footer-gutter: 20px;
  width: var(--page-rail, min(1440px, calc(100% - 2 * var(--footer-gutter))));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.site-footer--static .site-footer__rail {
  border-top: none;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.site-footer .logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.site-footer .logo-lockup img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.765);
}

:is(.site-footer, .topbar__brand) .logo-text {
  display: inline-block;
  font-family: var(--font-wordmark);
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  color: #f1f1f1;
  transform: scaleX(1.18);
  transform-origin: left center;
}

.topbar__brand .logo-text__ai {
  font-weight: 400;
  color: var(--accent);
}

.site-footer .logo-text__ai {
  color: inherit;
  font-weight: 600;
}

.footer-brand > span {
  font-size: 14px;
}

.footer-contact {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.footer-location {
  color: #ababab;
  font-size: 12px;
}

.site-footer a {
  color: rgba(195, 195, 195, 0.62);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-brand > span a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer a:hover {
  color: #e5e5e5;
}

.site-footer p {
  margin: 0;
  color: #ababab;
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-footer {
    padding: 22px 0 40px;
  }

  .site-footer__rail {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-contact {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding: 18px 0 38px;
    font-size: 14px;
  }

  .site-footer__rail {
    --footer-gutter: 14px;
    gap: 20px;
  }

  .footer-contact a {
    display: flex;
    align-items: center;
    min-height: 28px;
  }
}

@media (max-width: 380px) {
  .site-footer__rail {
    --footer-gutter: 10px;
  }
}
