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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0B1D2C;
    color: #F2EDE4;
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Hide native scrollbar (we replace it with the liquid scroll indicator) */
body::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ----------------- Vessel sections ----------------- */
.vessel-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 40px;
}

.hero-vessel {
    background: radial-gradient(ellipse at center, #0B1D2C 0%, #1B3A6B 100%);
}

.cobalt-vessel {
    background: radial-gradient(ellipse at 50% 60%, #1B3A6B 0%, #0B1D2C 80%);
}

.closing-vessel {
    background: radial-gradient(ellipse at center, #1B3A6B 0%, #0B1D2C 70%);
    min-height: 60vh;
}

.narrow-vessel {
    background: #0B1D2C;
}

.wide-vessel {
    background: linear-gradient(180deg, #0B1D2C 0%, #1B3A6B 50%, #0B1D2C 100%);
}

/* ----------------- Caustic layer ----------------- */
.caustic-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(212, 149, 58, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(123, 94, 167, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(27, 58, 107, 0.20) 0%, transparent 60%);
    filter: url(#caustic-bg);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    opacity: 0.9;
}

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

/* ----------------- Chromatic title ----------------- */
.chromatic-title {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.chroma-layer {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(4rem, 12vw, 8.5rem);
    display: block;
    line-height: 1;
    letter-spacing: 0.05em;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.chroma-gold {
    color: #D4953A;
    position: absolute;
    top: -1px;
    left: -1px;
    opacity: 0.55;
    mix-blend-mode: screen;
}

.chroma-purple {
    color: #7B5EA7;
    position: absolute;
    top: 1px;
    left: 1px;
    opacity: 0.55;
    mix-blend-mode: screen;
}

.chroma-base {
    color: #F2EDE4;
    position: relative;
}

.chromatic-title.small .chroma-layer {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

/* ----------------- Caustic typography reveal ----------------- */
[data-reveal] {
    -webkit-mask-image: radial-gradient(circle at 20% 50%, #000 0%, transparent 0%),
                        radial-gradient(circle at 75% 30%, #000 0%, transparent 0%),
                        radial-gradient(circle at 50% 80%, #000 0%, transparent 0%);
            mask-image: radial-gradient(circle at 20% 50%, #000 0%, transparent 0%),
                        radial-gradient(circle at 75% 30%, #000 0%, transparent 0%),
                        radial-gradient(circle at 50% 80%, #000 0%, transparent 0%);
    -webkit-mask-composite: source-over;
            mask-composite: add;
    transition: -webkit-mask-image 1.8s cubic-bezier(0.23, 1, 0.32, 1),
                        mask-image 1.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.visible [data-reveal],
[data-reveal].revealed {
    -webkit-mask-image: radial-gradient(circle at 20% 50%, #000 100%, transparent 100%),
                        radial-gradient(circle at 75% 30%, #000 100%, transparent 100%),
                        radial-gradient(circle at 50% 80%, #000 100%, transparent 100%);
            mask-image: radial-gradient(circle at 20% 50%, #000 100%, transparent 100%),
                        radial-gradient(circle at 75% 30%, #000 100%, transparent 100%),
                        radial-gradient(circle at 50% 80%, #000 100%, transparent 100%);
}

/* ----------------- Hero tagline ----------------- */
.hero-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    font-weight: 300;
    color: #C8CDD0;
    letter-spacing: 0.25em;
    margin-top: 22px;
    text-transform: uppercase;
}

.prismatic-edge {
    width: 80px;
    height: 1px;
    margin: 36px auto 0;
    background: linear-gradient(90deg, transparent, #D4953A, #7B5EA7, #1B3A6B, transparent);
    opacity: 0.7;
}

/* ----------------- Diptych ----------------- */
.diptych-layout {
    display: flex;
    align-items: stretch;
    max-width: 1100px;
    width: 100%;
    gap: 0;
    position: relative;
    z-index: 5;
}

.diptych-panel {
    flex: 1;
    padding: 60px 50px;
}

.diptych-divider {
    width: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meniscus-line {
    width: 1px;
    height: 80%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(212, 149, 58, 0.5),
        rgba(123, 94, 167, 0.5),
        transparent
    );
    box-shadow: 0 0 8px rgba(212, 149, 58, 0.25);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #F2EDE4;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #C8CDD0;
}

.right-panel {
    text-align: right;
}

.right-panel .vessel-label {
    text-align: right;
}

.diptych-layout.mirrored .right-panel {
    text-align: left;
}

/* ----------------- Vessel content ----------------- */
.vessel-content {
    max-width: 680px;
    z-index: 10;
    position: relative;
}

.vessel-content.centered {
    text-align: center;
}

.vessel-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 400;
    color: #D4953A;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.vessel-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #F2EDE4;
    margin-bottom: 25px;
    line-height: 1.15;
    text-shadow: 1px 0 0 rgba(212, 149, 58, 0.25), -1px 0 0 rgba(123, 94, 167, 0.25);
}

.vessel-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #C8CDD0;
}

.prismatic-bar {
    width: 200px;
    height: 2px;
    margin-top: 40px;
    background: linear-gradient(90deg, #D4953A, #7B5EA7, #1B3A6B);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(212, 149, 58, 0.35);
}

.vessel-content.centered .prismatic-bar {
    margin-left: auto;
    margin-right: auto;
}

/* Reflected ghost text */
.reflected-text {
    position: absolute;
    bottom: 8%;
    right: 8%;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4.5rem);
    color: #F2EDE4;
    opacity: 0.10;
    transform: scaleX(-1) scaleY(0.85);
    filter: blur(2px);
    pointer-events: none;
    letter-spacing: 0.02em;
    z-index: 2;
}

/* ----------------- Bottle silhouette ----------------- */
.bottle-silhouette {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 320px;
    filter: url(#liquid-warp);
}

.bottle-neck {
    width: 30px;
    height: 70px;
    background: linear-gradient(180deg, rgba(242, 237, 228, 0.15), rgba(212, 149, 58, 0.18));
    border-radius: 4px 4px 0 0;
    border: 1px solid rgba(242, 237, 228, 0.18);
    border-bottom: none;
}

.bottle-shoulder {
    width: 100px;
    height: 30px;
    background: linear-gradient(180deg, rgba(212, 149, 58, 0.18), rgba(123, 94, 167, 0.15));
    border-left: 1px solid rgba(242, 237, 228, 0.18);
    border-right: 1px solid rgba(242, 237, 228, 0.18);
    clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
}

.bottle-body {
    width: 130px;
    height: 190px;
    background: linear-gradient(180deg, rgba(123, 94, 167, 0.12), rgba(27, 58, 107, 0.20));
    border-radius: 4px 4px 14px 14px;
    border: 1px solid rgba(242, 237, 228, 0.18);
    border-top: none;
    position: relative;
    overflow: hidden;
}

.bottle-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 30%, rgba(242, 237, 228, 0.15), transparent 60%);
    pointer-events: none;
}

.bottle-body::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 8%;
    width: 84%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 149, 58, 0.5), transparent);
    animation: liquid-shimmer 4s ease-in-out infinite;
}

@keyframes liquid-shimmer {
    0%, 100% { top: 30%; opacity: 0.4; }
    50% { top: 36%; opacity: 0.75; }
}

/* ----------------- Caustic mesh (visible curves) ----------------- */
.caustic-mesh {
    position: relative;
    width: 100%;
    height: 120px;
    margin-top: 50px;
    opacity: 0.35;
}

.caustic-curve {
    position: absolute;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4953A, transparent);
    border-radius: 50%;
    filter: blur(1px);
}

.curve-a { top: 10%; animation: undulate 9s ease-in-out infinite; }
.curve-b { top: 50%; animation: undulate 11s ease-in-out infinite reverse; background: linear-gradient(90deg, transparent, #7B5EA7, transparent); }
.curve-c { top: 85%; animation: undulate 13s ease-in-out infinite; background: linear-gradient(90deg, transparent, #C8CDD0, transparent); }

@keyframes undulate {
    0%, 100% { transform: translateX(-5%) scaleY(1); opacity: 0.4; }
    50% { transform: translateX(5%) scaleY(2.4); opacity: 0.85; }
}

/* ----------------- Closing ----------------- */
.closing-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.closing-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    font-weight: 300;
    color: #C8CDD0;
    letter-spacing: 0.18em;
    margin-top: 22px;
    text-transform: lowercase;
}

.closing-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 300;
    color: #D4953A;
    letter-spacing: 0.4em;
    margin-top: 36px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ----------------- Float-in transitions ----------------- */
.vessel-section .vessel-content,
.vessel-section .diptych-layout,
.vessel-section .hero-content,
.vessel-section .closing-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.4s cubic-bezier(0.23, 1, 0.32, 1),
                transform 1.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.vessel-section.visible .vessel-content,
.vessel-section.visible .diptych-layout,
.vessel-section.visible .hero-content,
.vessel-section.visible .closing-content {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------- Bubbles ----------------- */
.bubble-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(242, 237, 228, 0.55), rgba(200, 205, 208, 0.18) 60%, transparent 80%);
    border: 1px solid rgba(200, 205, 208, 0.25);
    will-change: transform, opacity;
    animation: bubble-rise linear infinite, bubble-drift ease-in-out infinite;
}

@keyframes bubble-rise {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    8% { opacity: 0.6; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-110vh) translateX(0); opacity: 0; }
}

@keyframes bubble-drift {
    0%, 100% { margin-left: 0; }
    50% { margin-left: 30px; }
}

/* ----------------- Liquid scroll indicator ----------------- */
.liquid-scroll {
    position: fixed;
    top: 0;
    right: 0;
    width: 6px;
    height: 100vh;
    background: rgba(11, 29, 44, 0.5);
    border-left: 1px solid rgba(200, 205, 208, 0.12);
    z-index: 100;
    pointer-events: none;
}

.liquid-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, rgba(212, 149, 58, 0.3) 0%, #D4953A 35%, #B7822E 100%);
    box-shadow: 0 0 12px rgba(212, 149, 58, 0.6), inset 0 -2px 6px rgba(11, 29, 44, 0.3);
    transition: height 0.18s cubic-bezier(0.23, 1, 0.32, 1);
}

.liquid-top {
    position: absolute;
    top: -8px;
    left: -4px;
    width: 14px;
    height: 12px;
    overflow: visible;
}

/* ----------------- Message fragments ----------------- */
.message-fragment {
    position: absolute;
    font-family: 'Karla', sans-serif;
    font-size: 0.78rem;
    color: #D4953A;
    opacity: 0.32;
    font-style: italic;
    letter-spacing: 0.05em;
    pointer-events: none;
    z-index: 4;
    max-width: 200px;
    line-height: 1.4;
}

.frag-1 { top: 12%; right: 7%; transform: rotate(-8deg); }
.frag-2 { bottom: 10%; left: 5%; transform: rotate(4deg); }
.frag-3 { top: 18%; left: 6%; transform: rotate(-4deg); }
.frag-4 { bottom: 16%; right: 8%; transform: rotate(6deg); color: #7B5EA7; }

/* ----------------- Responsive ----------------- */
@media (max-width: 768px) {
    .diptych-layout {
        flex-direction: column;
    }

    .diptych-divider {
        width: 80%;
        height: 1px;
        margin: 0 auto;
    }

    .meniscus-line {
        width: 100%;
        height: 1px;
        background: linear-gradient(
            to right,
            transparent,
            rgba(212, 149, 58, 0.5),
            rgba(123, 94, 167, 0.5),
            transparent
        );
    }

    .right-panel {
        text-align: left;
    }

    .right-panel .vessel-label {
        text-align: left;
    }

    .vessel-section {
        padding: 60px 25px;
    }

    .diptych-panel {
        padding: 40px 20px;
    }

    .reflected-text {
        font-size: 1.6rem;
        bottom: 4%;
        right: 4%;
    }

    .message-fragment {
        font-size: 0.7rem;
        max-width: 140px;
    }
}
