/* ==========================================
   CSS VARIABLES & BASE FONTS
=========================================== */
:root {
    --color-dominant: #7205cd;
    --color-compliment: #5D7FFF;
    --color-highlight-dark: #000000;
    --color-highlight-light: #ffffff;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --border-light: #e0e0e0;
    --font-primary: 'Optima', 'Segoe UI', sans-serif;
    --font-secondary: 'Georgia', 'Times New Roman', serif;
    --font-handwriting: 'Caveat', cursive;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --color-gold: #d4af37;
}

[data-theme="dark"] {
    --bg-white: #0a0a0a;
    --bg-light: #121212;
    --text-dark: #f0f0f0;
    --text-muted: #999999;
    --border-light: #2a2a2a;
    --color-highlight-dark: #ffffff;
    --color-highlight-light: #000000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-secondary);
    color: var(--text-dark) !important;
    background-color: var(--bg-white) !important;
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); font-weight: 700; color: var(--text-dark); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Scroll Reveal Animation */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }
.reveal.delay-4 { transition-delay: 0.6s; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Scripture Base */
.scripture { font-family: var(--font-handwriting); font-size: 2.4rem; line-height: 1.3; color: var(--color-dominant); margin-bottom: 0.5rem; }
.scripture-reference { font-family: var(--font-handwriting); font-size: 1.5rem; color: var(--text-muted); }

/* ==========================================
   2. HEADER & NAV
=========================================== */
header {
    position: fixed; top: 0; width: 100%;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(20px);
    z-index: 1000; padding: 1rem 5%; border-bottom: 1px solid rgba(114, 5, 205, 0.08);
    transition: var(--transition);
}

[data-theme="dark"] header { background: rgba(10,10,10,0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
header.scrolled { padding: 0.7rem 5%; box-shadow: 0 4px 30px rgba(114, 5, 205, 0.1); }

.nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo-wrapper { display: flex; align-items: center; gap: 1rem; }
.logo-icon { width: 48px; height: 48px; position: relative; }

@keyframes fireGlow {
    0% { filter: drop-shadow(0 0 8px rgba(114, 5, 205, 0.4)) drop-shadow(0 0 16px rgba(93, 127, 255, 0.2)); }
    50% { filter: drop-shadow(0 0 20px rgba(114, 5, 205, 0.8)) drop-shadow(0 0 30px rgba(93, 127, 255, 0.4)); transform: translateY(-2px) scale(1.02); }
    100% { filter: drop-shadow(0 0 8px rgba(114, 5, 205, 0.4)) drop-shadow(0 0 16px rgba(93, 127, 255, 0.2)); }
}

.logo-icon img { width: 100%; height: 100%; object-fit: contain; animation: fireGlow 3s infinite alternate; }
.logo-text { display: flex; flex-direction: column; }
.logo { 
    font-size: 1.4rem; 
    font-weight: 700; 
    color: #7006CC !important; 
    font-family: var(--font-primary); 
    letter-spacing: 1px; 
}
.logo-tagline { font-size: 0.65rem; color: var(--color-dominant); text-transform: uppercase; font-weight: 600; letter-spacing: 2px; font-family: var(--font-primary); }

.nav-right { display: flex; align-items: center; gap: 2.5rem; }
.desktop-menu { display: flex; gap: 2.5rem; align-items: center; font-family: var(--font-primary); }
.desktop-menu a { font-weight: 600; font-size: 0.85rem; transition: var(--transition); position: relative; padding: 0.5rem 0; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dark); }
.desktop-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-dominant); transition: width 0.3s ease; }
.desktop-menu a:hover::after { width: 100%; }
.desktop-menu a:hover { color: var(--color-dominant); }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; right: 0; background: var(--bg-white);
    min-width: 280px; box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-radius: 16px; padding: 1rem 0; opacity: 0; visibility: hidden;
    transition: all 0.3s ease; transform: translateY(-10px); border: 1px solid var(--border-light);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 0.8rem 1.8rem; font-size: 0.85rem; border-bottom: 1px solid transparent; }
.dropdown-menu a:hover { color: var(--color-dominant); background: var(--bg-light); padding-left: 2.2rem; }
.dropdown-menu a::after { display: none; }

.theme-toggle { background: none; border: none; font-size: 1.3rem; cursor: pointer; transition: 0.3s; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.theme-toggle:hover { background: var(--bg-light); transform: rotate(15deg); }

.btn-cta {
    display: inline-block; background: var(--color-dominant); color: white !important;
    padding: 0.7rem 1.8rem; border-radius: 8px; font-weight: 700; border: none;
    cursor: pointer; transition: var(--transition); font-family: var(--font-primary);
    text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1.5px;
}
.btn-cta:hover { background: var(--color-compliment); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(114, 5, 205, 0.3); }

/* Mobile Nav */
.hamburger { display: none; flex-direction: column; background: none; border: none; cursor: pointer; z-index: 1002; padding: 0.5rem; gap: 5px; }
.hamburger span { width: 26px; height: 2px; background: var(--text-dark); transition: 0.3s; border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--color-dominant); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background: var(--color-dominant); }

#mobile-theme-toggle { display: none; }
@media (max-width: 900px) { #mobile-theme-toggle { display: flex; } }

.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 85%; max-width: 400px; height: 100vh;
    background: var(--bg-white); z-index: 1001; padding: 8rem 3rem 2.5rem;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -10px 0 50px rgba(0,0,0,0.15);
    font-family: var(--font-primary); overflow-y: auto;
    display: flex; flex-direction: column;
}
.mobile-menu.active { right: 0; }
.mobile-menu a { display: block; font-size: 1.3rem; padding: 1.2rem 0; border-bottom: 1px solid var(--border-light); font-weight: 600; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.mobile-menu a:hover { color: var(--color-dominant); padding-left: 10px; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; display: none; backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s; }
.overlay.active { display: block; opacity: 1; }

/* ==========================================
   3. HERO & SECTIONS (MILESTONE 2 UPDATES)
=========================================== */
.hero {
    margin-top: 60px; padding: 10rem 5%; width: 100%;
    background-color: #000000; /* Client request: Black background */
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.98)), url('https://res.cloudinary.com/mst703ng/image/upload/v1783785775/Messiah_s_Love_painting_ihro5h.webp');
    background-size: cover; background-position: center; background-attachment: fixed;
    color: #ffffff !important; text-align: center; position: relative; overflow: hidden;
}

.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(114, 5, 205, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(93, 127, 255, 0.2) 0%, transparent 40%);
    animation: rotate 20s linear infinite; z-index: 1; pointer-events: none; mix-blend-mode: screen;
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -0.03em; text-wrap: balance; color: #ffffff !important; text-shadow: 0 4px 25px rgba(0,0,0,0.9); }
.hero p { font-size: 1.25rem; max-width: 700px; margin: 0 auto 2.5rem; opacity: 0.95; line-height: 1.8; color: #ffffff !important; text-shadow: 0 2px 15px rgba(0,0,0,0.9); }

.hero .scripture {
    color: #7205cd !important; /* Client request: Back to purple */
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    margin: 0 auto 1rem;
    text-shadow: 0 4px 15px rgba(0,0,0, 0.8);
}

.hero .scripture-reference {
    color: #D4AF37 !important; /* Gold for contrast */
    font-weight: bold;
}

section { padding: 6rem 5%; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-dark); }
.section-subtitle { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.15rem; }

/* Home About */
.home-about-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: center; padding: 8rem 5%; }
.about-portrait { aspect-ratio: 3/4; background: var(--bg-light); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.12); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; transition: 0.7s; }
.about-portrait:hover img { transform: scale(1.05); }
.about-text-content h2 { text-align: left; margin-bottom: 1.5rem; }
.about-text-content .lead { font-size: 1.4rem; font-weight: 600; color: var(--color-dominant); margin-bottom: 1.5rem; font-family: var(--font-primary); }
.about-text-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* Disciplines */
.disciplines-section {
    background-color: #0a0512;
    background-image: linear-gradient(135deg, rgba(15, 5, 24, 0.95) 0%, rgba(26, 10, 46, 0.95) 100%), url('Images/disciplines-bg.jpg');
    background-size: cover; background-attachment: fixed;
    padding: 8rem 5%; position: relative; overflow: hidden; margin: 4rem 0; max-width: 100vw;
}
.disciplines-content { max-width: 1400px; margin: 0 auto; position: relative; z-index: 2; }
.disciplines-section .section-title { color: white; text-align: center; margin-bottom: 4rem; }
.discipline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 3rem; }
.discipline-item { padding: 2.5rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; transition: var(--transition); }
.discipline-item:hover { transform: translateY(-10px); border-color: rgba(114, 5, 205, 0.3); background: rgba(255,255,255,0.06); }
.discipline-item h3 { font-size: 5rem; color: var(--color-dominant); opacity: 0.4; line-height: 1; margin-bottom: 1.5rem; font-family: var(--font-primary); }
.discipline-item h4 { font-size: 1.4rem; color: white !important; margin-bottom: 1rem; }
.discipline-item p { color: rgba(255,255,255,0.7) !important; font-size: 1.05rem; }

/* Gallery */
.work-categories { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.work-categories a { padding: 0.7rem 1.8rem; border: 1.5px solid var(--border-light); border-radius: 30px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; font-family: var(--font-primary); cursor: pointer; color: var(--text-dark);}
.work-categories a.active, .work-categories a:hover { background: var(--color-dominant); color: white !important; border-color: var(--color-dominant); }

.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 300px; gap: 1.5rem; }
.artwork-card { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--bg-light); border: 1px solid var(--border-light); transition: 0.5s; grid-column: span 2; }
.artwork-card:nth-child(5n+1) { grid-column: span 3; grid-row: span 2; }
.artwork-card:nth-child(5n+2) { grid-column: span 3; grid-row: span 1; }
.artwork-card:nth-child(5n+3) { grid-column: span 2; grid-row: span 2; }
.artwork-card:nth-child(5n+4) { grid-column: span 2; grid-row: span 1; }
.artwork-card:nth-child(5n+5) { grid-column: span 2; grid-row: span 1; }
.artwork-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 30px 60px rgba(0,0,0,0.2); z-index: 10; }
.artwork-image { width: 100%; height: 100%; }
.artwork-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.7s; }
.artwork-card:hover .artwork-image img { transform: scale(1.1); }
.artwork-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(114, 5, 205, 0.95), transparent); padding: 3rem 1.5rem 1.5rem; color: white !important; opacity: 0; transition: 0.4s; display: flex; flex-direction: column; justify-content: flex-end; }
.artwork-card:hover .artwork-overlay { opacity: 1; }

.btn-outline { display: inline-block; padding: 0.9rem 2.2rem; border: 2px solid var(--color-dominant); color: var(--color-dominant); border-radius: 8px; font-weight: 700; text-transform: uppercase; font-family: var(--font-primary); font-size: 0.8rem; transition: var(--transition); }
.btn-outline:hover { background: var(--color-dominant); color: white !important; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(114, 5, 205, 0.2); }

/* Shop */
.shop-preview { background: var(--bg-light); border-radius: 30px; margin: 4rem auto; padding: 6rem 5%; }
.shop-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 3rem; 
}

.shop-card { 
    flex: 1 1 350px; 
    max-width: 450px; /* Prevents cards from becoming giant on large screens */
    background: var(--bg-white); 
    border-radius: 20px; 
    overflow: hidden; 
    border: 1px solid var(--border-light); 
    transition: var(--transition); 
    display: flex; 
    flex-direction: column; 
    width: 100%;
}
.shop-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.08); 
}
.shop-image-wrapper { height: 350px; position: relative; background: var(--border-light); }
.shop-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 1.5rem; left: 1.5rem; padding: 0.5rem 1.2rem; border-radius: 30px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; font-family: var(--font-primary); color: white;}
.badge.limited { background: var(--color-dominant); }
.badge.open { background: var(--color-compliment); }
.shop-info { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.shop-info h3 { font-size: 1.5rem; margin-bottom: 1rem; text-transform: uppercase; color: var(--text-dark); }
.shop-info p { color: var(--text-muted); margin-bottom: 2rem; flex-grow: 1; }
.buy-button { display: block; text-align: center; background: var(--color-highlight-dark); color: var(--color-highlight-light) !important; padding: 1.2rem; border-radius: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-primary); font-size: 0.85rem; transition: var(--transition); }
.buy-button:hover { background: var(--color-dominant); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(114, 5, 205, 0.3); }

