/* Shared closing CTA for portfolio views and standalone pages. */
.closer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: var(--section-gap, 100px) 0 0;
}

.closer[hidden] {
  display: none;
}

.closer__title {
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.closer__lede {
  font-size: 17px;
  line-height: 27px;
  color: var(--muted);
  margin: 14px 0 0;
}

.closer__cta {
  margin-top: 30px;
}

/* Standalone pages use a link to the contact form with the same primary style. */
.closer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  color: #fff;
  border: 2px solid transparent;
  border-radius: 12px;
  background: linear-gradient(180deg, #333, #222) padding-box,
              linear-gradient(180deg, #434343, #040404) border-box;
}
.closer__link:hover {
  background: linear-gradient(180deg, #262626, #141414) padding-box,
              linear-gradient(180deg, #363636, #000) border-box;
}
.closer__cta:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}
.closer__link svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
@supports (corner-shape: squircle) {
  .closer__link {
    border-radius: 22px;
    corner-shape: squircle;
  }
}
@media (max-width: 768px) {
      .closer {
        padding: var(--section-gap, 100px) 0 0;
      }

      .closer__title {
        font-size: 28px;
        line-height: 35px;
      }

      .closer__lede {
        font-size: 16px;
        line-height: 25px;
      }

      .closer__cta {
        width: 100%;
      }

  .closer__cta { justify-content: center; }
}

/* Shared dark closing surface, including social links and privacy. */
.footer-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: calc(100% - 64px);
  max-width: none;
  margin: var(--section-gap, 100px) 32px 32px;
  border-radius: 16px;
  background: #1a1615;
  color: #faf9f7;
}
.footer-scene::before,
.footer-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, #ffffff12 0.8px, transparent 1px);
  background-size: 12px 12px;
}
.footer-scene::after {
  background-image: radial-gradient(circle, #ead9c5a6 1px, transparent 1.4px);
  mask-image: radial-gradient(circle 180px at var(--pointer-x, -300px) var(--pointer-y, -300px), #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 180px at var(--pointer-x, -300px) var(--pointer-y, -300px), #000 0%, transparent 100%);
  opacity: 0;
  transition: opacity 250ms ease;
}
.footer-scene.is-lit::after { opacity: 1; }
.footer-scene .closer { padding: 96px 24px 0; max-width: 668px; }
.footer-scene .closer__title { color: #faf9f7; }
.footer-scene .closer__lede { color: #bdb8b5; }
.footer-scene .closer__cta {
  color: #1a1615;
  background: linear-gradient(#fff, #f3f1ee) padding-box, linear-gradient(#fff, #d9d5d0) border-box;
}
.footer-scene .closer__cta:hover { background: #e8e4df; }
.footer-scene .closer__cta:focus-visible,
.footer-scene a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.footer-scene .site-foot { padding: 64px 24px 40px; }
.footer-scene .site-foot .social__btn { color: #eae6e2; border-color: #ffffff26; background: #ffffff08; }
.footer-scene .site-foot .social__btn:hover { background: #ffffff18; }
.footer-scene .site-foot .left__footer a { color: #aaa39e; }
.footer-scene .site-foot .left__footer a:hover { color: #fff; }
body:has(.footer-scene) .page-fade { transition: opacity 200ms ease; }
body.footer-in-view .page-fade { opacity: 0; }
@media (max-width: 768px) {
  .footer-scene .closer { padding: 64px 24px 0; }
  .footer-scene .closer__cta { width: auto; max-width: 100%; }
  .footer-scene .site-foot { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-scene::after, body:has(.footer-scene) .page-fade { transition: none; }
}

.footer-wordmark {
  overflow: hidden;
  text-align: center;
  height: 0.83em;
  margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-size: clamp(56px, 17vw, 360px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.08px;
  color: #3c3a39;
  user-select: none;
}
.footer-wordmark__text {
  position: relative;
  display: inline-block;
  transform: translateY(0.08em);
}
.footer-wordmark__text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background:
    radial-gradient(ellipse at 25% 30%, #ffe6a0 0%, transparent 60%),
    linear-gradient(130deg, #ff9b20 10%, #ffd66f 35%, #26c5e4 68%, #2568c9 90%);
  background-size: 440px 440px;
  background-repeat: no-repeat;
  background-position: calc(var(--word-x, 0px) - 220px) calc(var(--word-y, 0px) - 220px);
  background-clip: text;
  -webkit-background-clip: text;
  mask-image: radial-gradient(circle 190px at var(--word-x, -300px) var(--word-y, -300px), #000 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.35) 65%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 190px at var(--word-x, -300px) var(--word-y, -300px), #000 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.35) 65%, transparent 100%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.footer-wordmark:hover .footer-wordmark__text::after { opacity: 0.9; }
@media (prefers-reduced-motion: reduce) {
  .footer-wordmark__text::after { transition: none; }
}

/* Footer v2 — light gray surface. */
.footer-scene--v2 {
  background: #f3f3f3;
  color: #242321;
}
.footer-scene--v2::before {
  background-image: radial-gradient(circle, #29272420 0.8px, transparent 1px);
}
.footer-scene--v2::after {
  background-image: radial-gradient(circle, #ffffff 1px, transparent 1.4px);
}
.footer-scene--v2 .closer__title { color: #242321; }
.footer-scene--v2 .closer__lede { color: #5d5955; }
.footer-scene--v2 .closer__cta {
  color: #fff;
  background: linear-gradient(#333, #222) padding-box, linear-gradient(#434343, #040404) border-box;
}
.footer-scene--v2 .closer__cta:hover { background: #181716; }
.footer-scene--v2 .closer__cta:focus-visible,
.footer-scene--v2 a:focus-visible { outline-color: #242321; }
.footer-scene--v2 .site-foot .social__btn {
  color: #393632;
  border-color: #e0e0e0;
  background: #fff;
}
.footer-scene--v2 .site-foot .social__btn:hover { background: #fafafa; }
.footer-scene--v2 .site-foot .left__footer a { color: #625e59; }
.footer-scene--v2 .site-foot .left__footer a:hover { color: #242321; }
.footer-scene--v2 .footer-wordmark { color: #e9e9e9; }

@supports (corner-shape: squircle) {
  .footer-scene {
    border-radius: 30px;
    corner-shape: squircle;
  }
}
