/* --- GLOBAL RESET & VARIABLES --- */
:root {
    --bg: #050505;
    --text: #F0F0F0;
    --accent: #FF3300;
    --grid: #333;
    --font-head: 'Inter', sans-serif;
    --font-body: 'Space Mono', monospace;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; cursor: none; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
}

/* --- UTILS --- */
.noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9000; opacity: 0.05;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
.hidden { display: none !important; }
.sep { opacity: 0.3; margin: 0 10px; }

/* --- CURSOR --- */
#cursor {
    position: fixed; top: 0; left: 0; width: 20px; height: 20px;
    background: var(--accent); border-radius: 50%; pointer-events: none;
    z-index: 20000; transform: translate(-50%, -50%); mix-blend-mode: exclusion;
    transition: transform 0.1s ease-out;
}
body.hover-active #cursor { transform: translate(-50%, -50%) scale(4); background: #fff; mix-blend-mode: difference; }

/* --- HEADER --- */
header {
    padding: 2rem; position: fixed; top: 0; right: 0; width: 100%; z-index: 100;
    display: flex; justify-content: flex-end; pointer-events: none; mix-blend-mode: difference;
}
.meta { font-size: 0.75rem; font-weight: bold; color: var(--accent); text-align: right; pointer-events: auto;}

.menu-toggle {
    position: fixed; top: 2rem; left: 2rem; z-index: 10001; 
    background: var(--accent); color: #000; padding: 8px 16px;
    font-family: var(--font-body); font-weight: 800; font-size: 0.8rem;
    text-transform: uppercase; cursor: pointer; transition: 0.3s;
}
.menu-toggle:hover { background: #fff; }

/* --- FULLSCREEN MENU --- */
.fullscreen-menu {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.96); backdrop-filter: blur(10px);
    z-index: 10000; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s var(--easing);
}
.fullscreen-menu.open { opacity: 1; pointer-events: auto; }
.menu-item {
    font-family: var(--font-head); font-weight: 900;
    font-size: clamp(3rem, 8vw, 6rem); text-transform: uppercase;
    color: transparent; -webkit-text-stroke: 1px var(--text);
    margin: 1rem 0; cursor: pointer; transition: 0.3s;
}
.menu-item:hover { color: var(--accent); -webkit-text-stroke: 0px; transform: scale(1.05); }