/* ==========================================
   WORK WITH ME (MILESTONE 2: LEGIBLE BUTTON)
=========================================== */
.work-with-me {
    padding: 8rem 5%; text-align: center; margin: 6rem auto; max-width: 1400px; border-radius: 30px;
    position: relative; overflow: hidden;
    background-color: #05020a;
    background-image: linear-gradient(rgba(20, 5, 40, 0.6), rgba(10, 10, 10, 0.85)), url('Images/commercial-bg.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
    color: #ffffff !important; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.work-with-me::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(114, 5, 205, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(93, 127, 255, 0.15) 0%, transparent 40%);
    animation: rotate 25s linear infinite reverse; z-index: 1; pointer-events: none; mix-blend-mode: screen;
}
/* Legible Inner Circle Button Fix */
.work-with-me .btn-outline {
    background: var(--color-dominant);
    border: 2px solid var(--color-dominant);
    color: #ffffff !important;
    text-shadow: none;
}
.work-with-me .btn-outline:hover {
    background: #ffffff;
    color: var(--color-dominant) !important;
    border-color: #ffffff;
}
.work-with-me h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.5rem; color: #ffffff !important; position: relative; z-index: 2; text-shadow: 0 4px 25px rgba(0,0,0,0.9);}
.work-with-me p { font-size: 1.25rem; max-width: 700px; margin: 0 auto 3rem; color: rgba(255,255,255,0.9) !important; position: relative; z-index: 2; text-shadow: 0 2px 15px rgba(0,0,0,0.9);}
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2;}
/* ==========================================
   MODALS
=========================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); z-index: 5000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.3s; padding: 2rem; overflow-y: auto; }
[data-theme="dark"] .modal-overlay { background: rgba(18,18,18,0.95); }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--bg-white); width: 100%; max-width: 900px; border-radius: 20px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.2); margin: auto;}
.close-modal { position: absolute; top: 20px; right: 20px; background: rgba(114,5,205,0.1); border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; color: var(--color-dominant); cursor: pointer; z-index: 10; transition: var(--transition); }
.close-modal:hover { background: rgba(114,5,205,0.2); transform: rotate(90deg); }
.action-modal-content { max-width: 550px; padding: 0; text-align: center; }
.modal-tabs { display: flex; border-bottom: 1px solid var(--border-light); background: var(--bg-light); border-radius: 20px 20px 0 0; }
.tab-btn { flex: 1; padding: 20px 10px; background: none; border: none; font-family: var(--font-primary); font-weight: bold; text-transform: uppercase; font-size: 0.85rem; cursor: pointer; color: var(--text-muted); border-bottom: 3px solid transparent;}
.tab-btn.active { color: var(--color-dominant); border-bottom-color: var(--color-dominant); background: var(--bg-white); }
.tab-panel { display: none; padding: 40px; animation: fadeIn 0.4s; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================
   FOOTER
=========================================== */
footer { background: #0a0a0a; color: rgba(255,255,255,0.8); padding: 6rem 5% 3rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 4rem; max-width: 1400px; margin: 0 auto; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 4rem; }
.footer-brand h3 { margin-bottom: 1.5rem; font-size: 1.8rem; color: white !important; letter-spacing: 2px; }
.footer-links h4 { margin-bottom: 1.8rem; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; color: var(--color-dominant); font-family: var(--font-primary); }
.footer-links a { display: block; margin-bottom: 12px; transition: 0.3s; color: rgba(255,255,255,0.8); font-family: var(--font-primary); text-transform: uppercase; font-size: 0.8rem; }
.footer-links a:hover { color: var(--color-dominant); padding-left: 8px; }

/* DEVELOPER CREDIT — MARVELOUS ASCENT */
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 1rem; padding-top: 2.5rem; max-width: 1400px; margin: 0 auto;
    font-size: 0.85rem; color: rgba(255,255,255,0.5);
}
.credit-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: 'Courier New', Courier, monospace;
    background: #0C172C;
    color: #F8FAFC !important;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    border: 1px solid rgba(248, 250, 252, 0.15);
    transition: var(--transition);
}
.credit-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(248, 250, 252, 0.4);
    box-shadow: 0 10px 25px rgba(12, 23, 44, 0.5);
}
.credit-badge .credit-bracket { color: #F8FAFC; opacity: 0.55; font-weight: 700; }
.credit-portfolio-link {
    font-size: 0.75rem; color: rgba(255,255,255,0.4) !important; margin-left: 0.75rem;
    text-decoration: underline; text-underline-offset: 3px; transition: 0.3s;
}
.credit-portfolio-link:hover { color: rgba(255,255,255,0.75) !important; }

.footer-dedication {
    max-width: 700px;
    margin: 1.5rem auto 0;
    padding: 1.5rem 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.footer-dedication p {
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.4rem;
    font-style: italic;
}

@media (max-width: 600px) {
    .footer-bottom { flex-direction: column; text-align: center; }
    .credit-badge { font-size: 0.62rem; padding: 0.35rem 0.7rem; gap: 0.35rem; }
    .credit-portfolio-link { font-size: 0.62rem; margin-left: 0.4rem; }
    .mobile-menu-credit { padding-top: 1rem; }
    .footer-dedication p { font-size: 0.68rem; }
}

/* MOBILE MENU DEVELOPER CREDIT FIX */
.mobile-menu-credit {
    margin-top: auto; 
    padding: 1.5rem 0 1rem 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    border-top: 1px solid var(--border-light);
}
.mobile-menu-credit .credit-badge { 
    width: auto; 
    justify-content: center; 
    background: transparent !important; 
    border: none !important; 
    color: var(--text-muted) !important; 
    font-size: 0.6rem; 
    padding: 0; 
    box-shadow: none !important;
}
.mobile-menu-credit .credit-badge .credit-bracket {
    color: var(--text-muted) !important;
    opacity: 0.6;
}
.mobile-menu-credit .credit-badge:hover {
    transform: none; 
    color: var(--color-dominant) !important;
}
.mobile-menu-credit .credit-portfolio-link { 
    margin-left: 0;
    font-size: 0.55rem;
    color: var(--text-muted) !important;
    text-decoration: none;
}

/* ==========================================
   COMING SOON — RUACH COLLECTION
=========================================== */
.blurred-media {
    filter: blur(18px) saturate(0.6) brightness(0.75) !important;
    transform: scale(1.15) !important;
}
.coming-soon-card { cursor: default !important; }
.coming-soon-badge {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    background: rgba(10, 10, 15, 0.65);
    color: #ffffff;
    padding: 0.6rem 1.4rem;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 30px;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    white-space: nowrap;
    pointer-events: none;
}
.cinematic-frame .coming-soon-badge { font-size: 0.65rem; padding: 0.5rem 1rem; }

/* ==========================================
   4. EXACT MOBILE FIXES
=========================================== */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .artwork-card:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
    .artwork-card:nth-child(5n+2) { grid-column: span 2; grid-row: span 1; }
    .artwork-card:nth-child(5n+3) { grid-column: span 2; grid-row: span 2; }
    .artwork-card:nth-child(5n+4) { grid-column: span 2; grid-row: span 1; }
    .artwork-card:nth-child(5n+5) { grid-column: span 4; grid-row: span 1; }
}
@media (max-width: 900px) {
    .nav-right { display: none; }
    .hamburger { display: flex; }
    .home-about-split { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .about-text-content h2 { text-align: center !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
    .discipline-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 1rem; }
    .discipline-item { width: 100%; box-sizing: border-box; overflow: hidden; word-wrap: break-word; }
}
@media (max-width: 600px) {
    .hero { padding: 8rem 5% 4rem; min-height: 85vh; display: flex; align-items: center; justify-content: center; }
    .hero h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); line-height: 1.1; margin-bottom: 1rem; word-break: keep-all; }
    .hero p { font-size: 1.05rem; padding: 0 10px; }
    .hero .scripture { font-size: 1.6rem; margin-top: 1rem; }
    .logo-tagline { white-space: nowrap; font-size: 0.55rem; letter-spacing: 0; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 350px; }
    .artwork-card, .artwork-card:nth-child(5n+1), .artwork-card:nth-child(5n+2), .artwork-card:nth-child(5n+3), .artwork-card:nth-child(5n+4), .artwork-card:nth-child(5n+5) { grid-column: span 1; grid-row: span 1; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; } 
    .social-pills { justify-content: center; } 
}

[data-theme="dark"] .desktop-menu a { color: #cccccc; }
[data-theme="dark"] .hamburger span { background: #ffffff; }
[data-theme="dark"] .section-title { color: #ffffff; }
[data-theme="dark"] .about-text-content p { color: #aaaaaa; }

/* ==========================================
   PREMIUM FAQ ACCORDION
=========================================== */
.faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 16px; overflow: hidden; transition: var(--transition); }
.faq-item:hover { border-color: rgba(114, 5, 205, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; background: none; border: none; font-family: var(--font-primary); font-size: 1.1rem; font-weight: 700; color: var(--text-dark); cursor: pointer; text-align: left; transition: var(--transition); }
.faq-icon { font-size: 1.8rem; color: var(--color-dominant); transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); font-weight: 300; line-height: 1; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0, 1, 0, 1); }
.faq-answer-inner { padding: 0 1.5rem 1.5rem; border-top: 1px solid transparent; transition: var(--transition); color: var(--text-muted); }
.faq-item.active { border-color: var(--color-dominant); box-shadow: 0 10px 30px rgba(114, 5, 205, 0.1); }
.faq-item.active .faq-question { color: var(--color-dominant); }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--text-dark); }
.faq-item.active .faq-answer { max-height: 1000px; transition: max-height 0.8s ease-in-out; }
.faq-item.active .faq-answer-inner { border-top-color: var(--border-light); padding-top: 1.5rem; }

.premium-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.premium-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--text-dark); transform: translateY(15px); opacity: 0; transition: all 0.4s ease; }
.bullet-star { color: var(--color-dominant); font-size: 1.1rem; }
.faq-item.active .premium-list li { transform: translateY(0); opacity: 1; }
.faq-item.active .premium-list li:nth-child(1) { transition-delay: 0.1s; }
.faq-item.active .premium-list li:nth-child(2) { transition-delay: 0.15s; }
.faq-item.active .premium-list li:nth-child(3) { transition-delay: 0.2s; }
.faq-item.active .premium-list li:nth-child(4) { transition-delay: 0.25s; }
.faq-item.active .premium-list li:nth-child(5) { transition-delay: 0.3s; }
/* ==========================================
   PREMIUM FEATURES: Transitions, 3D Tilt, Zen Mode
=========================================== */
.page-transition-overlay {
    position: fixed; inset: 0; background: #05020a; z-index: 9999;
    opacity: 1; visibility: visible; transition: opacity 0.6s ease, visibility 0.6s ease; pointer-events: none;
}
.page-transition-overlay.loaded { opacity: 0; visibility: hidden; }

.tilt-card { perspective: 1000px; transform-style: preserve-3d; will-change: transform; }
.tilt-card img, .tilt-card .overlay-info, .tilt-card .artwork-overlay { transform: translateZ(30px); transition: transform 0.3s ease; }
.tilt-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.15) 25%, transparent 30%);
    transform: translateX(-100%); z-index: 10; pointer-events: none; transition: transform 0.6s ease;
}
.tilt-card:hover::after { transform: translateX(100%); }

body.zen-mode { background-color: #000000 !important; }
body.zen-mode header, body.zen-mode footer, body.zen-mode .section-header, body.zen-mode .artwork-details-text {
    opacity: 0 !important; pointer-events: none; transition: opacity 0.8s ease;
}
.zen-btn {
    background: transparent; border: 1px solid var(--border-light); color: var(--text-dark);
    padding: 0.6rem 1.2rem; border-radius: 30px; cursor: pointer; font-family: var(--font-primary);
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition);
    margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 8px;
}
.zen-btn:hover { border-color: var(--color-dominant); color: var(--color-dominant); }
body.zen-mode .zen-btn {
    position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 10000;
    opacity: 1; background: rgba(255,255,255,0.1); color: #ffffff; border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

/* ==========================================
   HORIZONTAL FILTER BAR & PREMIUM IMAGES
=========================================== */

.filter-btn {
    flex: 0 0 auto; background: transparent; border: 1px solid var(--border-light);
    padding: 0.6rem 1.5rem; border-radius: 30px; color: var(--text-muted);
    font-family: var(--font-primary); font-weight: 600; cursor: pointer;
    transition: var(--transition); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--color-dominant); color: white !important; border-color: var(--color-dominant);
    box-shadow: 0 5px 15px rgba(114, 5, 205, 0.3);
}

