:root {
    --burnt-carbon: #1a0e05;
    --terracotta: #c8582a;
    --ash: #8a7060;
    --parchment: #f5ede4;
    --copper: #e8a878;
    --deep-shadow: rgba(26,14,5,0.8);
    --scroll-y: 0;
}

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

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

body {
    background: var(--burnt-carbon);
    color: var(--parchment);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Parallax layers */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: translateY(calc(var(--scroll-y) * -0.3px));
    pointer-events: none;
    background:
        repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg 55deg, rgba(200,88,42,0.03) 55deg 60deg) 0 0 / 200px 200px,
        radial-gradient(ellipse at 30% 20%, rgba(232,168,120,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(200,88,42,0.04) 0%, transparent 50%);
}

.parallax-mid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: translateY(calc(var(--scroll-y) * -0.6px));
    pointer-events: none;
    background:
        repeating-linear-gradient(60deg, transparent, transparent 80px, rgba(138,112,96,0.03) 80px, rgba(138,112,96,0.03) 81px),
        repeating-linear-gradient(-60deg, transparent, transparent 80px, rgba(138,112,96,0.03) 80px, rgba(138,112,96,0.03) 81px);
}

/* Main content */
main {
    position: relative;
    z-index: 2;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    scroll-snap-align: start;
}

/* Hexagonal containers */
.hex-container {
    max-width: 600px;
    padding: 4rem 3rem;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: var(--deep-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hex-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 4vw;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--parchment);
    margin-bottom: 1rem;
}

.section-title .accent {
    color: var(--terracotta);
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--ash);
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--parchment);
    max-width: 380px;
    line-height: 1.8;
}

.data-annotation {
    font-family: 'Azeret Mono', monospace;
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--copper);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
}

/* Section-specific accent borders */
.section-genesis .hex-container {
    border: none;
    background: linear-gradient(135deg, var(--deep-shadow) 0%, rgba(200,88,42,0.1) 100%);
}

.section-erosion .hex-container {
    background: linear-gradient(135deg, var(--deep-shadow) 0%, rgba(138,112,96,0.15) 100%);
}

.section-crisis .hex-container {
    background: linear-gradient(135deg, var(--deep-shadow) 0%, rgba(200,88,42,0.2) 100%);
}

.section-renewal .hex-container {
    background: linear-gradient(135deg, var(--deep-shadow) 0%, rgba(232,168,120,0.15) 100%);
}

.section-end .hex-container {
    background: rgba(26,14,5,0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 7vw;
    }
    .hex-container {
        padding: 3rem 2rem;
        min-height: 350px;
        max-width: 90vw;
    }
}
