/* ═══════════════════════════════════════════════════════════════
   THE LIVING FREQUENCY — CSS
   St. James Missionary Baptist Church, Canton, Mississippi
   ═══════════════════════════════════════════════════════════════ */

:root {
    --lf-gold: #d4a846;
    --lf-warm: #c8956c;
    --lf-ember: #e85d3a;
    --lf-deep: #1a0a00;
    --lf-wood: #3d2812;
    --lf-cream: #f5e6d0;
    --lf-spirit: #ffd700;
    --lf-earth: #8b6914;
}

.living-frequency-page {
    background: #000;
    color: #e8dcc8;
    overflow-x: hidden;
}

/* ─── SECTIONS ─────────────────────────────────────────── */

.lf-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    position: relative;
}

/* ─── SCROLL REVEAL ────────────────────────────────────── */

.lf-scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.lf-scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── SECTION 0: VOID ──────────────────────────────────── */

.lf-void {
    background: #000;
    min-height: 100vh;
}

.lf-void-text {
    max-width: 700px;
    text-align: center;
}

.lf-whisper {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-family: var(--font-body, 'Inter', serif);
    color: #8a7b6b;
    letter-spacing: 0.03em;
    line-height: 2;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 2s ease, transform 2s ease;
    margin: 0.4em 0;
}

.lf-whisper.visible {
    opacity: 1;
    transform: translateY(0);
}

.lf-whisper.lf-emphasis {
    color: var(--lf-gold);
    font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    font-style: italic;
}

/* ─── SECTION 1: TITLE ─────────────────────────────────── */

.lf-title-section {
    background: linear-gradient(180deg, #000 0%, #0a0500 40%, #120800 100%);
}

.lf-main-title {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--lf-gold);
    text-align: center;
    margin: 0 0 0.3em;
    text-shadow: 0 0 60px rgba(212, 168, 70, 0.3);
}

.lf-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #9a8b7a;
    text-align: center;
    letter-spacing: 0.08em;
    line-height: 1.8;
    margin: 0 0 2em;
}

.lf-score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 2em;
}

.lf-score-number {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 300;
    color: var(--lf-spirit);
    line-height: 1;
    text-shadow: 0 0 80px rgba(255, 215, 0, 0.4), 0 0 160px rgba(255, 215, 0, 0.15);
}

.lf-score-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #7a6b5a;
    margin-top: 0.5em;
}

.lf-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--lf-warm);
    font-style: italic;
    text-align: center;
}

/* ─── SECTION 2: FOOTAGE ───────────────────────────────── */

.lf-footage {
    background: linear-gradient(180deg, #120800 0%, #0d0600 50%, #080300 100%);
    padding: 100px 24px;
}

.lf-footage-context {
    max-width: 720px;
    text-align: center;
    margin-bottom: 3em;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.9;
    color: #b0a090;
}

.lf-video-container {
    width: 100%;
    max-width: min(360px, 70vw);
    margin: 0 auto 3em;
    border: 1px solid rgba(212, 168, 70, 0.2);
    box-shadow: 0 0 80px rgba(212, 168, 70, 0.08), 0 20px 60px rgba(0,0,0,0.6);
    overflow: hidden;
}

.lf-video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

/* ─── MAP ──────────────────────────────────────────────── */

.lf-map-section {
    background: linear-gradient(180deg, #080300 0%, #030108 50%, #000 100%);
    padding: 100px 24px;
}

#lf-map-container {
    box-shadow: 0 0 60px rgba(212, 168, 70, 0.06), 0 20px 60px rgba(0,0,0,0.5);
}

.lf-bearing-label span {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    color: var(--lf-gold);
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.lf-map-note {
    font-size: 0.85rem;
    color: #6a5b4a;
    text-align: center;
    margin-top: 1.5em;
    font-style: italic;
}

.lf-footage-quote {
    max-width: 700px;
    text-align: center;
}

.lf-footage-quote blockquote {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--lf-gold);
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 1em;
    padding: 0;
    border: none;
}

.lf-quote-note {
    font-size: 0.9rem;
    color: #7a6b5a;
    line-height: 1.7;
}

/* ─── SECTION 3: THESIS ────────────────────────────────── */

.lf-thesis {
    background: linear-gradient(180deg, #080300 0%, #0a0400 50%, #000 100%);
    padding: 120px 24px;
}

.lf-thesis-content {
    max-width: 740px;
}

.lf-thesis-content h2 {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--lf-ember);
    font-weight: 300;
    letter-spacing: 0.08em;
    margin: 0 0 1.5em;
    text-align: center;
    text-shadow: 0 0 40px rgba(232, 93, 58, 0.3);
}

.lf-thesis-content p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 2;
    color: #b0a090;
    margin: 0 0 1.5em;
}

