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

html, body {
    height: 100vh;
    overflow: hidden;
    background: #2b2d31;
    cursor: crosshair;
}

/* === WALL CONTAINER (Horizontal Scroll) === */
.wall-container {
    display: flex;
    width: 500vw;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.wall-container::-webkit-scrollbar {
    display: none;
}

/* === PANELS === */
.panel {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
}

/* === CONCRETE TEXTURE === */
.concrete-texture {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(255,255,255,0.015) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 90%, rgba(255,255,255,0.025) 0%, transparent 35%),
        radial-gradient(ellipse at 90% 60%, rgba(255,255,255,0.02) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

/* === CRACKS === */
.crack {
    position: absolute;
    background: rgba(0,0,0,0.3);
    z-index: 1;
    pointer-events: none;
}

.crack-1 {
    width: 1px;
    height: 180px;
    top: 20%;
    left: 35%;
    transform: rotate(12deg);
}

.crack-2 {
    width: 200px;
    height: 1px;
    top: 60%;
    left: 50%;
    transform: rotate(-5deg);
}

.crack-3 {
    width: 1px;
    height: 120px;
    top: 40%;
    left: 75%;
    transform: rotate(-8deg);
}

/* === PANEL 1: THE BLANK WALL === */
.panel-1 {
    background: #2b2d31;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(4rem, 10vw, 8rem);
    color: #e84d6e;
    text-shadow: 0 0 8px rgba(232,77,110,0.4), 0 0 30px rgba(232,77,110,0.1);
    letter-spacing: 0.02em;
    z-index: 2;
    display: flex;
}

.letter {
    opacity: 0;
    animation: sprayIn 0.15s forwards;
    animation-delay: calc(400ms + var(--i) * 80ms);
}

@keyframes sprayIn {
    0% { opacity: 0; transform: scale(1.3); filter: blur(4px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.dotcom {
    font-family: 'Azeret Mono', monospace;
    font-size: clamp(1.5rem, 4vw, 3.2rem);
    color: #8b8d94;
    align-self: center;
    margin-top: 0.2em;
    margin-left: 4em;
    opacity: 0;
    animation: fadeIn 0.4s forwards;
    animation-delay: 1.7s;
    z-index: 2;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-arrow {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    animation: pulseArrow 2s ease-in-out infinite;
}

@keyframes pulseArrow {
    0%, 100% { opacity: 0.4; transform: translateY(-50%) translateX(0); }
    50% { opacity: 1; transform: translateY(-50%) translateX(8px); }
}

/* === PANEL 2: THE LAYERED TAGS === */
.panel-2 {
    background: #2b2d31;
}

.tags-container {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.tag-block {
    position: absolute;
    transform: rotate(var(--rot));
    opacity: 0.5;
    transition: opacity 0.3s cubic-bezier(0.34,1.56,0.64,1),
                transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
                filter 0.3s ease;
    padding: 0.5em;
    line-height: 1.5;
    white-space: nowrap;
    z-index: 1;
}

.tags-container:hover .tag-block {
    opacity: 0.15;
    filter: blur(2px);
}

.tags-container:hover .tag-block:hover {
    opacity: 1;
    filter: blur(0);
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

/* === PANEL 3: THE NEON SIGN === */
.panel-3 {
    background: #0d0e12;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neon-text {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #f7c948;
    text-align: center;
    line-height: 1.4;
    animation: neonFlicker 6s infinite;
    z-index: 2;
    padding: 0 2rem;
}

@keyframes neonFlicker {
    0%, 8%, 50%, 54%, 100% {
        text-shadow: 0 0 10px #f7c948, 0 0 40px rgba(247,201,72,0.4), 0 0 80px rgba(247,201,72,0.15);
    }
    4%, 52% {
        text-shadow: 0 0 2px rgba(247,201,72,0.6);
    }
}

.neon-drip {
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, #f7c948, transparent);
    opacity: 0.3;
    z-index: 1;
}

.drip-1 { height: 80px; top: 65%; left: 30%; }
.drip-2 { height: 50px; top: 70%; left: 55%; background: linear-gradient(to bottom, #e8763a, transparent); }
.drip-3 { height: 100px; top: 60%; left: 72%; }

/* === PANEL 4: THE STICKER WALL === */
.panel-4 {
    background: #2b2d31;
}

.blobs-container {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.blob {
    position: absolute;
    width: 200px;
    height: 180px;
    background: var(--color);
    opacity: 0.9;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: scale(1) rotate(var(--r));
    animation: breathe 4s ease-in-out infinite;
    animation-delay: calc(var(--r) * 20);
    box-shadow: 2px 3px 0 rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5em;
    cursor: pointer;
    transition: transform 0.4s ease-out, width 0.4s ease-out, height 0.4s ease-out;
    z-index: 2;
}

@keyframes breathe {
    0%, 100% { transform: scale(1) rotate(var(--r)); }
    50% { transform: scale(1.03) rotate(var(--r)); }
}

.blob-summary {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #e8e6e1;
    pointer-events: none;
}

.blob-detail {
    display: none;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #e8e6e1;
    line-height: 1.65;
    pointer-events: none;
}

.blob.expanded {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) rotate(0deg) !important;
    width: 400px;
    height: auto;
    min-height: 250px;
    border-radius: 20px;
    z-index: 100;
    animation: none;
    padding: 2em;
    flex-direction: column;
    gap: 0.8em;
}

.blob.expanded .blob-summary {
    font-size: 1.5rem;
}

.blob.expanded .blob-detail {
    display: block;
}

.blob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13,14,18,0.7);
    z-index: 50;
}

.blob-overlay.active {
    display: block;
}

/* === PANEL 5: THE VANISHING POINT === */
.panel-5 {
    background: #2b2d31;
    overflow: hidden;
}

.perspective-wall {
    width: 100%;
    height: 100%;
    perspective: 1200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateY(-8deg);
    transform-style: preserve-3d;
}

.converge-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.v-line {
    position: absolute;
    width: 1px;
    height: 140%;
    background: rgba(139,141,148,0.15);
    left: calc(60% + var(--offset));
    top: -20%;
    transform-origin: 60% 45%;
    transform: rotate(calc(var(--offset) * 0.3));
}

.vanish-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    left: calc(60% - 150px);
    top: calc(45% - 150px);
    background: radial-gradient(circle, rgba(61,214,208,0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.vanish-text {
    position: absolute;
    left: 60%;
    top: 45%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

.vanish-text span {
    font-family: 'Azeret Mono', monospace;
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    color: #3dd6d0;
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.underline-svg {
    display: block;
    width: 100%;
    height: 4px;
    margin-top: 4px;
}

.underline-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 2s ease forwards 0.5s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* === PROGRESS BAR === */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: #e84d6e;
    z-index: 200;
    transition: width 0.1s linear;
}

/* === PANEL LABEL === */
.panel-label {
    position: fixed;
    bottom: 16px;
    left: 16px;
    font-family: 'Azeret Mono', monospace;
    font-size: 0.75rem;
    color: #8b8d94;
    z-index: 200;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    background: rgba(43,45,49,0.8);
    padding: 4px 10px;
}

/* === CHALK TRAIL === */
.chalk-trail {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 150;
}

.chalk-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(232,230,225,0.3);
    animation: chalkFade 1.5s forwards;
    pointer-events: none;
}

@keyframes chalkFade {
    to { opacity: 0; transform: scale(0.5); }
}

/* === FIRE ESCAPE DECORATION === */
.panel-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 58px,
        #8b8d94 58px,
        #8b8d94 60px
    );
    opacity: 0.1;
    z-index: 1;
}

/* === POWER LINES === */
.panel-4::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 0;
    right: 0;
    height: 1px;
    background: #8b8d94;
    opacity: 0.2;
    z-index: 1;
}

.panel-4::after {
    content: '';
    position: absolute;
    top: 8%;
    left: 0;
    right: 0;
    height: 1px;
    background: #8b8d94;
    opacity: 0.15;
    z-index: 1;
}
