/* ============================================================
   layer-2.report — Intelligence Briefing Terminal / Art Deco
   ============================================================ */

:root {
    --bg-deep: #0A1F12;
    --bg-surface: #0F2A18;
    --border: #2D5A3D;
    --accent: #4A8C5C;
    --text-primary: #8FBF7A;
    --text-display: #B8D4A3;
    --gold: #C9A84C;
    --copper: #B87333;
    --dim: #3D6B4A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
}

/* ============================================================
   NAVIGATION STRIP (Fixed Left)
   ============================================================ */

.nav-strip {
    position: fixed;
    left: 0;
    top: 0;
    width: 16px;
    height: 100vh;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 100;
    border-right: 1px solid var(--border);
}

.nav-diamond {
    cursor: pointer;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diamond-shape {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--border);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-diamond.active .diamond-shape,
.nav-diamond:hover .diamond-shape {
    background: var(--accent);
    transform: scale(1.3);
}

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

.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    position: relative;
    padding-left: 16px;
}

.hero-deco-frame {
    position: relative;
    width: 80%;
    max-width: 900px;
    padding: 60px 40px;
    border: 1px solid var(--border);
    box-shadow: inset 0 0 0 3px var(--bg-deep), inset 0 0 0 4px var(--border);
}

/* Deco corner ornaments */
.hero-corner {
    position: absolute;
    width: 24px;
    height: 24px;
}

.hero-corner::before,
.hero-corner::after {
    content: '';
    position: absolute;
    background: var(--gold);
}

.hero-corner-tl { top: -2px; left: -2px; }
.hero-corner-tl::before { width: 12px; height: 1px; top: 0; left: 0; }
.hero-corner-tl::after { width: 1px; height: 12px; top: 0; left: 0; }

.hero-corner-tr { top: -2px; right: -2px; }
.hero-corner-tr::before { width: 12px; height: 1px; top: 0; right: 0; }
.hero-corner-tr::after { width: 1px; height: 12px; top: 0; right: 0; }

.hero-corner-bl { bottom: -2px; left: -2px; }
.hero-corner-bl::before { width: 12px; height: 1px; bottom: 0; left: 0; }
.hero-corner-bl::after { width: 1px; height: 12px; bottom: 0; left: 0; }

.hero-corner-br { bottom: -2px; right: -2px; }
.hero-corner-br::before { width: 12px; height: 1px; bottom: 0; right: 0; }
.hero-corner-br::after { width: 1px; height: 12px; bottom: 0; right: 0; }

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-icon {
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInIcon 0.6s ease 0.3s forwards;
}

@keyframes fadeInIcon {
    to { opacity: 1; }
}

.hero-title {
    font-family: 'Poiret One', cursive;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--text-display);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 1.2em;
}

.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
}

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

.hero-gold-line {
    width: 200px;
    height: 1px;
    background: var(--gold);
    margin: 24px auto;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.hero-gold-line.active {
    transform: scaleX(1);
}

.hero-subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    letter-spacing: 0.3em;
    color: var(--accent);
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.6s ease;
    margin-bottom: 24px;
}

.hero-subtitle.active {
    opacity: 1;
}

.hero-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

.hero-meta.active {
    opacity: 1;
}

.meta-divider {
    color: var(--border);
}

/* ============================================================
   RIDGELINE DIVIDERS
   ============================================================ */

.ridgeline {
    width: 100%;
    padding-left: 16px;
    overflow: hidden;
    line-height: 0;
}

.ridgeline svg {
    display: block;
}

.ridge-path {
    transition: fill 1s ease;
}

.ridge-path.filled {
    fill: var(--bg-surface);
}

/* ============================================================
   REPORT SECTIONS
   ============================================================ */

.report-section {
    padding: 60px 40px 60px 56px;
    max-width: 1340px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
}

/* ============================================================
   DASHBOARD GRID
   ============================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

/* ============================================================
   MODULE BASE
   ============================================================ */

.module {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    box-shadow: inset 0 0 20px rgba(34, 87, 54, 0.08);
    padding: 24px;
    position: relative;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease, border-color 0.3s ease;
}

.module.revealed {
    opacity: 1;
    transform: translate(0, 0) !important;
}

.module:hover {
    border-color: var(--accent);
}

