:root {
    --bg: #030303;
    --bg-dark: #000;
    --bg-card: #111;
    --bg-assembly: #050505;
    --text: #fff;
    --text-muted: #ccc;
    --red-smile: #b30000;
    --silver: #888;
    --border: #222;
    --border-light: #333;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* --- PRELOADER --- */
#loader {
    position: fixed; inset: 0; background: var(--bg-dark); z-index: 11000;
    display: flex; justify-content: center; align-items: center;
    transition: 1.5s var(--transition);
}
.loader-logo { width: 150px; opacity: 0; transform: scale(0.9); transition: 1s; }

/* --- STUDIO POST-PRODUCTION OVERLAYS --- */
#grain {
    position: fixed; inset: 0; width: 100%; height: 100%;
    background: url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_filmgrain.png');
    opacity: 0.06; pointer-events: none; z-index: 9999; animation: grain 0.8s steps(10) infinite;
}
@keyframes grain { 0%, 100% { transform:translate(0, 0) } 20% { transform:translate(-2%, 2%) } }


/* --- SCREEN READER ONLY (Accessibility) --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- NAVIGATION --- */
body > header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
}
body > header nav {
    width: 100%; padding: 30px 60px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo-img { height: 60px; border: 1px solid var(--red-smile); padding: 10px; }

.nav-links a {
    text-decoration: none; color: var(--text); font-size: 10px; letter-spacing: 4px;
    text-transform: uppercase; margin-left: 40px; font-weight: 700;
}

/* --- SECTIONS --- */
.section { min-height: 100vh; padding: 150px 10%; display: flex; flex-direction: column; justify-content: center; }
.section-tag { font-size: 10px; letter-spacing: 5px; text-transform: uppercase; color: var(--red-smile); margin-bottom: 20px; }

/* --- HORROR: THE RED SMILE --- */
.horror-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.horror-text h2 { font-family: 'Playfair Display'; font-size: 7vw; line-height: 0.9; margin-bottom: 30px; }
.horror-text p { font-size: 1.1rem; line-height: 1.8; color: var(--silver); max-width: 500px; margin-bottom: 40px; }

.clown-hero-frame {
    height: 85vh; background: var(--bg-card); overflow: hidden; position: relative;
    border-left: 1px solid var(--red-smile);
}
.clown-hero-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; filter: contrast(1.3) grayscale(0.2); transition: 2s var(--transition); }
.clown-hero-frame:hover img { transform: scale(1.05); opacity: 0.9; filter: contrast(1.5) grayscale(0); }

/* --- BEYOND THE MASK (EDITORIAL) --- */
.cosplay-editorial { background: var(--bg-dark); border-top: 1px solid var(--bg-card); padding-bottom: 150px; }
.editorial-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 80px; }
.editorial-header h2 { font-family: 'Playfair Display'; font-size: 6vw; font-style: italic; }

.editorial-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 100px; }
.editorial-body { font-size: 1.2rem; line-height: 2; color: var(--text-muted); }
.editorial-body h3 { font-family: 'Playfair Display'; font-size: 2.5rem; color: var(--text); margin-bottom: 30px; }
.editorial-body p { margin-bottom: 30px; }

.tech-list { list-style: none; margin-top: 50px; }
.tech-list li {
    padding: 20px 0; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; font-size: 0.75rem;
    letter-spacing: 3px; text-transform: uppercase;
}
.tech-list li span { color: var(--red-smile); font-weight: 900; }

/* Logo 27 font */
.logo-27 { font-family: 'Luminari', 'Apple Chancery', 'Brush Script MT', cursive; font-style: normal; }

/* Title font - easy to swap */
.title-font { font-family: 'Luminari', 'Apple Chancery', 'Brush Script MT', cursive; }

.featured-side-frame { height: 500px; background: var(--bg-card); margin-top: 50px; overflow: hidden; position: relative; }
.featured-side-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }

/* --- ASSEMBLY (VFX & PIPELINE) --- */
.assembly { padding: 100px 10%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; background: var(--bg-assembly); border-top: 1px solid var(--bg-card); }
.assembly-box h3 { font-family: 'Playfair Display'; font-size: 1.8rem; margin-bottom: 20px; color: var(--red-smile); }
.assembly-box p { font-size: 0.9rem; line-height: 1.7; color: var(--silver); }

/* --- FOOTER --- */
footer { padding: 80px 10%; text-align: center; border-top: 1px solid var(--bg-card); display: flex; flex-direction: column; align-items: center; }
.footer-logo-img { width: 180px; margin-bottom: 40px; border: 1px solid var(--red-smile); padding: 20px; }

