/* Bass Bridge Rave — a rave under the bridge. The page floats over a live canvas scene
   (event-theme-bridge.js): the city across the water, then the red-lit underside of the bridge.
   Type follows the flyer: wide italic chrome lettering with red laser glow.
   Scoped to body.event-theme-bridge. */

.event-theme-bridge {
  --bb-red: #ff2438;
  --bb-hot: #ff7480;
  --bb-white: #fff5f5;
  --bb-dim: #e3b5b9;
  --bb-display: Audiowide, 'Arial Black', Impact, sans-serif;
  --bb-body: 'Chakra Petch', Manrope, Arial, sans-serif;
  --bb-mono: 'Share Tech Mono', 'DM Mono', ui-monospace, monospace;
  --bb-beat: .46875s;
  background: #020102;
  color: var(--bb-white);
}
.event-theme-bridge .archive-header { position: relative; z-index: 10; align-items: center; padding-block: 16px; background: linear-gradient(#000000e0, #00000000); border-bottom: 0; }
.event-theme-bridge .archive-header .logo { width: 62px; }
.event-theme-bridge [data-event-detail] { position: relative; background: transparent; }

/* ───── The scene behind the page ───── */
.bb-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #020102; }
.bb-canvas { display: block; width: 100%; height: 100%; }
/* Static grain with plain blending: a blended, oversized animated layer was expensive to composite on big screens. */
.bb-grain { position: absolute; inset: 0; opacity: .045; background-size: 160px 160px; }
.bb-scene::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 75% at 50% 48%, transparent 50%, rgba(0, 0, 0, .7) 100%); }
.bb-page { position: relative; z-index: 1; }

