/* continu.st - Zero-border watercolor design */
/* Palette:
   Mist:      #f0e8e0
   Blush:     #e8c4b8
   Sage:      #b8ccb4
   Lavender:  #c4b8d4
   Deep:      #5a4a64
   Cloud:     #f8f4f0
   Shadow:    #8a7a70
   Warmth:    #d4a888 (40% opacity)
*/

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

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

body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #5a4a64;
    background-color: #f0e8e0;
    background-image: linear-gradient(
        180deg,
        #f0e8e0 0%,
        #e8c4b8 20%,
        #b8ccb4 40%,
        #c4b8d4 60%,
        #f0e8e0 80%,
        #e8c4b8 100%
    );
    background-size: 100% 300vh;
    background-repeat: repeat;
    animation: breathe 12s ease-in-out infinite;
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes breathe {
    0%, 100% {
        background-size: 100% 300vh;
    }
    50% {
        background-size: 102% 306vh;
    }
}

/* A faint warm overlay (terracotta mist at 40%) softens contrast across the whole page. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 120% 80% at 50% 30%,
        rgba(212, 168, 136, 0.18) 0%,
        rgba(212, 168, 136, 0) 60%
    );
    mix-blend-mode: multiply;
    z-index: 0;
}

/* Cloud-white whisper layer at top to soften the reading field */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 90% 60% at 50% 100%,
        rgba(248, 244, 240, 0.25) 0%,
        rgba(248, 244, 240, 0) 70%
    );
    z-index: 0;
}

/* ------------------------------------------------
   Sections - Dissolve via CSS Masking
   ------------------------------------------------ */
.section {
    position: relative;
    z-index: 1;
    mask-image: linear-gradient(
        180deg,
        transparent 0%,
        black 80px,
        black calc(100% - 80px),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        180deg,
        transparent 0%,
        black 80px,
        black calc(100% - 80px),
        transparent 100%
    );
}

/* ------------------------------------------------
   Hero - The Mist
   ------------------------------------------------ */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.watercolor-layer {
    position: absolute;
    inset: -10%;
    opacity: 0.55;
    pointer-events: none;
    will-change: transform;
}

.watercolor-layer-1 {
    background: radial-gradient(
        ellipse 80% 60% at 30% 40%,
        #e8c4b8 0%,
        rgba(232, 196, 184, 0) 70%
    );
    mix-blend-mode: multiply;
    animation: drift1 18s ease-in-out infinite;
}

.watercolor-layer-2 {
    background: radial-gradient(
        ellipse 70% 50% at 70% 60%,
        #b8ccb4 0%,
        rgba(184, 204, 180, 0) 70%
    );
    mix-blend-mode: multiply;
    animation: drift2 22s ease-in-out infinite;
}

.watercolor-layer-3 {
    background: radial-gradient(
        ellipse 60% 70% at 50% 30%,
        #c4b8d4 0%,
        rgba(196, 184, 212, 0) 70%
    );
    mix-blend-mode: multiply;
    animation: drift3 15s ease-in-out infinite;
}

.watercolor-layer-4 {
    background: radial-gradient(
        ellipse 50% 50% at 80% 20%,
        rgba(212, 168, 136, 0.4) 0%,
        rgba(212, 168, 136, 0) 70%
    );
    mix-blend-mode: multiply;
    animation: drift4 28s ease-in-out infinite;
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(3%, 2%) scale(1.02); }
    66% { transform: translate(-2%, -1%) scale(0.99); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-2%, 3%) scale(1.01); }
    66% { transform: translate(2%, -2%) scale(1.03); }
}

@keyframes drift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(1%, -3%) scale(1.03); }
    66% { transform: translate(-3%, 1%) scale(0.98); }
}

@keyframes drift4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-3%, 2%) scale(1.04); }
}

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

.hero-mark {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: 2.5rem;
    color: #c4b8d4;
    letter-spacing: 0.4em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeReveal 2s ease-out 0.2s forwards;
}

.hero-title {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: #5a4a64;
    letter-spacing: 0.08em;
    line-height: 1.1;
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%
    );
    opacity: 0;
    transform: translateY(20px);
    animation: fadeReveal 2.5s ease-out 0.5s forwards;
}

.hero-subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: lowercase;
    color: #8a7a70;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeReveal 2s ease-out 1.8s forwards;
}

.hero-fade-cue {
    position: absolute;
    bottom: 6vh;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: lowercase;
    color: #8a7a70;
    z-index: 3;
    opacity: 0;
    animation: fadeReveal 2s ease-out 3s forwards, hoverFloat 4s ease-in-out 5s infinite;
}

@keyframes hoverFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.9; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 0.55; }
}

@keyframes fadeReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-mark.fadeReveal-mark { animation-fill-mode: forwards; }

/* ------------------------------------------------
   Flowing Sections
   ------------------------------------------------ */
.section-flow {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 12vh 5vw;
    overflow: hidden;
}

