/* footprint.bar - Y2K Chrome Speakeasy */

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

:root {
    --obsidian: #0a0a0f;
    --gunmetal: #1a1a2e;
    --chrome: #c0c0c0;
    --chrome-light: #e8e8e8;
    --chrome-dark: #808080;
    --gold-tarnish: #e6c87f;
    --dark-gold: #b8860b;
    --aqua-glow: #7fffd4;
    --rose-chrome: #e8a0b4;
    --zinc-text: #a0a0b0;
    --white: #ffffff;
    --muted: #6b7280;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--obsidian);
    color: var(--chrome-light);
    font-family: 'IBM Plex Mono', monospace;
    overflow-x: hidden;
    line-height: 1.7;
}

/* === Chrome Sweep Overlay === */
#chrome-sweep {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: sweepHighlight 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 9998;
}

@keyframes sweepHighlight {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* === Section Block === */
.section-block {
    min-height: 100vh;
    padding: clamp(2rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* === Split Screen === */
.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 100vh;
    width: 100%;
}

.split-screen.reverse .split-left {
    order: 2;
}

.split-screen.reverse .split-right {
    order: 1;
}

.split-left, .split-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem);
}

/* === Chrome Surface === */
.chrome-surface {
    background: conic-gradient(
        from 0deg at 50% 50%,
        #808080 0deg,
        #c0c0c0 45deg,
        #e8e8e8 90deg,
        #c0c0c0 135deg,
        #808080 180deg,
        #a0a0b0 225deg,
        #e8e8e8 270deg,
        #c0c0c0 315deg,
        #808080 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* === Wordmark === */
.wordmark {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--chrome);
    text-shadow:
        1px 1px 0 var(--chrome-light),
        -1px -1px 0 var(--chrome-dark),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.tagline {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-tarnish);
}

/* === Scroll Indicator === */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 3rem;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, var(--gold-tarnish), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.scroll-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--zinc-text);
}

/* === Chrome Footprint SVG === */
.chrome-footprint {
    filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.3));
}

.hero-footprint {
    width: clamp(120px, 20vw, 200px);
    animation: footprintGlow 3s ease infinite;
}

@keyframes footprintGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(192, 192, 192, 0.5)); }
}

/* === Section Headings === */
.section-heading {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--chrome-light);
    margin-bottom: 1.5rem;
}

.section-heading.centered {
    text-align: center;
}

.section-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.8rem, 1.3vw, 1rem);
    line-height: 1.9;
    color: var(--zinc-text);
    max-width: 550px;
    margin-bottom: 2rem;
}

.section-text.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* === Evidence Tag === */
.evidence-tag {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid var(--gold-tarnish);
    padding: 0.4rem 1rem;
}

.tag-label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--gold-tarnish);
}

.tag-id {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--chrome);
}

/* === Footprint Trail === */
.footprint-trail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.trail-print {
    width: 80px;
    opacity: 0;
    transition: opacity 600ms ease, transform 600ms ease;
}

.trail-print.visible {
    opacity: 0.7;
}

.t1 { transform: rotate(-15deg) translateX(-20px); }
.t2 { transform: rotate(10deg) translateX(20px); }
.t3 { transform: rotate(-8deg) translateX(-10px); }

.t1.visible { transform: rotate(-15deg) translateX(-20px) translateY(0); }
.t2.visible { transform: rotate(10deg) translateX(20px) translateY(0); }
.t3.visible { transform: rotate(-8deg) translateX(-10px) translateY(0); }

/* === Masonry Evidence Wall === */
.masonry-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
}

.evidence-card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(192, 192, 192, 0.15);
    padding: clamp(1rem, 2vw, 1.5rem);
    position: relative;
    transition: border-color 300ms, transform 300ms;
    opacity: 0;
    transform: translateY(20px);
}

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

.evidence-card:hover {
    border-color: var(--gold-tarnish);
    transform: translateY(-4px);
}

.evidence-card.tall {
    grid-row: span 2;
}

.card-chrome-bar {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--chrome-dark), var(--chrome-light), var(--chrome-dark));
    margin-bottom: 1rem;
}

.card-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.3vw, 1.1rem);
    letter-spacing: 0.06em;
    color: var(--gold-tarnish);
    margin-bottom: 0.5rem;
}

.card-body {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    color: var(--zinc-text);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.card-timestamp {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.5rem;
    color: var(--chrome-dark);
    letter-spacing: 0.1em;
}

/* === Visitor Counter === */
.visitor-counter {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.counter-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--zinc-text);
}

.counter-value {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--gold-tarnish);
    text-shadow: 0 0 20px rgba(230, 200, 127, 0.3);
}

/* === Final Stamp === */
.final-stamp {
    text-align: center;
    margin-top: 2rem;
}

.stamp-word {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.15em;
    color: var(--chrome);
    text-shadow:
        1px 1px 0 var(--chrome-light),
        -1px -1px 0 var(--chrome-dark);
}

.stamp-dot {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--rose-chrome);
}

/* === Scroll Reveal Shared === */
.section-block {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.section-block.visible {
    opacity: 1;
    transform: translateY(0);
}

#entry {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 768px) {
    .split-screen {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .split-screen.reverse .split-left,
    .split-screen.reverse .split-right {
        order: unset;
    }

    .masonry-wall {
        grid-template-columns: 1fr;
    }

    .evidence-card.tall {
        grid-row: auto;
    }
}
