/* V5.6.1: the selected four-column footer from the original beta reference.
   Uses the existing shared PHP renderer, service-link language hooks, consent
   controller and licensed social glyphs. V5.6.6 gives the preceding marquee
   a dark surface on internal pages; the homepage keeps its approved white. */
[data-sbi-global-footer].sbi-global-footer {
    --sbi-footer-copy: var(--sbi-v561-font-copy, var(--sbi-global-font-body, sans-serif));
    --sbi-footer-ink: #f5f1f7;
    --sbi-footer-muted: #b8b0c2;
    --sbi-footer-line: rgba(255, 255, 255, .125);
    --sbi-footer-accent: var(--sbi-global-shell-purple, #c59cff);
    --sbi-footer-color-transition: color .2s ease;
    padding: clamp(32px, 5vw, 72px) max(20px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    background: #100c15;
    border-top: 1px solid var(--sbi-footer-line);
    color: var(--sbi-footer-ink);
    font-family: var(--sbi-footer-copy);
}
[data-sbi-global-footer] .sbi-global-footer-inner {
    display: grid;
    grid-template-columns: 1.35fr 1.3fr .9fr 1.2fr;
    grid-template-areas: "brand services company contact" "utilities utilities utilities utilities";
    align-items: start;
    justify-items: stretch;
    gap: 44px 32px;
    width: min(100%, 1240px);
    margin-inline: auto;
    padding: 0;
    color: var(--sbi-footer-ink);
    font: 400 .875rem/1.5 var(--sbi-footer-copy);
    text-align: left;
}
[data-sbi-global-footer] .sbi-global-footer-inner > * { min-width: 0; max-width: 100%; }
[data-sbi-global-footer] .sbi-shell-eyebrow {
    margin: 0 0 14px;
    color: var(--sbi-footer-muted);
    font: 500 .6875rem/1.45 ui-monospace, "Courier New", monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
}
[data-sbi-global-footer] .sbi-footer-brand-block { grid-area: brand; }
/* The reference uses the existing Space Grotesk typographic mark at its
   available 700 weight. No new logo drawing or synthetic 900 weight. */
[data-sbi-global-footer] .sbi-footer-wordmark {
    display: inline-flex;
    align-items: flex-start;
    color: var(--sbi-footer-ink);
    font: 700 52px/.9 var(--sbi-footer-copy);
    letter-spacing: -.075em;
    text-decoration: none;
}
[data-sbi-global-footer] .sbi-footer-wordmark > span {
    margin-left: 8px;
    color: var(--sbi-footer-accent);
    font-size: 23px;
    letter-spacing: 0;
}
[data-sbi-global-footer] .sbi-footer-brand-description {
    margin: 14px 0 0;
    color: var(--sbi-footer-ink);
    font: 600 .625rem/1.5 var(--sbi-footer-copy);
    letter-spacing: .13em;
}
[data-sbi-global-footer] .sbi-footer-brand-slogan {
    margin: 7px 0 13px;
    opacity: .68;
    color: var(--sbi-footer-muted);
    font: 400 .625rem/1.5 ui-monospace, "Courier New", monospace;
    letter-spacing: .07em;
}
/* V5.6.16: all six brand words and service links share the project clock. */
[data-sbi-global-footer] .sbi-footer-brand-word { color: var(--sbi-footer-ink); }
[data-sbi-global-footer] .sbi-footer-brand-word,
[data-sbi-global-footer] .sbi-footer-capabilities > a {
    transition: var(--sbi-footer-color-transition);
}
[data-sbi-global-footer] .sbi-global-socials {
    grid-area: auto;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 0 -10px;
}
[data-sbi-global-footer] .sbi-global-socials a,
[data-sbi-global-footer] .sbi-global-socials a:is(:hover, :focus-visible) {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    background: transparent;
    background-image: none;
    border: 0;
    box-shadow: none;
    filter: none;
    transform: none;
}
[data-sbi-global-footer] .sbi-global-socials svg.sbi-brand-neutral {
    width: 42px;
    height: 42px;
    color: var(--sbi-footer-ink);
}
[data-sbi-global-footer] .sbi-global-socials a:is(:hover, :focus-visible) svg.sbi-brand-neutral { color: var(--sbi-footer-accent); }
[data-sbi-global-footer] .sbi-footer-services {
    grid-area: services;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
}
[data-sbi-global-footer] .sbi-footer-company { grid-area: company; }
[data-sbi-global-footer] .sbi-footer-contact { grid-area: contact; }
[data-sbi-global-footer] .sbi-footer-company,
[data-sbi-global-footer] .sbi-footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
[data-sbi-global-footer] .sbi-footer-services > .sbi-footer-capabilities {
    grid-area: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: start;
    gap: 0;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
}
[data-sbi-global-footer] .sbi-footer-capabilities > a,
[data-sbi-global-footer] .sbi-footer-company > a,
[data-sbi-global-footer] .sbi-footer-contact > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    min-height: 36px;
    max-width: 100%;
    padding: 5px 0;
    color: var(--sbi-footer-ink);
    font: 400 .8125rem/1.45 var(--sbi-footer-copy);
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    text-wrap: pretty;
    white-space: normal;
    overflow-wrap: anywhere;
}
[data-sbi-global-footer] .sbi-footer-location { margin: 8px 0 0; color: var(--sbi-footer-muted); font-size: .75rem; }
[data-sbi-global-footer] .sbi-footer-utilities {
    grid-area: utilities;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 24px;
    width: 100%;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--sbi-footer-line);
}
[data-sbi-global-footer] .sbi-footer-copyright { margin: 0; color: var(--sbi-footer-muted); font: 400 .6875rem/1.4 var(--sbi-footer-copy); }
[data-sbi-global-footer] .sbi-footer-utility-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 18px; min-width: 0; }
[data-sbi-global-footer] .sbi-footer-utility-links > :is(a, button) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 3px 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--sbi-footer-muted);
    font: 400 .6875rem/1.4 var(--sbi-footer-copy);
    text-decoration: none;
    overflow-wrap: anywhere;
    cursor: pointer;
}
[data-sbi-global-footer] :is(a, button):is(:hover, :focus-visible),
[data-sbi-global-footer] .sbi-footer-brand-word.is-featured,
[data-sbi-global-footer] .sbi-footer-capabilities > a.is-featured { color: var(--sbi-footer-accent); }
[data-sbi-global-footer] :is(a, button):focus-visible { outline: 2px solid var(--sbi-footer-accent); outline-offset: 4px; border-radius: 3px; }

