/* ==============================================
   bada.studio - Graffiti Parlor Creative Workshop
   Color Palette:
   - Wall Base / Warm Concrete: #D4C5B2
   - Studio Floor / Parchment Cream: #F0E8DC
   - Primary Accent / Burnt Sienna: #C85A3A
   - Complementary Accent / Deep Teal: #2A7B7F
   - Dark Ground / Charcoal Umber: #2C2420
   - Warm Highlight / Amber Glow: #E8A844
   - Muted Rust / Oxidized Terra: #9E5A42
   - Light Accent / Dusty Rose: #C49A8B
   ============================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    color: #2C2420;
    background-color: #F0E8DC;
    line-height: 1.7;
    overflow-x: hidden;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- Headings --- */
h1, h2, h3 {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: 0.04em;
}

/* --- Links --- */
a {
    color: #2A7B7F;
    text-decoration: none;
    transition: color 300ms ease;
}

a:hover {
    color: #C85A3A;
}

/* ============================
   LEFT PANEL: "The Wall"
   ============================ */
.wall-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 38vw;
    height: 100vh;
    z-index: 10;
    clip-path: url(#wall-edge);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2rem;
    overflow: hidden;
}

/* Concrete texture background with noise + diagonal stripes */
.wall-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #D4C5B2;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 8px,
            rgba(232, 168, 68, 0.12) 8px,
            rgba(232, 168, 68, 0.12) 11px
        );
    z-index: -2;
}

/* Graffiti decoration layer */
.graffiti-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    transition: filter 500ms ease;
}

.graffiti-drips {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.graffiti-letters {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 90%;
    height: 80%;
}

.graffiti-arrows {
    position: absolute;
    top: 5%;
    right: 0;
    width: 60%;
    height: 90%;
    opacity: 0.8;
}

/* --- Wordmark --- */
.wall-wordmark {
    position: relative;
    z-index: 2;
}

.wordmark {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: #2C2420;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    position: relative;
}

.wordmark-dot {
    color: #C85A3A;
}

/* --- Navigation --- */
.wall-nav {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    justify-content: center;
    padding-left: 0.5rem;
}

.nav-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2C2420;
    text-decoration: none;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1.5px dashed transparent;
    transition:
        transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1),
        color 300ms ease,
        border-color 300ms ease,
        box-shadow 300ms ease;
    transform-origin: left center;
}

.nav-link:hover {
    color: #C85A3A;
    transform: scale(1.05);
    border-color: rgba(200, 90, 58, 0.3);
    box-shadow: 0 2px 8px rgba(200, 90, 58, 0.3);
}

.nav-link.active {
    color: #C85A3A;
    border-color: rgba(200, 90, 58, 0.4);
}

/* --- Studio Stamp --- */
.studio-stamp {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    transition: transform 400ms ease-out;
}

.studio-stamp:hover {
    transform: rotate(15deg);
}

.studio-stamp:hover svg text {
    opacity: 1;
}

.studio-stamp svg {
    width: 100%;
    height: 100%;
}

/* --- Datestamp --- */
.wall-datestamp {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.8rem;
    border: 1.5px dashed #9E5A42;
    border-style: dashed;
    max-width: fit-content;
    margin-top: 1rem;
}

.datestamp-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9E5A42;
}

.datestamp-value {
    font-family: 'Permanent Marker', cursive;
    font-size: 0.85rem;
    color: #C85A3A;
}

/* ============================
   MOBILE HEADER
   ============================ */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: #D4C5B2;
    z-index: 100;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 8px,
            rgba(232, 168, 68, 0.08) 8px,
            rgba(232, 168, 68, 0.08) 11px
        );
}

.mobile-wordmark {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #2C2420;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #C85A3A;
    border-radius: 4px;
    transition: transform 300ms ease, opacity 300ms ease;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile Nav Overlay --- */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(212, 197, 178, 0.97);
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 8px,
            rgba(232, 168, 68, 0.06) 8px,
            rgba(232, 168, 68, 0.06) 11px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(44, 36, 32, 0.03) 10px,
            rgba(44, 36, 32, 0.03) 11px
        );
    z-index: 90;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms ease;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-nav-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2C2420;
    text-decoration: none;
    transition: color 300ms ease, transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-link:hover {
    color: #C85A3A;
    transform: scale(1.05);
}

/* ============================
   RIGHT PANEL: "The Studio Floor"
   ============================ */
.studio-floor {
    margin-left: 38vw;
    min-height: 100vh;
    background-color: #F0E8DC;
    position: relative;
}

/* --- Sections --- */
.section {
    padding: 6rem 4rem;
    position: relative;
}

/* ============================
   SECTION 1: THE THRESHOLD
   ============================ */
