.cml-site-footer {
  position: relative;
  isolation: isolate;
  background: var(--primary-color);
  border-block-start: clamp(12px, 1.25vw, 20px) solid var(--white);
  color: var(--white);
  --footer-divider: rgb(255 255 255 / 32%);
  padding-inline: clamp(20px, 5vw, 72px);
  font: 400 16px/1.55 Poppins, sans-serif;
}
.cml-site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: var(--secondary-color);
  pointer-events: none;
}
.cml-foot-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 92% 12%, rgba(var(--bs-secondary-rgb), .24), transparent 58%);
}
.cml-foot-orbit {
  position: absolute;
  width: clamp(570px, 55vw, 940px);
  aspect-ratio: 1;
  right: -4%;
  top: clamp(-148px, -8vw, -60px);
}
/* The photograph's luminance brings out clouds and coastlines in the brand palette. */
.cml-foot-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--secondary-color) 35%, var(--white));
  mask: url("../img/footer-earth.webp") center / contain no-repeat luminance;
}
.cml-foot-network { display: block; width: 100%; height: 100%; color: var(--secondary-color); }
.cml-foot-routes, .cml-foot-signals { fill: none; stroke: currentColor; stroke-linecap: round; }
.cml-foot-routes { stroke-width: 1.5; opacity: .72; }
.cml-foot-signals { display: none; stroke-width: 3; stroke-dasharray: 5 95; }
.cml-foot-nodes { fill: currentColor; }
.cml-foot-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(var(--bs-primary-rgb), .7), transparent 26%),
    linear-gradient(100deg, var(--primary-color) 25%, rgba(var(--bs-primary-rgb), .74) 55%, rgba(var(--bs-primary-rgb), .64) 83%, rgba(var(--bs-primary-rgb), .4));
}
@supports not (mask-mode: luminance) {
  .cml-foot-orbit::before {
    mask: none;
    background: url("../img/footer-earth.webp") center / contain no-repeat;
    opacity: .45;
  }
}
.cml-foot-inner, .cml-foot-legal { max-width: 1200px; margin-inline: auto; }
.cml-foot-inner {
  display: grid;
  --footer-column-gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: start;
  gap: 28px var(--footer-column-gap);
  padding-block: clamp(32px, 4vw, 56px);
}
.cml-site-footer .cml-foot-inner h2 {
  color: var(--white);
  margin: 0 0 12px;
  font: 600 20px/1.3 Poppins, sans-serif;
  letter-spacing: normal;
}
.cml-foot-brand {
  display: inline-flex; vertical-align: top;
  padding: 8px 12px; background: transparent; border-radius: 6px;
}
.cml-foot-brand img { width: clamp(116px, 11vw, 158px); height: auto; display: block; filter: brightness(0) invert(1); }
.cml-site-footer .cml-foot-inner p {
  margin: 12px 0;
  max-width: 33ch;
  color: inherit;
  font: 500 clamp(16px, 1.3vw, 20px)/1.45 Poppins, sans-serif;
  text-wrap: balance;
}
.cml-site-footer a { color: inherit; text-decoration: none; }
.cml-site-footer a:hover, .cml-site-footer a:focus-visible { color: var(--white); text-decoration: underline; text-decoration-color: var(--secondary-color); text-underline-offset: 4px; }
.cml-site-footer a:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.cml-site-footer address, .cml-site-footer nav {
  display: grid; align-content: start; justify-items: start; gap: 0; margin: 0; font-style: normal;
}
.cml-site-footer address a {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start;
  padding-block: 5px; max-width: min(100%, 38ch);
}
.cml-site-footer :is(address, .cml-foot-social) i { color: var(--white); }
.cml-site-footer address i { font-size: 18px; line-height: 1.4; text-align: center; }
.cml-site-footer nav a { padding-block: 5px; }
.cml-foot-social { display: flex; gap: 8px; }
.cml-foot-social a { color: var(--white); display: grid; place-items: center; border: 1px solid var(--footer-divider); border-radius: 50%; width: 40px; height: 40px; }
.cml-foot-social a:is(:hover,:focus-visible) { border-color: var(--secondary-color); text-decoration: none; }
.cml-foot-legal { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--footer-divider); padding-block: 16px; font-size: 14px; }
.cml-foot-legal span:last-child { white-space: nowrap; }
.cml-foot-legal a { font-weight: 600; }
.cml-original-logistics .cml-foot-inner h2 { font-size: 18px; margin-bottom: 12px; }
.cml-original-logistics .cml-foot-inner p { max-width: 24ch; margin-block: 8px 16px; }
@media (min-width: 741px) {
  .cml-original-logistics .cml-foot-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.2fr); }
  .cml-foot-inner > :nth-child(2) { position: relative; }
  .cml-foot-inner > :nth-child(2)::before {
    content: ""; position: absolute; inset-block: 4px;
    inset-inline-start: calc(var(--footer-column-gap) / -2);
    border-inline-start: 1px solid var(--footer-divider);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .cml-site-footer a { transition: color .18s ease, border-color .18s ease; }
}
@media (min-width: 741px) and (prefers-reduced-motion: no-preference) {
  .cml-foot-orbit { animation: cml-footer-orbit 36s ease-in-out infinite alternate; }
  .cml-foot-signals { display: inline; }
  .cml-foot-signals use { animation: cml-footer-signal 12s linear infinite; }
  .cml-foot-signals use:nth-child(2) { animation-delay: -7s; }
  .cml-foot-signals use:nth-child(3) { animation-delay: -4s; }
}
@keyframes cml-footer-orbit {
  from { transform: translate(-.6%, .8%) rotate(-2deg); }
  to { transform: translate(1.2%, -.6%) rotate(2deg); }
}
.cml-motion-offscreen .cml-foot-orbit,
.cml-motion-offscreen .cml-foot-signals use { animation-play-state: paused; }
@keyframes cml-footer-signal {
  from { stroke-dashoffset: 5; }
  to { stroke-dashoffset: -95; }
}
@media (min-width: 741px) and (max-width: 1199px) {
  .cml-foot-scene::after {
    background: linear-gradient(to top, rgba(var(--bs-primary-rgb), .64), transparent 25%),
      linear-gradient(100deg, var(--primary-color) 12%, rgba(var(--bs-primary-rgb), .71) 86%);
  }
}
@media (max-width: 740px) {
  .cml-foot-orbit { width: max(106%, 460px); right: -34%; top: -22px; }
  .cml-foot-scene::after {
    background: linear-gradient(to right, rgba(var(--bs-primary-rgb), .84), rgba(var(--bs-primary-rgb), .64)),
      linear-gradient(to top, var(--primary-color), transparent 55%);
  }
  .cml-foot-inner { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .cml-site-footer .cml-foot-inner h2 { margin-bottom: 6px; }
  .cml-site-footer address a, .cml-site-footer nav a, .cml-foot-social a { min-height: 44px; align-content: center; }
  .cml-foot-social a { width: 44px; }
  .cml-site-footer nav { grid-template-columns: repeat(2, minmax(0,1fr)); width: min(100%, 320px); }
  .cml-site-footer nav h2 { grid-column: 1 / -1; }
  .cml-foot-legal { align-items: flex-start; gap: 16px; }
  .cml-foot-legal span:last-child { flex-shrink: 0; text-align: end; }
}

