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

:root {
    --bg:    #0a0810;
    --bg-2:  #110c18;
    --ink:   #ffffff;
    --muted: rgba(255, 255, 255, 0.55);
    --line:  rgba(255, 255, 255, 0.15);
    --accent:#d14a7a;
    --violet:#5a2c8a;
    --cream: #f5ecd8;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@media (hover: none), (pointer: coarse) {
    html, body { cursor: auto; }
}

.back-link {
    position: fixed;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    cursor: none;
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.3s;
}
.back-link:hover { opacity: 1; transform: translateY(-2px); }

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    will-change: transform;
}
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--cream);
    border-radius: 50%;
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(245, 236, 216, 0.6);
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}
.cursor-ring.is-hover { width: 60px; height: 60px; border-color: var(--cream); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* =========================================================
   LOADER — Concert ticket
   ========================================================= */
.loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: radial-gradient(ellipse at center, var(--bg-2) 0%, var(--bg) 80%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
}

.ticket {
    position: relative;
    width: min(520px, 82vw);
    height: 180px;
    display: flex;
    background: var(--cream);
    color: #1a1a1a;
    border-radius: 6px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55),
                0 10px 20px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    will-change: transform;
}

.ticket__half {
    position: relative;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    will-change: transform;
}
.ticket__half--left { flex: 0 0 72%; }
.ticket__half--right {
    flex: 1;
    background: #1a1a1a;
    color: var(--cream);
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ticket__perf {
    width: 1px;
    border-left: 2px dashed rgba(26, 26, 26, 0.35);
    margin: 12px 0;
    background: transparent;
}

.ticket__top, .ticket__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    color: rgba(26, 26, 26, 0.6);
}
.ticket__sm {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}
.ticket__main {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}
.ticket__date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: 0.05em;
}
.ticket__event {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.3rem;
    line-height: 0.85;
    letter-spacing: 0.02em;
    color: #1a1a1a;
}
.ticket__barcode {
    display: flex;
    gap: 1px;
    height: 28px;
    align-items: stretch;
    flex: 1;
    margin-right: 0.75rem;
}
.ticket__barcode span {
    display: block;
    background: #1a1a1a;
    flex: 1;
}
.ticket__stub {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}
.ticket__stub-no {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.ticket__stamp {
    position: absolute;
    top: 18%;
    right: 18%;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--accent);
    border: 3px solid var(--accent);
    padding: 0.2rem 0.8rem;
    letter-spacing: 0.15em;
    transform: rotate(-14deg) scale(3);
    opacity: 0;
    z-index: 5;
    text-shadow: 1px 1px 0 rgba(209, 74, 122, 0.4);
}

.loader__meta {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--muted);
}
.loader__counter {
    color: var(--cream);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 3ch;
}

/* =========================================================
   EVENT SECTION
   ========================================================= */
.event {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
    background: var(--bg);
}

/* ---------- Split background ---------- */
.bg { position: absolute; inset: 0; z-index: 1; }
.bg__half {
    position: absolute;
    top: 0; bottom: 0;
    width: 50%;
    overflow: hidden;
    will-change: transform;
}
.bg__half--left  { left: 0; }
.bg__half--right { right: 0; }
.bg__half img,
.bg__half video {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}

.bg__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(10, 8, 16, 0.45) 0%, rgba(10, 8, 16, 0.85) 100%),
        linear-gradient(180deg, rgba(10, 8, 16, 0.4) 0%, rgba(10, 8, 16, 0.2) 30%, rgba(10, 8, 16, 0.8) 100%),
        linear-gradient(90deg, rgba(90, 44, 138, 0.35) 0%, rgba(10, 8, 16, 0) 25%, rgba(10, 8, 16, 0) 75%, rgba(209, 74, 122, 0.2) 100%);
    pointer-events: none;
}

.bg__divider {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.25) 15%, rgba(255,255,255,0.25) 85%, transparent);
    transform-origin: center;
    z-index: 2;
    pointer-events: none;
}
.bg__divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 6px; height: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

