/*
 * Site footer. Sole owner of `.site-footer` styling — the studio and home
 * sheets deliberately no longer touch `.footer`, so this one component looks
 * identical under `body.studio`, `body.home-studio` and the campaign pages.
 * Selectors stay at (0,0,1,1) or higher so the layout's legacy inline `.footer`
 * block, which is emitted last, cannot win.
 */
footer.site-footer {
    --sf-bg: #0a0e09;
    --sf-line: rgba(209, 234, 209, .12);
    --sf-green: #a3ef38;
    --sf-heading: #f2f6ec;
    --sf-text: #b6c1ac;
    --sf-muted: #8b9a81;
    --sf-dim: #879680;

    position: relative;
    z-index: 10;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--sf-bg);
    color: var(--sf-text);
    font-family: 'Manrope', 'Inter', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    backdrop-filter: none;
    box-shadow: none;
}

/* A hairline that carries the accent through its centre, and one soft bloom
   behind the brand — the only two decorations in the whole component. */
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, #a3ef3866 22%, #a3ef38 50%, #a3ef3866 78%, transparent);
}
.site-footer::after {
    content: '';
    position: absolute;
    top: -240px;
    left: 0;
    right: 0;
    height: 460px;
    background: radial-gradient(ellipse 46% 100% at 26% 100%, #a3ef3812, transparent 70%);
    pointer-events: none;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after { box-sizing: border-box; }
.site-footer :is(h2, h3, p, ul, li) { margin: 0; padding: 0; }
.site-footer ul { list-style: none; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer img { display: block; max-width: 100%; }
.site-footer :is(a, button):focus-visible { outline: 2px solid var(--sf-green); outline-offset: 4px; border-radius: 3px; }

.site-footer .sf-shell {
    position: relative;
    z-index: 1;
    width: calc(100% - 80px);
    max-width: 1440px;
    margin-inline: auto;
}

/* ------------------------------------------------------------- link deck -- */
.site-footer .sf-main {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) repeat(4, minmax(0, 1fr));
    gap: 36px 40px;
    padding-block: 58px 44px;
}

.site-footer .sf-brand { display: flex; flex-direction: column; align-items: flex-start; max-width: 330px; }
.site-footer .sf-brand-logo img { height: 44px; width: auto; object-fit: contain; }
.site-footer .sf-tagline { margin-top: 14px; color: var(--sf-muted); font-size: 13px; line-height: 1.65; letter-spacing: -.01em; }

.site-footer .sf-patreon {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    margin-top: 22px;
    padding: 13px 15px;
    border: 1px solid #3a4d2a;
    border-radius: 11px;
    background: linear-gradient(115deg, #17230f, #101610 66%, #111611);
    transition: border-color .18s, transform .18s;
}
.site-footer .sf-patreon:hover { border-color: #8dbb52; transform: translateY(-2px); }
.site-footer .sf-patreon-mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #1e2c13;
    color: var(--sf-green);
    font-size: 16px;
}
.site-footer .sf-patreon-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.site-footer .sf-patreon-copy strong { color: var(--sf-heading); font-size: 14px; font-weight: 800; letter-spacing: -.03em; line-height: 1.35; }
.site-footer .sf-patreon-copy span { display: flex; align-items: center; gap: 8px; color: var(--sf-green); font-size: 11px; line-height: 1.5; }
.site-footer .sf-patreon-copy .fa { font-size: 15px; transition: transform .18s; }
.site-footer .sf-patreon:hover .sf-patreon-copy .fa { transform: translateX(4px); }

.site-footer .sf-col h3 {
    margin-bottom: 14px;
    color: var(--sf-dim);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.site-footer .sf-links li + li { margin-top: 9px; }
.site-footer .sf-links a {
    display: inline-block;
    color: var(--sf-text);
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: -.015em;
    transition: color .18s, transform .18s;
}
.site-footer .sf-links a:hover { color: var(--sf-green); transform: translateX(3px); }

/* ------------------------------------------------------------ base plate -- */
.site-footer .sf-base { position: relative; border-top: 1px solid var(--sf-line); background: #080c08; }
.site-footer .sf-base-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding-block: 20px;
}
.site-footer .sf-copyright { color: var(--sf-muted); font-size: 12px; line-height: 1.6; }
.site-footer .sf-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.site-footer .sf-legal a { color: var(--sf-muted); font-size: 12px; line-height: 1.6; transition: color .18s; }
.site-footer .sf-legal a:hover { color: var(--sf-green); }
.site-footer .sf-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #31402a;
    border-radius: 50%;
    color: var(--sf-text);
    font-size: 17px;
    transition: color .18s, border-color .18s, background .18s;
}
.site-footer .sf-top:hover { color: var(--sf-green); border-color: #6f9147; background: #16200f; }

.site-footer .sf-disclaimer {
    max-width: 1000px;
    padding-block: 0 30px;
    color: var(--sf-dim);
    font-size: 11.5px;
    line-height: 1.7;
}
.site-footer .sf-disclaimer strong { color: var(--sf-muted); font-weight: 700; }

/* The wordmark sits under the base plate as texture, never as content. */
.site-footer .sf-wordmark {
    position: absolute;
    right: -12px;
    bottom: -26px;
    color: #a3ef38;
    opacity: .045;
    font-size: clamp(84px, 9vw, 142px);
    font-weight: 800;
    line-height: .72;
    letter-spacing: -.065em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 1199px) {
    .site-footer .sf-shell { width: calc(100% - 56px); }
    .site-footer .sf-main { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 32px 26px; padding-block: 50px 38px; }
    .site-footer .sf-brand { max-width: none; }
    .site-footer .sf-links a { font-size: 12.5px; }
}
@media (max-width: 991px) {
    /* The brand steps onto its own row; the four sections keep their columns. */
    .site-footer .sf-main { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 22px; }
    .site-footer .sf-brand { grid-column: 1 / -1; max-width: 520px; }
    .site-footer .sf-wordmark { font-size: clamp(70px, 12vw, 104px); }
}
@media (max-width: 600px) {
    .site-footer .sf-shell { width: calc(100% - 36px); }
    /* Sections stay two-up rather than stacking: a phone footer with 20 links
       reads better as two short columns than one very long one. */
    .site-footer .sf-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-block: 40px 30px; }
    .site-footer .sf-brand { max-width: none; }
    .site-footer .sf-patreon { margin-top: 18px; }
    .site-footer .sf-col h3 { margin-bottom: 11px; }
    .site-footer .sf-links a { font-size: 13px; }
    .site-footer .sf-base-row { padding-block: 18px; gap: 12px; }
    .site-footer .sf-copyright { order: 3; width: 100%; }
    .site-footer .sf-disclaimer { padding-bottom: 26px; font-size: 11px; }
    .site-footer .sf-wordmark { right: -8px; bottom: -14px; font-size: 62px; }
}
@media (prefers-reduced-motion: reduce) {
    .site-footer *, .site-footer *::before, .site-footer *::after { transition: none !important; }
    .site-footer .sf-patreon:hover { transform: none; }
    .site-footer .sf-links a:hover { transform: none; }
}
