:root {
    --abyss: #0A1628;
    --trench: #102A43;
    --current: #00B4D8;
    --phosphor: #90E0EF;
    --foam: #E0F7FA;
    --vent: #FF6B35;
    --silt: #5E9CA0;
    --kelp: #1B4332;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    --font-accent: 'Azeret Mono', monospace;
}

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

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

body {
    background-color: var(--abyss);
    color: var(--foam);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================
   NOISE TEXTURE OVERLAY
   ========================================== */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(224, 247, 250, 0.4) 50%, transparent 100%),
        radial-gradient(1px 1px at 50% 60%, rgba(224, 247, 250, 0.3) 50%, transparent 100%),
        radial-gradient(1px 1px at 80% 20%, rgba(224, 247, 250, 0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 35% 80%, rgba(224, 247, 250, 0.3) 50%, transparent 100%),
        radial-gradient(1px 1px at 65% 45%, rgba(224, 247, 250, 0.4) 50%, transparent 100%),
        radial-gradient(1px 1px at 10% 70%, rgba(224, 247, 250, 0.35) 50%, transparent 100%),
        radial-gradient(1px 1px at 90% 85%, rgba(224, 247, 250, 0.3) 50%, transparent 100%);
    background-size: 200px 200px;
    animation: noiseShift 0.5s steps(4) infinite;
}

@keyframes noiseShift {
    0% { background-position: 0 0; }
    25% { background-position: 1px -1px; }
    50% { background-position: -1px 2px; }
    75% { background-position: 2px -1px; }
    100% { background-position: 0 0; }
}

/* ==========================================
   RIPPLE CANVAS
   ========================================== */
#ripple-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* ==========================================
   ORGANIC BLOBS
   ========================================== */
.blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobMorph 20s ease-in-out infinite;
    pointer-events: none;
    will-change: border-radius;
}

.blob-hero {
    width: clamp(300px, 40vw, 600px);
    height: clamp(300px, 40vw, 600px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, var(--kelp) 0%, transparent 70%);
    opacity: 0.4;
    z-index: 0;
}

.blob-hero-secondary {
    width: clamp(200px, 25vw, 400px);
    height: clamp(200px, 25vw, 400px);
    top: 35%;
    left: 60%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.06) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
    animation: blobMorph 25s ease-in-out infinite reverse;
}

.blob-bg {
    z-index: 0;
    opacity: 0.25;
}

.blob-bg-1 {
    width: 500px;
    height: 500px;
    top: 10%;
    left: -10%;
    background: radial-gradient(ellipse at center, var(--kelp) 0%, transparent 70%);
    animation-duration: 30s;
}

.blob-bg-2 {
    width: 400px;
    height: 400px;
    top: 40%;
    right: -5%;
    background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
    animation-duration: 25s;
    animation-delay: -8s;
}

.blob-bg-3 {
    width: 600px;
    height: 600px;
    top: 70%;
    left: 20%;
    background: radial-gradient(ellipse at center, var(--kelp) 0%, transparent 70%);
    animation-duration: 35s;
    animation-delay: -15s;
}

.blob-card {
    width: 100%;
    height: 100%;
    position: relative;
    background: radial-gradient(ellipse at 40% 40%, rgba(0, 180, 216, 0.12) 0%, transparent 70%);
}

.blob-card--alt {
    background: radial-gradient(ellipse at 60% 50%, rgba(27, 67, 50, 0.2) 0%, transparent 70%);
    animation-delay: -10s;
}

.blob-final {
    width: 200px;
    height: 200px;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, var(--kelp) 0%, transparent 70%);
    opacity: 0.3;
    animation: blobMorph 15s ease-in-out infinite, blobPulse 4s ease-in-out infinite;
}

.blob-current {
    width: 120px;
    height: 120px;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
    animation: blobMorph 18s ease-in-out infinite;
}

.blob-current--alt {
    background: radial-gradient(ellipse at center, rgba(27, 67, 50, 0.15) 0%, transparent 70%);
    animation-delay: -6s;
}

@keyframes blobMorph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 40% 60% 60% 40% / 40% 60% 40% 60%; }
    75% { border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%; }
}

