/* ppzz.lu — Zen Analogous Meditation
   Colors: #182028, #384858, #587080, #7898A8, #F2F0EC, #FAF8F4, #D0C8C0
   Font: JetBrains Mono (300, 400, 700) */

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

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

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #F2F0EC;
    color: #384858;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Parallax Sections ===== */
.parallax-section {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAF8F4;
}

.parallax-section:nth-child(odd) {
    background-color: #F2F0EC;
}

.section-hero {
    min-height: 100vh;
}

/* ===== Section Dividers — 2px stone-colored lines ===== */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #D0C8C0;
}

/* ===== Section Content ===== */
.section-content {
    max-width: 680px;
    width: 100%;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

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

/* ===== Typography — Display Headings ===== */
h1, h2 {
    font-family: 'JetBrains Mono', monospace;
    color: #182028;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
}

/* ===== Typography — Body Text ===== */
.body-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.9;
    color: #384858;
    margin-bottom: 2.5rem;
    text-align: left;
}

/* ===== Typography — Meditation Labels ===== */
.meditation-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #587080;
}

/* ===== Underline-Draw Sand Traces — Headings ===== */
.heading-draw {
    background-image: linear-gradient(#D0C8C0, #D0C8C0);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 0% 1px;
    padding-bottom: 0.4em;
    transition: background-size 0.5s ease;
}

.heading-draw.drawn {
    background-size: 100% 1px;
}

/* ===== Underline-Draw Sand Traces — Labels ===== */
.label-draw {
    background-image: linear-gradient(#7898A8, #7898A8);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 0% 1px;
    padding-bottom: 0.3em;
    transition: background-size 0.6s ease 0.2s;
    display: inline-block;
}

.label-draw.drawn {
    background-size: 100% 1px;
}

/* ===== Sand Trace SVG Lines ===== */
.sand-trace {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.sand-trace line {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    transition: stroke-dashoffset 1.8s ease;
}

.sand-trace.traced line {
    stroke-dashoffset: 0;
}

.sand-trace-hero {
    width: 60%;
    height: 2px;
    bottom: 35%;
    left: 20%;
    opacity: 0.5;
}

.sand-trace-left {
    width: 30%;
    height: 2px;
    top: 50%;
    left: 0;
    opacity: 0.4;
}

.sand-trace-right {
    width: 30%;
    height: 2px;
    top: 50%;
    right: 0;
    left: auto;
    opacity: 0.4;
}

.sand-trace-center {
    width: 50%;
    height: 2px;
    bottom: 30%;
    left: 25%;
    opacity: 0.5;
}

/* ===== Candle-Atmospheric Warm Glow ===== */
.candle-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(200,170,120,0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.candle-glow-offset {
    background: radial-gradient(circle at 40% 25%, rgba(200,170,120,0.06) 0%, transparent 55%);
}

/* ===== Geometric-Abstract Meditation Objects ===== */
.geometric-object {
    position: absolute;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.geometric-object.visible {
    opacity: 0.1;
}

.geometric-circle {
    border-radius: 50%;
}

.geometric-rect {
    border-radius: 0;
}

/* Hero geometric objects */
.geo-hero-1 {
    width: 320px;
    height: 320px;
    background-color: #7898A8;
    top: 15%;
    right: 10%;
}

.geo-hero-2 {
    width: 140px;
    height: 200px;
    background-color: #587080;
    bottom: 20%;
    left: 8%;
}

/* Contemplation geometric objects */
.geo-contemplate-1 {
    width: 200px;
    height: 200px;
    background-color: #384858;
    top: 25%;
    left: 5%;
}

.geo-contemplate-2 {
    width: 90px;
    height: 160px;
    background-color: #7898A8;
    bottom: 18%;
    right: 12%;
}

/* Balance geometric objects */
.geo-balance-1 {
    width: 180px;
    height: 120px;
    background-color: #7898A8;
    top: 10%;
    right: 12%;
}

.geo-balance-2 {
    width: 160px;
    height: 160px;
    background-color: #587080;
    bottom: 15%;
    left: 15%;
}

/* Precision geometric objects */
.geo-precision-1 {
    width: 240px;
    height: 240px;
    background-color: #384858;
    bottom: 10%;
    right: 8%;
}

.geo-precision-2 {
    width: 100px;
    height: 140px;
    background-color: #587080;
    top: 15%;
    left: 6%;
}

/* Emptiness geometric objects */
.geo-empty-1 {
    width: 100px;
    height: 280px;
    background-color: #587080;
    top: 5%;
    left: 10%;
}

.geo-empty-2 {
    width: 180px;
    height: 180px;
    background-color: #7898A8;
    bottom: 20%;
    right: 15%;
}

/* Return geometric objects */
.geo-return-1 {
    width: 260px;
    height: 260px;
    background-color: #384858;
    top: 20%;
    left: 8%;
}

.geo-return-2 {
    width: 120px;
    height: 80px;
    background-color: #7898A8;
    bottom: 25%;
    right: 10%;
}

/* ===== Parallax will-change hints ===== */
.parallax-section .geometric-object,
.parallax-section .candle-glow {
    will-change: transform;
}

/* ===== Hero-specific ===== */
.section-hero .section-content {
    padding-top: 0;
    padding-bottom: 0;
}

.section-hero h1 {
    margin-bottom: 1.2rem;
}

.section-hero .meditation-label {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .section-content {
        padding: 3rem 1.5rem;
    }

    .geometric-object {
        transform: scale(0.6);
    }

    .geo-hero-1 {
        right: -5%;
    }

    .geo-hero-2 {
        left: -5%;
    }

    .sand-trace-hero {
        width: 80%;
        left: 10%;
    }

    .sand-trace-left,
    .sand-trace-right {
        width: 40%;
    }

    .sand-trace-center {
        width: 70%;
        left: 15%;
    }
}

@media (max-width: 480px) {
    .section-content {
        padding: 2.5rem 1.2rem;
    }

    .geometric-object {
        transform: scale(0.4);
    }

    h1 {
        letter-spacing: 0.15em;
    }
}
