/* bable.pro - Graffiti Street Style / Multilingual Typographic Chaos */
/* Palette: #f2efe6, #1a1a1a, #e52535, #00b4d8, #b5e61d, #fffff0, #c4c0b8 */

:root {
    --wall: #f2efe6;
    --spray-black: #1a1a1a;
    --tag-red: #e52535;
    --tag-blue: #00b4d8;
    --tag-lime: #b5e61d;
    --paste-white: #fffff0;
    --shadow: #c4c0b8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--wall);
    color: var(--spray-black);
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* =========================================================
   MULTILINGUAL BACKGROUND LANES
   ========================================================= */
.lang-lanes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.lang-lane {
    position: absolute;
    white-space: nowrap;
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    opacity: 0.06;
    color: var(--spray-black);
    will-change: transform;
}

.lane-latin       { top: 5%;  animation: scrollLaneRight 40s linear infinite; }
.lane-korean      { top: 15%; animation: scrollLaneLeft  50s linear infinite; }
.lane-japanese    { top: 28%; animation: scrollLaneRight 45s linear infinite; }
.lane-arabic      { top: 42%; animation: scrollLaneLeft  55s linear infinite; direction: rtl; }
.lane-devanagari  { top: 55%; animation: scrollLaneRight 48s linear infinite; }
.lane-cyrillic    { top: 68%; animation: scrollLaneLeft  42s linear infinite; }
.lane-latin-2     { top: 80%; animation: scrollLaneRight 52s linear infinite; }
.lane-korean-2    { top: 92%; animation: scrollLaneLeft  46s linear infinite; }

@keyframes scrollLaneRight {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollLaneLeft {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* =========================================================
   COMMON SECTION STYLES
   ========================================================= */
.street-section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
}

/* =========================================================
   SECTION 1: THE WALL (HERO)
   ========================================================= */
.the-wall {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap: 0;
}

.hero-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    width: 100%;
}

.hero-layer {
    position: absolute;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}

/* 10 overlapping layers in various scripts */
.hl-1  { font-size: clamp(5rem, 14vw, 11rem); color: var(--tag-red);    opacity: 0.08; transform: rotate(-4deg) scale(1.15); }
.hl-2  { font-size: clamp(3rem, 10vw, 8rem);  color: var(--tag-blue);   opacity: 0.07; transform: rotate(6deg) translateX(30px); }
.hl-3  { font-size: clamp(3rem, 10vw, 8rem);  color: var(--tag-lime);   opacity: 0.09; transform: rotate(-8deg) translateY(-25px); }
.hl-4  { font-size: clamp(2.5rem, 8vw, 7rem); color: var(--spray-black);opacity: 0.05; transform: rotate(3deg) translateX(-40px); }
.hl-5  { font-size: clamp(2rem, 7vw, 6rem);   color: var(--tag-red);    opacity: 0.06; transform: rotate(-5deg) translateY(35px); }
.hl-6  { font-size: clamp(2.5rem, 8vw, 6.5rem);color: var(--tag-blue);  opacity: 0.05; transform: rotate(7deg) translate(25px, -15px); }
.hl-7  { font-size: clamp(4rem, 12vw, 9rem);  color: var(--shadow);     opacity: 0.04; transform: rotate(-2deg) scale(1.05) translateY(10px); }
.hl-8  { font-size: clamp(2rem, 6vw, 5rem);   color: var(--tag-lime);   opacity: 0.06; transform: rotate(4deg) translate(-20px, 20px); }
.hl-9  { font-size: clamp(2rem, 7vw, 5.5rem); color: var(--tag-red);    opacity: 0.04; transform: rotate(-6deg) translate(35px, 25px); }
.hl-10 { font-size: clamp(2rem, 6vw, 5rem);   color: var(--spray-black);opacity: 0.03; transform: rotate(8deg) translate(-15px, -30px); }

.hero-main {
    font-family: 'Anton', sans-serif;
    font-size: clamp(7rem, 20vw, 16rem);
    text-transform: uppercase;
    color: var(--spray-black);
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
    transform: translateY(-120vh);
    animation: slamDown 0.9s cubic-bezier(0.22, 0.61, 0.36, 1.4) 0.4s forwards;
}

@keyframes slamDown {
    0%   { transform: translateY(-120vh); }
    70%  { transform: translateY(8px); }
    85%  { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

/* Spray paint drips */
.spray-drips {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    margin-top: -0.5rem;
}

.drip {
    width: 3px;
    background: var(--spray-black);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    height: 0;
}

.drip.animate {
    animation: dripDown 1.8s ease forwards;
}

.d1 { animation-delay: 0s; }
.d2 { animation-delay: 0.3s; }
.d3 { animation-delay: 0.15s; }
.d4 { animation-delay: 0.45s; }
.d5 { animation-delay: 0.6s; }

@keyframes dripDown {
    0%   { height: 0; opacity: 0.6; }
    100% { height: 35px; opacity: 0.5; }
}

/* Tag annotation */
.tag-annotation {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--tag-red);
    transform: rotate(-6deg);
    margin-top: 1.5rem;
    opacity: 0;
    position: relative;
    z-index: 2;
}

.tag-annotation.show {
    animation: fadeSlideUp 0.6s ease forwards;
}

@keyframes fadeSlideUp {
    0%   { opacity: 0; transform: rotate(-6deg) translateY(10px); }
    100% { opacity: 0.85; transform: rotate(-6deg) translateY(0); }
}

/* Decorative scribbles */
.scribble {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    opacity: 0.7;
}

.scribble-hero-1 {
    bottom: 15%;
    right: 8%;
    transform: rotate(12deg);
}

.scribble-hero-2 {
    top: 20%;
    left: 5%;
    transform: rotate(-8deg);
}

/* =========================================================
   SECTION 2: TAG ZONE
   ========================================================= */
.tag-zone {
    min-height: 200vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 6rem;
}

/* Wheat-paste poster */
.poster {
    max-width: 580px;
    width: 90%;
    background: var(--paste-white);
    padding: 2.5rem 2rem 2.5rem 2rem;
    position: relative;
    clip-path: polygon(
        0% 1%, 2% 0%, 5% 2%, 9% 0%, 14% 1.5%, 19% 0%, 24% 2%, 30% 0.5%,
        36% 1.5%, 42% 0%, 48% 2%, 54% 0.5%, 60% 1.5%, 66% 0%, 72% 2%,
        78% 0.5%, 84% 1.5%, 90% 0%, 95% 2%, 100% 0.5%,
        100% 98%, 97% 100%, 93% 98.5%, 88% 100%, 83% 98%, 78% 100%,
        72% 98.5%, 66% 100%, 60% 98%, 54% 100%, 48% 98.5%, 42% 100%,
        36% 98%, 30% 100%, 24% 98.5%, 18% 100%, 12% 98%, 6% 100%,
        2% 98.5%, 0% 100%
    );
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.poster[data-direction="left"] {
    transform: translateX(-60px) rotate(-3deg);
}

.poster[data-direction="right"] {
    transform: translateX(60px) rotate(3deg);
}

.poster.visible[data-direction="left"] {
    opacity: 1;
    transform: translateX(0) rotate(-2deg);
}

.poster.visible[data-direction="right"] {
    opacity: 1;
    transform: translateX(0) rotate(2deg);
}

/* Poster overlap: top 50px extends into previous section */
.poster-1 { margin-top: -50px; z-index: 4; }
.poster-2 { align-self: flex-end; margin-top: -40px; z-index: 3; }
.poster-3 { margin-top: -30px; z-index: 5; }
.poster-4 { align-self: flex-end; margin-top: -35px; z-index: 2; }

.poster-tag {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--spray-black);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Spray drip effect under poster tags */
.poster-tag::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20%;
    width: 3px;
    height: 12px;
    background: currentColor;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.4;
}

.poster-body {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(26, 26, 26, 0.75);
}

/* Bilingual pairs */
.bilingual-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin: 1.2rem 0;
}

.bi-latin {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--spray-black);
}

