/* Minimal animated footer. Namespaced to avoid existing .footer sections. */

.site-footer {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2rem, 4vw, 4rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    #020303;
  color: #f7f5ef;
  font-family: var(--font-primary, Inter, Arial, sans-serif);
  letter-spacing: 0;
  text-transform: none;
}

.site-footer__inner {
  display: grid;
  grid-template-rows: auto minmax(9rem, 1fr) auto;
  width: 100%;
  min-height: calc(100vh - clamp(4rem, 8vw, 8rem));
  min-height: calc(100dvh - clamp(4rem, 8vw, 8rem));
  overflow: hidden;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.site-footer__eyebrow,
.site-footer__group span,
.site-footer__contact span,
.site-footer__newsletter label,
.site-footer__meta,
.site-footer__bar {
  color: rgba(247, 245, 239, 0.52);
  font-size: clamp(0.74rem, 0.82vw, 0.9rem);
  line-height: 1.25;
  text-transform: uppercase;
}

.site-footer__eyebrow {
  margin: 0 0 1.2rem;
}

.site-footer__headline {
  max-width: 12ch;
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display, var(--font-primary, Inter, Arial, sans-serif));
  font-size: clamp(3.25rem, 8vw, 9.5rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
}

.site-footer__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.site-footer__group span {
  margin-bottom: 0.6rem;
}

.site-footer a,
.site-footer button {
  color: inherit;
  font: inherit;
}

.site-footer a {
  text-decoration: none;
}

.site-footer__group a,
.site-footer__contact a,
.site-footer__bar a {
  color: #f7f5ef;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-footer__group a:hover,
.site-footer__group a:focus-visible,
.site-footer__contact a:hover,
.site-footer__contact a:focus-visible,
.site-footer__bar a:hover,
.site-footer__bar a:focus-visible {
  color: #bfeee6;
  outline: none;
  transform: translateX(0.35rem);
}

.site-footer__middle {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(18rem, 1fr) minmax(12rem, 0.55fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-self: center;
  align-items: end;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__newsletter {
  width: min(100%, 32rem);
}

.site-footer__newsletter label {
  display: block;
  margin-bottom: 1.1rem;
}

.site-footer__input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.8rem;
  align-items: center;
  border-bottom: 1px solid rgba(247, 245, 239, 0.78);
}

.site-footer__input input {
  min-width: 0;
  height: 3rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  outline: none;
}

.site-footer__input input::placeholder {
  color: rgba(247, 245, 239, 0.36);
}

.site-footer__input button,
.site-footer__top-button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-footer__input button {
  width: 2.8rem;
  height: 2.8rem;
  color: rgba(247, 245, 239, 0.68);
  font-size: 1.2rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-footer__input button:hover,
.site-footer__input button:focus-visible {
  color: #bfeee6;
  outline: none;
  transform: translateX(0.2rem);
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.site-footer__bottom {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  align-self: end;
}

.site-footer__brand {
  position: relative;
  display: grid;
  align-items: end;
  width: 100%;
  min-height: clamp(5.8rem, 14vw, 13.8rem);
  overflow: visible;
  background: transparent;
}

.site-footer__wordmark {
  display: block;
  width: min(92%, 92rem);
  aspect-ratio: 387.28 / 50.9;
  margin: 0 auto;
  background: #ffffff;
  opacity: 0.94;
  transform-origin: center bottom;
  -webkit-mask: url("../images/text.e5f9a321c268.svg") center / contain no-repeat;
  mask: url("../images/text.e5f9a321c268.svg") center / contain no-repeat;
}

.brand-banner {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: clamp(2.25rem, 7vw, 6.5rem) clamp(1.25rem, 4vw, 4rem) clamp(2.75rem, 8vw, 7rem);
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.2) 46%, rgba(255, 255, 255, 0.78)),
    linear-gradient(110deg, #f8f9fc 0%, #fff4f7 22%, #eef1f8 46%, #fdeced 68%, #ffffff 100%);
  background-size: 100% 100%, 220% 220%;
  color: var(--brand-navy);
  animation: brandBannerLight 14s ease-in-out infinite;
}

.brand-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0%, rgba(227, 30, 36, 0.11) 22%, transparent 42%),
    linear-gradient(285deg, transparent 18%, rgba(8, 50, 126, 0.12) 48%, transparent 70%),
    repeating-linear-gradient(135deg, rgba(8, 50, 126, 0.04) 0 1px, transparent 1px 18px);
  background-size: 180% 180%, 190% 190%, auto;
  opacity: 0.92;
  animation: brandBannerSweep 18s ease-in-out infinite alternate;
}

.brand-banner img {
  position: relative;
  z-index: 1;
  width: min(100%, 92rem);
  height: auto;
  display: block;
  border-radius: 0;
  filter: drop-shadow(0 20px 42px rgba(13, 59, 143, 0.16));
}

@keyframes brandBannerLight {
  0%,
  100% {
    background-position: center, 0% 50%;
  }

  50% {
    background-position: center, 100% 50%;
  }
}

@keyframes brandBannerSweep {
  0% {
    background-position: 0% 50%, 100% 50%, 0 0;
  }

  100% {
    background-position: 100% 50%, 0% 50%, 0 0;
  }
}

.site-footer__bar {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding-top: 1rem;
}

.site-footer__top-button {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(247, 245, 239, 0.22);
  border-radius: 50%;
  color: #f7f5ef;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-footer__top-button:hover,
.site-footer__top-button:focus-visible {
  border-color: #bfeee6;
  color: #bfeee6;
  outline: none;
  transform: translateY(-0.2rem);
}

@media (max-width: 900px) {
  .site-footer {
    min-height: auto;
  }

  .site-footer__inner {
    min-height: 86vh;
  }

  .site-footer__top,
  .site-footer__middle {
    grid-template-columns: 1fr;
  }

  .site-footer__middle {
    gap: 2rem;
    align-items: start;
  }

  .site-footer__links {
    max-width: 32rem;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 1.25rem;
  }

  .site-footer__inner {
    min-height: 82vh;
  }

  .site-footer__links,
  .site-footer__bar {
    grid-template-columns: 1fr;
  }

  .site-footer__headline {
    font-size: clamp(3rem, 16vw, 5.25rem);
  }

  .site-footer__brand {
    min-height: clamp(4.6rem, 22vw, 6.8rem);
    background: transparent;
  }

  .site-footer__wordmark {
    background: #ffffff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer,
  .site-footer *,
  .brand-banner,
  .brand-banner::before {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
