.landscape-footer {
  display: block;
  padding: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem clamp(1rem, 3vw, 2.5rem);
  padding: 1.5rem 6%;
}

.footer-landscape {
  position: relative;
  height: clamp(90px, 11vw, 146px);
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.river-illustration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("/riverland-footer.svg") center bottom / max(100%, 700px) 100% no-repeat;
}

.river-current {
  position: absolute;
  inset: auto 0 0;
  height: 13%;
  opacity: .58;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 333 22'%3E%3Cg fill='none' stroke='%23e5f2e7' stroke-linecap='round'%3E%3Cpath d='M17 6h24m49 7h33m45-8h52m41 10h28m17-7h13'/%3E%3Cpath opacity='.55' d='M7 18h15m38-4h16m64 5h25m63-7h19m47 8h26'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 bottom / 333px 100%;
}

.landscape-motion-control {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .landscape-motion-control:not([hidden]) {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
  }

  .landscape-motion-control:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: -4px;
  }

  .landscape-can-animate .river-current {
    animation: regional-river-current 14s linear infinite;
  }

  .is-motion-paused .river-current {
    animation-play-state: paused;
  }
}

@keyframes regional-river-current {
  from { background-position-x: 0; }
  to { background-position-x: 333px; }
}

@media (forced-colors: active) {
  .footer-landscape,
  .footer-landscape .landscape-motion-control:not([hidden]) {
    display: none;
  }
}
