/* ===================================================================== *
 *  ch1.events — shared atmosphere layer
 *
 *  One copy of the background/animation system, used by every page, so the
 *  interior of the site matches the front door instead of drifting away
 *  from it.
 *
 *  Markup it expects:
 *
 *    <div class="bgset fixed">
 *      <div class="bg-img soft" data-bg="hero-bg"></div>
 *      <div class="bg-tint"></div>
 *      <div class="haze"></div><div class="haze b"></div>
 *      <div class="streak"></div><div class="vig"></div>
 *      <div class="dust" data-dust="14"></div>
 *    </div>
 *
 *  ch1.js fills in the dust and swaps the photograph in once it has loaded.
 *  Nothing here animates anything but transform and opacity, so the whole
 *  stack composites on the GPU and never triggers layout. There is no
 *  backdrop-filter and no filter:blur() on a moving surface anywhere in this
 *  file; both were tried on this site and both made scrolling stutter on a
 *  phone.
 * ===================================================================== */

:root{
  --bg:#000308; --surface:#070d16; --line:#16202e;
  --fg:#eaf4ff; --muted:#7f92a8;
  --blue:#4cb8ff; --blue-hot:#8ad6ff; --blue-deep:#0b4d80;
  --violet:#b26bff; --violet-hot:#d9a8ff; --toxic:#5fe08a;
  --ok:#5fe08a; --wait:#ffcf6b; --bad:#ff6b6b;
  --display:"Big Shoulders Display",Haettenschweiler,Impact,sans-serif;
  --body:"IBM Plex Sans",system-ui,sans-serif;
  color-scheme:dark;
}

/* ── the stack ──────────────────────────────────────────────────────── */