.bi-other {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--tag-red);
}

.translation-arrow {
    margin: 0.2rem 0;
}

/* Stickers */
.sticker {
    display: inline-block;
    background: var(--paste-white);
    border: 3px solid white;
    padding: 0.4rem 1rem;
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.22);
    position: absolute;
    z-index: 10;
    transition: transform 0.3s ease;
}

.sticker:hover {
    transform: rotate(0deg) scale(1.08) !important;
}

.sticker-pos-1 {
    bottom: -12px;
    right: 18px;
    transform: rotate(5deg);
}

.sticker-pos-2 {
    top: -14px;
    left: 22px;
    transform: rotate(-4deg);
}

.sticker-pos-3 {
    bottom: -10px;
    left: 15px;
    transform: rotate(3deg);
}

.sticker-text {
    font-family: 'Permanent Marker', cursive;
    font-size: 0.85rem;
    color: var(--tag-blue);
    white-space: nowrap;
}

/* Tape strips (electrical tape) */
.tape-strip {
    position: absolute;
    width: 85px;
    height: 22px;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(26, 26, 26, 0.75) 50%,
        rgba(26, 26, 26, 0.8) 100%
    );
    z-index: 10;
}

/* Gloss effect on tape */
.tape-strip::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    right: 5px;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
}

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

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

