/* Shared footer: final CTA banner on a rounded page lip, then the site footer. */
.portfolio-footer { margin-top: auto; }

/* Page sheet with rounded bottom lip that rests on the footer */
.footer-sheet { position: relative; z-index: 1; margin-bottom: -16px; padding: 0 0 clamp(64px, 9vw, 120px); background: var(--sf); border-bottom: 1px solid var(--sf-tertiary); border-radius: 0 0 var(--r-4xl) var(--r-4xl); }

/* Final CTA banner */
.final-cta { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: var(--container); min-height: 450px; margin-inline: auto; padding: 50px 20px 64px; border-radius: var(--r-2xl); background: linear-gradient(180deg, #2a1d12 0%, #8a5f41 82%, #c9a77a 116.55%); color: var(--tx-inverse); text-align: center; }
@media (min-width: 768px) { .final-cta { padding: 60px 32px 72px; border-radius: var(--r-3xl); } }
.final-cta::before { opacity: .2; }
.cta-glow { flex: none; width: 6px; height: 6px; margin-bottom: 32px; border-radius: 50%; background: #fbf5e8; box-shadow: 0 0 18px 6px rgba(241,226,198,.6), 0 0 120px 56px rgba(201,167,122,.18); }
.cta-mandala { position: absolute; left: 50%; bottom: -230px; z-index: -1; width: 460px; height: 460px; transform: translateX(-50%); background: url('/img/mandala.svg') center / contain no-repeat; opacity: .35; }
.cta-eyebrow { color: #d8c49e; font-size: 12px; line-height: 16px; font-weight: 525; letter-spacing: 2px; text-transform: uppercase; }
.final-cta h2 { margin-top: 20px; font-family: var(--font-display); font-size: clamp(28px, 4vw, 36px); line-height: 1.5; font-weight: 425; letter-spacing: -.01em; color: var(--tx-inverse); font-variation-settings: 'opsz' 72; }
.cta-copy { max-width: 520px; margin-top: 16px; color: rgba(243,228,201,.82); font-size: 16px; line-height: 1.65; }
.final-cta .company-link { color: var(--tx-inverse); text-decoration-color: rgba(243,228,201,.45); }
.final-cta .company-link:hover { text-decoration-color: var(--tx-inverse); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; }
.btn-cta { min-height: 52px; padding: 14px 24px; background: linear-gradient(180deg, #fbf5e8 0%, #eddcbd 100%); color: var(--tx); box-shadow: var(--sh-hero-ring); }
.btn-cta:hover { background: #fdf9f0; }
.btn-cta .contact-mail { overflow-wrap: anywhere; white-space: normal; }
.btn-cta-ghost { min-height: 52px; padding: 14px 20px; background: rgba(243,228,201,.1); color: var(--tx-inverse); border: 1px solid rgba(243,228,201,.28); box-shadow: inset 0 1px 0 rgba(243,228,201,.15); }
.btn-cta-ghost:hover { background: rgba(243,228,201,.18); }
.final-cta :focus-visible { outline-color: var(--tx-inverse); }
@media (max-width: 420px) { .btn-cta { padding-inline: 18px; font-size: 15px; } }

/* Footer */
.footer-main { padding-top: calc(80px + 16px); background: linear-gradient(180deg, var(--card) 0%, var(--sf-secondary) 100%); border-top: 1px solid var(--st-secondary); overflow: hidden; }
.footer-grid { display: grid; gap: 48px; width: var(--container); margin-inline: auto; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px 64px; } }
@media (max-width: 767px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
.footer-about { display: flex; flex-direction: column; align-items: flex-start; max-width: 280px; }
.footer-about .brand { min-height: 0; font-size: 15px; }
.footer-tagline { margin-top: 10px; color: var(--tx-tertiary); font-size: 12px; line-height: 18px; }
.footer-find { margin-top: 28px; color: var(--tx-tertiary); font-size: 12px; }
.footer-social { display: flex; gap: 4px; margin-top: 6px; margin-left: -8px; }
.footer-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: var(--tx-tertiary); transition: color var(--d-normal) ease-out, background-color var(--d-normal) ease-out; }
.footer-social a:hover { color: var(--indigo-800); background: rgba(67,48,31,.06); }
.footer-social svg { width: 18px; height: 18px; }
.footer-legal { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; padding: 12px; border: 1px solid var(--st); border-radius: var(--r-lg); color: var(--tx-tertiary); font-size: 12px; line-height: 18px; }
.footer-head { margin-bottom: 16px; font-family: var(--font-mono); font-size: 12px; line-height: 18px; text-transform: uppercase; letter-spacing: .04em; color: var(--tx); }
.footer-col ul { display: grid; gap: 10px; list-style: none; }
.footer-col a { color: var(--tx-tertiary); font-size: 16px; line-height: 24px; transition: color var(--d-normal) ease-out; }
.footer-col a:hover { color: var(--indigo-800); }

/* Giant wordmark filled with the moving brand spectrum */
.footer-wordmark { width: var(--container); margin: clamp(56px, 8vw, 96px) auto 0; font-family: var(--font-ui); font-weight: 650; font-size: min(18vw, 287px); line-height: .8; letter-spacing: -.02em; text-transform: uppercase; text-align: center; white-space: nowrap; user-select: none;
  background: linear-gradient(100deg, #43301f 0%, #8a5f41 22%, #c9a77a 38%, #a4502a 60%, #6b4630 78%, #43301f 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  animation: spectrum 14s linear infinite; }
@media (min-width: 768px) { .footer-wordmark { font-size: min(17vw, 287px); } }
@keyframes spectrum { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .footer-wordmark { animation: none; } }
