/* === KOAKUMA.BAR — DESIGN LANGUAGE CSS === */
/* Palette: Candy Devil */
/* #0A0A0A Void Black | #FF3D7F Candy Pink | #FFE600 Candy Yellow */
/* #CCFF00 Electric Lime | #FF1A1A Devil Red | #F5F0E8 Paper White | #3A3A3A Grain Mid */

/* === GOOGLE FONTS === */
/* Bebas Neue, DM Sans 800, Azeret Mono, Space Grotesk */

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

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

body {
    background: #0A0A0A;
    color: #F5F0E8;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* === GRAIN OVERLAY (GLOBAL, FIXED) === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    filter: url(#grain);
    opacity: 0.18;
    pointer-events: none;
    z-index: 9999;
    background: #888;
}

/* === TYPOGRAPHY CLASSES === */
.risograph-header {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    text-shadow: 2px -2px 0 rgba(255, 61, 127, 0.8), -2px 2px 0 rgba(204, 255, 0, 0.6);
    transition: text-shadow 0.2s ease;
    line-height: 0.9;
}

.risograph-header:hover {
    text-shadow: 4px -4px 0 rgba(255, 61, 127, 1), -4px 4px 0 rgba(204, 255, 0, 0.9);
}

.mono-label {
    font-family: 'Azeret Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: #CCFF00;
    text-transform: uppercase;
}

/* === PHOTO PLACEHOLDERS (No real photos — CSS art) === */
.photo-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

