/* munju.im - Street-style aesthetic */
/* Technique: IntersectionObserver triggers stroke-dashoffset transition with threshold [0] */
/* Typography creates productive tension against the looseness of Caveat Brush versus chaos */
/* The infrastructure labeling of IBM Plex Mono and Space Grotesk (Google Fonts) */
/* Colors: #0a0a0f, #0f0f14, #1a1a1e, #f0ece4, #ff6f3c, #ffe14d, #f5a623, #d4cfc7, #6b6b78 */
/* Fonts: Caveat Brush, IBM Plex Mono, Inter, Space Grotesk */

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

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

body {
    background-color: #0a0a0f;
    color: #f0ece4;
    font-family: 'IBM Plex Mono', monospace;
    overflow-x: hidden;
    cursor: none;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    mix-blend-mode: difference;
}

.custom-cursor svg {
    display: block;
}

/* ============================================
   PANELS (Full-viewport sections)
   ============================================ */
.panel {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   INTERSTITIAL STRIPS
   ============================================ */
.interstitial {
    width: 100%;
    height: 8vh;
    background-color: #0a0a0f;
    position: relative;
}

.interstitial::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6b6b78 20%, #6b6b78 80%, transparent);
    opacity: 0.15;
}

/* ============================================
   SECTION 1: THE TAG
   ============================================ */
.panel-tag {
    background-color: #0a0a0f;
    flex-direction: column;
}

.bokeh-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 15vw 25vh, rgba(255, 111, 60, 0.12) 0%, transparent 80px),
        radial-gradient(circle at 72vw 18vh, rgba(255, 225, 77, 0.08) 0%, transparent 120px),
        radial-gradient(circle at 45vw 65vh, rgba(245, 166, 35, 0.10) 0%, transparent 90px),
        radial-gradient(circle at 85vw 45vh, rgba(255, 111, 60, 0.07) 0%, transparent 150px),
        radial-gradient(circle at 25vw 80vh, rgba(255, 225, 77, 0.09) 0%, transparent 60px),
        radial-gradient(circle at 60vw 35vh, rgba(245, 166, 35, 0.06) 0%, transparent 180px),
        radial-gradient(circle at 10vw 55vh, rgba(255, 111, 60, 0.11) 0%, transparent 40px),
        radial-gradient(circle at 90vw 75vh, rgba(255, 225, 77, 0.07) 0%, transparent 100px),
        radial-gradient(circle at 35vw 10vh, rgba(245, 166, 35, 0.09) 0%, transparent 70px),
        radial-gradient(circle at 55vw 90vh, rgba(255, 111, 60, 0.08) 0%, transparent 130px),
        radial-gradient(circle at 80vw 60vh, rgba(255, 225, 77, 0.06) 0%, transparent 160px),
        radial-gradient(circle at 20vw 45vh, rgba(245, 166, 35, 0.10) 0%, transparent 50px),
        radial-gradient(circle at 68vw 85vh, rgba(255, 111, 60, 0.07) 0%, transparent 110px),
        radial-gradient(circle at 42vw 30vh, rgba(255, 225, 77, 0.09) 0%, transparent 85px),
        radial-gradient(circle at 5vw 90vh, rgba(245, 166, 35, 0.08) 0%, transparent 140px);
}

.tag-content {
    position: relative;
    z-index: 2;
    text-align: center;
    will-change: transform;
}

.tag-title {
    font-family: 'Caveat Brush', cursive;
    font-size: clamp(3rem, 10vw, 10rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #f0ece4;
    position: relative;
}

.tag-letter {
    display: inline-block;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s ease;
}

.tag-letter:hover {
    color: #ff6f3c;
    transform: translateY(-8px) rotate(-3deg);
}

.tag-dot {
    color: #ff6f3c;
}

.tag-quotation {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(0.6rem, 1.2vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.35em;
    color: #6b6b78;
    margin-top: 1.5rem;
    text-transform: uppercase;
}

.diagonal-slash {
    position: absolute;
    top: 0;
    right: 15%;
    width: 120px;
    height: 100%;
    z-index: 1;
    will-change: transform;
    opacity: 0.6;
}

.diagonal-slash svg {
    width: 100%;
    height: 100%;
}

.scroll-hint {
    position: absolute;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-hint-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #6b6b78;
}

.scroll-hint-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #6b6b78, transparent);
}

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

/* ============================================
   SECTION 2: THE LOOKBOOK
   ============================================ */
.panel-lookbook {
    background-color: #0f0f14;
    padding: 8vh 5vw;
}

.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3vw;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.lookbook-card {
    position: relative;
    background-color: #1a1a1e;
    border: 1px solid rgba(240, 236, 228, 0.06);
    padding: 2.5rem 2rem;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

.lookbook-card-1 {
    transform: rotate(-1.5deg);
}

.lookbook-card-2 {
    transform: rotate(0.8deg) translateY(20px);
}

.lookbook-card-3 {
    transform: rotate(-0.5deg) translateY(-10px);
}

.lookbook-card:hover {
    transform: rotate(0deg) translateY(-5px) !important;
    box-shadow: 0 20px 60px rgba(255, 111, 60, 0.08);
    border-color: rgba(255, 111, 60, 0.15);
}

/* Tape corners */
.tape-corner {
    position: absolute;
    width: 40px;
    height: 16px;
    background: rgba(255, 225, 77, 0.15);
    z-index: 3;
}

.tape-corner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255, 225, 77, 0.08) 2px,
        rgba(255, 225, 77, 0.08) 4px
    );
}

