/* ==========================================================================
   Footer / contact: onyx block
   ========================================================================== */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
  /* extra bottom room so the floating "Pause motion" button never covers text */
  padding: var(--section-y) var(--gutter) calc(76px + env(safe-area-inset-bottom, 0px));
  background: var(--color-band);
  color: var(--color-on-band);
}

.site-footer :focus-visible {
  outline-color: var(--color-on-band);
}

/* "Let's build it right." Lines slide up when scrolled into view (reveal.js) */
.site-footer__title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-weight: var(--weight-display);
  font-size: clamp(30px, 9.4vw, 148px);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Pitch and the "Lately" photo strip share one row, aligned at the bottom;
   the strip sits on the right, above the "Email me" card. */
.site-footer__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

.site-footer__pitch {
  max-width: 520px;
  margin: 0;
  font-size: var(--text-lead);
  color: var(--color-on-dark);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(237, 232, 227, .2);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.site-footer__copyright {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--color-subtle);
}

/* ---- "Lately": a quiet strip of small photos above the bottom bar.
        Faded until hovered; deliberately small so it stays in the background. ---- */
.footer-gallery {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(100%, 440px);
}

.footer-gallery__label {
  color: var(--color-subtle);
}

.footer-gallery__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.footer-gallery__item {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgb(var(--paper-rgb) / .08);
}

.footer-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  filter: grayscale(.4);
  transition: opacity 300ms ease, filter 300ms ease, transform 600ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .footer-gallery__item:hover img { opacity: 1; filter: none; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not(.motion-off) .footer-gallery__item:hover img { transform: scale(1.1); }
}

@media (max-width: 700px) {
  .footer-gallery { align-items: flex-start; width: 100%; }
}

@media (max-width: 560px) {
  .footer-gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
