/* Ghost Entertainment — minimal dark system.
   Swiss-style grid and type, near-black canvas, chrome silver for the brand,
   one hot accent (orange) for actions. Every colour pair below clears WCAG AA. */

:root {
  --bg: #050506;
  --surface: #0c0c0f;
  --surface-2: #131317;
  --line: #24242b;
  --line-strong: #34343d;
  --text: #f5f5f6;
  --muted: #a3a3ad;        /* 8.1:1 on --bg */
  --faint: #7c7c87;        /* 4.9:1 on --bg, labels only */
  --accent: #ff7a1a;       /* 7.4:1 on --bg */
  --on-accent: #0b0b0d;
  --violet: #b17cff;       /* 6.6:1 on --bg */
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --chrome: linear-gradient(180deg, #ffffff 0%, #c9cbd1 45%, #8d9099 55%, #e9eaee 100%);

  --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Big Shoulders', 'Arial Narrow', 'Helvetica Neue Condensed', Impact, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shell: min(1200px, 100% - 2 * var(--gutter));
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --scrub-track: 450vh;
  --hero-text: rgba(255, 255, 255, .94);
  --hero-label: rgba(255, 255, 255, .74);
  --hero-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 0 24px rgba(0, 0, 0, .35);
  --track-wide: .22em;
  --track-wider: .32em;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 160ms;
  --t: 240ms;
  --t-slow: 600ms;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.shell { width: var(--shell); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none; transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 16px;
}
.eyebrow--accent { color: var(--accent); }
.display, .h2, .h3, .event-title, h1, h2 {
  font-family: var(--font-display); font-optical-sizing: auto; text-transform: uppercase;
  font-weight: 800; letter-spacing: .005em; line-height: .9; margin: 0; text-wrap: balance;
}
h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.display { font-size: clamp(48px, 11vw, 168px); font-weight: 900; line-height: .84; overflow-wrap: anywhere; }
.h2 { font-size: clamp(38px, 6vw, 84px); }
.h3 { font-family: var(--font-sans); text-transform: none; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
/* Accent line inside a headline: same face, chrome finish, lighter weight. */
.serif { font-weight: 600; }
.chrome {
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 56ch; margin: 24px 0 0; text-wrap: pretty; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; user-select: none;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t) var(--ease-out),
              border-color var(--t) var(--ease-out), color var(--t) var(--ease-out), opacity var(--t);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--t) var(--ease-out); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: #ff8c38; }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #dcdce0; }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .4; cursor: not-allowed; transform: none; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  transition: border-color var(--t), background-color var(--t), opacity var(--t);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover:not([disabled]) { border-color: var(--text); }
.icon-btn[disabled] { opacity: .3; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--t);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .shell { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.nav { flex-wrap: nowrap; white-space: nowrap; }
.brand img { height: 30px; width: auto; mix-blend-mode: screen; } /* logo art sits on black; screen drops the box */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 10px 14px; border-radius: 999px; transition: color var(--t-fast), background-color var(--t-fast);
}
.nav a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 640px) { .nav:not(.nav--quiet) a:not(.btn) { display: none; } }
@media (max-width: 899px) { :root { --scrub-track: 420vh; } }

/* ---------- Overlay header (home hero) ----------
   Transparent over the video, solid once the hero has scrolled past. */
.site-header--overlay {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background-color var(--t), border-color var(--t), backdrop-filter var(--t);
}
.site-header--overlay.is-scrolled:not(.is-solid) { border-bottom-color: transparent; }
.site-header--overlay.is-solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav--quiet a:not(.btn) {
  color: var(--hero-text); font-size: 12px; font-weight: 500; letter-spacing: var(--track-wide); text-transform: uppercase;
  text-shadow: var(--hero-shadow); background: transparent !important;
}
.nav--quiet a:not(.btn):hover { color: #fff; }
.nav--quiet a:not(.btn) { position: relative; }
.nav--quiet a:not(.btn)::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease-out);
}
.nav--quiet a:not(.btn):hover::after, .nav--quiet a:not(.btn):focus-visible::after { transform: scaleX(1); }
@media (max-width: 420px) { .nav--quiet a[href='#past'] { display: none !important; } }
@media (max-width: 640px) { .nav--quiet a:not(.btn) { display: inline-flex; padding: 10px 8px; font-size: 11px; letter-spacing: .14em; } .nav--quiet a:not(.btn)::after { left: 8px; right: 8px; } }