.filtered-item { transition: opacity 0.4s ease, transform 0.4s ease; }
.filtered-item.hidden { display: none !important; }

.category-section > div[id$="-grid"] { display: block; }
.subcategory-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 300px; gap: 1.5rem; }

.subcategory-title {
    color: var(--color-dominant); text-shadow: 0 2px 10px rgba(114, 5, 205, 0.15);
    font-family: var(--font-primary); font-size: 1.8rem; margin: 4rem 0 2rem;
    text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem; width: 100%;
}
[data-theme="dark"] .subcategory-title { color: #ffffff; border-bottom-color: rgba(255,255,255,0.1); }

.subcategory-grid .work-card, .subcategory-grid .archive-card {
    background: transparent !important; border: none !important; box-shadow: none !important;
    display: flex; align-items: center; justify-content: center; grid-column: span 2; position: relative; overflow: hidden; border-radius: 16px;
}
.subcategory-grid .work-card img, .subcategory-grid .archive-card img, .subcategory-grid video {
    object-fit: cover !important; max-height: 100%; width: 100%;
}
.subcategory-grid .work-card:nth-child(5n+1) { grid-column: span 3; grid-row: span 2; }
.subcategory-grid .work-card:nth-child(5n+2) { grid-column: span 3; grid-row: span 1; }
.subcategory-grid .work-card:nth-child(5n+3) { grid-column: span 2; grid-row: span 2; }
.subcategory-grid .work-card:nth-child(5n+4) { grid-column: span 2; grid-row: span 1; }
.subcategory-grid .work-card:nth-child(5n+5) { grid-column: span 2; grid-row: span 1; }

.overlay-info {
    position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
    background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px; padding: 1.5rem; color: white !important; opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); display: flex;
    flex-direction: column; justify-content: flex-start; z-index: 10;
    transform: translateY(15px); box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.work-card:hover .overlay-info { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
    .subcategory-grid { grid-template-columns: repeat(4, 1fr); }
    .subcategory-grid .work-card:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
    .subcategory-grid .work-card:nth-child(5n+2) { grid-column: span 2; grid-row: span 1; }
    .subcategory-grid .work-card:nth-child(5n+3) { grid-column: span 2; grid-row: span 2; }
    .subcategory-grid .work-card:nth-child(5n+4) { grid-column: span 2; grid-row: span 1; }
    .subcategory-grid .work-card:nth-child(5n+5) { grid-column: span 4; grid-row: span 1; }
}
@media (max-width: 600px) {
    .subcategory-grid { grid-template-columns: 1fr; grid-auto-rows: 350px; }
    .subcategory-grid .work-card, .subcategory-grid .archive-card { grid-column: span 1 !important; grid-row: span 1 !important; }
}
/* ==========================================
   EXHIBITION RAIL (THEME AWARE & MOBILE OPTIMIZED)
=========================================== */
#exhibitionRail {
    position: fixed; top: 50%; right: 16px;
    transform: translateY(-50%);
    height: 34vh; min-height: 220px; max-height: 340px;
    z-index: 500; pointer-events: none;
    
    /* NEW: Hide by default with a smooth fade */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* NEW: Class triggered by JavaScript when scrolling */
#exhibitionRail.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 1. The Line Track (Dark in light mode, Light in dark mode) */
.rail-track {
    position: absolute; left: 0; top: 0;
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.15) 15%, rgba(0, 0, 0, 0.15) 85%, transparent);
}
[data-theme="dark"] .rail-track { 
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15) 15%, rgba(255, 255, 255, 0.15) 85%, transparent); 
}

/* 2. The Gold Trail & Marker (Stays constant) */
.rail-trail {
    position: absolute; left: 0; top: 0;
    width: 2px; height: calc(var(--scroll-progress, 0) * 100%);
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.7));
    opacity: 0; transition: opacity 0.4s ease; filter: blur(1px);
}
.rail-marker {
    position: absolute; left: 0; top: calc(var(--scroll-progress, 0) * 100%);
    width: 7px; height: 7px; margin-left: -3px; margin-top: -3px; border-radius: 50%;
    background: var(--color-gold); box-shadow: 0 0 10px 2px rgba(212, 175, 55, 0.55);
}
.rail-marker::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 3px; height: calc(1px + var(--scroll-velocity, 0) * 22px);
    background: rgba(212, 175, 55, 0.5); transform: translate(-50%, -50%); border-radius: 2px;
}

/* 3. The Text Labels Layout */
.rail-labels {
    position: absolute; top: 0; right: 18px; height: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
    pointer-events: auto; text-align: right;
}

/* 4. LIGHT MODE TEXT (Default: Black Text + White Glow) */
.rail-label {
    position: relative; display: block; white-space: nowrap;
    font-family: var(--font-primary); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
    
    color: #000000; 
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.6); 
    
    opacity: 0.45; pointer-events: auto; cursor: pointer; 
    transition: opacity 0.45s ease, transform 0.45s ease, color 0.3s ease;
}
.rail-label:hover { opacity: 0.8; transform: translateX(-2px); }
.rail-label span { display: block; margin-top: 2px; font-size: 10px; letter-spacing: 0.1em; color: #444444; }

/* 5. DARK MODE TEXT (White Text + Black Glow) */
[data-theme="dark"] .rail-label { 
    color: #ffffff; 
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.6); 
}
[data-theme="dark"] .rail-label span { color: #cccccc; }

/* 6. ACTIVE STATE (Always Pops Gold) */
#exhibitionRail[data-active-section="paintings"]    .label-paintings,
#exhibitionRail[data-active-section="ruach"]        .label-ruach,
#exhibitionRail[data-active-section="gospel"]       .label-gospel,
#exhibitionRail[data-active-section="sketches"]     .label-sketches,
#exhibitionRail[data-active-section="3d-art"]       .label-3d-art,
#exhibitionRail[data-active-section="graffiti"]     .label-graffiti,
#exhibitionRail[data-active-section="old-artworks"] .label-old-artworks {
    opacity: 1; transform: translateX(-6px);
    color: var(--color-gold) !important; 
}

/* 7. MOBILE OPTIMIZATIONS */
@media (max-width: 900px) {
    #exhibitionRail { right: 12px; height: 45vh; min-height: 250px; }
    .rail-labels { right: 16px; }
    
    .rail-label { 
        padding: 10px 0; font-size: 12px !important; font-weight: 700; opacity: 0.6; 
        /* Heavy mobile white shadow for light mode */
        text-shadow: 0 2px 4px rgba(255,255,255,0.9), 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.7);
    }
    
    /* Heavy mobile black shadow for dark mode */
    [data-theme="dark"] .rail-label {
        text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.7);
    }
    
    .rail-label span { display: none; font-size: 11px !important; font-weight: 600; margin-top: 4px; }
    
    /* Pop active text heavily on mobile */
    #exhibitionRail[data-active-section="paintings"]    .label-paintings,
    #exhibitionRail[data-active-section="ruach"]        .label-ruach,
    #exhibitionRail[data-active-section="gospel"]       .label-gospel,
    #exhibitionRail[data-active-section="sketches"]     .label-sketches,
    #exhibitionRail[data-active-section="3d-art"]       .label-3d-art,
    #exhibitionRail[data-active-section="graffiti"]     .label-graffiti,
    #exhibitionRail[data-active-section="old-artworks"] .label-old-artworks {
        opacity: 1; font-size: 14px !important; 
        color: var(--color-gold) !important; transform: translateX(-10px); 
    }

    #exhibitionRail[data-active-section="paintings"] .label-paintings span,
    #exhibitionRail[data-active-section="ruach"] .label-ruach span,
    #exhibitionRail[data-active-section="gospel"] .label-gospel span,
    #exhibitionRail[data-active-section="sketches"] .label-sketches span,
    #exhibitionRail[data-active-section="3d-art"] .label-3d-art span,
    #exhibitionRail[data-active-section="graffiti"] .label-graffiti span,
    #exhibitionRail[data-active-section="old-artworks"] .label-old-artworks span {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rail-label { transition: opacity 0.2s ease; }
    .rail-marker::after { display: none; }
}

:root { --color-gold: #d4af37; }

/* ==========================================
   CATEGORY SECTION ATMOSPHERE SYSTEM
=========================================== */
.category-section { position: relative; overflow: hidden; }
.category-section::after {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.05; mix-blend-mode: overlay; pointer-events: none; z-index: 0;
}
[data-theme="dark"] .category-section::after { opacity: 0.08; }

.category-section:not(:first-of-type)::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: min(500px, 60%); height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent); z-index: 1;
}
.category-section > * { position: relative; z-index: 2; }

#paintings, [id="3d-art"], #old-artworks { background: var(--bg-light); border-radius: 30px; margin: 2rem auto; }
#graffiti, #gospel { background: transparent; }

