/* footprint.broker - Climate Dossier Design */
/* Colors: #d4a574 (amber), #0b1a2b (deep navy), #7fb5b0 (teal), #c4564a (red), #162a3a (dark blue), #3d5a6e (steel), #e8dbc5 (cream) */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #0b1a2b;
    color: #e8dbc5;
    font-family: 'Cormorant Garamond', Georgia, serif;
    overflow-x: hidden;
    position: relative;
}

/* Scanline Overlay */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(11, 26, 43, 0.03) 2px,
        rgba(11, 26, 43, 0.03) 4px
    );
}

/* Topographic Background */
.topo-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

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

.classified-stamp {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: #c4564a;
    border: 1px solid #c4564a;
    display: inline-block;
    padding: 6px 18px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(72px, 12vw, 140px);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 0.95;
    color: #e8dbc5;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title-dot {
    color: #d4a574;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    color: #7fb5b0;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

.hero-data-strip {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #3d5a6e;
    margin-bottom: 60px;
}

.data-separator {
    margin: 0 12px;
    color: #3d5a6e;
    opacity: 0.5;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: #d4a574;
    opacity: 0.6;
}

.scroll-arrow {
    opacity: 0.6;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.5; transform: translateY(8px); }
}

/* ===== LENS FLARE ===== */
.lens-flare {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.lens-flare-hero {
    width: 600px;
    height: 4px;
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 165, 116, 0.05) 15%,
        rgba(212, 165, 116, 0.3) 35%,
        rgba(212, 165, 116, 0.6) 50%,
        rgba(212, 165, 116, 0.3) 65%,
        rgba(212, 165, 116, 0.05) 85%,
        transparent 100%
    );
    filter: blur(2px);
}

.lens-flare-hero::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 34px;
    background: radial-gradient(ellipse, rgba(212, 165, 116, 0.15) 0%, transparent 70%);
    filter: blur(6px);
}

.lens-flare-data {
    width: 300px;
    height: 3px;
    top: 50%;
    left: -30px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 165, 116, 0.1) 20%,
        rgba(212, 165, 116, 0.4) 50%,
        rgba(212, 165, 116, 0.1) 80%,
        transparent 100%
    );
    filter: blur(1px);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.dossier-entry.visible .lens-flare-data {
    opacity: 1;
}

.lens-flare-footer {
    width: 400px;
    height: 2px;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(127, 181, 176, 0.2) 30%,
        rgba(127, 181, 176, 0.4) 50%,
        rgba(127, 181, 176, 0.2) 70%,
        transparent 100%
    );
    filter: blur(1px);
}

/* ===== DOSSIER MAIN LAYOUT ===== */
.dossier {
    position: relative;
    z-index: 1;
}

.seismograph-divider {
    position: fixed;
    top: 0;
    left: 45%;
    width: 4px;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.seismograph-divider.active {
    opacity: 1;
}

.seismograph-svg {
    width: 100%;
    height: 100%;
}

.seismo-path {
    animation: seismoTremble 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes seismoTremble {
    0% { d: path('M2,0 L2,10 L1.5,12 L2.5,14 L2,16 L2,30 L1.8,32 L2.2,34 L2,36 L2,50 L1.5,52 L3,54 L1,56 L2,58 L2,70 L2.3,72 L1.7,74 L2,76 L2,100'); }
    33% { d: path('M2,0 L2,8 L2.5,10 L1.5,12 L2,14 L2,28 L2.2,30 L1.8,32 L2,34 L2,48 L2.5,50 L1,52 L3,54 L2,56 L2,68 L1.7,70 L2.3,72 L2,74 L2,100'); }
    66% { d: path('M2,0 L2,12 L1.5,14 L2.5,16 L2,18 L2,32 L1.8,34 L2.2,36 L2,38 L2,52 L1.5,54 L3,56 L1,58 L2,60 L2,72 L2.3,74 L1.7,76 L2,78 L2,100'); }
    100% { d: path('M2,0 L2,10 L1.5,12 L2.5,14 L2,16 L2,30 L1.8,32 L2.2,34 L2,36 L2,50 L1.5,52 L3,54 L1,56 L2,58 L2,70 L2.3,72 L1.7,74 L2,76 L2,100'); }
}

/* ===== DOSSIER ENTRIES ===== */
.dossier-entry {
    display: grid;
    grid-template-columns: 45fr 55fr;
    min-height: 100vh;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.dossier-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PANES ===== */
.pane {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pane-left {
    padding-right: 80px;
}

.pane-right {
    padding-left: 80px;
    border-left: 1px solid rgba(61, 90, 110, 0.15);
}

/* ===== DATA PANE (LEFT) ===== */
.entry-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: #3d5a6e;
    margin-bottom: 24px;
    opacity: 0.6;
}

.entry-number::before {
    content: 'ENTRY //';
    margin-right: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
}

.data-monument {
    position: relative;
    margin-bottom: 16px;
}

.data-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(56px, 8vw, 100px);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #d4a574;
    line-height: 1;
    display: block;
}

.data-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #7fb5b0;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.data-context {
    margin-bottom: 30px;
    line-height: 1.8;
}

.mono-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #3d5a6e;
}

