:root {
    --color-background: #f4f1ee;
    --color-text: #1a1a1a;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1440px;
    --spacing-base: 1rem;
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}
a { color: var(--color-text); text-decoration: none; }

/* --- Header & Navigation --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: calc(var(--spacing-base) * 1.5) 0;
    background-color: rgba(244, 241, 238, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* CORRECTED: Navigation logo is now a single, uniform weight */
.nav-logo {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: calc(var(--spacing-base) * 2);
}
.nav-links a {
    font-weight: 500;
    font-size: 1rem;
}
.nav-links a.active {
    text-decoration: underline;
}

/* --- Section Layouts --- */
/* CORRECTED: Further reduced vertical padding between sections */
.content-section, .hero-section {
    padding: calc(var(--spacing-base) * 2) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.section-container { max-width: 1200px; }
.section-label {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-base);
    color: #666;
}
.section-header p {
    max-width: 60ch;
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 500;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 85vh; /* Reduced height slightly to help with spacing */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-title {
    font-size: clamp(3rem, 12vw, 9rem);
    line-height: 0.9;
    margin-bottom: calc(var(--spacing-base) * 2);
}
.hero-title .cucho-main {
    font-weight: 400; /* Regular */
}
.hero-title .olivares-main {
    font-weight: 200; /* ExtraLight */
}
.hero-subtitle {
    max-width: 45ch;
    font-size: 1.1rem;
    margin-bottom: calc(var(--spacing-base) * 4);
}
.hero-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.hero-email, .hero-showcase {
    font-weight: 700;
    font-size: 1.25rem;
}
.hero-email { text-decoration: underline; }

/* --- Bio Section --- */
.bio-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.bio-text {
    flex-basis: 60%;
    max-width: 60ch;
}
.bio-text p {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 500;
}
.bio-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 300px;
}
.bio-image img {
    width: 100%;
    border-radius: 8px;
}

/* --- Thumbnail Grid (Work & Art) --- */
.thumbnail-grid {
    margin-top: calc(var(--spacing-base) * 4);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-base);
}
.thumbnail-item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}
.thumbnail-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}
.thumbnail-item:hover img {
    transform: scale(1.05);
}
.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.thumbnail-item:hover .thumbnail-overlay {
    opacity: 1;
}
.thumbnail-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
}

/* --- Contact Section --- */
.contact-section { border-bottom: none; }
.contact-title {
    font-size: clamp(4rem, 15vw, 6rem);
    font-weight: 80;
    line-height: 0.9;
    margin-bottom: calc(var(--spacing-base) * 4);
}
.contact-layout {
    display: flex;
    justify-content: space-between;
}
.contact-column a {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    text-decoration: underline;
    margin-top: var(--spacing-base);
}
.contact-column:last-child {
    text-align: right;
}

/* --- Project Detail Page Styles --- */
.detail-header {
    padding: calc(var(--spacing-base) * 4) 0 calc(var(--spacing-base) * 2) 0;
}
.detail-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
}
.hub-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1;
}
.detail-video {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
}
.detail-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.detail-meta-layout {
    display: flex;
    justify-content: space-between;
    gap: calc(var(--spacing-base) * 2);
    margin-top: calc(var(--spacing-base) * 2);
    font-size: 1rem;
}
.detail-description {
    max-width: 65ch;
}
.detail-credits {
    text-align: right;
    flex-shrink: 0;
}
.detail-credits p { margin-bottom: 0.5rem; }
.detail-credits strong { display: block; color: #888; font-weight: 500; font-size: 0.9rem; }
.detail-gallery {
    margin-top: calc(var(--spacing-base) * 4);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-base);
}
.detail-gallery img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .bio-layout, .detail-meta-layout {
        flex-direction: column;
    }
    .bio-image {
        width: 100%;
        max-width: 400px;
    }
    .detail-credits { text-align: left; margin-top: 2rem; }
    .contact-layout {
        flex-direction: column;
        gap: calc(var(--spacing-base) * 4);
    }
    .contact-column:last-child {
        text-align: left;
    }
}
@media (max-width: 768px) {
    .thumbnail-grid {
        grid-template-columns: 1fr;
    }
    .main-header {
        padding: var(--spacing-base) 0;
    }
    .main-nav {
        flex-direction: column;
        gap: var(--spacing-base);
    }
}