/* Gradient overlay zones for blend effects */
.section-flow::before,
.section-flow::after {
    content: '';
    position: absolute;
    inset: 0;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.section-flow::before {
    opacity: 0.22;
}

.section-flow::after {
    opacity: 0.14;
}

.section-odd::before {
    background: radial-gradient(
        ellipse 60% 50% at 18% 50%,
        #b8ccb4 0%,
        rgba(184, 204, 180, 0) 70%
    );
}

.section-odd::after {
    background: radial-gradient(
        ellipse 50% 40% at 85% 15%,
        rgba(212, 168, 136, 0.5) 0%,
        rgba(212, 168, 136, 0) 70%
    );
}

.section-even::before {
    background: radial-gradient(
        ellipse 60% 50% at 82% 50%,
        #c4b8d4 0%,
        rgba(196, 184, 212, 0) 70%
    );
}

.section-even::after {
    background: radial-gradient(
        ellipse 50% 40% at 15% 85%,
        #e8c4b8 0%,
        rgba(232, 196, 184, 0) 70%
    );
}

/* ------------------------------------------------
   Text Blocks - Floating Asymmetric
   ------------------------------------------------ */
.text-block {
    max-width: 540px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

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

.text-left {
    margin-left: 10%;
    margin-right: auto;
}

.text-right {
    margin-left: auto;
    margin-right: 10%;
}

.text-block h2 {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 4.5rem);
    color: #5a4a64;
    line-height: 1.15;
    margin-bottom: 1.4rem;
    letter-spacing: 0.005em;
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}

.text-block p {
    color: #5a4a64;
    margin-bottom: 1rem;
}

.text-block p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: #8a7a70;
}

.annotation {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.28em;
    text-transform: lowercase;
    color: #8a7a70;
    margin-bottom: 1rem;
}

/* Watercolor blob ornament that floats next to each text block */
.text-block::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(
        ellipse 60% 60% at 50% 50%,
        rgba(196, 184, 212, 0.45) 0%,
        rgba(196, 184, 212, 0) 70%
    );
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: -1;
    -webkit-mask-image: radial-gradient(
        ellipse at 50% 50%,
        black 30%,
        transparent 70%
    );
    mask-image: radial-gradient(
        ellipse at 50% 50%,
        black 30%,
        transparent 70%
    );
}

.text-left::after {
    top: -10%;
    right: -120px;
}

.text-right::after {
    bottom: -10%;
    left: -120px;
    background: radial-gradient(
        ellipse 60% 60% at 50% 50%,
        rgba(232, 196, 184, 0.5) 0%,
        rgba(232, 196, 184, 0) 70%
    );
}

/* ------------------------------------------------
   Closing Section
   ------------------------------------------------ */
.section-closing {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 10vh 5vw;
}

.closing-layer-1 {
    background: radial-gradient(
        ellipse 60% 50% at 50% 50%,
        #c4b8d4 0%,
        rgba(196, 184, 212, 0) 70%
    );
    mix-blend-mode: multiply;
    animation: drift1 24s ease-in-out infinite;
    opacity: 0.4;
}

.closing-layer-2 {
    background: radial-gradient(
        ellipse 50% 40% at 50% 50%,
        rgba(248, 244, 240, 0.6) 0%,
        rgba(248, 244, 240, 0) 70%
    );
    animation: drift2 30s ease-in-out infinite;
    opacity: 0.6;
}

.closing-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}

.closing-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.closing-annotation {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: lowercase;
    color: #8a7a70;
    margin-bottom: 1.4rem;
}

.closing-text {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 5vw, 3.6rem);
    color: #5a4a64;
    letter-spacing: 0.15em;
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 20%,
        black 80%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 20%,
        black 80%,
        transparent 100%
    );
}

.closing-mark {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: 2.5rem;
    color: #c4b8d4;
    margin-top: 1.8rem;
    letter-spacing: 0.4em;
    opacity: 0.7;
    animation: pulseMark 6s ease-in-out infinite;
}

@keyframes pulseMark {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.06); }
}

.closing-byline {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: lowercase;
    color: #8a7a70;
    margin-top: 2rem;
    opacity: 0.7;
}

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */
@media (max-width: 768px) {
    .text-left,
    .text-right {
        margin-left: 6%;
        margin-right: 6%;
    }

    .section-flow {
        min-height: 70vh;
        padding: 10vh 4vw;
    }

    .text-block::after {
        width: 160px;
        height: 160px;
    }

    .text-left::after { right: -80px; }
    .text-right::after { left: -80px; }
}

@media (max-width: 480px) {
    body {
        font-size: 1rem;
        line-height: 1.8;
    }

    .hero-subtitle {
        letter-spacing: 0.18em;
        font-size: 0.75rem;
    }

    .hero-mark {
        font-size: 2rem;
        letter-spacing: 0.3em;
    }

    .text-block {
        max-width: 100%;
    }

    .closing-mark {
        font-size: 2rem;
        letter-spacing: 0.3em;
    }
}
