/* ══════════════════════════════════════════════════
   ALESSIO FALANGA — CREATIVE STUDIO DESIGN SYSTEM
   Authoritative Typography, Color Palette, and Mascot Footer
   ══════════════════════════════════════════════════ */

@font-face {
    font-family: 'DM Sans';
    src: url('/public/fonts/DMSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Epilogue';
    src: url('/public/fonts/Epilogue-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --background: #dfe4f2;
    --foreground: #080909;
    --badge-bg: #f7f8fa;
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 400;
    color: var(--foreground);
    background: var(--background);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'DM Sans', Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Creative Studio Pill Tags */
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
    background: #f7f8fa;
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.2;
    height: 32px;
    white-space: nowrap;
    color: #080909;
    font-weight: 500;
    border: 1px solid rgba(8, 9, 9, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Studio Headlines */
.headline {
    font-family: 'Epilogue', Arial, sans-serif;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #080909;
}

/* Studio Cards */
.studio-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    box-shadow: 0 10px 30px -10px rgba(8, 9, 9, 0.07), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 40px -12px rgba(8, 9, 9, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* Studio Buttons */
.studio-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #080909;
    color: #ffffff !important;
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 500;
    font-size: 15px;
    border-radius: 100px;
    padding: 12px 28px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px -6px rgba(8, 9, 9, 0.3);
    cursor: pointer;
}

.studio-btn-primary:hover {
    transform: translateY(-2px);
    background: #202224;
    box-shadow: 0 12px 28px -6px rgba(8, 9, 9, 0.45);
    color: #ffffff !important;
}

.studio-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #080909;
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 500;
    font-size: 15px;
    border-radius: 100px;
    padding: 12px 26px;
    border: 1px solid rgba(8, 9, 9, 0.1);
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.studio-btn-secondary:hover {
    transform: translateY(-2px);
    background: #f7f8fa;
    border-color: rgba(8, 9, 9, 0.2);
}

/* Navigation Pill */
.studio-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 980px;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE STUDIO MASCOT FOOTER
   ══════════════════════════════════════════════════ */
.footer {
    position: relative;
    min-height: 100vh;
    padding: clamp(60px, 6.54vw, 100px) clamp(24px, 5vw, 80px) 40px;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.footer-background video,
.footer-background img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.jobs {
    position: absolute;
    left: clamp(24px, 6vw, 80px);
    top: clamp(40px, 7vw, 100px);
    width: clamp(220px, 24vw, 320px);
    z-index: 2;
}

.footer .tag {
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
    background: #f7f8fa;
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.2;
    height: 30px;
    white-space: nowrap;
    border: 1px solid rgba(8, 9, 9, 0.08);
}

.footer .headline {
    font-family: Epilogue, Arial, sans-serif;
    font-weight: 900;
    font-size: clamp(20px, 1.8vw, 30px);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.job-title {
    display: block;
    margin-top: 18px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
    font-size: clamp(14px, 1.1vw, 18px);
    line-height: 1.35;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: clamp(40px, 7.5vw, 100px);
    width: clamp(180px, 16vw, 240px);
    z-index: 2;
    text-align: center;
}

.logo svg,
.logo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.contact {
    position: absolute;
    right: clamp(24px, 6vw, 80px);
    left: auto !important;
    top: clamp(40px, 7vw, 100px);
    width: clamp(240px, 25vw, 340px);
    z-index: 2;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 18px;
    white-space: normal;
}

.note {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(8, 9, 9, 0.75);
}

.socials {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
}

.socials span, .socials img {
    display: block;
    width: 32px;
    height: 32px;
}

@media (max-width: 1024px) {
    :root {
        --background: #dfe4f2;
        background: var(--background);
    }

    body {
        background: var(--background);
    }

    .footer {
        display: flex;
        flex-direction: column;
        gap: 24px;
        min-height: auto;
        padding: 48px 20px 80px;
        background: var(--background);
        overflow: hidden;
        text-align: center;
    }

    .logo {
        position: static;
        transform: none;
        order: 0;
        align-self: center;
        width: 180px;
        max-width: 60%;
        margin: 0 auto 4px;
        text-align: center;
    }

    .jobs {
        position: static;
        order: 1;
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .footer .tag {
        height: 30px;
        padding: 6px 14px;
        font-size: 13px;
        margin: 0 auto 12px;
        display: inline-flex;
    }

    .footer .headline {
        font-size: clamp(24px, 6vw, 32px);
        line-height: 1.2;
    }

    .job-title, .contact-links {
        margin-top: 14px;
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 24px;
        margin-top: 16px;
        font-size: 15px;
        line-height: 1.4;
    }

    .footer-nav span, .footer-nav a {
        display: inline-flex;
        align-items: center;
        min-height: auto;
        font-weight: 500;
        color: rgba(8, 9, 9, 0.85);
    }

    .footer-background {
        position: relative;
        inset: auto;
        order: 2;
        z-index: auto;
        flex: none;
        align-self: center;
        width: 100%;
        max-width: 290px;
        margin: 4px auto;
        border-radius: 0;
        background: transparent;
        overflow: visible;
        display: flex;
        justify-content: center;
    }

    .footer-background picture,
    .footer-background img {
        position: static;
        width: 100%;
        height: auto;
        max-height: 270px;
        object-fit: contain;
        border-radius: 0;
        display: block;
    }

    .contact {
        position: static;
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }

    .contact-links {
        gap: 4px;
        white-space: normal;
        align-items: center;
        text-align: center;
    }

    .note {
        max-width: 38ch;
        margin: 10px auto 0;
        font-size: 13px;
        line-height: 1.5;
        white-space: normal;
        text-align: center;
    }

    .socials {
        justify-content: center;
        gap: 18px;
        margin-top: 18px;
    }

    .socials span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
    }

    .socials img {
        width: 28px;
        height: 28px;
    }

    .contact .mt-6 {
        align-items: center;
        text-align: center;
    }
}

