.site-footer {
  min-height: 6.25rem;
  padding: 1rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 2rem;
  color: #fff;
  background: var(--surface-ink);
  font-size: 0.72rem;
}
.site-footer div { display: flex; flex-direction: column; }
.site-footer div span { color: #aaa9a2; }
.site-footer__brand { display: block; width: 5.5rem; height: auto; margin-bottom: 0.2rem; }
.site-footer__brand--mobile { display: none; }
.site-footer a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.site-footer > a:last-child { justify-self: end; }
.site-footer__privacy { appearance: none; border: 0; padding: 0; min-height: 2.75rem; color: #aaa9a2; background: transparent; font: inherit; text-align: start; cursor: pointer; }
.site-footer__privacy:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.25rem; }
.site-footer__privacy:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (max-width: 680px) {
  .site-footer { grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 1rem; padding-inline: 1rem; }
  .site-footer__privacy { grid-column: 1 / -1; }
  .site-footer__brand { max-width: 100%; }
  .site-footer__brand--desktop { display: none; }
  .site-footer__brand--mobile { display: block; width: 8.25rem; }
  .site-footer > [data-contact-email-plain] { display: none; }
}

.portfolio-ar .site-footer { text-align: right; direction: rtl; }
.portfolio-ar .site-footer :is(a,p,span) { letter-spacing: 0; line-height: 1.6; }
.portfolio-ar .site-footer__brand { filter: brightness(0) invert(1); }

.portfolio-footer-frame {
  --gutter: clamp(1rem, 5vw, 5.5rem);
  --surface-ink: #171816;
  line-height: normal;
}
.portfolio-footer-frame .site-footer a { text-decoration: underline; }
