:root {
    --bg: #000000;
    --text: #ffffff;
    --mute: #888888;
    --border: rgba(255, 255, 255, 0.08);
    --header-h: 80px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

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

/* ═══════════════ HEADER ═══════════════ */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--mute);
    transition: color 0.3s;
}

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

/* ═══════════════ PROJECT GRID ═══════════════ */
.main-content {
    margin-top: var(--header-h);
    min-height: calc(100vh - var(--header-h));
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    width: 100%;
}

/* Grid item base */
.grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.04);
    background: #050505;
}

/* Aspect ratios */
.grid-item.low {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1 / 1;
}

.grid-item.medium {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 2 / 1;
}

.grid-item.high {
    grid-column: span 2;
    grid-row: span 2;
}

/* 1 project = full width */
.grid-item.solo {
    grid-column: span 4;
    aspect-ratio: 21 / 9;
}

/* 2 projects = half width */
.grid-item.half {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

/* Cover image */
.grid-item-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.grid-item:hover .grid-item-cover {
    transform: scale(1.04);
    opacity: 0.35;
}

/* Overlay */
.grid-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 5;
    text-align: center;
    padding: 20px;
}

.grid-item:hover .grid-item-overlay {
    opacity: 1;
}

.grid-item-overlay h3 {
    font-size: clamp(0.9rem, 1.5vw, 1.4rem);
    margin-bottom: 6px;
    line-height: 1.2;
}

.grid-item-overlay .director {
    font-size: 0.7rem;
    color: var(--mute);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

/* ═══════════════ PROJECT DETAIL ═══════════════ */
.project-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 100px;
}

.project-detail h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.project-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.project-meta .meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.meta-item label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--mute);
    font-weight: 700;
}

.meta-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Video embed */
.video-container {
    width: 100%;
    margin-bottom: 3rem;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
}

/* Stills carousel */
.stills-section h2 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--mute);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.stills-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 1rem;
}

.stills-carousel::-webkit-scrollbar { display: none; }

.stills-carousel img {
    flex: 0 0 auto;
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
    scroll-snap-align: start;
    cursor: pointer;
    transition: opacity 0.3s;
}

.stills-carousel img:hover {
    opacity: 0.7;
}

/* Description */
.project-description {
    margin-top: 3rem;
    max-width: 700px;
    color: var(--mute);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mute);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    transition: color 0.3s;
}

.back-link:hover { color: var(--text); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-item.high {
        grid-column: span 2;
        grid-row: span 2;
    }
    .grid-item.solo {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .site-header { padding: 0 20px; }
    .project-grid { grid-template-columns: 1fr; }
    .grid-item.high,
    .grid-item.medium,
    .grid-item.solo,
    .grid-item.half {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 16 / 9;
    }
    .project-detail { padding: 30px 20px 80px; }
    .stills-carousel img { height: 200px; }
}
