* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    background: #111126;
    color: white;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.projects {
    position: relative;
    z-index: 1;
    width: 100vw;
    height: 100vh;
}

.project-info {
    position: absolute;
    top: 50%;
transform: translateY(-50%);
    left: 8vw;
    z-index: 10;
}




.project-number {
    display: block;
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 0.12em;
    opacity: 0.5;
}

.project-info h1 {
    margin: 0;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.03em;
}


/* M-Bereich */

.m-stage {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 55vh;
    overflow: hidden;

    perspective: 1000px;
    transition: opacity 0.5s ease;
}

.m-carousel {
    position: absolute;
    left: 50%;
    bottom: 0;
transform: translate(-50%, 58%) rotateX(62deg);
transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);

    width: min(75vw, 1000px);
    aspect-ratio: 1;

    transform-style: preserve-3d;
    
    cursor: grab;
user-select: none;
touch-action: none;

  z-index: 20;
    pointer-events: auto;
}


.m-wheel {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;

    pointer-events: none;
    user-select: none;
}

.m-carousel:active {
    cursor: grabbing;
}


.project-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 50% 88%,
            rgba(77, 173, 226, 0.60) 0%,
            rgba(77, 173, 226, 0.32) 28%,
            rgba(77, 173, 226, 0.14) 55%,
            rgba(77, 173, 226, 0.05) 80%,
            transparent 110%
        );

    transition: background 1s ease;
}

/* PROJECT PREVIEW */

.project-preview {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 5;
    pointer-events: none;

    opacity: 0;
    transition: opacity 0.35s ease;
}

.show-project:hover ~ .project-preview {
    opacity: 1;
}

.preview-image {
    position: absolute;

    width: 20vw;
    height: auto;

    left: 50%;
    top: 48%;

    transform: translate(-50%, -50%);

    object-fit: contain;
    transition: none;
}


@keyframes logoFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.logo {
    width: 100px;
    display: block;
    pointer-events: none;
}

.logo-wrap {
    position: absolute;
    width: 100px;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);

    opacity: 0;
    animation: logoFade 0.8s ease forwards;

    z-index: 999;
    pointer-events: auto;
    cursor: pointer;
}

.logo-purple {
    position: absolute;
    top: 0;
    left: 0;

    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.5s ease;

    pointer-events: none;
}

.logo-wrap:hover .logo-purple {
    clip-path: inset(0 0 0 0);
}




.show-project {
    position: absolute;
    top: 50%;

    right: 8vw;
    z-index: 10;

    height: 34px;
    display: flex;
    align-items: flex-end;

    font-size: 12px;
    letter-spacing: 0.12em;
    cursor: pointer;

    pointer-events: auto;
    transition: color 0.3s ease;
}

.show-project:hover {
    color: #DFFF00;
}


@keyframes previewEnter {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }

}

.preview-image.preview-enter {
    animation: previewEnter 0.45s ease-out;
}

.projects:has(.show-project:hover) .m-stage {
    opacity: 0.35;
}



/* ==================================================
   MOBILE — PROJECTS
   ================================================== */

@media (max-width: 768px) {

    .projects {
        height: 100svh;
    }
 


    /* LOGO */

    .logo-wrap {
        width: 105px;
        top: 28px;
    }

    .logo {
        width: 105px;
    }


    /* PROJECT TEXT */

    .project-info {
        position: absolute;

        top: 50%;
        left: 0;

        width: 100%;
        padding: 0 20px;

        transform: translateY(-50%);
        text-align: center;
    }

    .project-number {
        display: block;

        margin-bottom: 18px;

        font-size: 11px;
        text-align: center;
    }

    .project-preview {
    display: none;
}

    .project-info h1 {
        margin: 0;

        font-size: 26px;
        line-height: 0.98;

        text-align: center;
    }


    /* SHOW PROJECT */

    .show-project {
        position: absolute;

        top: calc(50% + 72px);
        left: 0;
        right: auto;

        width: 100%;
        height: auto;

        display: block;

        transform: none;
        text-align: center;

        font-size: 9px;
        letter-spacing: 0.14em;
        white-space: nowrap;

        color: #DFFF00;
    }


    /* M / CAROUSEL */

    .m-stage {
        height: 45svh;
    }

   .m-carousel {
    width: 92vw;
    transform: translate(-50%, 5%) rotateX(62deg);
}
 
}