﻿/* ================= Resets & Variables ================= */
        * { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --color-black: #0a0a0a;
            --color-slate-blue: #333F48;
            --color-warm-grey: #7E7F74;
            --color-muted-brown: #A18269;
            --color-accent: #A18269;
            --color-accent-hover: #8F725A;
            --color-light-grey: #CBCBC4;
            --color-cream: #FEFEEA;
            --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        }

        body, html {
            width: 100%;
            font-family: var(--font-family);
            background-color: #1e272e;
            overflow-x: hidden;
            color: var(--color-cream);
            -webkit-font-smoothing: antialiased;
        }

        /* ================= Header ================= */
        .main-header {
            position: fixed;
            top: 0; left: 0; width: 100%;
            z-index: 100;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            background: linear-gradient(150deg, rgba(30,39,46,0.96) 0%, rgba(51,63,72,0.96) 100%);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 24px rgba(0,0,0,0.15);
        }

        .header-container {
            max-width: 1800px; margin: 0 auto;
            padding: 17px 5vw;
            display: flex; align-items: center; justify-content: space-between;
        }

        .logo {
            display: flex; align-items: center; justify-content: flex-start;
            height: 27px; z-index: 10; flex: 1;
        }
        .logo img { height: 100%; width: auto; filter: brightness(0) invert(1); }

        .header-right {
            display: flex; align-items: center; justify-content: flex-end;
            z-index: 10; flex: 1;
        }

        .nav-menu {
            display: flex; align-items: center; justify-content: center;
            gap: 48px; z-index: 5; flex: 1;
        }

        .nav-link {
            text-decoration: none; color: var(--color-light-grey);
            font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
            transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .nav-link:hover {
            color: var(--color-accent);
            text-shadow: 0.6px 0 0 var(--color-accent), -0.6px 0 0 var(--color-accent);
            transform: translateY(-2px);
        }

        .lang-switch { display: flex; align-items: center; gap: 12px; margin-right: 36px; }
        .lang-btn {
            background: none; border: none; color: var(--color-light-grey);
            font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
            cursor: pointer; transition: color 0.3s ease; font-family: inherit; padding: 0;
        }
        .lang-btn:hover { color: var(--color-cream); }
        .lang-btn.active { color: var(--color-cream); font-weight: 700; }
        .lang-sep { color: rgba(203, 203, 196, 0.2); font-size: 10px; }

        .nav-cta {
            padding: 12px 28px; border-radius: 100px;
            border: 1px solid var(--color-accent); background: var(--color-accent);
            color: var(--color-cream); font-size: 11px; font-weight: 600;
            text-transform: uppercase; letter-spacing: 0.15em; text-decoration: none;
            position: relative; overflow: hidden;
            display: flex; align-items: center; justify-content: center;
            backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 10px rgba(161,130,105,0.2);
            transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.35s ease, background 0.35s ease;
        }
        .nav-cta::before {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
            background: radial-gradient(circle 45px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.08), transparent 100%);
            opacity: 0; transition: opacity 0.3s ease;
        }
        .nav-cta:hover::before { opacity: 1; }
        .nav-cta:hover {
            background: var(--color-accent-hover); border-color: var(--color-accent-hover);
            transform: translateY(-2px) scale(1.03);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 8px 24px rgba(161,130,105,0.3);
        }
        .btn-text-wrapper {
            display: flex; flex-direction: column; height: 1.2em;
            overflow: hidden; position: relative; z-index: 2;
        }
        .btn-text {
            height: 100%; display: flex; align-items: center; justify-content: center;
            transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); white-space: nowrap;
        }
        .nav-cta:hover .btn-text { transform: translateY(-100%); }

        @media (max-width: 768px) {
            .nav-menu { display: none; }
            .lang-switch { display: none; }
            .header-container { padding: 16px 24px; }
        }

        /* ================= Case Hero ================= */
        .case-hero {
            position: relative;
            width: 100%;
            height: 100vh;
            min-height: 600px;
            max-height: 1100px;
            overflow: hidden;
            display: flex;
            align-items: flex-end;
        }

        .case-hero-media {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            object-fit: cover;
            display: block;
        }

        .case-hero-overlay {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: linear-gradient(180deg, rgba(30,39,46,0.3) 0%, rgba(10,10,10,0.75) 100%);
            z-index: 1;
        }

        .case-hero-content {
            position: relative;
            z-index: 2;
            padding: 0 5vw 80px 5vw;
            max-width: 1800px;
            width: 100%;
        }

        .case-hero-category {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--color-accent);
            margin-bottom: 20px;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
        }

        .case-hero-title {
            font-size: clamp(42px, 7vw, 100px);
            font-weight: 500;
            line-height: 1.02;
            letter-spacing: -0.03em;
            color: var(--color-cream);
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.68s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ================= Back Navigation ================= */
        .case-back {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: var(--color-warm-grey);
            font-size: 13px;
            font-weight: 500;
            letter-spacing: 0.04em;
            transition: color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            padding: 40px 5vw;
            max-width: 1800px;
        }

        .case-back:hover {
            color: var(--color-cream);
            transform: translateX(-4px);
        }

        .case-back svg {
            width: 16px; height: 16px;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .case-back:hover svg { transform: translateX(-4px); }

        /* ================= Summary ================= */
        .case-summary {
            padding: 80px 5vw 100px;
            max-width: 1800px;
            margin: 0 auto;
        }

        .case-summary-text {
            font-size: clamp(24px, 3vw, 42px);
            font-weight: 400;
            line-height: 1.35;
            letter-spacing: -0.02em;
            color: var(--color-cream);
            max-width: 900px;
            opacity: 0.9;
        }

        /* ================= Content Sections ================= */
        .case-content {
            max-width: 1800px;
            margin: 0 auto;
            padding: 0 5vw;
        }

        .case-text-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            padding: 60px 0;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }

        .case-text-block {}

        .case-section-label {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.25em;
            text-transform: uppercase;
            color: var(--color-accent);
            margin-bottom: 24px;
        }

        .case-section-text {
            font-size: 17px;
            font-weight: 400;
            line-height: 1.7;
            color: var(--color-light-grey);
            max-width: 560px;
        }

        .case-text-single {
            padding: 60px 0;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            max-width: 700px;
        }

        /* ================= Image Sections ================= */
        .case-image-full {
            width: 100%;
            margin: 40px 0;
            overflow: hidden;
        }

        .case-image-full img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        .case-image-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px;
            margin: 40px 0;
        }

        .case-image-grid img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .case-image-contained {
            max-width: 1800px;
            margin: 60px auto;
            padding: 0 5vw;
        }

        .case-image-contained img {
            width: 100%;
            height: auto;
            display: block;
        }

        .case-gallery {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px;
            margin: 40px 0;
        }

        .case-gallery img {
            width: 100%;
            height: auto;
            object-fit: cover;
            display: block;
        }

        .case-gallery .full-span {
            grid-column: 1 / -1;
        }

        /* ================= Fade-in on scroll ================= */
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1), transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ================= Responsive ================= */
        @media (max-width: 900px) {
            .case-text-grid {
                grid-template-columns: 1fr;
                gap: 48px;
            }
            .case-image-grid,
            .case-gallery {
                grid-template-columns: 1fr;
            }
            .case-hero {
                height: 70vh;
                min-height: 450px;
            }
            .case-hero-content {
                padding-bottom: 50px;
            }
            .case-summary {
                padding: 50px 5vw 60px;
            }
        }

        /* ================= Footer ================= */
        .site-footer {
            width: 100%; max-width: 100%;
            background: var(--color-slate-blue);
        }
        .footer-bar {
            width: 100%; max-width: 1800px; margin: 0 auto;
            padding: 40px 5vw;
            display: flex; justify-content: space-between; align-items: center;
        }
        .footer-logo { display: inline-flex; align-items: center; }
        .footer-logo img { height: 31px; width: auto; opacity: 0.6; transition: opacity 0.4s ease; }
        .footer-logo:hover img { opacity: 1; }
        .footer-nav { display: flex; align-items: center; gap: 36px; }
        .footer-link {
            font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
            text-transform: uppercase; color: var(--color-warm-grey);
            text-decoration: none; position: relative; padding: 4px 0;
            transition: color 0.4s ease;
        }
        .footer-link::after {
            content: ''; position: absolute; bottom: 0; left: 0;
            width: 100%; height: 1px; background: var(--color-accent);
            transform: scaleX(0); transform-origin: left;
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .footer-link:hover { color: var(--color-cream); }
        .footer-link:hover::after { transform: scaleX(1); }
        .footer-top-btn {
            font-size: 19px; color: var(--color-warm-grey);
            background: none; border: none; cursor: pointer;
            padding: 4px 0; line-height: 1; font-family: var(--font-family);
            transition: color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .footer-top-btn:hover { color: var(--color-cream); transform: translateY(-3px); }

/* Mobile stability patch (non-destructive) */
@media (max-width: 768px) {
    .header-container {
        padding: 16px 16px;
    }
    .main-header.scrolled .header-container {
        padding: 12px 16px;
    }
    .logo {
        flex: 0 0 auto;
        height: 24px;
    }
    .header-right {
        flex: 0 0 auto;
    }
    .nav-cta {
        padding: 10px 14px;
        font-size: 10px;
        letter-spacing: 0.1em;
        max-width: 46vw;
        white-space: nowrap;
    }

    .footer-bar {
        padding: 24px 5vw;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .footer-nav {
        width: 100%;
        gap: 14px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .footer-link {
        font-size: 11px;
        letter-spacing: 0.08em;
    }
}


