/* ========================================
   CSS CUSTOM PROPERTIES (Design System)
   ======================================== */

:root {
    /* Colors */
    --bg-ivory: #FDFBF7;
    --black: #1A1614;
    --ochre: #B8860B;
    --teal: #3B6B6B;
    --terracotta: #C85A3D;
    --gray-dark: #4A443F;
    --gray-medium: #6E6761;
    --gray-light: #A69D94;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Crimson Pro', Georgia, serif;

    /* Spacing */
    --content-max-width: 740px;
    --section-padding: 120px;
    --section-padding-mobile: 60px;

    /* Animation */
    --ease-out: cubic-bezier(0.4, 0.0, 0.2, 1);
    --duration-standard: 800ms;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-ivory);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   SCROLL-SNAP CONTAINER
   ======================================== */

.scroll-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100dvh;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 22, 20, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
}

.logo {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
}

/* ========================================
   SECTION LAYOUT
   ======================================== */

.section {
    min-height: 100dvh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding) 40px;
}

.content-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.text-column {
    max-width: var(--content-max-width);
}

.text-column p {
    font-size: 20px;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 32px;
}

.text-column p:last-child {
    margin-bottom: 0;
}

.text-column a {
    color: var(--terracotta);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.3s ease;
}

.text-column a:hover {
    color: var(--ochre);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    padding-top: 180px;
}

.eyebrow {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-medium);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(64px, 12vw, 160px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin-bottom: 10px;
    color: var(--black);
}

.tagline {
    font-family: var(--font-serif);
    font-size: 22px;
    font-style: italic;
    color: var(--gray-dark);
    margin-bottom: 12px;
    text-align: left;
}

.hero-title-group {
    display: inline-block;
}

/* ========================================
   HEAVY BAR DIVIDER
   ======================================== */

.heavy-bar {
    height: 5px;
    background-color: var(--black);
    width: 0%;
    transition: width 1s var(--ease-out);
}

.heavy-bar.animated {
    width: 100%;
}

/* ========================================
   JUMP LINKS SECTION
   ======================================== */

.links-section {
    min-height: auto;
    padding: 80px 40px;
}

.jump-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.jump-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color 0.3s ease;
}

.jump-link:hover {
    color: var(--ochre);
}

/* ========================================
   CONTENT SECTION
   ======================================== */

.content-section {
    align-items: flex-start;
    padding-top: 160px;
}

.body-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 32px;
    max-width: 680px;
}

.body-text:last-child {
    margin-bottom: 0;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    align-items: flex-start;
    padding-top: 160px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--black);
}

.stats-list {
    max-width: var(--content-max-width);
}

.stat-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--black);
    font-size: 26px;
    font-weight: 600;
    color: var(--black);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-number {
    font-weight: 800;
    color: var(--ochre);
}

/* ========================================
   BAR CHART SECTION
   ======================================== */

.chart-section {
    align-items: flex-start;
    padding-top: 160px;
}

.bar-chart {
    max-width: 900px;
}

.bar-item {
    margin-bottom: 24px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: 20px;
}

.bar-name {
    font-weight: 600;
    color: var(--black);
}

.bar-percentage {
    font-weight: 800;
    font-size: 22px;
    color: var(--black);
}

.bar-track {
    height: 48px;
    background-color: rgba(166, 157, 148, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0%;
    transition: width 1.2s var(--ease-out);
}

.bar-fill.animated {
    width: var(--target-width);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    padding-top: 160px;
}

.contact-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--black);
}

.contact-email {
    font-size: 26px;
    font-weight: 500;
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--teal);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: 40px;
    text-align: center;
}

.footer-text {
    font-size: 13px;
    color: var(--gray-medium);
}

/* ========================================
   ANIMATION CLASSES
   ======================================== */

.fade-in {
    opacity: 0;
    transition: opacity var(--duration-standard) var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    transform: translateY(30px);
    transition: transform var(--duration-standard) var(--ease-out);
}

.slide-up.visible {
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .header-content {
        padding: 16px 32px;
    }

    .section {
        padding: var(--section-padding) 32px;
    }

    .hero-title {
        font-size: clamp(56px, 10vw, 120px);
    }

    .jump-links {
        gap: 32px;
    }

    .text-column p {
        font-size: 19px;
    }

    .body-text {
        font-size: 19px;
    }

    .bar-chart {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .header-content {
        padding: 16px 24px;
    }

    .logo {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .section {
        padding: var(--section-padding-mobile) 24px;
        min-height: 100dvh;
    }

    .hero-section {
        padding-top: 120px;
        min-height: 100dvh;
    }

    .hero-title {
        font-size: clamp(48px, 15vw, 80px);
        margin-bottom: 20px;
    }

    .tagline {
        font-size: 18px;
    }

    .links-section {
        padding: 60px 24px;
    }

    .jump-links {
        flex-direction: column;
        gap: 20px;
    }

    .jump-link {
        font-size: 15px;
    }

    .content-section,
    .stats-section,
    .chart-section,
    .contact-section {
        padding-top: 80px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .text-column p {
        font-size: 17px;
        line-height: 1.7;
        margin-bottom: 24px;
    }

    .body-text {
        font-size: 17px;
        line-height: 1.7;
        margin-bottom: 24px;
    }

    .stat-item {
        font-size: 20px;
        padding: 14px 0;
    }

    .bar-label {
        font-size: 17px;
    }

    .bar-percentage {
        font-size: 19px;
    }

    .bar-track {
        height: 40px;
    }

    .bar-item {
        margin-bottom: 20px;
    }

    .contact-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .contact-email {
        font-size: 20px;
    }

    .footer-text {
        font-size: 12px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 28px;
    }

    .stat-item {
        font-size: 18px;
    }

    .contact-email {
        font-size: 18px;
    }
}

/* ========================================
   ACCESSIBILITY: Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-container {
        scroll-behavior: auto;
    }
}
