/* =========================================================
   STOP MOTION — Landing Page Styles
   ========================================================= */

/* ---------- Custom Properties ---------- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #101018;
    --bg-card: #161620;
    --text-primary: #f0ece4;
    --text-secondary: #8a8680;
    --accent-1: #ff4d00;
    --accent-2: #c940ff;
    --accent-3: #ffb800;
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s var(--ease-out-expo),
                opacity 0.5s var(--ease-out-expo);
}

.nav.visible {
    transform: translateY(0);
    opacity: 1;
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    transition: color 0.3s;
}

.nav-brand:hover {
    color: var(--accent-1);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform, opacity;
}

.hero-glow--orange {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-1);
    opacity: 0.1;
    animation: glowPulse 8s ease-in-out infinite alternate;
}

.hero-glow--purple {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-2);
    opacity: 0;
    animation: glowPulse 8s ease-in-out infinite alternate-reverse;
}

@keyframes glowPulse {
    0%   { opacity: 0.12; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0;    transform: translate(-50%, -50%) scale(1.4); }
}

#flowerCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    will-change: transform, opacity;
}

/* -- Logo wrapper -- */
.hero-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -6px;
}

.hero-logo-img {
    max-width: min(500px, 80vw);
    height: auto;
}

.hero-logo-text {
    display: none;
    font-family: var(--font-heading);
    font-size: clamp(4rem, 14vw, 10rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    text-align: center;
}

/* When image fails to load, show fallback text */
.hero-logo-wrap.use-fallback .hero-logo-img {
    display: none;
}

.hero-logo-wrap.use-fallback .hero-logo-text {
    display: block;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--text-secondary);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 10px 10px;
    justify-items: center;
    margin-top: 0px;
}

.hero-tagline-link {
    color: inherit;
    position: relative;
    transition: color 0.3s;
}

.hero-tagline-link:hover {
    color: var(--text-primary);
}

.hero-tagline-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease-out-expo);
}

.hero-tagline-link:hover::after {
    width: 100%;
}

/* -- Scroll indicator -- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: float 3s ease-in-out infinite;
    will-change: transform;
}

.scroll-indicator span {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    opacity: 0.6;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Band Photo Section ---------- */
.band-section {
    position: relative;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
}

.band-photo-wrap {
    position: absolute;
    inset: -60px 0;
    will-change: transform;
}

.band-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.band-photo-fallback {
    display: none;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--bg-secondary) 0%,
        #1a1028 40%,
        #1c1008 70%,
        var(--bg-secondary) 100%
    );
    align-items: center;
    justify-content: center;
}

.band-photo-fallback span {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.08);
}

.band-photo-wrap.use-fallback .band-photo {
    display: none;
}

.band-photo-wrap.use-fallback .band-photo-fallback {
    display: flex;
}

.band-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.3) 0%,
        transparent 30%,
        transparent 60%,
        rgba(10, 10, 10, 0.9) 100%
    );
    pointer-events: none;
}

/* ---------- Marquee Strip ---------- */
.marquee-strip {
    position: relative;
    z-index: 5;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 55s linear infinite;
}

.marquee-content {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--bg-primary);
    flex-shrink: 0;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Section Shared ---------- */
.shows-section,
.videos-section {
    padding: 120px 0;
}

.shows-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 25%, transparent 75%, rgba(0,0,0,0.06) 100%), var(--bg-primary);
}

.videos-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.08) 100%), var(--bg-secondary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    display: block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: 2px;
}

/* ---------- Shows ---------- */
.shows-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shows-error {
    padding: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.show-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    border-radius: 8px;
    background: transparent;
    transition: background 0.3s, transform 0.3s var(--ease-out-expo);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.show-item:last-child {
    border-bottom: none;
}

.show-item:hover {
    background: var(--bg-card);
    transform: translateX(6px);
}

.show-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    flex-shrink: 0;
}

.show-month {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent-1);
    text-transform: uppercase;
}

.show-day {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.show-info {
    flex: 1;
    min-width: 0;
}

.show-venue {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.show-city {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.show-tickets {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 10px 24px;
    border: 1px solid var(--accent-1);
    border-radius: 4px;
    color: var(--accent-1);
    transition: background 0.3s, color 0.3s;
    flex-shrink: 0;
    text-align: center;
}

.show-item:hover .show-tickets {
    background: var(--accent-1);
    color: var(--bg-primary);
}

.shows-more {
    text-align: center;
    margin-top: 40px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-style: italic;
}

/* ---------- Videos ---------- */
.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-card);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* ---------- Gallery Collage ---------- */
.gallery-section {
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.1) 100%), #000;
}

.gallery-section .section-title {
    margin-bottom: 48px;
}

.collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(160px, 200px);
    grid-auto-flow: dense;
    gap: 6px;
    max-width: 920px;
    margin: 0 auto;
}

/* 7-item layout: [1 tall][2 wide][3 wide] / [1 tall][4 wide][5 tall] / [6 wide][7 wide][5 tall] */
.collage--layout-7 {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, minmax(160px, 200px));
    grid-auto-flow: unset;
}

