/* assets/css/main.css — JJS Creative Team v2 */

:root {
    --bg: #0f1419;
    --bg-warm: #141a21;
    --surface: #1a2230;
    --accent: #c9a96e;
    --accent-glow: rgba(201, 169, 110, 0.15);
    --text: #e8e4df;
    --text-muted: #8a9aad;
    --white: #ffffff;
    --font-display: 'Urbanist', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --radius: 0;
    --radius-sm: 0;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Glass & overlay */
    --glass-bg: rgba(15, 20, 25, 0.85);
    --glass-bg-heavy: rgba(15, 20, 25, 0.97);
    --gallery-bg: rgba(10, 14, 18, 0.96);
    --hero-overlay: linear-gradient(160deg, rgba(15, 20, 25, 0.7) 0%, rgba(15, 20, 25, 0.4) 40%, rgba(15, 20, 25, 0.8) 100%);

    /* Subtle borders & surfaces */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --surface-glass: rgba(255, 255, 255, 0.04);
    --surface-glass-hover: rgba(255, 255, 255, 0.06);
    --surface-interactive: rgba(255, 255, 255, 0.08);
    --surface-interactive-hover: rgba(255, 255, 255, 0.15);
    --btn-border: rgba(255, 255, 255, 0.2);
    --text-faint: rgba(255, 255, 255, 0.6);
    --line-subtle: rgba(255, 255, 255, 0.3);
    --scroll-track-bg: rgba(255, 255, 255, 0.12);
    --section-border: rgba(255, 255, 255, 0.03);

    /* Accent variants */
    --accent-border: rgba(201, 169, 110, 0.4);
    --accent-hover-border: rgba(201, 169, 110, 0.2);
    --accent-glow-strong: rgba(201, 169, 110, 0.5);
    --accent-glow-solid: rgba(201, 169, 110, 0.8);
    --accent-bg: rgba(201, 169, 110, 0.15);
    --accent-bg-hover: rgba(201, 169, 110, 0.25);
    --accent-border-line: rgba(201, 169, 110, 0.3);
    --accent-tint: rgba(201, 169, 110, 0.05);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.no-js .page-loader { display: none; }

/* Screen reader only */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .grain { display: none; }
    .cursor-dot, .cursor-ring { display: none; }
    .page-loader { display: none !important; }
}

/* ——— PAGE LOADER ——— */
.page-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.3em;
    animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ——— GRAIN OVERLAY ——— */
.grain {
    position: fixed; inset: -50%; z-index: 10000;
    width: 200%; height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    animation: grainShift 0.5s steps(4) infinite;
}
@keyframes grainShift { 0% { transform: translate(0, 0); } 25% { transform: translate(-5%, -5%); } 50% { transform: translate(5%, 0); } 75% { transform: translate(-2%, 5%); } 100% { transform: translate(0, 0); } }

/* ——— CUSTOM CURSOR ——— */
.cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 9998;
    pointer-events: none; border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
    display: none;
}
@media (hover: hover) and (pointer: fine) {
    .cursor-dot, .cursor-ring { display: block; }
    body { cursor: none; }
    a, button, [role="button"], input, textarea, select, label { cursor: none; }
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
    width: 40px; height: 40px;
    border: 1.5px solid var(--accent-border);
    mix-blend-mode: difference;
    transition: width 0.3s var(--ease), height 0.3s var(--ease);
}
.cursor-ring.is-hover { width: 64px; height: 64px; }

/* ——— SCROLL PROGRESS ——— */
.scroll-progress {
    position: fixed; top: 0; left: 0; z-index: 9997;
    height: 2px; width: 0;
    background: linear-gradient(90deg, var(--accent), #e8c97a);
    transition: none;
}

/* ——— TYPOGRAPHY ——— */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--white);
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ——— BUTTONS ——— */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    border: none; cursor: pointer;
    position: relative; overflow: hidden;
    transition: all 0.4s var(--ease);
}

.btn--pill {
    padding: 0.9rem 2.5rem;
    border-radius: 0;
    background: transparent;
    border: 1.5px solid var(--btn-border);
    color: var(--text);
}
.btn--pill:hover { border-color: var(--accent); color: var(--accent); }

