/* =============================================
   DDAZZL.com - Living Watercolor Canvas
   Colors: #1B1464, #FF6B6B, #7B68AE, #F7F3ED, #EDE7DC, #2D2A32, #6B6572, #FFB4A2, #D8D0E8
   Fonts: Baloo 2 (headlines), Nunito (body), Caveat (accents)
   ============================================= */

/* ---- CSS Custom Properties ---- */
:root {
    --midnight-indigo: #1B1464;
    --electric-coral: #FF6B6B;
    --washed-violet: #7B68AE;
    --warm-parchment: #F7F3ED;
    --dampened-cream: #EDE7DC;
    --ink-dark: #2D2A32;
    --soft-charcoal: #6B6572;
    --peach-bloom: #FFB4A2;
    --pale-lavender: #D8D0E8;
    --gold-thread: #D4AF37;
}

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

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

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--ink-dark);
    background-color: var(--warm-parchment);
    overflow-x: hidden;
    position: relative;
}

/* ---- Paper Grain Texture Overlay ---- */
#paper-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* ---- Golden Thread SVG ---- */
#golden-threads {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 600vh;
    pointer-events: none;
    z-index: 1;
}

/* ---- Ghost Tech Layer ---- */
#tech-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

#circuit-pattern {
    width: 100%;
    height: 100%;
}

/* ---- Ink Splatter Particles ---- */
#ink-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.ink-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: drift-particle linear infinite;
}

@keyframes drift-particle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translate(var(--drift-x, 60px), var(--drift-y, -200px)) scale(0.5);
        opacity: 0;
    }
}

/* ---- Floating Wordmark ---- */
#wordmark {
    position: fixed;
    top: 2rem;
    left: 2.5rem;
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--midnight-indigo);
    z-index: 100;
    letter-spacing: 0.08em;
    transition: opacity 0.6s ease;
}

#wordmark.faded {
    opacity: 0;
}

/* ---- Dot Navigation ---- */
#dot-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--washed-violet);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}

.dot.active {
    background: var(--electric-coral);
    border-color: var(--electric-coral);
    transform: scale(1.3);
}

.dot:hover {
    border-color: var(--electric-coral);
    background: var(--peach-bloom);
}

/* ---- Wash Zones (shared) ---- */
.wash-zone {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 1.5s ease-in-out;
}

.zone-content {
    position: relative;
    z-index: 10;
    max-width: 680px;
    width: 100%;
    padding: 4rem 2rem;
    text-align: center;
}

/* ---- Blobs (shared) ---- */
.blob {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/* ---- ZONE 0: Hero ---- */
.zone-hero {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(27,20,100,0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(255,107,107,0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 80%, rgba(123,104,174,0.2) 0%, transparent 50%),
        linear-gradient(180deg, var(--warm-parchment) 0%, var(--dampened-cream) 100%);
    animation: hero-morph 12s ease-in-out infinite alternate;
}

@keyframes hero-morph {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 80%, 0% 0%;
        background-size: 120% 120%, 100% 100%, 80% 80%, 100% 100%;
    }
    33% {
        background-position: 20% 10%, 80% 70%, 40% 60%, 0% 0%;
        background-size: 130% 130%, 110% 110%, 90% 90%, 100% 100%;
    }
    66% {
        background-position: 10% 20%, 90% 80%, 60% 70%, 0% 0%;
        background-size: 115% 115%, 105% 105%, 85% 85%, 100% 100%;
    }
    100% {
        background-position: 5% 15%, 95% 90%, 55% 75%, 0% 0%;
        background-size: 125% 125%, 115% 115%, 95% 95%, 100% 100%;
    }
}

.blob-hero-1 {
    width: 60vw;
    height: 60vw;
    top: -10%;
    left: -15%;
    animation: blob-float-1 18s ease-in-out infinite alternate;
}

.blob-hero-2 {
    width: 50vw;
    height: 50vw;
    bottom: -10%;
    right: -15%;
    animation: blob-float-2 22s ease-in-out infinite alternate;
}

.blob-hero-3 {
    width: 35vw;
    height: 35vw;
    top: 30%;
    right: 10%;
    animation: blob-float-3 15s ease-in-out infinite alternate;
}

@keyframes blob-float-1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(40px, 30px) rotate(5deg); }
}

@keyframes blob-float-2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-30px, -20px) rotate(-4deg); }
}

@keyframes blob-float-3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -25px) scale(1.05); }
}

.hero-content {
    max-width: 800px;
}

#hero-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1.1;
    color: var(--midnight-indigo);
    margin-bottom: 1.5rem;
}

.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    margin-right: 0.2em;
}

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