.tape-top-left {
    top: -8px;
    left: 15px;
    transform: rotate(-15deg);
}

.tape-top-right {
    top: -8px;
    right: 15px;
    transform: rotate(12deg);
}

.tape-bottom-left {
    bottom: -8px;
    left: 15px;
    transform: rotate(10deg);
}

.tape-bottom-right {
    bottom: -8px;
    right: 15px;
    transform: rotate(-8deg);
}

.card-inner {
    position: relative;
    z-index: 2;
}

.card-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #ff6f3c;
    display: block;
    margin-bottom: 1rem;
}

.card-title {
    font-family: 'Caveat Brush', cursive;
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #f0ece4;
    margin-bottom: 0.75rem;
}

.card-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    line-height: 1.7;
    color: #d4cfc7;
    opacity: 0.8;
}

.lookbook-label {
    position: absolute;
    bottom: 4vh;
    right: 5vw;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: #6b6b78;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    will-change: transform;
}

/* ============================================
   SECTION 3: THE ZINE
   ============================================ */
.panel-zine {
    background-color: #0a0a0f;
    padding: 8vh 5vw;
}

.zine-layout {
    display: flex;
    gap: 4vw;
    max-width: 1100px;
    width: 100%;
    align-items: center;
}

.zine-spread {
    flex: 1;
    will-change: transform;
}

.zine-page {
    position: relative;
    padding: 3rem 2.5rem;
}

.zine-spread-left .zine-page {
    border-left: 3px solid #ff6f3c;
}

.zine-headline {
    font-family: 'Caveat Brush', cursive;
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #f0ece4;
    margin-bottom: 1.5rem;
}

.zine-body p {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.75rem, 0.95vw, 0.9rem);
    line-height: 1.8;
    color: #d4cfc7;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.zine-stamp {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: #ff6f3c;
    border: 1px solid rgba(255, 111, 60, 0.3);
    padding: 0.4rem 1rem;
    text-transform: uppercase;
}

.zine-pattern {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.zine-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.zine-marker {
    position: absolute;
    top: 4vh;
    left: 5vw;
    font-family: 'Caveat Brush', cursive;
    font-size: 0.9rem;
    color: #ffe14d;
    opacity: 0.3;
    letter-spacing: 0.15em;
    will-change: transform;
}

/* ============================================
   SECTION 4: THE DROP
   ============================================ */
.panel-drop {
    background-color: #0f0f14;
    flex-direction: column;
    padding: 8vh 5vw;
}

.drop-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.drop-counter {
    display: flex;
    justify-content: center;
    gap: 6vw;
    margin-bottom: 5rem;
    will-change: transform;
}

.counter-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.counter-number {
    font-family: 'Caveat Brush', cursive;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #ff6f3c;
    line-height: 1;
}

.counter-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: #6b6b78;
    text-transform: uppercase;
}

.drop-statement {
    will-change: transform;
    margin-bottom: 4rem;
}

.drop-title {
    font-family: 'Caveat Brush', cursive;
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #f0ece4;
    margin-bottom: 1rem;
}

.drop-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.75rem, 0.95vw, 0.9rem);
    line-height: 1.8;
    color: #d4cfc7;
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
}

.drop-lines {
    will-change: transform;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.h-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff6f3c, transparent);
    opacity: 0.2;
}

.h-line-1 { width: 60%; }
.h-line-2 { width: 40%; opacity: 0.15; }
.h-line-3 { width: 20%; opacity: 0.1; }

/* ============================================
   SECTION 5: THE ECHO
   ============================================ */
.panel-echo {
    background-color: #0a0a0f;
    flex-direction: column;
}

.echo-content {
    position: relative;
    z-index: 2;
    text-align: center;
    will-change: transform;
}

.echo-tag {
    margin-bottom: 3rem;
}

.echo-domain {
    font-family: 'Caveat Brush', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #f0ece4;
    letter-spacing: -0.02em;
    position: relative;
}

.echo-domain::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff6f3c;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.echo-tag:hover .echo-domain::after {
    transform: scaleX(1);
}

.echo-links {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.echo-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #6b6b78;
    text-decoration: none;
    letter-spacing: 0.1em;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

.echo-link::before {
    content: attr(data-label);
    position: absolute;
    top: -1.4rem;
    left: 0;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ff6f3c;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.echo-link:hover {
    color: #f0ece4;
}

.echo-link:hover::before {
    opacity: 0.6;
    transform: translateY(0);
}

.echo-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff6f3c;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.echo-link:hover::after {
    width: 100%;
}

.echo-year {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: #6b6b78;
    opacity: 0.5;
}

.echo-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.03;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="256" height="256" filter="url(%23n)" opacity="1"/></svg>');
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
}

.echo-diag {
    position: absolute;
    top: 0;
    left: 10%;
    width: 100px;
    height: 100%;
    z-index: 1;
    will-change: transform;
}

.echo-diag svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.2s; }

.reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .lookbook-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2vw;
    }

    .lookbook-card-1,
    .lookbook-card-2,
    .lookbook-card-3 {
        transform: none;
    }

    .zine-layout {
        flex-direction: column;
        gap: 3rem;
    }

    .echo-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .drop-counter {
        gap: 3rem;
    }

    .diagonal-slash {
        right: 5%;
        width: 60px;
    }

    body {
        cursor: auto;
    }

    .custom-cursor {
        display: none;
    }
}

@media (max-width: 480px) {
    .panel {
        padding: 4vh 4vw;
    }

    .tag-title {
        font-size: clamp(2.5rem, 15vw, 5rem);
    }
}