.btn--gold {
    padding: 1rem 2.5rem;
    border-radius: 0;
    background: var(--accent);
    color: var(--bg);
    border: none;
}
.btn--gold:hover { background: #d4b87a; transform: translateY(-2px); }

/* ——— NAVIGATION ——— */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem;
    background: transparent;
    transition: background 0.4s var(--ease), padding 0.3s var(--ease);
}
nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 1.25rem;
}

.brand {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
}

nav .links { display: flex; gap: 2.5rem; margin-left: auto; margin-right: 2rem; }
nav .links .nav-link {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
}
nav .links .nav-link:hover { color: var(--white); }
nav .links .nav-link::after {
    content: '';
    position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}
nav .links .nav-link:hover::after { width: 100%; }

/* Hamburger */
.nav-hamburger {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 32px; height: 24px; position: relative;
    z-index: 110;
}
.nav-hamburger__line {
    display: block; width: 100%; height: 2px;
    background: var(--white);
    position: absolute; left: 0;
    transition: all 0.4s var(--ease);
}
.nav-hamburger__line:first-child { top: 6px; }
.nav-hamburger__line:last-child { bottom: 6px; }
.nav-hamburger[aria-expanded="true"] .nav-hamburger__line:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] .nav-hamburger__line:last-child { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 768px) {
    nav .links { display: none; }
    .nav-hamburger { display: block; }
}

/* ——— MOBILE BOTTOM NAV ——— */
.mobile-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 9990;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    padding: 0.7rem 0.5rem;
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
}
@media (max-width: 768px) { .mobile-nav { display: flex; } }

.mobile-nav__link {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.4rem 0.6rem;
    border-radius: 0;
    transition: color 0.3s, background 0.3s;
}
.mobile-nav__link--active {
    color: var(--accent);
    background: var(--accent-glow);
}

/* ——— MOBILE MENU OVERLAY ——— */
.mobile-menu {
    position: fixed; inset: 0; z-index: 105;
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu__links { text-align: center; display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-menu__link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 700;
    color: var(--text);
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.mobile-menu.is-open .mobile-menu__link {
    opacity: 1; transform: translateY(0);
}
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu__link:hover { color: var(--accent); }

/* ——— HERO (Kinetic Typography) ——— */
.hero-kinetic {
    position: relative;
    height: 100vh; height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg);
}

.hero-kinetic__bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-kinetic__content {
    position: relative; z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 var(--gutter);
}

.hero-kinetic__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-kinetic__line {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(3.5rem, 12vw, 10rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 0.9;
    display: block;
    overflow: hidden;
}

.hero-kinetic__line--filled {
    color: var(--accent);
}

.hero-kinetic__line--outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-muted);
}
@media (max-width: 768px) {
    .hero-kinetic__line--outline {
        -webkit-text-stroke-width: 1px;
    }
}

.hero-kinetic__cities {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-kinetic__dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-kinetic__cta {
    margin-top: 1.5rem;
}

/* Char-level animation wrappers */
.char-wrap { display: inline-block; overflow: hidden; vertical-align: bottom; }
.char { display: inline-block; will-change: transform; }

/* ——— HERO SCROLL INDICATOR ——— */
.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
}
.hero-scroll__line {
    width: 1px;
    height: 40px;
    background: var(--line-subtle);
    position: relative;
    overflow: hidden;
}
.hero-scroll__line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { top: -100%; }
    50% { top: 100%; }
    50.01% { top: -100%; }
    100% { top: 100%; }
}

/* ——— ABOUT (sticky scroll) ——— */
.about-section {
    position: relative;
}
.about-sticky {
    padding: clamp(5rem, 12vh, 10rem) 0;
    z-index: 1;
}

