/* A full-screen closing scene with a useful visual rhythm. */
.site-footer {
    position: relative;
    isolation: isolate;
    justify-content: stretch;
    padding: clamp(38px, 6vh, 72px) 0 clamp(18px, 3vh, 30px);
    background:
        radial-gradient(circle at 78% 12%, rgba(53, 200, 240, .11), transparent 27%),
        linear-gradient(145deg, #071020 0%, #09152a 58%, #0b1b34 100%);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(110deg, transparent 8%, #000 62%, transparent 100%);
}

.footer-atmosphere {
    position: absolute;
    z-index: -1;
    width: min(44vw, 650px);
    aspect-ratio: 1;
    right: -8%;
    top: -22%;
    border: 1px solid rgba(53, 200, 240, .12);
    border-radius: 50%;
    pointer-events: none;
}

.footer-atmosphere::before,
.footer-atmosphere::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(53, 200, 240, .1);
}

.footer-atmosphere::before { inset: 16%; border-style: dashed; }
.footer-atmosphere::after { inset: 34%; background: rgba(53, 200, 240, .025); }
.footer-atmosphere i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.footer-atmosphere i:nth-child(1) { left: 7%; top: 53%; }
.footer-atmosphere i:nth-child(2) { right: 18%; top: 19%; background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.footer-atmosphere i:nth-child(3) { right: 7%; bottom: 27%; }

.footer-shell {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.footer-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
    gap: clamp(50px, 9vw, 135px);
    align-items: end;
    padding-bottom: clamp(30px, 5vh, 58px);
    border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.footer-kicker {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 clamp(14px, 2.5vh, 25px);
    color: #8ea1bd;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.2px;
}

.footer-kicker span { width: 32px; height: 1px; background: var(--cyan); }

.footer-cta h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 7.2vh, 82px);
    line-height: 1.02;
    letter-spacing: -3.5px;
}

.footer-cta h2 em { color: var(--cyan); font-style: normal; text-shadow: 0 0 38px rgba(53, 200, 240, .2); }
.footer-cta-copy > p { max-width: 460px; margin: 0 0 25px; color: #9dacc1; font-size: 14px; line-height: 1.85; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 138px; padding: 12px 16px; border-radius: 7px; font-size: 12px; font-weight: 700; transition: transform .25s, border-color .25s, background .25s; }
.footer-button span { margin-left: 22px; font-size: 15px; }
.footer-button:hover, .footer-button:focus-visible { transform: translateY(-2px); }
.footer-button-primary { color: #071020; background: var(--cyan); }
.footer-button-secondary { color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.footer-button-secondary:hover, .footer-button-secondary:focus-visible { border-color: rgba(53, 200, 240, .65); background: rgba(53, 200, 240, .06); }

.footer-main {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) minmax(190px, .72fr) minmax(240px, .78fr);
    gap: clamp(38px, 7vw, 96px);
    align-items: start;
    padding: clamp(26px, 4.5vh, 50px) 0;
}

.brand-footer { margin: 0 0 18px; }
.footer-brand-block p { margin: 0; color: #a1b0c5; font-size: 13px; }
.footer-brand-block p span { display: block; margin-top: 4px; color: #65758d; font-size: 9px; letter-spacing: 1.5px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-nav > strong, .footer-contact > strong { margin-bottom: 7px; color: #65758d; font-size: 9px; font-style: normal; letter-spacing: 1.8px; }
.footer-nav a, .footer-contact a, .footer-contact > span { color: #aebbd0; font-size: 12px; font-style: normal; transition: color .2s, transform .2s; }
.footer-nav a { display: grid; grid-template-columns: 24px auto; gap: 8px; align-items: center; }
.footer-nav a span { color: #40516b; font-size: 8px; }
.footer-nav a:hover, .footer-nav a:focus-visible, .footer-contact a:hover, .footer-contact a:focus-visible { color: #fff; transform: translateX(3px); }
.footer-contact .footer-email { color: #fff; font-size: 14px; }
.footer-email span { margin-left: 7px; color: var(--cyan); }

.site-footer .footer-bottom {
    width: 100%;
    margin: 0;
    padding-top: clamp(13px, 2.2vh, 22px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #586981;
    font-size: 9px;
    letter-spacing: 1px;
}

@media (min-width: 901px) and (max-height: 820px) {
    .site-footer { padding-top: 30px; padding-bottom: 16px; }
    .footer-cta { padding-bottom: 24px; }
    .footer-kicker { margin-bottom: 10px; }
    .footer-cta h2 { font-size: clamp(43px, 7vh, 62px); }
    .footer-cta-copy > p { margin-bottom: 15px; line-height: 1.65; }
    .footer-main { padding: 22px 0; }
    .brand-footer { margin-bottom: 10px; }
}

@media (min-width: 901px) and (max-height: 700px) {
    .site-footer { padding-top: 20px; padding-bottom: 12px; }
    .footer-cta { grid-template-columns: 1.35fr .8fr; padding-bottom: 17px; }
    .footer-kicker { margin-bottom: 6px; }
    .footer-cta h2 { font-size: 42px; }
    .footer-cta-copy > p { margin-bottom: 10px; font-size: 12px; line-height: 1.5; }
    .footer-button { padding: 8px 12px; }
    .footer-main { padding: 14px 0; }
    .brand-footer { margin-bottom: 6px; }
    .footer-brand-block p, .footer-nav a, .footer-contact a, .footer-contact > span { font-size: 10px; }
    .footer-nav, .footer-contact { gap: 4px; }
    .site-footer .footer-bottom { padding-top: 9px; }
}

@media (max-width: 900px), (pointer: coarse) {
    .site-footer { min-height: 100svh; height: auto; padding: 88px 0 25px; }
    .footer-shell { gap: 0; }
    .footer-cta { grid-template-columns: 1fr; gap: 25px; padding-bottom: 42px; }
    .footer-cta h2 { font-size: clamp(48px, 12vw, 72px); }
    .footer-main { grid-template-columns: 1.2fr .8fr; padding: 40px 0; }
    .footer-brand-block { grid-column: 1 / -1; }
    .footer-atmosphere { width: 78vw; right: -32%; top: -8%; }
}

@media (max-width: 580px) {
    .site-footer { padding-top: 82px; }
    .footer-cta h2 { font-size: 47px; letter-spacing: -2px; }
    .footer-cta-copy > p { font-size: 13px; }
    .footer-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .footer-button { min-width: 0; }
    .footer-main { grid-template-columns: 1fr; gap: 30px; }
    .footer-brand-block { grid-column: auto; }
    .site-footer .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .footer-button, .footer-nav a, .footer-contact a { transition: none; }
}
