/* courthouse.stream - Pastoral Pop-Art Reverie */
/* Colors: #f5f0e8, #74b9ff, #6c5ce7, #fdcb6e, #e84393, #1e1c21, #fab1a0, #2d2a32 */
/* Fonts: Playfair Display, Lora, Josefin Sans */

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

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

body {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #2d2a32;
    background: #f5f0e8;
    overflow-x: hidden;
}

/* =============================================
   BOKEH BACKGROUND LAYER
   ============================================= */
.bokeh-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.bokeh-1 {
    width: 280px;
    height: 280px;
    background: #e84393;
    opacity: 0.12;
    filter: blur(50px);
    top: 10%;
    left: 5%;
    animation: bokeh-drift-1 45s ease-in-out infinite alternate;
}

.bokeh-2 {
    width: 200px;
    height: 200px;
    background: #fdcb6e;
    opacity: 0.18;
    filter: blur(40px);
    top: 30%;
    right: 15%;
    animation: bokeh-drift-2 38s ease-in-out infinite alternate;
}

.bokeh-3 {
    width: 160px;
    height: 160px;
    background: #6c5ce7;
    opacity: 0.15;
    filter: blur(35px);
    top: 60%;
    left: 20%;
    animation: bokeh-drift-3 52s ease-in-out infinite alternate;
}

.bokeh-4 {
    width: 300px;
    height: 300px;
    background: #74b9ff;
    opacity: 0.1;
    filter: blur(60px);
    top: 5%;
    right: 30%;
    animation: bokeh-drift-4 55s ease-in-out infinite alternate;
}

.bokeh-5 {
    width: 120px;
    height: 120px;
    background: #fab1a0;
    opacity: 0.2;
    filter: blur(30px);
    top: 75%;
    left: 60%;
    animation: bokeh-drift-5 42s ease-in-out infinite alternate;
}

.bokeh-6 {
    width: 240px;
    height: 240px;
    background: #e84393;
    opacity: 0.1;
    filter: blur(45px);
    top: 40%;
    left: 70%;
    animation: bokeh-drift-6 48s ease-in-out infinite alternate;
}

.bokeh-7 {
    width: 180px;
    height: 180px;
    background: #fdcb6e;
    opacity: 0.15;
    filter: blur(40px);
    top: 85%;
    left: 10%;
    animation: bokeh-drift-1 35s ease-in-out infinite alternate-reverse;
}

.bokeh-8 {
    width: 260px;
    height: 260px;
    background: #6c5ce7;
    opacity: 0.12;
    filter: blur(55px);
    top: 15%;
    left: 45%;
    animation: bokeh-drift-2 50s ease-in-out infinite alternate-reverse;
}

.bokeh-9 {
    width: 140px;
    height: 140px;
    background: #74b9ff;
    opacity: 0.18;
    filter: blur(25px);
    top: 50%;
    right: 5%;
    animation: bokeh-drift-3 40s ease-in-out infinite alternate-reverse;
}

.bokeh-10 {
    width: 220px;
    height: 220px;
    background: #fab1a0;
    opacity: 0.14;
    filter: blur(48px);
    top: 20%;
    left: 80%;
    animation: bokeh-drift-4 46s ease-in-out infinite alternate-reverse;
}

.bokeh-11 {
    width: 100px;
    height: 100px;
    background: #e84393;
    opacity: 0.2;
    filter: blur(20px);
    top: 65%;
    left: 35%;
    animation: bokeh-drift-5 33s ease-in-out infinite alternate-reverse;
}

.bokeh-12 {
    width: 320px;
    height: 320px;
    background: #fdcb6e;
    opacity: 0.08;
    filter: blur(60px);
    top: 45%;
    right: 20%;
    animation: bokeh-drift-6 58s ease-in-out infinite alternate-reverse;
}

@keyframes bokeh-drift-1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 40px); }
}

@keyframes bokeh-drift-2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-60px, 70px); }
}

@keyframes bokeh-drift-3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, -60px); }
}

@keyframes bokeh-drift-4 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-70px, -30px); }
}

@keyframes bokeh-drift-5 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 50px); }
}