.category-header { position: relative; }
#paintings .category-header::before, [id="3d-art"] .category-header::before, #gospel .category-header::before, #graffiti .category-header::before, #old-artworks .category-header::before {
    content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
    width: 500px; height: 300px; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.35;
}
#paintings .category-header::before { background: radial-gradient(circle, var(--color-dominant), transparent 70%); }
#graffiti .category-header::before { background: radial-gradient(circle, #ff8c42, transparent 70%); }
[id="3d-art"] .category-header::before { background: radial-gradient(circle, #5D7FFF, transparent 70%); }
#gospel .category-header::before { background: radial-gradient(circle, var(--color-gold), transparent 70%); opacity: 0.45; }
#old-artworks .category-header::before { background: radial-gradient(circle, #999999, transparent 70%); opacity: 0.2; }
#old-artworks { filter: saturate(0.9); }

/* ==========================================
   LIVE BACKGROUND: ETHEREAL DUST PARTICLES
=========================================== */
#particle-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: -1; overflow: hidden;
}
.ambient-particle {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.8) 0%, rgba(255, 255, 255, 0) 80%);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); animation: float-up linear infinite;
}
[data-theme="dark"] .ambient-particle {
    background: radial-gradient(circle, rgba(114, 5, 205, 0.8) 0%, rgba(255, 255, 255, 0) 80%);
    box-shadow: 0 0 10px rgba(114, 5, 205, 0.4);
}
@keyframes float-up {
    0% { transform: translateY(105vh) scale(0.5); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* ==========================================
   IOS SAFARI GLITCH FIXES
=========================================== */
@supports (-webkit-touch-callout: none) {
    .hero, .work-with-me, .disciplines-section { background-attachment: scroll !important; }
    .reveal { -webkit-transform: translate3d(0, 40px, 0); transform: translate3d(0, 40px, 0); will-change: transform, opacity; }
    .reveal.active { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}

/* ==========================================
   SHOW ROOM / CINEMATIC FIXES (MOBILE, PC & IOS)
=========================================== */
#cinematic-landing {
    position: relative; width: 100% !important; max-width: 100% !important; 
    height: 100dvh !important; min-height: 600px; margin: 0 !important;
    padding: 3vh 0 calc(3vh + env(safe-area-inset-bottom)) 0 !important;
    top: 0; left: 0; background: #030208 !important; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center; z-index: 10;
}

.cinematic-spotlight {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 60vw; height: 100vh;
    background: linear-gradient(to bottom, rgba(255, 235, 180, 0.15), transparent 85%);
    clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
    pointer-events: none; z-index: 1;
}
.cinematic-rotunda {
    position: absolute; bottom: -18vh; left: 50%; transform: translateX(-50%);
    width: 150vw; height: 38vh; background: #05040a; border-radius: 50%;
    border-top: 1px solid rgba(212, 175, 55, 0.4); 
    box-shadow: inset 0 20px 60px rgba(0,0,0,0.9), 0 0 80px rgba(114, 5, 205, 0.05);
    z-index: 2; pointer-events: none;
}
.accent-light {
    position: absolute; bottom: 25vh; width: 3px; height: 120px;
    background: #7205cd; box-shadow: 0 0 40px 15px rgba(114, 5, 205, 0.5);
    z-index: 3; border-radius: 10px; pointer-events: none;
}
.accent-light.left { left: 18vw; }
.accent-light.right { right: 18vw; }

.cinematic-text { position: relative; z-index: 6; text-align: center; margin-top: 2vh; margin-bottom: 1vh; padding: 0 5%; flex-shrink: 0; }
.cinematic-text .welcome { font-family: var(--font-secondary); font-size: 0.9rem; letter-spacing: 8px; color: #ffffff !important; text-transform: uppercase; margin-bottom: 0.8rem; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.cinematic-text h1 { font-family: var(--font-secondary); font-size: clamp(2.8rem, 7vw, 6rem); color: #ffffff !important; font-weight: 700; letter-spacing: 4px; margin-bottom: 0.8rem; line-height: 1; text-shadow: 0 0 25px rgba(255, 255, 255, 0.3), 0 4px 18px rgba(0,0,0,0.9) !important; }
.cinematic-text .roles { font-family: var(--font-secondary); font-size: 0.85rem; letter-spacing: 4px; color: #cccccc !important; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,0.8); line-height: 1.6; }

.cinematic-carousel { position: relative; width: 100%; display: flex; justify-content: center; align-items: center; perspective: 1600px; -webkit-perspective: 1600px; z-index: 5; flex-grow: 1; margin: 1vh 0; }
.carousel-item { position: absolute; width: clamp(220px, 28vw, 320px); height: clamp(280px, 36vw, 400px); transition: transform 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1.3s ease, filter 1.3s ease; will-change: transform, opacity; top: 50%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }

.cinematic-frame { width: 100%; height: 100%; background: #080808; position: relative; box-shadow: 0 0 0 3px #000, 0 0 0 6px #d4af37, 0 0 0 10px #111, 0 30px 60px rgba(0,0,0,0.9); border-radius: 2px; }
.cinematic-frame::before { content: ''; position: absolute; top: 12px; left: 12px; right: 12px; bottom: 12px; border: 1px solid rgba(212, 175, 55, 0.6); pointer-events: none; z-index: 2; }
.cinematic-frame::after { content: ''; position: absolute; top: 16px; left: 16px; right: 16px; bottom: 16px; border: 1px solid rgba(212, 175, 55, 0.2); pointer-events: none; z-index: 2; }
.cinematic-frame img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }

.fade-overlay { position: absolute; inset: 0; z-index: 3; opacity: 0; transition: opacity 1.3s ease; pointer-events: none; }

.carousel-item.center { transform: translateY(-50%) translateX(0) scale(1) translateZ(100px); opacity: 1; z-index: 4; }
.carousel-item.center .fade-overlay { opacity: 0; }
.carousel-item.center .cinematic-frame { box-shadow: 0 0 0 3px #000, 0 0 0 6px #d4af37, 0 0 0 10px #111, 0 40px 100px rgba(212,175,55,0.2); }

.carousel-item.left { transform: translateY(-50%) translateX(-75%) scale(0.75) translateZ(-200px) rotateY(42deg); opacity: 0.5; z-index: 3; }
.carousel-item.left .fade-overlay { opacity: 1; background: linear-gradient(90deg, rgba(3,2,8,0.9) 0%, transparent 80%); }

.carousel-item.right { transform: translateY(-50%) translateX(75%) scale(0.75) translateZ(-200px) rotateY(-42deg); opacity: 0.5; z-index: 3; }
.carousel-item.right .fade-overlay { opacity: 1; background: linear-gradient(270deg, rgba(3,2,8,0.9) 0%, transparent 80%); }

.carousel-item.hidden { transform: translateY(-50%) translateX(0) scale(0.5) translateZ(-500px); opacity: 0; z-index: 1; visibility: hidden; }

/* Add this animation definition */
@keyframes jumpGlow {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    }
    50% {
        transform: translateY(-8px);
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.9), inset 0 0 12px rgba(212, 175, 55, 0.4);
    }
}

/* Update your existing button class to include the animation */
.enter-btn {
    position: relative; z-index: 10; display: inline-block; border: 1px solid rgba(212, 175, 55, 0.5); 
    color: #d4af37 !important; padding: 0.8rem 2.5rem; font-family: var(--font-secondary); 
    font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; transition: all 0.4s ease;
    background: rgba(3, 2, 8, 0.6); backdrop-filter: blur(5px); cursor: pointer; text-decoration: none; flex-shrink: 0; margin-bottom: 1vh;
    animation: jumpGlow 2s infinite ease-in-out; /* <-- New addition */
}

.enter-btn:hover { 
    background: rgba(212, 175, 55, 0.15); 
    border-color: #d4af37; 
    animation-play-state: paused; /* Pauses the bouncing when hovered */
    transform: translateY(-3px); 
}

@media (max-width: 768px) {
    #cinematic-landing { min-height: 520px; padding: 2vh 0 calc(2vh + env(safe-area-inset-bottom)) 0 !important; }
    .cinematic-text { margin-top: 1vh; } 
    .cinematic-text h1 { font-size: clamp(2.3rem, 9vw, 3.6rem) !important; letter-spacing: 2px; }
    .cinematic-text .welcome { font-size: 0.7rem; letter-spacing: 4px; margin-bottom: 0.4rem; }
    .cinematic-text .roles { font-size: 0.62rem; letter-spacing: 2px; }
    .carousel-item { width: 190px; height: 250px; }
    .carousel-item.left { transform: translateY(-50%) translateX(-60%) scale(0.7) translateZ(-100px) rotateY(32deg); }
    .carousel-item.right { transform: translateY(-50%) translateX(60%) scale(0.7) translateZ(-100px) rotateY(-32deg); }
    .accent-light.left { left: 5vw; }
    .accent-light.right { right: 5vw; }
    .cinematic-spotlight { width: 100vw; }
    .enter-btn { padding: 0.75rem 2rem; font-size: 0.7rem; margin-bottom: 1vh; }
}
/* ==========================================
   WORK SECTION FILTER BAR & GRIDS
=========================================== */
.category-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important; /* Force exact left alignment */
    text-align: left !important; 
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.subcategory-title {
    color: var(--color-dominant); 
    text-shadow: 0 2px 10px rgba(114, 5, 205, 0.15);
    font-family: var(--font-primary); 
    font-size: 1.8rem; 
    margin: 0 0 0.3rem 0 !important; /* Removed huge top margin */
    text-transform: uppercase; 
    letter-spacing: 2px; 
    width: 100%;
}
[data-theme="dark"] .subcategory-title { color: #ffffff; }

/* Fixes the "Blender Renders" / "Selected Works" subtitles */
.category-header .section-subtitle {
    margin: 0 !important; 
    text-align: center !important;
    font-size: 1.1rem;
    color: var(--text-muted);
}



.filter-btn { 
    flex: 0 0 auto !important; 
    white-space: nowrap !important; 
}

.filtered-item { transition: opacity 0.4s ease, transform 0.4s ease; }
.filtered-item.hidden { display: none !important; }

.category-section > div[id$="-grid"] { display: block; }
.subcategory-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 300px; gap: 1.5rem; }

/* FIXING THE CONSISTENT CURVED BORDERS FOR VIDEOS */
.subcategory-grid .work-card, .subcategory-grid .archive-card {
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    grid-column: span 2; 
    position: relative; 
    border-radius: 16px !important;
    overflow: hidden !important;
    /* Hardware acceleration for smooth clipping — no mask-image here on purpose,
       overflow:hidden + border-radius already clips cleanly and a radial mask
       was fading the corners unevenly instead of rounding them. */
    transform: translateZ(0);
}

.subcategory-grid .work-card img, .subcategory-grid .archive-card img, .subcategory-grid video {
    object-fit: cover !important; 
    height: 100% !important; 
    width: 100% !important;
    border-radius: 16px !important; 
    display: block;
}

/* Maintain Grid Spans */
.subcategory-grid .work-card:nth-child(5n+1) { grid-column: span 3; grid-row: span 2; }
.subcategory-grid .work-card:nth-child(5n+2) { grid-column: span 3; grid-row: span 1; }
.subcategory-grid .work-card:nth-child(5n+3) { grid-column: span 2; grid-row: span 2; }
.subcategory-grid .work-card:nth-child(5n+4) { grid-column: span 2; grid-row: span 1; }
.subcategory-grid .work-card:nth-child(5n+5) { grid-column: span 2; grid-row: span 1; }

.overlay-info {
    position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
    background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px; padding: 1.5rem; color: white !important; opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); display: flex;
    flex-direction: column; justify-content: flex-start; z-index: 10;
    transform: translateY(15px); box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.work-card:hover .overlay-info { opacity: 1; transform: translateY(0); }

/* Force card title/caption text to stay white in BOTH light and dark mode.
   Without this, the global "h1,h2,h3,h4,h5,h6 { color: var(--text-dark) }"
   rule wins over the inherited white from .overlay-info (it targets the h3
   directly, so inheritance doesn't apply), making the title unreadable
   (dark text on a dark overlay) in light mode. */
.overlay-info h3,
.overlay-info p,
.overlay-info span {
    color: #ffffff !important;
}

@media (max-width: 1024px) {
    .subcategory-grid { grid-template-columns: repeat(4, 1fr); }
    .subcategory-grid .work-card:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
    .subcategory-grid .work-card:nth-child(5n+2) { grid-column: span 2; grid-row: span 1; }
    .subcategory-grid .work-card:nth-child(5n+3) { grid-column: span 2; grid-row: span 2; }
    .subcategory-grid .work-card:nth-child(5n+4) { grid-column: span 2; grid-row: span 1; }
    .subcategory-grid .work-card:nth-child(5n+5) { grid-column: span 4; grid-row: span 1; }
}

@media (max-width: 600px) {
    .subcategory-grid { grid-template-columns: 1fr; grid-auto-rows: 350px; }
    .subcategory-grid .work-card, .subcategory-grid .archive-card { grid-column: span 1 !important; grid-row: span 1 !important; }

    /* MILESTONE 2: BOLDER MOBILE ARTWORK NAVIGATION */
    .filter-btn {
        font-size: 0.95rem !important;
        padding: 0.8rem 1.8rem !important;
        font-weight: 800 !important;
        letter-spacing: 1.5px;
    }
}

/* ==========================================
   ARTWORK DETAIL PAGE
=========================================== */
.artwork-detail-grid {
    display: flex; flex-wrap: wrap; min-height: 85vh; margin-top: 80px; background: var(--bg-white);
}
.artwork-image-panel {
    flex: 1 1 55%; background: var(--bg-light); display: flex; align-items: center; justify-content: center; padding: 3rem;
}
.artwork-image-panel img {
    max-height: 80vh; max-width: 100%; object-fit: contain; box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-radius: 4px;
}
.artwork-info-panel {
    flex: 1 1 45%; padding: 4rem 5%; display: flex; flex-direction: column; justify-content: center;
}
.artwork-info-panel h1 {
    font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; margin-bottom: 1rem;
    text-transform: uppercase; font-family: var(--font-primary); color: var(--text-dark);
}
.artwork-meta {
    font-family: var(--font-primary); color: var(--color-dominant); text-transform: uppercase;
    letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 1.5rem; font-weight: 600;
}
.artwork-dimensions {
    font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem;
    text-transform: uppercase; letter-spacing: 1px;
}
.artwork-note-block {
    margin-bottom: 2rem; border-left: 2px solid var(--color-dominant); padding-left: 1.5rem;
}
.artwork-note-block h3 {
    font-size: 1rem; margin-bottom: 0.5rem; text-transform: uppercase; color: var(--text-dark);
}
.artwork-note-block p {
    font-size: 1.1rem; color: var(--text-muted); line-height: 1.6;
}
.artwork-price {
    font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1.5rem;
}
.artwork-video-link {
    display: none; margin-bottom: 3rem;
}
.artwork-video-link a {
    display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem;
}
.artwork-nav-row {
    margin-top: auto; display: flex; gap: 1rem; border-top: 1px solid var(--border-light);
    padding-top: 2rem; flex-wrap: wrap;
}
.artwork-nav-row .btn-outline {
    padding: 0.6rem 1.2rem; font-size: 0.75rem;
}
.artwork-nav-row .btn-gallery {
    background: var(--bg-light); border-color: var(--border-light); color: var(--text-dark);
}

@media (max-width: 900px) {
    .artwork-detail-grid { margin-top: 70px; min-height: auto; }
    .artwork-image-panel { flex: 1 1 100%; padding: 1.5rem; }
    .artwork-image-panel img { max-height: 55vh; }
    .artwork-info-panel { flex: 1 1 100%; padding: 2.5rem 6%; }
}

@media (max-width: 480px) {
    .artwork-nav-row { gap: 0.6rem; }
    .artwork-nav-row a { flex: 1 1 auto; text-align: center; }
}

/* ==========================================
   GLOBAL OVERRIDES: LOGO, LAYOUT, & CLIPPED MEDIA
=========================================== */
/* 1. Logo — purple on light backgrounds, white in dark mode (per client request) */
.logo { 
    font-size: 1.4rem; 
    font-weight: 700; 
    color: #7006CC !important; 
    font-family: var(--font-primary); 
    letter-spacing: 1px; 
}

[data-theme="dark"] header .logo { 
    color: #ffffff !important; 
}

/* 2. Perfectly Centered Category Titles & Subtitles */
.category-header {
    text-align: center !important; 
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: none !important;
}

.subcategory-title {
    color: var(--color-dominant); 
    text-shadow: 0 2px 10px rgba(114, 5, 205, 0.15);
    font-family: var(--font-primary); 
    font-size: 2.2rem; 
    margin: 3rem auto 0.5rem auto !important; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}
[data-theme="dark"] .subcategory-title { color: #ffffff; }

.category-header .section-subtitle {
    margin: 0 auto 1.5rem auto !important; 
    font-size: 1.1rem;
    color: var(--text-muted);
}


/* 4. Hardware Acceleration for Strict Curved Borders */
.subcategory-grid .work-card, .subcategory-grid .archive-card {
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important;
    display: block !important; 
    grid-column: span 2; 
    position: relative; 
    border-radius: 16px !important;
    overflow: hidden !important;
    /* Forces the browser to clip video layers strictly */
    isolation: isolate; 
    transform: translateZ(0); 
}

.subcategory-grid .work-card img, .subcategory-grid .archive-card img, .subcategory-grid video {
    object-fit: cover !important; 
    height: 100% !important; 
    width: 100% !important;
    border-radius: 16px !important; 
    display: block;
    margin: 0;
    padding: 0;
}

/* ==========================================
   FILTER LAYOUT FIX 
   Forces hidden grid items to collapse, allowing 
   visible items to flow upwards.
=========================================== */
.subcategory-grid .work-card.hidden,
.subcategory-grid .archive-card.hidden,
.filtered-item.hidden {
    display: none !important;
}

/* ==========================================
   BODY SCROLL LOCK — held until preloader finishes
=========================================== */
body.is-lock { overflow: hidden; height: 100vh; }
body.is-open { overflow: auto; height: auto; }
body.menu-open,
body.modal-open { overflow: hidden; }
/* ==========================================
   PRELOADER — "THE GALLERY OPENS"
   IDs/classes below are read directly by script.js.
   Animations are transform/opacity only (GPU-composited,
   no layout thrash) and skipped entirely under
   prefers-reduced-motion via the JS REDUCED branch.
========================================== */
#preloader {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    background: #030208;
    contain: layout paint;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#pl-dust {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; transition: opacity 0.4s ease;
}

.pl-inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 2rem;
    padding: 2rem; text-align: center;
}

/* editorial corner metadata */
.pl-meta {
    position: absolute; z-index: 1;
    font-family: var(--font-primary);
    font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(247, 243, 234, 0.35); line-height: 1.6;
    pointer-events: none;
}
.pl-meta-tl { top: 2rem; left: 2rem; text-align: left; }
.pl-meta-tr { top: 2rem; right: 2rem; text-align: right; }
.pl-meta-bl { bottom: 2rem; left: 2rem; text-align: left; }
.pl-meta-br { bottom: 2rem; right: 2rem; text-align: right; }

@media (max-width: 700px) {
    .pl-meta { display: none; }
}

/* ==========================================
   MILESTONE 2 PRELOADER:
   ZOOM + RIPPLE + PIERCE EXIT
=========================================== */
.pl-logo-wrap {
    position: relative !important;
    width: 100px !important;
    height: 100px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    overflow: visible !important;
    z-index: 1;
    animation: zoom-pulse 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
    will-change: transform, opacity;
}

#pl-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    position: relative;
    z-index: 5;
    box-shadow: 0 0 25px rgba(114, 5, 205, 0.6);
    filter: drop-shadow(0 0 10px rgba(114, 5, 205, 0.6)) brightness(1.2);
}

/* Ripple Rings */
.pl-logo-wrap::before,
.pl-logo-wrap::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.8);
    animation: pl-ripple 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
    z-index: 1;
    pointer-events: none;
}

