/* ============================================
   mujun.studio — Retro Neon Studio
   ============================================ */

/* Custom Properties */
:root {
    --void-dark: #0A0A14;
    --neon-a: #FF2D6B;
    --neon-b: #00E5CC;
    --warm-cream: #F2E8D4;
    --muted-amber: #CC8844;
    --dark-panel: #14141E;
    --mid-gray: #6B6B7A;

    --font-headline: 'Bebas Neue', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    --font-accent: 'Space Mono', monospace;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--void-dark);
    color: var(--warm-cream);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ============================================
   Section Poster Base
   ============================================ */
.section-poster {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ============================================
   Halftone Dot Overlays
   ============================================ */
.halftone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.06;
}

.halftone-small {
    background: repeating-radial-gradient(
        circle at center,
        var(--warm-cream) 0px,
        var(--warm-cream) 1px,
        transparent 1px,
        transparent 4px
    );
    background-size: 4px 4px;
}

.halftone-medium {
    background: repeating-radial-gradient(
        circle at center,
        var(--warm-cream) 0px,
        var(--warm-cream) 1.5px,
        transparent 1.5px,
        transparent 6px
    );
    background-size: 6px 6px;
}

.halftone-large {
    background: repeating-radial-gradient(
        circle at center,
        var(--warm-cream) 0px,
        var(--warm-cream) 2px,
        transparent 2px,
        transparent 8px
    );
    background-size: 8px 8px;
}

/* ============================================
   Registration Marks
   ============================================ */
.reg-mark {
    position: absolute;
    font-family: var(--font-accent);
    font-size: 14px;
    color: var(--mid-gray);
    opacity: 0.4;
    z-index: 5;
    line-height: 1;
    transition: transform 0.3s ease;
    cursor: default;
    user-select: none;
}

.reg-mark:hover {
    transform: rotate(90deg);
}

.reg-tl { top: 12px; left: 12px; }
.reg-tr { top: 12px; right: 12px; }
.reg-bl { bottom: 12px; left: 12px; }
.reg-br { bottom: 12px; right: 12px; }

/* ============================================
   Aurora Light Dividers
   ============================================ */
.aurora-divider {
    width: 100%;
    height: 4px;
    position: relative;
    z-index: 10;
    animation: neonFlicker 3s ease-in-out infinite;
    transition: box-shadow 0.3s ease;
}

.aurora-divider:hover {
    opacity: 1 !important;
    box-shadow: 0 0 20px currentColor;
}

.aurora-pink {
    background: linear-gradient(90deg, transparent, var(--neon-a), var(--neon-a), transparent);
    color: var(--neon-a);
}

.aurora-cyan {
    background: linear-gradient(90deg, transparent, var(--neon-b), var(--neon-b), transparent);
    color: var(--neon-b);
}

@keyframes neonFlicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1.0; }
}

/* ============================================
   MARQUEE SECTION
   ============================================ */
.marquee {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--void-dark);
    position: relative;
}

.neon-line {
    position: absolute;
    top: 50%;
    width: 3px;
    height: 0;
    transform: translateY(-50%);
    z-index: 2;
    transition: height 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.neon-line-left {
    left: 18%;
    background: var(--neon-a);
    box-shadow: 0 0 12px var(--neon-a), 0 0 30px rgba(255, 45, 107, 0.3);
}

.neon-line-right {
    right: 18%;
    background: var(--neon-b);
    box-shadow: 0 0 12px var(--neon-b), 0 0 30px rgba(0, 229, 204, 0.3);
}

.neon-line.active {
    height: 100vh;
}

.marquee-content {
    text-align: center;
    z-index: 3;
    position: relative;
}

.studio-name {
    font-family: var(--font-headline);
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--warm-cream);
    line-height: 1;
    min-height: 1.2em;
    white-space: nowrap;
}

.studio-name .cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: var(--neon-a);
    margin-left: 2px;
    vertical-align: baseline;
    animation: cursorBlink 0.6s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.studio-tagline {
    font-family: var(--font-accent);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mid-gray);
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.studio-tagline.visible {
    opacity: 1;
}