.bgset{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
/* fixed = the atmosphere belongs to the whole page rather than one section,
   which is what every interior page wants. */
.bgset.fixed{position:fixed}
.bgset ~ *{position:relative;z-index:1}

/* the photograph, drifting and breathing. Oversized so the drift never
   exposes an edge. */
.bg-img{position:absolute;inset:-6%;background-size:cover;background-position:center;
  opacity:0;transition:opacity .9s ease;will-change:transform;
  animation:bgdrift 46s ease-in-out infinite alternate}
.bg-img.ready{opacity:.55}
/* behind a page of text rather than a headline, the photograph sits further
   back so the words stay the brightest thing on screen. */
.bg-img.soft.ready{opacity:.3}
.bg-img.faint.ready{opacity:.18}
@keyframes bgdrift{
  0%{transform:translate3d(-1.2%,-.8%,0) scale(1.02)}
  100%{transform:translate3d(1.2%,.8%,0) scale(1.07)}}

/* a wash that keeps text readable over any photograph */
.bg-tint{position:absolute;inset:0;
  background:linear-gradient(to bottom,rgba(0,3,8,.82),rgba(0,3,8,.62) 42%,rgba(0,3,8,.92))}
.bg-tint.heavy{
  background:linear-gradient(to bottom,rgba(0,3,8,.93),rgba(0,3,8,.84) 42%,rgba(0,3,8,.97))}

/* haze. Two soft blobs crossing each other, no blur filter anywhere. */
.haze{position:absolute;inset:-35%;opacity:.5;will-change:transform;
  background:
    radial-gradient(38% 30% at 22% 38%,rgba(90,150,210,.3),transparent 70%),
    radial-gradient(42% 32% at 78% 62%,rgba(50,90,160,.26),transparent 72%);
  animation:fogA 54s ease-in-out infinite alternate}
.haze.b{opacity:.34;animation:fogB 72s ease-in-out infinite alternate;
  background:
    radial-gradient(44% 34% at 62% 28%,rgba(120,170,230,.22),transparent 72%),
    radial-gradient(36% 28% at 30% 76%,rgba(40,80,150,.24),transparent 70%)}
/* violet variant, for the Manor */
.haze.v{background:
    radial-gradient(40% 32% at 28% 42%,rgba(178,107,255,.26),transparent 70%),
    radial-gradient(38% 30% at 74% 66%,rgba(95,224,138,.14),transparent 72%)}
/* amber variant, for the Warehouse */
.haze.a{background:
    radial-gradient(40% 32% at 24% 40%,rgba(255,168,74,.2),transparent 70%),
    radial-gradient(42% 32% at 76% 64%,rgba(178,107,255,.24),transparent 72%)}
@keyframes fogA{0%{transform:translate3d(-3%,-2%,0)}100%{transform:translate3d(4%,3%,0)}}
@keyframes fogB{0%{transform:translate3d(3%,2%,0)}100%{transform:translate3d(-4%,-3%,0)}}

/* slow floating dust. Built by ch1.js so every mote has its own clock and
   the pattern never repeats visibly. */
.dust{position:absolute;inset:0}
.dust i{position:absolute;border-radius:50%;background:#cfe9ff;opacity:0;
  box-shadow:0 0 7px 1px rgba(150,210,255,.55);
  animation:float linear infinite;will-change:transform,opacity}
@keyframes float{
  0%{transform:translate3d(0,0,0);opacity:0}
  14%{opacity:.75}
  82%{opacity:.4}
  100%{transform:translate3d(var(--dx,20px),-108%,0);opacity:0}}

/* a light streak that crosses a section every so often */
.streak{position:absolute;top:-25%;left:0;width:34%;height:150%;
  transform:translate3d(-190%,0,0) rotate(13deg);
  background:linear-gradient(100deg,transparent,rgba(170,220,255,.12),transparent);
  animation:ch1sweep 13s ease-in-out infinite}

/* a vignette that pulses very gently */
.vig{position:absolute;inset:0;
  background:radial-gradient(130% 100% at 50% 45%,transparent 42%,rgba(0,2,6,.72));
  animation:vigpulse 11s ease-in-out infinite}
@keyframes vigpulse{0%,100%{opacity:.85}50%{opacity:1}}

/* The one shared sweep keyframe. Moved with transform, never `left`:
   animating `left` relayouts the page every frame. */
@keyframes ch1sweep{
  0%,62%{transform:translate3d(-180%,0,0) rotate(14deg)}
  100%{transform:translate3d(300%,0,0) rotate(14deg)}}

/* film grain. A static tiled SVG, so it costs one paint and nothing after. */
.grain{position:fixed;inset:0;z-index:60;pointer-events:none;opacity:.055;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")}

/* ── chrome lettering ───────────────────────────────────────────────── */

/* The metallic gradient. Deliberately applied to a single element and never
   to per-letter children: an inline-block child inside a background-clip:text
   parent paints the gradient across its own box, which is what produced the
   stray blue bars beside every heading. */
.chrome{
  background:linear-gradient(176deg,#fff 0%,#cfe6f7 18%,#7590a8 36%,#eaf7ff 50%,
    #fff 56%,#87a3bc 72%,#dceefb 88%,#fff 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 14px rgba(76,184,255,.4))}

/* A band of light crossing chrome lettering every few seconds. A masked
   overlay rather than a moving gradient, because animating the
   background-position of a clipped gradient repaints the glyphs each frame. */
/* overflow:hidden is load-bearing, not tidiness. The sweep is a band wider
   than the bright part of its own gradient, and without clipping it carries
   on past the element and reads as a pale rectangle floating across the
   page with nothing to do with the words. */
.shimmer{position:relative;overflow:hidden}
.shimmer::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(100deg,transparent 38%,rgba(255,255,255,.65) 50%,transparent 62%);
  mix-blend-mode:overlay;transform:translate3d(-130%,0,0);
  animation:ch1sweep 6.5s ease-in-out infinite}

/* ── reveal on scroll ───────────────────────────────────────────────── */

/* will-change is set up front, not at the moment the transition starts:
   creating the layer mid-animation causes exactly the hitch it prevents.
   It is dropped again once the element has landed, to release the memory. */
.rv{opacity:0;transform:translate3d(0,26px,0);
  transition:opacity .55s ease,transform .55s cubic-bezier(.2,.9,.3,1)}
.rv.in{opacity:1;transform:translate3d(0,0,0)}
.rv.done{will-change:auto}
/* stagger, for a row of cards */
.rv[data-d="1"]{transition-delay:.07s}
.rv[data-d="2"]{transition-delay:.14s}
.rv[data-d="3"]{transition-delay:.21s}
.rv[data-d="4"]{transition-delay:.28s}
.rv[data-d="5"]{transition-delay:.35s}

/* ── interior page furniture ────────────────────────────────────────── */

/* A quiet top bar for the pages behind the front door. */
.topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;
  justify-content:space-between;gap:12px;padding:11px 16px;
  background:rgba(1,6,13,.94);border-bottom:1px solid rgba(76,184,255,.16)}
.topbar b{font-family:var(--display);font-size:19px;font-weight:900;
  text-transform:lowercase;letter-spacing:-.015em;line-height:1}
.topbar b a{text-decoration:none;color:inherit}
.topbar nav{display:flex;gap:3px}
.topbar nav a{position:relative;font-size:11px;font-weight:600;letter-spacing:.09em;
  text-transform:uppercase;color:var(--muted);text-decoration:none;
  padding:7px 9px;border-radius:7px;transition:color .15s,background .15s}
.topbar nav a:hover{color:var(--fg);background:rgba(76,184,255,.12)}
.topbar nav a::after{content:"";position:absolute;left:12%;right:12%;bottom:3px;
  height:1px;background:var(--blue-hot);box-shadow:0 0 8px rgba(138,214,255,.9);
  transform:scaleX(0);transition:transform .25s cubic-bezier(.2,.9,.3,1)}
.topbar nav a:hover::after{transform:scaleX(1)}

/* Cards that lift and catch a light as the pointer crosses them. */
.lift{transition:transform .22s cubic-bezier(.2,.9,.3,1),
  border-color .22s,box-shadow .22s}
.lift:hover{transform:translateY(-3px);border-color:rgba(76,184,255,.4);
  box-shadow:0 14px 34px rgba(0,0,0,.5),0 0 26px rgba(76,184,255,.12)}
.lift:active{transform:translateY(0)}

/* ── accessibility ──────────────────────────────────────────────────── */

:focus-visible{outline:2px solid var(--blue-hot);outline-offset:3px;border-radius:6px}
/* Keyboard users get a visible ring; pointer users do not get a stray one. */
:focus:not(:focus-visible){outline:none}
.skip{position:absolute;left:-9999px;top:0;z-index:200;padding:10px 14px;
  background:var(--blue);color:#01121f;font:700 13px var(--body);border-radius:0 0 8px 0}
.skip:focus{left:0}

/* ── reduced motion ─────────────────────────────────────────────────── */

/* Everything above is decoration. Someone who has asked their system for
   less movement gets the same site, still. */
@media (prefers-reduced-motion:reduce){
  *,*::after,*::before{animation:none!important;transition:none!important;
    scroll-behavior:auto!important}
  .rv{opacity:1!important;transform:none!important}
  .dust,.streak{display:none!important}
  #load{display:none!important}
}

/* ===================================================================== *
 *  TICKET TIERS
 *
 *  One price list, used on the homepage, the event pages and the app, so
 *  the three never drift apart. Name and remaining count on the left, price
 *  and the processor's cut on the right.
 * ===================================================================== */

.tickets{border:1px solid var(--line);border-radius:14px;overflow:hidden;
  background:linear-gradient(170deg,#0a1420,#050b13);margin-top:12px}
.tier{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  padding:15px 16px;border-top:1px solid rgba(255,255,255,.055);
  transition:background .18s}
.tier:first-child{border-top:0}
.tier:hover{background:rgba(76,184,255,.045)}

.tier-l{min-width:0}
.tier-name{font-weight:600;font-size:14.5px;color:var(--fg);line-height:1.3}
.tier-sub{font-size:12px;color:var(--muted);margin-top:3px}
/* What you actually get, for a tier where that is not obvious from the name */
.tier-perks{font-size:12px;color:#9fb6cb;margin-top:5px;line-height:1.45}

.tier-r{text-align:right;flex:0 0 auto}
.tier-price{font-weight:700;font-size:16px;color:var(--fg);
  font-variant-numeric:tabular-nums;line-height:1.2}
.tier-fee{font-size:11.5px;color:var(--muted);margin-top:3px;
  font-variant-numeric:tabular-nums}
/* Scarcity, but only when it is true: shown under ten left, never faked. */
.tier-low{font-size:11.5px;font-weight:700;color:var(--wait);margin-top:3px}

.tier.gone{opacity:.45}
.tier.gone .tier-price{text-decoration:line-through}
.tier-gone{font-size:11.5px;font-weight:700;color:var(--muted);margin-top:3px;
  text-transform:uppercase;letter-spacing:.08em}

.tickets-note{font-size:11.5px;color:var(--muted);margin:9px 2px 0;line-height:1.5}

/* "Safety by security" — a standing commitment, so it reads as a fact about
   every night rather than a feature of one. */
.safety{display:flex;align-items:flex-start;gap:11px;margin-top:12px;
  padding:13px 15px;border-radius:12px;
  border:1px solid rgba(95,224,138,.26);background:rgba(95,224,138,.06)}
.safety svg{flex:0 0 auto;width:19px;height:19px;margin-top:1px;
  fill:none;stroke:var(--ok);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.safety b{display:block;font-size:11px;font-weight:700;letter-spacing:.17em;
  text-transform:uppercase;color:var(--ok);margin-bottom:3px}
.safety span{font-size:12.5px;color:#bcd3c6;line-height:1.5}

/* Standalone links sit in their own row, so the inline-link exemption in
   WCAG 2.5.8 does not cover them: they need a 24px tap target. Padding does
   it without changing how they look. */
footer a,.topbar b a{display:inline-block;padding:5px 2px;min-height:24px}
footer{row-gap:2px}
