/* Reset & Base Variables */
:root {
    --bg-color: #fcfcfc;
    --text-primary: #111111;
    --text-secondary: #666666;
    --border-color: #e5e5e5;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 400;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
}

/* Nav */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4vw;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(252, 252, 252, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    /* The logo is white, but our navbar is light. Invert to black. */
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    color: var(--text-secondary);
}

.nav-links a.active {
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 12rem 4vw 6rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-content {
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-inline: auto;
    width: 100%;
}

.hero-subtitle {
    margin-top: 2rem;
    font-size: 1.125rem;
}

.hero-image-wrapper {
    width: 100%;
    height: 70vh;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: 100%;
    transform: scale(1.05);
    transition: transform 1.5s ease-out;
}

.hero-image-wrapper.active .hero-image {
    transform: scale(1);
}

/* Projects Section */
.projects {
    padding: 8rem 4vw;
    max-width: 1400px;
    margin: 0 auto;
}

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

.view-all {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 2px;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
}

.project-card {
    cursor: pointer;
}

.project-card:nth-child(2) {
    margin-top: 8rem;
}

.project-image {
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 4 / 5;
    background-color: var(--border-color);
}

.project-image img {
    height: 100%;
    width: 100%;
    transition: transform var(--transition);
}

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

.project-info h3 {
    transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
    color: var(--text-secondary);
}

.load-more-container {
    text-align: center;
    margin-top: 4rem;
}

.load-more-btn {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 1rem 3rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}

.load-more-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Studio Section */
.studio {
    padding: 8rem 4vw;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.studio-text {
    max-width: 800px;
    text-align: center;
}

.studio-text h2 {
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    font-style: italic;
}

.studio-text p {
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Footer Section */
.footer {
    padding: 8rem 4vw 2rem;
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 6rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p {
    color: #999;
}

.footer-col a {
    color: #999;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--bg-color);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* Animations hooks */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 1s ease forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeInAnim 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInAnim {
    to {
        opacity: 1;
    }
}

/* Scroll Reveals */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 100;
        gap: 2rem;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        font-size: 2rem;
    }
    .hero {
        padding-top: 8rem;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .project-card:nth-child(2) {
        margin-top: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
