/* ==========================================================================
   GymRave — design tokens
   Palette: flyer — pure black + blood red + chrome + white
   ========================================================================== */

:root {
  --ink:        #0a0a0a;   /* near-pure black */
  --ink-2:      #141414;   /* elevated surface */
  --ink-3:      #1a1a1a;   /* card surface */
  --bone:       #f5f5f5;   /* white */
  --bone-dim:   #8a8a8a;   /* mid gray */
  --heat:       #e60019;   /* blood red — primary brand */
  --heat-soft:  #ff3346;   /* lighter red hover */
  --fire:       #c8d0da;   /* chrome silver — +1 metallic */
  --line:       #262626;
  --line-2:     #333333;

  --font-display: "Big Shoulders Display", "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --bpm: 128;
  --beat-ms: calc(60000ms / var(--bpm));
}

/* ==========================================================================
   Reset + base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

a { color: var(--bone); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--heat); }
a:focus-visible {
  outline: 2px solid var(--heat);
  outline-offset: 3px;
  border-radius: 2px;
}

img, svg { max-width: 100%; display: block; }
::selection { background: var(--heat); color: var(--ink); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 100px;
  border: 2px solid var(--ink);
}
::-webkit-scrollbar-thumb:hover { background: var(--heat); }

/* ==========================================================================
   Custom cursor — BPM pulse icon in brand red.
   Only replaces cursor on devices with a fine pointer (desktop mouse).
   Small red dot + ring for default state, larger dot for clickable state.
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {
  html, body {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><circle cx='14' cy='14' r='3.5' fill='%23e60019'/><circle cx='14' cy='14' r='10' fill='none' stroke='%23e60019' stroke-width='1.4' opacity='0.55'/></svg>") 14 14, auto;
  }

  a, button, .btn, summary, [role="button"], [type="submit"], [type="button"], details summary {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><circle cx='16' cy='16' r='5.5' fill='%23e60019'/><circle cx='16' cy='16' r='13' fill='none' stroke='%23e60019' stroke-width='2' opacity='0.85'/><circle cx='16' cy='16' r='9' fill='none' stroke='%23e60019' stroke-width='1' opacity='0.4'/></svg>") 16 16, pointer;
  }

  input, textarea, select {
    cursor: text;
  }
}

/* ==========================================================================
   Ambient background — parallax layers
   ========================================================================== */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(230, 0, 25, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(230, 0, 25, 0.05) 0%, transparent 50%),
    var(--ink);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  will-change: transform;
}

.blob-heat {
  top: -20vh;
  left: -10vw;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, var(--heat) 0%, transparent 60%);
}

.blob-fire {
  bottom: -30vh;
  right: -15vw;
  width: 65vw;
  height: 65vw;
  max-width: 1000px;
  max-height: 1000px;
  background: radial-gradient(circle, var(--fire) 0%, transparent 60%);
  opacity: 0.3;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.87 0 0 0 0.65 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 30%),
    rgba(230, 0, 25, 0.10) 0%,
    transparent 60%
  );
  transition: opacity 0.3s ease;
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .spotlight { opacity: 1; }
}

/* ==========================================================================
   Pulse — signature element, 128 BPM
   ========================================================================== */

.pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--heat);
  box-shadow: 0 0 0 0 var(--heat);
  animation: pulse var(--beat-ms) cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

.pulse-sm { width: 7px; height: 7px; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(230, 0, 25, 0.55); transform: scale(1); }
  50%  { box-shadow: 0 0 0 8px rgba(230, 0, 25, 0); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(230, 0, 25, 0); transform: scale(1); }
}

/* ==========================================================================
   Topbar
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--gutter);
  background: color-mix(in oklab, var(--ink) 75%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.topbar nav {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.topbar nav a {
  color: var(--bone-dim);
  padding: 4px 0;
  position: relative;
}

.topbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--heat);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.topbar nav a:hover { color: var(--bone); }
.topbar nav a:hover::after { transform: scaleX(1); }

/* ==========================================================================
   Hero — full-bleed photo behind type
   ========================================================================== */

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out both;
  filter: grayscale(1) contrast(1.15) brightness(0.9);
}

