/* ========================================= */
/* FILE: style.css */
/* ========================================= */

/* --- CSS Variables & Resets --- */
:root {
    --white: #FFFFFF;
    --dark-green: #0C3E1F; /* Primary Dark/Yield Green */
    --vibrant-green: #1F6A30; /* The main texture green */
    --textured-green: url('green_texture.jpg'); /* Define texture as background image */
    --serif-font: 'Cormorant Garamond', serif;
    --sans-font: 'Montserrat', sans-serif;
    --header-height: 140px;
    --header-slim-height: 80px;
}

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

body {
    background-color: var(--white);
    color: var(--dark-green);
    font-family: var(--sans-font);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--serif-font);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- Header / Diagonal Split --- */
.diagonal-split-header {
    height: var(--header-height);
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
    color: var(--white);
    background-color: var(--dark-green); /* Fallback */
    /* CREATE THE DIAGONAL SPLIT using a gradient overlay */
    background-image: 
        linear-gradient(135deg, var(--white) 50%, transparent 50.1%), /* The white mask */
        var(--textured-green); /* The full background texture */
    background-size: cover;
    background-position: center;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
    padding-left: 10%;
    color: var(--dark-green); /* White side needs dark text */
}

.logo-text {
    font-size: 1.8rem;
    line-height: 1.1;
}

.header-right {
    justify-content: flex-end;
    padding-right: 10%;
    color: var(--white); /* Green side needs white text */
}

/* Header Slim for detail/about pages */
.header-slim {
    height: var(--header-slim-height);
    background-image: 
        linear-gradient(135deg, var(--white) 50%, transparent 50.1%),
        var(--textured-green);
}

.slim-text {
    font-size: 1.5rem;
}

/* Main Navigation */
.main-nav a {
    font-family: var(--sans-font);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-left: 2rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s;
    position: absolute;
    bottom: 0;
    left: 0;
}

.main-nav a:hover::after, .main-nav .nav-active::after {
    width: 100%;
}

.header-slim .main-nav a {
    font-size: 0.8rem;
    margin-left: 1.5rem;
}

/* Burger menu (for JS toggle) - hidden by default */
.burger-menu {
    display: none;
    cursor: pointer;
}

/* --- Content Container (General) --- */
.content-container {
    padding: 6rem 10% 8rem 10%;
}

.content-container h2 {
    font-size: 2.5rem;
    color: var(--vibrant-green);
    margin-bottom: 3rem;
    border-left: 6px solid var(--vibrant-green);
    padding-left: 1rem;
}

/* --- Portfolio Grid --- */
.portfolio-container {
    padding: 6rem 10% 8rem 10%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.grid-item {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(12, 62, 31, 0.1);
}

.artwork-tile {
    width: 100%;
    height: 100%;
    position: relative;
}

.artwork-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.5) contrast(0.9);
    transition: all 0.5s ease;
}

.grid-item:hover .artwork-thumb {
    filter: saturate(1) contrast(1);
    transform: scale(1.05);
}

/* Tile Variations - conceptual, use texture if image is missing/styled */
.textured-bloom .artwork-thumb, .textured-green .artwork-thumb {
    mix-blend-mode: color;
    background-color: var(--vibrant-green);
}

.textured-yield .artwork-thumb {
    mix-blend-mode: hard-light;
    background-color: var(--dark-green);
}

.artwork-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(12, 62, 31, 0.9), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.grid-item:hover .artwork-overlay {
    transform: translateY(0);
}

.overlay-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.overlay-text p {
    font-size: 0.8rem;
    font-family: var(--sans-font);
    opacity: 0.8;
}

/* --- Artwork Detail Page --- */
.artwork-detail-container {
    padding: 4rem 10% 8rem 10%;
}

.back-link {
    margin-bottom: 3rem;
    color: var(--vibrant-green);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 400;
}

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

.detail-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

.full-artwork-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid #EEE;
}

.artwork-title {
    font-size: 2.8rem;
    color: var(--vibrant-green);
    margin-bottom: 1rem;
}

.artwork-meta p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.artwork-meta span {
    font-weight: 400;
    font-family: var(--sans-font);
    color: var(--vibrant-green);
    display: inline-block;
    width: 100px;
}

.artwork-description {
    margin-top: 3rem;
}

.artwork-description p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* --- About Page --- */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* --- Press Page --- */
.press-list {
    list-style: none;
}

.press-item {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(12, 62, 31, 0.1);
    display: flex;
    flex-direction: column;
}