@keyframes blobPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* Small decorative blobs on masonry card corners */
.block-blob-decor {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobMorph 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.block-blob-tl { top: -12px; left: -12px; }
.block-blob-tr { top: -12px; right: -12px; animation-delay: -3s; }
.block-blob-bl { bottom: -12px; left: -12px; animation-delay: -6s; }
.block-blob-br { bottom: -12px; right: -12px; animation-delay: -9s; }

/* ==========================================
   SECTION DIVIDER BLOBS
   ========================================== */
.section-divider-blob {
    width: 100%;
    height: 3px;
    margin: 2rem 0;
    position: relative;
    overflow: visible;
}

.section-divider-blob::before {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.08), rgba(94, 156, 160, 0.06), transparent);
    border-radius: 50%;
    animation: dividerUndulate 8s ease-in-out infinite;
}

.section-divider-blob--alt::before {
    animation-delay: -4s;
}

@keyframes dividerUndulate {
    0%, 100% { left: 10%; right: 10%; }
    50% { left: 8%; right: 12%; }
}

/* ==========================================
   IMMERSION ZONE (HERO)
   ========================================== */
.immersion-zone {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(224, 247, 250, 0.05) 0%, var(--abyss) 30%);
}

.surface-light {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30vh;
    background: linear-gradient(180deg, rgba(224, 247, 250, 0.08) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(3.5rem, 12vw, 9rem);
    color: var(--foam);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-title .char.revealed {
    opacity: 1;
    transform: scale(1);
}

.hero-tagline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--silt);
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==========================================
   MASONRY DRIFT ZONE
   ========================================== */
.masonry-zone {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2vw, 24px);
    grid-auto-flow: dense;
}

.masonry-block {
    background-color: var(--trench);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 180, 216, 0.04);
    border-radius: 2px;
    will-change: transform;
}

.masonry-block.bobbing {
    animation: microBob 6s ease-in-out infinite;
}

@keyframes microBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.block-text {
    min-height: 220px;
}

.block-tall {
    grid-row: span 2;
    min-height: 450px;
}

.block-visual {
    min-height: 280px;
    padding: 0;
}

.block-motif {
    min-height: 200px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.block-label {
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--silt);
    display: block;
    margin-bottom: 1rem;
}

.block-heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--foam);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.block-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    color: var(--foam);
    opacity: 0.85;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

/* Block Quote */
.block-quote p {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.5;
    color: var(--phosphor);
    margin-bottom: 1rem;
}

.block-quote cite {
    display: block;
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 0.7rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--silt);
}

/* ==========================================
   COLLAGE PANELS
   ========================================== */
.collage-panel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
    background-color: var(--trench);
}

.collage-panel--warm {
    background: linear-gradient(135deg, var(--trench) 60%, rgba(255, 107, 53, 0.08) 100%);
}

.collage-panel--deep {
    background: linear-gradient(225deg, var(--trench) 50%, rgba(27, 67, 50, 0.12) 100%);
}

.collage-shape {
    position: absolute;
}

.collage-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
    top: 20%;
    left: 15%;
}

.collage-circle--phosphor {
    background: radial-gradient(ellipse at center, rgba(144, 224, 239, 0.12) 0%, transparent 70%);
    top: 15%;
    left: 25%;
}

.collage-circle--large {
    width: 240px;
    height: 240px;
    top: 10%;
    left: 20%;
    background: radial-gradient(ellipse at center, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
}

.collage-drift-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(144, 224, 239, 0.08) 0%, transparent 70%);
    bottom: 30%;
    left: 50%;
    animation: driftFloat 12s ease-in-out infinite;
}

@keyframes driftFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(10px, -8px); }
    66% { transform: translate(-6px, 5px); }
}

.collage-arc {
    width: 120px;
    height: 120px;
    border: 1px solid rgba(144, 224, 239, 0.15);
    border-radius: 50%;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    bottom: 20%;
    right: 10%;
}

.collage-arc--warm {
    border-color: rgba(255, 107, 53, 0.1);
    top: 10%;
    right: 20%;
    bottom: auto;
}

.collage-polygon {
    width: 140px;
    height: 140px;
    background: rgba(255, 107, 53, 0.06);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    top: 25%;
    left: 30%;
}

.collage-polygon--kelp {
    background: rgba(27, 67, 50, 0.1);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    top: 40%;
    left: 50%;
    width: 100px;
    height: 100px;
}