/* Team photo section */
.team-photo-section {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: clamp(1.5rem, 4vh, 2.5rem) 0;
}
.team-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.team-photo-left {
    display: flex;
    align-items: center;
}
.stats-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 3vw, 3rem);
}
.stat {
    text-align: left;
}
.stat-rule {
    display: block;
    width: 32px;
    height: 2px;
    background: #c9a96e;
    margin-bottom: 0.75rem;
}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    color: #c9a96e;
    line-height: 1;
    display: block;
}
.stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #555;
    margin-top: 0.4rem;
    display: block;
}
.team-photo-right {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    margin-top: clamp(-4rem, -8vh, -2rem);
    margin-bottom: clamp(-4rem, -8vh, -2rem);
}
.polaroid {
    background: #fff;
    padding: 14px 14px 52px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: rotate(1.5deg);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 680px;
    width: 100%;
}
.polaroid:hover {
    transform: rotate(-1deg) scale(1.03) translateY(-8px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.12);
}
.polaroid img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center 25%;
}
@media (max-width: 768px) {
    .team-photo-grid {
        grid-template-columns: 1fr;
    }
    .team-photo-left {
        padding-top: 1rem;
    }
    .stats-group {
        gap: 1.5rem;
    }
    .stat {
        text-align: center;
    }
    .stat-rule {
        margin: 0 auto 0.5rem;
    }
    .stat-number {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
    .team-photo-right {
        padding-top: 2.5rem;
        margin-top: 0;
        margin-bottom: 0;
    }
    .polaroid {
        max-width: 100%;
        width: 100%;
        padding: 10px 10px 40px;
        transform: rotate(0deg);
        margin: 0 auto;
    }
}

/* Partners / As Featured In */
.partners-section {
    padding: clamp(2rem, 5vh, 4rem) 0 clamp(2rem, 5vh, 4rem);
    background: var(--bg);
    text-align: center;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}
.partners-marquee {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}
.partners-track {
    display: flex;
    align-items: center;
    gap: clamp(3rem, 5vw, 5rem);
    padding: 0 clamp(1.5rem, 2.5vw, 2.5rem);
}
.partner-logo {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.partner-logo:hover {
    opacity: 1;
}
.partner-logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}
@keyframes marquee-scroll {
    to { transform: translateX(-50%); }
}
.partners-marquee:hover {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .partners-marquee {
        animation: none;
        flex-wrap: wrap;
        width: auto;
        justify-content: center;
    }
    .partners-track:last-child {
        display: none;
    }
}
@media (max-width: 768px) {
    .partners-marquee {
        animation: none;
        flex-wrap: wrap;
        width: auto;
        justify-content: center;
    }
    .partners-track {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center;
        padding: 0;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
    .partners-track:last-child {
        display: none;
    }
    .partner-logo {
        padding: 0.75rem;
    }
    .partner-logo img {
        max-height: 40px;
    }
}

/* Highlight accent */
.highlight {
    color: var(--accent);
}
.reveal-heading .highlight .word {
    display: inline-block;
    opacity: 0.15;
    transition: opacity 0.3s;
}
.reveal-heading .highlight .word.is-visible {
    opacity: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.about-left {
    align-self: start;
}
@media (min-width: 769px) {
    .about-left {
        position: sticky;
        top: clamp(5rem, 12vh, 10rem);
    }
}
.about-left h2 { margin-bottom: 0; }

.about-right p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Word-by-word reveal */
.reveal-heading .word,
.reveal-text .word {
    display: inline-block;
    opacity: 0.15;
    transition: opacity 0.3s;
}
.reveal-heading .word.is-visible,
.reveal-text .word.is-visible { opacity: 1; }

/* Glass cards */
.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}
@media (max-width: 500px) {
    .about-cards { grid-template-columns: 1fr; }
}

.glass-card {
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color 0.4s, transform 0.4s var(--ease);
}
.glass-card:hover { border-color: var(--accent-hover-border); }
.glass-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}
.glass-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}
.glass-card__cta {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-border-line);
    padding-bottom: 0.2rem;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.glass-card__cta:hover {
    color: var(--white);
    border-color: var(--white);
}

/* About image (legacy — now using .polaroid) */
.about-image img {
    width: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    top: 0; left: 0;
    will-change: transform;
}

/* ——— EVENTS ——— */
#events {
    padding: clamp(3rem, 8vh, 7rem) 0 2rem;
    overflow: visible;
}

.events-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
}
.events-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 50ch;
}

/* Horizontal scroll track */
.events-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 1.25rem 2rem;
    scrollbar-width: none;
}
.events-track::-webkit-scrollbar { display: none; }

