/* Shared footer is deliberately isolated from legacy page typography and layout. */
.shared-footer,
.shared-footer * {
  box-sizing: border-box;
}

.shared-footer {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #0d0d0c;
  color: #f2ede4;
  font-family: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.shared-footer__beams,
.shared-footer__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shared-footer__beams {
  overflow: hidden;
  background: #000;
  opacity: .44;
}

.shared-footer[data-variant="home"] .shared-footer__beams {
  opacity: .64;
}

.shared-footer__beams span {
  position: absolute;
  top: -42%;
  bottom: -42%;
  left: 50%;
  width: clamp(130px, 19vw, 300px);
  background: linear-gradient(90deg, rgba(23, 85, 119, 0), rgba(23, 85, 119, .34) 28%, rgba(79, 194, 203, .44) 52%, rgba(122, 215, 196, .12) 72%, rgba(23, 85, 119, 0));
  filter: blur(1px);
  mix-blend-mode: screen;
  transform: translateX(-145%) rotate(30deg);
  animation: shared-footer-beam-drift 12s ease-in-out infinite alternate;
}

.shared-footer__beams span:nth-child(2) {
  width: clamp(180px, 25vw, 390px);
  opacity: .64;
  transform: translateX(-20%) rotate(30deg);
  animation-delay: -7s;
  animation-duration: 15s;
}

.shared-footer__beams span:nth-child(3) {
  width: clamp(110px, 16vw, 250px);
  opacity: .48;
  transform: translateX(120%) rotate(30deg);
  animation-delay: -3s;
  animation-duration: 10s;
}

.shared-footer__veil {
  background: linear-gradient(180deg, #0d0d0c 0%, rgba(13, 13, 12, 0) 15%, rgba(13, 13, 12, 0) 84%, rgba(5, 7, 6, .55) 100%), radial-gradient(120% 78% at 50% 40%, rgba(13, 13, 12, .62) 0%, rgba(13, 13, 12, 0) 56%);
}

@keyframes shared-footer-beam-drift {
  from { margin-left: -4vw; }
  to { margin-left: 5vw; }
}

.shared-footer a {
  color: #8b877e;
  text-decoration: none;
}

.shared-footer a:hover {
  color: #f2ede4;
}

.shared-footer__cta {
  position: relative;
  padding: clamp(110px, 18vh, 220px) 6vw clamp(100px, 16vh, 190px);
  text-align: center;
}

.shared-footer[data-variant="inner"] .shared-footer__cta {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.shared-footer__cta h2 {
  margin: 0;
  color: #f2ede4;
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: pretty;
}

.shared-footer__cta p {
  max-width: 620px;
  margin: 26px auto 0;
  color: #8b877e;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.6;
}

.shared-footer__cta > a:not(.shared-footer__email) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
  padding: 17px 32px;
  border: 1px solid #f2ede4;
  border-radius: 999px;
  background: #f2ede4;
  color: #141413;
  box-shadow: 0 12px 34px -16px rgba(0, 0, 0, .6);
  font-family: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: transform .24s cubic-bezier(.2, .7, .2, 1), box-shadow .24s ease, background .24s ease;
}

.shared-footer__cta > a:not(.shared-footer__email):hover {
  background: #fff;
  color: #141413;
  box-shadow: 0 18px 46px -16px rgba(0, 0, 0, .65);
  transform: translateY(-2px);
}

.shared-footer__cta > a:not(.shared-footer__email) span {
  display: inline-block;
  transition: transform .24s cubic-bezier(.2, .7, .2, 1);
}

.shared-footer__cta > a:not(.shared-footer__email):hover span {
  transform: translateX(5px);
}

.shared-footer__cta .shared-footer__email {
  display: block;
  margin-top: 26px;
  color: #8b877e;
  font-size: clamp(15px, 1.5vw, 19px);
  transition: color .25s ease;
}

.shared-footer__cta .shared-footer__email:hover {
  color: #7ad7c4;
}

.shared-footer__body {
  position: relative;
  padding: 9vh 6vw 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
}

.shared-footer__grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) repeat(auto-fit, minmax(140px, .9fr));
  gap: 6vh 3vw;
}

.shared-footer__grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.shared-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shared-footer__brand > img {
  display: block;
  width: auto;
  height: 21px;
}

.shared-footer__mark {
  position: relative;
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.shared-footer__mark > img,
.shared-footer__mark > span > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.shared-footer__mark > span {
  position: absolute;
  top: 31%;
  left: 28%;
  width: 16%;
  height: 16%;
  border-radius: 50%;
  animation: shared-footer-pupil 8s ease-in-out infinite;
}

@keyframes shared-footer-pupil {
  0%, 16%, 70%, 100% { transform: translate(0, 0); }
  26%, 38% { transform: translate(26%, -12%); }
  48%, 60% { transform: translate(-22%, 16%); }
}

.shared-footer__grid > div:first-child > p {
  margin: 12px 0 0;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 300;
  line-height: 1.3;
}

.shared-footer__grid > div:first-child > p strong {
  color: #7ad7c4;
}

.shared-footer__grid h3 {
  margin: 0;
  color: #f2ede4;
  font-size: 15px;
}

.shared-footer__grid a {
  color: #8b877e;
  font-size: 14px;
}

.shared-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.shared-footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  color: #f2ede4;
  font-size: 14px;
  transition: border-color .25s ease, background .25s ease;
}

.shared-footer__social a:hover {
  border-color: rgba(122, 215, 196, .5);
  background: rgba(122, 215, 196, .06);
}

.shared-footer__social img {
  display: block;
  width: 16px;
  height: 16px;
}

.shared-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 9vh;
  padding: 26px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #6b675f;
  font-size: 10px;
  letter-spacing: .22em;
}

@media (max-width: 600px) {
  .shared-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .shared-footer__grid > div:first-child {
    grid-column: 1 / -1;
  }

  .shared-footer__legal {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .shared-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shared-footer__beams span,
  .shared-footer__mark > span {
    animation: none;
  }
}
