/* ============================================
   lunatic.dev — Graffiti Culture Design System
   Colors: #1a1a2e #2d2d44 #39ff14 #00f5d4 #e8e6e3 #ff2e63 #ffa62b #6b6b8d
   Fonts: Permanent Marker, Space Grotesk, Silkscreen
   ============================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #1a1a2e;
    color: #e8e6e3;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- SVG Filter (hidden) --- */
.marble-filter-svg {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- Marble Texture Overlay --- */
.marble-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    filter: url(#marbleNoise);
    mix-blend-mode: overlay;
    opacity: 0.08;
    background: radial-gradient(ellipse at 30% 70%, #2d2d44 0%, #1a1a2e 80%);
}

/* --- Aurora Light Curtains --- */
.aurora-container {
    position: fixed;
    top: 0;
    left: -10vw;
    width: 120vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.aurora-strip {
    position: absolute;
    width: 120vw;
    height: 40vh;
    left: 0;
}

.aurora-strip-1 {
    top: 5%;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.12) 0%, rgba(0, 245, 212, 0.08) 50%, transparent 100%);
    opacity: 0.12;
    animation: auroraShift1 25s ease-in-out infinite alternate;
}

.aurora-strip-2 {
    top: 30%;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.1) 0%, rgba(255, 46, 99, 0.06) 60%, transparent 100%);
    opacity: 0.08;
    animation: auroraShift2 33s ease-in-out infinite alternate;
}

.aurora-strip-3 {
    top: 55%;
    background: linear-gradient(135deg, rgba(255, 46, 99, 0.08) 0%, rgba(255, 166, 43, 0.06) 40%, rgba(57, 255, 20, 0.04) 100%);
    opacity: 0.06;
    animation: auroraShift3 41s ease-in-out infinite alternate;
}

@keyframes auroraShift1 {
    0% { transform: translateX(-15vw) rotate(-2deg); }
    100% { transform: translateX(15vw) rotate(2deg); }
}

@keyframes auroraShift2 {
    0% { transform: translateX(10vw) rotate(1.5deg); }
    100% { transform: translateX(-10vw) rotate(-1.5deg); }
}

@keyframes auroraShift3 {
    0% { transform: translateX(-8vw) rotate(2deg); }
    100% { transform: translateX(12vw) rotate(-2deg); }
}

/* --- Main Content Column --- */
.wall-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* --- Wall Sections --- */
.wall-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    position: relative;
}

.wall-inner {
    width: min(680px, 88vw);
    transform: translateX(var(--wall-offset, 0));
    transition: transform 0.1s ease-out;
}

.wall-inner-narrow {
    width: min(680px, 60vw);
}

