.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(4.25rem, 7vw, 6.5rem);
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.98) 0%, rgba(5, 5, 8, 1) 72%),
    var(--void);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 16% 6%, rgba(215, 255, 57, 0.13), transparent 34rem),
    radial-gradient(ellipse at 86% 14%, rgba(47, 107, 255, 0.14), transparent 38rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent 22%, rgba(215, 255, 57, 0.045) 82%, transparent);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 255, 57, 0.36), rgba(93, 168, 255, 0.24), transparent);
  pointer-events: none;
}

.site-footer > .page-shell {
  position: relative;
  z-index: 2;
}

.footer-backdrop-word {
  position: absolute;
  bottom: clamp(-2.35rem, -2.2vw, -0.85rem);
  left: 50%;
  z-index: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.052);
  font-family: var(--font-display);
  font-size: clamp(7rem, 20vw, 18rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.78;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateX(-50%);
  user-select: none;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 74%, transparent 100%);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.065);
}

.footer-shell {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-block: clamp(2.2rem, 4.4vw, 3.75rem) clamp(0.9rem, 2.2vw, 1.55rem);
}

.footer-brand-block {
  min-width: 0;
}

.footer-brand-lockup {
  width: fit-content;
}

.footer-brand-lockup .brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.78rem;
  box-shadow: 3px 3px 0 var(--citron);
  animation: none;
}

.footer-brand-lockup .brand-wordmark {
  font-size: 1.45rem;
}

.footer-brand-copy {
  max-width: 18rem;
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.55;
}

.footer-brand-meta {
  display: grid;
  gap: 0.62rem;
  margin-top: 1.45rem;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-brand-meta span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.62rem;
}

.footer-brand-meta span::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--citron);
  box-shadow: 0 0 16px rgba(215, 255, 57, 0.32);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  margin-top: 1.65rem;
}

.footer-social-link {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.78rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  color: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.footer-social-link svg {
  width: 1rem;
  height: 1rem;
}

.footer-social-link:hover {
  border-color: rgba(215, 255, 57, 0.45);
  background: rgba(215, 255, 57, 0.1);
  color: var(--citron);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.footer-map {
  display: grid;
  gap: clamp(1.35rem, 2.5vw, 2rem);
}

.footer-column {
  min-width: 0;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-heading::before {
  content: "";
  width: 1.7rem;
  height: 1px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--citron), rgba(93, 168, 255, 0.4));
  opacity: 0.82;
}

.footer-link-list {
  display: grid;
  gap: 0.24rem;
  margin-top: 0.95rem;
}

.footer-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  min-height: 2rem;
  align-items: center;
  gap: 0.52rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.footer-link::before {
  content: "";
  width: 0;
  height: 1px;
  flex: 0 0 auto;
  background: var(--citron);
  opacity: 0;
  transition:
    width var(--transition-fast),
    opacity var(--transition-fast);
}

.footer-link:hover {
  color: white;
  transform: translateX(3px);
}

.footer-link:hover::before {
  width: 0.8rem;
  opacity: 0.9;
}

.newsletter-shell {
  position: relative;
  align-self: start;
  max-width: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035) 48%, rgba(215, 255, 57, 0.045)),
    rgba(255, 255, 255, 0.035);
  padding: clamp(0.9rem, 1.45vw, 1.1rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 46px rgba(0, 0, 0, 0.2);
}

.newsletter-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 92% 4%, rgba(215, 255, 57, 0.16), transparent 34%),
    radial-gradient(circle at 0% 96%, rgba(93, 168, 255, 0.13), transparent 36%);
  pointer-events: none;
}

.newsletter-shell > * {
  position: relative;
  z-index: 1;
}

.footer-newsletter-title {
  max-width: 19rem;
  margin-top: 0.58rem;
  color: white;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.45vw, 1.38rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.footer-newsletter-copy {
  max-width: 20rem;
  margin-top: 0.68rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
}

.footer-newsletter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.footer-newsletter-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 2rem;
  align-items: center;
  margin-top: 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(215, 255, 57, 0.12);
  padding: 0.45rem 0.72rem;
  color: var(--citron);
  font-size: 0.76rem;
  font-weight: 950;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.15rem 0 1.45rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-bottom-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
}

.footer-bottom-link {
  border-radius: 0.45rem;
  color: rgba(255, 255, 255, 0.56);
  transition: color var(--transition-fast);
}

.footer-bottom-link:hover {
  color: var(--citron);
}

@media (min-width: 640px) {
  .footer-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-bottom-meta {
    justify-content: flex-end;
  }
}

@media (min-width: 1080px) {
  .footer-shell {
    grid-template-columns: minmax(15rem, 0.86fr) minmax(28rem, 1.42fr) minmax(18rem, 0.82fr);
    align-items: start;
  }
}

@media (max-width: 1023px) {
  .site-footer {
    padding-bottom: calc(var(--mobile-bottom-nav-height) + clamp(2.25rem, 8vw, 4.25rem)) !important;
  }
}

@media (max-width: 639px) {
  .footer-backdrop-word {
    bottom: calc(var(--mobile-bottom-nav-height) + 0.35rem);
    color: rgba(255, 255, 255, 0.04);
    font-size: clamp(2.35rem, 14vw, 3.35rem);
    line-height: 0.82;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 78%, transparent 100%);
  }

  .footer-shell {
    gap: 1.2rem;
    padding-block: 1.45rem 0.5rem;
  }

  .footer-brand-lockup .brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.68rem;
    box-shadow: 2px 2px 0 var(--citron);
  }

  .footer-brand-lockup .brand-wordmark {
    font-size: 1.28rem;
  }

  .footer-brand-copy {
    max-width: 17rem;
    margin-top: 0.72rem;
    font-size: 0.86rem;
    line-height: 1.46;
  }

  .footer-brand-meta {
    display: none;
  }

  .footer-socials {
    gap: 0.48rem;
    margin-top: 0.85rem;
  }

  .footer-social-link {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.66rem;
  }

  .footer-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
  }

  .footer-column {
    padding-top: 0.65rem;
  }

  .footer-column:last-child {
    display: none;
  }

  .footer-column:first-child .footer-link:nth-child(n+3),
  .footer-column:nth-child(2) .footer-link:nth-child(n+4) {
    display: none;
  }

  .footer-heading {
    gap: 0.52rem;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .footer-heading::before {
    width: 1.05rem;
  }

  .footer-link-list {
    gap: 0.16rem;
    margin-top: 0.58rem;
  }

  .footer-link {
    min-height: 1.6rem;
    font-size: 0.8rem;
    line-height: 1.15;
  }

  .newsletter-shell {
    border-radius: 0.95rem;
    padding: 0.75rem;
  }

  .footer-newsletter-title {
    max-width: 15rem;
    margin-top: 0.42rem;
    font-size: 1.02rem;
    line-height: 1.08;
  }

  .footer-newsletter-copy {
    display: none;
  }

  .footer-newsletter-badge {
    min-height: 1.75rem;
    margin-top: 0.72rem;
    padding: 0.38rem 0.62rem;
    font-size: 0.7rem;
  }

  .footer-bottom {
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.85rem 0 0;
    font-size: 0.56rem;
  }

  .footer-bottom-meta {
    gap: 0.55rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-link,
  .footer-link::before,
  .footer-social-link,
  .footer-bottom-link {
    transition: none;
  }

  .footer-link:hover,
  .footer-social-link:hover {
    transform: none;
  }
}
