@font-face {
    font-family: Neue;
    src: url(fonts/neue-montreal/NeueMontreal-Regular.otf);
}

@font-face {
    font-family: Neue-b;
    src: url(fonts/neue-montreal/NeueMontreal-Bold.otf);
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    height: 100vh;
    background-color: rgb(190, 190, 190);
    margin: 0;
    font-family: Neue, "Poppins", sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    padding-inline: 30px;
}

.links a {
    text-decoration: none;
    color: black;
    padding-inline: 5px;
    transition: 0.3s;
    font-weight: bold;
}

.links a:hover {
    cursor: pointer;
    margin-inline: 5px;
    border: 1px solid black;
    padding: 10px;
    border-radius: 30px;
    font-size: 20px;
}

/* --- Responsive Navigation --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1002;
    /* Above overlay */
}

.bar {
    width: 100%;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.mobile-links a {
    color: #fff;
    font-family: 'Neue-b', sans-serif;
    font-size: 3rem;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.mobile-nav.active .mobile-links a {
    transform: translateY(0);
    opacity: 1;
}

/* Hamburger Animation */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #fff;
    /* White on black overlay */
}

.menu-toggle.active .bar:nth-child(2) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #fff;
}

/* Unified Work Page Layout (Sticky Text + Scroll) */

/* Hide Desktop Work List (Legacy) */
.desktop-only,
.fixed-image-reveal {
    display: none !important;
}

.work-container {
    display: none !important;
}

/* Global V3 Layout */
.mobile-work-container {
    position: relative;
    width: 100%;
    background-color: rgb(190, 190, 190);
    display: block;
}

/* Sticky Text Section */
.mobile-text-sticky {
    position: fixed;
    bottom: 5vh;
    left: 30px;
    z-index: 20;
    pointer-events: none;
    /* Let scroll pass through if needed, though it's fixed */
    mix-blend-mode: difference;
    /* Restored blending */
    color: #fff;
    /* White works best with difference mode */
}

.text-group {
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 80vw;
}

.text-group.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.text-group h1 {
    font-family: 'Neue-b', sans-serif;
    font-size: 10vw;
    /* Reduced size */
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.text-group p {
    font-family: 'Neue', sans-serif;
    font-size: 1rem;
    opacity: 0.8;
}

/* Vertical Image Scroll */
.mobile-image-scroll {
    padding-top: 20vh;
    /* Space before first image */
    padding-bottom: 50vh;
    /* Space after last image */
    z-index: 10;
    position: relative;
}

.mobile-img-wrapper {
    width: 100%;
    height: 80vh;
    /* Nearly full height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20vh;
    /* Gap between images */
}

.mobile-img-wrapper img {
    width: 40%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.3;
    /* Default dim state */
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.mobile-img-wrapper.active img {
    opacity: 1;
    /* Highlight active image */
    transform: scale(1);
}

@media screen and (max-width: 768px) {
    .desktop-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Make images bigger on mobile */
    .mobile-img-wrapper img {
        width: 85%;
        filter: none !important;
        /* Force remove blur */
        opacity: 1 !important;
        /* Force full opacity always */
        transform: none !important;
        /* Remove scaling effect */
    }

    /* Remove text on mobile as requested */
    .mobile-text-sticky {
        display: none !important;
    }
}

.work-container {
    width: 100vw;
    min-height: 100vh;
    padding: 15vh 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.work-list {
    list-style: none;
    width: 80%;
    max-width: 1200px;
}

.work-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s, opacity 0.3s;
}

.work-item:hover {
    border-color: #fff;
}

/* Dim siblings on hover */
.work-list:hover .work-item {
    opacity: 0.4;
}

.work-list:hover .work-item:hover {
    opacity: 1;
}

.work-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    text-decoration: none;
    color: #fff;
    font-size: 3vw;
    text-transform: uppercase;
    font-family: 'Neue', sans-serif;
    position: relative;
    cursor: pointer;
}

.work-link .client {
    flex: 2;
    font-weight: 500;
}

.work-link .service,
.work-link .year {
    flex: 1;
    font-size: 1.2rem;
    opacity: 0.7;
    text-align: right;
    font-weight: 300;
}

/* Floating Image Container */
.fixed-image-reveal {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 400px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    background-size: cover;
    background-position: center;
    transition: transform 0.1s linear;
    will-change: transform, opacity;
    border-radius: 4px;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .work-link {
        font-size: 6vw;
        padding: 2rem 0;
    }

    .work-link .service {
        display: none;
    }

    .work-list {
        width: 90%;
    }
}

.intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loader-text {
    font-family: 'Neue-b', 'Poppins', sans-serif;
    font-size: 8vw;
    font-weight: 700;
    overflow: hidden;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

.loader-text span {
    display: inline-block;
    transform: translateY(100%);
}

.loader-counter {
    position: absolute;
    bottom: 50px;
    right: 50px;
    font-family: 'Neue', 'Poppins', sans-serif;
    font-size: 2rem;
    font-variant-numeric: tabular-nums;
}