/* --- GLOBAL VARIABLES (THEME ENGINE) --- */
:root {
    /* Default (Dark Mode) */
    --bg: #0a0a0a;
    --text: #e0e0e0;
    --meta: #a0a0a0; /* Made brighter as requested */
    --accent: #ffffff;
    --nav-text: #ffffff;
    --card-bg: #000000;
    
    /* Grain opacity needs to be subtle */
    --grain-opacity: 0.05;
}

/* Light Mode Overrides */
body.light-mode {
    --bg: #f0f0f0;
    --text: #111111;
    --meta: #555555; /* Dark grey for contrast on light bg */
    --accent: #000000;
    --nav-text: #000000;
    --card-bg: #ffffff;
    
    --grain-opacity: 0.03;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- FILM GRAIN OVERLAY --- */
.grain {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-weight: 700;
    letter-spacing: -1px;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--nav-text);
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--nav-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
    cursor: pointer;
    background: none;
    border: none;
}
.nav-link:hover { border-bottom-color: var(--accent); }

/* --- TYPOGRAPHY --- */
.intro {
    height: 60vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

h1 {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out forwards 0.5s;
    color: var(--text);
}

/* --- GRID SYSTEM --- */
.gallery {
    padding-bottom: 150px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    padding-left: 20px;
    padding-right: 20px;
}

.photo-item {
    position: relative;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%) contrast(105%);
    transition: 0.5s;
}

.photo-item:hover img {
    filter: grayscale(0%) contrast(100%);
}

/* --- METADATA --- */
.meta-data {
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem; /* Slightly larger */
    color: var(--meta); /* Using the lighter variable */
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--meta); /* Border matches text color */
    padding-top: 10px;
}

.title { color: var(--text); font-weight: bold; }

/* --- LAYOUTS --- */
.layout-wide-left { grid-column: 2 / span 6; }
.layout-tall-right { grid-column: 9 / span 3; margin-top: 100px; }
.layout-hero { grid-column: 3 / span 8; }
.layout-duo-1 { grid-column: 2 / span 4; }
.layout-duo-2 { grid-column: 7 / span 4; margin-top: 50px; }

@media (max-width: 900px) {
    .gallery { display: flex; flex-direction: column; padding: 20px; }
    .photo-item { margin-top: 0 !important; margin-bottom: 60px; width: 100%; }
    h1 { font-size: 2.5rem; }
    nav { padding: 20px; }
}

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

