/* Event landing page in the alwaysdale.com look (Squarespace theme: black, Orbitron headings, Nunito Sans,
   blue #049AD1 square buttons), with a per-event accent colour (--accent) set from the Worker. */
:root { --blue: #049ad1; --accent: #049ad1; --accent-ink: #fff; --fg: #fff; --muted: rgba(255,255,255,.72); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #000; color: var(--fg); font-family: "Nunito Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.6; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(14px + env(safe-area-inset-top)) 4vw 14px; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav-left { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 4px clamp(10px, 1.6vw, 22px); }
.nav-left a { font-size: clamp(12px, 1.15vw, 16px) !important; }   /* 5 links stay on one line on small laptops */
.nav-left a, .mobile-menu a { text-decoration: none; text-transform: uppercase; font-size: 16px; letter-spacing: .02em; }
.nav-left a:hover { text-decoration: underline; text-underline-offset: 6px; }
.brand img { height: 46px; display: block; }
.socials { display: flex; justify-content: flex-end; gap: 22px; }
.socials svg { width: 20px; height: 20px; fill: #fff; display: block; }
.burger { display: none; justify-self: end; width: 40px; height: 40px; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; height: 2px; background: #fff; margin: 7px 0; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 19; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: Orbitron, sans-serif; font-size: 26px; }
@media (max-width: 999px) {   /* same switch point as the rest of the site */
  .site-header { grid-template-columns: auto 1fr; padding-left: 20px; padding-right: 20px; }
  .nav-left, .socials { display: none; }
  .brand { grid-column: 1; }
  .brand img { height: 38px; }
  .burger { display: block; grid-column: 2; }
}

/* Hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); filter: saturate(1.1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 45%, #000 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 6vw 44px; text-align: center; }
.kicker { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent); padding: 5px 10px; margin-bottom: 16px; text-shadow: 0 0 12px var(--accent); }
.hero h1 { font-family: Orbitron, sans-serif; font-weight: 900; font-size: clamp(44px, 11vw, 110px); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 12px;
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent); }
.hero .sub { font-family: Orbitron, sans-serif; text-transform: uppercase; font-size: clamp(14px, 3.4vw, 20px); letter-spacing: .02em; margin: 0 0 22px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0 0 28px; font-size: 17px; font-weight: 700; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 18px; height: 18px; fill: var(--accent); }
.btn { display: inline-block; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: 16px; font-weight: 700;
  padding: 18px 44px; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.btn[aria-disabled="true"] { background: #333; border-color: #333; color: #aaa; pointer-events: none; }

/* Sections */
.section { max-width: 820px; margin: 0 auto; padding: 56px 6vw; }
.section h2, .tickets h2 { font-family: Orbitron, sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 6vw, 40px); line-height: 1.1; margin: 0 0 20px; }
.about { font-size: 17px; text-align: center; }
.about-section h2 { text-align: center; }
/* Centred text: bullet dots would sit far from the words, so lists become plain centred lines */
.about ul, .about ol { list-style: none; padding: 0; margin: 0 0 14px; }
.about li { margin: 0 0 8px; }
.about p { margin: 0 0 14px; }
.about a { color: var(--accent); overflow-wrap: anywhere; }
.about strong { color: #fff; }

/* Tickets: Showpass widget embedded under our own branded bar */
.tickets { max-width: 820px; margin: 0 auto; padding: 24px 0 56px; scroll-margin-top: 70px; }
.tickets h2 { padding: 0 6vw; }
.ticket-shell { border-top: 3px solid var(--accent); background: #fff; color: #000; box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 30%, transparent); }
.ticket-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #000; color: #fff; border-bottom: 1px solid #222; }
.ticket-bar img { height: 28px; display: block; }
.ticket-bar span { font-size: 12px; color: var(--muted); text-align: right; }
#showpass-tickets { min-height: 560px; position: relative; }
.ticket-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: #555; font-weight: 700; }
.ticket-loading::before { content: ""; width: 34px; height: 34px; border: 3px solid #ddd; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ticket-fallback { padding: 30px 20px; text-align: center; color: #000; }

.venue { display: grid; gap: 6px; font-size: 17px; }
.venue .name { font-family: Orbitron, sans-serif; font-size: 22px; text-transform: uppercase; }
.venue a.map { color: var(--accent); font-weight: 700; }

/* Footer: like alwaysdale.com */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 60px 4vw calc(40px + env(safe-area-inset-bottom)); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px 70px; }
.site-footer nav a { font-family: Orbitron, sans-serif; color: var(--blue); text-transform: uppercase; font-size: 18px; text-underline-offset: 4px; }
.site-footer p { margin: 0; font-family: Orbitron, sans-serif; font-weight: 700; text-transform: uppercase; }
@media (max-width: 700px) { .site-footer nav { flex-direction: column; gap: 22px; } .site-footer nav a { font-size: 26px; } .site-footer p { width: 100%; text-align: right; } }

/* Sticky Get Tickets bar on phones once the hero button scrolls away */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 15; text-align: center; text-decoration: none; text-transform: uppercase;
  font-weight: 800; letter-spacing: .06em; padding: 16px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 30px rgba(0,0,0,.6); }
.sticky-cta[hidden] { display: none; }
@media (min-width: 901px) { .sticky-cta { display: none; } }

/* Phones: dim the poster more so its artwork doesn't fight the title */
@media (max-width: 700px) {
  .hero { min-height: 72vh; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.7) 50%, #000 100%); }
  .hero-bg { filter: blur(2px) saturate(1.1); }
}
/* Give the Showpass box room so the ticket list shows without scrolling inside a short frame */
#showpass-tickets iframe { width: 100% !important; height: 82vh !important; min-height: 640px; border: 0; display: block; }
.tickets { scroll-margin-top: 90px; }

/* Optional dark mode for the Showpass box (/events/<slug>?dark=1). Showpass has no dark theme, so we invert the
   whole frame and rotate hues back: white -> near-black, greens stay green. Photos inside get inverted too. */
.sp-dark .ticket-shell { background: #141414; color: #fff; }
/* saturate(1.6) pairs with the pre-inverted banner (albums\make-dark-banner.js, SAT=1.6) so the poster shows true colours */
.sp-dark #showpass-tickets iframe { filter: invert(.92) hue-rotate(180deg) saturate(1.6); }
.sp-dark .ticket-loading { color: #aaa; }
/* Ticket sheet: one full-screen panel (phones) / tall centred panel (desktop). Only the sheet scrolls while open. */
.tickets-cta p { color: var(--muted); margin: 0 0 22px; }
.sheet { position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: -1; display: flex; flex-direction: column; background: #fff;
  opacity: 0; pointer-events: none; } /* kept on screen (but invisible) so the browser keeps loading Showpass */
.sheet.open { z-index: 50; opacity: 1; pointer-events: auto; animation: sheet-in .25s ease; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px; background: #000; color: #fff; border-bottom: 2px solid var(--accent); }
.sheet-bar img { height: 30px; display: block; }
.sheet-bar span { flex: 1; font-size: 12px; color: var(--muted); text-align: right; }
.sheet-bar button { width: 44px; height: 44px; font-size: 22px; background: none; border: 0; color: #fff; cursor: pointer; }
.sheet #showpass-tickets { flex: 1; min-height: 0; position: relative; }
/* Pin the Showpass frame to all four edges of the sheet: on iPhones a percentage height inside a flex box can
   come out short, leaving an empty strip under Showpass's order-summary bar */
.sheet #showpass-tickets iframe { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; min-height: 0 !important; display: block; border: 0; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(0,0,0,.7); opacity: 0; pointer-events: none; transition: opacity .2s; }
body.sheet-open { overflow: hidden; }
body.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
body.sheet-open .sticky-cta { display: none; }
.sp-dark .sheet { background: #141414; }
@media (min-width: 901px) {
  .sheet { inset: 3vh auto 3vh 50%; height: auto; width: 560px; margin-left: -280px; border: 1px solid #222; box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 25%, transparent); }
}
/* ---------- Themed event pages (art + effects from /themes/<event>.json) ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.has-fx-bg { background: #000; }
body.has-fx-bg .hero.themed { min-height: 92vh; min-height: 92svh; align-items: center; }
body.has-fx-bg .hero.themed::after { background: radial-gradient(ellipse at center, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%); }
.hero-logo { display: block; width: min(88vw, 560px); height: auto; margin: -10px auto 4px; }
body.has-fx-bg .hero-inner { padding-top: 24px; }
body.has-fx-bg .section { position: relative; }
/* full-width dark band behind each section; clip-path keeps it from widening the page (no sideways drift on phones) */
body.has-fx-bg .section::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); z-index: -1;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); clip-path: inset(0 -100vmax); } /* full-bleed band that adds no page width */
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }
body.has-fx-bg .site-header { background: rgba(0,0,0,.6); }
.sec-intro { color: var(--muted); margin: -8px 0 20px; }

/* Image blocks + galleries */
.section.media.wide { max-width: 1180px; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 18%, transparent); }
.gallery { display: grid; gap: 16px; }
.gallery.n2 { grid-template-columns: repeat(2, 1fr); }
.gallery.n3 { grid-template-columns: repeat(3, 1fr); }
/* Photo collage (theme gallery with "layout": "collage"): photos keep their shape, packed into columns on desktop */
@media (min-width: 761px) {
  .gallery.collage { display: block; columns: 3; column-gap: 14px; }
  .gallery.collage .shot { break-inside: avoid; margin-bottom: 14px; }
}
@media (max-width: 760px) { .gallery.collage { align-items: center; } .gallery.collage .shot { flex-basis: 84%; } }
@media (max-width: 760px) {
  /* swipe sideways through galleries on phones */
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -6vw; padding: 0 6vw 10px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .shot { flex: 0 0 80%; scroll-snap-align: center; }
  .section.media:not(.wide) .shot { max-width: 520px; margin: 0 auto; }
}

/* Full-screen image viewer */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; font-size: 24px; color: #fff; background: none; border: 0; }
body.lb-open { overflow: hidden; }
/* Phones: give the checkout more room. Slim Always Dale bar, and show Showpass's (oversized) mobile layout at 90%:
   the frame is laid out 1/0.9 bigger and scaled down, so ~11% more fits on screen. Inputs keep their own 16px
   size inside the frame, so iOS doesn't zoom on focus. */
@media (max-width: 900px) {
  .sheet-bar { padding: calc(4px + env(safe-area-inset-top)) 4px 4px 14px; gap: 10px; border-bottom-width: 2px; }
  .sheet-bar img { height: 22px; }
  .sheet-bar span { font-size: 11px; }
  .sheet-bar button { width: 40px; height: 40px; font-size: 20px; }
  .sheet #showpass-tickets { overflow: hidden; }
  .sheet #showpass-tickets iframe { right: auto !important; bottom: auto !important;
    width: calc(100% / .9) !important; height: calc(100% / .9) !important; transform: scale(.9); transform-origin: 0 0; }
}
/* Hero venue = link to Maps */
.facts .fact-link { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-underline-offset: 4px; }
.facts .fact-link:hover { color: var(--accent); }

/* Tighter vertical rhythm between picture sections */
body.has-fx-bg .section.media, body.has-fx-bg .section.tickets-cta { padding-top: 20px; padding-bottom: 20px; }
body.has-fx-bg .section.media h2 { margin-bottom: 12px; }
body.has-fx-bg .section.media .sec-intro { margin: -4px 0 14px; }
body.has-fx-bg .section.tickets-cta { text-align: center; }
/* posters always shown whole: never cropped, natural aspect ratio */
.shot img { object-fit: contain; aspect-ratio: auto; max-height: none; }
/* Tighter spacing between all sections on themed pages */
body.has-fx-bg .section { padding-top: 22px; padding-bottom: 22px; }
body.has-fx-bg .section h2 { margin-bottom: 12px; }
body.has-fx-bg .hero.themed + .section { padding-top: 34px; }

/* Bottom Get Tickets bar: hidden below the screen, slides + fades up when scrolling starts */
.sticky-cta { display: block !important; transform: translateY(160%); opacity: 0; pointer-events: none; will-change: transform, opacity; }
.sticky-cta[hidden] { display: none !important; }
.sticky-cta.show { transform: none; opacity: 1; pointer-events: auto; animation: bar-in .55s cubic-bezier(.2,.8,.2,1) both; }
.sticky-cta.hide { animation: bar-out .35s ease both; }
@keyframes bar-in { from { transform: translateY(160%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bar-out { from { transform: none; opacity: 1; } to { transform: translateY(160%); opacity: 0; } }
@media (min-width: 901px) { .sticky-cta { left: 50%; right: auto; width: 380px; margin-left: -190px; } }
body.sheet-open .sticky-cta { opacity: 0; pointer-events: none; }
/* While the ticket sheet is open nothing behind it can scroll or rubber-band */
body.sheet-open { overscroll-behavior: none; }
.sheet { overscroll-behavior: contain; }
.sheet-bar { touch-action: none; }

/* Thank-you screen (after a confirmed purchase) */
.thanks { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #000; color: #fff; }
.thanks[hidden] { display: none; }
.thanks-inner { max-width: 520px; margin: 0 auto; padding: 34px 22px calc(40px + env(safe-area-inset-bottom)); text-align: center; }
.thanks-kicker { display: inline-block; margin: 0 0 14px; padding: 5px 10px; border: 1px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.thanks-title { font-family: Orbitron, sans-serif; font-weight: 900; font-size: clamp(38px, 11vw, 60px); text-transform: uppercase; margin: 0 0 10px; color: #fff;
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 60%, transparent); animation: fx-neon-flicker 2.4s forwards; }
.thanks-lead { font-size: 17px; margin: 0 0 8px; }
.thanks-order { color: var(--muted); font-size: 13px; margin: 0 0 26px; word-break: break-all; }
.thanks-order span { color: #fff; font-family: ui-monospace, Menlo, monospace; }
.thanks-mail { border-top: 1px solid #222; margin-top: 18px; padding-top: 24px; text-align: left; }
.thanks-mail h3 { font-family: Orbitron, sans-serif; text-transform: uppercase; font-size: 22px; margin: 0 0 6px; text-align: center; }
.thanks-mail > p { color: var(--muted); text-align: center; margin: 0 0 16px; }
#dm-optin { display: grid; gap: 14px; }
.dm-box { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.88); cursor: pointer; }
.dm-box input { margin: 2px 0 0; width: 22px; height: 22px; flex: none; accent-color: var(--accent); cursor: pointer; }
.dm-box a { color: #fff; text-decoration: underline; }
#dm-optin.sent .dm-box { opacity: .55; pointer-events: none; }
.dm-status { margin: 4px 0 0; min-height: 1.5em; font-weight: 700; text-align: center; color: var(--accent); }
.dm-status.err { color: #ff6b6b; }
#thanks-close { margin-top: 18px; width: 100%; }
/* No pinch / double-tap zoom on our page (iOS also needs the gesture handlers in event.js) */
html, body { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, .shot, .sticky-cta { touch-action: manipulation; }
/* If the page gets zoomed anyway (pinch on the Showpass frame), drop the GPU-heavy effects so the phone doesn't choke */
html.zoomed .fx-canvas, html.zoomed .fx-grain-layer, html.zoomed .fx-scanlines-layer { display: none !important; }
html.zoomed .fx-neon-flicker, html.zoomed .fx-flicker-occasional, html.zoomed .fx-bg { animation: none !important; }
/* Presale: under the 'Enter Code' button */
.no-code { margin: 14px 0 0; font-size: 14px; opacity: .85; }
.no-code a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Theme 'backgroundClear': the background art shows as on the old Squarespace home (no dimming); text sections keep their dark band */
body.fx-bg-clear .fx-bg::after { background: none; }
body.fx-bg-clear .hero.themed::after { background: none; }

/* Footer has no links any more: keep only enough space for the bottom ticket bar */
.site-footer:empty, .site-footer:not(:has(*)) { padding: 0 0 calc(90px + env(safe-area-inset-bottom)); }
/* Clear background: fade the text band in and out instead of hard top/bottom edges */
body.fx-bg-clear .section::before { left: calc(50% - 50vw); right: calc(50% - 50vw); box-shadow: none; clip-path: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%); }
/* collage-head: photo section title + credit centred like About the night */
.section.media.wide:has(.gallery.collage) h2, .section.media.wide:has(.gallery.collage) .sec-intro { text-align: center; }
