/* ============================================
   bada.style - Watercolor Atelier
   ============================================ */

/* --- Custom Properties --- */
:root {
    --cerulean-wash: #5b9bd5;
    --indigo-abyss: #2e3a59;
    --hanji-cream: #f5efe6;
    --tide-pool-pink: #e07a8e;
    --foam-mint: #8ec8b0;
    --salted-umber: #9c7c5c;
    --twilight-violet: #6b5b8a;
    --brush-black: #1a1a2e;
    --body-light: #e8ddd3;
    --text-dark: #2c3e50;
}

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

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

body {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--hanji-cream);
    overflow-x: hidden;
}

/* --- SVG Definitions (hidden) --- */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- Hanji Paper Texture Overlay --- */
.hanji-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='hanji'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23hanji)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* --- Wash Zones --- */
.wash-zone {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.watercolor-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* --- Zone Backgrounds --- */
.zone-ocean {
    background: linear-gradient(180deg, var(--hanji-cream) 0%, rgba(91, 155, 213, 0.08) 40%, rgba(91, 155, 213, 0.15) 100%);
}

.zone-studio {
    background: linear-gradient(180deg, rgba(91, 155, 213, 0.1) 0%, rgba(142, 200, 176, 0.12) 50%, rgba(142, 200, 176, 0.18) 100%);
}

.zone-collection {
    background: linear-gradient(180deg, rgba(142, 200, 176, 0.12) 0%, rgba(91, 155, 213, 0.1) 30%, rgba(107, 91, 138, 0.12) 100%);
}

.zone-atelier {
    background: linear-gradient(180deg, rgba(107, 91, 138, 0.1) 0%, rgba(46, 58, 89, 0.15) 50%, rgba(46, 58, 89, 0.22) 100%);
}

.zone-abyss {
    background: linear-gradient(180deg, rgba(46, 58, 89, 0.18) 0%, rgba(107, 91, 138, 0.2) 40%, rgba(26, 26, 46, 0.25) 100%);
}

.zone-finale {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.2) 0%, rgba(107, 91, 138, 0.08) 40%, var(--hanji-cream) 100%);
    min-height: 80vh;
}

/* --- Zone Content --- */
.zone-content {
    position: relative;
    z-index: 2;
    max-width: 55%;
    padding: 120px 60px 80px 140px;
}

.zone-content--hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 0 60px 0 140px;
    max-width: 70%;
}

.zone-content--finale {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    max-width: 100%;
    padding: 0;
}

/* --- Hero Section --- */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.02em;
    color: var(--brush-black);
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-dot {
    color: var(--tide-pool-pink);
}

.hero-subtitle {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--salted-umber);
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.4s, transform 1s ease-out 0.4s;
}

.hero-subtitle.visible {
    opacity: 0.8;
    transform: translateY(0);
}

/* --- Swatch Cards --- */
.swatch-card {
    position: relative;
    background-color: var(--hanji-cream);
    padding: 40px 36px 36px 36px;
    margin-bottom: 40px;
    box-shadow: 2px 4px 20px rgba(26, 26, 46, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.swatch-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.swatch-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 4px 8px 30px rgba(26, 26, 46, 0.14);
}

.swatch-pin {
    position: absolute;
    top: 12px;
    left: 12px;
    filter: drop-shadow(1px 2px 3px rgba(26, 26, 46, 0.2));
}

.swatch-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
    color: var(--indigo-abyss);
    margin-bottom: 16px;
    line-height: 1.2;
}

.swatch-body {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
    color: var(--indigo-abyss);
}

/* Dark section card text adjustments */
.zone-atelier .swatch-card,
.zone-abyss .swatch-card {
    background-color: rgba(245, 239, 230, 0.92);
}

/* --- Annotations --- */
.annotation {
    position: absolute;
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: 17px;
    color: var(--salted-umber);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
    white-space: nowrap;
}

.annotation.visible {
    opacity: 0.6;
}

.annotation::after {
    content: attr(data-text);
}

.annotation--left {
    left: 20px;
    top: 80px;
    transform: rotate(-4deg);
}

.annotation--right {
    right: 20px;
    top: 60px;
    transform: rotate(3deg);
}

/* --- Drip Animations --- */
.drip-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 80px;
    margin-top: -40px;
    margin-bottom: -40px;
}

.drip-svg {
    width: 100%;
    height: 100%;
}

.drip-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1.8s ease-in-out;
}

.drip-path.animate {
    stroke-dashoffset: 0;
}

/* --- Logotype --- */
.logotype {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.logotype-stroke {
    width: 100%;
    height: auto;
}

.logotype-text {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    fill-opacity: 0;
    transition: stroke-dashoffset 2.5s ease-in-out, fill-opacity 1.5s ease-in-out 1.5s;
}

.logotype-text.animate {
    stroke-dashoffset: 0;
    fill-opacity: 1;
}

/* --- Swatch Navigation --- */
.swatch-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.swatch-nav-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(245, 239, 230, 0.6);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.swatch-nav-dot:hover {
    transform: scale(1.4);
    box-shadow: 0 2px 10px rgba(26, 26, 46, 0.25);
}

.swatch-nav-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Caveat', cursive;
    font-size: 16px;
    color: var(--indigo-abyss);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.swatch-nav-dot:hover::after {
    opacity: 0.8;
}

.swatch-nav-dot.active {
    transform: scale(1.3);
    border-color: var(--tide-pool-pink);
    box-shadow: 0 0 8px rgba(224, 122, 142, 0.4);
}

/* --- Watercolor Blobs (procedural) --- */
.wc-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
}

/* --- Brush Stroke Dividers --- */
.brush-stroke-divider {
    width: 100%;
    height: 20px;
    position: relative;
    z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .zone-content {
        max-width: 75%;
        padding: 100px 40px 60px 80px;
    }

    .zone-content--hero {
        max-width: 85%;
        padding: 0 40px 0 80px;
    }
}

@media (max-width: 768px) {
    .zone-content {
        max-width: 100%;
        padding: 80px 16px 60px 16px;
    }

    .zone-content--hero {
        max-width: 100%;
        padding: 0 16px;
        align-items: center;
        text-align: center;
    }

    .zone-content--finale {
        padding: 0 16px;
    }

    .swatch-card {
        clip-path: none !important;
    }

    .annotation {
        display: none;
    }

    .swatch-nav {
        bottom: 16px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 12px;
    }

    .swatch-nav-dot::after {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .swatch-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .swatch-body {
        font-size: 16px;
    }

    .logotype {
        max-width: 90%;
    }
}

/* --- Fade-in utility for watercolor layers --- */
.watercolor-layer.loaded {
    opacity: 1;
    transition: opacity 0.6s ease;
}