@keyframes bokeh-drift-6 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, 60px); }
}

/* =============================================
   PARTICLE CANVAS
   ============================================= */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
}

/* =============================================
   FOREGROUND DECORATIVE LAYER
   ============================================= */
.foreground-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.wildflower {
    position: absolute;
    opacity: 0.6;
    will-change: transform;
}

.wildflower-1 {
    top: 15%;
    right: 8%;
    animation: flower-drift-1 60s linear infinite, flower-rotate 50s linear infinite;
}

.wildflower-2 {
    top: 55%;
    left: 5%;
    animation: flower-drift-2 55s linear infinite, flower-rotate 70s linear infinite reverse;
}

.wildflower-3 {
    top: 35%;
    right: 20%;
    animation: flower-drift-3 65s linear infinite, flower-rotate 45s linear infinite;
}

.wildflower-4 {
    top: 80%;
    left: 30%;
    animation: flower-drift-4 50s linear infinite, flower-rotate 80s linear infinite reverse;
}

@keyframes flower-drift-1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-30px, 20px); }
    50% { transform: translate(-10px, -15px); }
    75% { transform: translate(20px, 10px); }
    100% { transform: translate(0, 0); }
}

@keyframes flower-drift-2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(25px, -20px); }
    50% { transform: translate(10px, 25px); }
    75% { transform: translate(-15px, 5px); }
    100% { transform: translate(0, 0); }
}

@keyframes flower-drift-3 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-20px, -10px); }
    50% { transform: translate(15px, 20px); }
    75% { transform: translate(5px, -25px); }
    100% { transform: translate(0, 0); }
}

@keyframes flower-drift-4 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(30px, 15px); }
    50% { transform: translate(-20px, -10px); }
    75% { transform: translate(10px, 30px); }
    100% { transform: translate(0, 0); }
}

@keyframes flower-rotate {
    0% { rotate: 0deg; }
    100% { rotate: 360deg; }
}

/* =============================================
   SCENE BASE STYLES
   ============================================= */
.scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.scene-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.scene-bg-light {
    background: #f5f0e8;
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(232, 67, 147, 0.12), transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(253, 203, 110, 0.15), transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(108, 92, 231, 0.08), transparent 45%);
}

.scene-bg-dark {
    background: #2d2a32;
    background-image:
        radial-gradient(ellipse at 25% 35%, rgba(108, 92, 231, 0.2), transparent 55%),
        radial-gradient(ellipse at 65% 70%, rgba(232, 67, 147, 0.15), transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(253, 203, 110, 0.1), transparent 40%);
}

.scene-bg-deepdark {
    background: #1e1c21;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(253, 203, 110, 0.18), transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(232, 67, 147, 0.12), transparent 55%),
        radial-gradient(ellipse at 50% 80%, rgba(116, 185, 255, 0.1), transparent 45%);
}

.scene-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* =============================================
   HALFTONE PATTERNS
   ============================================= */
.halftone-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
}

