:root {
            --bg-color: #ffffff;
            --text-main: #0a0a0a;
            --text-muted: #666666;
            --line-color: #e5e5e5;
            --accent: #0a0a0a;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            overflow-x: hidden;
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
        }

        /* Architectural Grid Background */
        .grid-bg {
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            z-index: -1;
            background-image: 
                linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            pointer-events: none;
        }

        /* Typography */
        h1, h2, h3, .logo, .nav-links a, .badge, .btn {
            font-family: 'Space Grotesk', sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 3rem;
            position: relative;
        }

        /* Navigation */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 2.5rem 0;
            border-bottom: 1px solid var(--line-color);
        }

        .logo {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-main);
            text-decoration: none;
            letter-spacing: 0.2em;
        }

        .nav-links {
            display: flex;
            gap: 3rem;
        }

        .nav-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
        }

        .nav-links a:hover,
        .nav-links a:focus-visible { color: var(--text-main); outline: none; }
        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0; height: 1px;
            bottom: -4px; left: 0;
            background: var(--accent);
            transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        }
        .nav-links a:hover::after,
        .nav-links a:focus-visible::after { width: 100%; }

        /* Hero Section */
        .hero {
            min-height: 75vh;
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-items: center;
            gap: 4rem;
            position: relative;
            padding: 4rem 0;
        }

        .hero-content {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .hero-image-wrapper {
            overflow: hidden;
            position: relative;
            width: 100%;
            height: 500px;
            border: 1px solid var(--line-color);
            padding: 0.9rem;
            background:
                linear-gradient(135deg, rgba(0,0,0,0.02), transparent 45%),
                var(--bg-color);
            box-shadow: 0 20px 60px rgba(0,0,0,0.06);
            transform: rotate(-1.25deg);
        }

        .hero-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center;
            filter: grayscale(100%) contrast(1.15) saturate(0.85);
            transform: scale(1.03);
            transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), filter 0.8s cubic-bezier(0.19, 1, 0.22, 1);
        }

        .hero-image-wrapper::before,
        .hero-image-wrapper::after {
            content: '';
            position: absolute;
            pointer-events: none;
        }

        .hero-image-wrapper::before {
            inset: 12px;
            border: 1px solid rgba(0, 0, 0, 0.08);
        }

        .hero-image-wrapper::after {
            right: 12px;
            bottom: 12px;
            width: 120px;
            height: 120px;
            border-right: 1px solid rgba(0, 0, 0, 0.18);
            border-bottom: 1px solid rgba(0, 0, 0, 0.18);
        }

        .hero-image-wrapper:hover .hero-image {
            transform: scale(1.08);
        }

        /* Decorative architectural lines */
        .hero::before {
            content: '';
            position: absolute;
            left: -3rem; top: 0;
            width: 1px; height: 100%;
            background: var(--line-color);
        }

        .badge {
            display: inline-block;
            border: 1px solid var(--text-main);
            padding: 0.4rem 1rem;
            font-size: 0.75rem;
            font-weight: 500;
            margin-bottom: 2rem;
            align-self: flex-start;
        }

        .hero h1 {
            font-size: clamp(3rem, 7vw, 7rem);
            font-weight: 300;
            line-height: 1;
            letter-spacing: -0.02em;
            margin-bottom: 2rem;
            max-width: 900px;
        }

        .hero p {
            font-size: 1.2rem;
            color: var(--text-muted);
            max-width: 500px;
            font-weight: 300;
            margin-bottom: 3rem;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 1.2rem 2.5rem;
            font-size: 0.85rem;
            font-weight: 700;
            text-decoration: none;
            border: 1px solid var(--text-main);
            background: transparent;
            color: var(--text-main);
            transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: var(--text-main);
            transform: translateY(100%);
            transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
            z-index: -1;
        }

        .btn:hover,
        .btn:focus-visible {
            color: var(--bg-color);
            outline: none;
        }

        .btn:hover::before,
        .btn:focus-visible::before {
            transform: translateY(0);
        }

        /* Features/Services Section */
        .features {
            padding: 8rem 0;
            border-top: 1px solid var(--line-color);
        }

        .section-header {
            margin-bottom: 5rem;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }

        .section-header h2 {
            font-size: 3rem;
            font-weight: 300;
        }

        .section-header p {
            color: var(--text-muted);
            max-width: 300px;
            font-size: 0.9rem;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0; /* Flush borders for architectural feel */
            border: 1px solid var(--line-color);
        }

        .arch-card {
            padding: 3rem;
            border-right: 1px solid var(--line-color);
            transition: background 0.4s ease;
            position: relative;
        }

        .arch-card:last-child {
            border-right: none;
        }

        .arch-card:hover {
            background: #f8f8f8;
        }

        .card-number {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 2rem;
            display: block;
        }

        .arch-card h3 {
            font-size: 1.5rem;
            font-weight: 500;
            margin-bottom: 1rem;
        }

        .arch-card p {
            color: var(--text-muted);
            font-size: 0.95rem;
            font-weight: 300;
        }

        /* Projects Section */
        .projects {
            padding: 8rem 0;
            border-top: 1px solid var(--line-color);
        }

        .projects-grid {
            column-count: 3;
            column-gap: 1.5rem;
        }

        .project-card {
            display: inline-block;
            width: 100%;
            margin: 0 0 1.5rem;
            --card-tilt: 0deg;
            --card-shift: 0px;
            border: 1px solid var(--line-color);
            border-radius: 24px;
            background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,248,248,0.92));
            box-shadow: 0 18px 40px rgba(0,0,0,0.05);
            transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
            position: relative;
            cursor: pointer;
            overflow: hidden;
            transform: translateY(var(--card-shift)) rotate(var(--card-tilt));
        }

        .project-card:hover {
            transform: translateY(calc(var(--card-shift) - 12px)) rotate(0deg);
        }

        .project-image-wrapper {
            width: 100%;
            height: 340px;
            overflow: hidden;
            position: relative;
            background: linear-gradient(135deg, rgba(0,0,0,0.06), transparent 70%);
        }

        .project-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(100%) contrast(1.15) brightness(0.98);
            transform: scale(1.02);
            transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), filter 0.8s cubic-bezier(0.19, 1, 0.22, 1);
        }

        .project-image-wrapper::after {
            content: '';
            position: absolute;
            inset: auto 0 0 0;
            height: 40%;
            background: linear-gradient(180deg, transparent, rgba(10,10,10,0.22));
            pointer-events: none;
        }

        .project-card:hover .project-image {
            transform: scale(1.1);
            filter: grayscale(70%) contrast(1.15) brightness(1.05);
        }

        .project-info {
            padding: 1.6rem 1.6rem 1.9rem;
            background: rgba(255,255,255,0.92);
        }

        .project-info h3 {
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
        }

        .project-info p {
            color: var(--text-muted);
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .project-card:nth-child(4n + 1) .project-image-wrapper {
            height: 420px;
        }
        .project-card:nth-child(4n + 2) .project-image-wrapper {
            height: 300px;
        }
        .project-card:nth-child(4n + 3) .project-image-wrapper {
            height: 380px;
        }
        .project-card:nth-child(4n + 4) .project-image-wrapper {
            height: 330px;
        }

        .project-card:nth-child(4n + 1) .project-image {
            object-position: center 28%;
        }
        .project-card:nth-child(4n + 2) .project-image {
            object-position: center 65%;
        }
        .project-card:nth-child(4n + 3) .project-image {
            object-position: center 40%;
        }
        .project-card:nth-child(4n + 4) .project-image {
            object-position: center 55%;
        }

        .project-card:nth-child(2n) {
            --card-tilt: -0.8deg;
            --card-shift: 14px;
        }

        .project-card:nth-child(3n) {
            --card-tilt: 0.9deg;
            --card-shift: 22px;
        }

        .project-card:nth-child(5n) {
            --card-tilt: -1.2deg;
            --card-shift: 8px;
        }

        .project-card:nth-child(7n) {
            --card-tilt: 1.3deg;
            --card-shift: 28px;
        }

        /* Footer */
        footer {
            border-top: 1px solid var(--line-color);
            padding: 4rem 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .footer-logo {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: 1.5rem;
            letter-spacing: 0.1em;
        }

        .footer-text {
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .footer-text a {
            color: var(--text-main);
            text-decoration: none;
            margin-left: 1rem;
        }

        .footer-text a:hover,
        .footer-text a:focus-visible {
            text-decoration: underline;
            outline: none;
        }

        /* Animations */
        .reveal {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Legal Pages */
        .legal-page {
            min-height: 100vh;
            padding: 3rem 0 5rem;
        }

        .legal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 2rem;
            margin-bottom: 3rem;
            border-bottom: 1px solid var(--line-color);
        }

        .legal-back {
            color: var(--text-muted);
            text-decoration: none;
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.8rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .legal-back:hover,
        .legal-back:focus-visible {
            color: var(--text-main);
            outline: none;
        }

        .legal-content {
            max-width: 860px;
        }

        .legal-content h1 {
            font-size: clamp(2.5rem, 6vw, 5rem);
            line-height: 1;
            margin-bottom: 1.5rem;
        }

        .legal-meta {
            color: var(--text-muted);
            margin-bottom: 3rem;
            font-size: 0.95rem;
        }

        .legal-section {
            margin-bottom: 2rem;
        }

        .legal-section h2 {
            font-size: 1.2rem;
            margin-bottom: 0.75rem;
        }

        .legal-section p,
        .legal-section li {
            color: var(--text-muted);
            font-size: 0.98rem;
            line-height: 1.8;
        }

        .legal-section ul {
            padding-left: 1.2rem;
        }

        @media (max-width: 1024px) {
            .hero {
                grid-template-columns: 1fr;
                gap: 3rem;
                padding-top: 2rem;
            }
            .hero-image-wrapper {
            overflow: hidden;
                height: 400px;
            }
            .grid { grid-template-columns: 1fr; border: none; }
            .arch-card { 
                border-right: none; 
                border-bottom: 1px solid var(--line-color);
                padding: 3rem 0;
            }
            .arch-card:last-child { border-bottom: none; }
            .hero::before { display: none; }
            .projects-grid { column-count: 2; }
        }

        @media (max-width: 768px) {
            .container { padding: 0 1.5rem; }
            .nav-links { display: none; }
            .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
            footer { flex-direction: column; gap: 2rem; text-align: center; }
            .projects-grid { column-count: 1; }
            .hero-image-wrapper {
                transform: rotate(0deg);
            }
            .project-card {
                --card-tilt: 0deg;
                --card-shift: 0px;
            }
            .legal-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
        }
        /* Custom Cursor */
        body {
            cursor: none;
        }
        .custom-cursor {
            position: fixed;
            top: 0; left: 0;
            width: 20px; height: 20px;
            border: 1px solid var(--text-main);
            border-radius: 50%;
            pointer-events: none;
            z-index: 9999;
            transform: translate(-50%, -50%);
            transition: width 0.3s, height 0.3s, background-color 0.3s;
            mix-blend-mode: difference;
        }
        .custom-cursor.hovering {
            width: 50px; height: 50px;
            background-color: var(--text-main);
            opacity: 0.2;
        }
        
        .magnetic-btn {
            display: inline-block;
        }

        /* Contact Form */
        .contact {
            padding: 8rem 0;
            border-top: 1px solid var(--line-color);
        }
        .contact-form {
            max-width: 600px;
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        .form-group {
            position: relative;
        }
        .form-group input, .form-group textarea {
            width: 100%;
            padding: 1rem 0;
            background: transparent;
            border: none;
            border-bottom: 1px solid var(--line-color);
            color: var(--text-main);
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
            transition: border-color 0.3s;
            resize: none;
        }
        .form-group input:focus, .form-group textarea:focus {
            outline: none;
            border-bottom-color: var(--text-main);
        }
        .form-group label {
            position: absolute;
            left: 0;
            top: 1rem;
            color: var(--text-muted);
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.8rem;
            pointer-events: none;
            transition: transform 0.3s, font-size 0.3s, color 0.3s;
        }
        .form-group input:focus ~ label,
        .form-group input:not(:placeholder-shown) ~ label,
        .form-group textarea:focus ~ label,
        .form-group textarea:not(:placeholder-shown) ~ label {
            transform: translateY(-1.5rem);
            font-size: 0.7rem;
            color: var(--text-main);
        }

        /* Lightbox */
        .lightbox {
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            background: rgba(0,0,0,0.9);
            z-index: 10000;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        .lightbox.active {
            opacity: 1;
            pointer-events: auto;
        }
        .lightbox-img {
            max-width: 90vw;
            max-height: 80vh;
            object-fit: contain;
            filter: grayscale(100%) contrast(1.1);
        }
        .lightbox-caption {
            color: #ffffff;
            margin-top: 2rem;
            font-family: 'Space Grotesk', sans-serif;
            letter-spacing: 0.1em;
        }
        .lightbox-close {
            position: absolute;
            top: 2rem; right: 3rem;
            background: none; border: none;
            color: #ffffff;
            font-size: 3rem;
            cursor: pointer;
            transition: transform 0.3s;
        }
        .lightbox-close:hover {
            transform: scale(1.1);
        }

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a0a;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preloader-percent {
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    font-weight: 300;
}

/* Disable Custom Cursor on Mobile/Touch */
@media (pointer: coarse) {
    .custom-cursor {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
}
