/* Footer 8 editorial layout — built in the site's native HTML/CSS stack. */
.site-footer {
  display: block;
  width: calc(100% - clamp(1rem, 3.25vw, 2.5rem));
  min-height: 0;
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  padding: 0;
  border: 1px solid #222;
  border-radius: 18px;
  background: #030303;
  box-shadow: none;
  color: #f8f8f8;
}

.site-footer__body {
  min-width: 0;
  overflow: hidden;
  border-radius: inherit;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4.2rem);
  min-height: clamp(13.25rem, 17.5vw, 17rem);
  padding: clamp(2.75rem, 5vw, 4rem) clamp(1.75rem, 2.7vw, 3.25rem) 0;
}

.site-footer__identity {
  padding-top: 0.14rem;
}

.site-footer .site-footer__identity > p {
  max-width: 19rem;
  margin: 0 0 1.45rem;
  color: #f4f4f4;
  font-size: clamp(0.86rem, 1.12vw, 1rem);
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}

.site-footer .site-footer__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.site-footer .site-footer__links a {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  flex: 0 0 2.3rem;
  place-items: center;
  border: 1px solid #505050;
  border-radius: 0.65rem;
  background: transparent;
  box-shadow: none;
  color: #c7c7c7;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.site-footer .site-footer__links a::before {
  display: none;
}

.site-footer .site-footer__links a:hover,
.site-footer .site-footer__links a:focus-visible {
  transform: translateY(-2px);
  color: #fff;
  border-color: #aaa;
  background: #181818;
  box-shadow: none;
  outline: none;
}

.site-footer .site-footer__links svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 1.65;
}

.site-footer .site-footer__links span {
  font-size: 0.84rem;
  font-weight: 600;
}

.site-footer__group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.63rem;
  border-top: 1px solid #292929;
  padding-top: 1.3rem;
}

.site-footer__group h2 {
  margin: 0 0 0.24rem;
  color: #fff;
  font: inherit;
  font-size: clamp(0.94rem, 1.35vw, 1.09rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.site-footer__group a {
  color: #c7c7c7;
  font-size: clamp(0.81rem, 1.12vw, 0.95rem);
  font-weight: 400;
  line-height: 1.25;
  transition: color .2s ease;
}

.site-footer__group a:hover,
.site-footer__group a:focus-visible,
.site-footer__bottom-links a:hover,
.site-footer__bottom-links a:focus-visible {
  color: #fff;
}

.site-footer__group a:focus-visible,
.site-footer__bottom-links a:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

.site-footer__wordmark {
  position: relative;
  display: flex;
  width: 100%;
  height: clamp(9rem, 14vw, 15rem);
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  margin-top: clamp(.3rem, 1vw, 1.5rem);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 31%, rgba(0,0,0,.43) 63%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 31%, rgba(0,0,0,.43) 63%, transparent 96%);
}

.site-footer__wordmark img {
  display: block;
  flex: 0 0 auto;
  width: 92%;
  height: auto;
  max-width: none;
  opacity: 0.9;
  user-select: none;
}

.site-footer__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 6.5rem;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.2rem);
  padding: 1.5rem clamp(1.75rem, 2.7vw, 3.25rem);
  border-top: 1px solid #242424;
}

.site-footer .site-footer__bottom p,
.site-footer__bottom-links {
  margin: 0;
  color: #bdbdbd;
  font-size: clamp(0.72rem, 0.95vw, 0.82rem);
  font-weight: 400;
  line-height: 1.5;
}

.site-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2vw, 2rem);
}

.site-footer__bottom-links a {
  color: #bdbdbd;
  transition: color .2s ease;
}

/* Audio belongs inside the footer, not in the old off-screen retractable drawer. */
.site-footer .audio-control,
.site-footer .audio-control:hover,
.site-footer .audio-control:focus-within {
  position: relative;
  inset: auto;
  z-index: 2;
  display: grid;
  width: 13rem;
  height: 2.65rem;
  grid-template-columns: 2.65rem minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid #343434;
  border-radius: .65rem;
  background: #080808;
  color: #dadada;
  box-shadow: none;
  transform: none;
  transition: border-color .2s ease, background .2s ease;
}

.site-footer .audio-control:hover,
.site-footer .audio-control:focus-within {
  border-color: #727272;
  background: #0d0d0d;
}

.site-footer .audio-control::before,
.site-footer .audio-control::after {
  display: none;
}

.site-footer .audio-control__button {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-self: stretch;
  border: 0;
  border-right: 1px solid #343434;
  border-radius: .6rem 0 0 .6rem;
  background: transparent;
  box-shadow: none;
  color: #bdbdbd;
  cursor: pointer;
}

.site-footer .audio-control__button:hover,
.site-footer .audio-control__button:focus-visible,
.site-footer .audio-control__button[aria-pressed="true"] {
  color: #fff;
  background: #191919;
  border-color: #474747;
  box-shadow: none;
  transform: none;
}

.site-footer .audio-control__button:focus-visible {
  outline: 1px solid #fff;
  outline-offset: -3px;
}

.site-footer .audio-control__button svg {
  width: 1.05rem;
  height: 1.05rem;
}

.audio-control__button[aria-pressed="false"] .audio-control__waves,
.audio-control__button[aria-pressed="true"] .audio-control__muted {
  display: none;
}

.audio-control__muted { stroke-width: 1.8; }

.site-footer .audio-control__volume {
  display: flex;
  width: 100%;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0 .8rem;
  touch-action: none;
}

.site-footer .elastic-volume__root {
  min-width: 0;
  height: 2.4rem;
}

.site-footer .elastic-volume__track {
  background: #383838;
}

.site-footer .elastic-volume__range {
  background: #dedede;
}

@media (max-width: 900px) {
  .site-footer__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem 1.5rem;
    min-height: 0;
    padding: 2.5rem 2rem 0;
  }

  .site-footer__identity {
    grid-column: 1 / -1;
  }

  .site-footer .site-footer__identity > p {
    max-width: 27rem;
  }

  .site-footer__wordmark {
    margin-top: 3rem;
  }

  .site-footer__bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 1.5rem;
  }

  .site-footer__bottom > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer {
    width: calc(100% - 1rem);
    margin-bottom: .5rem;
    border-radius: 14px;
  }

  .site-footer__columns {
    gap: 2.25rem .8rem;
    padding: 2rem 1.25rem 0;
  }

  .site-footer .site-footer__identity > p {
    max-width: 19rem;
    margin-bottom: 1.25rem;
    font-size: .94rem;
  }

  .site-footer__group {
    padding-top: 1rem;
  }

  .site-footer__group h2 {
    font-size: .89rem;
  }

  .site-footer__group a {
    font-size: .76rem;
    overflow-wrap: anywhere;
  }

  .site-footer__wordmark {
    height: clamp(5rem, 18vw, 8rem);
    margin-top: 2.8rem;
  }

  .site-footer__wordmark img {
    width: 96%;
  }

  .site-footer__bottom {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: .9rem;
    min-height: 0;
    padding: 1.3rem 1.25rem 1.6rem;
  }

  .site-footer__bottom-links {
    justify-content: flex-start;
    gap: .8rem 1.15rem;
  }

  .site-footer .audio-control {
    width: min(100%, 13rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__links a,
  .site-footer__group a,
  .site-footer__bottom-links a {
    transition: none;
  }
}
