/* ==========================================================================
   PHILADELPHIA CORRUPTION WALKING TOUR — STYLES
   Dark, confrontational, archival-grunge meets modern editorial.
   Palette (matches site.json theme): primary #c9a227, accent #8b0000.
   ========================================================================== */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #0a0a0a;
    color: #e8e8e8;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.4;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== GLOBAL OVERLAYS ===== */

/* Scan-line overlay — subtle CRT flicker */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.35;
    mix-blend-mode: overlay;
    animation: scanline-flicker 8s infinite linear;
}

@keyframes scanline-flicker {
    0%, 100% { opacity: 0.3; }
    45% { opacity: 0.35; }
    55% { opacity: 0.25; }
    90% { opacity: 0.32; }
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    transition: background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: rgba(139, 0, 0, 0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 5vw;
    height: 60px;
}

.logo {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8b0000;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    white-space: nowrap;
}

/* Hamburger button (always visible — triggers full-screen menu) */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #e8e8e8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Full-screen menu (hamburger-triggered, works on all screen sizes) */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0a0a;
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c4c4c4;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    color: #e8e8e8;
    background: rgba(139, 0, 0, 0.1);
}

/* Hamburger active state (X transform) */
.hamburger.active .hamburger-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== PANEL BASE ===== */
.panel {
    position: relative;
    width: 100%;
    padding: 10vh 5vw;
    box-sizing: border-box;
}

.panel:nth-child(even) {
    background: #0a0a0a;
}

.panel:nth-child(odd) {
    background: #1a1a1a;
}

/* ===== TYPOGRAPHY ===== */