/* --- HERO --- */
.hero {
    height: 100vh; width: 100%; position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2rem; border-bottom: 1px solid var(--grid); overflow: hidden;
    background: radial-gradient(circle at 50% 120%, #ff5500, #441100, #000000);
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 1; z-index: 0; transition: transform 10s ease;
}
.hero:hover .hero-bg { transform: scale(1.05); }
.hero-content { position: relative; z-index: 2; pointer-events: none; margin-bottom: 4rem;}
h1 {
    font-family: var(--font-head); font-weight: 900;
    font-size: clamp(4rem, 15vw, 20rem); line-height: 0.85; 
    text-transform: uppercase; letter-spacing: -0.04em; 
    margin-left: -0.5vw; color: var(--text); mix-blend-mode: difference; 
}

/* --- MANIFESTO (HOME) --- */
.manifesto-section { padding: 6rem 2rem; border-bottom: 1px solid var(--grid); background: #000; display: flex; justify-content: center; }
.manifesto-text {
    font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 3.5rem);
    line-height: 1.1; text-transform: uppercase; color: var(--text); max-width: 1400px; letter-spacing: -0.02em;
}
.highlight { color: var(--accent); }

/* --- MASONRY GRID (HOME) --- */
.masonry-grid {
    position: relative; z-index: 1; 
    display: grid; grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 50vh 50vh; gap: 40px; padding: 60px 40px;
    background-color: #000;
}
.grid-item { position: relative; overflow: hidden; background: #111; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.span-2-col { grid-column: span 2; }
.span-2-row { grid-row: span 2; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.6s; }
.grid-item:hover img { filter: grayscale(0%); transform: scale(1.05); }
.grid-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2); display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: 0.3s;
}
.grid-item:hover .grid-overlay { opacity: 1; }
.work-title { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; color: #fff; }
.work-btn { margin-top: 10px; font-family: var(--font-body); font-size: 0.7rem; background: var(--accent); color: #000; padding: 5px 10px; font-weight: bold; }

/* --- HOME: ARCHIVE DRAWERS --- */
#archive-section { position: relative; z-index: 20; background-color: #000; border-top: 1px solid var(--grid); }
.archive-item { border-bottom: 1px solid var(--grid); background: #000; }
.archive-header {
    padding: 3rem 2rem; display: flex; justify-content: space-between; align-items: baseline;
    cursor: pointer; background: #000; z-index: 11;
}
.archive-header:hover { background: #111; }
.archive-header:hover .cat-title { color: var(--accent); padding-left: 20px; }
.cat-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); text-transform: uppercase; line-height: 0.9; transition: 0.3s; }
.cat-meta { font-family: var(--font-body); color: #666; font-size: 0.9rem; }
.gallery-drawer { height: 0; overflow: hidden; }
.gallery-scroll { display: flex; gap: 20px; padding: 0 20px; overflow-x: auto; height: 70vh; }
.gallery-scroll::-webkit-scrollbar { display: none; }
.img-wrap { height: 100%; width: auto; flex-shrink: 0; background: #000; }
.img-wrap img { height: 100%; width: auto; display: block; filter: grayscale(100%); }

/* --- PAGE HEADER (Sub-pages) --- */
.page-header { padding: 8rem 2rem 2rem 2rem; border-bottom: 1px solid var(--grid); margin-bottom: 3rem; }
.page-title {
    font-family: var(--font-head); font-weight: 900; font-size: clamp(5rem, 15vw, 15rem);
    line-height: 0.8; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px var(--text);
}

/* --- PAINT FEED (MASONRY) --- */
.paint-feed, .light-feed { column-count: 3; column-gap: 40px; padding: 0 40px 100px 40px; width: 100%; }
.art-card { break-inside: avoid; margin-bottom: 60px; cursor: pointer; }
.art-card img { width: 100%; height: auto; display: block; filter: grayscale(100%); transition: 0.3s; margin-bottom: 15px; }
.art-card:hover img { filter: grayscale(0%); }
.card-meta { font-family: var(--font-body); font-size: 0.7rem; color: #666; text-transform: uppercase; border-top: 1px solid #222; padding-top: 10px; display: flex; justify-content: space-between; }
.card-title { font-weight: 700; color: var(--text); display: block; margin-bottom: 4px; font-size: 0.9rem; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; background: var(--accent); box-shadow: 0 0 5px var(--accent); }

/* --- PHOTO FEED (STREAM) --- */
.photo-feed { column-count: 3; column-gap: 20px; padding: 0 20px 100px 20px; }
.feed-item { break-inside: avoid; margin-bottom: 20px; cursor: pointer; }
.feed-item img { width: 100%; height: auto; display: block; filter: grayscale(100%); transition: 0.3s; }
.feed-item:hover img { filter: grayscale(0%); transform: scale(1.02); }

/* --- PROFILE PAGE --- */
.about-container { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; border-bottom: 1px solid var(--grid); }
.portrait-col { position: relative; border-right: 1px solid var(--grid); height: 100vh; position: sticky; top: 0; }
.portrait-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.2); }
.text-col { padding: 8rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.page-tag { font-size: 0.8rem; color: var(--accent); border: 1px solid var(--accent); display: inline-block; padding: 5px 10px; width: fit-content; margin-bottom: 4rem; text-transform: uppercase; font-weight: bold; }
.bio-text { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 3.5vw, 4rem); line-height: 1.1; text-transform: uppercase; color: var(--text); letter-spacing: -0.03em; }

/* --- CONTACT --- */
.contact-page { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--grid); background: #000; min-height: 100vh; }
.info-col { padding: 4rem; border-right: 1px solid var(--grid); display: flex; flex-direction: column; justify-content: flex-start; }
.form-col { padding: 4rem; display: flex; flex-direction: column; justify-content: center; }
.contact-title { font-family: var(--font-head); font-weight: 900; font-size: clamp(3rem, 6vw, 6rem); line-height: 0.9; text-transform: uppercase; letter-spacing: -0.04em; margin-top: 4rem; }
.status-badge { border: 1px solid var(--accent); padding: 5px 10px; color: var(--accent); font-size: 0.7rem; text-transform: uppercase; width: fit-content; display: flex; gap: 10px; align-items: center; }
.blink { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.brutalist-input { width: 100%; background: transparent; border: none; border-bottom: 2px solid #333; padding: 1.5rem 0 0.5rem 0; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--text); outline: none; }
.brutalist-input:focus { border-bottom-color: var(--accent); }
.form-group { position: relative; margin-bottom: 3rem; }
.form-label { position: absolute; top: 0; left: 0; font-family: var(--font-body); font-size: 0.75rem; color: var(--accent); text-transform: uppercase; pointer-events: none; }
.send-btn { background: transparent; border: 1px solid var(--grid); color: var(--text); padding: 2rem; font-family: var(--font-head); font-weight: 900; font-size: 2rem; text-transform: uppercase; cursor: pointer; text-align: left; width: 100%; transition: 0.3s; }
.send-btn:hover { background: var(--text); color: #000; }
.project-type { display: flex; gap: 2rem; margin-bottom: 3rem; }
.type-option { cursor: pointer; opacity: 0.5; transition: 0.3s; display: flex; align-items: center; gap: 10px; color: var(--text); }
.type-option:hover, .type-option.selected { opacity: 1; color: var(--accent); }
.type-box { width: 12px; height: 12px; border: 1px solid currentColor; }
.type-option.selected .type-box { background: var(--accent); }

/* --- LIGHTBOX --- */
.lightbox { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #000; z-index: 10000; display: none; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; }
.lightbox.active { display: flex; opacity: 1; pointer-events: auto; }
.lightbox-content { width: 100%; height: 100%; position: relative; display: flex; justify-content: center; align-items: center; }
.lightbox-img { max-width: 95%; max-height: 80%; object-fit: contain; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 2rem; right: 2rem; font-size: 0.8rem; color: #666; cursor: pointer; }
.lightbox-labels { position: absolute; bottom: 2rem; left: 2rem; width: calc(100% - 4rem); display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.lb-title { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; margin: 0; color: var(--text); }
.lb-strip { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 11px; color: #666; text-transform: uppercase; font-family: var(--font-body); }
.sep { opacity: 0.3; }

/* --- FOOTER --- */
footer { padding: 4rem 2rem; background: var(--bg); border-top: 2px solid var(--text); display: grid; grid-template-columns: 1fr 1fr; margin-top: 5rem; }
.footer-logo { font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; text-transform: uppercase; }
.footer-link { font-size: 3rem; text-transform: uppercase; font-family: var(--font-head); font-weight: 800; color: var(--text); border-bottom: 3px solid transparent; width: fit-content; cursor: pointer; }
.footer-link:hover { color: var(--accent); border-color: var(--accent); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .masonry-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 20px; padding: 20px; }
    .span-2-col, .span-2-row { grid-column: span 1; grid-row: span 1; height: 300px; }
    .paint-feed, .light-feed, .photo-feed { column-count: 1; padding: 0 20px; }
    .contact-page { grid-template-columns: 1fr; }
    .info-col { border-right: none; border-bottom: 1px solid var(--grid); }
    .about-container { grid-template-columns: 1fr; }
    .portrait-col { height: 60vh; border-right: none; border-bottom: 1px solid var(--grid); }
    footer { grid-template-columns: 1fr; gap: 4rem; }
}
