:root {
    --bg: #ffffff;
    --text: #111111;
    --accent: #888888;
    --glass: rgba(255, 255, 255, 0.85);
    --border: rgba(0, 0, 0, 0.05);
}

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

/* body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; } */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* CUSTOM CURSOR */
@media (min-width: 769px) {
    html, body { cursor: none; }
    .cursor-dot, .cursor-outline { pointer-events: none; position: fixed; border-radius: 50%; z-index: 9999; }
    .cursor-dot { width: 6px; height: 6px; background: #111; }
    .cursor-outline { width: 30px; height: 30px; border: 1px solid #111; transition: transform 0.15s; }
}

/* NAVIGATION */
header {
    position: fixed; top: 0; width: 100%; padding: 25px 5% 1px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--glass); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(8px);
    z-index: 1000; border-bottom: 1px solid var(--border);
}

/* 3. Optional: If the logo still feels too far away */
header {
    padding: 15px 5% 10px 5%; /* Tightens the actual height of the nav bar */
}


.logo { font-weight: 700; letter-spacing: 3px; text-decoration: none; color: #000; font-size: 0.9rem; }
nav a { text-decoration: none; color: var(--text); margin-left: 35px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; transition: 0.3s; }
nav a:hover { opacity: 0.4; }

/* GRID SYSTEMS */
/* 1. Tighten the top wrapper */
main { 
    padding: 80px 5% 40px; /* Reduced from 140px to 80px */
    min-height: 80vh; 
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; }
.card { position: relative; cursor: pointer; }
.card img { width: 100%; display: block; transition: 0.5s ease; filter: grayscale(10%); }
.card:hover img { filter: grayscale(0%); transform: scale(1.02); }

/* FORMS & SHOP */
.form-wrapper, .shop-container { max-width: 800px; margin: 0 auto; }
input, select, textarea { width: 100%; border: none; border-bottom: 1px solid #ddd; padding: 15px 0; margin-bottom: 30px; background: transparent; outline: none; font-family: inherit; }
.submit-btn, .buy-btn { background: #111; color: #fff; border: 1px solid #111; padding: 18px 40px; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: 0.3s; font-size: 0.7rem; }
.submit-btn:hover, .buy-btn:hover { background: transparent; color: #111; }

footer { padding: 60px 5%; text-align: center; border-top: 1px solid var(--border); font-size: 0.7rem; letter-spacing: 1px; color: #999; }
footer a { color: #111; text-decoration: none; margin: 0 10px; }

.fade-in { opacity: 0; transform: translateY(20px); animation: reveal 1s forwards; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* CPRA Agreement */
/* Cookie Toast Style */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    font-size: 0.75rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

.cookie-content a {
    color: #111;
    text-decoration: underline;
}

.cookie-btn {
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.cookie-btn:hover {
    background: #444;
}

/* Mobile Adjustment */
@media (max-width: 600px) {
    .cookie-content { flex-direction: column; text-align: center; }
}

/* Ensure the default cursor is hidden on the whole page */
@media (min-width: 769px) {
    html, body { 
        cursor: none !important; 
    }

    .cursor-dot, .cursor-outline {
        pointer-events: none; /* Crucial: allows clicks to pass through to links */
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%); /* Centers the dots on the mouse tip */
        border-radius: 50%;
        z-index: 99999;
        transition: opacity 0.3s ease;
    }

    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: #111;
    }

    .cursor-outline {
        width: 40px;
        height: 40px;
        border: 1px solid #111;
    }
}

/* new form css */
.contact-header {
padding-top: 1px;
} 

.contact-wrapper {
    max-width: 600px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    background: #fff;
    font-family: inherit;
}

.btn-submit {
    background: #111;
    color: #fff;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #333;
}

.spam-note {
    font-size: 0.85rem;
    color: #555;
    background: rgba(0,0,0,0.03);
    padding: 10px;
    border-radius: 4px;
    margin: 15px 0;
    line-height: 1.4;
}

.spam-note strong {
    color: #111;
}

/* Tighten the header itself */
header {
    padding-top: 20px;    /* Reduced from 40 */
    padding-bottom: 10px; /* Reduced from 40 */
    margin-bottom: 10px;  /* Reduced from 60 - THIS IS THE MAIN CULPRIT */
}

/* Remove any default padding at the top of the main container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px; 
}

/* Ensure the studio image touches the top area */
.contact-header {
    margin-top: 0;       /* Force it to the top */
    padding-top: 0;
}

.studio-hero {
    width: 100%;
    height: 350px; 
    overflow: hidden;
    margin-top: 0;       /* Ensure no gap above image */
    margin-bottom: 10px; 
}

/* float profile image left on about */
.profile-pic {
    float: left;
    width: 160px; /* Adjust size as needed */
    margin-right: 30px;
    margin-bottom: 20px;
    border: 1px solid #eee; /* Optional gallery-style border */
}

/* Clearfix: This ensures the footer doesn't try to float up into the text */
.about-content::after {
    content: "";
    clear: both;
    display: table;
}

/* this will kill the float and stack on mobile device */
@media (max-width: 600px) {
    .profile-pic {
        float: none;
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* iNstagram feed */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.insta-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: opacity 0.3s;
}

.insta-grid img:hover {
    opacity: 0.8;
}

@media (max-width: 600px) {
    .insta-grid { grid-template-columns: repeat(2, 1fr); }
}

/* a fix for mobile issues */
.site-footer {
    background: #fafafa;
    padding: 60px 0 20px;
    border-top: 1px solid #eee;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #888;
}

/* Instagram Grid Styles */
.insta-handle {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    color: #111;
    font-weight: 600;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 80px); /* Small, elegant thumbnails */
    gap: 10px;
}

.insta-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    filter: grayscale(100%); /* Optional: keeps footer neutral */
    transition: 0.3s ease;
}

.insta-grid img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .insta-grid {
        justify-content: center;
    }
}

/* --- FINAL STABLE FOOTER --- */
.site-footer {
    width: 100%;
    clear: both;            /* This kills any 'floats' from the About page portrait */
    background: #fafafa;
    padding: 60px 0 40px;
    border-top: 1px solid #eee;
    margin-top: 80px;
    text-align: center;      /* This centers all text and inline elements */
}

.footer-section {
    display: block;         /* Forces each section onto its own new line */
    margin-bottom: 40px;
    width: 100%;
}

.insta-grid {
    display: flex;          /* Keeps images in a row */
    justify-content: center; /* Centers that row of images */
    gap: 10px;
    margin: 20px auto;
    max-width: 400px;       /* Keeps the grid from getting too wide */
}

.insta-grid img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.75rem;
    color: #888;
    width: 100%;
}

/* index honypt */
.home-hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.btn-enter {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    border: 2px solid #111;
    background: transparent;
    color: #111;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-enter:hover {
    background: #111;
    color: #fff;
    letter-spacing: 4px; /* Slight expansion effect */
}

/* --- The Masonry Grid --- */
.portfolio-grid {
    column-count: 3;       /* Number of columns on desktop */
    column-gap: 15px;      /* Space between columns */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.art-item {
    display: inline-block; /* Crucial for masonry: prevents items from splitting across columns */
    width: 100%;           /* Ensures the item fills the column width */
    margin-bottom: 15px;   /* Space between items vertically */
    cursor: pointer;
    overflow: hidden;
    background: #f9f9f9;
}

.art-item img {
    display: block;
    width: 100%;
    height: auto;          /* This preserves your original aspect ratios! */
    transition: transform 0.4s ease;
}

.art-item:hover img {
    transform: scale(1.03);
}

/* Responsive: 2 columns on tablets, 1 on phones */
@media (max-width: 900px) {
    .portfolio-grid { column-count: 2; }
}

@media (max-width: 600px) {
    .portfolio-grid { column-count: 1; }
}

/*  erticle image */

stage-container {
    margin-top: 0; /* Let the <main> padding do the heavy lifting */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Tightens the space between the image and the title */
    width: 100%;
    padding: 0;
}


#main-stage {
    max-width: 100%;
    max-height: 100%;      /* Image will never be taller than the 70vh stage */
    object-fit: contain;   /* Ensures the whole painting is visible, never cropped */
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

/* --- 404 Glitch Aesthetics --- */
.error-page {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    text-align: center;
}

.glitch {
    position: relative;
    font-size: 8rem;
    font-weight: 900;
    color: #111;
    letter-spacing: -5px;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

/* Creating the "Ghost" layers */
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1; /* Pink glitch */
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9; /* Cyan glitch */
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

/* Animations for the "vibration" */
@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(62px, 9999px, 42px, 0); }
    100% { clip: rect(10px, 9999px, 86px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(67px, 9999px, 51px, 0); }
    100% { clip: rect(30px, 9999px, 73px, 0); }
}

@keyframes glitch-skew {
    0% { transform: skew(1deg); }
    10% { transform: skew(-1deg); }
    100% { transform: skew(0deg); }
}


/* Feature/Contact Section */
.content-block {
    background: var(--parchment);
    color: var(--ink);
    padding: 60px 10%;
    line-height: 1.6;
}

/* Automated Watermark on Thumbs */
.art-item { position: relative; }
.art-item::after {
    content: "© SPARE PIXELS";
    position: absolute;
    bottom: 10px; left: 10px;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.4);
    opacity: 0;
    transition: 0.3s;
}
.art-item:hover::after { opacity: 1; }

/* Status Badges */
.badge.limited { background: #111; color: #fff; }
.badge.soon { background: #eee; color: #777; border: 1px solid #ccc; }

/* The HD Viewer Area */
.portfolio-hero {
    width: 100%;
    background: #fff;
    padding-bottom: 40px;
    text-align: center;
}

#main-stage {
    max-width: 100%;
    max-height: 70vh; /* Keeps it above the fold */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease;
}

/* Filter Buttons */
.filter-nav {
    margin: 40px 0;
    text-align: center;
}

.filter-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.filter-btn.active {
    color: #111;
    font-weight: bold;
    border-bottom: 2px solid #111;
}

/* The Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.art-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.art-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Logic for Hiding/Showing */
.art-item.hidden {
    display: none;
}
}