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

/* === Root & Palette === */
:root {
    --bone-white: #f4f0eb;
    --warm-ash: #c8bfaf;
    --sage: #7a8c7e;
    --charcoal: #3d3a35;
    --parchment: #e8e0d4;
    --clay: #b8a99a;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bone-white);
    color: var(--warm-ash);
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    line-height: 1.9;
    overflow-x: hidden;
    position: relative;
}

/* === Texture Overlay === */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* === 45-degree angle lines === */
.angle-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* === Opening Screen === */
.opening {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--charcoal);
    position: relative;
    z-index: 10;
}

.opening-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 12vw;
    color: var(--bone-white);
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
}

.opening-line {
    width: 300px;
    height: 2px;
    margin-top: 2rem;
    overflow: visible;
}

.opening-line .h-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: lineGrow 2s ease-in-out 1.5s forwards;
}

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

@keyframes lineGrow {
    to {
        x1: 0;
        x2: 800;
        stroke-dashoffset: 0;
    }
}

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

.content-island {
    max-width: 640px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease var(--delay, 0ms), transform 0.8s ease var(--delay, 0ms);
}

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

/* === Typography === */
.label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clay);
    display: block;
    margin-bottom: 2rem;
}

.label.attribution {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--charcoal);
    line-height: 1.15;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.body-text {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--warm-ash);
    max-width: 480px;
    margin: 0 auto;
}

.pull-quote {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 4.5rem);
    color: var(--sage);
    line-height: 1.3;
    border: none;
    padding: 0;
}

/* === Dark section === */
.section-dark {
    background-color: var(--charcoal);
}

.heading-light {
    color: var(--bone-white);
}

.body-light {
    color: var(--clay);
}

.label-light {
    color: var(--sage);
}

/* === Diamond motifs === */
.diamond-motif {
    margin-top: 3rem;
    opacity: 0;
    transition: opacity 1s ease;
}

.diamond-motif.visible {
    opacity: 0.4;
}

.diamond-line {
    stroke-dasharray: 72;
    stroke-dashoffset: 72;
    transition: stroke-dashoffset 1.5s ease;
}

.diamond-motif.visible .diamond-line {
    stroke-dashoffset: 0;
}

.motif-1 {
    position: absolute;
    right: 15%;
    bottom: 10%;
}

.motif-2 {
    position: absolute;
    left: 12%;
    top: 20%;
}

.motif-closing {
    position: static;
    margin: 0 auto 2rem;
    display: block;
}

/* === Botanical silhouettes === */
.botanical {
    position: absolute;
    left: 10%;
    bottom: 5%;
    opacity: 0.3;
}

.botanical-right {
    left: auto;
    right: 10%;
    bottom: 10%;
}

/* === Closing === */
.closing {
    min-height: 60vh;
}

.closing-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--charcoal);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bone-white);
}

::-webkit-scrollbar-thumb {
    background: var(--clay);
}

/* === Responsive === */
@media (max-width: 768px) {
    .opening-title {
        font-size: 15vw;
    }

    .content-section {
        padding: 5rem 1.5rem;
    }

    .botanical,
    .botanical-right {
        display: none;
    }

    .motif-1,
    .motif-2 {
        display: none;
    }
}
