/* soning.stream - Watercolor / Split-Screen / Grounded-Earthy */

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

:root {
    --bg-left: #FAF3E8;
    --bg-right: #F0E6D4;
    --text-primary: #3B2F20;
    --text-body: #5A4A38;
    --accent: #6B8F71;
    --wash-ochre: #E8D4A0;
    --wash-rose: #D4A08B;
    --wash-moss: #A8C4A0;
    --grain: #C8B8A0;
    --annotation: #8B7A60;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-left);
    color: var(--text-body);
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.8;
    overflow-x: hidden;
}

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

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

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.float-el {
    position: absolute;
    transition: transform 0.3s ease;
}

.float-el--1 { width: 32px; top: 10%; left: 48%; animation: drift1 28s linear infinite; }
.float-el--2 { width: 24px; top: 25%; left: 52%; animation: drift2 34s linear infinite; }
.float-el--3 { width: 32px; top: 40%; left: 46%; animation: drift3 22s linear infinite; }
.float-el--4 { width: 24px; top: 55%; left: 55%; animation: drift4 30s linear infinite; }
.float-el--5 { width: 32px; top: 15%; left: 50%; animation: drift5 26s linear infinite; }
.float-el--6 { width: 24px; top: 70%; left: 48%; animation: drift6 32s linear infinite; }
.float-el--7 { width: 32px; top: 35%; left: 53%; animation: drift7 24s linear infinite; }
.float-el--8 { width: 24px; top: 60%; left: 47%; animation: drift8 36s linear infinite; }
.float-el--9 { width: 24px; top: 80%; left: 51%; animation: drift9 20s linear infinite; }
.float-el--10 { width: 28px; top: 45%; left: 49%; animation: drift10 38s linear infinite; }

@keyframes drift1 { 0% { transform: translate(0, 0); } 25% { transform: translate(20px, -30px); } 50% { transform: translate(-15px, -10px); } 75% { transform: translate(10px, 20px); } 100% { transform: translate(0, 0); } }
@keyframes drift2 { 0% { transform: translate(0, 0); } 25% { transform: translate(-25px, 15px); } 50% { transform: translate(10px, 30px); } 75% { transform: translate(-20px, -10px); } 100% { transform: translate(0, 0); } }
@keyframes drift3 { 0% { transform: translate(0, 0); } 25% { transform: translate(15px, 20px); } 50% { transform: translate(-20px, -15px); } 75% { transform: translate(25px, 10px); } 100% { transform: translate(0, 0); } }
@keyframes drift4 { 0% { transform: translate(0, 0); } 25% { transform: translate(-10px, -25px); } 50% { transform: translate(20px, 15px); } 75% { transform: translate(-15px, 20px); } 100% { transform: translate(0, 0); } }
@keyframes drift5 { 0% { transform: translate(0, 0); } 25% { transform: translate(18px, 12px); } 50% { transform: translate(-22px, -18px); } 75% { transform: translate(8px, 25px); } 100% { transform: translate(0, 0); } }
@keyframes drift6 { 0% { transform: translate(0, 0); } 25% { transform: translate(-12px, 22px); } 50% { transform: translate(18px, -15px); } 75% { transform: translate(-8px, -20px); } 100% { transform: translate(0, 0); } }
@keyframes drift7 { 0% { transform: translate(0, 0); } 25% { transform: translate(22px, -18px); } 50% { transform: translate(-10px, 25px); } 75% { transform: translate(15px, -12px); } 100% { transform: translate(0, 0); } }
@keyframes drift8 { 0% { transform: translate(0, 0); } 25% { transform: translate(-18px, -10px); } 50% { transform: translate(12px, 20px); } 75% { transform: translate(-22px, 15px); } 100% { transform: translate(0, 0); } }
@keyframes drift9 { 0% { transform: translate(0, 0); } 25% { transform: translate(14px, 18px); } 50% { transform: translate(-16px, -22px); } 75% { transform: translate(20px, 8px); } 100% { transform: translate(0, 0); } }
@keyframes drift10 { 0% { transform: translate(0, 0); } 25% { transform: translate(-20px, 14px); } 50% { transform: translate(16px, -20px); } 75% { transform: translate(-8px, 18px); } 100% { transform: translate(0, 0); } }