/* ---------- Top nav ---------- */
.topnav {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.25rem 2rem;
    background: rgba(10, 8, 16, 0.6);
    backdrop-filter: blur(10px);
}
.topnav__left, .topnav__right {
    display: flex;
    gap: 2rem;
    flex: 1;
}
.topnav__left  { justify-content: flex-end; }
.topnav__right { justify-content: flex-start; }
.topnav a {
    position: relative;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    padding: 0.3rem 0;
    cursor: none;
    will-change: transform;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.topnav a.is-active { color: var(--cream); }
.topnav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 1px;
    background: var(--cream);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.topnav a.is-active::after,
.topnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.caret { font-size: 0.65em; opacity: 0.7; transition: transform 0.3s; }
.topnav a:hover .caret { transform: translateY(2px); }

.topnav__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    padding: 0 0.75rem;
    cursor: none;
    will-change: transform;
    text-decoration: none;
    color: var(--ink);
    white-space: nowrap;
}
.topnav__logo::after { display: none; }
.topnav__logo-divider {
    color: var(--accent);
    font-size: 1.2em;
    font-weight: 400;
}

/* ---------- Hero ---------- */
.hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    text-align: center;
    width: min(700px, 90vw);
    padding: 0 1rem;
}

.hero__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-bottom: 1rem;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.hero__line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.02em;
}
.hero__char {
    display: inline-block;
    will-change: transform, color;
    transition: color 0.3s ease;
}
.hero__char.is-space { width: 0.2em; }

.hero__date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    color: var(--muted);
    margin-bottom: 1.75rem;
}

/* Progress bar */
.progress {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto 1.5rem;
    height: 20px;
    display: flex;
    align-items: center;
}
.progress__ticks {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}
.progress__ticks span {
    flex: 1;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.progress__fill {
    position: absolute;
    left: 0; top: 50%;
    height: 2px;
    width: 0%;
    background: var(--cream);
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(245, 236, 216, 0.6);
    transform-origin: left;
}
.progress__handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px; height: 10px;
    background: var(--cream);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(245, 236, 216, 0.2);
}

/* Countdown */
.countdown {
    display: inline-flex;
    align-items: flex-start;
    gap: 2rem;
    font-family: 'Inter', sans-serif;
}
.countdown__dash {
    font-size: 2rem;
    line-height: 1;
    color: var(--muted);
    margin-top: 0.3rem;
}
.countdown__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 60px;
}
.countdown__value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    position: relative;
    will-change: transform;
}
.countdown__label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--muted);
    text-transform: uppercase;
}

/* ---------- Right-side quicklinks ---------- */
.quicklinks {
    position: absolute;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    z-index: 18;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.quicklinks a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.15em;
    cursor: none;
    will-change: transform;
}
.quicklinks__bar {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--cream);
    transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.quicklinks a:hover .quicklinks__bar { width: 70px; }
.quicklinks__text {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.quicklinks a:hover .quicklinks__text {
    transform: translateX(6px);
    color: var(--cream);
}

/* ---------- Bottom meta ---------- */
.meta {
    position: absolute;
    bottom: 1.5rem;
    left: 0; right: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    gap: 3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--muted);
}

/* ---------- Initial hidden states ---------- */
[data-magnetic], [data-link], [data-quick], [data-fade], [data-title-line] .hero__char, [data-bg] { opacity: 0; }
[data-title-line] .hero__char { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .topnav__left, .topnav__right { gap: 1.25rem; }
    .quicklinks { right: 1.25rem; gap: 0.5rem; }
    .quicklinks a { font-size: 0.85rem; }
    .quicklinks__bar { width: 24px; }
    .countdown { gap: 1rem; }
    .countdown__cell { min-width: 50px; }
    .ticket { height: 150px; }
    .ticket__event { font-size: 1.8rem; }
}
@media (max-width: 640px) {
    .topnav {
        display: grid;
        grid-template-columns: 1fr;
        padding: 0.6rem 1rem;
    }
    .topnav__left, .topnav__right { display: none; }
    .topnav__logo { justify-self: center; }
    .quicklinks {
        position: absolute;
        top: auto;
        bottom: 4rem;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        gap: 1rem;
    }
    .quicklinks__bar { display: none; }
    .quicklinks a { font-size: 0.7rem; }
    .meta { display: none; }
    .hero__date { font-size: 0.65rem; margin-bottom: 1rem; }
    .progress { max-width: 280px; }
    .countdown { gap: 0.7rem; }
    .countdown__dash { display: none; }
    .countdown__cell { min-width: 42px; }
    .countdown__value { font-size: 1.5rem; }
    .countdown__label { font-size: 0.6rem; }
    .bg__divider { display: none; }
}