/* ---------- Scroll-scrubbed hero ---------- */
.scrub { position: relative; height: var(--scrub-track); background: #000; }
.scrub-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.scrub-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; background: #000;
}
/* Quiet dark gradients top and bottom so the nav and end bar stay readable. */
.scrub-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 22%),
    linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 26%);
}
.scrub-copy {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  padding: 0 var(--gutter); pointer-events: none;
  opacity: 0; will-change: opacity, transform;
  color: var(--hero-text); text-shadow: var(--hero-shadow);
}
/* Soft scrim behind the middle copy: the liquid close-up is bright gold. */
.scrub-copy--mid::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: min(1100px, 120vw); height: min(560px, 70svh);
  translate: -50% -50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
}
.scrub-label {
  margin: 0 0 22px; font-size: 12px; font-weight: 500; letter-spacing: var(--track-wider); text-transform: uppercase;
  color: var(--hero-label);
}
.scrub-label span { margin: 0 .5em; opacity: .6; }
.scrub-title {
  margin: 0; font-family: var(--font-display); font-optical-sizing: auto; font-weight: 300; text-transform: uppercase;
  font-size: clamp(56px, 10vw, 168px); line-height: .88; letter-spacing: .02em;
}
/* Opening line sits in the dark space left of the bottles, visible on load. */
.scrub-copy--start { opacity: 1; place-content: center start; text-align: left; padding-left: clamp(24px, 4vw, 64px); }
.scrub-copy--start .scrub-title { font-size: clamp(48px, 5.4vw, 100px); }
@media (max-width: 899px) {
  .scrub-copy--start { place-content: start center; text-align: center; padding: calc(var(--header-h) + 1.5svh) var(--gutter) 0; }
  .scrub-copy--start .scrub-label { margin-bottom: 14px; }
  .scrub-copy--start .scrub-title { font-size: clamp(36px, 9.6vw, 72px); }
  .br-wide { display: none; }
}

/* End copy flanks the two glasses so it never covers the clink. */
.scrub-copy--end { transform: translateY(-5vh); }
@media (min-width: 900px) {
  .scrub-copy--end { place-content: stretch; grid-template-rows: 1fr; padding: 0 clamp(24px, 4vw, 64px); }
  .scrub-copy--end .scrub-label { position: absolute; left: clamp(24px, 4vw, 64px); top: calc(50% - clamp(110px, 10vw, 170px)); margin: 0; text-align: left; }
  .scrub-copy--end .scrub-title { display: grid; grid-template-columns: 1fr 36vw .85fr; align-items: center; height: 100%; font-size: clamp(56px, 7.4vw, 136px); }
  .scrub-copy--end .scrub-left { grid-column: 1; text-align: left; }
  .scrub-copy--end .scrub-right { grid-column: 3; text-align: right; }
}
@media (max-width: 899px) {
  .scrub-video { object-position: 54% 50%; } /* keep the clink in the middle of a tall screen */
  .scrub-video--portrait { object-position: 50% 50%; } /* vertical cut is already centred */
  .scrub-copy--end { place-content: start center; padding-top: calc(var(--header-h) + 4svh); transform: none; }
  .scrub-copy--end .scrub-title { font-size: clamp(44px, 13vw, 84px); }
  .scrub-copy--end .scrub-left, .scrub-copy--end .scrub-right { display: block; }
  .scrub-shade { background:
    linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .25) 28%, rgba(0, 0, 0, 0) 42%),
    linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 26%); }
}

/* Fixed bottom links bar, shown only for the final moment of the hero. */
.endbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out), visibility 0s linear var(--t-slow);
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom);
}
.endbar.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.endbar-inner {
  width: var(--shell); margin-inline: auto; min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--hero-label);
}
.endbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.endbar a { color: var(--hero-label); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; transition: color var(--t-fast); }
.endbar a:hover, .endbar a:focus-visible { color: #fff; }
@media (max-width: 640px) {
  .endbar-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 10px; gap: 0; }
  .endbar ul { margin-left: -10px; }
  .endbar a { padding: 0 10px; letter-spacing: .12em; }
}

/* Reduced motion: no scrubbing. One screen with the final still and copy. */
@media (prefers-reduced-motion: reduce) {
  .scrub { height: 100svh; }
  .scrub-copy--start { opacity: 0; }
  .scrub-copy--end { opacity: 1; }
}