/* Headlines — heavy sans-serif, oversized */
h1, h2, .hero-headline, .pitch-headline,
.philadelphia-headline, .timeline-headline,
.logistics-headline, .payment-headline {
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.85;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #e8e8e8;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

/* Broken line effect for multi-line headlines */
.hero-headline .line,
.pitch-headline .line,
.payment-headline .line {
    display: block;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform-origin: left center;
}

/* Body text — monospace, tracked out */
.body-text,
.hero-subhead,
.pitch-body,
.pitch-footer,
.philadelphia-intro,
.philadelphia-footer,
.timeline-subhead,
.timeline-text,
.logistics-subhead,
.logistics-footer,
.payment-footer,
.footer-line {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: #c4c4c4;
    text-align: center;
}

/* ===== COLOR ACCENTS ===== */
.rust { color: #8b0000; }
.gold { color: #c9a227; }
.green { color: #3a6b3a; }
.white { color: #ffffff; }

.bg-rust { background: #8b0000; }
.bg-gold { background: #c9a227; }
.bg-green { background: #3a6b3a; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e8e8e8;
    padding: 0.75rem 2rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-tour {
    background: #8b0000;
    border-color: #8b0000;
    color: #ffffff;
}

.btn-tour:hover {
    background: #e8e8e8;
    border-color: #e8e8e8;
    color: #0a0a0a;
    box-shadow: 0 0 20px #8b0000;
}

/* ===== 1. HERO PANEL ===== */
.panel.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5vh;
    margin-top: 60px;
    background: #1a1a1a url('../assets/independence-hall-night.png') center/cover no-repeat;
}

.panel.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin-left: 5vw;
}

.hero-headline {
    font-size: clamp(4rem, 10vw, 8rem);
    text-align: left;
    margin-bottom: 2rem;
    line-height: 0.8;
}

.hero-headline .line {
    display: block;
    color: #e8e8e8;
    text-shadow: 0 0 30px rgba(139, 0, 0, 0.3);
}

.hero-subhead {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    color: #c4c4c4;
    text-align: left;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    align-items: flex-end;
    gap: 2rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.hero-cta-note {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    color: #c9a227;
    letter-spacing: 0.05em;
}

.hero-meta .vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: #c4c4c4;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 2. THE PITCH PANEL ===== */
.pitch {
    padding: 8vh 5vw;
}

.pitch-split {
    display: flex;
    width: 100%;
    gap: 4vw;
}

.pitch-left {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 50vh;
}

.bill-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.3) saturate(0.7);
}

.pitch-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 4vw;
    background: #000000;
    position: relative;
}

.pitch-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, transparent 100%);
    z-index: 1;
}

.pitch-headline {
    font-size: clamp(4rem, 9vw, 7rem);
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.pitch-body {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #c4c4c4;
    text-align: left;
    line-height: 1.7;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.pitch-footer {
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    color: #c9a227;
    text-align: left;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

/* ===== 3. PHILADELPHIA / BIRTH OF THE NATION PANEL ===== */
.philadelphia {
    padding: 10vh 5vw;
    background: #0a0a0a;
}

.philadelphia-content {
    max-width: 1100px;
    margin: 0 auto;
}

.philadelphia-headline {
    font-size: clamp(3.5rem, 8vw, 6rem);
    text-align: center;
    line-height: 0.9;
    margin-bottom: 3rem;
}

.philadelphia-headline br {
    display: block;
}

.philadelphia-intro {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    color: #c4c4c4;
    text-align: center;
    line-height: 1.7;
    letter-spacing: 0.03em;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.philadelphia-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.philadelphia-card {
    background: #1a1a1a;
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.philadelphia-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 0, 0, 0.5);
}

.philadelphia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #8b0000;
}

.card-year {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #8b0000;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #e8e8e8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.card-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
    color: #c4c4c4;
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-align: left;
}

.philadelphia-footer {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #c9a227;
    text-align: center;
    line-height: 1.7;
    letter-spacing: 0.05em;
    margin-top: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 4. PARALLAX TIMELINE PANEL ===== */
.panel.timeline {
    padding: 10vh 5vw;
    background: #0a0a0a url('../assets/cobblestone.png') repeat;
    background-size: 512px 512px;
    overflow: hidden;
}

.panel.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.02) 1px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(201, 162, 39, 0.02) 1px, transparent 2px),
        rgba(10, 10, 10, 0.7);
    background-size: 60px 60px, 60px 60px, cover;
    z-index: 0;
}

.timeline-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.timeline-headline {
    font-size: clamp(3.5rem, 8vw, 6rem);
    text-align: center;
    margin-bottom: 1.5rem;
}

.timeline-subhead {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #c4c4c4;
    text-align: center;
    margin-bottom: 4rem;
    line-height: 1.6;
}

.timeline-track {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 250px 0 4rem;
}

/* Central vertical line */
.timeline-line {
    position: absolute;
    top: 250px;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        #8b0000,
        #8b0000 10px,
        transparent 10px,
        transparent 20px
    );
    transform: translateX(-50%);
    z-index: 1;
}

/* Timeline items */
.timeline-item {
    position: relative;
    margin-bottom: 48vh;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-node {
    justify-content: flex-end;
}

.timeline-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.node-dot {
    width: 24px;
    height: 24px;
    background: #8b0000;
    border: 2px solid #e8e8e8;
    border-radius: 50%;
    box-shadow: 0 0 20px #8b0000;
    z-index: 3;
    position: relative;
}

.node-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
}

.node-line {
    display: none;
}

.timeline-content {
    background: #1a1a1a;
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 8px;
    padding: 2.5rem;
    width: 45%;
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content:hover {
    border-color: rgba(139, 0, 0, 0.4);
    transform: translateX(5px);
}

.timeline-item:nth-child(odd) .timeline-content:hover {
    transform: translateX(-5px);
}

.timeline-year {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: #8b0000;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #e8e8e8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.timeline-text {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: #c4c4c4;
    line-height: 1.7;
    letter-spacing: 0.02em;
    text-align: left;
}

.timeline-figure {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.figure-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #c9a227;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-style: italic;
}

/* ===== 5. THE LOGISTICS PANEL ===== */
.logistics {
    padding: 8vh 5vw;
    background: #0a0a0a;
}

.logistics-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.logistics-headline {
    font-size: clamp(3.5rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
}

.logistics-subhead {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #c4c4c4;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.logistics-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 3rem;
    border-collapse: collapse;
    font-family: 'Roboto Mono', monospace;
}

.logistics-table th,
.logistics-table td {
    padding: 0.75rem 1rem;
    text-align: center;
    color: #c4c4c4;
    font-size: clamp(0.85rem, 2vw, 1rem);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.logistics-table th {
    color: #c9a227;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    border-bottom: 2px solid rgba(201, 162, 39, 0.3);
}

.logistics-table td {
    color: #e8e8e8;
}

.logistics-footer {
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    color: #c4c4c4;
    opacity: 0.8;
}

/* ===== 6. THE PAYMENT PANEL ===== */
.payment {
    padding: 8vh 5vw;
    background: #0a0a0a;
}

.payment-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.payment-headline {
    font-size: clamp(4rem, 9vw, 7rem);
    margin-bottom: 2rem;
}

.payment-pricing {
    margin: 2rem 0;
}

.pricing-suggested {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #8b0000;
    margin: 0.3rem 0;
}

.pricing-floor {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    color: #c4c4c4;
    margin: 0.3rem 0;
}

.pricing-note {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
    color: #c9a227;
    margin: 0.3rem 0;
}

.payment-qr {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-code {
    position: relative;
    padding: 1.5rem;
    background: #1a1a1a;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
}

.qr-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: invert(1) brightness(1.2);
}

.qr-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    color: #e8e8e8;
    letter-spacing: 0.1em;
}

.payment-footer {
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    color: #c4c4c4;
    opacity: 0.8;
}

.money-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(58, 107, 58, 0.03) 1px, transparent 2px),
                radial-gradient(circle at 80% 70%, rgba(201, 162, 39, 0.03) 1px, transparent 2px);
    background-size: 40px 40px;
    z-index: 0;
    opacity: 0.3;
}

/* ===== 7. FOOTER PANEL ===== */
.footer {
    flex-direction: column;
    min-height: 50vh;
    height: auto;
    padding: 10vh 5vw;
    background: #0a0a0a;
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-line {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: #c4c4c4;
    margin: 0.5rem 0;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.footer-line:nth-child(3) {
    color: #8b0000;
    opacity: 1;
}

.footer-line:nth-child(4) {
    color: #c9a227;
    opacity: 0.9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .pitch {
        padding: 6vh 5vw;
    }

    .pitch-split {
        flex-direction: column;
    }

    .pitch-left {
        height: 40vh;
        min-height: 0;
    }

    .pitch-right {
        padding: 4vw;
        background: #000000;
    }

    .pitch-body {
        max-width: 100%;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .hero-headline {
        text-align: center;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .hero-cta {
        align-items: center;
    }

    .hero-meta .vertical-text {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }

    /* Philadelphia grid stacks on tablet */
    .philadelphia-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline: single column on tablet */
    .timeline-line {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 60px !important;
    }

    .timeline-node {
        left: 30px;
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {
    .panel {
        padding: 8vh 6vw;
    }

    h1, h2 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-headline {
        font-size: clamp(2.75rem, 11vw, 5rem);
    }

    .pitch-headline {
        font-size: clamp(2.25rem, 9vw, 4rem);
    }

    .payment-headline {
        font-size: clamp(2.75rem, 11vw, 5rem);
    }

    .panel.hero {
        min-height: 70vh;
    }

    .hero-content {
        margin-left: 0;
    }

    .hero-subhead {
        margin-bottom: 2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .footer {
        min-height: 40vh;
    }

    /* Timeline on mobile */
    .timeline-track {
        padding: 120px 0 2rem;
    }

    .timeline-line {
        top: 120px;
        left: 20px;
    }

    .timeline-item {
        margin-bottom: 24vh;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        padding: 1.5rem;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 50px !important;
        text-align: left;
    }

    .timeline-node {
        left: 20px;
        transform: translateY(-50%);
    }

    .logistics-table th,
    .logistics-table td {
        padding: 0.6rem 0.5rem;
    }
}

@media (max-width: 420px) {
    .logo {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }

    .qr-img {
        width: 160px;
        height: 160px;
    }
}

/* ===== GLITCH EFFECT (on scroll entry) ===== */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch {
    position: relative;
    animation: glitch 0.3s ease-in-out 2;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    opacity: 0.7;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #8b0000;
    clip: rect(0, 900px, 5px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #c9a227;
    clip: rect(0, 900px, 5px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(0, 9999px, 0, 0); }
    10% { clip: rect(5px, 9999px, 15px, 0); }
    20% { clip: rect(10px, 9999px, 25px, 0); }
    30% { clip: rect(15px, 9999px, 35px, 0); }
    40% { clip: rect(20px, 9999px, 45px, 0); }
    50% { clip: rect(25px, 9999px, 55px, 0); }
    60% { clip: rect(30px, 9999px, 65px, 0); }
    70% { clip: rect(35px, 9999px, 75px, 0); }
    80% { clip: rect(40px, 9999px, 85px, 0); }
    90% { clip: rect(45px, 9999px, 95px, 0); }
    100% { clip: rect(0, 9999px, 0, 0); }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    /* Disable scanline flicker */
    .scanlines {
        animation: none;
        opacity: 0.25;
    }

    /* Disable glitch layers */
    .glitch,
    .glitch::before,
    .glitch::after {
        animation: none;
    }

    /* Disable pulse / QR pulse */
    .marker-dot,
    .qr-code {
        animation: none;
    }

    /* Reveal all animated content immediately */
    .hero-headline .line,
    .pitch-headline .line,
    .payment-headline .line,
    .hero-subhead,
    .timeline-item {
        opacity: 1 !important;
        transform: none !important;
    }
}