/* Tag zone scribbles */
.scribble-tag-1 {
    top: 12%;
    left: 3%;
    transform: rotate(-15deg);
}

.scribble-tag-2 {
    bottom: 8%;
    right: 5%;
    transform: rotate(10deg);
}

/* =========================================================
   SECTION 3: THE ALLEY
   ========================================================= */
.the-alley {
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 6rem 2rem;
    overflow: hidden;
}

.alley-tag {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3.5rem, 12vw, 9rem);
    text-transform: uppercase;
    color: var(--tag-red);
    transform: rotate(5deg);
    width: 100%;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.alley-tag.visible {
    opacity: 1;
}

/* Spray drip under alley tag */
.alley-tag::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 45%;
    width: 4px;
    height: 18px;
    background: var(--tag-red);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.5;
}

.alley-cluster {
    position: relative;
    max-width: 750px;
    width: 100%;
    min-height: 400px;
}

.alley-block {
    background: var(--paste-white);
    padding: 1.5rem 1.8rem;
    position: relative;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.95rem;
    color: rgba(26, 26, 26, 0.75);
    line-height: 1.7;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ab-1 {
    transform: rotate(-5deg) translateX(-20px);
    z-index: 4;
    box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.18);
    max-width: 460px;
    margin-bottom: -30px;
}

.ab-1.visible {
    opacity: 1;
    transform: rotate(-5deg) translateX(0);
}

.ab-2 {
    transform: rotate(6deg) translateX(20px);
    margin-left: auto;
    z-index: 3;
    box-shadow: -3px 4px 8px rgba(0, 0, 0, 0.14);
    max-width: 420px;
    border-left: 5px solid var(--tag-blue);
    margin-bottom: -25px;
}

.ab-2.visible {
    opacity: 1;
    transform: rotate(6deg) translateX(0);
}

.ab-3 {
    transform: rotate(-3deg) translateX(-15px);
    z-index: 5;
    box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.16);
    max-width: 400px;
    border-right: 5px solid var(--tag-red);
    margin-bottom: -20px;
}

.ab-3.visible {
    opacity: 1;
    transform: rotate(-3deg) translateX(0);
}

.ab-4 {
    transform: rotate(8deg) translateX(25px);
    margin-left: auto;
    z-index: 2;
    box-shadow: -2px 3px 7px rgba(0, 0, 0, 0.12);
    max-width: 350px;
    border-left: 5px solid var(--tag-lime);
    font-size: 1.1rem;
}