.press-pub {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--vibrant-green);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.press-title {
    font-family: var(--serif-font);
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.press-title:hover {
    color: var(--vibrant-green);
}

.press-date {
    font-size: 0.8rem;
    color: var(--dark-green);
    opacity: 0.7;
}

/* --- Contact Page --- */
.contact-methods {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.email-address {
    font-family: var(--serif-font);
    font-size: 2.2rem;
    color: var(--vibrant-green);
    display: block;
    margin-top: 1rem;
}

.studio-address h3 {
    font-size: 1.2rem;
    color: var(--vibrant-green);
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.main-footer {
    padding: 3rem 10%;
    text-align: center;
    border-top: 1px solid rgba(12, 62, 31, 0.05);
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ========================================= */
/* --- Responsive Adjustments --- */
/* ========================================= */

@media (max-width: 1024px) {
    :root {
        --header-height: 120px;
    }
    .main-nav a {
        margin-left: 1.5rem;
        font-size: 0.8rem;
    }
    .about-split, .detail-split, .contact-methods {
        gap: 2rem;
    }
    .email-address {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: auto;
        --header-slim-height: auto;
    }

    .diagonal-split-header {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        background-image: var(--textured-green);
    }
    
    .header-left, .header-right {
        padding: 1.5rem 10%;
        width: 100%;
    }
    
    .header-left {
        justify-content: center;
        background-color: var(--white);
        color: var(--dark-green);
    }
    
    .logo-text {
        text-align: center;
        font-size: 1.5rem;
    }

    .header-right {
        justify-content: center;
        background: none;
        color: var(--white);
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a {
        margin: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .header-slim .header-left, .header-slim .header-right {
        padding: 1rem 10%;
    }

    /* Stack grid for smaller screens */
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-split, .about-split, .contact-methods {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: -1; /* Place portrait before text on small screen */
        width: 60%;
        margin: 0 auto;
    }
    
    .email-address {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        width: 100%;
    }
}

/* ========================================= */
/* --- SPLASH SCREEN ANIMATIONS & STYLES --- */
/* ========================================= */

#splash-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
    background: var(--white); /* Fallback */
    cursor: pointer;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

/* The Diagonal Split Layers */
.splash-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.splash-bg-left {
    background: var(--white);
    /* Creates the diagonal cut from top-right to bottom-left */
    clip-path: polygon(0 0, 55% 0, 35% 100%, 0 100%);
    transform: translateX(-100%);
    animation: slideInSplit 1s 0.2s forwards cubic-bezier(0.8, 0, 0.2, 1);
}

.splash-bg-right {
    /* Uses the texture from your variables, with a fallback green */
    background: var(--textured-green), var(--vibrant-green);
    background-size: cover;
    background-position: center;
    clip-path: polygon(55% 0, 100% 0, 100% 100%, 35% 100%);
    transform: translateX(100%);
    animation: slideInSplit 1s 0.2s forwards cubic-bezier(0.8, 0, 0.2, 1);
}

/* Ruler Hash Marks */
.splash-ruler {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6vh;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 9.8%,
        #333 9.8%,
        #333 10%
    );
    z-index: 5;
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

/* Circles Container */
.splash-content {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4vw;
    z-index: 10;
}

/* Base Circle Styles */
.splash-circle {
    width: clamp(200px, 30vw, 450px);
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--serif-font);
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 600;
    transform: scale(0);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.circle-yield {
    background: var(--textured-green), var(--vibrant-green);
    background-size: cover;
    background-position: center;
    color: var(--white);
    animation: popIn 0.8s 1s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.circle-bloom {
    background: var(--white);
    color: var(--vibrant-green);
    animation: popIn 0.8s 1.2s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.enter-prompt {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-family: var(--sans-font);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark-green);
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    opacity: 0;
    animation: pulseFade 2s 2.5s infinite;
}

/* Main Site State */
.site-hidden {
    opacity: 0;
    height: 100vh;
    overflow: hidden;
}

.site-visible {
    opacity: 1;
    height: auto;
    overflow: visible;
    transition: opacity 1s 0.5s ease;
}

/* Keyframes */
@keyframes slideInSplit {
    to { transform: translateX(0); }
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    to { opacity: 0.5; }
}

@keyframes pulseFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Animation triggered by JS on click */
.splash-exit {
    transform: translateY(-100vh) !important;
}

/* ========================================= */
/* --- SPLASH SCREEN ANIMATIONS & STYLES --- */
/* --- WITH REFINED IMAGE_2.PNG MASKING --- */
/* ========================================= */

/* NEW VARIABLE FOR REFINED TEXTURE MASK */
:root {
    /* Define the URL to your textured mask image verbatim */
    --refined-mask-image: url('image_2.png');
    --dark-overlay: rgba(12, 62, 31, 0.4); /* subtle dark green overlay for text contrast */
}

#splash-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
    background: var(--white);
    cursor: pointer;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

/* The Diagonal Split Layers */
.splash-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.splash-bg-left {
    background: var(--white);
    clip-path: polygon(0 0, 55% 0, 35% 100%, 0 100%);
    transform: translateX(-100%);
    animation: slideInSplit 1s 0.2s forwards cubic-bezier(0.8, 0, 0.2, 1);
}

.splash-bg-right {
    /* --- APPLYING REFINED MASK AS CONTINUOUS BACKGROUND --- */
    background-image: var(--refined-mask-image);
    background-size: cover;
    /* Fixed attachment creates the "masking view" effect */
    background-attachment: fixed; 
    background-position: center;
    clip-path: polygon(55% 0, 100% 0, 100% 100%, 35% 100%);
    transform: translateX(100%);
    animation: slideInSplit 1s 0.2s forwards cubic-bezier(0.8, 0, 0.2, 1);
}

/* Optional subtle overlay for better white text readability on bright texture */
.splash-bg-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--dark-overlay);
    mix-blend-mode: multiply;
}

/* Ruler Hash Marks (Dark Green for visibility) */
.splash-ruler {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6vh;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 9.8%,
        var(--dark-green) 9.8%, /* Using brand dark green */
        var(--dark-green) 10%
    );
    z-index: 5;
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

/* Circles Container */
.splash-content {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4vw;
    z-index: 10;
}

/* Base Circle Styles */
.splash-circle {
    width: clamp(200px, 30vw, 450px);
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--serif-font);
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 600;
    transform: scale(0);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.circle-yield {
    /* --- APPLYING REFINED MASK TO THE CIRCLE --- */
    background-image: var(--refined-mask-image);
    background-size: cover;
    /* Fixed attachment ensures the texture pattern is continuous 
       with the right-side background */
    background-attachment: fixed;
    background-position: center;
    color: var(--white); /* White text on texture */
    animation: popIn 0.8s 1s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.circle-bloom {
    background: var(--white);
    color: var(--vibrant-green); /* Brand green text on white */
    animation: popIn 0.8s 1.2s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ...rest of animations (enter-prompt, keyframes, splash-exit) remain the same... */