@font-face {
    font-display: swap;
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/space-mono-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Space Mono';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/space-mono-latin-400-italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/space-mono-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Space Mono';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/space-mono-latin-700-italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/poppins-v24-latin-500.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/poppins-v24-latin-700.woff2') format('woff2');
}


*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}


:root {
    --bg: #0a0a0a;
    --fg: #ffffff;
    --muted: #888888;
    --accent: #FF4D00;
    --border: rgba(255, 255, 255, 0.1);
    --font: 'Space Mono', system-ui, sans-serif;
    --section-gap: 160px;
    --pad: 48px;
}

html {
    scroll-behavior: smooth;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}


body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', system-ui, sans-serif;
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
}


.cursor.hover {
    width: 24px;
    height: 24px;
}

.cursor-visible * {
    cursor: none !important;
}

body.scrolling .cursor {
    opacity: 1
}


.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 var(--pad);
}


nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px var(--pad) 100px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    -webkit-mask-image: none;
    mask-image: none;
}

nav::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom,
            rgba(10, 10, 10, 0.85) 0%,
            rgba(10, 10, 10, 0.0) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 35%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 35%, transparent 100%);
    pointer-events: none;
}


.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    z-index: 110;
    cursor: none;
}


.nav-toggle .bar {
    width: 100%;
    height: 1px;
    background: var(--fg);
    transition: transform 0.3s ease, opacity 0.3s ease;
}


.nav-toggle.active .top {
    transform: translateY(7px) rotate(45deg);
}


.nav-toggle.active .mid {
    opacity: 0;
}


.nav-toggle.active .bot {
    transform: translateY(-7px) rotate(-45deg);
}


.logo {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent);
    text-decoration: none;
    position: relative;
    z-index: 110;
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}


.nav-links a {
    font-size: 13px;
    color: var(--fg);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}


.nav-links a:hover {
    opacity: 1;
    color: var(--accent);
}


.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--pad) 80px;
    position: relative;
}


.hero-scroll-hint {
    position: absolute;
    bottom: 80px;
    right: var(--pad);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
}


.hero h1 {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    max-width: 700px;
}


.hero p {
    font-size: 16px;
    color: var(--muted);
    margin-top: 16px;
}

.accent-dot {
    color: var(--accent);
}


#lavori {
    padding: 80px 0 var(--section-gap);
}


.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad) 48px;
}


.section-heading h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}


.section-heading .section-label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}


.scroll-hint-x {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    align-self: flex-end;
}


.scroll-hint-x__track {
    position: relative;
    width: 96px;
    height: 6px;
    background: transparent;
    overflow: hidden;
    display: block;
    border-radius: 500px;
}


.scroll-hint-x__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 6px;
    background: var(--muted);
    border-radius: 500px;
    animation: scroll-x 1.6s ease-in-out infinite;
}


@keyframes scroll-x {
    0% {
        transform: translateX(-16px);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateX(48px);
        opacity: 0;
    }
}


.work-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 0 var(--pad);
    margin-left: -20px;
    margin-right: -20px;
    scrollbar-width: none;
}


.work-grid::-webkit-scrollbar {
    display: none;
}


.project-card {
    flex: 0 0 420px;
    aspect-ratio: 1 / 1;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}


.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.project-card:hover img {
    transform: scale(1.04);
}


.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    background: linear-gradient(to top,
            rgba(10, 10, 10, 0.92) 0%,
            rgba(10, 10, 10, 0.5) 40%,
            rgba(10, 10, 10, 0.0) 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
}


.project-card:hover .card-overlay {
    opacity: 1;
}


.card-overlay .card-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin-bottom: 10px;
}


.card-overlay .card-desc {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    max-width: 320px;
}


a.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
}


.project-description {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 80px var(--pad) 0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    min-height: 320px;
    align-items: start;
}


.proj-title-wrapper {
    padding: 60px 48px 60px 0;
}


.proj-text-wrapper {
    position: relative;
    padding: 130px 0 60px 48px;
}


.proj-text-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(10, 10, 10, 0.0) 0%,
            rgba(10, 10, 10, 0.7) 40%,
            rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 0;
}


.proj-title-wrapper>*,
.proj-text-wrapper>* {
    position: relative;
    z-index: 1;
}


.proj-label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}


.proj-title-wrapper h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.1;
}


.proj-text-wrapper p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}


.case-study-link {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: opacity 0.2s;
}


.case-study-link:hover {
    opacity: 0.7;
}

.project-card--locked {
    cursor: not-allowed;
    position: relative;
}

.project-card--locked .card-overlay {
    opacity: 0.35;
}

