footer {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: 0;
  color: #fff;
  background: var(--charcoal);
}

/* The address: the trade email set large as the call to action, a route
   drifting behind it, and the product ranges running along the bottom edge. */
footer > section {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: clamp(1rem, 2vw, 1.5rem);
  min-height: clamp(30rem, 86vh, 48rem);
  padding: clamp(3rem, 8vh, 5rem) var(--pad) 0;
  overflow: hidden;
  /* The hero's grid on charcoal, so the page ends on the stage it began on. */
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 1.75rem 1.75rem fixed,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 1.75rem 1.75rem fixed,
    var(--charcoal);
}

footer > section > :not(figure) {
  position: relative;
  z-index: 1;
}

footer > section > figure {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

footer > section > figure svg {
  display: block;
  width: 100%;
  height: 100%;
}

footer > section > figure path {
  stroke: var(--light-crimson);
  stroke-width: 1;
  stroke-dasharray: 2 12;
  vector-effect: non-scaling-stroke;
  opacity: 0.45;
  animation: route-drift 40s linear infinite;
}

footer > section > figure path:nth-child(2) {
  animation-duration: 56s;
  animation-direction: reverse;
}

footer > section > figure path:nth-child(3) {
  animation-duration: 48s;
}

@keyframes route-drift {
  to {
    stroke-dashoffset: -280;
  }
}

footer > section > h2 {
  max-width: 18ch;
  color: #fff;
}

footer > section > h2 strong {
  color: var(--light-crimson);
}

footer > section > p:first-of-type {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.9375rem, 1.35vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.6;
}

/* The email. enquiry.js splits it into letters that rise in and ripple on
   hover; without scripting it is plain text with the same underline. */
footer > section > a {
  display: inline-block;
  margin-block: clamp(0.5rem, 2vh, 1rem);
  padding-bottom: 0.14em;
  overflow: clip;
  background: linear-gradient(var(--light-crimson), var(--light-crimson)) 0 100% / 0 0.06em no-repeat;
  color: #fff;
  font-size: clamp(2rem, 6.2vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  transition: background-size 0.9s var(--ease-out);
}

footer > section > a:is(:hover, :focus-visible) {
  background-size: 100% 0.06em;
}

footer > section > a span {
  display: inline-block;
  transition: translate 1.1s var(--ease-out) calc(var(--i) * 35ms);
}

footer > section > a:is(:hover, :focus-visible) span {
  translate: 0 -0.06em;
  transition-delay: calc(var(--i) * 18ms);
}

html.js footer > section:not(.is-revealed) > a[href^="mailto"] span {
  translate: 0 115%;
}

footer > section > p:last-of-type a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 500;
  line-height: 1;
  transition: translate var(--duration-fast) var(--ease-out);
}

footer > section > p:last-of-type a:hover,
footer > section > p:last-of-type a:focus-visible {
  translate: 0 -4px;
}

footer > section > p:last-of-type a span {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

footer > section > p:last-of-type svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

footer > section :is(a, button):focus-visible {
  outline: 2px solid var(--light-crimson);
  outline-offset: 4px;
}

/* The ranges. With scripting, enquiry.js repeats the list three more times
   (hidden from assistive technology) so the loop has no gap; without it the
   list simply wraps. */
footer > section > ul {
  display: flex;
  flex-wrap: wrap;
  margin: clamp(2rem, 6vh, 4rem) 0 0 calc(-1 * var(--pad));
  padding: 0 var(--pad);
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

html.js footer > section > ul {
  flex-wrap: nowrap;
  width: max-content;
  padding: 0;
  animation: range-loop 48s linear infinite;
}

html.js footer > section > ul:hover {
  animation-play-state: paused;
}

footer > section > ul li {
  display: flex;
  align-items: center;
  padding-block: clamp(1rem, 2.4vw, 1.75rem);
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(1.25rem, 2.2vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

footer > section > ul li::after {
  content: "";
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  margin-inline: clamp(1.5rem, 3vw, 3rem);
  border-radius: 50%;
  background: var(--crimson);
}

@keyframes range-loop {
  to {
    translate: -25% 0;
  }
}

footer > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.35rem, 2.5vh, 1.75rem) var(--pad);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 993px) {
  footer > div {
    padding-inline-end: calc(var(--pad) + 2vw);
  }
}

footer > div > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  min-width: 0;
}

footer > div > div > a {
  flex-shrink: 0;
  line-height: 0;
}

footer > div > div > a img {
  display: block;
  width: auto;
  height: clamp(1.25rem, 1.8vw, 1.5rem);
}

footer > div > div > small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

footer nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

footer nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(13px, 0.95vw, 15px);
  transition: color var(--duration-normal) var(--ease-out);
}

footer nav a:hover,
footer nav a:focus-visible {
  color: var(--light-crimson);
}

@media (max-width: 992px) {
  footer > div {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  footer > div > div > small {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer > section > figure path {
    animation: none;
  }

  footer > section > a,
  footer > section > a span {
    transition: none;
  }
}
