/* ═══════════════════════════════════════════════════════════════════════
   Landing page
   ═══════════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--brand-charcoal);
    margin-left: calc(50% - 50vw);
}
.hero-video,
.hero-image {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}
/* ─── Fallback image ────────────────────────────────────────────────
   Sits above the video in the stacking context but starts fully
   transparent. media.js fades it in only when the video stalls or
   fails, so successful playback never produces the poster-flash that
   the native `poster` attribute used to cause.
   ──────────────────────────────────────────────────────────────────── */
.hero-fallback-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.4s ease-in;
    pointer-events: none;
    background-color: var(--brand-charcoal);
}
.hero-fallback-img.is-visible {
    opacity: 1;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse at center, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.75) 100%);
    z-index: 2;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.25rem;
}
.hero-tagline {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 1.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.hero-tagline .x-accent { letter-spacing: 0; }
.hero-cta-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1.02;
    color: #ffffff;
    margin-bottom: 2.75rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    max-width: 1100px;
}
.hero-cta-text .x-accent { font-size: 1.05em; }
.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.05rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-pill);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}
.hero-cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}
.hero-cta-button:active { transform: translateY(0); }
/* ─── Hero scroll arrow ────────────────────────────────────────────
   Replaces the previous "SCROLL" wordmark with a hairline downward
   chevron. The element is now an anchor jumping to the next section
   so it's keyboard-accessible.
   ──────────────────────────────────────────────────────────────────── */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.65);
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    animation: heroBounce 2.5s ease-in-out infinite;
    transition: color var(--transition-fast), background var(--transition-fast);
}
.hero-scroll-hint:hover,
.hero-scroll-hint:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}
.hero-scroll-hint svg {
    width: 28px;
    height: 28px;
    display: block;
}
@keyframes heroBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%       { transform: translate(-50%, 6px); }
}
.sub-hero {
    background: var(--brand-charcoal);
    color: #ffffff;
    padding: 4rem 0 5rem;
}
.sub-hero h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.5rem;
}
.sub-hero p {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 2.5rem;
}
/* ─── Carousel ─────────────────────────────────────────────────────
   The wrap groups the rounded slide viewport and the dot indicator.
   By placing the dots OUTSIDE the rounded `.carousel` container, the
   black "strip" below the image disappears: the page background sits
   behind the dots instead of the carousel's dark fill.
   ──────────────────────────────────────────────────────────────────── */
.carousel-wrap {
    position: relative;
}
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: var(--shadow-lg);
}
.carousel-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
    cursor: zoom-in;
    background: #000;
    overflow: hidden;
    position: relative;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.carousel-slide:hover img { transform: scale(1.03); }
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
    transition: var(--transition);
}
.carousel-prev:hover, .carousel-next:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.4);
}
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}
.carousel-dot.active { background: var(--brand-red); width: 22px; border-radius: var(--radius-pill); }
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: 1rem;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity var(--transition);
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox img {
    max-width: 95vw;
    max-height: 92vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.events-preview {
    padding: 5rem 0;
    background: var(--bg-page);
}
.events-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
/* ─── Instagram social CTA ─────────────────────────────────────────
   Dark band rendered just below the upcoming-events grid. Native
   browser deep-link handling (instagram://) is attempted from JS;
   the visible href is the public web profile so the link works on
   desktop, share targets, and accessibility tools.
   ──────────────────────────────────────────────────────────────────── */
.social-cta {
    background: var(--brand-charcoal);
    color: #ffffff;
    padding: 4.5rem 0 5rem;
    text-align: center;
}
.social-cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.social-cta .social-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin: 0;
}
.social-cta h2 {
    color: #ffffff;
    margin: 0;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 2rem 0.95rem 1.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-pill);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}
.social-link:hover,
.social-link:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    color: #ffffff;
    outline: none;
}
.social-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}
.social-link-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}
.social-handle {
    font-feature-settings: "tnum";
}
.social-arrow {
    width: 18px;
    height: 18px;
    opacity: 0.65;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.social-link:hover .social-arrow {
    opacity: 1;
    transform: translateX(4px);
}
.site-footer {
    background: var(--brand-charcoal);
    color: rgba(255, 255, 255, 0.6);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
}
.site-footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}
.site-footer a:hover { color: var(--brand-red); }
@media (max-width: 768px) {
    .site-footer .container { flex-direction: column; text-align: center; }
}
.hero-cta-text .x-perience-line {
    white-space: nowrap;
}
img.progressive-img {
    background-color: var(--brand-charcoal);
    transition:
            filter 0.45s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
img.progressive-img.progressive-blur {
    filter: blur(20px) saturate(1.15);
    transform: scale(1.04);
}
img.progressive-img.progressive-loaded {
    filter: blur(0);
    transform: scale(1);
}
img.progressive-img.progressive-error {
    filter: grayscale(0.4) blur(0);
    transform: scale(1);
}
/* Make landing-page and events-page event cards interactive when they
   carry data-card-href. The whole card behaves like a link. */
.event-card[data-card-href] {
    cursor: pointer;
}
.event-card[data-card-href]:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 3px;
}
/* Anchor scroll offset accounts for fixed navbar height. */
:target {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}
.event-card {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}