/* Fulgent Post Atelier — Phase 5.14 dark cinematic studio footer */
#section5.fpa-contact.fpa-studio-footer {
    position: relative;
    background: #070707;
    color: #f4f4f1;
    overflow: hidden;
}

#section5.fpa-contact.fpa-studio-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(42vw, 720px);
    height: 100%;
    background:
        linear-gradient(90deg, #070707 0%, rgba(7,7,7,.68) 22%, rgba(7,7,7,.15) 100%),
        linear-gradient(0deg, rgba(7,7,7,.45), rgba(7,7,7,.08)),
        url('../img/contact/contact-bg.jpg') center center / cover no-repeat;
    opacity: .82;
    pointer-events: none;
}

#section5.fpa-contact.fpa-studio-footer::after {
    content: "STORY BEFORE COLOR.";
    position: absolute;
    top: clamp(82px, 10vh, 120px);
    right: clamp(28px, 4.5vw, 74px);
    z-index: 1;
    color: rgba(255,255,255,.48);
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    letter-spacing: .28em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    pointer-events: none;
}

#section5 .fpa-studio-footer-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    box-sizing: border-box;
    padding: clamp(90px, 11vh, 132px) clamp(30px, 5.2vw, 88px) clamp(24px, 3.5vh, 44px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#section5 .fpa-studio-footer-top {
    display: grid;
    grid-template-columns: 1.3fr .7fr 1.05fr;
    gap: clamp(34px, 5vw, 92px);
    align-items: start;
    border-top: 1px solid rgba(255,255,255,.2);
    padding-top: clamp(24px, 3.5vh, 42px);
}

#section5 .fpa-studio-footer-kicker,
#section5 .fpa-studio-footer-label {
    margin: 0 0 15px;
    color: rgba(255,255,255,.52);
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: .24em;
    text-transform: uppercase;
}

#section5 .fpa-studio-footer-kicker { color: #fff; }

#section5 .fpa-studio-footer-copy {
    max-width: 520px;
    margin: 0;
    color: rgba(255,255,255,.73);
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.72;
}

#section5 .fpa-studio-footer-location,
#section5 .fpa-studio-footer-links a,
#section5 .fpa-studio-footer-links .is-disabled,
#section5 .fpa-studio-footer-email {
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.7;
}

#section5 .fpa-studio-footer-location {
    margin: 0 0 22px;
    color: rgba(255,255,255,.86);
}

#section5 .fpa-studio-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

#section5 .fpa-studio-footer-links a,
#section5 .fpa-studio-footer-email {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.32);
    transition: border-color .25s ease, opacity .25s ease;
}

#section5 .fpa-studio-footer-links a:hover,
#section5 .fpa-studio-footer-email:hover { border-color: #fff; }
#section5 .fpa-studio-footer-links .is-disabled { opacity: .35; }

#section5 .fpa-studio-footer-action {
    justify-self: end;
    width: min(100%, 430px);
    padding: clamp(20px, 2.4vw, 34px);
    background: rgba(0,0,0,.52);
    border: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

#section5 .fpa-studio-footer-action::before {
    content: "Have a project in mind?";
    display: block;
    margin: 0 0 12px;
    color: rgba(255,255,255,.46);
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: .24em;
    text-transform: uppercase;
}

#section5 .fpa-studio-footer-cta {
    width: 100%;
    padding: 16px 0 15px;
    margin: 4px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-top: 0;
    border-bottom: 1px solid rgba(255,255,255,.58);
    background: transparent;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(20px, 2.05vw, 34px);
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: left;
}

#section5 .fpa-studio-footer-cta span:last-child {
    font-size: .8em;
    transform: translateX(0);
    transition: transform .3s ease;
}

#section5 .fpa-studio-footer-cta:hover span:last-child,
#section5 .fpa-studio-footer-cta:focus-visible span:last-child { transform: translateX(7px); }

#section5 .fpa-studio-footer-bottom {
    margin-top: clamp(38px, 7vh, 92px);
    position: relative;
}

#section5 .fpa-studio-footer-wordmark {
    margin: 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.68);
    text-stroke: 1px rgba(255,255,255,.68);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(64px, 12.6vw, 230px);
    line-height: .76;
    letter-spacing: -.055em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateY(20px);
    opacity: .01;
    transition: transform 950ms cubic-bezier(.22,.61,.36,1), opacity 700ms ease, color 950ms ease;
}

#section5.active .fpa-studio-footer-wordmark {
    transform: translateY(0);
    opacity: 1;
    color: rgba(255,255,255,.06);
}

#section5 .fpa-studio-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,.17);
    margin-top: clamp(22px, 3.2vh, 38px);
    padding-top: 15px;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.46);
}

#section5.fpa-studio-footer .section-title-vertical { color: #fff; }

/* The inquiry modal keeps its own Phase 5 white treatment. */
#section5 .fpa-inquiry-modal { color: #111; }

@media (max-width: 1100px) {
    #section5.fpa-contact.fpa-studio-footer::before { width: 50vw; opacity: .6; }
    #section5 .fpa-studio-footer-top { grid-template-columns: 1fr 1fr; }
    #section5 .fpa-studio-footer-action {
        justify-self: stretch;
        width: 100%;
        grid-column: 1 / -1;
        max-width: 680px;
    }
}

@media (max-width: 767px) {
    #section5.fpa-contact.fpa-studio-footer::before {
        width: 100%;
        height: 42%;
        top: auto;
        bottom: 0;
        opacity: .34;
        background:
            linear-gradient(180deg, #070707 0%, rgba(7,7,7,.36) 40%, rgba(7,7,7,.18) 100%),
            url('../img/contact/contact-bg.jpg') center center / cover no-repeat;
    }
    #section5.fpa-contact.fpa-studio-footer::after { display: none; }
    #section5 .fpa-studio-footer-shell { min-height: 100%; padding: 92px 24px 30px; }
    #section5 .fpa-studio-footer-top { grid-template-columns: 1fr; gap: 28px; }
    #section5 .fpa-studio-footer-action { grid-column: auto; padding: 20px; }
    #section5 .fpa-studio-footer-bottom { margin-top: 54px; }
    #section5 .fpa-studio-footer-wordmark {
        font-size: clamp(56px, 21vw, 104px);
        white-space: normal;
        line-height: .84;
    }
    #section5 .fpa-studio-footer-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    #section5 .fpa-studio-footer-wordmark,
    #section5 .fpa-studio-footer-cta span:last-child {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
