/* A compact closing block: keep every detail without a second large screen. */
.footer { padding: 32px 0 18px; }
.footer .footer-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto;
  grid-template-areas: "brand agency legal socials";
  align-items: center;
  gap: 18px 32px;
}
.footer .footer-wordmark {
  grid-area: brand;
  font-size: 64px;
  line-height: .95;
}
.footer .footer-top > p:first-of-type { grid-area: agency; }
.footer .footer-top > p:nth-of-type(2) { grid-area: legal; }
.footer .footer-top > :not(.footer-wordmark) {
  justify-self: start;
  text-align: left;
}
.footer .footer-top > div {
  grid-area: socials;
  justify-self: end;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.footer .footer-top a { min-height: 44px; white-space: nowrap; }
.footer .footer-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: 24px;
  padding-top: 14px;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .footer { padding: 24px 0 16px; }
  .footer .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas: "brand agency" "legal socials";
    align-items: start;
    gap: 16px 18px;
  }
  .footer .footer-wordmark { font-size: 42px; }
  .footer .footer-top > p:first-of-type { align-self: center; }
  .footer .footer-top > div {
    flex-direction: column;
    align-items: flex-start;
    justify-self: start;
    gap: 0;
    margin: 0;
  }
  .footer .footer-top a { font-size: 11px; line-height: 1.5; min-height: 30px; }
  .footer .footer-top > p { font-size: 11px; line-height: 1.5; letter-spacing: .02em; }
  .footer .footer-top > p:nth-of-type(2) { line-height: 30px; }
  .footer .footer-bottom {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 16px;
    margin-top: 16px;
    padding-top: 12px;
    letter-spacing: .07em;
  }
  .footer .footer-bottom > a { justify-self: end; text-align: right; }
  .footer .footer-bottom > span:last-child { grid-column: 1 / -1; }
}