.hero-tagline {
    font-size: 1.8rem;
    color: var(--washed-violet);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease-out 0.9s, transform 0.8s ease-out 0.9s;
}

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

/* ---- Caveat Text ---- */
.caveat-text {
    font-family: 'Caveat', cursive;
    font-weight: 400;
}

/* ---- ZONE 1: Statement ---- */
.zone-statement {
    background:
        radial-gradient(ellipse at 40% 50%, rgba(123,104,174,0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 60% 40%, rgba(255,180,162,0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--dampened-cream) 0%, var(--warm-parchment) 50%, var(--dampened-cream) 100%);
    animation: statement-morph 16s ease-in-out infinite alternate;
}

@keyframes statement-morph {
    0% {
        background-position: 40% 50%, 60% 40%, 0% 0%;
        background-size: 100% 100%, 100% 100%, 100% 100%;
    }
    100% {
        background-position: 60% 55%, 40% 45%, 0% 0%;
        background-size: 110% 110%, 115% 115%, 100% 100%;
    }
}

.blob-stmt-1 {
    width: 55vw;
    height: 40vw;
    top: 10%;
    left: -10%;
    animation: blob-float-1 20s ease-in-out infinite alternate;
}

.statement-text {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.4;
    color: var(--ink-dark);
}

.statement-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    margin-right: 0.15em;
}

.statement-word.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- ZONE 2: Gallery ---- */
.zone-gallery {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255,180,162,0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 70%, rgba(123,104,174,0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--dampened-cream) 0%, var(--warm-parchment) 100%);
    animation: gallery-morph 18s ease-in-out infinite alternate;
}

@keyframes gallery-morph {
    0% {
        background-position: 50% 30%, 30% 70%, 0% 0%;
    }
    100% {
        background-position: 55% 35%, 35% 65%, 0% 0%;
        background-size: 115% 115%, 110% 110%, 100% 100%;
    }
}

.zone-gallery .zone-content {
    max-width: 960px;
}

.blob-gallery-1 {
    width: 50vw;
    height: 50vw;
    bottom: -5%;
    right: -10%;
    animation: blob-float-2 17s ease-in-out infinite alternate;
}

.section-headline {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--midnight-indigo);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    transition: letter-spacing 0.8s ease-out;
}

.section-headline.in-view {
    letter-spacing: 0em;
}

.caption-reveal {
    font-size: 1.4rem;
    color: var(--soft-charcoal);
    margin-bottom: 3rem;
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s ease-out 0.3s;
}

.caption-reveal.in-view {
    clip-path: inset(0 0 0 0);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item:nth-child(2) {
    grid-row: span 2;
}

.gallery-item svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Duotone Photo Effect */
.duotone-photo {
    position: relative;
    filter: grayscale(100%) contrast(1.1);
}

.duotone-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1B1464, #FF6B6B);
    mix-blend-mode: color;
    pointer-events: none;
}

/* ---- Scroll Reveal ---- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
}

.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery items also scale */
.gallery-item.scroll-reveal {
    transform: translateY(20px) scale(0.95);
    filter: blur(2px);
}

.gallery-item.scroll-reveal.in-view {
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* ---- ZONE 3: Story ---- */
.zone-story {
    background:
        radial-gradient(ellipse at 35% 45%, rgba(123,104,174,0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 65% 55%, rgba(255,180,162,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(216,208,232,0.2) 0%, transparent 45%),
        linear-gradient(180deg, var(--warm-parchment) 0%, var(--dampened-cream) 100%);
    animation: story-morph 20s ease-in-out infinite alternate;
}

@keyframes story-morph {
    0% {
        background-position: 35% 45%, 65% 55%, 50% 80%, 0% 0%;
    }
    100% {
        background-position: 40% 50%, 60% 50%, 55% 75%, 0% 0%;
        background-size: 115% 115%, 110% 110%, 120% 120%, 100% 100%;
    }
}

.blob-story-1 {
    width: 50vw;
    height: 40vw;
    top: 5%;
    right: -15%;
    animation: blob-float-3 19s ease-in-out infinite alternate;
}

.blob-story-2 {
    width: 40vw;
    height: 35vw;
    bottom: 10%;
    left: -12%;
    animation: blob-float-1 21s ease-in-out infinite alternate;
}

.story-block {
    text-align: left;
    margin-bottom: 3rem;
}

.story-block p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--ink-dark);
    margin-bottom: 1.5rem;
}

.story-accent {
    position: relative;
    text-align: center;
    margin: 4rem 0;
    padding: 2rem;
}

.story-accent .caveat-text {
    font-size: 2rem;
    color: var(--washed-violet);
    font-style: italic;
}

/* ---- Sparkles ---- */
.sparkle {
    position: absolute;
    pointer-events: none;
    animation: sparkle-pulse 3s ease-in-out infinite;
}

.sparkle-1 {
    width: 30px;
    height: 30px;
    top: -5px;
    right: 60px;
    animation-delay: 0s;
}

.sparkle-2 {
    width: 20px;
    height: 20px;
    bottom: 0;
    left: 80px;
    animation-delay: 1.5s;
}

@keyframes sparkle-pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 0.6; transform: scale(1.2) rotate(15deg); }
}

