/* reasr.one — Zen Stone Garden
   Typography: Merriweather" (Google Fonts) for grounded headings. Generous meditative spacing.
   Body: Lato" (Google Fonts) for readable body text.
   Scroll: Intersection Observer. used for scroll-triggered reveals.
*/

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

/* === Palette ===
   Warm Stone  #E8E2D8 — background
   Deep Earth  #3A3228 — headings
   Moss Gray   #6B6558 — body text
   Sage Green  #8B9A7B — primary accent
   Clay Brown  #A89078 — secondary accent
   Soft Cream  #F5F0E8 — card surfaces
*/

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #6B6558;
    background-color: #E8E2D8;
    overflow-x: hidden;
    position: relative;
}

/* === Parallax Background Layers === */
.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.parallax-layer-1 {
    background:
        radial-gradient(ellipse 600px 600px at 15% 20%, rgba(139, 154, 123, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 80% 60%, rgba(168, 144, 120, 0.06) 0%, transparent 70%);
}

.parallax-layer-2 {
    background:
        radial-gradient(ellipse 500px 500px at 70% 15%, rgba(139, 154, 123, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 350px 350px at 25% 75%, rgba(168, 144, 120, 0.04) 0%, transparent 70%);
}

.parallax-layer-3 {
    background:
        radial-gradient(ellipse 800px 300px at 50% 50%, rgba(245, 240, 232, 0.3) 0%, transparent 70%);
}

/* === Organic Blobs === */
.blob {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.12;
    will-change: transform;
}

.blob-1 {
    width: 320px;
    height: 280px;
    background: #8B9A7B;
    border-radius: 60% 40% 50% 70% / 55% 65% 45% 50%;
    top: 8%;
    left: -5%;
    animation: blobDrift1 25s ease-in-out infinite;
}

.blob-2 {
    width: 200px;
    height: 240px;
    background: #A89078;
    border-radius: 45% 55% 65% 35% / 50% 40% 60% 55%;
    top: 35%;
    right: -3%;
    animation: blobDrift2 30s ease-in-out infinite;
}

.blob-3 {
    width: 260px;
    height: 220px;
    background: #8B9A7B;
    border-radius: 55% 45% 40% 60% / 60% 50% 55% 45%;
    top: 60%;
    left: 5%;
    animation: blobDrift3 28s ease-in-out infinite;
}

.blob-4 {
    width: 180px;
    height: 200px;
    background: #A89078;
    border-radius: 50% 60% 45% 55% / 45% 55% 50% 60%;
    top: 15%;
    right: 10%;
    animation: blobDrift4 22s ease-in-out infinite;
}

.blob-5 {
    width: 240px;
    height: 190px;
    background: #8B9A7B;
    border-radius: 65% 35% 55% 45% / 50% 60% 40% 55%;
    bottom: 10%;
    right: 8%;
    animation: blobDrift5 26s ease-in-out infinite;
}

@keyframes blobDrift1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, 15px) rotate(3deg); }
    66% { transform: translate(-10px, 25px) rotate(-2deg); }
}

@keyframes blobDrift2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-15px, 20px) rotate(-4deg); }
    66% { transform: translate(10px, -15px) rotate(2deg); }
}

@keyframes blobDrift3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -10px) rotate(2deg); }
    66% { transform: translate(-20px, 10px) rotate(-3deg); }
}

@keyframes blobDrift4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-10px, -20px) rotate(-2deg); }
    66% { transform: translate(15px, 10px) rotate(3deg); }
}

@keyframes blobDrift5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, 15px) rotate(2deg); }
    66% { transform: translate(-15px, -10px) rotate(-4deg); }
}

/* === Sections === */
.section {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 12vh 1.5rem;
}

.section-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* === Parallax Section Backgrounds === */
.section-hero {
    background:
        linear-gradient(180deg, rgba(232, 226, 216, 0) 0%, rgba(232, 226, 216, 0.6) 100%),
        linear-gradient(135deg, rgba(139, 154, 123, 0.05) 0%, rgba(168, 144, 120, 0.05) 100%);
    background-attachment: fixed;
}

.section-philosophy {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(139, 154, 123, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, rgba(245, 240, 232, 0.3) 0%, rgba(232, 226, 216, 0) 100%);
    background-attachment: fixed;
}

.section-essence {
    background:
        radial-gradient(ellipse at 70% 50%, rgba(168, 144, 120, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, rgba(232, 226, 216, 0) 0%, rgba(245, 240, 232, 0.2) 100%);
    background-attachment: fixed;
}

.section-practice {
    background:
        radial-gradient(ellipse at 40% 40%, rgba(139, 154, 123, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 70%, rgba(168, 144, 120, 0.04) 0%, transparent 55%);
    background-attachment: fixed;
}

.section-contemplation {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(245, 240, 232, 0.4) 0%, transparent 70%);
    background-attachment: fixed;
}

.section-closing {
    background:
        linear-gradient(180deg, rgba(232, 226, 216, 0) 0%, rgba(58, 50, 40, 0.04) 100%);
    background-attachment: fixed;
}

/* === Typography === */
h1 {
    font-family: 'Merriweather', serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    color: #3A3228;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    color: #3A3228;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

p {
    max-width: 600px;
    color: #6B6558;
    font-size: 1.1rem;
    line-height: 1.9;
}

.subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.15rem;
    font-weight: 300;
    color: #A89078;
    letter-spacing: 0.08em;
    text-transform: lowercase;
}

/* === Zen Stones === */
.zen-stone {
    display: block;
    background: transparent;
    border: 2px solid rgba(139, 154, 123, 0.3);
    flex-shrink: 0;
}

.zen-stone-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.zen-stone-soft-square {
    width: 50px;
    height: 50px;
    border-radius: 16px;
}

.zen-stone-small {
    width: 40px;
    height: 40px;
}

.zen-stone-large {
    width: 80px;
    height: 80px;
}

.zen-stone-tiny {
    width: 16px;
    height: 16px;
    border-width: 1.5px;
}

.zen-stone-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

/* === Scroll-Triggered Reveals === */
.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stagger child reveals slightly */
.section-content .reveal:nth-child(2) {
    transition-delay: 0.15s;
}

.section-content .reveal:nth-child(3) {
    transition-delay: 0.3s;
}

/* === Responsive === */
@media (max-width: 768px) {
    .section {
        padding: 8vh 1.25rem;
    }

    .blob {
        opacity: 0.07;
    }

    .blob-1 { width: 200px; height: 180px; }
    .blob-2 { width: 140px; height: 160px; }
    .blob-3 { width: 180px; height: 150px; }
    .blob-4 { width: 120px; height: 140px; }
    .blob-5 { width: 160px; height: 130px; }

    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 6vh 1rem;
        min-height: 80vh;
    }

    .blob {
        opacity: 0.05;
    }

    .zen-stone-large {
        width: 60px;
        height: 60px;
    }
}
