﻿/* CSS Resets & Base 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 (Shared) ================= */
        .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);
        }

        /* Bilingual Language Switch */
        .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; }
        }

        /* ================= Projects Page Specific Styles ================= */
        .projects-page {
            padding-top: 170px;
            width: 100%;
            background: linear-gradient(180deg, #1e272e 0%, var(--color-slate-blue) 100%);
            min-height: 100vh;
        }

        /* Intro Section */
        .projects-intro {
            padding: 0 5vw;
            max-width: 1800px;
            margin: 0 auto 80px auto;
            text-align: left;
        }

        .projects-intro h1 {
            font-size: clamp(40px, 6vw, 85px);
            font-weight: 500;
            line-height: 1.05;
            letter-spacing: -0.03em;
            color: var(--color-cream);
        }

        /* ================= Editorial Full-Width Split Showcase ================= */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2px; /* Minimal high-end separation */
            width: 100vw;
            max-width: 100%;
            margin: 0;
            background-color: var(--color-black); /* Acts as the minimal divider line natively */
            padding: 0;
        }

        .project-card {
            position: relative;
            width: 100%;
            height: clamp(500px, 75vh, 900px); /* Massive, immersive vertical boundaries */
            overflow: hidden;
            display: block;
            background-color: var(--color-black);
            text-decoration: none;
            cursor: pointer;
        }

        .project-cover {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
            filter: brightness(0.85);
            display: block;
            will-change: transform;
        }

        .proj-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.85) 100%);
            opacity: 0.6;
            transition: opacity 0.8s ease;
            z-index: 1;
            pointer-events: none;
        }

        /* Project Meta (Text Only, No Button) */
        .project-meta {
            position: absolute;
            bottom: 24px;
            left: 24px;
            right: 24px; /* Spread text out */
            padding: 20px 32px;
            display: grid;
            grid-template-columns: 1fr auto;
            grid-template-areas:
                "title category"
                "context context";
            align-items: start;
            row-gap: 8px;
            z-index: 2;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none; /* Let parent A tag handle hover */
        }

        .project-card:hover .project-meta {
            opacity: 1;
            transform: translateY(0);
        }

        .pill-title {
            grid-area: title;
            font-size: clamp(20px, 1.8vw, 24px);
            font-weight: 500;
            color: var(--color-cream);
            letter-spacing: -0.01em;
            position: relative;
            z-index: 1;
            transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
        }

        .project-card:hover .pill-title {
            transform: translateX(6px);
            color: var(--color-cream); /* Keep crisp */
        }

        .pill-category {
            grid-area: category;
            justify-self: end;
            font-size: 13px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.7);
            letter-spacing: 0.15em;
            text-transform: uppercase;
            position: relative;
            z-index: 1;
            transition: color 0.4s ease;
        }

        .pill-context {
            grid-area: context;
            font-size: 12px;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.84);
            letter-spacing: 0.02em;
            line-height: 1.35;
            position: relative;
            z-index: 1;
            transition: color 0.4s ease;
        }
        
        .project-card:hover .pill-category {
            color: rgba(255, 255, 255, 1);
        }

        .project-card:hover .pill-context {
            color: rgba(255, 255, 255, 0.98);
        }

        /* Mobile Adjustments */
        @media (max-width: 900px) {
            .projects-grid {
                grid-template-columns: 1fr;
                gap: 2px;
            }
            .project-meta {
                opacity: 1;
                transform: translateY(0);
                bottom: 16px;
                left: 16px;
                right: 16px;
                padding: 14px 20px;
            }
            .pill-title {
                font-size: 15px;
            }
            .pill-category {
                font-size: 10px;
            }
            .pill-context {
                font-size: 11px;
                line-height: 1.32;
            }
            .proj-overlay {
                opacity: 0.85;
            }
            .project-card {
                height: 60vh; /* Adjust massive height for mobile */
            }
            .projects-intro {
                padding-top: 20px;
                margin-bottom: 50px;
            }
        }

        /* ================= Footer (Shared) ================= */
        .site-footer {
            width: 100vw;
            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);
        }