@keyframes heroZoom {
  from { transform: scale(1.15); }
  to   { transform: scale(1.02); }
}

.hero-photo-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(230, 0, 25, 0.28) 0%, transparent 55%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.85) 60%, rgba(10, 10, 10, 1) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.35) 60%, rgba(10, 10, 10, 0) 100%);
  mix-blend-mode: normal;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 90px) var(--gutter) clamp(32px, 5vh, 64px);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3.5vh, 40px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bone-dim);
  letter-spacing: 0.08em;
  margin: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.eyebrow .sep { color: var(--heat); }

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.005em;
  margin: 0;
  text-transform: uppercase;
}

.display-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.display-line:nth-child(1) { animation-delay: 0.15s; }
.display-line:nth-child(2) { animation-delay: 0.30s; }
.display-line:nth-child(3) { animation-delay: 0.45s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.display .accent { color: var(--heat); }

.display-lg {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  max-width: 900px;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.lede {
  color: var(--bone-dim);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  max-width: 42ch;
  margin: 0;
}

.lede em { color: var(--heat); font-style: normal; }

.lede-wide { max-width: 60ch; }

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Edge VU-meter decoration */
.edge-vu {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  z-index: 2;
  opacity: 0.7;
}

.edge-vu span {
  display: block;
  width: 3px;
  background: var(--heat);
  border-radius: 1px;
  animation: vu var(--beat-ms) ease-in-out infinite;
}

.edge-vu span:nth-child(1) { height: 40%; animation-delay: 0ms; }
.edge-vu span:nth-child(2) { height: 70%; animation-delay: 80ms; background: var(--fire); }
.edge-vu span:nth-child(3) { height: 55%; animation-delay: 160ms; }
.edge-vu span:nth-child(4) { height: 90%; animation-delay: 40ms; background: var(--fire); }
.edge-vu span:nth-child(5) { height: 45%; animation-delay: 120ms; }
.edge-vu span:nth-child(6) { height: 65%; animation-delay: 200ms; }

@keyframes vu {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  padding: 16px 0;
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 60s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--bone);
}

.marquee-track .dot {
  color: var(--heat);
  font-size: 0.6em;
  transform: translateY(-2px);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   Stats bar — workout log
   ========================================================================== */

.stats {
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--ink) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
}

.stats dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px 40px;
  font-family: var(--font-mono);
}

.stats dl div { margin: 0; display: flex; flex-direction: column; gap: 4px; }

.stats dt {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.stats dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--bone);
}

.stats .mut { color: var(--bone-dim); font-weight: 400; }
.stats .mut a { color: inherit; border-bottom: 1px dotted var(--line-2); }
.stats .mut a:hover { color: var(--heat); border-bottom-color: var(--heat); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) var(--gutter);
  position: relative;
  z-index: 1;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0 0 32px;
  padding-left: 20px;
  position: relative;
}

.section-tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 1px;
  background: var(--heat);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--heat);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(230, 0, 25, 0.4);
}
.btn-primary:hover {
  background: var(--heat-soft);
  color: var(--ink);
  box-shadow: 0 6px 24px -4px rgba(230, 0, 25, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--heat);
  color: var(--heat);
}

.btn-block { width: 100%; }

/* ==========================================================================
   Concept — editorial split
   ========================================================================== */

.concept-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.concept-copy h2 { margin: 0 0 40px; }

.concept-body {
  display: grid;
  gap: 20px;
  max-width: 55ch;
}

.concept-body p {
  color: var(--bone);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

.concept-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
}

.concept-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.15) brightness(0.95);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.concept-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 6, 15, 0.6) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.concept-figure:hover img {
  transform: scale(1.03);
  filter: grayscale(1) contrast(1.2) brightness(1);
}

.concept-figure figcaption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 4px 10px;
  background: color-mix(in oklab, var(--ink) 70%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  z-index: 1;
}

/* ==========================================================================
   Lineup — DJs
   ========================================================================== */

.lineup-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 48px;
}

.lineup-head .mono-eyebrow { color: var(--heat); margin: 0; }
.lineup-head h2 { margin: 0; }