/* Instagram link in the header: icon + word, icon only on small screens. */
.nav a.nav-ig { display: inline-flex !important; align-items: center; gap: 8px; min-height: 44px; }
.nav a.nav-ig svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 640px) {
  .nav a.nav-ig { padding: 10px; }
  .nav a.nav-ig .nav-ig-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav--quiet a.nav-ig::after { display: none; }
}
@media (max-width: 380px) {
  .brand img { height: 26px; }
  .nav--quiet a:not(.btn) { padding: 10px 6px; letter-spacing: .1em; }
  .nav--quiet a:not(.btn)::after { left: 6px; right: 6px; }
  .nav a.nav-ig { padding: 10px 6px; }
}
.ig-cta { margin-top: 28px; }
.ig-cta svg { width: 18px; height: 18px; }

/* ---------- Banner ---------- */
.notice {
  border-bottom: 1px solid var(--line); background: var(--surface);
  font-size: 13px; color: var(--muted); text-align: center; padding: 10px var(--gutter);
}
.notice strong { color: var(--warn); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 140px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(72px, 12vw, 160px) clamp(56px, 8vw, 104px); position: relative; overflow: clip; }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(177, 124, 255, .13), transparent 70%);
  pointer-events: none;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 56px; color: var(--faint); font-size: 13px; letter-spacing: .02em; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 15px; height: 15px; }

/* ---------- Feature (next event) ---------- */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center;
}
.feature-media {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  aspect-ratio: 2 / 1; border: 1px solid var(--line);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.feature:hover .feature-media img { transform: scale(1.03); }
.feature h2 { margin-top: 4px; }
.feature .tagline, .tagline { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: .04em; font-size: clamp(22px, 2.4vw, 30px); color: var(--accent); margin-top: 12px; line-height: 1; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.facts li { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.facts li strong { color: var(--text); font-weight: 600; }
.facts svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.feature-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 36px; }
.from { font-size: 14px; color: var(--muted); }
.from strong { color: var(--text); font-family: var(--font-display); font-size: 28px; font-weight: 800; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); } }