.scroll-prompt {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-prompt.visible {
    opacity: 1;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Marquee halftone fades in */
.marquee .halftone-overlay {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.marquee .halftone-overlay.visible {
    opacity: 0.06;
}

/* ============================================
   WORK PANELS
   ============================================ */
.work-panel {
    min-height: 85vh;
    background: var(--void-dark);
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-panel-alt {
    background: var(--dark-panel);
}

/* Reveal bar */
.reveal-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transform: scaleY(0);
    transform-origin: bottom;
    z-index: 10;
    transition: transform 0.2s ease-out;
}

[data-reveal="pink"] .reveal-bar {
    background: var(--neon-a);
}

[data-reveal="cyan"] .reveal-bar {
    background: var(--neon-b);
}

.work-panel.revealed .reveal-bar {
    transform: scaleY(1);
    animation: revealSweep 0.2s ease-out forwards;
}

@keyframes revealSweep {
    0% { transform: scaleY(0); bottom: 0; }
    100% { transform: scaleY(1); bottom: 0; }
}

/* Panel content - initially hidden */
.panel-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
    z-index: 3;
    position: relative;
}

.work-panel.revealed .panel-content {
    opacity: 1;
    transform: translateY(0);
}

/* Headline band */
.panel-headline-band {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 48px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(242, 232, 212, 0.1);
}

.panel-label {
    font-family: var(--font-accent);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mid-gray);
}

.panel-title {
    font-family: var(--font-headline);
    font-size: clamp(40px, 6vw, 96px);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--warm-cream);
    line-height: 1;
    transition: text-shadow 0.3s ease;
}

.panel-title:hover {
    text-shadow: 0 0 12px rgba(255, 45, 107, 0.5);
}

/* Body band */
.panel-body-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.panel-illustration {
    width: 100%;
}

.sketch-illustration {
    width: 100%;
    height: auto;
}

.panel-description {
    color: var(--warm-cream);
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.7;
}

.panel-description p {
    max-width: 480px;
}

/* Meta band */
.panel-meta-band {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(242, 232, 212, 0.1);
}

.meta-item {
    font-family: var(--font-accent);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mid-gray);
}

/* ============================================
   PROCESS STRIP
   ============================================ */
.process-strip {
    height: 50vh;
    min-height: 400px;
    background: var(--dark-panel);
    display: flex;
    flex-direction: column;
    padding: 32px 0;
}

.process-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 0 40px;
    margin-bottom: 24px;
    z-index: 3;
    position: relative;
}

.process-title {
    font-family: var(--font-headline);
    font-size: clamp(24px, 3vw, 48px);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--warm-cream);
    line-height: 1;
}

.process-scroll-container {
    display: flex;
    gap: 24px;
    padding: 0 40px;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    align-items: stretch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 3;
    position: relative;
}

.process-scroll-container::-webkit-scrollbar {
    display: none;
}

.process-card {
    flex: 0 0 280px;
    background: var(--void-dark);
    border: 1px solid rgba(242, 232, 212, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-snap-align: start;
    transition: border-color 0.3s ease;
}

.process-card:hover {
    border-color: rgba(242, 232, 212, 0.2);
}

.process-card .sketch-illustration {
    flex: 1;
    min-height: 0;
}

.process-card-label {
    font-family: var(--font-accent);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mid-gray);
}

/* ============================================
   CLOSING SECTION
   ============================================ */
.closing {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--void-dark);
    text-align: center;
}

.closing-content {
    z-index: 3;
    position: relative;
    max-width: 800px;
    padding: 0 40px;
}

.closing-quote {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 24px;
    border-left: 4px solid var(--neon-a);
}

.quote-line {
    font-family: var(--font-headline);
    font-size: clamp(24px, 3.5vw, 56px);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--warm-cream);
    line-height: 1.2;
    text-align: left;
}

.closing-attribution {
    font-family: var(--font-accent);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mid-gray);
    margin-top: 40px;
    text-align: left;
    padding-left: 24px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .panel-body-band {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .neon-line-left {
        left: 8%;
    }

    .neon-line-right {
        right: 8%;
    }

    .panel-content {
        padding: 0 24px;
    }

    .process-header {
        padding: 0 24px;
    }

    .process-scroll-container {
        padding: 0 24px;
    }

    .closing-content {
        padding: 0 24px;
    }

    .panel-headline-band {
        flex-direction: column;
        gap: 8px;
    }

    .panel-meta-band {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .studio-name {
        font-size: clamp(36px, 10vw, 60px);
    }

    .process-card {
        flex: 0 0 240px;
    }
}