/* ============================================
   footprint.broker - Fintech Trust / Forest Green
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0C2E1C;
    color: #D0DCC8;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0C2E1C;
    overflow: hidden;
}

.hero-split {
    position: absolute;
    top: 0;
    left: 50%;
    right: 0;
    bottom: 0;
    background: #F0F4F1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.8s ease;
}

.hero-split.revealed { transform: scaleX(1); }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #8FBC8B 50%, #0C2E1C 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-title.revealed { opacity: 1; }

.hero-bar {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 2rem);
    background: linear-gradient(90deg, #8FBC8B 50%, #0C2E1C 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-bar.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-line {
    width: 0;
    height: 1px;
    background: #4A8C6F;
    margin: 1.5rem auto 0;
    transition: width 0.6s ease;
}

.hero-line.drawn { width: 80vw; }

/* --- TICKER STRIP --- */
.ticker-strip {
    width: 100%;
    height: 64px;
    background: #0C2E1C;
    border-top: 1px solid rgba(74, 140, 111, 0.3);
    border-bottom: 1px solid rgba(74, 140, 111, 0.3);
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #8FBC8B;
    padding: 0 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ticker-up {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #2ECC71;
}

.ticker-down {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #D4A843;
}

/* --- SPLIT SECTIONS --- */
.split-section {
    display: grid;
    grid-template-columns: 3fr 2fr;
    min-height: 60vh;
}

.split-section.reverse {
    grid-template-columns: 2fr 3fr;
}

.split-data {
    background: #F0F4F1;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.split-section.reverse .split-data {
    transform: translateX(40px);
}

.split-data.visible {
    opacity: 1;
    transform: translateX(0);
}

.split-narrative {
    background: #0C2E1C;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.split-section.reverse .split-narrative {
    transform: translateX(-40px);
}

.split-narrative.visible {
    opacity: 1;
    transform: translateX(0);
}

.data-heading {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0C2E1C;
    margin-bottom: 2rem;
}

.data-block {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #C8D8C4;
}

.data-label {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #0C2E1C;
}

.data-value {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.95rem;
    color: #4A8C6F;
}

.narrative-heading {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #8FBC8B;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.narrative-text {
    color: #D0DCC8;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.8;
}

/* --- CARBON GAUGE --- */
.gauge-section {
    padding: 6rem 2rem;
    text-align: center;
    background: #F0F4F1;
}

.gauge-title {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0C2E1C;
    margin-bottom: 2rem;
}

.gauge-container {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.gauge-svg {
    width: 100%;
    display: block;
}

.gauge-fill {
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 2s ease-out;
}

.gauge-fill.animated {
    stroke-dashoffset: 75;
}

.gauge-value {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(3rem, 6vw, 5rem);
    color: #0C2E1C;
    letter-spacing: 0.02em;
}

.gauge-label {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #4A8C6F;
    margin-top: 1rem;
    letter-spacing: 0.02em;
}

/* --- LEAF PARTICLES --- */
.leaf-particle {
    position: absolute;
    width: 14px;
    height: 14px;
    opacity: 0.08;
    fill: #4A8C6F;
    pointer-events: none;
}

/* --- ROOT FOOTER --- */
.root-footer {
    background: #0C2E1C;
    padding: 0 2rem 2rem;
    text-align: center;
    position: relative;
}

.roots-svg {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: block;
}

.root-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 1.5s ease-out;
}

.root-path.drawn { stroke-dashoffset: 0; }

.footer-brand {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #8FBC8B;
    letter-spacing: 0.04em;
    display: inline-block;
    margin-top: 1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .split-section,
    .split-section.reverse {
        grid-template-columns: 1fr;
    }

    .split-data,
    .split-narrative {
        padding: 3rem 2rem;
    }

    .split-data {
        transform: translateY(30px);
    }

    .split-narrative {
        transform: translateY(30px);
    }

    .split-section.reverse .split-data,
    .split-section.reverse .split-narrative {
        transform: translateY(30px);
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}

/* Warning Amber accent for design palette completeness */
.ticker-item .ticker-down + span {
    color: #D4A843;
}