.halftone-magenta {
    background-image: radial-gradient(circle, #e84393 1px, transparent 1px);
    background-size: 8px 8px;
}

.halftone-strip {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.25;
}

.halftone-gold {
    background-image: radial-gradient(circle, #fdcb6e 1.5px, transparent 1.5px);
    background-size: 10px 10px;
}

.halftone-gradient-strip {
    position: absolute;
    left: 0;
    width: 100%;
    height: 30px;
    z-index: 1;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    background-image:
        radial-gradient(circle, #e84393 var(--dot-size, 1px), transparent var(--dot-size, 1px));
    background-size: 12px 12px;
    opacity: 0.2;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* =============================================
   BLUR-FOCUS TRANSITIONS
   ============================================= */
.blur-reveal {
    filter: blur(8px);
    opacity: 0;
    transition: filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blur-reveal.revealed {
    filter: blur(0px);
    opacity: 1;
}

/* Section blur-focus transition */
.scene {
    transition: filter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scene.blurring {
    filter: blur(6px);
}

/* =============================================
   SCENE 1 - THE MEADOW APPROACH (HERO)
   ============================================= */
.scene-meadow {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.scene-meadow .scene-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: end;
    min-height: 80vh;
}

.hero-text {
    grid-column: 2 / 8;
    align-self: center;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 10rem);
    color: #2d2a32;
    letter-spacing: 0.02em;
    line-height: 0.95;
    filter: blur(12px);
    opacity: 0;
    animation: hero-focus 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-subtitle {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #e84393;
    margin-top: 0.5rem;
    filter: blur(8px);
    opacity: 0;
    animation: hero-focus 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

.speech-bubble-hero {
    grid-column: 8 / 12;
    align-self: end;
    margin-bottom: 4rem;
    position: relative;
    filter: blur(10px);
    opacity: 0;
    animation: hero-focus 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
}

.bubble-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.speech-bubble {
    position: relative;
}

.speech-bubble-hero {
    width: 100%;
    max-width: 380px;
    height: 160px;
}

.bubble-text {
    position: relative;
    z-index: 2;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.4rem;
    color: #2d2a32;
    padding: 1.8rem 2rem;
    line-height: 1.5;
}

@keyframes hero-focus {
    0% {
        filter: blur(12px);
        opacity: 0;
    }
    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

/* =============================================
   SCENE 2 - THE TESTIMONY GARDEN
   ============================================= */
.scene-testimony {
    min-height: 100vh;
}

.scene-testimony .scene-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-top: 8rem;
    padding-bottom: 8rem;
    padding-right: 80px;
}

.testimony-bubble {
    position: relative;
    max-width: 500px;
    min-height: 120px;
}

.testimony-1 {
    align-self: flex-start;
    margin-left: 5%;
}

.testimony-2 {
    align-self: flex-start;
    margin-left: 20%;
}

.testimony-3 {
    align-self: flex-start;
    margin-left: 10%;
}

.testimony-bubble .bubble-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bubble-content {
    position: relative;
    z-index: 2;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2d2a32;
    padding: 1.5rem 2rem;
    line-height: 1.6;
}

/* =============================================
   SCENE 3 - THE PASTORAL VERDICT
   ============================================= */
.scene-verdict {
    min-height: 100vh;
}

.scene-verdict .scene-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.verdict-headline {
    grid-column: 2 / 9;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    color: #2d2a32;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-bottom: 3rem;
}

.verdict-headline em {
    font-style: italic;
}

.verdict-body {
    grid-column: 3 / 8;
}

.verdict-body p {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #2d2a32;
    margin-bottom: 1.5rem;
}

.verdict-body p:last-child {
    margin-bottom: 0;
}

/* =============================================
   SCENE 4 - THE EVENING STREAM
   ============================================= */
.scene-evening {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-evening .scene-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.evening-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(5rem, 15vw, 14rem);
    line-height: 1;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #e84393, #6c5ce7, #fdcb6e, #e84393);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s ease-in-out infinite;
}

.evening-domain {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: none;
    color: #f5f0e8;
    margin-top: 2rem;
}

.evening-domain .char {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.evening-domain.animate-chars .char {
    opacity: 1;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .scene-meadow .scene-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .speech-bubble-hero {
        max-width: 300px;
        height: 140px;
        margin-top: 3rem;
        margin-bottom: 0;
    }

    .halftone-overlay {
        opacity: 0.08;
    }

    .scene-testimony .scene-content {
        padding-right: 2rem;
        gap: 3rem;
    }

    .testimony-1,
    .testimony-2,
    .testimony-3 {
        margin-left: 0;
        max-width: 100%;
    }

    .scene-verdict .scene-content {
        display: flex;
        flex-direction: column;
        padding: 4rem 1.5rem;
    }

    .verdict-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .evening-title {
        font-size: clamp(3rem, 18vw, 8rem);
    }

    .wildflower {
        opacity: 0.3;
    }

    .halftone-strip {
        width: 30px;
        opacity: 0.15;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.5rem, 16vw, 4rem);
    }

    .bubble-text {
        font-size: 1.1rem;
        padding: 1.2rem 1.5rem;
    }

    .bubble-content {
        font-size: 0.95rem;
        padding: 1.2rem 1.5rem;
    }
}