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

:root {
    --deep-indigo: #0c0e1a;
    --dark-navy: #141728;
    --midnight: #1b1f3b;
    --slate-blue: #2a3d4a;
    --teal: #4a7c8a;
    --grey: #8a8b92;
    --light-grey: #d1d3dc;
    --gold: #c4a35a;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-indigo);
    color: var(--light-grey);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    mix-blend-mode: difference;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.4rem;
    color: var(--light-grey);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--grey);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.diagonal-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
    margin-top: -4vw;
    padding: 8rem 3rem;
}

.diagonal-section:first-of-type {
    margin-top: 0;
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

.diagonal-section:last-of-type {
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
}

.section-1 {
    background: linear-gradient(135deg, var(--deep-indigo) 0%, var(--midnight) 100%);
}

.section-2 {
    background: linear-gradient(135deg, var(--midnight) 0%, var(--slate-blue) 100%);
}

.section-3 {
    background: linear-gradient(135deg, var(--slate-blue) 0%, var(--dark-navy) 100%);
}

.section-4 {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--midnight) 100%);
}

.section-5 {
    background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-indigo) 100%);
}

.section-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.section-number {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--teal);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1.0;
    letter-spacing: 0.03em;
    color: var(--light-grey);
    margin-bottom: 2rem;
}

.section-body {
    font-family: 'Source Serif 4', serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.8;
    color: var(--grey);
    margin-bottom: 2rem;
}

.annotation {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--gold);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(196, 163, 90, 0.2);
}

.dot-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.15;
    background-image: radial-gradient(circle, var(--teal) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    right: 3rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    mix-blend-mode: difference;
    transition: opacity 0.5s ease;
}

.scroll-indicator span {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grey);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--teal);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

@media (max-width: 768px) {
    .nav-bar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .diagonal-section {
        padding: 6rem 1.5rem;
    }

    .dot-grid {
        background-size: 30px 30px;
    }
}