.lineup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dj-card {
  position: relative;
  padding: 32px 28px 28px;
  background: linear-gradient(180deg, var(--ink-3) 0%, var(--ink-2) 100%);
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.dj-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--line-2);
  transition: background 0.2s ease;
}

.dj-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}

.dj-card-headline::before { background: var(--heat); }

.dj-card-headline {
  border-color: color-mix(in oklab, var(--heat) 60%, var(--line));
  box-shadow: 0 20px 60px -30px rgba(230, 0, 25, 0.4);
}

.dj-card-headline:hover {
  border-color: var(--heat);
  box-shadow: 0 24px 70px -25px rgba(230, 0, 25, 0.55);
}

.dj-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--heat);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  margin: 0;
}

.dj-slot {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0;
}

.dj-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.005em;
  color: var(--bone);
  margin: 0;
  text-transform: uppercase;
}

.dj-name .dj-dot { color: var(--heat); }
.dj-card-headline .dj-name { color: var(--heat); }

.dj-style {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
  margin: 0;
  padding-left: 20px;
  position: relative;
}

.dj-style::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 1px;
  background: var(--heat);
}

.dj-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 8px;
}

.dj-links a {
  color: var(--bone);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.dj-links a:hover {
  color: var(--heat);
  border-bottom-color: var(--heat);
}

.dj-sep { color: var(--bone-dim); }

@media (max-width: 720px) {
  .lineup-grid { grid-template-columns: 1fr; }
  .dj-card { padding: 24px 22px; }
}

/* ==========================================================================
   Photo break — full bleed section divider
   ========================================================================== */

.photo-break {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(200px, 30vh, 340px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.photo-break-img {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  filter: grayscale(1) contrast(1.15) brightness(0.9);
}

.photo-break-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(230, 0, 25, 0.25) 0%, transparent 60%),
    linear-gradient(90deg, rgba(13, 6, 15, 0.85) 0%, rgba(13, 6, 15, 0.55) 60%, rgba(13, 6, 15, 0.75) 100%);
}

.photo-break-text {
  position: absolute;
  inset: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  z-index: 1;
}

.mono-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--heat);
  margin: 0;
}

.pull-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bone);
  max-width: 24ch;
  margin: 0;
}

/* ==========================================================================
   Tickets
   ========================================================================== */

.tickets .lede { margin-bottom: 56px; }

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--bone);
  font-size: 15px;
}

.perks li {
  padding-left: 20px;
  position: relative;
  color: color-mix(in oklab, var(--bone) 85%, transparent);
}

.perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 1px;
  background: var(--heat);
}

.perks-under-card { margin-top: 8px; padding: 0 4px; }

/* --- Non-member: paper ticket stub --- */

