/* Footer, after the "Lotta Stone" spread: one of Ella's photographs full-bleed, the case studies run
   together in the middle with an italic word each and a small raised note, a credit at the top, small
   text in the bottom corners and the mark with the wordmark at bottom centre. No lines. */

.ftr {
  position: relative;
  isolation: isolate;
  min-height: min(100vh, 880px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(24px, 4vh, 48px);
  padding: clamp(84px, 11vh, 108px) var(--gut) clamp(22px, 3.4vh, 36px);
  overflow: hidden;
  background: #000;
  color: #FFFFFF;
  font-family: var(--display);
}
.ftr__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: brightness(1.35) contrast(1.05);
}
.ftr::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 45%, rgba(0, 0, 0, .05), rgba(0, 0, 0, .42));
  pointer-events: none;
}
.ftr a {
  color: inherit;
  text-decoration: none;
}

.ftr__credit {
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .82);
}

/* The run-in list */
.ftr__list {
  grid-row: 2; /* stays in the middle row even on pages without the credit line */
  align-self: center;
  justify-self: center;
  max-width: 1120px;
  margin: 0;
  text-align: center;
  font-size: clamp(26px, 3.3vw, 48px);
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.ftr__list a {
  transition: opacity .3s ease;
}
.ftr__list:hover a {
  opacity: .55;
}
.ftr__list a:hover,
.ftr__list a:focus-visible {
  opacity: 1;
}
.ftr__list i {
  font-style: italic;
}
.ftr__list sup {
  margin-left: .14em;
  font-size: .36em;
  font-style: normal;
  vertical-align: 1.1em;
  letter-spacing: .02em;
}
.ftr__sl {
  margin: 0 .12em;
  opacity: .75;
}

/* Bottom: small text left and right, the mark and wordmark in the middle */
.ftr__base {
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  font-size: 12.5px;
  line-height: 1.45;
}
.ftr__l,
.ftr__r {
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, .86);
}
.ftr__r {
  text-align: right;
}
.ftr__l a:hover {
  color: #FFFFFF;
}
.ftr__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ftr__logo img {
  width: 46px;
  height: auto;
}
.ftr__logo span {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .ftr {
    min-height: 0;
    padding-top: 24px;
  }
  .ftr__list {
    padding-block: 40px;
    font-size: 25px;
  }
  .ftr__base {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }
  .ftr__logo {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

/* Contact handles, each led by the platform's mark as a white outline */
.ftr__l a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ftr__ic {
  flex: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Phones only: the contact footer takes the two thirds of the screen under "What I believe" */
@media (max-width: 1024px) {
  .ftr { min-height: 0 !important; height: 66svh; padding-top: 20px; gap: 14px; align-content: space-between; box-sizing: border-box; }
}

/* Tablets: the footer takes the rest of the screen under the shorter belief band */
@media (min-width: 761px) and (max-width: 1024px) {
  .ftr { height: 78svh; }
}

/* The footer is one full screen on every page and every device */
.ftr { min-height: 100vh; min-height: 100svh; box-sizing: border-box; }
@media (max-width: 1024px) {
  .ftr { height: auto !important; min-height: 100vh !important; min-height: 100svh !important; }
}

/* The run-in line in the middle is the list of sector pages, written on every page by tools/build-locations.py */
.ftr__list a:hover, .ftr__list a:focus-visible { opacity: 1; }
.ftr__list a { white-space: nowrap; } /* a sector name never breaks across two lines */
@media (min-width: 761px) and (max-width: 1024px) { .ftr__list { font-size: clamp(34px, 4.6vw, 46px); max-width: 92%; } } /* tablets: the sector line reads as large as on desktop */
