@charset "UTF-8";
/* =====================
   NAV (REFINED)
===================== */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    height: 72px;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-size: 0.9rem;
}

/* Match body offset EXACTLY */


/* =====================
   ABOUT
===================== */

.about-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    padding: 6rem 2rem;
}

.about-text {
    grid-column: span 4;
    font-size: 0.95rem;
}

.about-image {
    grid-column: span 8;
    background: #e5e5e5;
    aspect-ratio: 4 / 2;
}

/* =====================
   WORK GRID (RESTORED)
===================== */

.grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

/* Project sizing */
.project-item {
    position: relative;
    overflow: hidden;
}

/* Size rhythm (same as before, but stable) */
.project-item.large { grid-column: span 8; }
.project-item.medium { grid-column: span 6; }
.project-item.tall { grid-column: span 4; }

/* Images */
.project-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
}

/* Overlay — restored behavior */
.project-overlay {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    background: rgba(0,0,0,0.55);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.project-title {
    font-size: 1rem;
    font-weight: 500;
}

.project-description {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* =====================
   BANNER
===================== */

.full-width-banner {
    margin-top: 6rem;
}

.banner-image {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-overlay {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    color: white;
}

/* =====================
   FOOTER
===================== */

.site-footer {
    padding: 3rem;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* =====================
   RESPONSIVE SAFETY
===================== */

@media (max-width: 900px) {
    .about-text,
    .about-image {
        grid-column: span 12;
    }

    .project-item.large,
    .project-item.medium,
    .project-item.tall {
        grid-column: span 12;
    }

    .banner-overlay {
        left: 1.5rem;
        bottom: 1.5rem;
    }
}