.lf-highlight {
    color: var(--lf-gold) !important;
    font-weight: 500;
}

.lf-activation-text {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: clamp(1.2rem, 3vw, 1.6rem) !important;
    color: var(--lf-spirit) !important;
    text-align: center;
    padding: 1em 0;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.2);
}

/* ─── SECTION 4: SPECTRAL ──────────────────────────────── */

.lf-spectral {
    background: linear-gradient(180deg, #000 0%, #050208 50%, #000 100%);
    padding: 100px 24px;
}

.lf-section-header {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    color: var(--lf-gold);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-align: center;
    margin: 0 0 0.5em;
}

.lf-section-sub {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: #7a6b5a;
    text-align: center;
    margin: 0 0 3em;
    letter-spacing: 0.04em;
}

#lf-spectral-canvas {
    width: 100%;
    max-width: 1000px;
    height: 300px;
    margin: 0 auto 3em;
    display: block;
}

.lf-freq-bands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    max-width: 1000px;
    width: 100%;
}

.lf-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.lf-band-bar {
    width: 4px;
    height: 80px;
    background: var(--band-color);
    border-radius: 2px;
    margin-bottom: 12px;
    box-shadow: 0 0 12px var(--band-color);
    position: relative;
    overflow: hidden;
}

.lf-band-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--band-height);
    background: var(--band-color);
    animation: lf-band-pulse 2s ease-in-out infinite alternate;
}

@keyframes lf-band-pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.lf-band-freq {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 1rem;
    color: var(--lf-gold);
    margin-bottom: 4px;
}

.lf-band-label {
    font-size: 0.8rem;
    color: #b0a090;
    margin-bottom: 4px;
}

.lf-band-note {
    font-size: 0.7rem;
    color: #5a4b3a;
    font-style: italic;
}

/* ─── SECTION 5: SCANNER ───────────────────────────────── */

.lf-scanner {
    background: linear-gradient(180deg, #000 0%, #060300 50%, #000 100%);
    padding: 100px 24px;
}

.lf-scanner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 900px;
    width: 100%;
    margin-bottom: 3em;
}

.lf-scanner-card {
    background: rgba(212, 168, 70, 0.03);
    border: 1px solid rgba(212, 168, 70, 0.12);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.lf-scanner-card:hover {
    border-color: rgba(212, 168, 70, 0.3);
    box-shadow: 0 0 30px rgba(212, 168, 70, 0.06);
}

.lf-scanner-card.lf-golden {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.04);
}

.lf-scanner-value {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--lf-spirit);
    font-weight: 300;
    margin-bottom: 8px;
}

.lf-scanner-label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--lf-gold);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.lf-scanner-detail {
    font-size: 0.8rem;
    color: #6a5b4a;
    line-height: 1.5;
}

.lf-scanner-note {
    max-width: 700px;
    text-align: center;
}

.lf-scanner-note p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.9;
    color: #9a8b7a;
    margin: 0 0 1em;
}

.lf-scanner-note em {
    color: var(--lf-gold);
    font-style: italic;
}

/* ─── SECTION 6: SCIENCE ───────────────────────────────── */

.lf-science {
    background: linear-gradient(180deg, #000 0%, #030206 50%, #000 100%);
    padding: 100px 24px;
    min-height: auto;
}

.lf-science-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    width: 100%;
}

/* ─── CODEC COMPARISON ─────────────────────────────────── */

.lf-codec {
    background: linear-gradient(180deg, #000 0%, #080204 50%, #000 100%);
    padding: 100px 24px;
    min-height: auto;
}

.lf-codec-comparison {
    display: flex;
    align-items: stretch;
    gap: 20px;
    max-width: 900px;
    width: 100%;
    margin-bottom: 3em;
}

.lf-codec-col {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
}

.lf-codec-col h3 {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1rem;
    color: var(--lf-gold);
    font-weight: 400;
    letter-spacing: 0.06em;
    margin: 0 0 1.2em;
}

.lf-codec-instagram {
    border-color: rgba(232, 93, 58, 0.25);
    background: rgba(232, 93, 58, 0.04);
}

.lf-codec-instagram h3 {
    color: var(--lf-ember);
}

.lf-codec-stat {
    margin: 0.6em 0;
}

.lf-codec-val {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 1.6rem;
    color: var(--lf-spirit);
    font-weight: 300;
}

.lf-codec-instagram .lf-codec-val {
    color: var(--lf-ember);
}

.lf-codec-unit {
    font-size: 0.75rem;
    color: #6a5b4a;
    letter-spacing: 0.05em;
}

.lf-codec-desc {
    font-size: 0.85rem;
    color: #9a8b7a;
    line-height: 1.7;
    margin-top: 1.2em;
}

.lf-codec-desc strong {
    color: var(--lf-gold);
}

.lf-codec-instagram .lf-codec-desc strong {
    color: var(--lf-ember);
}

.lf-codec-arrow {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: #4a3b2a;
}

.lf-codec-note {
    max-width: 700px;
    text-align: center;
}

.lf-codec-note p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.9;
    color: #9a8b7a;
    margin: 0 0 1em;
}