.section-threshold {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.threshold-content {
    text-align: center;
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.threshold-headline {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    color: #C85A3A;
    letter-spacing: 0.04em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.threshold-tagline {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: #9E5A42;
    margin-bottom: 3rem;
}

.illustration-doorway {
    width: 200px;
    max-width: 60%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* ============================
   SECTION HEADINGS
   ============================ */
.section-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #C85A3A;
    letter-spacing: 0.04em;
    line-height: 1.15;
    margin-bottom: 4rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #C49A8B;
    display: inline-block;
}

/* ============================
   PROJECT BOARDS
   ============================ */
.project-board {
    display: flex;
    margin-bottom: 12vh;
    opacity: 0.7;
    transform: scale(0.97);
    transition:
        opacity 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 300ms ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background-color: rgba(240, 232, 220, 0.5);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.project-board.is-visible {
    opacity: 1;
    transform: scale(1);
}

.project-board:hover {
    transform: scale(1.015);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-board.is-visible:hover {
    transform: scale(1.015);
}

/* Board accent stripe */
.board-accent {
    width: 4px;
    background-color: #C85A3A;
    flex-shrink: 0;
    height: 0%;
    transition:
        height 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        width 200ms ease;
    align-self: stretch;
}

.project-board.is-visible .board-accent {
    height: 100%;
}

.project-board:hover .board-accent {
    width: 6px;
}

/* Board content */
.board-content {
    padding: 2.5rem 3rem;
    max-width: 100%;
    flex-grow: 1;
}

.board-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #2C2420;
    letter-spacing: 0.04em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.board-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: #2C2420;
    line-height: 1.7;
    max-width: 38rem;
    margin-top: 1.5rem;
}

/* --- Illustrations in boards --- */
.illustration {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    transition: transform 300ms ease;
}

.illustration:hover {
    transform: scale(1.02);
}

/* SVG stroke color hover transition */
.illustration:hover .draw-path {
    stroke: #2A7B7F;
    transition: stroke 300ms ease;
}

.draw-path {
    transition: stroke 300ms ease;
}

/* Larger portfolio illustrations */
.project-board-large .illustration {
    max-width: 500px;
}

/* --- Pullquotes --- */
.board-pullquote {
    display: block;
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #9E5A42;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    border: 2px dashed #C85A3A;
    border-style: dashed;
    line-height: 1.4;
    position: relative;
}

/* Halftone dot pattern on large board headers */
.project-board-large .board-content {
    background-image:
        radial-gradient(
            circle,
            rgba(158, 90, 66, 0.15) 2px,
            transparent 2px
        );
    background-size: 12px 12px;
    background-position: 0 0;
}

/* ============================
   SECTION 3: THE WORKS
   ============================ */
.section-works {
    padding-top: 8rem;
}

/* ============================
   SECTION 4: THE INVITATION
   ============================ */
.section-invitation {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #D4C5B2;
    position: relative;
    padding: 4rem 2rem;
    transition: background-color 600ms ease;
}

.invitation-content {
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.illustration-hands {
    width: 300px;
    max-width: 80%;
    height: auto;
    margin: 0 auto 2.5rem;
    display: block;
}

.invitation-text {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #C85A3A;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.invitation-subtext {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: #2C2420;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}

.invitation-contact {
    margin-top: 2rem;
}

.contact-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2A7B7F;
    padding: 0.8rem 2rem;
    border: 2px solid #2A7B7F;
    display: inline-block;
    transition:
        background-color 300ms ease,
        color 300ms ease,
        transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 300ms ease;
}

.contact-link:hover {
    background-color: #2A7B7F;
    color: #F0E8DC;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(42, 123, 127, 0.3);
}

/* ============================
   SVG PATH DRAW ANIMATION
   ============================ */
.draw-path {
    stroke-dasharray: var(--path-length, 1000);
    stroke-dashoffset: var(--path-length, 1000);
    transition: stroke 300ms ease;
}

.draw-path.is-drawn {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1200ms linear, stroke 300ms ease;
}

/* ============================
   CROSS-HATCH ZONES
   ============================ */
.section-process::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(44, 36, 32, 0.04) 10px,
            rgba(44, 36, 32, 0.04) 11px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(44, 36, 32, 0.04) 10px,
            rgba(44, 36, 32, 0.04) 11px
        );
    pointer-events: none;
}

/* ============================
   RESPONSIVE: MOBILE (<768px)
   ============================ */
@media (max-width: 768px) {
    .wall-panel {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .mobile-nav-overlay {
        display: flex;
    }

    .studio-floor {
        margin-left: 0;
        padding-top: 64px;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section-threshold {
        padding: 3rem 1.5rem;
        min-height: calc(100vh - 64px);
    }

    .board-content {
        padding: 1.5rem 2rem;
    }

    .project-board {
        margin-bottom: 8vh;
    }

    .section-heading {
        margin-bottom: 2.5rem;
    }

    .illustration {
        max-width: 100%;
    }

    .project-board-large .illustration {
        max-width: 100%;
    }

    .threshold-headline {
        font-size: clamp(2.4rem, 10vw, 4rem);
    }

    .illustration-doorway {
        max-width: 50%;
    }

    .section-invitation {
        min-height: calc(100vh - 64px);
    }
}

/* ============================
   RESPONSIVE: TABLET (769-1024px)
   ============================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .wall-panel {
        width: 30vw;
        padding: 2rem 1.2rem;
    }

    .studio-floor {
        margin-left: 30vw;
    }

    .section {
        padding: 5rem 3rem;
    }

    .wall-nav {
        gap: 2rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }
}

/* ============================
   REDUCED MOTION
   ============================ */
@media (prefers-reduced-motion: reduce) {
    .threshold-content,
    .invitation-content,
    .project-board {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .board-accent {
        height: 100%;
        transition: none;
    }

    .draw-path {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
        transition: none;
    }

    .nav-link,
    .mobile-nav-link,
    .contact-link,
    .studio-stamp,
    .illustration {
        transition: none;
    }

    .nav-link:hover,
    .mobile-nav-link:hover,
    .contact-link:hover,
    .studio-stamp:hover {
        transform: none;
    }
}