.pl-logo-wrap::after {
    animation-delay: 1s; /* Offsets the second ring */
}

@keyframes pl-ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes zoom-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* The Pierce Effect Class — triggered by JS */
.pl--pierce,
.pl-logo-wrap.pl--pierce {
    animation: none !important;
    transform: scale(15) !important; /* Zooms into the screen */
    opacity: 0 !important;
}

.pl-logo-wrap.pl--pierce::before,
.pl-logo-wrap.pl--pierce::after {
    display: none !important;
}

/* ==========================================
   PRELOADER TEXT + STATUS + PROGRESS
=========================================== */
.pl-wordmark {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #F7F3EA;
    text-transform: uppercase;
}

.pl-tagline {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(247, 243, 234, 0.5);
}

.pl-status {
    position: relative;
    height: 1.4em;
    width: min(340px, 80vw);
    overflow: hidden;
}

.pl-status-line {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(247, 243, 234, 0.55);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pl-status-line.live {
    opacity: 1;
    transform: translateY(0);
}

.pl-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    width: min(280px, 70vw);
}

.pl-track {
    position: relative;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.pl-fill {
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left center;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 1));
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    transition: transform 0.6s ease-out;
    will-change: transform;
}

.pl-spark {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D4AF37;
    box-shadow: 0 0 10px 2px rgba(212, 175, 55, 0.7);
    transform: translate(-50%, -50%);
    will-change: left;
    transition: opacity 0.3s ease;
}

/* Hide unused progress bar elements for a cleaner, punchier preloader */
.pl-pct-wrap,
.pl-spark,
.pl-track {
    display: none !important;
}

.pl-skip {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-primary);
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(247, 243, 234, 0.4);
    opacity: 0.45;
    transition: opacity 0.4s ease;
}

/* ==========================================
   PRELOADER EXIT STATES
=========================================== */
#preloader.pl--complete #pl-dust,
#preloader.pl--complete .pl-skip {
    opacity: 0;
}

.pl-progress.pl-progress--final .pl-fill {
    background: linear-gradient(90deg, #D4AF37, #F7F3EA);
    box-shadow: 0 0 14px 2px rgba(212, 175, 55, 0.6);
}

/* Legacy compatibility selector */
pl-progress.pl-progress--final .pl-fill {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

#preloader.pl--logo-exit {
    pointer-events: none;
    animation: pl-bg-fade 1.2s ease forwards 0.15s;
}

#preloader.pl--logo-exit .pl-status,
#preloader.pl--logo-exit .pl-progress,
#preloader.pl--logo-exit .pl-meta,
#preloader.pl--logo-exit .pl-tagline {
    transition: opacity 0.3s ease;
    opacity: 0;
}

#preloader.pl--logo-exit .pl-logo-wrap {
    animation: pl-logo-expand 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes pl-logo-expand {
    to {
        transform: scale(2.6);
        opacity: 0;
    }
}

@keyframes pl-bg-fade {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

#preloader.pl--gone {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
    #preloader.pl--logo-exit {
        animation: none;
        opacity: 0;
        visibility: hidden;
    }

    .pl-logo-wrap,
    .pl-fill,
    .pl-spark {
        transition: none !important;
        animation: none !important;
    }

    .pl-logo-wrap::before,
    .pl-logo-wrap::after {
        display: none !important;
    }

    .pl--pierce,
    .pl-logo-wrap.pl--pierce {
        transform: none !important;
        opacity: 0 !important;
    }
}

#main-content[inert] {
    pointer-events: none;
}

/* ==========================================
   GLOBAL ATMOSPHERIC SYSTEM
   Reusable across Homepage + Works.
   Layer order (back to front):
   1. base bg (per-page)
   2. ambient light (existing .hero glow / .cinematic-spotlight)
   3. film grain
   4. dust particles (#particle-container, existing)
   5. vignette
   Grain + vignette are pure CSS (near-zero cost). Both pause via
   .atmosphere-paused (tab hidden) and are removed under reduced motion.
========================================== */
.atmosphere-grain {
    position: fixed;
    inset: -10%;
    width: 120%;
    height: 120%;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain-drift 9s steps(8) infinite;
    will-change: transform;
}

[data-theme="dark"] .atmosphere-grain {
    opacity: 0.07;
}

@keyframes grain-drift {
    0%   { transform: translate3d(0,0,0); }
    20%  { transform: translate3d(-2%,2%,0); }
    40%  { transform: translate3d(-3%,-1%,0); }
    60%  { transform: translate3d(2%,3%,0); }
    80%  { transform: translate3d(3%,-2%,0); }
    100% { transform: translate3d(0,0,0); }
}

.atmosphere-paused .atmosphere-grain {
    animation-play-state: paused;
}

.atmosphere-vignette {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(3, 2, 8, 0.55) 100%);
}

[data-theme="dark"] .atmosphere-vignette {
    background: radial-gradient(ellipse at center, transparent 50%, rgba(3, 2, 8, 0.7) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .atmosphere-grain {
        animation: none;
        opacity: 0.03;
    }
}

@media (max-width: 700px) {
    .atmosphere-grain {
        opacity: 0.035;
    }
}

/* Reduced motion: keep the atmosphere present but still — no drift,
   no rotation, no floating particles. */
@media (prefers-reduced-motion: reduce) {
    .logo-icon img {
        animation: none !important;
    }

    .hero::before {
        animation: none !important;
    }

    .ambient-particle {
        animation: none !important;
        opacity: 0.25 !important;
    }

    #particle-container {
        display: none;
    }
}

/* Pause CSS-driven ambience when the tab is hidden — JS toggles this class */
.atmosphere-paused .ambient-particle,
.atmosphere-paused .logo-icon img,
.atmosphere-paused .hero::before {
    animation-play-state: paused;
}
/* ==========================================
   CATEGORY SLIDER / SLIDER DOTS
=========================================== */
.category-slider {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-end;
}

.slider-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(150, 150, 150, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
}

.slider-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    white-space: nowrap;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    background: var(--bg-light);
    padding: 5px 12px;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.slider-dot:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.slider-dot:hover {
    background: #d4af37;
    transform: scale(1.3);
}

.slider-dot.active {
    background: #7205cd;
    border-color: #d4af37;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 15px rgba(114, 5, 205, 0.6);
}