.alert-text {
    color: #c4564a;
    font-weight: 500;
}

/* Data Graph */
.data-graph {
    margin-top: 10px;
}

.mini-graph {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.graph-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: #3d5a6e;
    letter-spacing: 0.1em;
    display: block;
    margin-top: 6px;
}

/* Threshold Bar */
.threshold-bar {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 8px;
    background: rgba(61, 90, 110, 0.2);
    border-radius: 1px;
    margin-bottom: 20px;
    overflow: visible;
}

.threshold-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7fb5b0, #d4a574, #c4564a);
    border-radius: 1px;
    transition: width 1.5s ease-out;
}

.threshold-marker {
    position: absolute;
    right: 1.4%;
    top: -20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.threshold-marker::after {
    content: '';
    width: 1px;
    height: 28px;
    background: #c4564a;
    opacity: 0.6;
}

.threshold-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    color: #c4564a;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* Data Bars */
.data-bars {
    max-width: 280px;
}

.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.bar-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: #3d5a6e;
    letter-spacing: 0.08em;
    width: 50px;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 6px;
    background: rgba(61, 90, 110, 0.15);
    border-radius: 1px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3d5a6e, #d4a574);
    border-radius: 1px;
    transition: width 1.2s ease-out;
}

/* Contour Viz */
.contour-viz {
    max-width: 280px;
    margin-top: 10px;
}

.contour-svg {
    width: 100%;
    height: auto;
}

/* Pledge Grid */
.pledge-grid {
    display: grid;
    grid-template-columns: repeat(5, 16px);
    gap: 6px;
    margin-bottom: 16px;
}

.pledge-dot {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.pledge-dot:hover {
    transform: scale(1.3);
}

.pledge-dot.filled {
    background: #7fb5b0;
}

.pledge-dot.partial {
    background: #d4a574;
}

.pledge-dot.empty {
    background: rgba(61, 90, 110, 0.3);
    border: 1px solid rgba(61, 90, 110, 0.4);
}

.pledge-legend {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.legend-item {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    color: #3d5a6e;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 1px;
    display: inline-block;
}

.legend-dot.filled { background: #7fb5b0; }
.legend-dot.partial { background: #d4a574; }
.legend-dot.empty { background: rgba(61, 90, 110, 0.3); border: 1px solid rgba(61, 90, 110, 0.4); }

/* ===== NARRATIVE PANE (RIGHT) ===== */
.narrative-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: #e8dbc5;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.narrative-body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(232, 219, 197, 0.85);
    margin-bottom: 20px;
    max-width: 520px;
}

.redacted-text {
    background: linear-gradient(90deg, rgba(196, 86, 74, 0.15) 0%, rgba(196, 86, 74, 0.08) 100%);
    border-left: 2px solid #c4564a;
    padding: 2px 8px;
    font-style: italic;
    color: #c4564a;
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.dossier-footer {
    position: relative;
    padding: 100px 60px 60px;
    text-align: center;
    z-index: 1;
    border-top: 1px solid rgba(61, 90, 110, 0.15);
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
}

.footer-seal {
    margin-bottom: 32px;
}

.seal-svg {
    width: 80px;
    height: 80px;
    opacity: 0.7;
}

.footer-classification {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: #3d5a6e;
    margin-bottom: 16px;
}

.footer-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(232, 219, 197, 0.7);
    line-height: 1.7;
    margin-bottom: 40px;
}

.footer-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-meta .mono-text {
    font-size: 0.6rem;
    color: #3d5a6e;
    opacity: 0.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .dossier-entry {
        grid-template-columns: 1fr;
    }

    .pane-left, .pane-right {
        padding: 40px 24px;
    }

    .pane-right {
        border-left: none;
        border-top: 1px solid rgba(61, 90, 110, 0.15);
    }

    .seismograph-divider {
        display: none;
    }

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

    .hero-data-strip {
        display: none;
    }

    .data-value {
        font-size: clamp(40px, 10vw, 72px);
    }
}

/* ===== UTILITY ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gentleGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