/* --- Blur-Focus Transition System --- */
.blur-focus {
    filter: blur(12px);
    opacity: 0.3;
    transition: filter 800ms cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 800ms cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.blur-focus.visible {
    filter: blur(0);
    opacity: 1;
    transform: translate(0, 0) rotate(var(--rotate, 0deg));
}

/* Headlines: blur from left */
h1.blur-focus, h2.blur-focus {
    transform: translateX(-30px) rotate(var(--rotate, 0deg));
}

/* Body text: blur from bottom */
p.blur-focus {
    transform: translateY(20px);
}

p.blur-focus.visible {
    transform: translateY(0) rotate(var(--rotate, 0deg));
}

/* Sticker field: blur with scale */
.sticker-field.blur-focus {
    transform: scale(0.9);
}

.sticker-field.blur-focus.visible {
    transform: scale(1);
}

/* Logotype: extra blur */
.logotype-container.blur-focus {
    filter: blur(20px);
    opacity: 0.3;
    transition: filter 1500ms cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 1500ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.logotype-container.blur-focus.visible {
    filter: blur(0);
    opacity: 1;
}

/* --- Typography --- */

/* Display / Headers: Permanent Marker */
h1, h2 {
    font-family: 'Permanent Marker', cursive;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
}

h1 {
    font-size: clamp(3rem, 10vw, 7rem);
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
}

/* Accent / Code / Labels: Silkscreen */
.code-accent, .sticker-label {
    font-family: 'Silkscreen', monospace;
    font-weight: 400;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --- Wall One: The Tag --- */
.wall-one {
    min-height: 100vh;
    background: radial-gradient(ellipse at 30% 70%, #2d2d44 0%, #1a1a2e 80%);
}

.logotype-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.wildstyle-logo {
    width: 100%;
    height: auto;
    display: block;
}

.wildstyle-main {
    position: relative;
    z-index: 2;
}

.wildstyle-glow {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: blur(4px);
}

.wildstyle-text {
    font-family: 'Permanent Marker', cursive;
    font-size: 140px;
    fill: none;
    stroke: #39ff14;
    stroke-width: 2;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLetters 8s ease-in-out infinite;
}

.wildstyle-text-bg {
    font-family: 'Permanent Marker', cursive;
    font-size: 140px;
    fill: none;
    stroke: rgba(255, 46, 99, 0.3);
    stroke-width: 4;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLetters 8s ease-in-out infinite;
}

@keyframes drawLetters {
    0% { stroke-dashoffset: 2000; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -2000; }
}

.tag-title {
    color: #39ff14;
    text-shadow:
        3px 3px 0 #1a1a2e,
        4px 4px 0 rgba(57, 255, 20, 0.6),
        6px 6px 0 rgba(57, 255, 20, 0.4),
        8px 8px 0 rgba(57, 255, 20, 0.2),
        10px 10px 0 rgba(57, 255, 20, 0.1),
        12px 12px 0 rgba(57, 255, 20, 0.05),
        0 0 7px rgba(57, 255, 20, 0.8),
        0 0 15px rgba(57, 255, 20, 0.5),
        0 0 30px rgba(57, 255, 20, 0.3),
        0 0 60px rgba(57, 255, 20, 0.15);
    transform: rotate(var(--rotate, 0deg));
    margin-bottom: 2rem;
}

.greeting {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: #6b6b8d;
    font-style: italic;
    max-width: 500px;
}

/* --- Graffiti Drip System --- */
.drip {
    position: absolute;
    bottom: 0;
    left: var(--drip-left, 50%);
    width: 3px;
    height: var(--drip-height, 40px);
    border-radius: 0 0 50% 50%;
    background: currentColor;
    transform-origin: top center;
    animation: dripDrip 3s ease-in-out infinite alternate;
    animation-delay: var(--drip-delay, 0s);
}

@keyframes dripDrip {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(8px);
        opacity: 0.7;
    }
}

/* --- Wall Two: The Throw-Up --- */
.wall-two {
    background: radial-gradient(ellipse at 70% 30%, #2d2d44 0%, #1a1a2e 80%);
}

.throwup-title {
    color: #ff2e63;
    text-shadow:
        3px 3px 0 #1a1a2e,
        4px 4px 0 rgba(255, 46, 99, 0.5),
        6px 6px 0 rgba(255, 46, 99, 0.3),
        8px 8px 0 rgba(255, 46, 99, 0.15),
        0 0 7px rgba(255, 46, 99, 0.8),
        0 0 15px rgba(255, 46, 99, 0.5),
        0 0 30px rgba(255, 46, 99, 0.3);
    margin-bottom: 2.5rem;
    transform: rotate(var(--rotate, 0deg));
}

.manifesto-text {
    margin-bottom: 2rem;
    transform: rotate(var(--rotate, 0deg));
    padding: 1rem 0;
    border-left: 3px solid rgba(255, 46, 99, 0.3);
    padding-left: 1.5rem;
}

.highlight-green {
    color: #39ff14;
    font-weight: 700;
    text-shadow: 0 0 7px rgba(57, 255, 20, 0.6);
}

.highlight-magenta {
    color: #ff2e63;
    font-weight: 700;
    text-shadow: 0 0 7px rgba(255, 46, 99, 0.6);
}

.highlight-cyan {
    color: #00f5d4;
    font-weight: 700;
    text-shadow: 0 0 7px rgba(0, 245, 212, 0.6);
}

.highlight-amber {
    color: #ffa62b;
    font-weight: 700;
    text-shadow: 0 0 7px rgba(255, 166, 43, 0.6);
}

/* --- Overspray Divider --- */
.overspray-divider {
    width: 100%;
    height: 60px;
    margin: 3rem 0;
    background-image:
        radial-gradient(circle at 5% 30%, rgba(57, 255, 20, 0.5) 1.5px, transparent 1.5px),
        radial-gradient(circle at 12% 70%, rgba(57, 255, 20, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 20% 20%, rgba(57, 255, 20, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 28% 55%, rgba(57, 255, 20, 0.6) 1.5px, transparent 1.5px),
        radial-gradient(circle at 35% 40%, rgba(57, 255, 20, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 42% 80%, rgba(57, 255, 20, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 50% 15%, rgba(57, 255, 20, 0.4) 1.5px, transparent 1.5px),
        radial-gradient(circle at 58% 60%, rgba(57, 255, 20, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 65% 35%, rgba(57, 255, 20, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 72% 75%, rgba(57, 255, 20, 0.4) 1.5px, transparent 1.5px),
        radial-gradient(circle at 80% 25%, rgba(57, 255, 20, 0.6) 2px, transparent 2px),
        radial-gradient(circle at 88% 50%, rgba(57, 255, 20, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 95% 65%, rgba(57, 255, 20, 0.5) 1.5px, transparent 1.5px);
    background-size: 200px 60px;
}

.overspray-magenta {
    background-image:
        radial-gradient(circle at 8% 25%, rgba(255, 46, 99, 0.5) 1.5px, transparent 1.5px),
        radial-gradient(circle at 15% 65%, rgba(255, 46, 99, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 22% 40%, rgba(255, 46, 99, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 30% 75%, rgba(255, 46, 99, 0.6) 1.5px, transparent 1.5px),
        radial-gradient(circle at 38% 20%, rgba(255, 46, 99, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 45% 55%, rgba(255, 46, 99, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 52% 80%, rgba(255, 46, 99, 0.4) 1.5px, transparent 1.5px),
        radial-gradient(circle at 60% 35%, rgba(255, 46, 99, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 68% 60%, rgba(255, 46, 99, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 75% 15%, rgba(255, 46, 99, 0.4) 1.5px, transparent 1.5px),
        radial-gradient(circle at 82% 70%, rgba(255, 46, 99, 0.6) 2px, transparent 2px),
        radial-gradient(circle at 90% 45%, rgba(255, 46, 99, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 97% 30%, rgba(255, 46, 99, 0.5) 1.5px, transparent 1.5px);
    background-size: 200px 60px;
}

.overspray-cyan {
    background-image:
        radial-gradient(circle at 3% 45%, rgba(0, 245, 212, 0.5) 1.5px, transparent 1.5px),
        radial-gradient(circle at 10% 20%, rgba(0, 245, 212, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 18% 70%, rgba(0, 245, 212, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 25% 35%, rgba(0, 245, 212, 0.6) 1.5px, transparent 1.5px),
        radial-gradient(circle at 33% 60%, rgba(0, 245, 212, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 40% 15%, rgba(0, 245, 212, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 48% 80%, rgba(0, 245, 212, 0.4) 1.5px, transparent 1.5px),
        radial-gradient(circle at 55% 50%, rgba(0, 245, 212, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 63% 25%, rgba(0, 245, 212, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 70% 75%, rgba(0, 245, 212, 0.4) 1.5px, transparent 1.5px),
        radial-gradient(circle at 78% 40%, rgba(0, 245, 212, 0.6) 2px, transparent 2px),
        radial-gradient(circle at 85% 65%, rgba(0, 245, 212, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 93% 50%, rgba(0, 245, 212, 0.5) 1.5px, transparent 1.5px);
    background-size: 200px 60px;
}

/* --- Wall Three: The Piece --- */
.wall-three {
    background: radial-gradient(ellipse at 50% 50%, #2d2d44 0%, #1a1a2e 80%);
}

.piece-title {
    color: #00f5d4;
    text-shadow:
        3px 3px 0 #1a1a2e,
        4px 4px 0 rgba(0, 245, 212, 0.5),
        6px 6px 0 rgba(0, 245, 212, 0.3),
        8px 8px 0 rgba(0, 245, 212, 0.15),
        0 0 7px rgba(0, 245, 212, 0.8),
        0 0 15px rgba(0, 245, 212, 0.5),
        0 0 30px rgba(0, 245, 212, 0.3);
    margin-bottom: 2.5rem;
    transform: rotate(var(--rotate, 0deg));
}

.piece-artwork {
    position: relative;
    padding: 3rem 2rem;
    overflow: hidden;
    border-radius: 4px;
}

.piece-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #39ff14 0%, #00f5d4 40%, #ff2e63 70%, #ffa62b 100%);
    opacity: 0.12;
    z-index: 0;
}

.piece-content {
    position: relative;
    z-index: 1;
    mix-blend-mode: difference;
}

.piece-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    line-height: 2;
    margin-bottom: 2rem;
    color: #e8e6e3;
}

.piece-text .code-accent {
    color: #39ff14;
    text-shadow: 0 0 7px rgba(57, 255, 20, 0.6);
}

/* --- Wall Four: The Slaps --- */
.wall-four {
    background: radial-gradient(ellipse at 20% 60%, #2d2d44 0%, #1a1a2e 80%);
}

.slaps-title {
    color: #ffa62b;
    text-shadow:
        3px 3px 0 #1a1a2e,
        4px 4px 0 rgba(255, 166, 43, 0.5),
        6px 6px 0 rgba(255, 166, 43, 0.3),
        8px 8px 0 rgba(255, 166, 43, 0.15),
        0 0 7px rgba(255, 166, 43, 0.8),
        0 0 15px rgba(255, 166, 43, 0.5),
        0 0 30px rgba(255, 166, 43, 0.3);
    margin-bottom: 2.5rem;
    transform: rotate(var(--rotate, 0deg));
}

.sticker-field {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 1rem 0;
}

.sticker {
    position: relative;
    display: inline-block;
    background: #39ff14;
    color: #1a1a2e;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transform: rotate(var(--sticker-rotate, 0deg));
    margin-left: var(--sticker-offset, 0);
    cursor: default;
    transition: transform 300ms ease, filter 300ms ease, box-shadow 300ms ease;
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.4);
}

.sticker:hover {
    transform: rotate(var(--sticker-rotate, 0deg)) scale(1.05);
    box-shadow: 4px 6px 16px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.sticker-magenta {
    background: #ff2e63;
    color: #1a1a2e;
}

.sticker-cyan {
    background: #00f5d4;
    color: #1a1a2e;
}

.sticker-amber {
    background: #ffa62b;
    color: #1a1a2e;
}

.sticker-peel {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    opacity: 0.7;
}

.sticker .sticker-peel {
    background: rgba(57, 255, 20, 0.7);
    filter: brightness(1.3);
}

.sticker-magenta .sticker-peel {
    background: rgba(255, 46, 99, 0.7);
    filter: brightness(1.3);
}

.sticker-cyan .sticker-peel {
    background: rgba(0, 245, 212, 0.7);
    filter: brightness(1.3);
}

.sticker-amber .sticker-peel {
    background: rgba(255, 166, 43, 0.7);
    filter: brightness(1.3);
}

.sticker-label {
    font-family: 'Silkscreen', monospace;
    font-size: clamp(0.65rem, 1.3vw, 0.85rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
    white-space: nowrap;
}

/* --- Wall Five: The Fade --- */
.wall-five {
    background: radial-gradient(ellipse at 50% 50%, #2d2d44 0%, #1a1a2e 80%);
    position: relative;
}

.fade-title {
    color: #6b6b8d;
    text-shadow:
        0 0 7px rgba(107, 107, 141, 0.4),
        0 0 15px rgba(107, 107, 141, 0.2);
    margin-bottom: 2.5rem;
    transform: rotate(var(--rotate, 0deg));
}

.fade-text {
    font-family: 'Space Grotesk', sans-serif;
    color: #6b6b8d;
    max-width: 500px;
    margin-bottom: 2rem;
    font-style: italic;
}

.fade-text-dim {
    opacity: 0.4;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
}

.final-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: 60vh;
    background: radial-gradient(
        ellipse at 50% 100%,
        rgba(57, 255, 20, 0.15) 0%,
        rgba(0, 245, 212, 0.1) 25%,
        rgba(255, 46, 99, 0.05) 50%,
        transparent 80%
    );
    pointer-events: none;
    z-index: 0;
}

/* --- Glow Haze behind content blocks --- */
.wall-one::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .wall-inner {
        width: 92vw;
        transform: translateX(0) !important;
    }

    .wall-inner-narrow {
        width: 92vw;
    }

    .sticker-field {
        gap: 0.8rem;
    }

    .sticker {
        margin-left: 0 !important;
    }

    .piece-artwork {
        padding: 2rem 1rem;
    }

    .wildstyle-text,
    .wildstyle-text-bg {
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .wildstyle-text,
    .wildstyle-text-bg {
        font-size: 55px;
    }
}
