/* ==============================================
   ppuzzl.in - Graffiti / Split-Screen Design
   Colors: #D5CFC5, #FF9933, #FFCC00, #C84B31, #2C2C2C, #FFF5E6, #FFE0A3
   Fonts: Bungee, EB Garamond, Permanent Marker
   ============================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FFF5E6;
    color: #2C2C2C;
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.75;
    overflow-x: hidden;
}

/* ==============================================
   MAIN GRID: Split-Screen Layout
   ============================================== */

.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ==============================================
   LEFT PANEL: Graffiti Wall
   ============================================== */

.wall-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background-color: #D5CFC5;
}

.wall-texture {
    position: absolute;
    inset: 0;
    background-color: #D5CFC5;
    filter: url(#noise);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

/* ==============================================
   WALL COMPOSITIONS
   ============================================== */

.wall-composition {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
    pointer-events: none;
}

.wall-composition.active {
    opacity: 1;
    pointer-events: auto;
}

/* Graffiti SVG text styles */
.graffiti-text-main {
    font-family: 'Bungee', Impact, sans-serif;
    font-size: 72px;
    letter-spacing: 4px;
}

.graffiti-text-sub {
    font-family: 'Bungee', Impact, sans-serif;
    font-size: 48px;
}

.graffiti-text-stencil {
    font-family: 'Bungee', Impact, sans-serif;
    font-size: 56px;
    letter-spacing: 6px;
}

.graffiti-text-tag {
    font-family: 'Permanent Marker', cursive;
    font-size: 28px;
}

/* Graffiti SVGs sizing */
.graffiti-ppuzzl,
.graffiti-about,
.graffiti-philosophy,
.graffiti-work,
.graffiti-contact {
    width: 85%;
    height: auto;
    max-height: 70vh;
}

/* ==============================================
   STICKER BADGES
   ============================================== */

.sticker-badge {
    position: absolute;
    background: #FFCC00;
    color: #2C2C2C;
    padding: 10px 18px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.15);
}

.sticker-text {
    font-family: 'Permanent Marker', cursive;
    font-size: 13px;
    text-align: center;
    line-height: 1.2;
    transform: rotate(-8deg);
}

.sticker-1 {
    top: 12%;
    right: 10%;
    transform: rotate(12deg);
}

.sticker-2 {
    bottom: 15%;
    left: 8%;
    background: #C84B31;
    color: #FFF5E6;
    transform: rotate(-6deg);
}

.sticker-3 {
    top: 18%;
    left: 12%;
    background: #FF9933;
    color: #2C2C2C;
    transform: rotate(15deg);
}

/* ==============================================
   TORN PAPER SCRAPS
   ============================================== */

.torn-paper {
    position: absolute;
    background: #FFF5E6;
    padding: 8px 16px;
    z-index: 5;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
}

.torn-1 {
    bottom: 20%;
    left: 5%;
    clip-path: polygon(2% 8%, 96% 0%, 100% 14%, 98% 88%, 94% 100%, 4% 96%, 0% 82%);
    transform: rotate(-3deg);
}

.torn-2 {
    top: 10%;
    right: 6%;
    clip-path: polygon(0% 4%, 94% 0%, 100% 10%, 97% 92%, 100% 100%, 6% 98%, 0% 86%);
    transform: rotate(2deg);
}

.torn-3 {
    bottom: 25%;
    right: 8%;
    clip-path: polygon(4% 0%, 100% 6%, 96% 100%, 0% 94%);
    transform: rotate(-1.5deg);
}

.annotation-text {
    font-family: 'Permanent Marker', cursive;
    font-size: 15px;
    color: #2C2C2C;
    white-space: nowrap;
}

/* ==============================================
   VINE SVGS
   ============================================== */

.vine {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.vine-1 {
    left: 0;
    bottom: 0;
    width: 100px;
    height: 300px;
}

.vine-2 {
    right: 0;
    bottom: 0;
    width: 100px;
    height: 300px;
}

.vine-3 {
    left: 20%;
    bottom: 0;
    width: 120px;
    height: 320px;
}

.vine-4 {
    left: 5%;
    bottom: 0;
    width: 110px;
    height: 310px;
}

.vine-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1.5s ease;
}

.wall-composition.active .vine-path {
    stroke-dashoffset: 0;
}

.vine-leaf {
    transform-origin: center;
    animation: leafSway 3s ease-in-out infinite alternate;
    opacity: 0;
    transition: opacity 0.8s ease 0.5s;
}

.wall-composition.active .vine-leaf {
    opacity: 0.6;
}

@keyframes leafSway {
    0% { transform: rotate(-3deg) scale(0.95); }
    100% { transform: rotate(3deg) scale(1.05); }
}

/* ==============================================
   PAINT SPLATTERS (decorative)
   ============================================== */

.splatter {
    position: absolute;
    border-radius: 43% 57% 70% 30% / 46% 40% 60% 54%;
    z-index: 2;
    pointer-events: none;
}

.splatter-1 {
    width: 40px;
    height: 35px;
    background: #FF9933;
    opacity: 0.3;
    top: 8%;
    left: 15%;
}

.splatter-2 {
    width: 55px;
    height: 45px;
    background: #FFCC00;
    opacity: 0.25;
    top: 45%;
    right: 10%;
    border-radius: 57% 43% 30% 70% / 54% 60% 40% 46%;
}

.splatter-3 {
    width: 30px;
    height: 30px;
    background: #C84B31;
    opacity: 0.3;
    bottom: 12%;
    left: 30%;
    border-radius: 70% 30% 57% 43% / 40% 46% 54% 60%;
}

.splatter-4 {
    width: 20px;
    height: 18px;
    background: #FF9933;
    opacity: 0.2;
    top: 30%;
    left: 60%;
}

.splatter-5 {
    width: 25px;
    height: 22px;
    background: #FFCC00;
    opacity: 0.2;
    bottom: 35%;
    right: 25%;
    border-radius: 30% 70% 43% 57% / 60% 54% 46% 40%;
}

/* ==============================================
   DRIP ANIMATION
   ============================================== */

.drip {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: dripDown 2s ease-in forwards;
    animation-delay: 0.5s;
}

.wall-composition.active .drip {
    animation: dripDown 2s ease-in forwards;
}

@keyframes dripDown {
    0% { stroke-dashoffset: 80; }
    100% { stroke-dashoffset: 0; }
}

/* ==============================================
   RIGHT PANEL: Content
   ============================================== */

.content-panel {
    background-color: #FFF5E6;
    padding: 0;
}

.content-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(60px, 10vh, 120px) 40px;
}