.impact-bg-photo {
    background:
        repeating-linear-gradient(
            -45deg,
            #1a1a1a 0px, #1a1a1a 2px,
            #0A0A0A 2px, #0A0A0A 12px
        ),
        radial-gradient(ellipse at 70% 40%, #3A3A3A 0%, #0A0A0A 65%);
    filter: contrast(1.4) grayscale(0.3);
}

.manifesto-drink-photo {
    background:
        radial-gradient(circle at 50% 30%, #F5F0E8 0%, #3A3A3A 35%, #0A0A0A 70%),
        repeating-linear-gradient(
            30deg,
            transparent 0px, transparent 4px,
            rgba(255,230,0,0.08) 4px, rgba(255,230,0,0.08) 5px
        );
    filter: contrast(1.35) brightness(0.9);
}

.strip-photo--1 {
    background: repeating-linear-gradient(
        60deg, #1c1c1c 0px, #2a2a2a 3px, #0A0A0A 6px
    ), linear-gradient(180deg, #2a2a2a, #0A0A0A);
    filter: contrast(1.35) brightness(0.9) saturate(0.8);
}

.strip-photo--2 {
    background: radial-gradient(ellipse at 30% 60%, #3A3A3A, #0A0A0A 70%),
        repeating-linear-gradient(-30deg, transparent 0, transparent 5px, rgba(255,61,127,0.06) 5px, rgba(255,61,127,0.06) 6px);
    filter: contrast(1.35) brightness(0.9) saturate(0.8);
}

.strip-photo--3 {
    background: radial-gradient(circle at 60% 40%, #555 0%, #0A0A0A 60%),
        repeating-linear-gradient(80deg, transparent 0px, transparent 3px, rgba(204,255,0,0.05) 3px, rgba(204,255,0,0.05) 4px);
    filter: contrast(1.35) brightness(0.9) saturate(0.8);
}

.strip-photo--4 {
    background: linear-gradient(135deg, #2a2a2a 0%, #0A0A0A 50%, #1a1a1a 100%),
        repeating-linear-gradient(15deg, transparent 0px, transparent 6px, rgba(255,230,0,0.04) 6px, rgba(255,230,0,0.04) 7px);
    filter: contrast(1.35) brightness(0.9) saturate(0.8);
}

.strip-photo--5 {
    background: radial-gradient(ellipse at 80% 20%, #444 0%, #0A0A0A 55%),
        repeating-linear-gradient(-60deg, transparent 0px, transparent 4px, rgba(255,26,26,0.05) 4px, rgba(255,26,26,0.05) 5px);
    filter: contrast(1.35) brightness(0.9) saturate(0.8);
}

.access-macro-photo {
    background:
        repeating-linear-gradient(
            85deg, #1a1a1a 0px, #2a2a2a 1px, #0A0A0A 4px
        ),
        radial-gradient(ellipse at 20% 70%, #3A3A3A 0%, #0A0A0A 60%);
    filter: contrast(1.35) brightness(0.9) saturate(0.7);
}

/* === SLASH DIVIDER === */
.slash-divider {
    width: 3px;
    height: 60px;
    background: linear-gradient(45deg, currentColor 0%, currentColor 100%);
    transform: rotate(0deg);
    display: block;
    margin: 16px 0;
}

.slash-divider--lime {
    color: #CCFF00;
    background: #CCFF00;
}

.slash-divider--black {
    color: #0A0A0A;
    background: #0A0A0A;
}

/* === ROTATION STACK === */
.rotation-stack {
    position: relative;
    width: 100%;
    height: 12px;
    margin: 24px 0;
    overflow: visible;
}

.rotation-stack::before,
.rotation-stack::after,
.rotation-stack span {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #FFE600;
    transform-origin: center center;
}

.rotation-stack::before {
    top: 0;
    transform: rotate(-3deg);
    background: #FFE600;
}

.rotation-stack::after {
    top: 5px;
    transform: rotate(0deg);
    background: #CCFF00;
}

/* Third line via JS */
.rotation-stack--impact::before,
.rotation-stack--impact::after {
    background: #FF3D7F;
}

.rotation-stack--flyers::before,
.rotation-stack--flyers::after {
    background: #FFE600;
}

.rotation-stack--access::before,
.rotation-stack--access::after {
    background: #0A0A0A;
}

/* === DEVIL MARK === */
.devil-mark {
    font-family: 'Azeret Mono', monospace;
    font-size: 20px;
    color: #FF3D7F;
    display: inline-block;
    transform: rotate(-5deg);
    line-height: 1;
    margin-bottom: 12px;
}

.devil-mark--flyer {
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-size: 18px;
}

/* === FIXED NAVIGATION STRIP === */
.nav-strip {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 16px 8px;
    background: #0A0A0A;
    z-index: 1000;
    box-shadow: -4px 0 0 #3A3A3A;
}

.nav-letter {
    writing-mode: vertical-rl;
    font-family: 'Azeret Mono', monospace;
    font-size: 11px;
    color: #3A3A3A;
    text-decoration: none;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.nav-letter:hover,
.nav-letter.active {
    color: #CCFF00;
}

/* === SCENES BASE === */
.scene {
    position: relative;
    overflow: visible;
}

/* === SCENE 1: IMPACT === */
.scene-impact {
    height: 100vh;
    min-height: 600px;
    background: #0A0A0A;
    position: relative;
    overflow: hidden;
}

.impact-photo-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.impact-photo-bg .photo-placeholder {
    width: 100%;
    height: 100%;
}

/* Dark overlay over photo */
.scene-impact::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.35);
    z-index: 2;
    pointer-events: none;
}

.impact-text-block {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 10;
    padding-bottom: 4vh;
    padding-left: 2vw;
}

.impact-kanji {
    font-size: 14vw;
    position: relative;
    left: -2%;
    bottom: 0;
    transform: rotate(-5deg);
    color: #FFE600;
    text-shadow: 3px -3px 0 #FF3D7F, -2px 2px 0 rgba(204,255,0,0.6);
    display: block;
    line-height: 0.85;
    z-index: 10;
}

.impact-bar {
    font-size: 22vw;
    position: relative;
    left: 28%;
    transform: rotate(3deg);
    color: #FF3D7F;
    text-shadow: 2px -2px 0 rgba(255,230,0,0.8), -2px 2px 0 rgba(204,255,0,0.6);
    display: block;
    line-height: 0.8;
    z-index: 11;
    margin-top: -4vw;
}

.impact-tagline {
    position: absolute;
    right: 80px;
    top: 40px;
    z-index: 10;
    transform: rotate(90deg);
    transform-origin: right top;
}

.rotation-stack--impact {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 12;
}

/* === SCENE 2: MANIFESTO === */
.scene-manifesto {
    background: #FF3D7F;
    padding: 80px 40px 80px 60px;
    min-height: 70vh;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 0;
    max-width: 1400px;
    align-items: start;
}

.manifesto-col-left {
    padding-right: 40px;
}

.manifesto-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: 28px;
    line-height: 0.95;
    color: #F5F0E8;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.manifesto-text--second {
    font-size: 22px;
    color: #0A0A0A;
}

.manifesto-subtext {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    color: #0A0A0A;
    margin-top: 16px;
    font-weight: 400;
}

.manifesto-col-right {
    position: relative;
    overflow: visible;
}

.manifesto-photo-fragment {
    position: relative;
    width: 100%;
    height: 380px;
    transform: rotate(4deg);
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
    overflow: hidden;
    margin-right: -60px;
    box-shadow: 4px 4px 0 #0A0A0A;
}

/* === SCENE 3: FLYER STACK === */
.scene-flyers {
    background: #0A0A0A;
    padding: 100px 60px 120px;
    min-height: 80vh;
    position: relative;
    overflow: visible;
}

/* Noise overlay on flyer scene */
.scene-flyers::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.flyer-stack-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.flyer-card {
    position: absolute;
    width: 320px;
    min-height: 400px;
    background: #F5F0E8;
    box-shadow: 4px 4px 0 #0A0A0A;
    padding: 32px;
    overflow: visible;
}

.flyer-card--1 {
    --rot: -4deg;
    transform: rotate(var(--rot));
    left: calc(50% - 280px);
    top: 20px;
    z-index: 10;
}

.flyer-card--2 {
    --rot: 2deg;
    transform: rotate(var(--rot));
    left: calc(50% - 160px);
    top: 0;
    z-index: 11;
}

.flyer-card--3 {
    --rot: -7deg;
    transform: rotate(var(--rot));
    left: calc(50% - 20px);
    top: 40px;
    z-index: 9;
}

/* Stagger animation — ONLY in Scene 3 */
.flyer-card {
    animation: flyer-drop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    opacity: 0;
}

.flyer-card--1 { animation-delay: 0.1s; }
.flyer-card--2 { animation-delay: 0.22s; }
.flyer-card--3 { animation-delay: 0.34s; }

@keyframes flyer-drop {
    from {
        opacity: 0;
        transform: rotate(var(--rot)) translateY(-24px);
    }
    to {
        opacity: 1;
        transform: rotate(var(--rot)) translateY(0);
    }
}

.flyer-color-overlay {
    position: absolute;
    inset: 0;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.flyer-overlay--pink  { background: rgba(255, 61, 127, 0.25); }
.flyer-overlay--yellow { background: rgba(255, 230, 0, 0.35); }
.flyer-overlay--lime  { background: rgba(204, 255, 0, 0.3); }

.flyer-content {
    position: relative;
    z-index: 1;
}

.flyer-label {
    display: block;
    margin-bottom: 12px;
    color: #3A3A3A;
}

.flyer-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px;
    font-weight: 400;
    color: #0A0A0A;
    line-height: 0.85;
    text-shadow: 1px -1px 0 rgba(255, 61, 127, 0.5), -1px 1px 0 rgba(204, 255, 0, 0.4);
    margin-bottom: 20px;
    display: block;
}

.flyer-detail {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    color: #0A0A0A;
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 400;
}

.flyer-time {
    display: block;
    color: #0A0A0A;
}

.rotation-stack--flyers {
    position: relative;
    z-index: 1;
    margin-top: 80px;
}

/* === SCENE 4: PHOTOGRAPHY STRIP === */
.scene-photos {
    background: #0A0A0A;
    padding: 60px 0 80px;
    overflow: hidden;
}

.photo-strip-wrapper {
    overflow: hidden;
    position: relative;
}

.photo-strip {
    display: flex;
    gap: 0;
    width: max-content;
    margin-left: 15vw;
    align-items: flex-end;
    /* Scroll-driven parallax */
    will-change: transform;
}

.photo-strip-item {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.strip-photo-frame {
    width: 293px; /* 4:3 ratio at 220px height */
    height: 220px;
    overflow: hidden;
    clip-path: polygon(0 0, 94% 0, 100% 100%, 6% 100%);
    flex-shrink: 0;
}

.strip-caption {
    display: block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-top: 8px;
    font-size: 11px;
    color: #CCFF00;
    letter-spacing: 0.15em;
    padding-left: 4px;
}

.strip-slash {
    width: 4px;
    background: #CCFF00;
    align-self: stretch;
    transform: skewX(-12deg);
    flex-shrink: 0;
    min-height: 220px;
}

/* === SCENE 5: ACCESS === */
.scene-access {
    background: #F5F0E8;
    padding: 80px 60px;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    overflow: hidden;
}

.access-photo-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 240px;
    z-index: 2;
    clip-path: polygon(0 0, 96% 0, 100% 100%, 4% 100%);
    overflow: hidden;
    transform: rotate(-3deg);
    transform-origin: top left;
}

.access-block {
    position: relative;
    z-index: 3;
    margin-left: 120px;
    margin-top: 60px;
    flex: 1;
}

.access-address {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    font-style: normal;
    line-height: 1.0;
    color: #0A0A0A;
    text-shadow: 2px -2px 0 rgba(255, 61, 127, 0.5), -2px 2px 0 rgba(204, 255, 0, 0.4);
    margin-bottom: 24px;
    display: block;
    letter-spacing: 0.02em;
}

.access-hours {
    margin-bottom: 32px;
}

.access-hours .hours-label {
    display: block;
    color: #3A3A3A;
    margin-bottom: 8px;
}

.hours-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #0A0A0A;
    line-height: 1.6;
}

.access-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.access-contact .mono-label {
    color: #3A3A3A;
}

.access-email {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    color: #0A0A0A;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 0.15s ease;
    box-shadow: 0 2px 0 #0A0A0A;
}

.access-email:hover {
    color: #FF1A1A;
    box-shadow: 0 2px 0 #FF1A1A;
}

.access-wordmark {
    position: absolute;
    bottom: 40px;
    right: 100px;
    text-align: right;
    z-index: 1;
}

.access-word-ko {
    font-size: 7vw;
    color: #0A0A0A;
    display: block;
    line-height: 0.85;
    transform: rotate(2deg);
    opacity: 0.08;
}

.access-word-bar {
    font-size: 12vw;
    color: #0A0A0A;
    display: block;
    line-height: 0.8;
    transform: rotate(-2deg);
    opacity: 0.06;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
    .manifesto-grid {
        grid-template-columns: 1fr;
    }

    .manifesto-photo-fragment {
        display: none;
    }

    .manifesto-text {
        font-size: 22px;
    }

    .impact-kanji { font-size: 18vw; }
    .impact-bar { font-size: 26vw; left: 10%; }

    .flyer-stack-container {
        flex-direction: column;
        align-items: center;
        min-height: 800px;
    }

    .flyer-card--1 { left: 5%; }
    .flyer-card--2 { left: 10%; top: 160px; }
    .flyer-card--3 { left: 2%; top: 320px; }

    .access-photo-detail { width: 160px; height: 140px; }

    .nav-strip { gap: 20px; }
}

@media (max-width: 480px) {
    .scene-manifesto { padding: 60px 24px; }
    .scene-flyers { padding: 80px 24px; }
    .scene-access { padding: 60px 24px; }
    .access-block { margin-left: 0; margin-top: 180px; }
}
