/* =========================================================================
   Site footer, shared by every page (homepage included): logo-grey band with
   Email / Explore / Projects columns. Markup comes from
   scripts/build-team.py (site_footer). Self-contained: only type.css tokens.
   ========================================================================= */

.site-foot {
  position: relative;
  z-index: 10; /* the homepage's fixed film sits behind */
  background: #dcdddf; /* the logo's circle grey */
  color: #16130f;
  font-family: var(--font-sans);
  padding: clamp(40px, 5vw, 64px) 0 28px;
}

.site-foot .wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.site-foot p {
  margin: 0;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between; /* even gaps between the four columns */
  gap: 2rem;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(22, 19, 15, 0.18);
}

/* Still logo and the transparent clip share one cell. The video stays
   visible (browsers pause muted video they think is hidden); with no frame
   yet it draws nothing, so the still shows through. footer.js adds
   .is-playing once it plays, which hides the still under it. */
.foot-logo {
  justify-self: end; /* last column, pushed to the right edge */
  display: grid;
  width: clamp(90px, 9vw, 120px);
  margin-top: -14px; /* the clip has a margin round the circle */
}

.foot-logo-still,
.foot-logo-video {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
}

.foot-logo.is-playing .foot-logo-still {
  visibility: hidden;
}

/* Instagram, under Projects with its own label: one-colour icon
   (currentColor) beside the handle */
.foot-label.foot-label-next {
  margin-top: 28px;
}

.foot-grid .foot-insta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.foot-insta svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.foot-label {
  display: block;
  margin-bottom: 10px;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: #4e4a44;
}

.foot-grid a,
.foot-grid p {
  display: block;
  font-size: var(--text-body-sm);
  line-height: 1.9;
  color: #2b2824;
}

.foot-grid a:hover {
  color: #16130f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-grid .foot-address {
  max-width: 32ch;
  line-height: 1.6;
  margin-top: 4px;
}

.foot-soon {
  margin-left: 6px;
  font-size: var(--text-fine);
  letter-spacing: var(--track-fine);
  text-transform: uppercase;
  color: #5c5851;
}

.foot-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 20px;
  font-size: var(--text-fine);
  letter-spacing: var(--track-fine);
  text-transform: uppercase;
  color: #4e4a44;
}

@media (max-width: 860px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-logo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}