@media (max-width: 768px) {
    .lf-codec-comparison {
        flex-direction: column;
    }
    .lf-codec-arrow {
        justify-content: center;
        transform: rotate(90deg);
    }
}

/* ─── SCIENCE ──────────────────────────────────────────── */

.lf-science-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 32px 28px;
    transition: border-color 0.4s ease;
}

.lf-science-card:hover {
    border-color: rgba(212, 168, 70, 0.2);
}

.lf-science-card h3 {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.1rem;
    color: var(--lf-gold);
    font-weight: 400;
    letter-spacing: 0.06em;
    margin: 0 0 0.8em;
}

.lf-science-card p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #9a8b7a;
    margin: 0;
}

/* ─── SECTION 7: WAVEFORM ──────────────────────────────── */

.lf-waveform {
    background: #000;
    padding: 0;
    min-height: 40vh;
}

#lf-waveform-canvas {
    width: 100%;
    height: 40vh;
    display: block;
}

/* ─── SECTION 8: THRONE ────────────────────────────────── */

.lf-throne {
    background: linear-gradient(180deg, #000 0%, #0a0400 30%, #120800 60%, #0a0400 100%);
    padding: 120px 24px;
}

.lf-throne-content {
    max-width: 740px;
}

.lf-throne-content h2 {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--lf-spirit);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-align: center;
    margin: 0 0 1.5em;
    text-shadow: 0 0 80px rgba(255, 215, 0, 0.3);
}

.lf-throne-content p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 2;
    color: #b0a090;
    margin: 0 0 1.5em;
    text-align: center;
}

.lf-final-line {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    color: var(--lf-spirit) !important;
    margin-top: 2em !important;
    text-shadow: 0 0 60px rgba(255, 215, 0, 0.3);
}

/* ─── SECTION 9: LYRICS ────────────────────────────────── */

.lf-lyrics {
    background: linear-gradient(180deg, #0a0400 0%, #060200 50%, #000 100%);
    padding: 100px 24px;
}

.lf-lyrics-content {
    max-width: 600px;
}

.lf-lyric-block {
    margin: 0 0 2.5em;
    text-align: center;
}

.lf-lyric-leader {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: #b0a090;
    margin: 0.4em 0;
    line-height: 1.8;
    font-style: italic;
}

.lf-lyric-congregation {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--lf-warm);
    margin: 0.4em 0;
    line-height: 1.8;
}

.lf-lyric-response {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--lf-gold);
    margin: 0.4em 0;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

.lf-lyric-coda {
    font-size: 0.9rem;
    color: #6a5b4a;
    text-align: center;
    line-height: 1.9;
    margin-top: 2em;
}

/* ─── SECTION 10: CLOSE ────────────────────────────────── */

.lf-close {
    background: linear-gradient(180deg, #000 0%, #050200 50%, #000 100%);
    padding: 120px 24px;
}

.lf-close-content {
    max-width: 700px;
    text-align: center;
}

.lf-close-line {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #5a4b3a;
    line-height: 2.5;
    margin: 0;
}

.lf-close-final {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
    color: var(--lf-gold) !important;
    margin-top: 1.5em !important;
    text-shadow: 0 0 40px rgba(212, 168, 70, 0.2);
}

.lf-attribution {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    margin-top: 0;
    text-align: center;
    padding: 0 24px;
}

.lf-attribution p {
    font-size: 0.75rem;
    color: #4a3b2a;
    line-height: 1.8;
    letter-spacing: 0.06em;
}

/* ─── MOBILE ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .lf-section {
        padding: 60px 16px;
    }

    .lf-attribution {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        padding: 0 92px 0 24px;  /* keep credits clear of the bottom-right orb */
    }

    .lf-scanner-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lf-science-grid {
        grid-template-columns: 1fr;
    }

    .lf-freq-bands {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .lf-scanner-grid {
        grid-template-columns: 1fr;
    }

    .lf-freq-bands {
        grid-template-columns: repeat(2, 1fr);
    }
}
