/* itsit.live: House Lights. Every colour on the page comes from the rig. */
@property --lamp { syntax: "<color>"; inherits: true; initial-value: #ff9a3c; }

:root {
  --ground: #0b0a0c;
  --ink: #ece7df;
  --dim: #d2cbc0;
  --lamp: #ff9a3c;
  --head: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --booth-h: 96px;
  transition: --lamp 1s linear;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  padding-bottom: var(--booth-h);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: var(--ground); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

/* ---------- the rig: every colour on the page comes from here ---------- */
.rig { position: fixed; inset: 0; overflow: hidden; background: var(--ground); z-index: 0; pointer-events: none; isolation: isolate; contain: strict; }
.state { position: absolute; inset: 0; opacity: 0; transition: opacity 1s linear; }
.state > * { position: absolute; mix-blend-mode: screen; will-change: transform, opacity; animation-play-state: paused; }
.state.live > * { animation-play-state: running; }

.cone {
  --w: 30deg; --c: #fff; --x: 50%;
  width: 110vmax; height: 190vmax; top: -8vh; left: calc(var(--x) - 55vmax);
  transform-origin: 50% 0;
  background: conic-gradient(from calc(180deg - var(--w) / 2) at 50% 0, transparent 0, var(--c) calc(var(--w) / 2), transparent var(--w));
  -webkit-mask-image: linear-gradient(to bottom, #000 6%, transparent 62%);
          mask-image: linear-gradient(to bottom, #000 6%, transparent 62%);
}

/* House: wide amber wash from above, breathing */
.s-house .wash {
  left: -25vw; right: -25vw; top: -8vh; height: 120vh; transform-origin: 50% 0;
  background: radial-gradient(ellipse 52% 78% at 50% 0, rgba(255,154,60,.92), rgba(255,154,60,.4) 42%, transparent 76%);
  animation: breathe 9s ease-in-out infinite alternate;
}
.s-house .cone { --c: rgba(255,176,100,.34); --w: 34deg; animation: breathe 9s ease-in-out -4s infinite alternate; }
.s-house .cone.a { --x: 18%; transform: rotate(-9deg); }
.s-house .cone.b { --x: 82%; transform: rotate(9deg); }
@keyframes breathe { from { opacity: .68; } to { opacity: 1; } }

/* Deep house: low indigo from the floor, very slow */
.s-deep .floor {
  left: -25vw; right: -25vw; bottom: -8vh; height: 104vh; transform-origin: 50% 100%;
  background: radial-gradient(ellipse 52% 64% at 50% 100%, rgba(70,76,214,.85), rgba(43,47,143,.5) 44%, transparent 76%);
  animation: swell 19s ease-in-out infinite alternate;
}
.s-deep .up {
  width: 70vmax; height: 120vh; bottom: -6vh; left: calc(var(--x) - 35vmax); transform-origin: 50% 100%;
  background: conic-gradient(from -17deg at 50% 100%, transparent 0, rgba(60,66,200,.42) 17deg, transparent 34deg);
  -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 80%); mask-image: linear-gradient(to top, #000 8%, transparent 80%);
  animation: swell 19s ease-in-out -9s infinite alternate;
}
.s-deep .up.a { --x: 24%; } .s-deep .up.b { --x: 76%; }
@keyframes swell { from { opacity: .62; transform: scaleY(.94); } to { opacity: 1; transform: scaleY(1.06); } }

/* Acid: one narrow beam sweeping like a scanner */
.s-acid .cone { --c: rgba(201,242,29,.95); --w: 7deg; --x: 50%; transform: rotate(-21deg); animation: scan 8s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(to bottom, #000 4%, transparent 78%); mask-image: linear-gradient(to bottom, #000 4%, transparent 78%); }
.s-acid .air { inset: 0; background: radial-gradient(ellipse 60% 40% at 50% 0, rgba(201,242,29,.13), transparent 70%); }
@keyframes scan { from { transform: rotate(-46deg); } to { transform: rotate(46deg); } }

/* Techno: cold white side light, slow hard-edged shutter. Each blade changes once every 4s. */
.s-techno .blade {
  left: 0; top: 0; width: 130vw; height: 100vh;
  -webkit-mask-image: linear-gradient(to right, #000 4%, transparent 88%); mask-image: linear-gradient(to right, #000 4%, transparent 88%);
}
.s-techno .blade.a { background: conic-gradient(from 58deg at -4% 46%, transparent 0, rgba(223,232,255,.56) .15deg, rgba(223,232,255,.46) 27deg, transparent 27.15deg); animation: shutter 8s step-end infinite; }
.s-techno .blade.b { background: conic-gradient(from 91deg at -4% 46%, transparent 0, rgba(223,232,255,.5) .15deg, rgba(223,232,255,.4) 26deg, transparent 26.15deg); opacity: .16; animation: shutter 8s step-end -4s infinite; }
.s-techno .air { inset: 0; background: radial-gradient(ellipse 34% 70% at 0 46%, rgba(223,232,255,.2), transparent 72%); }
@keyframes shutter { 0% { opacity: 1; } 50% { opacity: .16; } }

/* Dub: red haze drifting sideways, each move repeated fainter behind it */
.s-dub .haze {
  left: -40vw; width: 180vw; top: 12vh; height: 80vh;
  background:
    radial-gradient(ellipse 26% 42% at 28% 46%, rgba(179,18,42,.85), transparent 72%),
    radial-gradient(ellipse 22% 34% at 52% 60%, rgba(179,18,42,.7), transparent 72%),
    radial-gradient(ellipse 30% 40% at 74% 40%, rgba(179,18,42,.8), transparent 72%);
  transform: translateX(-4vw);
  animation: drift 13s ease-in-out infinite alternate;
}
.s-dub .haze.e1 { opacity: .45; top: 15vh; animation-delay: 1.3s; }
.s-dub .haze.e2 { opacity: .24; top: 18vh; animation-delay: 2.6s; }
.s-dub .haze.e3 { opacity: .12; top: 21vh; animation-delay: 3.9s; }
@keyframes drift { from { transform: translateX(-16vw); } to { transform: translateX(16vw); } }

/* Hardcore and jungle: three crossing beams, the fastest state (sweeps, never flashes) */
.s-jungle .cone { --w: 9deg; -webkit-mask-image: linear-gradient(to bottom, #000 4%, transparent 74%); mask-image: linear-gradient(to bottom, #000 4%, transparent 74%); }
.s-jungle .cone.m { --c: rgba(255,47,208,.9); --x: 12%; transform: rotate(-30deg); animation: sweepM 3.4s ease-in-out infinite alternate; }
.s-jungle .cone.c { --c: rgba(40,224,255,.85); --x: 88%; transform: rotate(34deg); animation: sweepC 4.3s ease-in-out infinite alternate; }
.s-jungle .cone.y { --c: rgba(255,230,40,.8); --x: 50%; transform: rotate(8deg); animation: sweepY 5.2s ease-in-out infinite alternate; }
@keyframes sweepM { from { transform: rotate(-58deg); } to { transform: rotate(-8deg); } }
@keyframes sweepC { from { transform: rotate(8deg); } to { transform: rotate(58deg); } }
@keyframes sweepY { from { transform: rotate(-30deg); } to { transform: rotate(30deg); } }

/* UK garage: mirror-ball scatter turning slowly */
.s-garage .ball { width: 240vmax; height: 240vmax; left: calc(50% - 120vmax); top: calc(-18vh - 120vmax); transform: rotate(8deg); animation: turn 150s linear infinite; }
.s-garage .ball i { position: absolute; border-radius: 50%; background: radial-gradient(rgba(255,214,120,.95) 30%, transparent 72%); }
.s-garage .ball i.pk { background: radial-gradient(rgba(255,143,192,.9) 30%, transparent 72%); }
.s-garage .pin { inset: 0; background: radial-gradient(ellipse 30% 34% at 50% 0, rgba(255,201,77,.22), transparent 72%); }
@keyframes turn { to { transform: rotate(368deg); } }

/* haze in the air: gives the light something to fall through */
.fog {
  position: absolute; inset: -12%; mix-blend-mode: multiply; opacity: 1;
  background: #5e5e5e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .011' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  1.5 0 0 0 -.18'/%3E%3C/filter%3E%3Crect width='900' height='600' fill='%23fff' filter='url(%23f)'/%3E%3C/svg%3E") center / cover;
  will-change: transform; animation: fog 70s ease-in-out infinite alternate;
}
@keyframes fog { from { transform: translate(-4%, -2%); } to { transform: translate(4%, 2%); } }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 80% at 50% 45%, transparent 55%, rgba(11,10,12,.5)); }

/* ---------- the room ---------- */
.room { position: relative; z-index: 1; }
.scrim { background: rgba(11,10,12,.72); box-shadow: 0 0 2.5rem 2rem rgba(11,10,12,.72); }

.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; justify-content: space-between; align-items: flex-start; padding: .9rem clamp(1rem, 4vw, 3rem) 1.6rem; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11,10,12,.92) 35%, transparent); }
.top > * { pointer-events: auto; }
.mark { font: 600 1rem/1 var(--head); letter-spacing: .34em; text-transform: uppercase; text-decoration: none; padding: .75rem 0; }
/* the exit sign: the one object that stays lit whatever the cue */
.exit {
  display: block; text-decoration: none; text-align: center; padding: .5rem .8rem .45rem;
  background: #1c0504; color: #ff5a48; border-radius: 3px;
  font: 700 .82rem/1.1 var(--head); letter-spacing: .24em; text-transform: uppercase;
  box-shadow: 0 1.1rem 2.2rem -.3rem rgba(255,58,40,.3);
}
.exit small { display: block; font: 400 .62rem/1.3 var(--mono); letter-spacing: .12em; color: #ff8c7e; }
.exit:hover { background: #2a0806; }

.hero { min-height: calc(100vh - var(--booth-h)); min-height: calc(100svh - var(--booth-h)); display: grid; place-items: center; padding: 6rem 1rem 3rem; text-align: center; }
.wall { width: min(92vw, 68rem, 100vh); margin: 0 auto; perspective: 900px; }
.gobo { display: block; width: 100%; height: auto; overflow: visible; transform: rotateX(9deg) rotateY(-5deg); will-change: transform; }
.gobo { color: color-mix(in srgb, var(--lamp) 26%, #fff6e6); }
.gobo .gate { fill: url(#gate); }
.hero p { margin: 1.4rem auto 0; display: inline-block; padding: .2rem .6rem; font: 500 1rem/1.5 var(--head); letter-spacing: .16em; text-transform: uppercase; }
.hero nav { margin-top: 1.6rem; }
.hero nav ul { list-style: none; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.6rem; margin: 0; padding: .3rem .8rem; }
.hero nav a { display: inline-block; padding: .55rem 0; font: 400 .9rem var(--mono); }
@media (hover: none), (max-width: 760px) { .lampdrift { animation: lampdrift 24s ease-in-out infinite alternate; } }
@keyframes lampdrift { from { transform: rotateX(9deg) rotateY(-6deg) translate(-8px, 4px); } to { transform: rotateX(7deg) rotateY(6deg) translate(8px, -4px); } }

section { position: relative; padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem); }
/* each place sits in a dim pool of the current light */
section::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, color-mix(in srgb, var(--lamp) 10%, transparent), transparent 72%); }
.in { max-width: 64rem; margin: 0 auto; }
h2 { font: 600 clamp(1.7rem, 4vw, 2.6rem)/1.05 var(--head); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 .5rem; }
.lede { color: var(--dim); max-width: 34em; margin: 0 0 2rem; }
.ph { font: 400 .88rem/1.5 var(--mono); color: var(--ink); overflow-wrap: anywhere; }

/* mixes */
.desk { display: grid; grid-template-columns: minmax(15rem, 19rem) 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.hang { position: sticky; top: 5rem; }
.art { position: relative; aspect-ratio: 1; background: #151316; overflow: hidden; transform: rotate(-1.2deg); box-shadow: 0 1.5rem 3rem rgba(0,0,0,.6); }
.art::before { content: ""; position: absolute; top: -9px; left: 50%; width: 2px; height: 9px; background: #5a554f; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art::after { content: ""; position: absolute; inset: 0; mix-blend-mode: soft-light; background: linear-gradient(160deg, var(--lamp), transparent 75%); }
.now { margin-top: 1.6rem; }
.now .q { font: 400 .85rem var(--mono); color: var(--dim); margin: 0; }
.now h3 { font: 600 1.6rem/1.15 var(--head); letter-spacing: .08em; text-transform: uppercase; margin: .3rem 0 .3rem; }
.now .meta { font: 400 .85rem/1.5 var(--mono); color: var(--dim); margin: 0 0 1.1rem; }
.go { appearance: none; border: 0; cursor: pointer; background: var(--ink); color: var(--ground); font: 700 1.25rem/1 var(--head); letter-spacing: .3em; text-transform: uppercase; padding: 1.05rem 1.6rem 1rem 1.9rem; border-radius: 4px; }
.go:hover { background: #fff; }
.go:active { transform: translateY(1px); }

.cues { list-style: none; margin: 0; padding: 0; font-family: var(--mono); }
.cues li + li { border-top: 1px solid rgba(236,231,223,.14); }
.cue { appearance: none; width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 3rem 1.5rem 1fr auto 4.2rem; gap: 0 .9rem; align-items: center; padding: .85rem .7rem; min-height: 3.6rem; }
.cue:hover, .cue:focus-visible { background: rgba(236,231,223,.05); }
.cue[aria-current="true"] { background: rgba(236,231,223,.08); box-shadow: inset 4px 0 0 var(--ink); }
.cue .n { color: var(--dim); font-size: .9rem; }
.cue .sw { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--c1) 0 45%, var(--c2) 100%); }
.cue .t { font-size: 1rem; }
.cue .tags { display: block; color: var(--dim); font-size: .78rem; margin-top: .15rem; }
.cue .st { font-size: .78rem; color: var(--ink); white-space: nowrap; }
.cue .len { text-align: right; color: var(--dim); font-size: .9rem; white-space: nowrap; }
.foot { font: 400 .85rem/1.9 var(--mono); margin: 1.4rem 0 0; padding: 1rem .7rem 0; border-top: 1px solid rgba(236,231,223,.14); color: var(--dim); }
.foot span { display: block; }

/* productions: the booth's record box */
.box { list-style: none; margin: 0; padding: 0 0 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.2rem; }
.box li { position: relative; aspect-ratio: 1; padding: 1.1rem; display: flex; align-items: flex-end;
  background: linear-gradient(150deg, #1d1a1f, #121013 60%); box-shadow: 6px 6px 0 -2px #0e0d10, 6px 6px 0 -1px #262228, 12px 12px 0 -3px #0e0d10, 12px 12px 0 -2px #201d22; }
.box li::before { content: ""; position: absolute; left: 50%; top: 50%; width: 44%; aspect-ratio: 1; transform: translate(-50%, -62%); border-radius: 50%;
  background: radial-gradient(circle, #0b0a0c 7%, #2a262c 8% 34%, #0b0a0c 35% 100%); opacity: .8; }
.box li span { position: relative; }

/* crate: the back wall of shelves */
.shelves { height: 9.5rem; margin-bottom: 2rem; opacity: .9;
  background:
    linear-gradient(to bottom, transparent 0 4.3rem, #2b2622 4.3rem 4.75rem, transparent 4.75rem 9.05rem, #2b2622 9.05rem),
    repeating-linear-gradient(90deg, #171417 0 5px, #221e22 5px 7px, #131114 7px 13px, #2a252a 13px 14px, #19161a 14px 22px, #100e11 22px 23px); }
.crate { list-style: none; margin: 0; padding: 0; }
.crate li { padding: .8rem 0; border-top: 1px solid rgba(236,231,223,.14); }

/* about: a typed notice by the door */
.notice { max-width: 34rem; padding: 2rem 2rem 1.8rem; background: #1a171a; transform: rotate(-.7deg); font: 400 .98rem/1.75 var(--mono); position: relative; box-shadow: 0 1.2rem 2.4rem rgba(0,0,0,.55); }
.notice::before { content: ""; position: absolute; top: .7rem; left: 50%; width: .55rem; height: .55rem; border-radius: 50%; background: #6b655d; }
.notice p { margin: 0 0 1rem; } .notice p:last-child { margin: 0; }

/* booking: the door itself */
.door { max-width: 26rem; margin: 0 auto; padding: 2.2rem 2rem 3.4rem; background: linear-gradient(to right, #17141a, #1c191e 50%, #151317); position: relative;
  border-radius: 2px 2px 0 0; box-shadow: inset 0 0 0 1px #2a262c, 0 3rem 3rem -2.6rem color-mix(in srgb, var(--lamp) 55%, transparent); }
.door h2 { font-size: 1.7rem; }
.door .bar { height: .7rem; margin: 1.6rem -.6rem 1.6rem; background: linear-gradient(#59544d, #2c2926); border-radius: 2px; }
.door dl { margin: 0; } .door dt { font: 600 .85rem var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-top: 1.1rem; } .door dd { margin: .15rem 0 0; }
footer { text-align: center; padding: 2rem 1rem 3rem; font: 400 .8rem var(--mono); color: var(--dim); }

/* ---------- the booth: one player, fixed at the bottom ---------- */
.booth { position: fixed; inset: auto 0 0 0; z-index: 30; height: var(--booth-h); background: #070608; padding: 0 clamp(.5rem, 3vw, 3rem); }
.booth::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 2.5rem; pointer-events: none;
  background: radial-gradient(ellipse 46% 100% at 50% 100%, color-mix(in srgb, var(--lamp) 30%, transparent), transparent 72%); }
.booth::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(to right, transparent, color-mix(in srgb, var(--lamp) 85%, #fff) 30% 70%, transparent); opacity: .8; }
.booth .lab { height: 30px; display: flex; align-items: center; gap: 1rem; justify-content: space-between; max-width: 70rem; margin: 0 auto; font: 400 .78rem var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; }
.booth .lab b { font-weight: 400; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.slot { max-width: 70rem; margin: 0 auto; height: 60px; background: #111013; }
.slot iframe { display: block; width: 100%; height: 60px; border: 0; }

@media (max-width: 760px) {
  .fog, .state .x { display: none; }
  .desk { grid-template-columns: 1fr; }
  .hang { position: static; display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.2rem; align-items: start; }
  .now { margin-top: 0; } .now h3 { font-size: 1.3rem; }
  .cue { grid-template-columns: 2.4rem 1.3rem 1fr 3.4rem; padding: .9rem .3rem; min-height: 4rem; }
  .cue .st { grid-column: 3; grid-row: 2; margin-top: .2rem; } .cue .st:empty { display: none; }
  .cue .sw { width: 1.2rem; height: 1.2rem; }
  .exit { font-size: .7rem; padding: .45rem .55rem .4rem; } .booth .lab span { display: none; }
  .notice { padding: 2rem 1.3rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- the 404 page: same room, one still cue ---------- */
.state.on { opacity: 1; }
.state.on > * { animation-play-state: running; }
.lost { padding-bottom: 0; }
.lost .hero { min-height: 100vh; min-height: 100svh; }
.lost .hero p a { display: inline-block; padding: .55rem 0; }
noscript p { font: 400 .88rem/1.5 var(--mono); }

/* fallback when the player cannot load (independent check, 1 Dec 2026) */
.booth .lab .alt { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; flex-shrink: 0; }
.booth .lab .alt:hover, .booth .lab .alt:focus { color: var(--ink); }
@media (max-width: 760px) { .booth .lab .alt { font-size: .7rem; } }