/* V5.6.6: distinguish the contact band from the white client closing section.
   Keep the existing separator glyph, accent, content, links and motion. */
body:is(.sbi-client-case-page, .sbi-service-page, .sbi-404-page) #sbi-footer-marquee {
    background: #100c15;
    color: #fff;
    border-color: rgba(255, 255, 255, .125);
}
body:is(.sbi-client-case-page, .sbi-service-page, .sbi-404-page) #sbi-footer-marquee .sbi-footer-marquee-link {
    color: #fff;
}
body:is(.sbi-client-case-page, .sbi-service-page, .sbi-404-page) #sbi-footer-marquee .sbi-footer-marquee-link:is(:hover, :focus-visible) {
    color: #fff;
    background: #28133f;
}
body:is(.sbi-client-case-page, .sbi-service-page, .sbi-404-page) #sbi-footer-marquee .sbi-footer-marquee-link:focus-visible {
    box-shadow: inset 0 0 0 3px #c59cff;
}

@media (min-width: 1024px) and (max-width: 1279px) {
    [data-sbi-global-footer] .sbi-global-footer-inner { column-gap: 24px; }
}
@media (max-width: 1023px) {
    [data-sbi-global-footer] .sbi-global-footer-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-areas: "brand brand brand" "services company contact" "utilities utilities utilities";
        gap: 28px 24px;
    }
    [data-sbi-global-footer] .sbi-footer-brand-block { display: grid; grid-template-columns: auto 1fr; column-gap: 26px; align-items: center; }
    [data-sbi-global-footer] .sbi-footer-wordmark { grid-row: span 2; }
    [data-sbi-global-footer] .sbi-footer-brand-description { margin-top: 0; }
    [data-sbi-global-footer] .sbi-footer-brand-slogan { margin: 4px 0 0; }
    [data-sbi-global-footer] .sbi-global-socials { grid-column: 1 / -1; margin-top: 12px; }
}
@media (max-width: 767px) {
    [data-sbi-global-footer].sbi-global-footer { padding-top: 30px; }
    [data-sbi-global-footer] .sbi-global-footer-inner {
        width: min(100%, 620px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "brand brand" "services company" "contact contact" "utilities utilities";
        gap: 24px;
    }
    [data-sbi-global-footer] .sbi-footer-wordmark { font-size: 46px; }
    [data-sbi-global-footer] .sbi-shell-eyebrow { margin-bottom: 7px; }
    [data-sbi-global-footer] .sbi-footer-capabilities > a,
    [data-sbi-global-footer] .sbi-footer-company > a,
    [data-sbi-global-footer] .sbi-footer-contact > a { min-height: 44px; font-size: .8125rem; }
    [data-sbi-global-footer] .sbi-footer-utilities { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 12px; }
    [data-sbi-global-footer] .sbi-footer-utility-links { justify-content: flex-start; gap: 0 16px; }
}
@media (max-width: 359px) {
    [data-sbi-global-footer] .sbi-global-footer-inner { gap: 20px 16px; }
    [data-sbi-global-footer] .sbi-footer-brand-block { column-gap: 14px; }
}
@media (max-width: 279px) {
    [data-sbi-global-footer] .sbi-global-footer-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "services" "company" "contact" "utilities"; }
    [data-sbi-global-footer] .sbi-footer-brand-block { display: block; }
    [data-sbi-global-footer] .sbi-footer-brand-description { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    [data-sbi-global-footer] *,
    [data-sbi-global-footer] .sbi-footer-brand-word,
    [data-sbi-global-footer] .sbi-footer-capabilities > a { transition: none; }
    [data-sbi-global-footer] .sbi-footer-brand-word.is-featured { color: var(--sbi-footer-ink); }
}
@media (forced-colors: active) {
    [data-sbi-global-footer] .sbi-footer-brand-slogan { opacity: 1; }
    [data-sbi-global-footer].sbi-global-footer { background: Canvas; color: CanvasText; border-color: CanvasText; }
    [data-sbi-global-footer] :is(a, button),
    [data-sbi-global-footer] .sbi-footer-capabilities > a.is-featured,
    [data-sbi-global-footer] :is(a, button):is(:hover, :focus-visible),
    [data-sbi-global-footer] .sbi-global-socials svg.sbi-brand-neutral,
    [data-sbi-global-footer] .sbi-global-socials a:is(:hover, :focus-visible) svg.sbi-brand-neutral { color: LinkText; }
    [data-sbi-global-footer] :is(p, .sbi-footer-wordmark > span),
    [data-sbi-global-footer] .sbi-footer-brand-word,
    [data-sbi-global-footer] .sbi-footer-brand-word.is-featured { color: CanvasText; }
    [data-sbi-global-footer] .sbi-footer-utilities { border-color: CanvasText; }
    [data-sbi-global-footer] :is(a, button):focus-visible { outline-color: Highlight; }
}