.ticket-stub {
  background: linear-gradient(180deg, #f4ede0 0%, #e6dfd0 100%);
  color: var(--ink);
  padding: 28px 24px 20px;
  border-radius: 2px;
  box-shadow:
    0 20px 40px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(13, 6, 15, 0.15);
  transform: rotate(-1deg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticket-stub:hover { transform: rotate(0deg) translateY(-4px); }

.ticket-stub .stub-perf {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46px;
  height: 1px;
  border-top: 1px dashed rgba(13, 6, 15, 0.3);
}

.ticket-stub .stub-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ticket-stub .ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0;
}

.ticket-stub .ticket-kind {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(13, 6, 15, 0.6);
  margin: 0;
}

.ticket-stub .ticket-price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
}

.ticket-stub .ticket-price .chf {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: rgba(13, 6, 15, 0.5);
  vertical-align: 20px;
  margin-right: 6px;
  letter-spacing: 0.06em;
}

.ticket-stub .perks {
  color: var(--ink);
  border-top: 1px dashed rgba(13, 6, 15, 0.25);
  padding-top: 16px;
}

.ticket-stub .perks li { color: rgba(13, 6, 15, 0.7); }
.ticket-stub .perks li::before { background: var(--heat); }

.ticket-stub .btn-primary {
  background: var(--ink);
  color: var(--bone);
}

.ticket-stub .btn-primary:hover {
  background: var(--heat);
  color: var(--ink);
  box-shadow: 0 6px 24px -4px rgba(230, 0, 25, 0.6);
}

.stub-serial {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(13, 6, 15, 0.35);
  text-align: center;
  margin: 12px 0 0;
  padding-top: 8px;
  border-top: 1px dashed rgba(13, 6, 15, 0.25);
}

/* --- Member: matte black VIP card --- */

.card-face {
  position: relative;
  aspect-ratio: 1.586 / 1;   /* ISO/IEC 7810 ID-1 credit card ratio */
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 20%, rgba(230, 0, 25, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, #14080f 0%, #0a0308 60%, #180a15 100%);
  border: 1px solid #24141d;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 12px 24px -12px rgba(230, 0, 25, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 20px 22px;
  display: grid;
  grid-template-areas:
    "top top"
    "chip holo"
    "bot bot";
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.card-face:hover {
  transform: perspective(900px) rotateX(3deg) rotateY(-6deg) translateY(-4px);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.9),
    0 20px 40px -12px rgba(230, 0, 25, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-noise {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
}

.card-top {
  grid-area: top;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.card-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0;
}

.card-tier {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0;
}

.card-chip {
  grid-area: chip;
  width: 44px;
  height: auto;
  align-self: center;
  z-index: 1;
}

.card-holo {
  grid-area: holo;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 140px;
  height: 26px;
  border-radius: 2px;
  background:
    linear-gradient(120deg,
      #e60019 0%, #c8d0da 20%, #ffcf5c 40%, #6bf0d0 60%, #4a8dff 80%, #e60019 100%);
  background-size: 200% 100%;
  animation: holo 5s linear infinite;
  opacity: 0.85;
  mix-blend-mode: screen;
  z-index: 1;
  position: relative;
}

.card-holo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.25) 3px,
    rgba(0, 0, 0, 0.25) 4px
  );
  border-radius: 2px;
}

.card-holo-alt {
  background:
    linear-gradient(120deg,
      #c8d0da 0%, #e60019 30%, #ffcf5c 60%, #c8d0da 100%);
  background-size: 200% 100%;
}

@keyframes holo {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

.card-bottom {
  grid-area: bot;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  z-index: 1;
}

.card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--bone);
}

.card-price .chf {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--bone-dim);
  vertical-align: 18px;
  margin-right: 5px;
  letter-spacing: 0.06em;
}

.card-valid {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0 0 4px;
}

/* --- +1: chrome-accented card + silver guest slip behind --- */

.ticket-plus1 {
  padding-top: 8px;
}

.plus1-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 12px;
  background: var(--fire);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  margin: 0 0 4px;
  box-shadow: 0 0 20px -6px var(--fire);
}

.duo-stack {
  position: relative;
  aspect-ratio: 1.586 / 1;
}

/* Front card — matte black with CHROME holo instead of red */
.card-face-plus1 {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(circle at 20% 20%, rgba(200, 208, 218, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #14080a 0%, #0a0305 60%, #180a0a 100%);
  border: 1px solid #2a1815;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 12px 24px -12px rgba(200, 208, 218, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card-face-plus1:hover {
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.9),
    0 20px 40px -12px rgba(200, 208, 218, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Pulse dot variant — chrome for +1 */
.pulse-fire {
  background: var(--fire);
  animation-name: pulseFire;
}

@keyframes pulseFire {
  0%   { box-shadow: 0 0 0 0 rgba(200, 208, 218, 0.6); transform: scale(1); }
  50%  { box-shadow: 0 0 0 8px rgba(200, 208, 218, 0); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(200, 208, 218, 0); transform: scale(1); }
}

.card-tier-fire { color: var(--fire); }

.card-bottom .card-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-price-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0;
}

.card-valid-fire {
  color: var(--fire);
  font-weight: 600;
}

/* Guest slip — warm paper voucher clipped to the card's front-bottom corner */
.guest-slip {
  position: absolute;
  right: -18px;
  bottom: -22px;
  z-index: 3;
  width: 58%;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, #f0f2f5 0%, #d4d8dd 100%);
  color: #1a1a1a;
  border-radius: 2px;
  transform: rotate(4deg);
  transform-origin: bottom right;
  box-shadow:
    0 20px 40px -15px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.guest-slip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--fire) 0,
    var(--fire) 8px,
    transparent 8px,
    transparent 12px
  );
}