.module:hover .module-icon svg {
    stroke: var(--gold);
    transform: scale(1.08);
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.module-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 300;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.module-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.module-icon svg {
    transition: stroke 0.3s ease, transform 0.3s ease;
}

/* ============================================================
   ALPHA MODULE (2 cols, 2 rows)
   ============================================================ */

.module-alpha {
    grid-column: span 2;
    grid-row: span 2;
}

.module-alpha .module-body p {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.75;
}

.module-alpha .module-body p:last-child {
    margin-bottom: 0;
}

.drop-cap::first-letter {
    font-family: 'Poiret One', cursive;
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 4px;
    color: var(--gold);
}

/* Module corner ornaments */
.module-corner {
    position: absolute;
    width: 16px;
    height: 16px;
}

.module-corner::before,
.module-corner::after {
    content: '';
    position: absolute;
    background: var(--gold);
}

.module-corner-tl { top: 4px; left: 4px; }
.module-corner-tl::before { width: 12px; height: 1px; top: 0; left: 0; }
.module-corner-tl::after { width: 1px; height: 12px; top: 0; left: 0; }

.module-corner-tr { top: 4px; right: 4px; }
.module-corner-tr::before { width: 12px; height: 1px; top: 0; right: 0; }
.module-corner-tr::after { width: 1px; height: 12px; top: 0; right: 0; }

.module-corner-bl { bottom: 4px; left: 4px; }
.module-corner-bl::before { width: 12px; height: 1px; bottom: 0; left: 0; }
.module-corner-bl::after { width: 1px; height: 12px; bottom: 0; left: 0; }

.module-corner-br { bottom: 4px; right: 4px; }
.module-corner-br::before { width: 12px; height: 1px; bottom: 0; right: 0; }
.module-corner-br::after { width: 1px; height: 12px; bottom: 0; right: 0; }

.module-stamp {
    position: absolute;
    top: 8px;
    right: 8px;
    animation: pulseStamp 4s ease-in-out infinite;
}

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

/* ============================================================
   BRAVO MODULE (1 col, 1 row — metric)
   ============================================================ */

.module-bravo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
}

.metric-value {
    font-family: 'Poiret One', cursive;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--text-display);
    letter-spacing: 0.05em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.metric-unit {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.metric-note {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 300;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================================
   CHARLIE MODULE (2 cols, 1 row — data strip)
   ============================================================ */

.module-charlie {
    grid-column: span 2;
}

.charlie-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.data-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-bar-row {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.bar-track {
    height: 6px;
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bar-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 300;
    color: var(--dim);
    text-align: right;
}

/* ============================================================
   DELTA MODULE (1 col, 2 rows — vertical dossier)
   ============================================================ */

.module-delta {
    grid-row: span 2;
}

.delta-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.dossier-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dossier-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-primary);
}

.bullet-peak {
    flex-shrink: 0;
}

/* ============================================================
   ECHO MODULE (1 col, 1 row — icon spotlight)
   ============================================================ */

.module-echo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
}

.echo-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 4px;
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.timeline-year {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gold);
    min-width: 48px;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    flex-shrink: 0;
}

.timeline-event {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-primary);
}

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

.footer-section {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.sunburst-divider {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-icon {
    margin-bottom: 24px;
}

.footer-title {
    font-family: 'Poiret One', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--text-display);
    margin-bottom: 16px;
}

.footer-gold-line {
    width: 120px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 24px;
}

.footer-message {
    max-width: 600px;
    margin: 0 auto 24px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.75;
}

.footer-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.footer-domain {
    font-family: 'Poiret One', cursive;
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 0.2em;
}

/* Scanline overlay effect */
.scanline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(10, 31, 18, 0.15) 2px,
        rgba(10, 31, 18, 0.15) 4px
    );
}

/* ============================================================
   REVEAL ANIMATIONS (initial transform states)
   ============================================================ */

.module[data-reveal="left"] {
    transform: translateX(-40px);
}

.module[data-reveal="right"] {
    transform: translateX(40px);
}

.module[data-reveal="up"] {
    transform: translateY(40px);
}

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

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-alpha {
        grid-column: span 2;
        grid-row: span 1;
    }

    .module-charlie {
        grid-column: span 2;
    }

    .module-delta {
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .module-alpha,
    .module-charlie {
        grid-column: span 1;
    }

    .report-section {
        padding: 40px 20px 40px 36px;
    }

    .hero-deco-frame {
        width: 90%;
        padding: 40px 20px;
    }

    .data-bar-row {
        grid-template-columns: 70px 1fr 80px;
    }

    .hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .hero-meta .meta-divider {
        display: none;
    }

    .footer-meta {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .footer-meta .meta-divider {
        display: none;
    }
}
