/* ============================================
   valuator.dev — Styles
   Colors: #0d2b3e, #f4efe6, #9bb0bf, #c5974b, #c47a5a, #5a9e8f, #2c2418, #e8e0d0
   Fonts: Cormorant Garamond, Source Serif 4, DM Sans
   ============================================ */

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

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Source Serif 4', Georgia, serif;
    color: #2c2418;
    background: #f4efe6;
    overflow-x: hidden;
}

/* Progress Line */
.progress-line {
    position: fixed;
    top: 0;
    left: 40px;
    width: 1px;
    height: 0%;
    background: #c5974b;
    z-index: 100;
    transition: height 0.1s linear;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
    mix-blend-mode: difference;
}

.nav-logo {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #f4efe6;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: #f4efe6;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

/* Sections */
.section {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 60px;
}

.section-dark {
    background: #0d2b3e;
    color: #f4efe6;
}

.section-light {
    background: #f4efe6;
    color: #2c2418;
}

.section-inner {
    display: grid;
    grid-template-columns: minmax(0, 540px) 200px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

/* Text Column */
.text-column {
    grid-column: 1;
}

.heading-hero {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.heading-section {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.body-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.85;
    max-width: 540px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

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

/* Margin Notes (Tufte-style) */
.margin-note {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
    border-left: 1px solid #c5974b;
    padding-left: 20px;
    align-self: start;
    margin-top: 20px;
}

.annotation {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #c5974b;
}

.annotation-detail {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.6;
}

/* Illustrations */
.hero-illustration,
.problem-illustration,
.framework-illustration,
.process-illustration,
.result-illustration {
    grid-column: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration svg,
.framework-illustration svg,
.result-illustration svg {
    width: 280px;
    height: auto;
}

.problem-illustration svg,
.process-illustration svg {
    width: 320px;
    height: auto;
}

/* SVG Path Drawing Animation */
.svg-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.8s ease;
}

.section.visible .svg-draw {
    stroke-dashoffset: 0;
}

.svg-draw-rule {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1.2s ease 0.5s;
}

.section.visible .svg-draw-rule {
    stroke-dashoffset: 0;
}

/* Section Rule */
.section-rule {
    position: absolute;
    bottom: 0;
    left: 60px;
    right: 60px;
    height: 2px;
}

/* Result Figures */
.result-figures {
    display: flex;
    gap: 48px;
    margin-top: 48px;
}

.figure-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.figure-number {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: #c5974b;
    line-height: 1;
}

.figure-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.6;
}

/* Footer */
.footer {
    background: #0d2b3e;
    color: #f4efe6;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    opacity: 0.5;
}

/* Heading reveal */
.heading-hero, .heading-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.visible .heading-hero,
.section.visible .heading-section {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .section-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .margin-note {
        grid-column: 1;
        border-left: 1px solid #c5974b;
        padding-left: 16px;
    }

    .hero-illustration,
    .problem-illustration,
    .framework-illustration,
    .process-illustration,
    .result-illustration {
        grid-column: 1;
    }

    .section {
        padding: 80px 24px;
    }

    .nav {
        padding: 16px 24px;
    }

    .progress-line {
        left: 16px;
    }

    .section-rule {
        left: 24px;
        right: 24px;
    }

    .result-figures {
        flex-direction: column;
        gap: 24px;
    }

    .footer {
        padding: 32px 24px;
    }
}