/* Portrait flyer: show the whole poster, never crop its text. */
.feature:has(.feature-media--poster) { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
.feature-media--poster { aspect-ratio: 1065 / 1476; max-width: 460px; border: 0; background: transparent; border-radius: var(--r-lg); }
.feature-media--poster { overflow: visible; }
.feature-media--poster img { object-fit: contain; filter: drop-shadow(0 30px 60px rgba(177, 124, 255, .22)); }
@media (max-width: 900px) {
  .feature:has(.feature-media--poster) { grid-template-columns: minmax(0, 1fr); }
  .feature-media--poster { max-width: 380px; margin-inline: auto; }
}

/* Event hero: a slice of the flyer from the upper fangs down through TREATS,
   centred in the band, with a blurred copy of the flyer filling the sides.
   --vis = share of the flyer's height shown, --from = where the slice starts. */
.event-hero .feature-media.poster-band {
  --vis: .56; --from: .045;
  aspect-ratio: 16 / 9; height: auto; isolation: isolate;
}
.poster-band::before {
  content: ''; position: absolute; inset: -40px; z-index: -1;
  background: var(--poster) center 30% / cover no-repeat;
  filter: blur(40px) saturate(1.25) brightness(.42); transform: scale(1.1);
}
.poster-band img {
  position: absolute; left: 50%; transform: translateX(-50%);
  height: calc(100% / var(--vis)); width: auto; max-width: none;
  top: calc(-100% / var(--vis) * var(--from));
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .55));
}
@media (max-width: 640px) {
  .event-hero .feature-media.poster-band { aspect-ratio: 4 / 3; }
}

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 10px; margin-top: 28px; }
.countdown div {
  min-width: 68px; padding: 12px 10px; border: 1px solid var(--line); border-radius: var(--r);
  text-align: center; background: var(--surface);
}
.countdown b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.countdown small { font-size: 11px; color: var(--faint); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 32px); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(52px, 6.4vw, 92px); font-weight: 900; line-height: .9; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Past events list ---------- */
.list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.list li {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 16px; align-items: baseline;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
  transition: background-color var(--t), padding var(--t) var(--ease-out);
}
.list li:hover { background: var(--surface); padding-inline: 16px; }
.list .name { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1; }
.list .tag { color: var(--muted); }
.list .badge { justify-self: end; }
@media (max-width: 720px) {
  .list li { grid-template-columns: 1fr auto; }
  .list .tag:nth-of-type(2) { display: none; }
}

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.badge--accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.badge--violet { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.badge--good { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.badge--bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }

/* ---------- Past flyers with SOLD OUT stamp ---------- */
.past-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.past-intro { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .past-layout { grid-template-columns: minmax(0, 1fr); } .past-intro { position: static; } }
.past-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(20px, 3vw, 32px);
}
.past-card figure { margin: 0; }
.past-flyer {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  aspect-ratio: 9 / 16; border: 1px solid var(--line); container-type: inline-size;
}
.past-flyer img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.7) brightness(.78);
  transition: transform 1.2s var(--ease-out), filter var(--t-slow) var(--ease-out);
}
.past-card:hover .past-flyer img { transform: scale(1.03); filter: saturate(1) brightness(.92); }
.stamp {
  --red: #ff2d3f;
  position: absolute; left: 50%; top: 46%; translate: -50% -50%; rotate: -14deg;
  padding: .1em .32em 0; border: .085em solid var(--red); border-radius: .12em;
  outline: .03em solid var(--red); outline-offset: .07em;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; white-space: nowrap;
  font-size: 20cqi; line-height: .95; letter-spacing: .03em; color: var(--red);
  background: rgba(30, 0, 4, .18);
  /* Worn rubber-stamp texture: punch speckled holes through the ink. */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 0 0 0 2.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 240px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 0 0 0 2.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 240px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .55));
  pointer-events: none;
}
.past-card figcaption { display: grid; gap: 4px; margin-top: 16px; }
.past-name { font-family: var(--font-display); text-transform: uppercase; font-weight: 800; font-size: 30px; line-height: 1; }
.past-meta { color: var(--muted); font-size: 14px; }
.past-meta strong { color: #ff4d5c; font-weight: 600; }

/* ---------- Live sold count ---------- */
.sold-count { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.tickets header .sold-count { margin-top: 12px; }
.sold-count strong { color: var(--text); font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--good); animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Promise grid ---------- */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 48px; }
.promise > div { background: var(--bg); padding: clamp(24px, 3vw, 40px); }
.promise svg { width: 22px; height: 22px; color: var(--accent); }
.promise h3 { margin-top: 20px; }
.promise p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .promise { grid-template-columns: 1fr; } }

/* ---------- Event page ---------- */
.event-hero { padding-top: clamp(24px, 4vw, 48px); }
.event-hero .feature-media { aspect-ratio: 2 / 1; }
.event-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 5vw, 80px);
  align-items: start; padding-block: clamp(40px, 6vw, 72px) clamp(80px, 10vw, 140px);
}
@media (max-width: 980px) { .event-layout { grid-template-columns: minmax(0, 1fr); } }
.event-title { font-size: clamp(52px, 9vw, 128px); font-weight: 900; line-height: .84; }
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.highlights div { background: var(--bg); padding: 18px 18px 20px; }
.highlights dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.highlights dd { margin: 6px 0 0; font-weight: 600; letter-spacing: -.01em; }
@media (max-width: 640px) { .highlights { grid-template-columns: 1fr 1fr; } }
.block { margin-top: 56px; }
.block h2 { font-family: var(--font-sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); font-weight: 600; line-height: 1.4; margin-bottom: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checks svg { width: 18px; height: 18px; color: var(--text); flex: none; margin-top: 3px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 600; letter-spacing: -.01em; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--faint); transition: transform var(--t) var(--ease-out); flex: none; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 60ch; }

