/* sim-ai.org - Graffiti Wall Experience */

:root {
    --electric-magenta: #E91E8C;
    --concrete-grey: #4A4A4A;
    --chalk-white: #F0EDE8;
    --soot-black: #1A1A1A;
    --neon-cyan: #00F5D4;
    --faded-buff: #8A8275;
    --tunnel-black: #0D0D0D;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--concrete-grey);
    color: var(--chalk-white);
    font-family: 'Caveat', cursive;
    overflow-x: hidden;
    position: relative;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: url(#noise);
    opacity: 0.08;
    pointer-events: none;
    z-index: 1000;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    padding: 80px 40px;
}

.section-inner {
    max-width: 1100px;
    width: 100%;
    position: relative;
}

/* Rotation classes */
.rotate-neg4 { transform: rotate(-4deg); }
.rotate-pos5 { transform: rotate(5deg); }
.rotate-neg3 { transform: rotate(-3deg); }
.rotate-pos6 { transform: rotate(6deg); }

/* Section 1: The Tag */
.section-tag {
    background: var(--concrete-grey);
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 120px;
}

.hero-domain {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(3rem, 15vw, 12rem);
    color: var(--electric-magenta);
    line-height: 1;
    position: relative;
    text-shadow:
        0 0 10px rgba(233, 30, 140, 0.6),
        0 0 30px rgba(233, 30, 140, 0.3);
    margin-left: -3vw;
}

.hero-tagline {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.8rem, 1.3vw, 1.2rem);
    letter-spacing: 0.08em;
    color: var(--neon-cyan);
    margin-top: 1.5rem;
    text-shadow:
        0 0 10px rgba(0, 245, 212, 0.6),
        0 0 30px rgba(0, 245, 212, 0.3);
}

.drips {
    width: 100%;
    max-width: 600px;
    height: 120px;
    display: block;
    margin-top: 10px;
}

.drip {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

/* Section 2: The Throw-up */
.section-throwup {
    background: var(--electric-magenta);
    margin: -2rem 0;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 97% 90%, 94% 87%, 90% 91%, 86% 88%, 82% 92%, 78% 87%, 74% 90%, 70% 88%, 66% 91%, 62% 87%, 58% 90%, 54% 88%, 50% 92%, 46% 87%, 42% 91%, 38% 88%, 34% 90%, 30% 87%, 26% 91%, 22% 88%, 18% 90%, 14% 87%, 10% 91%, 6% 88%, 3% 90%, 0 87%);
    padding-bottom: 120px;
}

.throwup-content {
    max-width: 700px;
}

.section-headline {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--chalk-white);
    margin-bottom: 1.5rem;
}

.throwup-content p {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.8;
    color: var(--chalk-white);
    margin-bottom: 1.2rem;
}

/* Section 3: The Piece */
.section-piece {
    background: var(--concrete-grey);
    margin: -2rem 0;
}

.piece-headline {
    color: var(--neon-cyan);
    text-shadow:
        0 0 10px rgba(0, 245, 212, 0.6),
        0 0 30px rgba(0, 245, 212, 0.3);
    margin-bottom: 2rem;
}

.neural-graffiti {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto;
}

.nn-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 3s ease;
}

.nn-node {
    transform-origin: center;
    transform: scale(0);
    transition: transform 0.5s ease;
}

.section-piece.visible .nn-path {
    stroke-dashoffset: 0;
}

.section-piece.visible .nn-node {
    transform: scale(1);
}

.section-piece.visible .nn-node.n1 { transition-delay: 0.5s; }
.section-piece.visible .nn-node.n2 { transition-delay: 0.8s; }
.section-piece.visible .nn-node.n3 { transition-delay: 0.8s; }
.section-piece.visible .nn-node.n4 { transition-delay: 1.4s; }
.section-piece.visible .nn-node.n5 { transition-delay: 1.4s; }
.section-piece.visible .nn-node.n6 { transition-delay: 2.0s; }
.section-piece.visible .nn-node.n7 { transition-delay: 2.0s; }

.section-piece.visible .nn-path.p1 { transition-delay: 0s; }
.section-piece.visible .nn-path.p2 { transition-delay: 0.2s; }
.section-piece.visible .nn-path.p3 { transition-delay: 0.4s; }
.section-piece.visible .nn-path.p4 { transition-delay: 0.6s; }
.section-piece.visible .nn-path.p5 { transition-delay: 0.8s; }
.section-piece.visible .nn-path.p6 { transition-delay: 1.0s; }
.section-piece.visible .nn-path.p7 { transition-delay: 1.2s; }
.section-piece.visible .nn-path.p8 { transition-delay: 1.4s; }
.section-piece.visible .nn-path.p9 { transition-delay: 1.6s; }
.section-piece.visible .nn-path.p10 { transition-delay: 1.8s; }

/* Section 4: The Stencil */
.section-stencil {
    background: var(--soot-black);
    margin: -2rem 0;
}

.stencil-headline {
    color: var(--electric-magenta);
    text-shadow:
        0 0 10px rgba(233, 30, 140, 0.6),
        0 0 30px rgba(233, 30, 140, 0.3);
    text-align: center;
}

.stencil-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 700px;
    margin: 2rem auto 0;
}

.stencil-icon {
    perspective: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: default;
    transition: transform 0.4s ease;
}

.stencil-icon svg {
    width: 80px;
    height: 80px;
}

.stencil-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faded-buff);
}

/* Section 5: The Fade */
.section-fade {
    background: linear-gradient(to bottom, var(--concrete-grey), #6A6A6A);
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.vanishing-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vanishing-text span {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    display: block;
    color: var(--chalk-white);
}

.vt-1 { font-size: clamp(2rem, 8vw, 6rem); opacity: 1; }
.vt-2 { font-size: clamp(1.5rem, 5vw, 4rem); opacity: 0.7; }
.vt-3 { font-size: clamp(1rem, 3vw, 2.5rem); opacity: 0.45; }
.vt-4 { font-size: clamp(0.8rem, 2vw, 1.5rem); opacity: 0.25; }
.vt-5 { font-size: clamp(0.6rem, 1.2vw, 1rem); opacity: 0.12; }

.site-footer {
    margin-top: 3rem;
}

.footer-text {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--faded-buff);
}

/* Spray can scroll-to-top */
.spray-can {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 500;
    padding: 8px;
    transition: transform 0.3s ease;
}

.spray-can:hover {
    transform: scale(1.1);
}

.spray-can:hover .spray-dot {
    animation: sprayBurst 0.6s ease infinite;
}

.spray-dot.sd1 { animation-delay: 0s; }
.spray-dot.sd2 { animation-delay: 0.1s; }
.spray-dot.sd3 { animation-delay: 0.2s; }

@keyframes sprayBurst {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-5px) scale(1.3); opacity: 0; }
}

/* Section entrance animations */
.section .section-inner {
    opacity: 0;
    transform-origin: center center;
    transition: opacity 0.6s ease;
}

.section.visible .section-inner {
    opacity: 1;
}

.section.visible .rotate-neg4 { transform: rotate(-4deg); }
.section.visible .rotate-pos5 { transform: rotate(5deg); }
.section.visible .rotate-neg3 { transform: rotate(-3deg); }
.section.visible .rotate-pos6 { transform: rotate(6deg); }