.section-inner {
    max-width: 480px;
}

/* ==============================================
   HEADLINES
   ============================================== */

.headline {
    font-family: 'Bungee', Impact, sans-serif;
    font-weight: 400;
    font-size: clamp(32px, 5vw, 64px);
    color: #2C2C2C;
    line-height: 1.15;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.headline-hero {
    font-size: clamp(40px, 6vw, 80px);
}

.highlight-dot {
    color: #FF9933;
}

/* ==============================================
   BODY TEXT
   ============================================== */

.body-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.75;
    color: #2C2C2C;
    margin-bottom: 24px;
}

.body-text em,
.body-text i {
    font-style: italic;
}

/* ==============================================
   PULSE-ATTENTION WORDS
   ============================================== */

.pulse-word {
    position: relative;
    display: inline;
    padding: 0 4px;
}

.pulse-word::before {
    content: '';
    position: absolute;
    inset: -2px -4px;
    background: #FFE0A3;
    border-radius: 3px;
    z-index: -1;
    opacity: 0.5;
    animation: pulseAttention 2.5s ease-in-out infinite;
}

@keyframes pulseAttention {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }
}

/* ==============================================
   MARGIN NOTES
   ============================================== */

.margin-note {
    font-family: 'Permanent Marker', cursive;
    font-size: 15px;
    color: #C84B31;
    margin-top: 20px;
    opacity: 0.75;
}

/* ==============================================
   CONTACT TAG
   ============================================== */

.contact-tag {
    font-family: 'Bungee', Impact, sans-serif;
    font-size: clamp(18px, 2.5vw, 28px);
    color: #FF9933;
    margin-top: 20px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

/* ==============================================
   PAINT DIVIDERS
   ============================================== */

.paint-divider {
    width: 100%;
    height: 40px;
    position: relative;
    margin-top: auto;
}

.paint-divider::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 6px;
    background: #FF9933;
    border-radius: 43% 57% 70% 30% / 46% 40% 60% 54%;
    opacity: 0.5;
}

.paint-divider::after {
    content: '';
    position: absolute;
    left: 70px;
    bottom: 4px;
    width: 30px;
    height: 4px;
    background: #FFCC00;
    border-radius: 57% 43% 30% 70% / 54% 60% 40% 46%;
    opacity: 0.4;
}

/* ==============================================
   SECTION REVEAL ANIMATIONS
   ============================================== */

.content-section .section-inner {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.content-section.in-view .section-inner {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================
   MOBILE: Single Column (<768px)
   ============================================== */

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .wall-panel {
        position: relative;
        height: auto;
        display: none;
    }

    .content-section {
        min-height: auto;
        padding: 60px 24px;
    }

    .section-inner {
        max-width: 100%;
    }

    .headline {
        font-size: clamp(28px, 8vw, 48px);
    }

    .headline-hero {
        font-size: clamp(36px, 10vw, 56px);
    }

    /* Show wall compositions as interstitial banners */
    .content-section::before {
        content: '';
        display: block;
        width: 100%;
        height: 200px;
        background-color: #D5CFC5;
        margin-bottom: 40px;
        border-radius: 2px;
    }

    .content-section:first-child::before {
        height: 260px;
    }
}

/* ==============================================
   SCROLLBAR STYLING
   ============================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #FFF5E6;
}

::-webkit-scrollbar-thumb {
    background: #D5CFC5;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF9933;
}

/* ==============================================
   SELECTION
   ============================================== */

::selection {
    background: #FFE0A3;
    color: #2C2C2C;
}