/* Event card */
.event-card {
    flex: 0 0 clamp(260px, 32vw, 380px);
    scroll-snap-align: start;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    font-family: inherit;
    transition: transform 0.5s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.event-card:disabled { cursor: default; opacity: 0.5; }
.event-card:not(:disabled):hover { transform: translateY(-8px); }

.event-card__img {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--surface);
}
.event-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.event-card:not(:disabled):hover .event-card__img img { transform: scale(1.05); }

.event-card__placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--surface) 0%, var(--accent-tint) 100%);
}

/* Animated line on hover */
.event-card__img::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.event-card:not(:disabled):hover .event-card__img::after { transform: scaleX(1); }

.event-card__info { padding: 0 0.25rem; }
.event-card__tag {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.4rem;
}
.event-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}
.event-card:not(:disabled):hover .event-card__title { color: var(--white); }
.event-card__location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ——— GALLERY VIEWER ——— */
.gallery {
    position: fixed; inset: 0; z-index: 200;
    background: var(--gallery-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.gallery:not([hidden]) { opacity: 1; visibility: visible; }
.gallery.is-opening .gallery-viewer {
    animation: galleryScaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes galleryScaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.gallery-viewer {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    position: relative;
}

/* Auto-hide controls */
.gallery-close,
.gallery-prev,
.gallery-next,
.gallery-counter,
.gallery-dots {
    transition: opacity 0.4s var(--ease), background 0.3s;
}
.gallery.controls-hidden .gallery-close,
.gallery.controls-hidden .gallery-prev,
.gallery.controls-hidden .gallery-next,
.gallery.controls-hidden .gallery-counter,
.gallery.controls-hidden .gallery-dots {
    opacity: 0; pointer-events: none;
}

.gallery-close {
    position: absolute; top: 1rem; right: 1.5rem;
    z-index: 10;
    background: none; border: none;
    font-size: 2rem; color: var(--text);
    cursor: pointer;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.gallery-close:hover { background: var(--border-medium); }

.gallery-container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.gallery-stage {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative;
    padding: 1rem;
}

.gallery-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center; justify-content: center;
    max-height: calc(100vh - 140px);
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Blurred background fill behind contained image */
.gallery-blur-bg {
    position: absolute; inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(50px) brightness(0.3);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}
.gallery-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    position: relative;
    z-index: 1;
}

.gallery-prev, .gallery-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: var(--surface-interactive);
    border: 1px solid var(--border-medium);
    border-radius: 50%;
    width: 48px; height: 48px;
    font-size: 1.5rem; color: var(--text);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
}
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-prev:hover, .gallery-next:hover { background: var(--surface-interactive-hover); }

.gallery-counter {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.5rem 0 0.25rem;
    text-align: center;
}

/* Dot indicators — replace thumbnails for cleaner look */
.gallery-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.25rem 0 0.5rem;
    flex-wrap: wrap;
    max-width: 400px;
}
.gallery-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.3;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
}
.gallery-dot.is-active {
    opacity: 1;
    background: var(--accent);
    transform: scale(1.3);
}
.gallery-dot:hover { opacity: 0.7; }

/* Collapsible thumbnail strip for large galleries (7+) */
.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem 0;
    max-width: 600px;
    overflow-x: auto;
    scrollbar-width: none;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s var(--ease), opacity 0.3s, padding 0.4s;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs.is-expanded {
    max-height: 70px;
    opacity: 1;
    padding: 0.5rem 0;
}
.gallery-thumbs img {
    width: 48px; height: 48px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 2px;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}
.gallery-thumbs img.is-active { opacity: 1; border-color: var(--accent); }
.gallery-thumbs img:hover { opacity: 0.8; }

/* Thumb toggle button */
.gallery-thumb-toggle {
    background: none; border: none; padding: 0;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
    display: none;
}
.gallery-thumb-toggle:hover { opacity: 1; }
.gallery-thumb-toggle.is-visible { display: block; }