/* Ticket panel */
.tickets {
  position: sticky; top: calc(var(--header-h) + 20px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden;
}
.tickets header { padding: 24px 24px 8px; }
.tickets header h2 { font-size: 34px; }
.tickets header p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.tier { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 20px 24px; border-top: 1px solid var(--line); }
.tier:first-of-type { border-top: 0; }
.tier-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--font-display); text-transform: uppercase; font-size: 24px; font-weight: 800; line-height: 1; }
.tier-name .badge { font-family: var(--font-sans); text-transform: none; }
.tier-desc { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.tier-price { margin-top: 8px; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.tier-status { font-size: 12px; font-weight: 600; margin-top: 4px; color: var(--faint); }
.tier-status.low { color: var(--warn); }
.tier.is-off .tier-price, .tier.is-off .tier-name { color: var(--faint); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 17px; }
.tickets footer { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--surface-2); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.total span { color: var(--muted); font-size: 14px; }
.total strong { font-family: var(--font-display); font-size: 40px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.fine { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 12px; color: var(--faint); }
.fine svg { width: 14px; height: 14px; }
.form-error { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); color: var(--bad); font-size: 14px; }

/* Mobile sticky checkout bar */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 40; display: none;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  align-items: center; justify-content: space-between; gap: 16px;
  transform: translateY(110%); transition: transform var(--t) var(--ease-out);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar span { font-size: 13px; color: var(--muted); }
.mobile-bar strong { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 900; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 980px) {
  .mobile-bar { display: flex; }
  .tickets { position: static; }
  body.has-bar { padding-bottom: 88px; }
}

/* ---------- Success / tickets ---------- */
.confirm { padding-block: clamp(56px, 9vw, 120px); }
.confirm-head { max-width: 760px; }
.check-mark {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); margin-bottom: 28px;
}
.check-mark svg { width: 26px; height: 26px; }
.receipt { margin-top: 40px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 48px; color: var(--muted); font-size: 14px; }
.receipt b { display: block; color: var(--text); font-size: 16px; font-weight: 600; margin-top: 2px; }
@media (max-width: 640px) { .receipt { grid-template-columns: 1fr 1fr; } }
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 48px; }
.ticket {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: 24px; display: flex; flex-direction: column; gap: 18px;
}
.ticket::before, .ticket::after {
  content: ''; position: absolute; top: 58%; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line);
}
.ticket::before { left: -12px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -12px; clip-path: inset(0 50% 0 0); }
.ticket-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ticket-qr { background: #fff; border-radius: var(--r); padding: 14px; }
.ticket-qr img { width: 100%; height: auto; image-rendering: pixelated; }
.ticket code { font: 600 17px/1 ui-monospace, 'JetBrains Mono', Consolas, monospace; letter-spacing: .08em; text-align: center; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Door app ---------- */
.door { padding-block: 40px 80px; }
.door-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
@media (max-width: 900px) { .door-grid { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 24px; }
.panel h2 { font-size: 28px; margin-bottom: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input {
  height: 52px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--bg);
  color: var(--text); padding: 0 16px; font: 500 17px var(--font-sans); width: 100%;
  transition: border-color var(--t);
}
.input:focus { outline: none; border-color: var(--text); }
.input--code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.row { display: flex; gap: 10px; }
.row .input { flex: 1; }
.scan-video { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); background: #000; margin-top: 14px; }
.verdict { margin-top: 18px; border-radius: var(--r); padding: 20px; border: 1px solid; display: flex; gap: 14px; align-items: flex-start; }
.verdict svg { width: 26px; height: 26px; flex: none; }
.verdict b { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 30px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.verdict span { color: var(--muted); font-size: 14px; }
.verdict--ok { border-color: color-mix(in srgb, var(--good) 50%, transparent); background: color-mix(in srgb, var(--good) 9%, transparent); color: var(--good); }
.verdict--warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: color-mix(in srgb, var(--warn) 9%, transparent); color: var(--warn); }
.verdict--bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); background: color-mix(in srgb, var(--bad) 9%, transparent); color: var(--bad); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.kpi small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.kpi b { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 6px; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width var(--t-slow) var(--ease-out); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.table th { text-align: left; font-weight: 600; color: var(--faint); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table td:last-child, .table th:last-child { text-align: right; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px; color: var(--faint); font-size: 14px; }
.site-footer .shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer img { height: 22px; width: auto; opacity: .9; mix-blend-mode: screen; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; transition: color var(--t-fast); }
.footer-links a:hover { color: var(--text); }
.footer-links svg { width: 16px; height: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: opacity var(--t), transform var(--t) var(--ease-out); pointer-events: none; max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
body.has-bar .toast { bottom: 104px; }

/* ---------- Skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 80ms; }
.reveal[data-delay='2'] { transition-delay: 160ms; }
.reveal[data-delay='3'] { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .confirm-actions, .notice { display: none !important; }
  body { background: #fff; color: #000; }
  .ticket { break-inside: avoid; border-color: #ccc; background: #fff; }
}