/* ───── Hero: the details projected onto the underside ───── */
.bb-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--bb-header, 94px));
  padding: clamp(24px, 5vh, 60px) max(16px, env(safe-area-inset-right)) clamp(78px, 13vh, 130px) max(16px, env(safe-area-inset-left));
  text-align: center;
}
.bb-roof { display: grid; justify-items: center; gap: clamp(8px, 1.5vh, 16px); width: 100%; max-width: 1240px; }
.bb-roof > * { margin: 0; }
.bb-kicker { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; color: var(--bb-dim); font: 400 clamp(12px, 1.2vw, 15px)/1 var(--bb-mono); letter-spacing: .28em; text-transform: uppercase; text-shadow: 0 1px 8px #000; }
.bb-kicker i { width: 38px; height: 1px; background: var(--bb-red); box-shadow: 0 0 8px var(--bb-red); }
.bb-title { display: grid; justify-items: center; font-family: var(--bb-display); font-weight: 400; line-height: .92; text-transform: uppercase; color: #fff; }
.bb-title span { display: block; font-size: clamp(34px, min(9.2vw, 12vh), 150px); letter-spacing: .02em; transform: skewX(-9deg); text-shadow: 0 0 2px #fff, 0 0 20px rgba(255, 40, 60, .8), 0 0 64px rgba(255, 20, 40, .5), 0 4px 2px rgba(0, 0, 0, .5); }
.bb-title .bb-title-last { font-size: clamp(72px, min(19vw, 23vh), 300px); letter-spacing: .05em; }
.bb-date { font: 400 clamp(32px, min(6.2vw, 8.4vh), 96px)/1 var(--bb-display); letter-spacing: .05em; transform: skewX(-9deg); text-shadow: 0 0 18px rgba(255, 40, 60, .7), 0 3px 2px rgba(0, 0, 0, .5); }
.bb-hours { color: #ffe3e5; font: 400 clamp(17px, min(2.7vw, 3.9vh), 40px)/1 var(--bb-display); letter-spacing: .08em; transform: skewX(-9deg); text-shadow: 0 0 14px rgba(255, 40, 60, .8); }
/* Doors, when they are the invitation: quieter than the hours, still lit by the same red. */
.bb-doors { margin-top: clamp(5px, 1.1vh, 12px) !important; color: var(--bb-dim); font: 400 clamp(11px, 1.15vw, 14px)/1 var(--bb-mono); letter-spacing: .26em; text-transform: uppercase; text-shadow: 0 0 10px rgba(255, 40, 60, .55), 0 1px 8px #000; }
.bb-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(10px, 2.6vh, 28px) !important; }
.bb-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  border: 1.5px solid var(--bb-red);
  background: var(--bb-red);
  color: #fff;
  font: 700 15px/1 var(--bb-body);
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  transform: skewX(-12deg);
  box-shadow: 0 0 34px rgba(255, 36, 56, .5);
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.bb-button:hover, .bb-button:focus-visible { border-color: #fff; background: #fff; color: #000; box-shadow: 0 0 44px rgba(255, 255, 255, .45); outline: none; }
.bb-button-ghost { border-color: rgba(255, 255, 255, .75); background: rgba(6, 1, 3, .55); box-shadow: none; }
.bb-scroll-hint { position: absolute; left: 50%; bottom: clamp(14px, 3vh, 30px); display: grid; justify-items: center; gap: 8px; margin: 0; color: var(--bb-dim); font: 400 12px/1 var(--bb-mono); letter-spacing: .32em; text-transform: uppercase; translate: -50% 0; }
.bb-scroll-hint b { width: 1px; height: 40px; background: linear-gradient(var(--bb-red), transparent); transform-origin: top; animation: bb-drip 1.875s ease-in-out infinite; }
@keyframes bb-drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Establishing shot caption, shown while the camera looks at the city. */
.bb-establish { position: absolute; left: max(18px, 5vw); bottom: clamp(26px, 6vh, 64px); text-align: left; opacity: 0; transition: opacity .5s; pointer-events: none; }
.bb-establish p { margin: 0; }
.bb-establish-place b { display: block; font: 400 clamp(20px, 2.4vw, 34px)/1.1 var(--bb-display); letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 0 16px rgba(255, 40, 60, .6); }
.bb-establish-place span { display: block; margin-top: 8px; color: var(--bb-dim); font: 400 clamp(13px, 1.2vw, 16px)/1 var(--bb-mono); letter-spacing: .2em; text-transform: uppercase; }
.bb-look-up { margin-top: 18px !important; color: var(--bb-hot); font: 400 14px/1 var(--bb-mono); letter-spacing: .3em; text-transform: uppercase; opacity: 0; }
.bb-look-up i { display: inline-block; font-style: normal; }
[data-bb-shot="city"] .bb-establish { opacity: 1; }
[data-bb-shot="city"] .bb-establish-place { animation: bb-type 1s steps(16, end) .6s both; }
[data-bb-shot="city"] .bb-look-up { animation: bb-fade .4s ease 1.8s both; }
[data-bb-shot="city"] .bb-look-up i { animation: bb-bob .6s ease-in-out 1.8s infinite alternate; }
@keyframes bb-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bb-bob { to { transform: translateY(-5px); } }
@keyframes bb-fade { from { opacity: 0; } to { opacity: 1; } }

/* ───── Sections ───── */
.bb-section { position: relative; width: min(1180px, 100%); margin: 0 auto; padding: clamp(70px, 14vh, 150px) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); box-sizing: border-box; }
.bb-label { margin: 0 0 12px; color: var(--bb-hot); font: 400 13px/1 var(--bb-mono); letter-spacing: .3em; text-transform: uppercase; }
.bb-slab h2, .bb-section-head h2 { margin: 0; font: 400 clamp(36px, 5.4vw, 76px)/.98 var(--bb-display); text-transform: uppercase; transform: skewX(-8deg); transform-origin: left bottom; text-shadow: 0 0 26px rgba(255, 36, 56, .45); }
.bb-slab {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(255, 70, 85, .28);
  background: linear-gradient(160deg, rgba(22, 6, 10, .92), rgba(6, 2, 4, .94));
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 140, 150, .12);
}
.bb-slab::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 9px); pointer-events: none; }
.bb-slab > * { position: relative; }
.bb-led { position: absolute !important; inset: 0 0 auto; height: 3px; background: repeating-linear-gradient(90deg, var(--bb-red) 0 26px, #3a0710 26px 40px); box-shadow: 0 0 14px var(--bb-red), 0 0 40px rgba(255, 36, 56, .5); animation: bb-chase calc(var(--bb-beat) * 4) linear infinite, bb-kick var(--bb-beat) ease-out infinite; }
@keyframes bb-chase { to { background-position: 160px 0; } }
@keyframes bb-kick { from { filter: brightness(1.9); } to { filter: brightness(.85); } }

/* Tickets */
.bb-tickets .bb-slab { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(26px, 5vw, 70px); align-items: end; }
.bb-sales-state { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 9px 13px; border: 1px solid rgba(255, 255, 255, .25); font: 400 13px/1 var(--bb-mono); letter-spacing: .2em; text-transform: uppercase; }
.bb-sales-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--bb-red); box-shadow: 0 0 10px var(--bb-red); animation: bb-kick var(--bb-beat) ease-out infinite; }
.bb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; margin: 0 0 22px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .1); }
.bb-facts div { padding: 14px 16px; background: rgba(8, 2, 4, .94); }
.bb-facts dt { color: var(--bb-dim); font: 400 12px/1 var(--bb-mono); letter-spacing: .2em; text-transform: uppercase; }
.bb-facts dd { margin: 8px 0 0; font: 400 clamp(22px, 2.4vw, 30px)/1 var(--bb-display); }
.bb-buy { display: flex; align-items: end; gap: 10px; }
.bb-quantity { display: grid; gap: 7px; color: var(--bb-dim); font: 400 12px/1 var(--bb-mono); letter-spacing: .2em; text-transform: uppercase; }
.bb-quantity select { height: 56px; min-width: 78px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 0; background: #0b0306; color: #fff; font: 600 18px/1 var(--bb-body); }
.bb-buy-button { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 56px; padding: 0 22px; border: 0; background: var(--bb-red); color: #fff; font: 700 16px/1 var(--bb-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 30px rgba(255, 36, 56, .45); transition: background .2s, color .2s; }
.bb-buy-button:hover:not(:disabled) { background: #fff; color: #000; }
.bb-buy-button:focus-visible { background: #fff; color: #000; outline: 3px solid var(--bb-red); outline-offset: 3px; }
.bb-buy-button:disabled, .bb-quantity select:disabled { background: #22080d; color: #c49ca1; box-shadow: none; cursor: not-allowed; }
.bb-note { margin: 14px 0 0; color: var(--bb-dim); font: 500 15px/1.5 var(--bb-body); }
.bb-address-note { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border: 1px dashed rgba(255, 116, 128, .55); color: #ffe3e5; font: 500 14px/1.45 var(--bb-body); }
.bb-address-note span { color: var(--bb-red); font-size: 16px; }
.bb-checkout-message { min-height: 1.2em; margin: 8px 0 0; color: #fff; font: 500 14px/1.5 var(--bb-body); }
.bb-checkout-message a { color: var(--bb-hot); }

/* Lineup */
.bb-lineup { background: linear-gradient(90deg, transparent, rgba(3, 1, 2, .72) 12%, rgba(3, 1, 2, .72) 88%, transparent); }
.bb-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; margin-bottom: clamp(14px, 3vh, 30px); padding-bottom: 18px; border-bottom: 1px solid rgba(255, 70, 85, .4); }
.bb-section-head .bb-label { order: 2; margin: 0; }
.bb-names { margin: 0; padding: 0; list-style: none; }
.bb-names li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.bb-names a, .bb-name-row { position: relative; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); padding: clamp(10px, 1.8vh, 18px) clamp(4px, 1vw, 14px); color: #fff; text-decoration: none; }
.bb-name-number { flex: none; width: 2.4em; color: var(--bb-hot); font: 400 14px/1 var(--bb-mono); letter-spacing: .12em; }
.bb-name { min-width: 0; font: 400 clamp(28px, 6.2vw, 90px)/1.02 var(--bb-display); text-transform: uppercase; transform: skewX(-8deg); overflow-wrap: anywhere; text-shadow: 0 2px 0 #000, 0 0 26px rgba(255, 36, 56, .35); transition: text-shadow .25s; }
.bb-name-time { flex: none; color: var(--bb-dim); font: 400 16px/1 var(--bb-mono); letter-spacing: .1em; }
.bb-name-arrow { margin-left: auto; color: var(--bb-hot); font: 400 24px/1 var(--bb-display); }
.bb-names a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--bb-red); box-shadow: 0 0 12px var(--bb-red); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.bb-names a:hover::after, .bb-names a:focus-visible::after { transform: scaleX(1); }
.bb-names a:hover .bb-name, .bb-names a:focus-visible .bb-name { text-shadow: 0 0 10px #fff, 0 0 34px var(--bb-red); }
.bb-names a:focus-visible { outline: none; }
.bb-pending { font: 400 22px/1.3 var(--bb-mono); }

/* The night + flyer */
.bb-info { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
.bb-description { max-width: 60ch; margin: 24px 0 30px; color: #f3d9db; font: 500 clamp(16px, 1.5vw, 19px)/1.6 var(--bb-body); }
.bb-when-where { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.bb-when-where dt { color: var(--bb-hot); font: 400 12px/1 var(--bb-mono); letter-spacing: .24em; text-transform: uppercase; }
.bb-when-where dd { margin: 8px 0 0; font: 600 clamp(18px, 1.8vw, 22px)/1.25 var(--bb-body); }
.bb-when-where small { display: block; margin-top: 6px; color: var(--bb-dim); font: 500 14px/1.45 var(--bb-body); }
.bb-flyer { margin: 0; transform: rotate(2.5deg); transition: transform .35s ease; }
.bb-flyer:hover, .bb-flyer:focus-within { transform: rotate(0) scale(1.02); }
.bb-flyer a { display: block; border: 1px solid rgba(255, 70, 85, .45); box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(255, 36, 56, .28); }
.bb-flyer img { display: block; width: 100%; height: auto; }
.bb-flyer figcaption { margin-top: 12px; color: var(--bb-dim); font: 400 13px/1 var(--bb-mono); letter-spacing: .2em; text-align: right; text-transform: uppercase; }

/* Outro: the camera lowers back to the city behind the credit. */
.bb-outro { display: grid; justify-items: center; align-content: start; min-height: 92svh; padding: clamp(110px, 22vh, 240px) 16px 48px; box-sizing: border-box; text-align: center; }
.bb-credit { display: grid; justify-items: center; gap: 10px; color: #fff; text-decoration: none; }
.bb-credit-label { color: var(--bb-dim); font: 400 13px/1 var(--bb-mono); letter-spacing: .34em; text-transform: uppercase; text-shadow: 0 1px 8px #000; }
.bb-credit-logo { width: clamp(84px, 11vw, 132px); height: auto; filter: drop-shadow(0 0 22px rgba(255, 36, 56, .6)); }
.bb-credit-name { font: 400 clamp(28px, 4.4vw, 58px)/1 var(--bb-display); text-transform: uppercase; transform: skewX(-8deg); text-shadow: 0 0 26px rgba(255, 36, 56, .65), 0 3px 2px #000; }
.bb-credit:hover .bb-credit-name, .bb-credit:focus-visible .bb-credit-name { text-shadow: 0 0 10px #fff, 0 0 36px var(--bb-red); }
.bb-signoff { margin: 20px 0 0; color: var(--bb-dim); font: 400 14px/1 var(--bb-mono); letter-spacing: .24em; text-transform: uppercase; text-shadow: 0 1px 8px #000; }

.event-theme-bridge .bb-footer { position: relative; display: grid; justify-items: center; padding: clamp(26px, 4vw, 40px) max(16px, env(safe-area-inset-right)) clamp(22px, 3vw, 32px) max(16px, env(safe-area-inset-left)); border-top: 1px solid rgba(255, 70, 85, .22); background: rgba(2, 1, 2, .88); }
.bb-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.event-theme-bridge .bb-footer nav a { padding-bottom: 3px; border-bottom: 1px solid #ffffff59; color: #fff; font: 400 15px/1 var(--bb-mono); letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.event-theme-bridge .bb-footer nav a:hover { border-color: var(--bb-red); }
.event-theme-bridge footer.bb-site-footer { position: relative; min-height: 0; align-items: center; padding-block: 26px; border-top: 1px solid #ffffff14; background: #020102; }
.event-theme-bridge .bb-site-footer .logo { width: 70px; }

/* ───── Intro ───── */
/* event-preload.js adds html.bb-preload before first paint so the page opens on black while the
   scene fades up; the 7s fallback reveals the details even if the scene script never runs. */
html.bb-preload, html.bb-preload body { background: #000; }
html.bb-preload .archive-header, html.bb-preload .bb-roof > *, html.bb-preload .bb-scroll-hint { opacity: 0; animation: bb-fade .6s 7s both; }
html.bb-revealed body.event-theme-bridge .archive-header { animation: bb-fade .9s ease .5s both; }
.bb-ready .bb-roof > *, .bb-ready .bb-scroll-hint { animation: bb-project 1.3s cubic-bezier(.16, .8, .24, 1) both; }
.bb-ready .bb-roof > :nth-child(2) { animation-delay: .12s; }
.bb-ready .bb-roof > :nth-child(3) { animation-delay: .34s; }
.bb-ready .bb-roof > :nth-child(4) { animation-delay: .46s; }
.bb-ready .bb-roof > :nth-child(5) { animation-delay: .7s; }
.bb-ready .bb-scroll-hint { animation-delay: 1.1s; }
/* Light hitting concrete: a bright, blurred flash that stutters and then focuses. */
@keyframes bb-project {
  0% { opacity: 0; filter: blur(14px) brightness(2.4); translate: 0 16px; scale: 1.05; }
  30% { opacity: .95; }
  40% { opacity: .3; }
  55% { opacity: 1; filter: blur(0) brightness(1.5); }
  100% { opacity: 1; filter: none; translate: 0 0; scale: 1; }
}

@media (min-width: 900px) {
  .bb-names li:nth-child(even) a, .bb-names li:nth-child(even) .bb-name-row { flex-direction: row-reverse; text-align: right; }
  .bb-names li:nth-child(even) .bb-name-number { text-align: right; }
  .bb-names li:nth-child(even) .bb-name-arrow { margin: 0; }
  .bb-names li:nth-child(even) .bb-name { transform-origin: right; }
}

@media (max-width: 760px) {
  .event-theme-bridge .archive-header .logo { width: 54px; }
  .bb-tickets .bb-slab, .bb-info { grid-template-columns: 1fr; }
  .bb-buy { flex-wrap: wrap; }
  .bb-buy-button { min-width: 0; padding: 0 16px; font-size: 14px; letter-spacing: .1em; }
  .bb-when-where { grid-template-columns: 1fr; }
  .bb-flyer { width: min(100%, 420px); justify-self: center; }
  .bb-button { padding: 14px 22px; font-size: 14px; }
  .bb-establish { bottom: clamp(30px, 8vh, 70px); }
  .bb-kicker { flex-direction: column; gap: 8px; }
  .bb-kicker i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bb-led, .bb-sales-state i, .bb-scroll-hint b { animation: none; }
  .bb-ready .bb-roof > *, .bb-ready .bb-scroll-hint, html.bb-revealed body.event-theme-bridge .archive-header { animation: none; }
  .bb-flyer, .bb-names a::after { transition: none; }
}

/* Tickets page card: keep the flyer's BASS BRIDGE lettering in the crop. */
.event-card.event-card-bridge .event-card-poster img { object-position: 50% 0; }