.gallery-info {
    width: 320px;
    padding: 3rem 2rem;
    border-left: 1px solid var(--border-subtle);
    overflow-y: auto;
}
.gallery-info-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}
.gallery-info-meta {
    display: flex; flex-direction: column; gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.gallery-info-meta > div:empty { display: none; }
.gallery-info-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Mobile gallery */
@media (max-width: 900px) {
    .gallery-container { flex-direction: column; }
    .gallery-prev, .gallery-next { display: none; }
    .gallery-image-wrapper { max-height: calc(100vh - 200px); }

    /* Collapsible drawer */
    .gallery-info {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-subtle);
        padding: 0;
        max-height: 52px;
        overflow: hidden;
        transition: max-height 0.4s var(--ease);
        position: relative;
    }
    .gallery-info.is-expanded { max-height: 300px; overflow-y: auto; }
    .gallery-info-drawer-handle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem;
        cursor: pointer;
        gap: 0.5rem;
    }
    .gallery-info-drawer-handle::before {
        content: '';
        width: 32px; height: 3px;
        border-radius: 2px;
        background: var(--text-muted);
        opacity: 0.4;
    }
    .gallery-info-drawer-content { padding: 0 1.5rem 1.5rem; }
}
@media (min-width: 901px) {
    .gallery-info-drawer-handle { display: none; }
    .gallery-info-drawer-content { display: contents; }
}

/* ——— CONTACT ——— */
#contact {
    padding: clamp(3rem, 8vh, 7rem) 0 clamp(3rem, 6vh, 5rem);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 768px) {
    #contact { padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(2.5rem, 5vh, 4rem); }
    #contact .container { padding: 0 clamp(1.5rem, 5vw, 2.5rem); overflow: hidden; }
    .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .contact-left { position: static !important; text-align: center; max-width: 100%; }
    .contact-left .label { display: inline-block; }
    .contact-left h2 { font-size: clamp(1.5rem, 6vw, 2rem); overflow-wrap: break-word; }
    .contact-left p { font-size: 0.9rem; padding: 0 0.5rem; }
    .contact-right { max-width: 500px; margin: 0 auto; width: 100%; }
    .contact-form { padding: 1.5rem; }
}

.contact-left {
    position: sticky;
    top: 6rem;
}
.contact-left h2 { margin-bottom: 1rem; }
.contact-left p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
}
.alert--success { background: rgba(76, 175, 80, 0.1); border-color: rgba(76, 175, 80, 0.3); color: #81c784; }
.alert--error { background: rgba(244, 67, 54, 0.1); border-color: rgba(244, 67, 54, 0.3); color: #e57373; }
.alert--warning { background: rgba(255, 193, 7, 0.1); border-color: rgba(255, 193, 7, 0.3); color: #ffd54f; }

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    padding: 2rem 2rem 2.5rem;
}

.h-captcha {
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
}
.h-captcha iframe {
    max-width: 100%;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.form-group input,
.form-group textarea {
    background: var(--surface-glass);
    border: 1px solid var(--surface-interactive);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s, background 0.3s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--surface-glass-hover);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ——— FOOTER ——— */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: clamp(3rem, 6vh, 5rem) 0 2rem;
    text-align: center;
}
@media (max-width: 768px) {
    footer { padding-bottom: calc(3rem + 60px); }
}

.footer-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}
.footer-headline__line {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 6rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 0.95;
    color: transparent;
    -webkit-text-stroke: 2px var(--text-muted);
}
@media (max-width: 768px) {
    .footer-headline__line {
        -webkit-text-stroke-width: 1px;
    }
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 clamp(2rem, 4vh, 3rem);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
}
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-links {
    display: flex; gap: 1.5rem;
}
.footer-links a {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }

/* ——— SCROLL TO TOP ——— */
.scroll-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    z-index: 99;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border-line);
    color: var(--accent);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
}
.scroll-to-top.is-visible {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.scroll-to-top:hover { background: var(--accent-bg-hover); }

@media (max-width: 768px) {
    .scroll-to-top { bottom: calc(2rem + 60px); right: 1rem; }
}

/* ——— UTILITY ——— */
[hidden] { display: none !important; }

/* Smooth section transitions */
section + section {
    border-top: 1px solid var(--section-border);
}

/* ——— LIGHT THEME ——— */

/* ——— THEME TRANSITION ——— */