.ab-4.visible {
    opacity: 1;
    transform: rotate(8deg) translateX(0);
}

/* Alley scribbles */
.scribble-alley-1 {
    top: 15px;
    right: -25px;
    transform: rotate(14deg);
}

.scribble-alley-2 {
    bottom: 80px;
    left: -20px;
    transform: rotate(-10deg);
}

.scribble-alley-3 {
    top: 50%;
    right: -15px;
    transform: rotate(22deg);
}

/* Barcode */
.barcode {
    display: flex;
    gap: 2px;
    margin-top: 2.5rem;
    opacity: 0.3;
}

.bc {
    display: block;
    width: 3px;
    height: 35px;
    background: var(--spray-black);
}

.bc-w {
    width: 6px;
}

/* Alley tape strips */
.tape-alley-1 {
    top: 10%;
    right: 5%;
    width: 100px;
    transform: rotate(-25deg);
}

.tape-alley-2 {
    bottom: 15%;
    left: 3%;
    width: 70px;
    transform: rotate(15deg);
}

/* =========================================================
   SECTION 4: CLEAR WALL
   ========================================================= */
.clear-wall {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 8rem 2rem;
    position: relative;
}

/* Background texture (inverted: multilingual is now behind, faint) */
.clear-bg-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.clear-bg-texture span {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.8rem;
    color: var(--spray-black);
    opacity: 0.04;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.clear-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.clear-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.clear-line {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.05rem;
    color: rgba(26, 26, 26, 0.45);
    transition: color 0.4s ease;
}

.cl-main {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--spray-black);
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.cl-ko { font-size: 1.1rem; }
.cl-jp { font-size: 1.1rem; }
.cl-ar { font-size: 1.15rem; direction: rtl; }
.cl-hi { font-size: 1.1rem; }
.cl-cy { font-size: 1.05rem; }

/* Eye icon */
.eye-icon {
    position: relative;
    z-index: 2;
    cursor: default;
}

.eye-outer {
    width: 70px;
    height: 35px;
    border: 3px solid var(--spray-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.eye-iris {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--spray-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease-out;
}

.eye-pupil {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--wall);
}

.eye-icon.blink .eye-outer {
    animation: blinkEye 0.35s ease;
}

@keyframes blinkEye {
    0%   { transform: scaleY(1); }
    50%  { transform: scaleY(0.05); }
    100% { transform: scaleY(1); }
}

/* =========================================================
   SCROLL REVEAL (generic)
   ========================================================= */
.scroll-reveal {
    opacity: 0;
    transition: opacity 0.85s ease, transform 0.85s ease;
}

.scroll-reveal.visible {
    opacity: 1;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .poster {
        width: 95%;
    }

    .poster-2, .poster-4 {
        align-self: center;
    }

    .ab-1, .ab-2, .ab-3, .ab-4 {
        max-width: 100%;
    }

    .ab-1 { transform: rotate(-2deg); }
    .ab-1.visible { transform: rotate(-2deg); }
    .ab-2 { transform: rotate(3deg); }
    .ab-2.visible { transform: rotate(3deg); }
    .ab-3 { transform: rotate(-1deg); }
    .ab-3.visible { transform: rotate(-1deg); }
    .ab-4 { transform: rotate(2deg); }
    .ab-4.visible { transform: rotate(2deg); }

    .hero-layer {
        font-size: clamp(2rem, 10vw, 5rem);
    }

    .hero-main {
        font-size: clamp(4rem, 15vw, 8rem);
    }

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

    .scribble {
        display: none;
    }

    .tape-alley-1, .tape-alley-2 {
        display: none;
    }
}

@media (max-width: 480px) {
    .street-section {
        padding: 4rem 1rem;
    }

    .poster {
        padding: 1.5rem 1.2rem;
    }

    .poster-tag {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .clear-line {
        font-size: 0.95rem;
    }

    .cl-main {
        font-size: 1.15rem;
    }
}