.collage-text-fragment {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 5rem;
    color: var(--foam);
    opacity: 0.04;
    position: absolute;
    bottom: 10%;
    right: 5%;
    pointer-events: none;
    user-select: none;
}

.collage-text--large {
    font-size: 7rem;
    color: var(--vent);
    opacity: 0.05;
}

/* ==========================================
   CURRENT CHANNEL (horizontal scroll section)
   ========================================== */
.current-channel {
    position: relative;
    height: 60vh;
    overflow: hidden;
    background: linear-gradient(180deg, var(--abyss) 0%, rgba(16, 42, 67, 0.4) 50%, var(--abyss) 100%);
}

.current-track {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 3rem;
    white-space: nowrap;
    will-change: transform;
}

.current-track--slow {
    top: 10%;
    left: 0;
}

.current-track--mid {
    top: 40%;
    left: -200px;
}

.current-track--fast {
    top: 72%;
    left: -100px;
}

.current-fragment {
    display: inline-flex;
    flex-shrink: 0;
    white-space: normal;
    vertical-align: top;
}

.current-fragment--text {
    max-width: 320px;
    padding: 1.5rem 2rem;
    background-color: rgba(16, 42, 67, 0.6);
    box-shadow: 0 0 40px rgba(0, 180, 216, 0.04);
    border-radius: 2px;
}

.current-fragment--collage {
    width: 200px;
    height: 160px;
    position: relative;
    background-color: rgba(16, 42, 67, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.current-fragment--collage-warm {
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.3) 60%, rgba(255, 107, 53, 0.05) 100%);
    width: 240px;
    height: 180px;
}

.current-fragment--motif {
    width: 150px;
    height: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.current-label {
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: clamp(0.65rem, 0.8vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--silt);
    display: block;
    margin-bottom: 0.75rem;
}

.current-passage {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.65;
    color: var(--foam);
    opacity: 0.75;
}

.current-passage--large {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.4;
    color: var(--phosphor);
    opacity: 0.6;
    letter-spacing: -0.01em;
}

/* ==========================================
   SETTLING FLOOR
   ========================================== */
.settling-floor {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 3rem;
}

.settling-grid {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 1.5vw, 16px);
    justify-content: center;
    max-width: 600px;
    margin-bottom: 2rem;
}

.settling-block {
    background-color: var(--trench);
    padding: 0.8rem 1.2rem;
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.03);
    border-radius: 2px;
    opacity: 0.6;
}

.settling-block .block-label {
    margin-bottom: 0;
    font-size: 0.65rem;
}

.settling-block--1 { animation-delay: 0s; }
.settling-block--2 { animation-delay: 0.08s; }
.settling-block--3 { animation-delay: 0.16s; }
.settling-block--4 { animation-delay: 0.24s; }
.settling-block--5 { animation-delay: 0.32s; }
.settling-block--6 { animation-delay: 0.4s; }

.floor-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.floor-text {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--phosphor);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.floor-colophon {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--silt);
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
    opacity: 0.7;
}

/* ==========================================
   FADE REVEAL (scroll-triggered)
   ========================================== */
.fade-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   INTERACTIVE HOVER GLOW on masonry blocks
   ========================================== */
.masonry-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 180, 216, 0.04) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.masonry-block:hover::after {
    opacity: 1;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blob-hero {
        width: 300px;
        height: 300px;
    }

    .blob-hero-secondary {
        width: 180px;
        height: 180px;
    }

    .block-tall {
        grid-row: span 1;
        min-height: auto;
    }

    .current-channel {
        height: 50vh;
    }
}

@media (max-width: 560px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }

    .masonry-zone {
        padding: 2rem 1rem;
    }

    .masonry-block {
        padding: 1.5rem;
    }

    .block-body {
        font-size: 0.95rem;
    }

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

    .current-channel {
        height: 40vh;
    }

    .current-fragment--text {
        max-width: 240px;
        padding: 1rem 1.2rem;
    }

    .settling-floor {
        min-height: 60vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blob,
    .block-blob-decor,
    .collage-drift-circle {
        animation: none;
    }

    .noise-overlay {
        animation: none;
    }

    .fade-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .masonry-block.bobbing {
        animation: none;
    }

    .hero-title .char {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
