/* ============================================
   footprint.bar - Art Deco Ornate / Dark-Academia Detective
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #1A1410;
    color: #E8DFD0;
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- Noise Grain Texture --- */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 64px 64px;
}

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

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #0F0C08;
    opacity: 1;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.hero-overlay.faded { opacity: 0; }

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

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #C9A84C;
    letter-spacing: 0.08em;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.hero-bar {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #C9A84C;
    letter-spacing: 0.08em;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* --- Art Deco Divider --- */
.art-deco-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 40vw;
    margin: 1rem auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.art-deco-divider.revealed { opacity: 1; }

.divider-line {
    flex: 1;
    height: 1px;
    background: #C9A84C;
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.divider-left { transform-origin: right center; }
.divider-right { transform-origin: left center; }
.divider-line.drawn { transform: scaleX(1); }

.divider-diamond {
    width: 12px;
    height: 12px;
    background: #C9A84C;
    transform: rotate(45deg) scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.divider-diamond.scaled { transform: rotate(45deg) scale(1); }

.divider-chevron {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #C9A84C;
    margin: 0 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.divider-chevron.visible { opacity: 1; }

/* --- Fan Ornaments --- */
.fan-ornament {
    position: absolute;
    width: 120px;
    height: 120px;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.fan-tl { top: 2rem; left: 2rem; transform: rotate(-15deg); }
.fan-tr { top: 2rem; right: 2rem; transform: rotate(15deg); }
.fan-bl { bottom: 2rem; left: 2rem; transform: rotate(15deg); }
.fan-br { bottom: 2rem; right: 2rem; transform: rotate(-15deg); }

.fan-ornament.visible {
    opacity: 0.2;
    transform: rotate(0deg);
}

/* --- Section Heading --- */
.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4.5rem);
    color: #E8DFD0;
    letter-spacing: 0.06em;
    margin-bottom: 2.5rem;
}

/* --- EVIDENCE BOARD --- */
.evidence-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.evidence-board {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

.evidence-main .section-heading {
    text-align: left;
}

.evidence-prose {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.evidence-prose.visible {
    opacity: 1;
    transform: translateY(0);
}

.evidence-prose p {
    color: #E8DFD0;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.8;
}

.evidence-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 4rem;
}

.evidence-card {
    background: #241E16;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px;
    padding: 24px 20px 16px;
    position: relative;
    transform: rotate(var(--rotation, 0deg));
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}

.evidence-card.visible {
    opacity: 1;
}

.evidence-card:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-pin {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #C9A84C;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.card-header {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: #E0C068;
    margin-bottom: 0.5rem;
}

.card-body {
    color: #E8DFD0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.card-label {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8A7D6B;
}

/* --- TRAIL MAP --- */
.trail-section {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.trail-container {
    position: relative;
    height: 240px;
    margin-top: 2rem;
}

.trail-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 200px;
}

.trail-path {
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
    transition: stroke-dashoffset 3s ease-out;
}

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

.trail-waypoints {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 200px;
}

.waypoint {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.waypoint-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1A1410;
    border: 1px solid #C9A84C;
    margin: 0 auto 8px;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.waypoint-circle.scaled { transform: scale(1); }

.waypoint-label {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8A7D6B;
    white-space: nowrap;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.waypoint-label.visible { opacity: 1; }

/* --- MAGNIFYING GLASS --- */
.magnify-section {
    padding: 6rem 2rem;
    text-align: center;
}

.magnify-frame {
    position: relative;
    width: 50vmin;
    height: 50vmin;
    max-width: 500px;
    max-height: 500px;
    border-radius: 50%;
    border: 2px solid #C9A84C;
    background: #241E16;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.6s ease;
}

.magnify-frame.zoomed {
    transform: scale(1);
    opacity: 1;
}

.magnify-content {
    padding: 3rem;
    text-align: center;
}

.magnify-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #C9A84C;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.magnify-text {
    color: #E8DFD0;
    font-size: 0.95rem;
    line-height: 1.8;
}

.magnify-handle {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 8px;
    height: 80px;
    background: #C9A84C;
    border-radius: 4px;
    transform: rotate(45deg);
    transform-origin: top left;
}

/* --- NOIR FOOTER --- */
.noir-footer {
    background: #0F0C08;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-deco-line {
    width: 120px;
    height: 1px;
    background: #C9A84C;
    margin: 0 auto 1.5rem;
    opacity: 0.4;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 0.9rem;
    color: #C9A84C;
    letter-spacing: 0.08em;
}

/* --- Evidence Red accent --- */
.evidence-card:nth-child(4) .card-header {
    color: #8B3A3A;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .evidence-board {
        grid-template-columns: 1fr;
    }

    .evidence-cards {
        padding-top: 0;
    }

    .fan-ornament {
        width: 60px;
        height: 60px;
    }

    .art-deco-divider {
        width: 70vw;
    }

    .magnify-frame {
        width: 80vmin;
        height: 80vmin;
    }

    .magnify-content {
        padding: 2rem;
    }
}
