/* =============================================
   mosoon.org - Forest Earth Organic Stylesheet
   ============================================= */

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

:root {
    --forest-cream: #F0E8D8;
    --moss-green: #4A7050;
    --earth-brown: #6A4830;
    --bark-dark: #2A1810;
    --leaf-light: #A0C080;
    --soil-warm: #8A6840;
    --fern-soft: #7AA068;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--forest-cream);
    color: var(--bark-dark);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- SVG Defs Hidden --- */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background-color: var(--forest-cream);
}

.hero-watercolor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 5;
    margin-left: clamp(8%, 12vw, 18%);
    margin-top: -5vh;
}

.logotype {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(42px, 6vw, 80px);
    color: var(--bark-dark);
    letter-spacing: 0.02em;
    opacity: 0;
    animation: inkDry 1000ms ease-out 300ms forwards;
}

.hero-tagline {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(16px, 2vw, 24px);
    color: var(--soil-warm);
    margin-top: 0.5em;
    margin-left: 0.3em;
    opacity: 0;
    animation: inkDry 1000ms ease-out 800ms forwards;
}

@keyframes inkDry {
    0% {
        opacity: 0;
        filter: blur(2px);
    }
    60% {
        filter: blur(0.5px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* --- Nature Illustrations --- */
.nature-illustration {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
}

.nature-fern-left {
    left: 3%;
    bottom: 10%;
    width: clamp(60px, 8vw, 120px);
    animation: emergeSlow 1200ms ease-out 600ms forwards;
}

.nature-fern-right {
    right: 5%;
    top: 15%;
    width: clamp(50px, 6vw, 100px);
    animation: emergeSlow 1200ms ease-out 900ms forwards;
}

.nature-leaf-top {
    right: 12%;
    top: 8%;
    width: clamp(35px, 4vw, 70px);
    animation: emergeSlow 1200ms ease-out 1100ms forwards;
}

.nature-mushroom {
    left: 15%;
    bottom: 18%;
    width: clamp(30px, 3.5vw, 55px);
    animation: emergeSlow 1200ms ease-out 1300ms forwards;
}

@keyframes emergeSlow {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =============================================
   CONTENT SECTIONS
   ============================================= */
.content-section {
    position: relative;
    padding: clamp(60px, 8vh, 120px) 0;
    overflow: hidden;
}

/* Reveal-on-scroll */
.section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero is always visible after animations */
.hero.visible {
    opacity: 1;
    transform: none;
}

/* --- Asymmetric Layout --- */
.section-left .section-inner {
    margin-left: clamp(5%, 8vw, 15%);
    margin-right: clamp(20%, 30vw, 45%);
    max-width: 600px;
}

.section-right .section-inner {
    margin-left: auto;
    margin-right: clamp(5%, 10vw, 15%);
    max-width: 600px;
    width: clamp(45%, 50vw, 55%);
}

/* --- Watercolor Section Backgrounds --- */
.section-watercolor {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 110%;
    height: 120%;
    z-index: 0;
    pointer-events: none;
}

/* --- Organic Panels --- */
.organic-panel {
    position: relative;
    z-index: 2;
    padding: clamp(30px, 4vw, 50px);
    background: rgba(240, 232, 216, 0.6);
    border-radius: 2px;
}

.panel-1 {
    clip-path: url(#organic-edge-1);
}

.panel-2 {
    clip-path: url(#organic-edge-2);
}

.panel-3 {
    clip-path: url(#organic-edge-3);
}

.panel-4 {
    clip-path: url(#organic-edge-1);
}

/* --- Section Typography --- */
.section-annotation {
    display: block;
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 18px);
    color: var(--soil-warm);
    margin-bottom: 0.8em;
    opacity: 0.75;
}

.section-heading {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 48px);
    color: var(--moss-green);
    margin-bottom: 0.6em;
    line-height: 1.2;
}

.section-body {
    color: var(--bark-dark);
    margin-bottom: 1.2em;
    max-width: 540px;
}

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

/* --- Annotation (handwritten) class --- */
.annotation {
    font-family: 'Caveat', cursive;
    font-weight: 400;
}

/* --- Botanical Accents --- */
.botanical-accent {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease 0.4s;
}

.section.visible .botanical-accent {
    opacity: 1;
}

.accent-seeds {
    right: clamp(8%, 15vw, 25%);
    bottom: 10%;
    width: clamp(60px, 7vw, 100px);
}

.accent-leaves {
    left: clamp(5%, 8vw, 12%);
    top: 15%;
    width: clamp(50px, 6vw, 90px);
}

.accent-mushroom {
    right: clamp(10%, 18vw, 30%);
    top: 20%;
    width: clamp(45px, 5vw, 80px);
}

/* =============================================
   PROJECTS LIST
   ============================================= */
.project-list {
    margin-top: 1.5em;
}

.project-item {
    margin-bottom: 2em;
    padding-left: 1.2em;
    border-left: 2px solid var(--leaf-light);
    position: relative;
}

.project-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0.3em;
    width: 8px;
    height: 8px;
    background: var(--fern-soft);
    border-radius: 50%;
}

.project-title {
    font-size: clamp(18px, 2vw, 26px);
    color: var(--earth-brown);
    margin-bottom: 0.3em;
}

/* =============================================
   CONNECT CTA
   ============================================= */
.connect-cta {
    margin-top: 2em;
    padding: 1em 1.5em;
    display: inline-block;
    border: 1px solid var(--moss-green);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease;
}

.connect-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--moss-green);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.connect-cta:hover::before {
    opacity: 0.08;
}

.cta-text {
    position: relative;
    z-index: 1;
    font-size: clamp(16px, 1.8vw, 22px);
    color: var(--moss-green);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    position: relative;
    padding: clamp(60px, 8vh, 100px) 0 clamp(40px, 5vh, 60px);
    text-align: center;
    overflow: hidden;
}

.footer-watercolor {
    position: absolute;
    top: 0;
    left: -5%;
    width: 110%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.footer-logo {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    color: var(--moss-green);
}

.footer-note {
    font-size: clamp(14px, 1.2vw, 18px);
    color: var(--soil-warm);
    opacity: 0.8;
}

.footer-botanical {
    position: relative;
    z-index: 1;
    display: block;
    margin: 2em auto 0;
    width: clamp(120px, 15vw, 200px);
    pointer-events: none;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 768px) {
    .section-left .section-inner {
        margin-left: 6%;
        margin-right: 6%;
        max-width: none;
    }

    .section-right .section-inner {
        margin-left: 6%;
        margin-right: 6%;
        max-width: none;
        width: auto;
    }

    .hero-content {
        margin-left: 8%;
    }

    .nature-fern-left,
    .nature-fern-right,
    .nature-leaf-top,
    .nature-mushroom {
        display: none;
    }

    .botanical-accent {
        display: none;
    }

    .organic-panel {
        clip-path: none;
        border-left: 3px solid var(--leaf-light);
        border-radius: 0;
    }

    .accent-seeds,
    .accent-leaves,
    .accent-mushroom {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }

    .content-section {
        padding: clamp(40px, 6vh, 80px) 0;
    }

    .organic-panel {
        padding: clamp(20px, 4vw, 35px);
    }
}
