/* ===== 42 — Events Page (Ticket-Stub / Boarding-Pass System) =====
   Page-specific styles. Header, mobile menu, ticket-tab component,
   and footer come from header-footer.css (shared site-wide). */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Space+Grotesk:wght@600;700&display=swap');

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: 'Space Mono', 'Courier Prime', monospace;
    min-height: 100vh;
}

a {
    color: inherit;
}

/* ===== Kinetic clip-path title reveal ===== */
.kinetic-clip {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.kinetic-clip.in-view {
    clip-path: inset(0 0 0% 0);
}

/* ===== Featured Event Hero ===== */
.ev-hero {
    margin: 0 32px;
    padding-top: 0;
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "visual content"
        "visual meta";
    gap: 0 48px;
}

/* Eyes graphic — masked/feathered so it dissolves into the page
   background instead of sitting inside a visible frame. */
.ev-hero-visual {
    grid-area: visual;
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: -1.5rem;
    padding-bottom: 0;
}

/* Dedicated wrapper carries its own black backdrop + mask so the eyes
   graphic never flashes a hard-edged box on repaint (tab refocus, GPU
   compositor resets) — the mask is applied here AND on the <img> itself
   as a redundant second pass, since relying on the img's mask alone was
   the source of the intermittent unmasked-box flash. */
.hero-eyes-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000000 !important;
    overflow: hidden;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 75%);
}

.ev-hero-eyes {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 75%);
    mix-blend-mode: screen;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.ev-hero-content {
    grid-area: content;
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 40px 0 16px;
}

.ev-hero-tag {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-hover);
    font-weight: 700;
}

.ev-hero-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.ev-title-logo {
    height: 1.15em;
    width: auto;
    display: block;
}

.ev-hero-desc {
    color: var(--grey);
    font-size: 0.78rem;
    line-height: 1.8;
    max-width: 46ch;
}

.ev-hero-meta {
    grid-area: meta;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 40px;
}

.ev-hero-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ev-stub-row {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--grey);
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 10px;
}

.ev-stub-row span:last-child {
    color: var(--ink);
    font-weight: 700;
}

.ev-map-link {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--panel-border);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.ev-map-link:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
}

.ev-hero-cta {
    margin-top: 10px;
    align-self: flex-start;
    padding: 14px 28px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
}

.ev-hero-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Get Tickets CTA on each individual ticket-tier card. */
.ev-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 12px;
    padding: 10px 20px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.ev-card-cta:hover {
    background: var(--accent-hover);
}

/* Contact / booking block on Premium Table cards. */
.ev-card-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.ev-card-contact-link {
    font-size: 0.62rem;
    color: var(--grey);
    text-decoration: underline;
    text-decoration-color: var(--panel-border);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.ev-card-contact-link:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
}

.ev-card-book-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ev-card-book-btn {
    flex: 1;
    white-space: nowrap;
    text-align: center;
    padding: 10px 14px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ev-card-book-btn:hover {
    background: var(--accent-hover);
}

.ev-card-book-btn--alt {
    background: transparent;
    border: 1px solid var(--panel-border);
    color: var(--ink);
}

.ev-card-book-btn--alt:hover {
    border-color: var(--accent-hover);
    color: var(--accent-hover);
}

/* ===== Special Guests Marquee ===== */
.ev-guests {
    margin: 0.5rem 0;
}

/* Tightens the gap to the section immediately following the marquee
   (Ticket Options) without affecting other .ev-section-head instances. */
.ev-guests + section .ev-section-head {
    margin-top: 8px;
}

/* transform: translateZ(0) forces its own compositing layer — Safari
   (particularly iOS) can fail to repaint an animated child inside a
   masked ancestor that isn't already on its own layer, which is the
   most likely cause of the marquee sometimes not appearing on phone. */
.ev-marquee {
    width: 100%;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.ev-marquee-track {
    display: flex;
    flex-shrink: 0;
    width: max-content;
    animation: continuous-scroll 30s linear infinite;
    will-change: transform;
}

@keyframes continuous-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.ev-marquee-card {
    height: 220px;
    width: auto;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: block;
}

/* ===== Section Head ===== */
.ev-section-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 0 32px;
    margin: 56px 0 20px;
}

.ev-section-index {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--grey);
}

.ev-section-head h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-weight: 700;
}

/* ===== Credential Card Grid (Tickets / Tables) ===== */
.ev-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--panel-border);
    border: 1px solid var(--panel-border);
    margin: 0 32px 8px;
}

.ev-card {
    background: var(--bg);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.ev-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(30, 86, 200, 0.14), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ev-card:hover {
    transform: scale(1.03);
    border-left-color: var(--accent-hover);
    z-index: 5;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.ev-card:hover::after {
    opacity: 1;
}

.ev-card-index {
    font-size: 0.58rem;
    color: var(--grey);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ev-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.ev-card:hover h4 {
    color: var(--accent-hover);
}

.ev-card-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}

.ev-card-sub {
    font-size: 0.6rem;
    color: var(--grey);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ev-card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.ev-card-list li {
    font-size: 0.62rem;
    color: var(--grey);
    letter-spacing: 0.02em;
    padding-left: 14px;
    position: relative;
}

.ev-card-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--accent-hover);
}

/* ===== Detail Drawer Toggle ===== */
.ev-drawer-toggle {
    background: none;
    border: none;
    color: var(--accent-hover);
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: left;
    padding: 0;
    margin-top: 8px;
}

.ev-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.ev-drawer.open {
    max-height: 300px;
    opacity: 1;
    margin-top: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .ev-hero {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .ev-hero-visual {
        order: 1;
        min-height: 320px;
    }

    .ev-hero-eyes {
        transform: scale(1.15);
    }

    .ev-hero-content {
        order: 2;
        padding: 24px 0 8px;
    }

    .ev-hero-meta {
        order: 3;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 16px 0 24px;
    }

    .ev-hero-details {
        flex: 1;
        min-width: 0;
    }

    .ev-hero-cta {
        margin-top: 0;
        margin-left: 8px;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .ev-hero {
        margin: 20px;
    }

    .ev-hero-visual {
        min-height: 230px;
        margin-bottom: -3rem;
    }

    .ev-hero-content {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 6px;
    }

    .ev-hero-meta {
        padding: 12px 0 18px;
        gap: 12px;
    }

    .ev-hero-details {
        gap: 8px;
    }

    .ev-stub-row {
        font-size: 0.56rem;
        padding-bottom: 6px;
    }

    .ev-hero-cta {
        padding: 12px 18px;
        font-size: 0.6rem;
    }

    .ev-section-head {
        padding: 0 20px;
        margin: 40px 0 16px;
    }

    .ev-marquee-card {
        height: 150px;
        margin: 0;
    }

    .ev-card-grid {
        grid-template-columns: 1fr;
        margin: 0 20px 8px;
    }

    .ev-card:hover {
        transform: none;
    }

    /* ===== Ticket Options: interactive sticky-stack cards ===== */
    .ev-card-grid--stack {
        display: block;
        background: none;
        border: none;
    }

    .ev-card-grid--stack .ev-card {
        position: sticky;
        border: 1px solid var(--panel-border);
        margin-bottom: 16px;
        box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.5);
    }

    .ev-card-grid--stack .ev-card:nth-child(1) { top: 88px; z-index: 1; }
    .ev-card-grid--stack .ev-card:nth-child(2) { top: 104px; z-index: 2; }
    .ev-card-grid--stack .ev-card:nth-child(3) { top: 120px; z-index: 3; }
}
