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

body {
    font-family: 'Inter', sans-serif;
    background-color: #FAFAF8;
    color: #0A0A0A;
    overflow-x: hidden;
}

:root {
    --color-black: #0A0A0A;
    --color-dark-gray: #1A1A1A;
    --color-charcoal: #3A3A38;
    --color-medium-gray: #8A8A8A;
    --color-light-gray: #D0D0CE;
    --color-off-white: #F2F2EE;
    --color-cream: #FAFAF8;
}

/* Section base styles */
section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    background-color: #FAFAF8;
}

#section-4 {
    min-height: 120vh;
}

/* Stone Garden - Section 1 */
#section-1 {
    background-color: #FAFAF8;
    align-items: center;
}

#domain-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 400;
    color: #0A0A0A;
    letter-spacing: 0.04em;
    grid-column: 3 / 9;
    grid-row: 3;
    margin-top: -10%;
    opacity: 0;
    animation: fadeInDomain 2s ease-in-out forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInDomain {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.line-break {
    grid-column: 1 / 13;
    grid-row: 6;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        #3A3A38 0px,
        #3A3A38 30px,
        #D0D0CE 30px,
        #D0D0CE 60px
    );
    opacity: 0;
    animation: fadeInLine 2s ease-in-out forwards;
    animation-delay: 1.2s;
}

@keyframes fadeInLine {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.4;
    }
}

/* Philosophy Section - Section 2 */
#section-2 {
    align-items: center;
    background-color: #FAFAF8;
}

#philosophy-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 400;
    color: #0A0A0A;
    letter-spacing: 0.04em;
    grid-column: 2 / 7;
    grid-row: 4;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    animation-delay: 0.5s;
}

#philosophy-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    color: #1A1A1A;
    line-height: 1.6;
    letter-spacing: 0.02em;
    grid-column: 2 / 8;
    grid-row: 5;
    max-width: 400px;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    animation-delay: 1s;
}

.leaf {
    width: 120px;
    height: 120px;
    grid-column: 10 / 13;
    grid-row: 4 / 6;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
    animation-delay: 1.5s;
}

.leaf-1 {
    transform: rotate(-25deg);
}

/* Craft Section - Section 3 */
#section-3 {
    align-items: center;
    background-color: #FAFAF8;
}

#craft-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 400;
    color: #0A0A0A;
    letter-spacing: 0.04em;
    grid-column: 7 / 12;
    grid-row: 4;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    animation-delay: 0.5s;
}

#craft-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    color: #1A1A1A;
    line-height: 1.6;
    letter-spacing: 0.02em;
    grid-column: 5 / 11;
    grid-row: 5;
    max-width: 400px;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    animation-delay: 1s;
}

.stone {
    width: 100px;
    height: 110px;
    grid-column: 2 / 4;
    grid-row: 4 / 6;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
    animation-delay: 1.5s;
}

.stone-1 {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Closing Section - Section 4 */
#section-4 {
    align-items: flex-end;
    justify-items: center;
    background-color: #FAFAF8;
}

.closing-space {
    grid-column: 1 / 13;
    grid-row: 1;
    height: 50vh;
}

#closing-text {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: #8A8A8A;
    letter-spacing: 0.04em;
    grid-column: 4 / 10;
    grid-row: 3;
    margin-bottom: 8vh;
    text-align: center;
    background-color: #F2F2EE;
    padding: 2rem;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
    animation-delay: 0.8s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #domain-title {
        grid-column: 1 / 13;
        text-align: center;
    }

    #philosophy-title,
    #philosophy-text {
        grid-column: 1 / 13;
        text-align: center;
        padding: 0 1rem;
    }

    #craft-title,
    #craft-text {
        grid-column: 1 / 13;
        text-align: center;
        padding: 0 1rem;
    }

    .leaf {
        grid-column: 5 / 9;
        margin-top: 2rem;
    }

    .stone {
        grid-column: 5 / 9;
        margin-top: 2rem;
    }

    #closing-text {
        grid-column: 1 / 13;
        padding: 0 1rem;
    }
}
