/* desca.works — Zen Digital Contemplation
   Palette: #F8F4F0 #E0DCD4 #D4CCC0 #2A2824 #6A6460 #7AA080 #A08070 #7090A0
*/

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F8F4F0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        rgba(224, 220, 212, 0.2) 15px,
        rgba(224, 220, 212, 0.2) 16px
    );
    color: #2A2824;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    line-height: 1.9;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Atmosphere Layer */
#atmosphere-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.atmo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.atmo-shape.shape-circle {
    border-radius: 50%;
}

.atmo-shape.shape-oval {
    border-radius: 50%;
}

.atmo-shape.shape-rect {
    border-radius: 24px;
}

.atmo-shape.sage {
    background: radial-gradient(circle at center, rgba(122, 160, 128, 0.6), transparent 70%);
}

.atmo-shape.terra {
    background: radial-gradient(circle at center, rgba(160, 128, 112, 0.6), transparent 70%);
}

.atmo-shape.sky {
    background: radial-gradient(circle at center, rgba(112, 144, 160, 0.6), transparent 70%);
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 32px;
    right: 40px;
    z-index: 100;
    display: flex;
    gap: 48px;
}

.nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 13px;
    color: #6A6460;
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color 0.4s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2A2824;
}

/* Hero Section — Garden View */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.hero-golden-position {
    position: absolute;
    left: 62%;
    top: 38%;
    transform: translate(-50%, -50%);
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.08em;
    color: #2A2824;
    white-space: nowrap;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.hero-title.visible {
    opacity: 1;
    transform: scale(1);
}

.hero-dot {
    color: #7AA080;
}

.hero-shape-position {
    position: absolute;
    left: 25%;
    top: 60%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-shape-position.visible {
    opacity: 1;
}

.hero-accent-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(122, 160, 128, 0.25), transparent 70%);
}

/* Zen Connecting Lines */
.zen-line {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    opacity: 0;
    transform: scaleX(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 1;
    position: relative;
}

.zen-line.visible {
    opacity: 1;
    transform: scaleX(1);
}

/* Stone Sections */
.stone-section {
    position: relative;
    z-index: 1;
    padding: 60px 24px 120px;
    max-width: 1100px;
    margin: 0 auto;
}

.stone {
    max-width: 520px;
    padding: 40px 44px;
    opacity: 0;
    transform: scale(0.97);
    filter: blur(2px);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.stone.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.primary-stone {
    background: rgba(248, 244, 240, 0.6);
    box-shadow: 0 4px 20px rgba(42, 40, 36, 0.06);
    border-radius: 4px;
}

.secondary-stone {
    opacity: 0;
}

.secondary-stone.visible {
    opacity: 0.8;
}

.tertiary-stone {
    opacity: 0;
}

.tertiary-stone.visible {
    opacity: 0.4;
}

.stone-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: 0.08em;
    color: #2A2824;
    margin-bottom: 24px;
}

.stone-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    letter-spacing: 0.06em;
    color: #2A2824;
    margin-bottom: 8px;
}

.stone-body {
    color: #2A2824;
    margin-bottom: 16px;
}

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

.stone-meta {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 12px;
    color: #6A6460;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

/* Footer */
#footer {
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 1;
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 12px;
    color: #6A6460;
    letter-spacing: 0.06em;
}

/* Atmospheric Shape Animations */
@keyframes atmoDrift1 {
    0%, 100% { transform: translate(0, 0) scale(0.97); }
    50% { transform: translate(12px, -8px) scale(1.03); }
}

@keyframes atmoDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1.03); }
    50% { transform: translate(-10px, 15px) scale(0.97); }
}

@keyframes atmoDrift3 {
    0%, 100% { transform: translate(0, 0) scale(0.98); }
    50% { transform: translate(8px, 10px) scale(1.02); }
}

.atmo-shape:nth-child(1) { animation: atmoDrift1 40s ease-in-out infinite; }
.atmo-shape:nth-child(2) { animation: atmoDrift2 50s ease-in-out infinite; }
.atmo-shape:nth-child(3) { animation: atmoDrift3 45s ease-in-out infinite; }
.atmo-shape:nth-child(4) { animation: atmoDrift1 55s ease-in-out infinite; }
.atmo-shape:nth-child(5) { animation: atmoDrift2 35s ease-in-out infinite; }

/* Responsive */
@media (max-width: 768px) {
    .hero-golden-position {
        left: 50%;
        top: 40%;
    }

    .hero-shape-position {
        left: 50%;
        top: 65%;
    }

    .stone {
        margin-left: 5% !important;
        max-width: 90%;
    }

    #main-nav {
        top: 20px;
        right: 20px;
        gap: 28px;
    }

    .hero-accent-circle {
        width: 140px;
        height: 140px;
    }
}
