html,
body {
    background: #ffffff;
    overflow-x: hidden;
    overflow-x: clip;
}

body.dark-scheme {
    background: var(--bg-dark-1);
}

.site-footer {
    border-top: 1px solid #e6e6e6;
    background: #ffffff;
    padding: clamp(26px, 4vw, 44px) 0 clamp(34px, 5vw, 58px);
    overflow-x: hidden;
    overflow-x: clip;
}

.site-footer .container-fluid {
    overflow-x: hidden;
    overflow-x: clip;
}

.site-footer .px-2 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.site-footer .d-menu-1 {
    padding-left: 0;
    margin: 0;
}

.site-footer__nav {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px clamp(18px, 2.3vw, 30px);
}

.site-footer .d-menu-1 li {
    margin-right: 0;
}

.site-footer .d-menu-1 li a {
    font-size: clamp(13px, 0.96vw, 16px);
    letter-spacing: 0.03em;
}

.site-footer__social {
    margin: clamp(10px, 1.4vw, 14px) 0 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(0, 0, 0, 0.64);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__social-label {
    color: rgba(0, 0, 0, 0.46);
}

.site-footer__social a {
    color: #111111;
    text-decoration: none;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__copyright {
    margin-top: clamp(12px, 1.8vw, 18px);
    color: rgba(0, 0, 0, 0.58);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-footer__cta-link {
    display: inline-flex;
    color: inherit;
    text-decoration: none;
}

/* The hover is the decrypt (js/text-fx.js), matching every other footer link,
   so no dimming here. Keyboard focus still needs a visible ring. */
.site-footer__cta-link:hover {
    outline: none;
}

.site-footer__cta-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 6px;
}

.site-footer__cta {
    margin: 0;
    line-height: 0.92;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    font-size: clamp(46px, 7.1vw, 96px);
}

@media (max-width: 991px) {
    .site-footer {
        padding-top: clamp(22px, 3.8vw, 30px);
        padding-bottom: clamp(30px, 6vw, 44px);
    }

    .site-footer__cta-link {
        width: 100%;
        justify-content: flex-start;
    }

    .site-footer__cta {
        padding-right: 0 !important;
    }
}

@media (max-width: 767px) {
    .site-footer__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 16px;
    }

    .site-footer .d-menu-1 li a {
        font-size: 12px;
    }

    .site-footer__social {
        margin-top: 10px;
        font-size: 11px;
    }

    .site-footer__copyright {
        margin-top: 11px;
        font-size: 11px;
    }

    .site-footer__cta {
        font-size: clamp(44px, 15vw, 66px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .d-menu-1 li a,
    .site-footer__social a {
        transition: none !important;
    }
}

/* audit: on phones the footer ran a 12px side gutter while page content and the
   nav sit at --site-shell-pad-mobile (~20px), leaving the footer links visibly
   off-grid. Match the shared mobile gutter (desktop keeps the full-bleed look). */
@media (max-width: 767px) {
    .site-footer .px-2 {
        padding-left: var(--site-shell-pad-mobile, 20px) !important;
        padding-right: var(--site-shell-pad-mobile, 20px) !important;
    }
}