.guest-slip::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.22 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.guest-slip-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.65);
  margin: 0 0 2px;
  position: relative;
  z-index: 1;
}

.guest-slip-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin: 0;
  color: #1a1a1a;
  position: relative;
  z-index: 1;
}

.guest-slip-price .chf {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: rgba(26, 26, 26, 0.55);
  vertical-align: 14px;
  margin-right: 4px;
  letter-spacing: 0.06em;
}

.ticket-plus1:hover .guest-slip {
  transform: rotate(5deg) translate(4px, 4px);
}

.ticket-plus1:hover .card-face-plus1 {
  transform: perspective(900px) rotateX(2deg) rotateY(-5deg) translate(-2px, -4px);
}

/* Fire-variant button for +1 */
.btn-fire {
  background: var(--fire);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(200, 208, 218, 0.4);
}
.btn-fire:hover {
  background: #dbe3ea;
  color: var(--ink);
  box-shadow: 0 6px 24px -4px rgba(200, 208, 218, 0.6);
}

/* ==========================================================================
   Doors / Abendkasse callout
   ========================================================================== */

.doors-note {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 20px 28px;
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--fire);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(200, 208, 218, 0.06) 0%, transparent 40%),
    color-mix(in oklab, var(--ink-2) 92%, transparent);
  position: relative;
}

.doors-note-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fire);
}

.doors-note-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fire);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.doors-note-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--bone);
  letter-spacing: -0.02em;
  margin: 0;
  white-space: nowrap;
}

.doors-note-price .chf {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--bone-dim);
  vertical-align: 12px;
  margin-right: 5px;
  letter-spacing: 0.06em;
}

.doors-note-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--bone);
  margin: 0;
  max-width: 62ch;
}

.doors-note-body .mut-inline {
  color: var(--bone-dim);
}

@media (max-width: 720px) {
  .doors-note {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 12px 20px;
  }
  .doors-note-body { grid-column: 1 / -1; }
}

/* ==========================================================================
   Fineprint
   ========================================================================== */

.fineprint {
  color: var(--bone-dim);
  font-size: 13px;
  margin-top: 40px;
  max-width: 60ch;
  font-family: var(--font-mono);
  line-height: 1.6;
}

/* ==========================================================================
   Night / timeline — real sequence with progress rail
   ========================================================================== */

.timeline {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0 28px 32px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.timeline li:hover {
  background: color-mix(in oklab, var(--heat) 5%, transparent);
  padding-left: 44px;
}

.timeline .rail {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: -1px;
  width: 1px;
  background: var(--line);
}

.timeline .rail::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 32px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--line-2);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.timeline li:hover .rail::before {
  background: var(--heat);
  border-color: var(--heat);
  transform: scale(1.3);
}

.timeline .peak .rail::before {
  background: var(--heat);
  border-color: var(--heat);
  box-shadow: 0 0 12px var(--heat);
  animation: pulse var(--beat-ms) cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* T-Møse — hardstyle tempo (~150 BPM = 400ms). Different period = naturally async. */
.timeline .peak-fast .rail::before {
  animation-duration: 400ms;
  box-shadow: 0 0 14px var(--heat);
}

.timeline .time {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--bone);
  letter-spacing: 0.02em;
}

.timeline .event {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--bone);
  letter-spacing: -0.01em;
}

.timeline .note {
  font-size: 15px;
  color: var(--bone-dim);
}

.timeline .peak .event { color: var(--heat); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  transition: padding-left 0.2s ease;
}
.faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 48px; }
.faq details:hover { padding-left: 8px; }
.faq details[open] { padding-left: 8px; }

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  list-style: none;
  padding-right: 40px;
  position: relative;
  color: var(--bone);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--heat);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "×"; }

.faq details p {
  margin: 14px 0 4px;
  color: var(--bone-dim);
  max-width: 65ch;
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   Location
   ========================================================================== */

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  margin-top: 24px;
  align-items: start;
}