/* --- HERO --- */
.hero-section { align-items: center; text-align: center; }
.hero-title { font-size: 12vw; font-style: italic; }
.hero-tagline { letter-spacing: 15px; text-transform: uppercase; font-size: 0.7rem; color: var(--silver); margin-top: 20px; }

/* --- DARKROOM --- */
.darkroom-section { background: var(--bg-dark); }
.cta-link { color: var(--red-smile); text-decoration: none; border-bottom: 1px solid var(--red-smile); padding-bottom: 5px; font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; }

/* --- EDITORIAL --- */
.neural-tag { color: var(--silver); letter-spacing: 5px; }

/* --- CONTACT --- */
.contact-section { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 100px 10%; }
.contact-title { font-size: 5vw; margin-bottom: 20px; }
.contact-btn { color: var(--text); text-decoration: none; font-size: 1.2rem; border: 1px solid var(--text); padding: 20px 60px; margin-top: 40px; background: transparent; cursor: pointer; letter-spacing: 3px; text-transform: uppercase; transition: 0.3s var(--transition); }
.contact-btn:hover { background: var(--text); color: var(--bg); }

/* --- CONTACT FORM --- */
.contact-form { width: 100%; max-width: 600px; display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.form-group { width: 100%; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: 0.3s var(--transition);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--silver); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--red-smile); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form .input-error { border-color: var(--red-smile); }
.error-message { color: var(--red-smile); font-size: 0.8rem; text-align: left; margin-top: 8px; display: block; }
.form-message { padding: 15px 20px; margin-top: 20px; font-size: 0.9rem; letter-spacing: 1px; }
.form-message--success { border: 1px solid #4caf50; color: #4caf50; }
.form-message--error { border: 1px solid var(--red-smile); color: var(--red-smile); }
.contact-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- FOOTER TEXT --- */
.footer-text { color: var(--silver); font-size: 10px; letter-spacing: 5px; margin-top: 10px; }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(50px); transition: 1.5s var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0); }
.magnetic { transition: transform 0.3s var(--transition); display: inline-block; }

/* --- BURGER MENU --- */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.burger-line {
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: 0.3s var(--transition);
}
.burger-btn.active .burger-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.burger-btn.active .burger-line:nth-child(2) { opacity: 0; }
.burger-btn.active .burger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s var(--transition);
}
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 700;
    transition: 0.3s;
}
.mobile-menu-link:hover {
    color: var(--red-smile);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    /* Navigation */
    nav { padding: 15px 20px; }
    .nav-logo-img { height: 40px; padding: 6px; }
    .burger-btn { display: flex; }

    /* Sections */
    .section { padding: 100px 5%; min-height: auto; }

    /* Hero */
    .hero-section { min-height: 100vh; }
    .hero-title { font-size: 14vw; }
    .hero-tagline { letter-spacing: 5px; font-size: 0.6rem; }

    /* Horror / Darkroom */
    .horror-container { grid-template-columns: 1fr; gap: 40px; }
    .horror-text h2 { font-size: 15vw; }
    .clown-hero-frame { height: 60vh; border-left: none; border-top: 1px solid var(--red-smile); }

    /* Editorial */
    .editorial-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .editorial-header h2 { font-size: 10vw; }
    .editorial-content { grid-template-columns: 1fr; gap: 50px; }
    .editorial-body h3 { font-size: 1.8rem; }
    .editorial-body { font-size: 1rem; }
    .cosplay-editorial { padding-bottom: 80px; }

    /* Tech List */
    .tech-list { margin-top: 30px; }
    .tech-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px 0;
        font-size: 0.7rem;
    }
    .tech-list li span { font-size: 0.65rem; }

    /* Assembly */
    .assembly { grid-template-columns: 1fr; gap: 40px; padding: 60px 5%; }

    /* Contact */
    .contact-section { min-height: auto; padding: 80px 5%; }
    .contact-title { font-size: 10vw; }
    .contact-btn { padding: 15px 40px; font-size: 1rem; }
    .contact-form { max-width: 100%; }
    .contact-form input,
    .contact-form textarea { padding: 15px; font-size: 0.9rem; }

    /* Footer */
    footer { padding: 60px 5%; display: flex; flex-direction: column; align-items: center; }
    .footer-logo-img { width: 120px; padding: 15px; }
    .footer-text { letter-spacing: 2px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 15vw; }
    .horror-text h2 { font-size: 14vw; }
    .editorial-header h2 { font-size: 10vw; }
    .contact-title { font-size: 10vw; }
    .contact-btn { padding: 12px 30px; font-size: 0.9rem; }
}