/* ==========================================
   MOBILE QUICK-TAP DOCK — CATEGORY SLIDER
=========================================== */
@media (max-width: 900px) {
    .category-slider {
        display: flex !important;
        flex-direction: row;
        position: fixed;
        bottom: 20px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 12px 20px;
        border-radius: 40px;
        gap: 20px;
        width: 90%;
        max-width: 400px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid var(--border-light);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 1000;
    }

    [data-theme="dark"] .category-slider {
        background: rgba(15, 15, 15, 0.85);
    }

    .category-slider::-webkit-scrollbar {
        display: none;
    }

    .category-slider {
        scrollbar-width: none;
    }

    .slider-dot::after {
        top: -35px;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
    }

    .slider-dot:hover::after,
    .slider-dot.active::after {
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================
   INNER CIRCLE TOAST NOTIFICATION
=========================================== */
.toast-container {
    position: fixed;
    bottom: -120px; /* Hidden initially */
    right: 30px;
    background: rgba(10, 10, 10, 0.85); /* Deep dark background */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(114, 5, 205, 0.3); /* Purple border glow */
    border-radius: 16px;
    padding: 1.2rem 2.5rem 1.2rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(114, 5, 205, 0.15);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 400px;
}

.toast-container.show {
    bottom: 30px;
    opacity: 1;
    visibility: visible;
}

.toast-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(114, 5, 205, 0.6);
}

.toast-icon img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

.toast-content h4 {
    color: #ffffff !important;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.toast-content p {
    color: #cccccc !important;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
    font-family: var(--font-secondary);
}

.toast-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.toast-close:hover {
    color: var(--color-dominant);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .toast-container {
        right: 5%;
        left: 5%;
        max-width: 90%;
        padding: 1rem 2rem 1rem 1rem;
    }
}

/* ==========================================
   INNER CIRCLE BLUR LOGIC
=========================================== */
/* Blur the prices by default */
body:not(.inner-circle-unlocked) .price {
    filter: blur(8px);
    user-select: none;
    cursor: pointer;
    transition: filter 0.5s ease;
}

body:not(.inner-circle-unlocked) .price:hover {
    filter: blur(6px);
}

/* Hide "Add to Cart" buttons if locked */
body:not(.inner-circle-unlocked) .add-to-cart {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Tooltip telling them to click */
body:not(.inner-circle-unlocked) .price::after {
    content: " (Click to Unlock)";
    font-size: 0.4em;
    vertical-align: middle;
    color: var(--text-muted);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* When unlocked, remove the blur and pseudo-element */
body.inner-circle-unlocked .price {
    filter: blur(0);
    cursor: auto;
}

body.inner-circle-unlocked .price::after {
    display: none;
}

body.inner-circle-unlocked .add-to-cart {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* ==========================================
   INNER CIRCLE LOGIN MODAL — FOCUS STATE
=========================================== */
#ic-name:focus,
#ic-code:focus {
    border-color: var(--color-dominant);
    box-shadow: 0 0 0 3px rgba(114, 5, 205, 0.15);
}

/* ==========================================
   INLINE CREDIT
=========================================== */
.inline-credit {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
    transition: var(--transition);
}

.inline-credit:hover {
    color: var(--color-dominant);
    text-decoration-color: var(--color-dominant);
}

/* ==========================================
   MILESTONE 2 FINAL SAFETY OVERRIDES
   These enforce the client-requested changes
   even if older rules appear earlier.
=========================================== */

/* Dark hero */
.hero {
    background-color: #000000;
    width: 100%;
    max-width: 100vw;
}

/* Purple scripture */
.hero .scripture {
    color: #7205cd !important;
}

/* Gold scripture reference */
.hero .scripture-reference {
    color: #D4AF37 !important;
    font-weight: bold;
}

/* Legible Work With Me / Inner Circle outline button */
.work-with-me .btn-outline {
    background: var(--color-dominant);
    border: 2px solid var(--color-dominant);
    color: #ffffff !important;
    text-shadow: none;
}

.work-with-me .btn-outline:hover {
    background: #ffffff;
    color: var(--color-dominant) !important;
    border-color: #ffffff;
}

/* Bolder mobile artwork navigation */
@media (max-width: 600px) {
    .filter-btn {
        font-size: 0.95rem !important;
        padding: 0.8rem 1.8rem !important;
        font-weight: 800 !important;
        letter-spacing: 1.5px;
    }
}

/* Pierce preloader safety */
.pl-logo-wrap.pl--pierce {
    animation: none !important;
    transform: scale(15) !important;
    opacity: 0 !important;
}
/* ==========================================
   FINAL CSS COMPLETENESS PATCH
   Paste this at the very bottom of style.css
=========================================== */

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

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
}

:root {
    --color-gold: #d4af37;
}

/* ==========================================
   PRELOADER SAFETY
=========================================== */
#pl-logo {
    position: relative;
    z-index: 5;
    mix-blend-mode: screen;
}

.pl-pct-wrap,
.pl-spark,
.pl-track {
    display: none !important;
}

.pl-logo-wrap.pl--pierce {
    animation: none !important;
    transform: scale(15) !important;
    opacity: 0 !important;
}

.pl-logo-wrap.pl--pierce::before,
.pl-logo-wrap.pl--pierce::after {
    display: none !important;
}

/* ==========================================
   CATEGORY SLIDER SAFETY
   Legacy hide + mobile quick-tap dock override
=========================================== */
@media (max-width: 900px) {
    .category-slider {
        display: none;
    }
}

@media (max-width: 900px) {
    .category-slider {
        display: flex !important;
        flex-direction: row;
        position: fixed;
        bottom: 20px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 12px 20px;
        border-radius: 40px;
        gap: 20px;
        width: 90%;
        max-width: 400px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid var(--border-light);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    [data-theme="dark"] .category-slider {
        background: rgba(15, 15, 15, 0.85);
    }

    .category-slider::-webkit-scrollbar {
        display: none;
    }

    .category-slider {
        scrollbar-width: none;
    }

    .slider-dot::after {
        top: -35px;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
    }

    .slider-dot:hover::after,
    .slider-dot.active::after {
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================
   MILESTONE 2 FINAL SAFETY OVERRIDES
=========================================== */

/* Dark hero */
.hero {
    background-color: #000000;
    width: 100%;
    max-width: 100vw;
}

/* Purple scripture */
.hero .scripture {
    color: #7205cd !important;
}

/* Gold scripture reference */
.hero .scripture-reference {
    color: #D4AF37 !important;
    font-weight: bold;
}

/* Legible Work With Me / Inner Circle outline button */
.work-with-me .btn-outline {
    background: var(--color-dominant);
    border: 2px solid var(--color-dominant);
    color: #ffffff !important;
    text-shadow: none;
}

.work-with-me .btn-outline:hover {
    background: #ffffff;
    color: var(--color-dominant) !important;
    border-color: #ffffff;
}

/* Bolder mobile artwork navigation */
@media (max-width: 600px) {
    .filter-btn {
        font-size: 0.95rem !important;
        padding: 0.8rem 1.8rem !important;
        font-weight: 800 !important;
        letter-spacing: 1.5px;
    }
}

/* ==========================================
   GRID / OVERLAY / LAYOUT SAFETY
=========================================== */
.overlay-info h3,
.overlay-info p,
.overlay-info span {
    color: #ffffff !important;
}

.subcategory-grid .work-card.hidden,
.subcategory-grid .archive-card.hidden,
.filtered-item.hidden {
    display: none !important;
}

/* ==========================================
   BODY SCROLL LOCK SAFETY
=========================================== */
body.is-lock {
    overflow: hidden;
    height: 100vh;
}

body.is-open {
    overflow: auto;
    height: auto;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

/* ==========================================
   INNER CIRCLE SAFETY
=========================================== */
/*body:not(.inner-circle-unlocked) .price {
    filter: blur(8px);
    user-select: none;
    cursor: pointer;
    transition: filter 0.5s ease;
}

body:not(.inner-circle-unlocked) .price:hover {
    filter: blur(6px);
}

body:not(.inner-circle-unlocked) .add-to-cart {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

body:not(.inner-circle-unlocked) .price::after {
    content: " (Click to Unlock)";
    font-size: 0.4em;
    vertical-align: middle;
    color: var(--text-muted);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}*/

body.inner-circle-unlocked .price {
    filter: blur(0);
    cursor: auto;
}

body.inner-circle-unlocked .price::after {
    display: none;
}

body.inner-circle-unlocked .add-to-cart {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

#ic-name:focus,
#ic-code:focus {
    border-color: var(--color-dominant);
    box-shadow: 0 0 0 3px rgba(114, 5, 205, 0.15);
}

/* ==========================================
   INLINE CREDIT SAFETY
=========================================== */
.inline-credit {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
    transition: var(--transition);
}

.inline-credit:hover {
    color: var(--color-dominant);
    text-decoration-color: var(--color-dominant);
}

/* ==========================================
   FINAL STABLE FEATURE RESTORATION PATCH
   Paste at the very bottom of style.css
=========================================== */

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

:root {
    --color-gold: #d4af37;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================
   MILESTONE HERO + STABLE SCRIPTURE SIZING
=========================================== */
.hero {
    background-color: #000000;
    width: 100%;
    max-width: 100vw;
}

.hero .scripture {
    color: #7205cd !important;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    margin: 0 auto 1rem;
}

.hero .scripture-reference {
    color: #D4AF37 !important;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* ==========================================
   MILESTONE BUTTON + MOBILE FILTER SAFETY
=========================================== */
.work-with-me .btn-outline {
    background: var(--color-dominant);
    border: 2px solid var(--color-dominant);
    color: #ffffff !important;
    text-shadow: none;
}

.work-with-me .btn-outline:hover {
    background: #ffffff;
    color: var(--color-dominant) !important;
    border-color: #ffffff;
}

@media (max-width: 600px) {
    .filter-btn {
        font-size: 0.95rem !important;
        padding: 0.8rem 1.8rem !important;
        font-weight: 800 !important;
        letter-spacing: 1.5px;
    }
}

/* ==========================================
   FILTER BAR STABLE FINISHING
=========================================== */
/* ==========================================
   SUBCATEGORY TITLE STABLE UNDERLINE
=========================================== */
.subcategory-title {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

[data-theme="dark"] .subcategory-title {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   OVERLAY TEXT + HOVER SAFETY
=========================================== */
.overlay-info h3,
.overlay-info p,
.overlay-info span {
    color: #ffffff !important;
}

.work-card:hover .overlay-info {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   HIDDEN FILTER COLLAPSE SAFETY
=========================================== */
.subcategory-grid .work-card.hidden,
.subcategory-grid .archive-card.hidden,
.filtered-item.hidden {
    display: none !important;
}

/* ==========================================
   COMING SOON BADGE INSIDE CINEMATIC FRAME
=========================================== */
.cinematic-frame .coming-soon-badge {
    font-size: 0.65rem;
    padding: 0.5rem 1rem;
}

/* ==========================================
   STABLE MOBILE ALIGNMENT FIXES
=========================================== */
@media (max-width: 600px) {
    .social-pills {
        justify-content: center;
    }

    .logo-tagline {
        white-space: nowrap;
        font-size: 0.55rem;
        letter-spacing: 0;
    }

    .mobile-menu-credit {
        padding-top: 1rem;
    }

    .credit-badge {
        font-size: 0.62rem;
        padding: 0.35rem 0.7rem;
        gap: 0.35rem;
    }

    .credit-portfolio-link {
        font-size: 0.62rem;
        margin-left: 0.4rem;
    }

    .footer-dedication p {
        font-size: 0.68rem;
    }
}

/* ==========================================
   MOBILE MENU DEVELOPER CREDIT RESTORATION
=========================================== */
.mobile-menu-credit {
    margin-top: auto;
    padding: 1.5rem 0 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    border-top: 1px solid var(--border-light);
}

.mobile-menu-credit .credit-badge {
    width: auto;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    font-size: 0.6rem;
    padding: 0;
    box-shadow: none !important;
}

.mobile-menu-credit .credit-badge .credit-bracket {
    color: var(--text-muted) !important;
    opacity: 0.6;
}

.mobile-menu-credit .credit-badge:hover {
    transform: none;
    color: var(--color-dominant) !important;
}

.mobile-menu-credit .credit-portfolio-link {
    margin-left: 0;
    font-size: 0.55rem;
    color: var(--text-muted) !important;
    text-decoration: none;
}

/* ==========================================
   CATEGORY SLIDER RESTORATION
=========================================== */
.category-slider {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-end;
}

.slider-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(150, 150, 150, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
}

.slider-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    white-space: nowrap;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    background: var(--bg-light);
    padding: 5px 12px;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.slider-dot:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.slider-dot:hover {
    background: #d4af37;
    transform: scale(1.3);
}

.slider-dot.active {
    background: #7205cd;
    border-color: #d4af37;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 15px rgba(114, 5, 205, 0.6);
}

/* Legacy desktop/tablet hide */
@media (max-width: 900px) {
    .category-slider {
        display: none;
    }
}

/* Mobile quick-tap dock override */
@media (max-width: 900px) {
    .category-slider {
        display: flex !important;
        flex-direction: row;
        position: fixed;
        bottom: 20px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 12px 20px;
        border-radius: 40px;
        gap: 20px;
        width: 90%;
        max-width: 400px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid var(--border-light);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    [data-theme="dark"] .category-slider {
        background: rgba(15, 15, 15, 0.85);
    }

    .category-slider::-webkit-scrollbar {
        display: none;
    }

    .category-slider {
        scrollbar-width: none;
    }

    .slider-dot::after {
        top: -35px;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
    }

    .slider-dot:hover::after,
    .slider-dot.active::after {
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================
   BODY SCROLL LOCK SAFETY
=========================================== */
body.is-lock {
    overflow: hidden;
    height: 100vh;
}

body.is-open {
    overflow: auto;
    height: auto;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

/* ==========================================
   MILESTONE PRELOADER SAFETY
   Forces the new Zoom/Ripple/Pierce system
=========================================== */
.pl-logo-wrap {
    position: relative !important;
    width: 100px !important;
    height: 100px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    overflow: visible !important;
    animation: zoom-pulse 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
    will-change: transform, opacity;
}

#pl-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    position: relative;
    z-index: 5;
    box-shadow: 0 0 25px rgba(114, 5, 205, 0.6);
    filter: drop-shadow(0 0 10px rgba(114, 5, 205, 0.6)) brightness(1.2);
    mix-blend-mode: screen;
}

.pl-logo-wrap::before,
.pl-logo-wrap::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.8);
    background: none;
    -webkit-mask: none;
    mask: none;
    animation: pl-ripple 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
    z-index: 1;
    pointer-events: none;
}

.pl-logo-wrap::after {
    animation-delay: 1s;
}

@keyframes pl-ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes zoom-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.pl-logo-wrap.pl--pierce {
    animation: none !important;
    transform: scale(15) !important;
    opacity: 0 !important;
}

.pl-logo-wrap.pl--pierce::before,
.pl-logo-wrap.pl--pierce::after {
    display: none !important;
}

.pl-pct-wrap,
.pl-spark,
.pl-track {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .pl-logo-wrap,
    .pl-logo-wrap::before,
    .pl-logo-wrap::after {
        animation: none !important;
    }

    .pl-logo-wrap.pl--pierce {
        transform: none !important;
        opacity: 0 !important;
    }
}

/* ==========================================
   INNER CIRCLE SAFETY
=========================================== */
body:not(.inner-circle-unlocked) .price {
    filter: blur(8px);
    user-select: none;
    cursor: pointer;
    transition: filter 0.5s ease;
}

body:not(.inner-circle-unlocked) .price:hover {
    filter: blur(6px);
}

body:not(.inner-circle-unlocked) .add-to-cart {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

body:not(.inner-circle-unlocked) .price::after {
    content: " (Click to Unlock)";
    font-size: 0.4em;
    vertical-align: middle;
    color: var(--text-muted);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.inner-circle-unlocked .price {
    filter: blur(0);
    cursor: auto;
}

body.inner-circle-unlocked .price::after {
    display: none;
}

body.inner-circle-unlocked .add-to-cart {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

#ic-name:focus,
#ic-code:focus {
    border-color: var(--color-dominant);
    box-shadow: 0 0 0 3px rgba(114, 5, 205, 0.15);
}

/* ==========================================
   INLINE CREDIT SAFETY
=========================================== */
.inline-credit {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
    transition: var(--transition);
}

.inline-credit:hover {
    color: var(--color-dominant);
    text-decoration-color: var(--color-dominant);
}
/* ==========================================
   CHUNK 6: PRELOADER ANIMATION VARIANTS & SPEED
=========================================== */
/* Variant 1: Ripple Only */
#preloader[data-anim-style="ripple"] .pl-logo-wrap {
    animation: ripple-effect 2s infinite !important;
}

/* Variant 2: Zoom + Ripple */
#preloader[data-anim-style="zoom-ripple"] .pl-logo-wrap {
    animation: zoom-ripple-effect 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite !important;
}

@keyframes ripple-effect {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6); }
    100% { box-shadow: 0 0 0 60px rgba(168, 85, 247, 0); }
}

@keyframes zoom-ripple-effect {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); box-shadow: 0 0 0 60px rgba(168, 85, 247, 0); }
}

/* Speed up the final exit animations to match the shortened JS timings */
#preloader.pl--logo-exit .pl-logo-wrap {
    animation: pl-logo-expand 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards !important;
}
#preloader.pl--logo-exit {
    animation: pl-bg-fade 0.6s ease forwards 0.1s !important;
}

/* ==========================================
   RESTORE & STYLE THE LOADING BAR
=========================================== */
/* Unhide the numbers and the spark dot */
.pl-pct-wrap, .pl-spark {
    display: flex !important; 
}

/* Style the percentage numbers */
.pl-pct-wrap {
    font-family: var(--font-primary); 
    font-size: 0.85rem; 
    font-weight: 700;
    color: rgba(247, 243, 234, 0.9); 
    letter-spacing: 2px;
}

/* Thicken the track slightly so it's visible */
.pl-track {
    height: 3px !important; 
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Style the purple filling bar */
.pl-fill {
    background: linear-gradient(90deg, #7205cd, #a855f7) !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.8) !important;
}

/* ==========================================
   CHUNK 5: DYNAMIC SHOP GRID
=========================================== */
.shop-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 3rem; 
}
.shop-item-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); }
.shop-item-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
[data-theme="dark"] .shop-item-card { background: var(--bg-light); border-color: rgba(255,255,255,0.05); }
.shop-item-image { aspect-ratio: 4/5; background: var(--bg-light); position: relative; overflow: hidden; }
.shop-item-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.shop-item-card:hover .shop-item-image img { transform: scale(1.05); }
.shop-item-badge { position: absolute; top: 1rem; left: 1rem; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; font-family: var(--font-primary); z-index: 2; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.shop-item-badge.limited { background: var(--color-dominant); color: white; }
.shop-item-badge.open { background: var(--color-compliment); color: white; }
.shop-item-details { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.shop-item-details h3 { font-size: 1.4rem; margin-bottom: 0.5rem; text-transform: uppercase; color: var(--text-dark); }
.shop-item-price { font-family: var(--font-primary); font-size: 1.4rem; font-weight: bold; color: var(--color-dominant); margin-bottom: 1rem; }
.shop-item-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }
.shop-item-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: 0.8rem; margin-bottom: 2rem; background: rgba(114, 5, 205, 0.03); padding: 1.2rem; border-radius: 12px; border: 1px solid rgba(114, 5, 205, 0.08); }
[data-theme="dark"] .shop-item-meta { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.05); }
.shop-item-meta span { display: block; color: var(--text-dark); margin-top: 2px; }
.shop-item-meta strong { font-family: var(--font-primary); color: var(--color-dominant); text-transform: uppercase; letter-spacing: 1px; font-size: 0.7rem; }
.shop-item-reviews { margin-bottom: 2rem; border-top: 1px solid var(--border-light); padding-top: 1.5rem; }
.shop-item-reviews h4 { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.8rem; font-family: var(--font-primary); letter-spacing: 1px; }
.shop-item-reviews p { font-size: 0.9rem; font-style: italic; color: var(--text-dark); line-height: 1.5; opacity: 0.8; }
.shop-buy-btn { text-align: center; padding: 1.2rem; border-radius: 12px; font-weight: 700; text-transform: uppercase; font-family: var(--font-primary); font-size: 0.85rem; border: none; transition: var(--transition); margin-top: auto; letter-spacing: 1px; }
.shop-buy-btn.active { background: var(--text-dark); color: var(--bg-white); cursor: pointer; }
.shop-buy-btn.active:hover { background: var(--color-dominant); color: white; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(114, 5, 205, 0.3); }
.shop-buy-btn.disabled { background: var(--border-light); color: var(--text-muted); cursor: not-allowed; }
[data-theme="dark"] .shop-buy-btn.disabled { background: #222; color: #555; }

/* ==========================================
   MOBILE OPTIMIZATION: ARTWORK DETAIL PAGE
=========================================== */
.artwork-detail-grid {
    display: flex; 
    flex-wrap: wrap; 
    min-height: 85vh; 
    margin-top: 70px; 
    background: var(--bg-white);
}

.artwork-image-panel {
    flex: 1 1 55%; 
    background: var(--bg-light); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 3rem;
}

.artwork-image-panel img {
    max-height: 80vh; 
    max-width: 100%; 
    object-fit: contain; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); 
    border-radius: 4px;
}

.artwork-info-panel {
    flex: 1 1 45%; 
    padding: 4rem 5%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
}

/* Mobile Breakpoint Adjustments */
@media (max-width: 900px) {
    .artwork-detail-grid { 
        margin-top: 60px; 
    }
    .artwork-image-panel { 
        flex: 1 1 100%; 
        padding: 1.5rem 1rem; 
        min-height: 50vh;
    }
    .artwork-image-panel img { 
        max-height: 50vh; /* Keeps artwork prominent without forcing excessive scrolling */
    }
    .artwork-info-panel { 
        flex: 1 1 100%; 
        padding: 2rem 5%; 
    }
    .artwork-info-panel h1 {
        font-size: 2rem !important; /* Prevents giant titles from wrapping awkwardly on small screens */
    }
}
/* INNER CIRCLE GATE STYLING */
.gate-container {
    background: #000;
    color: #fff !important;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 4rem;
    box-shadow: 0 20px 50px rgba(114, 5, 205, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.gate-container h2 { color: #d4af37; font-size: 2.5rem; letter-spacing: 2px; }
.gate-container input {
    padding: 1rem; width: 100%; max-width: 300px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px; background: rgba(255,255,255,0.05);
    color: #fff; margin-right: 10px; margin-top: 1.5rem;
}
body.inner-circle-unlocked #inner-circle-gate { display: none; }

/* E-COMMERCE DETAILS STYLING */
.size-selector {
    width: 100%; padding: 0.8rem; margin-bottom: 1rem;
    background: var(--bg-light); border: 1px solid var(--border-light);
    border-radius: 8px; font-family: var(--font-primary); color: var(--text-dark);
}
.shop-item-reviews {
    margin-bottom: 1.5rem; border-top: 1px solid var(--border-light); padding-top: 1rem;
}
.shop-item-reviews h4 { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.shop-item-reviews p { font-size: 0.9rem; font-style: italic; opacity: 0.9; margin-top: 0.3rem; }

/* MULTI-ITEM CART DRAWER */
.cart-drawer {
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 450px; height: 100vh;
    background: var(--bg-white); z-index: 3000; padding: 6rem 2rem 2rem; 
    box-shadow: -15px 0 40px rgba(0,0,0,0.15); transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex; flex-direction: column; font-family: var(--font-primary);
}
[data-theme="dark"] .cart-drawer { background: #0a0a0a; border-left: 1px solid rgba(255,255,255,0.05); }
.cart-drawer.active { right: 0; }
.cart-drawer h2 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid var(--border-light); padding-bottom: 1rem; margin-bottom: 1.5rem; }
#cart-items-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.cart-total { font-size: 1.3rem; font-weight: bold; margin-bottom: 1rem; display: flex; justify-content: space-between; border-top: 1px solid var(--border-light); padding-top: 1rem; }
/* ==========================================
   UNIFIED FILTER BAR CSS
=========================================== */
.filter-bar {
    display: flex; 
    flex-wrap: nowrap !important; /* Forces horizontal scroll on mobile */
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch; 
    gap: 1rem; 
    padding: 0 5% 1.5rem 5% !important; 
    margin: 0 auto 2rem auto !important; 
    width: 100%; 
    max-width: 1200px;
    justify-content: flex-start !important; 
    border-bottom: 1px solid var(--border-light);
    scroll-behavior: smooth;
    
    /* Hides the physical scrollbar to prevent the top-glitch */
    scrollbar-width: none; 
    
    /* Creates the interactive fade effect on the left and right edges on mobile */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* Hides Webkit scrollbar completely to fix the glitch */
.filter-bar::-webkit-scrollbar {
    display: none !important; 
}

/* Adds spacer so the last item isn't hidden under the fade mask */
.filter-bar::after {
    content: '';
    padding-right: 5%;
}

.filter-btn {
    flex: 0 0 auto !important; 
    white-space: nowrap !important; 
    background: transparent; 
    border: 1px solid var(--border-light);
    padding: 0.6rem 1.5rem; 
    border-radius: 30px; 
    color: var(--text-muted);
    font-family: var(--font-primary); 
    font-weight: 600; 
    cursor: pointer;
    transition: var(--transition); 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--color-dominant); 
    color: white !important; 
    border-color: var(--color-dominant);
    box-shadow: 0 5px 15px rgba(114, 5, 205, 0.3);
}

/* Desktop Fix: Center align, remove mask, and allow wrapping to prevent scrolling */
@media (min-width: 1024px) {
    .filter-bar { 
        justify-content: center !important; 
        flex-wrap: wrap !important; /* Lets buttons drop to next line if needed */
        padding: 0 0 1.5rem 0 !important; 
        -webkit-mask-image: none;
        mask-image: none;
    }
    .filter-bar::after {
        display: none; /* No spacer needed on desktop */
    }
}
/* ==========================================
   SHOP GRID & E-COMMERCE FIXES
=========================================== */
/* Override Inner Circle Blur for Shop explicitly */
.shop-item-price {
    filter: none !important;
    cursor: auto !important;
}
.shop-item-price::after {
    display: none !important;
}

/* Shop Card Layout */
/* Unified Shop Grid Layout */
/* ==========================================
   SHOP MOCKUP CAROUSEL
=========================================== */
.shop-carousel { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg-light); 
}
.carousel-slide { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0; 
    transition: opacity 0.5s ease-in-out; 
    z-index: 1; 
}
.carousel-slide.active { 
    opacity: 1; 
    z-index: 2; 
}
.carousel-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0,0,0,0.4); 
    color: white; 
    border: none; 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    cursor: pointer; 
    z-index: 10; 
    font-size: 1.2rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease; 
    opacity: 0; 
}
.shop-item-image:hover .carousel-btn { 
    opacity: 1; 
}
.carousel-btn:hover { 
    background: var(--color-dominant); 
    transform: translateY(-50%) scale(1.1);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots { 
    position: absolute; 
    bottom: 12px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 6px; 
    z-index: 10; 
}
.carousel-dots .dot { 
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.4); 
    cursor: pointer; 
    transition: 0.3s; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.carousel-dots .dot.active { 
    background: var(--color-dominant); 
    transform: scale(1.3); 
    background: white;
}
/* Image Area */
.shop-item-image { 
    aspect-ratio: 4/5; 
    position: relative; 
    overflow: hidden; 
}
.shop-item-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s ease; 
}
.shop-item-card:hover .shop-item-image img { 
    transform: scale(1.05); 
}
.shop-item-badge { 
    position: absolute; top: 1rem; left: 1rem; 
    padding: 0.5rem 1rem; border-radius: 20px; 
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; 
    font-family: var(--font-primary); z-index: 2; color: white;
}
.shop-item-badge.limited { background: var(--color-dominant); }
.shop-item-badge.open { background: var(--color-compliment); }

/* Details Area */
.shop-item-details { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.shop-item-details h3 { font-size: 1.4rem; margin-bottom: 0.5rem; text-transform: uppercase; }
.shop-item-meta { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; 
    font-size: 0.8rem; margin-bottom: 1.5rem; 
    background: rgba(114, 5, 205, 0.05); padding: 1rem; border-radius: 8px; 
}
.shop-item-meta strong { color: var(--color-dominant); text-transform: uppercase; font-size: 0.7rem; }

/* Dropdown & Price */
.size-selector {
    width: 100%; padding: 0.8rem; margin-bottom: 1.5rem;
    background: var(--bg-white); border: 1px solid var(--border-light);
    border-radius: 8px; font-family: var(--font-primary); color: var(--text-dark);
}
.shop-item-price { 
    font-family: var(--font-primary); font-size: 1.8rem; font-weight: bold; 
    color: var(--color-dominant); margin-bottom: 1rem; 
}

/* Reviews & Description */
/* Truncate Description to 3 Lines */
.shop-item-desc { 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted); 
    font-size: 0.95rem; 
    margin-bottom: 0.5rem; /* Reduced to make room for the button */
    line-height: 1.6; 
}

/* New Read More Button */
.read-more-btn {
    background: none;
    border: none;
    color: var(--color-dominant);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-align: left;
}

.read-more-btn:hover {
    color: var(--text-dark);
}

[data-theme="dark"] .read-more-btn:hover {
    color: white;
}
.shop-item-reviews { margin-bottom: 1.5rem; border-top: 1px solid var(--border-light); padding-top: 1rem; }
.shop-item-reviews h4 { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.shop-item-reviews p { font-size: 0.9rem; font-style: italic; opacity: 0.9; margin-top: 0.3rem; }

/* Buttons */
.shop-buy-btn { 
    padding: 1.2rem; border-radius: 12px; font-weight: 700; text-transform: uppercase; 
    font-family: var(--font-primary); border: none; margin-top: auto; cursor: pointer; transition: 0.3s;
}
.shop-buy-btn.active { background: var(--text-dark); color: var(--bg-white); }
.shop-buy-btn.active:hover { background: var(--color-dominant); color: white; transform: translateY(-3px); }
.shop-buy-btn.disabled { background: var(--border-light); color: var(--text-muted); cursor: not-allowed; }
[data-theme="dark"] .shop-buy-btn.disabled { background: #333; color: #777; }


/* Card size stabilization */
.shop-item-card {
    flex: 1 1 340px !important;
    max-width: 420px !important;
    width: 100% !important;
}

/* Mobile-responsive cart & nav controls */
@media (max-width: 900px) {
    .mobile-only-nav .cart-trigger-btn {
        display: inline-flex !important;
        align-items: center;
    }
    .carousel-btn {
        opacity: 0.8 !important; /* Visible on touch devices */
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* ==========================================
   SHOP UI OPTIMIZATIONS & SMOOTHER ANIMATIONS
=========================================== */
/* Smoother, gentler card lift */
.shop-item-card {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.shop-item-card:hover {
    transform: translateY(-2px) !important; /* Reduced from -5px/-8px jump */
    box-shadow: 0 15px 35px rgba(0,0,0,0.06) !important;
}

/* Softer image zoom effect */
.shop-item-image img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.shop-item-card:hover .shop-item-image img {
    transform: scale(1.02) !important; /* Reduced from 1.05 jump */
}

/* Failsafe to permanently hide the Medium/Year metadata box */
.shop-item-meta {
    display: none !important;
}
/* ==========================================
   UNLOCK SHOP GLOBALLY (Overrides Inner Circle)
=========================================== */
body:not(.inner-circle-unlocked) .add-to-cart {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

body:not(.inner-circle-unlocked) .price {
    filter: blur(0) !important;
    user-select: auto !important;
    cursor: auto !important;
}

body:not(.inner-circle-unlocked) .price::after {
    display: none !important;
}

/* ==========================================
   CHECKOUT MODAL FIXES (MOBILE ALIGNMENT & ZOOM)
=========================================== */
.checkout-input {
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 16px !important; /* Prevents iOS auto-zoom breaking layout */
    width: 100%;
    box-sizing: border-box;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.promo-row {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.promo-row .checkout-input {
    flex: 1;
}

@media (max-width: 600px) {
    .checkout-content {
        padding: 1.5rem !important; /* Fixes edge cutoffs */
    }
    .checkout-grid {
        grid-template-columns: 1fr !important; /* Stacks inputs vertically */
    }
    .promo-row {
        flex-direction: column !important;
    }
    .promo-row button {
        width: 100%;
    }
}
/* ==========================================
   Limited Edition — BLUR & TOOLTIP
=========================================== */
.limited-price-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 1rem;
}

.limited-price-blur {
    filter: blur(7px) !important;
    user-select: none !important;
    pointer-events: none;
    transition: filter 0.3s ease;
}

.limited-price-wrapper:hover .limited-price-blur {
    filter: blur(5px) !important;
}

.limited-price-tooltip {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: rgba(15, 10, 25, 0.92);
    border: 1px solid var(--color-dominant);
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-family: var(--font-primary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.limited-price-wrapper:hover .limited-price-tooltip,
.limited-price-wrapper:active .limited-price-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}
.sr-only { 
    position: absolute; 
    width: 1px; 
    height: 1px; 
    overflow: hidden; 
    clip: rect(0,0,0,0); 
}

/* ==========================================
   TINY ENTER BADGE (TOP RIGHT)
=========================================== */
.tap-indicator {
    position: absolute;
    top: 14px;   /* Sits cleanly near the inner borders on desktop */
    right: 14px; 
    background: rgba(114, 5, 205, 0.95);
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 0.55rem; /* Super tiny font */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px; /* Very minimal padding */
    border-radius: 10px; /* Small pill shape */
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(4px);
    transition: opacity 0.4s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Desktop hover */
.carousel-item.center .cinematic-frame:hover .tap-indicator {
    opacity: 1;
    animation: tinyBreathe 2.5s infinite ease-in-out;
}

/* Mobile always visible on center and positioned above the frame */
@media (max-width: 768px) {
    .carousel-item.center .tap-indicator {
        opacity: 1;
        animation: tinyBreathe 2.5s infinite ease-in-out;
        
        /* Position adjustments - pushes it to the outer corner */
        top: -6px;   /* Negative value pushes it up over the border */
        right: -6px; /* Negative value pushes it right over the border */
        
        /* Size and shape reductions */
        font-size: 0.45rem; 
        padding: 2px 6px;   
        border-radius: 2px; /* Changes from a round pill to a square (use 0px for perfectly sharp corners) */
    }
}

/* Very subtle breath */
@keyframes tinyBreathe {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 2px 5px rgba(0,0,0,0.5); 
    }
    50% { 
        transform: scale(1.05); /* Minimal scaling */
        box-shadow: 0 4px 10px rgba(114, 5, 205, 0.8); 
    }
}

/* ==========================================
   MOBILE SHOP FILTER FIX (HIDES ON DESKTOP)
=========================================== */

/* STRICTLY HIDE ON DESKTOP */
@media (min-width: 901px) {
    .shop-mobile-filter-container {
        display: none !important;
    }
}

/* MOBILE STYLING & STICKY BEHAVIOR */
@media (max-width: 900px) {
    .shop-section .subcategory-title {
        font-size: 1.4rem !important;
        margin-top: 1rem !important;
    }
    
    .shop-mobile-filter-container {
        display: flex;
        justify-content: space-between;
        gap: 8px; /* Slight gap between the 3 buttons */
        padding: 15px 5%;
        margin: 0 -5% 2rem -5%;
        border-bottom: 1px solid var(--border-light);
        background: var(--bg-white);
        position: sticky;
        top: 60px; /* Sticks right under your mobile header */
        z-index: 100;
    }
    
    [data-theme="dark"] .shop-mobile-filter-container {
        background: #0a0a0a;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .shop-filter-btn {
        flex: 1; /* Forces all 3 buttons to be exactly the same width */
        text-align: center;
        background: transparent;
        border: 1px solid var(--border-light);
        padding: 0.6rem 0;
        border-radius: 30px;
        color: var(--text-muted);
        font-family: var(--font-primary);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        cursor: pointer;
        transition: var(--transition);
    }
    
    .shop-filter-btn.active {
        background: var(--color-dominant);
        color: #ffffff !important;
        border-color: var(--color-dominant);
        box-shadow: 0 4px 10px rgba(114, 5, 205, 0.3);
    }
}


/* ==========================================
   ARTWORK STAGE, SWIPE & NAVIGATION BUTTONS
=========================================== */
.artwork-stage {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y; /* Allows vertical scrolling while tracking horizontal swipes */
    user-select: none;
    -webkit-user-select: none;
}

#mainImage {
    transition: opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

/* Slide Transition States */
#mainImage.slide-out-left {
    opacity: 0;
    transform: translateX(-40px) scale(0.97);
}

#mainImage.slide-out-right {
    opacity: 0;
    transform: translateX(40px) scale(0.97);
}

#mainImage.slide-in-left {
    animation: slideInLeft 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

#mainImage.slide-in-right {
    animation: slideInRight 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(40px) scale(0.97); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-40px) scale(0.97); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Navigation Arrow Controls (PC & Mobile) */
.artwork-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(12, 10, 18, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 25;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.artwork-nav-arrow span {
    line-height: 1;
    transition: transform 0.2s ease;
}

.artwork-nav-arrow:hover {
    background: var(--color-dominant);
    border-color: var(--color-gold);
    box-shadow: 0 0 25px rgba(114, 5, 205, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.artwork-nav-arrow.prev { left: 1.5rem; }
.artwork-nav-arrow.next { right: 1.5rem; }

.artwork-nav-arrow.prev:hover span { transform: translateX(-2px); }
.artwork-nav-arrow.next:hover span { transform: translateX(2px); }

/* Mobile Touch Optimizations */
@media (max-width: 768px) {
    .artwork-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
        background: rgba(10, 10, 15, 0.85);
    }
    .artwork-nav-arrow.prev { left: 0.5rem; }
    .artwork-nav-arrow.next { right: 0.5rem; }
}
/* ==========================================
   ARTWORK STAGE, SWIPE & NAVIGATION BUTTONS
=========================================== */
.artwork-stage {
    position: relative; width: 100%; display: flex;
    align-items: center; justify-content: center;
    touch-action: pan-y; user-select: none; -webkit-user-select: none;
}

#mainImage {
    transition: opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

#mainImage.slide-out-left { opacity: 0; transform: translateX(-40px) scale(0.97); }
#mainImage.slide-out-right { opacity: 0; transform: translateX(40px) scale(0.97); }
#mainImage.slide-in-left { animation: slideInLeft 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
#mainImage.slide-in-right { animation: slideInRight 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(40px) scale(0.97); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-40px) scale(0.97); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.artwork-nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(12, 10, 18, 0.65); backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.4); color: #ffffff !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; cursor: pointer; z-index: 25;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); text-decoration: none;
}

.artwork-nav-arrow span { line-height: 1; transition: transform 0.2s ease; }
.artwork-nav-arrow:hover { background: var(--color-dominant); border-color: var(--color-gold); box-shadow: 0 0 25px rgba(114, 5, 205, 0.7); transform: translateY(-50%) scale(1.1); }
.artwork-nav-arrow.prev { left: 1.5rem; }
.artwork-nav-arrow.next { right: 1.5rem; }
.artwork-nav-arrow.prev:hover span { transform: translateX(-2px); }
.artwork-nav-arrow.next:hover span { transform: translateX(2px); }

@media (max-width: 768px) {
    .artwork-nav-arrow { width: 40px; height: 40px; font-size: 1.05rem; background: rgba(10, 10, 15, 0.85); }
    .artwork-nav-arrow.prev { left: 0.5rem; }
    .artwork-nav-arrow.next { right: 0.5rem; }
}