.location-copy h2 { margin: 0 0 24px; }
.location-copy .lede { margin: 0 0 24px; max-width: none; }

.location-cta { margin-bottom: 32px; }

.location .fineprint { margin: 0; }

/* OSM iframe — dark-filtered to match aesthetic. Session cookies only,
   no third-party analytics. */
.location-map {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ink-2);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.85) brightness(0.95);
}

.location-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 0, 25, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .location-map { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   Legal / AGB page
   ========================================================================== */

.legal { max-width: 820px; margin: 0 auto; }

.legal-hero {
  padding-top: clamp(40px, 8vh, 80px);
  padding-bottom: clamp(24px, 4vh, 48px);
}

.legal-hero h1 { margin: 20px 0 16px; }

.legal-body {
  padding-top: 0;
  padding-bottom: clamp(48px, 8vh, 96px);
  display: grid;
  gap: 20px;
}

.clause {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.clause h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--heat);
  margin: 0 0 14px;
}

.clause p {
  color: var(--bone);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 65ch;
}
.clause p:last-child { margin-bottom: 0; }

.clause a {
  color: var(--bone);
  border-bottom: 1px dotted var(--line-2);
}
.clause a:hover {
  color: var(--heat);
  border-bottom-color: var(--heat);
}

.clause ul {
  color: var(--bone);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  max-width: 55ch;
}

.clause ul li {
  padding-left: 20px;
  position: relative;
  color: color-mix(in oklab, var(--bone) 92%, transparent);
}

.clause ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 1px;
  background: var(--heat);
}

.clause strong {
  color: var(--bone);
  font-weight: 600;
}

.clause-stand {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bone-dim);
}

.footer-inner p { margin: 0; display: flex; align-items: center; gap: 10px; }
.footer .mut { color: var(--bone-dim); }

/* ==========================================================================
   Scroll-driven reveals
   ========================================================================== */

@supports (animation-timeline: view()) {
  .section-tag, .ticket, .timeline li, .stats-inner, .concept-body p, .faq details, .location-grid, .concept-figure, .display-lg {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 30%;
  }

  @keyframes reveal {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .concept-split { grid-template-columns: 1fr; gap: 40px; }
  .concept-figure { aspect-ratio: 4 / 5; max-height: 600px; }
  .location-grid { grid-template-columns: 1fr; gap: 32px; }
  .card-face { padding: 18px 20px; }
  .card-price { font-size: 40px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar { padding: 12px 20px; }
  .topbar nav { gap: 14px; font-size: 12px; }
  .brand-word { display: none; }
  .hero { min-height: 82vh; }
  .hero-inner { padding-top: 40px; padding-bottom: 60px; }
  .hero-meta { grid-template-columns: 1fr; }
  .stats dl { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .timeline li {
    grid-template-columns: 90px 1fr;
    gap: 12px 16px;
    padding-left: 28px;
  }
  .timeline li:hover { padding-left: 36px; }
  .timeline .note { grid-column: 2; margin-top: -6px; }
  .ticket-stub .ticket-price { font-size: 48px; }
  .card-price { font-size: 36px; }
  .marquee-track { animation-duration: 45s; }
  .edge-vu { right: 16px; bottom: 16px; height: 30px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .edge-vu span, .card-holo, .marquee-track, .hero-photo, .timeline .peak .rail::before { animation: none; }
  .display-line, .hero-meta { animation: none; opacity: 1; transform: none; }
  .card-face:hover, .card-face-plus1, .guest-slip { transition: none; }
  .ticket-plus1:hover .guest-slip, .ticket-plus1:hover .card-face-plus1 { transform: none; }
  .card-face:hover { transform: none; }
  .ticket-stub { transform: none; }
  .ticket-stub:hover { transform: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
  .timeline li:hover { padding-left: 32px; }
  .faq details:hover, .faq details[open] { padding-left: 0; }
  .spotlight { display: none; }
  @supports (animation-timeline: view()) {
    .section-tag, .ticket, .timeline li, .stats-inner, .concept-body p, .faq details, .location-grid, .concept-figure, .display-lg {
      animation: none;
      opacity: 1;
      transform: none;
    }
  }
}