.collage--layout-7 .collage-item:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.collage--layout-7 .collage-item:nth-child(2) { grid-area: 1 / 2 / 2 / 4; }
.collage--layout-7 .collage-item:nth-child(3) { grid-area: 1 / 4 / 2 / 6; }
.collage--layout-7 .collage-item:nth-child(4) { grid-area: 2 / 2 / 3 / 4; }
.collage--layout-7 .collage-item:nth-child(5) { grid-area: 2 / 5 / 4 / 6; }
.collage--layout-7 .collage-item:nth-child(6) { grid-area: 3 / 1 / 4 / 3; }
.collage--layout-7 .collage-item:nth-child(7) { grid-area: 3 / 3 / 4 / 5; }

/* 6-item mosaic: row1 V1|W|W — row2 V1|V3|V2 — row3 W|V3|V2 (V1/V2/V3 span two rows each) */
.collage--layout-6 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, minmax(160px, 200px));
    grid-auto-flow: unset;
}

.collage--layout-6 .collage-item:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.collage--layout-6 .collage-item:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.collage--layout-6 .collage-item:nth-child(3) { grid-area: 1 / 3 / 2 / 4; }
.collage--layout-6 .collage-item:nth-child(4) { grid-area: 2 / 2 / 4 / 3; }
.collage--layout-6 .collage-item:nth-child(5) { grid-area: 2 / 3 / 4 / 4; }
.collage--layout-6 .collage-item:nth-child(6) { grid-area: 3 / 1 / 4 / 2; }

/* 9-item mosaic: row1 V1|W|W — row2 V1|V2|V3 — row3 W|V2|V3 — row4 W|W|W (three portrait spans ×2 rows) */
.collage--layout-9 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, minmax(130px, 170px));
    grid-auto-flow: unset;
}

.collage--layout-9 .collage-item:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.collage--layout-9 .collage-item:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.collage--layout-9 .collage-item:nth-child(3) { grid-area: 1 / 3 / 2 / 4; }
.collage--layout-9 .collage-item:nth-child(4) { grid-area: 2 / 2 / 4 / 3; }
.collage--layout-9 .collage-item:nth-child(5) { grid-area: 2 / 3 / 2 / 3; }
.collage--layout-9 .collage-item:nth-child(6) { grid-area: 3 / 1 / 4 / 2; }
.collage--layout-9 .collage-item:nth-child(7) { grid-area: 4 / 1 / 5 / 2; }
.collage--layout-9 .collage-item:nth-child(8) { grid-area: 4 / 2 / 5 / 3; }
.collage--layout-9 .collage-item:nth-child(9) { grid-area: 3 / 4 / 5 / 3; }

.collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.45s var(--ease-out-expo),
                border-color 0.35s,
                box-shadow 0.45s var(--ease-out-expo);
    cursor: pointer;
}

.collage-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 77, 0, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
    pointer-events: none;
}

.collage-item:hover {
    transform: scale(1.04);
    border-color: rgba(255, 77, 0, 0.4);
    box-shadow: 0 12px 40px rgba(255, 77, 0, 0.12),
                0 0 0 1px rgba(201, 64, 255, 0.2);
}

.collage-item:hover::before {
    opacity: 1;
}

.collage-item--tall {
    grid-row: span 2;
}

.collage-item--wide {
    grid-column: span 2;
}

/* Collage: 3-col layout for 7 images */
@media (min-width: 640px) {
    .collage {
        gap: 8px;
    }
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--offset-x, 50%) var(--offset-y, 50%);
    transition: transform 0.6s var(--ease-out-expo);
}

.collage-item:hover img {
    transform: scale(1.08);
}

.collage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.5) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
    pointer-events: none;
}

.collage-item:hover .collage-overlay {
    opacity: 1;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out-expo),
                visibility 0.3s var(--ease-out-expo);
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox[aria-hidden="true"]:not(.is-open) {
    pointer-events: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

.lightbox-image-wrap {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-1);
    color: var(--accent-1);
}

/* ---------- Footer ---------- */
.footer {
    padding: 48px 0;
    background: var(--bg-primary);
    text-align: center;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* ---------- Reveal Animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 640px) {
    .nav {
        padding: 0 16px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .hero-tagline {
        letter-spacing: 0.2em;
    }

    .shows-section,
    .videos-section,
    .gallery-section {
        padding: 80px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .show-item {
        gap: 16px;
        padding: 16px 12px;
    }

    .show-venue {
        font-size: 1rem;
    }

    .show-tickets {
        padding: 8px 16px;
        font-size: 0.7rem;
    }

    .footer {
        padding: 48px 0 32px;
    }

    .collage {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: unset;
        grid-auto-rows: minmax(120px, 150px);
        gap: 5px;
    }

    .collage--layout-7 .collage-item {
        grid-area: auto;
    }

    .collage--layout-6 {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, minmax(100px, 130px));
        grid-auto-flow: unset;
    }

    .collage--layout-9 {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, minmax(88px, 115px));
        grid-auto-flow: unset;
    }

    .collage-item--wide {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .collage--layout-7 .collage-item:nth-child(n) {
        grid-area: auto;
    }

    .collage-item--tall {
        grid-row: span 2 !important;
        grid-column: span 1;
    }

    .collage-item--tall img {
        object-position: var(--offset-x, 50%) 50%;
    }

    .band-section {
        height: auto;
        min-height: 0;
    }

    .band-photo-wrap {
        position: relative;
        inset: auto;
    }

    .band-photo {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
