/* A deep-water ending that mirrors the homepage atmosphere. */
.river-footer {
  position: relative;
  box-sizing: border-box;
  min-height: clamp(430px, 48vw, 560px);
  padding: clamp(88px, 9vw, 132px) var(--river-gutter, clamp(24px, 6vw, 96px)) 34px;
  overflow: hidden;
  color: #edf7ff;
  border-top: 1px solid rgba(175, 224, 255, .14);
  background:
    linear-gradient(180deg, rgba(0, 41, 96, .8), rgba(0, 20, 59, .96)),
    url("assets/figma-home/figma-home-bg.webp") center 58% / cover no-repeat,
    #001b4d;
  isolation: isolate;
}

.river-footer > * {
  position: relative;
  z-index: 1;
}

.river-footer::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse at 78% -8%, rgba(155, 224, 255, .16), transparent 38%),
    linear-gradient(110deg, transparent 48%, rgba(185, 234, 255, .055) 59%, transparent 69%);
  opacity: .9;
  pointer-events: none;
}

.river-footer::after {
  position: absolute;
  z-index: 0;
  top: -28%;
  right: 7%;
  width: clamp(220px, 35vw, 520px);
  height: clamp(260px, 42vw, 620px);
  content: "";
  background: linear-gradient(102deg, transparent 18%, rgba(211, 245, 255, .09) 48%, transparent 76%);
  filter: blur(8px);
  transform: rotate(-9deg);
  pointer-events: none;
}

.river-footer > p {
  margin: 0;
  color: rgba(202, 228, 255, .68);
  font: 500 9px/1.5 var(--mono);
  letter-spacing: .2em;
}

.river-footer h2 {
  max-width: 760px;
  margin: 34px 0 34px;
  color: #edf7ff;
  font-family: var(--font-cn, "Noto Serif SC"), serif;
  font-size: clamp(28px, 3.25vw, 48px);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.river-footer > button {
  position: relative;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin: 0;
  padding: 0 22px;
  overflow: hidden;
  color: #f7fcff;
  border: 1px solid rgba(203, 235, 255, .26);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(161, 220, 255, .17), rgba(5, 60, 126, .28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .15),
    0 12px 32px rgba(0, 12, 45, .25),
    0 0 0 0 rgba(119, 205, 255, .12);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  backdrop-filter: blur(12px) saturate(125%);
  font: 500 14px/1.2 var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
  animation: footer-invite-breathe 3.6s ease-in-out infinite;
  transition:
    color .25s ease,
    background-color .25s ease,
    box-shadow .3s ease,
    transform .35s cubic-bezier(.2, .8, .2, 1);
}

.river-footer > button::before {
  position: absolute;
  top: -60%;
  left: -40%;
  width: 34px;
  height: 220%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .26), transparent);
  transform: rotate(18deg);
  animation: footer-invite-shimmer 4.2s ease-in-out infinite;
  pointer-events: none;
}

.river-footer > button span,
.river-footer > button i {
  position: relative;
  z-index: 1;
  color: #f7fafc;
}

.river-footer > button i {
  font-family: var(--sans);
  font-size: 16px;
  font-style: normal;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  animation: footer-arrow-nudge 3.6s ease-in-out infinite;
}

.river-footer > button:hover,
.river-footer > button:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, rgba(190, 234, 255, .25), rgba(17, 91, 162, .4));
  box-shadow: 0 14px 38px rgba(0, 12, 45, .32), 0 0 22px rgba(92, 193, 255, .12);
  transform: translateY(-3px) rotate(-1deg);
  animation-play-state: paused;
}

.river-footer > button:hover i,
.river-footer > button:focus-visible i {
  transform: translate(3px, -3px) rotate(8deg);
  animation-play-state: paused;
}

.river-footer > div {
  position: absolute;
  right: var(--river-gutter, clamp(24px, 6vw, 96px));
  bottom: 24px;
  left: var(--river-gutter, clamp(24px, 6vw, 96px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  color: rgba(198, 222, 249, .58);
}

.river-footer .footer-filing {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 24px;
  text-align: right;
  color: #d6ecff !important;
  font-weight: 500;
  letter-spacing: .06em;
}

.river-footer .footer-filing a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.river-footer .footer-police-filing img {
  width: 14px;
  height: auto;
  flex: 0 0 auto;
}

.river-footer .footer-filing a:hover,
.river-footer .footer-filing a:focus-visible {
  text-decoration: underline;
}

@keyframes footer-invite-breathe {
  0%, 68%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .15),
      0 12px 32px rgba(0, 12, 45, .25),
      0 0 0 0 rgba(119, 205, 255, .12);
    transform: translateY(0);
  }
  76% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .18),
      0 15px 38px rgba(0, 12, 45, .3),
      0 0 0 7px rgba(119, 205, 255, 0);
    transform: translateY(-3px);
  }
  84% {
    transform: translateY(0);
  }
}

@keyframes footer-invite-shimmer {
  0%, 58% { left: -40%; opacity: 0; }
  66% { opacity: 1; }
  84% { left: 115%; opacity: 0; }
  100% { left: 115%; opacity: 0; }
}

@keyframes footer-arrow-nudge {
  0%, 68%, 100% { transform: translate(0, 0); }
  76% { transform: translate(3px, -3px) rotate(8deg); }
  84% { transform: translate(0, 0); }
}

@media (max-width: 760px) {
  .river-footer {
    min-height: 420px;
    padding: 76px var(--river-gutter, 22px) 24px;
  }

  .river-footer h2 {
    max-width: 360px;
    margin: 28px 0;
    font-size: 28px;
    line-height: 1.5;
  }

  .river-footer > div {
    right: var(--river-gutter, 22px);
    bottom: 20px;
    left: var(--river-gutter, 22px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px 18px;
  }

  .river-footer .footer-filing {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 6px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .river-footer > button,
  .river-footer > button::before,
  .river-footer > button i {
    animation: none;
  }
}