/* Split Section */
.split-section {
    display: grid;
    grid-template-columns: var(--left-ratio, 1fr) 24px var(--right-ratio, 1fr);
    min-height: 100vh;
    position: relative;
}

/* Panels */
.panel {
    padding: 80px 48px;
    display: flex;
    align-items: center;
}

.panel--left {
    background-color: var(--bg-left);
    justify-content: flex-end;
}

.panel--right {
    background-color: var(--bg-right);
    position: relative;
    overflow: hidden;
}

.panel__content {
    max-width: 520px;
    position: relative;
}

/* Bleed Border */
.bleed-border {
    position: relative;
    width: 24px;
    background: linear-gradient(to right, var(--bg-left), var(--bg-right));
    filter: url(#watercolor-edge);
    z-index: 2;
}

/* Typography */
.site-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.site-title.visible {
    opacity: 1;
}

.site-tagline {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--annotation);
}

.section-heading {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.body-text {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-body);
}

.annotation {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.875rem;
    color: var(--annotation);
    display: block;
    position: relative;
    left: -32px;
    margin-bottom: 0.75rem;
}

/* Watercolor Washes */
.wash {
    position: absolute;
    border-radius: 50%;
    filter: url(#watercolor-edge);
    pointer-events: none;
}

.wash--ochre {
    background: radial-gradient(ellipse, var(--wash-ochre) 0%, transparent 70%);
    width: 400px;
    height: 400px;
    top: 10%;
    left: 10%;
    opacity: 0.6;
}

.wash--rose {
    background: radial-gradient(ellipse, var(--wash-rose) 0%, transparent 70%);
    width: 350px;
    height: 350px;
    top: 20%;
    right: 5%;
    opacity: 0.5;
}

.wash--moss {
    background: radial-gradient(ellipse, var(--wash-moss) 0%, transparent 70%);
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: 15%;
    opacity: 0.5;
}

.wash--small { width: 200px; height: 200px; }
.wash--large { width: 500px; height: 500px; }
.wash--faint { opacity: 0.3; }
.wash--overlap { top: 40%; left: 20%; }
.wash--layered { opacity: 0.4; }

.wash--bloom {
    transform: scale(0);
    opacity: 0;
    transition: transform 1.2s ease-out, opacity 1.2s ease-out;
}

.wash--bloom.visible {
    transform: scale(1);
    opacity: 0.6;
}

/* Ink Drop */
.ink-drop {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: var(--text-primary);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -20px);
}

.ink-drop.active {
    animation: inkDrop 0.8s ease-out forwards;
}

@keyframes inkDrop {
    0% { width: 0; height: 0; opacity: 0.12; }
    100% { width: 40px; height: 40px; opacity: 0; margin-left: -20px; margin-top: -20px; }
}

/* Full-width Convergence Section */
.full-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 48px;
    background-color: var(--bg-right);
    position: relative;
}

.convergence-text {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-primary);
    text-align: center;
    max-width: 680px;
    letter-spacing: 0.01em;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.convergence-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 0 60px;
    background-color: var(--bg-left);
}

.footer-domain {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 0.875rem;
    color: var(--annotation);
}

/* Responsive */
@media (max-width: 768px) {
    .split-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .bleed-border {
        width: 100%;
        height: 24px;
        background: linear-gradient(to bottom, var(--bg-left), var(--bg-right));
    }

    .panel {
        padding: 40px 24px;
    }

    .annotation {
        left: 0;
    }

    .panel--right {
        min-height: 200px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.3s !important;
    }

    .float-el {
        display: none;
    }

    .site-title,
    .convergence-text,
    .wash--bloom {
        opacity: 1;
        transform: none;
    }
}
