:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #888888;
    --serif: 'Playfair Display', serif;
    --sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
}

.logo {
    letter-spacing: 5px;
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    margin-left: 30px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-links a:hover { opacity: 1; }

/* Hero */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-text {
    position: relative;
    z-index: 2;
}

/* Carousel */
.carousel-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.45);
    z-index: 1;
}

/* Typography */
h1 {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 400;
    line-height: 0.85;
    margin-bottom: 30px;
    color: var(--text);
}

h1 em { font-style: italic; font-family: var(--serif); font-weight: 500; }

.hero-text p {
    max-width: 380px;
    font-weight: 300;
    font-size: 0.95rem;
    color: #000;
    letter-spacing: 0.5px;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 120px 40px;
    padding: 150px 5% 150px 5%;
}

.project-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f7f7f7;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
}

.project-card:hover .image-wrapper img {
    transform: scale(1.06);
}

.project-meta {
    margin-top: 25px;
}

.project-meta span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    display: block;
    margin-bottom: 10px;
}

.project-meta h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Reveal — smooth slide up, fires once only */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 120px 5%;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info {
    text-align: center;
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 60px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

.social-links img {
    width: 16px;
    filter: grayscale(100%);
    opacity: 0.8;
}

.social-links a:hover { opacity: 0.5; }

/* Mobile */
@media (max-width: 800px) {
    nav {
        padding: 24px 5%;
        align-items: center;
    }
    
    .logo {
        max-width: none;
        white-space: nowrap;
        font-size: 0.7rem;
        letter-spacing: 3px;
    }
    
    .nav-links {
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }

    .nav-links .nav-dropdown {
        display: inline-block;
    }
    
    .nav-links a {
        margin-left: 0;
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 2.8rem) !important;
        white-space: normal !important;
    }
    
    .project-grid { 
        grid-template-columns: 1fr; 
        gap: 60px; 
        padding-top: 100px; 
    }
    
    .social-links { 
        flex-direction: column; 
        gap: 30px; 
        align-items: center; 
    }
}

/* About Page */
.about-hero {
    padding: 180px 5% 100px;
    display: flex;
    justify-content: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
}

.architect-img img {
    width: 100%;
    aspect-ratio: 1 / 1.2;
    object-fit: cover;
}

.architect-text h2 {
    font-family: var(--serif);
    font-size: 4rem;
    margin-bottom: 30px;
}

.architect-text p {
    max-width: 450px;
    color: var(--muted);
}

.blueprint-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 5% 100px;
}

.blueprint-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (max-width: 800px) {
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .blueprint-grid { grid-template-columns: 1fr; }
}