.project-card--locked img {
    filter: grayscale(60%) brightness(0.6);
    transition: none;
}

.card-coming-soon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.3em 0.8em;
    border-radius: 2px;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.case-study-link--locked {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
    border-bottom: 1px dashed currentColor;
}


#playground {
    padding: 80px 0 var(--section-gap);
}


.playground-grid {
    display: flex;
    overflow-x: auto;
    gap: 32px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 var(--pad);
    scrollbar-width: none;
}


.playground-grid::-webkit-scrollbar {
    display: none;
}


.playground-card {
    flex: 0 0 90vw;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}


.playground-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.playground-card:hover img {
    transform: scale(1.04);
}


.playground-card .card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background: linear-gradient(to top,
            rgba(10, 10, 10, 0.92) 0%,
            rgba(10, 10, 10, 0.5) 40%,
            rgba(10, 10, 10, 0.0) 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
}


.playground-card:hover .card-overlay {
    opacity: 1;
}

.playground-card--locked {
    cursor: not-allowed;
    position: relative;
}

.playground-card--locked img {
    filter: grayscale(60%) brightness(0.6);
    transition: none;
}

.playground-card--locked .card-overlay {
    opacity: 0.35;
}

#chi-sono {
    padding: 80px var(--pad) var(--section-gap);
    max-width: 900px;
}


#chi-sono .section-label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 40px;
    display: block;
}


#chi-sono h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;
}


#chi-sono p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
}


footer {
    background: #ffffff;
    color: #0a0a0a;
    padding: 80px var(--pad) 48px;
}


.footer-cta {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
}


.footer-email {
    font-size: 16px;
    color: #444;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.footer-email a {
    color: #0a0a0a;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}


.footer-email a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}


.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 40px;
}


.footer-col h4 {
    font-size: 11px;
    color: #999;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}


.footer-col ul {
    list-style: none;
}


.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #0a0a0a;
    opacity: 0.7;
}


.footer-col ul li a {
    font-size: 14px;
    color: #0a0a0a;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}


.footer-col ul li a:hover {
    opacity: 1;
    color: var(--accent);
}


.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: #999;
}


@media (max-width: 768px) {
    :root {
        --section-gap: 100px;
        --pad: 24px;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: linear-gradient(to bottom,
                rgba(10, 10, 10, 0.97) 0%,
                rgba(10, 10, 10, 0.95) 70%,
                rgba(10, 10, 10, 0.60) 90%,
                rgba(10, 10, 10, 0.0) 100%);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        padding: 80px 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: 105;
        list-style: none;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 28px;
        font-weight: 700;
        letter-spacing: -0.01em;
        opacity: 1;
        color: var(--fg);
    }

    .nav-links a:hover {
        color: var(--accent);
    }

    nav.nav-open .nav-links {
        opacity: 1;
        visibility: visible;
    }

    nav {
        padding-bottom: 24px;
    }

    nav::before {
        -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
    }

    .nav-toggle {
        display: flex;
    }

    #lavori {
        padding: 64px 0 var(--section-gap);
    }

    .project-card {
        flex: 0 0 300px;
    }

    .work-grid {
        gap: 20px;
        margin-left: 0;
        margin-right: 0;
    }

    .playground-card {
        flex: 0 0 85vw;
    }

    .playground-grid {
        gap: 20px;
        margin-left: 0;
        margin-right: 0;
    }

    .card-overlay .card-title {
        font-size: 22px;
    }

    .project-description {
        grid-template-columns: 1fr;
        margin-top: 48px;
    }

    .proj-title-wrapper {
        padding: 40px 0 0;
    }

    .proj-text-wrapper {
        padding: 32px 0 40px;
    }

    footer {
        padding: 60px var(--pad) 40px;
    }

    .footer-cta {
        margin-bottom: 4px;
    }

    .footer-email {
        margin-bottom: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }


    *,
    *::before,
    *::after {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .hero-scroll-hint {
        display: block;
        bottom: 40px;
        right: auto;
        left: var(--pad);
        opacity: 0.6;
    }
}



*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

button:focus-visible,
.nav-toggle:focus-visible,
.carousel-btn:focus-visible,
.lightbox__close:focus-visible,
.flipbook-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 50%;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
    text-decoration: underline;
}

.project-card:focus-visible,
.playground-card:focus-visible,
.carousel-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent), 0 0 20px rgba(255, 77, 0, 0.2);
}

.skip-link {
    position: absolute;
    top: -999px;
    left: 16px;
    background: var(--accent);
    color: #fff;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 0 0 4px 4px;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus-visible {
    top: 0;
    outline: none;
}