.shared-footer-host,
[data-site-footer] {
  background: var(--charcoal);
}

[data-site-footer][data-footer-variant="home"],
[data-site-footer][data-footer-variant="invite"] {
  background: transparent;
}

.shared-footer {
  background: var(--charcoal);
  padding: 60px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.shared-footer--continuity-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/assets/reveal-veil.jpg");
  background-size: cover;
  background-position: center 52%;
  opacity: 0.18;
  filter: saturate(0.78) brightness(0.72);
}

.shared-footer--continuity-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(26, 26, 24, 0.5) 0%, rgba(26, 26, 24, 0.9) 100%);
}

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

.shared-footer--legal {
  padding: 42px 24px 48px;
}

.shared-footer__divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto 28px;
  max-width: 1100px;
}

.shared-footer__divider::before,
.shared-footer__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(184, 134, 11, 0.26);
}

.shared-footer__mark {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  color: var(--gold);
}

.shared-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) 1fr;
  align-items: flex-start;
  gap: 56px;
}

.shared-footer__brand-block {
  min-width: 0;
}

.shared-footer__brand-link {
  display: inline-flex;
  align-items: center;
  width: min(178px, 100%);
  margin-bottom: 12px;
  text-decoration: none;
}

.shared-footer__brand-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 34px;
  object-fit: contain;
  object-position: left center;
}

.shared-footer__tagline {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.6;
  max-width: 260px;
}

.shared-footer__disclaimer {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: rgba(232, 222, 200, 0.55);
  line-height: 1.8;
  margin-top: 28px;
  max-width: 280px;
}

.shared-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 30px 34px;
}

.shared-footer__column-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.72);
  margin-bottom: 12px;
}

.shared-footer__column-links {
  display: grid;
  gap: 8px;
}

.shared-footer__column-links a,
.shared-footer__column-links a:hover,
.shared-footer__column-links a:focus,
.shared-footer__column-links a:visited {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: rgba(184, 134, 11, 0.66);
  text-decoration: none;
}

.shared-footer__links a,
.shared-footer__links a:hover,
.shared-footer__links a:focus,
.shared-footer__links a:visited {
  color: rgba(184, 134, 11, 0.6);
  text-decoration: none;
}

.shared-footer__bottom {
  max-width: 1100px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(184, 134, 11, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.shared-footer__copy {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(232, 222, 200, 0.34);
}

.shared-footer__copy a,
.shared-footer__copy a:hover,
.shared-footer__copy a:focus,
.shared-footer__copy a:visited {
  color: var(--slate);
  text-decoration: none;
}

.shared-footer__verse {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 11px;
  color: rgba(232, 222, 200, 0.34);
}

.shared-footer--invite-minimal {
  background: transparent;
  padding: 0;
  z-index: 0;
}

.shared-footer--home-overlay {
  background: transparent;
}

.shared-footer--home-overlay .shared-footer__inner,
.shared-footer--home-overlay .shared-footer__bottom {
  position: relative;
  z-index: 2;
}

.shared-footer--home-overlay .shared-footer__disclaimer {
  color: rgba(232, 222, 200, 0.55);
}

.shared-footer--home-overlay .shared-footer__copy,
.shared-footer--home-overlay .shared-footer__verse {
  color: rgba(232, 222, 200, 0.34);
}

.shared-footer__invite-copyright {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.5px;
  color: rgba(184, 134, 11, 0.9);
  margin-top: 28px;
  line-height: 2;
}

.shared-footer__invite-copyright a,
.shared-footer__invite-copyright a:hover,
.shared-footer__invite-copyright a:focus,
.shared-footer__invite-copyright a:visited {
  color: rgba(184, 134, 11, 0.5);
  text-decoration: none;
}

.shared-footer__back-top {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(184, 134, 11, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.shared-footer__back-top:hover {
  color: var(--gold);
}

.standard-texture-light,
.standard-texture-dark,
.section-page-cta {
  position: relative;
  overflow: hidden;
}

.standard-texture-light > *,
.standard-texture-dark > *,
.section-page-cta > * {
  position: relative;
  z-index: 1;
}

.standard-texture-light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/assets/reveal-topography.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.standard-texture-light::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(245, 241, 232, 0.68);
}

.standard-texture-dark::before,
.section-page-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/assets/reveal-vanna-effect.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.26;
  filter: saturate(0.86) brightness(0.78);
}

.standard-texture-dark::after,
.section-page-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(26, 26, 24, 0.78), rgba(26, 26, 24, 0.9));
}

@media (max-width: 900px) {
  .shared-footer {
    padding: 36px 28px;
  }

  .shared-footer--legal {
    padding: 36px 20px 40px;
  }

  .shared-footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .shared-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 30px;
    padding-top: 20px;
  }

  .shared-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 22px;
  }

  .shared-footer__column-links {
    gap: 7px;
  }
}

@media (max-width: 560px) {
  .shared-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }

  .shared-footer__column-title {
    font-size: 8px;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
  }

  .shared-footer__column-links a,
  .shared-footer__column-links a:hover,
  .shared-footer__column-links a:focus,
  .shared-footer__column-links a:visited {
    font-size: 8px;
    line-height: 1.45;
  }

  .shared-footer__tagline {
    max-width: 100%;
  }

  .shared-footer__brand-link {
    width: 154px;
  }

  .shared-footer__disclaimer {
    margin-top: 22px;
    max-width: 100%;
  }
}