/* ---- ZONE 4: Detail ---- */
.zone-detail {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(27,20,100,0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 40% 60%, rgba(216,208,232,0.2) 0%, transparent 50%),
        linear-gradient(180deg, var(--dampened-cream) 0%, var(--warm-parchment) 100%);
    animation: detail-morph 15s ease-in-out infinite alternate;
}

@keyframes detail-morph {
    0% {
        background-position: 50% 40%, 40% 60%, 0% 0%;
    }
    100% {
        background-position: 55% 45%, 45% 55%, 0% 0%;
        background-size: 110% 110%, 115% 115%, 100% 100%;
    }
}

.blob-detail-1 {
    width: 55vw;
    height: 45vw;
    top: -5%;
    left: -10%;
    animation: blob-float-2 16s ease-in-out infinite alternate;
}

.zone-detail .zone-content {
    max-width: 900px;
}

.detail-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.detail-item {
    text-align: center;
    padding: 2rem 1rem;
}

.detail-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

.detail-icon svg {
    width: 100%;
    height: 100%;
}

.detail-item h3 {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--midnight-indigo);
    margin-bottom: 0.75rem;
}

.detail-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--soft-charcoal);
}

/* ---- ZONE 5: Closing ---- */
.zone-closing {
    background:
        radial-gradient(ellipse at 40% 50%, rgba(27,20,100,0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 60% 40%, rgba(255,107,107,0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 70%, rgba(123,104,174,0.15) 0%, transparent 45%),
        linear-gradient(180deg, var(--warm-parchment) 0%, var(--dampened-cream) 100%);
    animation: closing-morph 14s ease-in-out infinite alternate;
}

@keyframes closing-morph {
    0% {
        background-position: 40% 50%, 60% 40%, 50% 70%, 0% 0%;
        background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    }
    100% {
        background-position: 45% 55%, 55% 45%, 55% 65%, 0% 0%;
        background-size: 120% 120%, 115% 115%, 110% 110%, 100% 100%;
    }
}

.blob-close-1 {
    width: 60vw;
    height: 50vw;
    bottom: -10%;
    right: -15%;
    animation: blob-float-1 20s ease-in-out infinite alternate;
}

.blob-close-2 {
    width: 40vw;
    height: 40vw;
    top: 10%;
    left: -10%;
    animation: blob-float-3 18s ease-in-out infinite alternate;
}

.closing-content {
    max-width: 700px;
}

.closing-headline {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.15;
    color: var(--midnight-indigo);
    margin-bottom: 1rem;
}

.closing-caption {
    font-size: 1.6rem;
    color: var(--washed-violet);
    margin-bottom: 3rem;
}

.watercolor-button {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--warm-parchment);
    background: linear-gradient(135deg, var(--midnight-indigo), var(--washed-violet));
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.watercolor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27,20,100,0.3);
}

.watercolor-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--washed-violet), var(--electric-coral));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50px;
}

.watercolor-button:hover::before {
    opacity: 1;
}

.watercolor-button span,
.watercolor-button {
    position: relative;
    z-index: 1;
}

/* Closing sparkles */
.sparkle-close-1 {
    width: 35px;
    height: 35px;
    top: 15%;
    right: 15%;
    animation: sparkle-pulse 4s ease-in-out infinite;
}

.sparkle-close-2 {
    width: 24px;
    height: 24px;
    bottom: 20%;
    left: 12%;
    animation: sparkle-pulse 3.5s ease-in-out infinite;
    animation-delay: 1s;
}

.sparkle-close-3 {
    width: 20px;
    height: 20px;
    top: 25%;
    left: 20%;
    animation: sparkle-pulse 3s ease-in-out infinite;
    animation-delay: 2s;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    #wordmark {
        top: 1.2rem;
        left: 1.5rem;
        font-size: 1.2rem;
    }

    #dot-nav {
        right: 1rem;
        gap: 0.8rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .zone-content {
        padding: 3rem 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(2) {
        grid-row: auto;
    }

    .detail-items {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-accent .caveat-text {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    #hero-title {
        font-size: 2.8rem;
    }

    .statement-text {
        font-size: 1.5rem;
    }

    .closing-headline {
        font-size: 2.2rem;
    }

    .watercolor-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}
