/* Adrian Bilic — v4. Page 01: pick a record on the 1200. Page 02: home, Side A, Side B, switched from a wooden dock. */
:root {
  --page: #ffffff;
  --ink: #161616;
  --muted: #6b6b68;
  --line: #ececea;
  --card: #f7f7f5;
  --led: #7fd36e;

  /* the record on the deck sets these */
  --tint: #8fd3db;
  --tint-ink: #1d6b75;

  /* light wood, shared by the crate and the dock */
  --wood:
    repeating-linear-gradient(93deg, rgba(120, 78, 36, .07) 0 2px, transparent 2px 9px, rgba(120, 78, 36, .05) 9px 10px, transparent 10px 23px),
    linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 30%),
    linear-gradient(100deg, #f0dcbb 0%, #e5c99e 38%, #edd5b0 62%, #dfc093 100%);
  --wood-edge: inset 0 0 0 1px rgba(120, 80, 40, .18), inset 0 -10px 18px -12px rgba(110, 70, 30, .35);

  --display: var(--text);           /* headers use the body font too */
  /* SF Pro on Apple devices (licensed there), Inter everywhere else */
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--tint-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--tint-ink); outline-offset: 3px; border-radius: 4px; }

.page[hidden] { display: none !important; }
body.on-p1 .bar, body.on-p1 .scroller { display: none; }

/* Navigation and utility labels share one style: DM Mono caps, like the name and top links.
   Content (headings, body, captions) stays in the body font. */
.skip, .gallery-close, #backToVinyl, .np-text, .event a, .mixes a span {
  font-family: "DM Mono", "Courier New", monospace; font-weight: 400;
  text-transform: uppercase; letter-spacing: .12em;
}

/* ===================== PAGE 01 ===================== */
.page--gate {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 52px 16px 40px;   /* room for the top cover to fan upward */
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
body.on-p1 { overflow: hidden; }
body.is-leaving .page--gate { opacity: 0; transform: scale(.97); pointer-events: none; }

/* stack + vinyl lane + deck stay within ~60% of the window height; the deck keeps its size */
.stage {
  position: relative;
  width: min(940px, 100%, 134vh);
  display: grid; grid-template-columns: 24fr 19fr 52fr; gap: 2%; align-items: center;
  -webkit-user-select: none; user-select: none;
}

/* ---------- the stack: covers fanned down the left (after Fabio Torres' Spline player) ---------- */
.stack-col { position: relative; }   /* no stacking context: the vinyl can slot between the covers */
.cover-card {
  position: absolute; left: var(--sx); top: var(--sy);
  width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 3px; overflow: hidden;
  background: #ddd; cursor: pointer;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .5), 0 2px 4px rgba(0, 0, 0, .15);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  will-change: transform;
}
.cover-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cover-card.is-focus { box-shadow: 0 22px 40px -12px rgba(0, 0, 0, .55), 0 3px 6px rgba(0, 0, 0, .18); }
.cover-card.is-nope { animation: nope .45s ease; }
@keyframes nope { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
.gate-note { margin: 6px 0 0; min-height: 1.4em; font-size: 14px; color: var(--muted); text-align: center; }

.deck { position: relative; aspect-ratio: 900 / 710; grid-column: 3; }   /* column 2 is the lane the vinyl slides into */
.deck-base, .deck-arm { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.deck-base { filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .14)); }
.deck-arm { z-index: 5; pointer-events: none; filter: drop-shadow(4px 8px 6px rgba(0, 0, 0, .18)); }
.strobe-row { fill: none; stroke: #f2f2f0; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 1; }
.lbl { font-family: var(--text); font-size: 13px; fill: #2a2a2a; }
.lbl--s { font-size: 11px; }
.lbl--btn { font-size: 14px; }
.lbl--brand { font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: .12em; }
.platter-hit { cursor: default; }
body.is-picked:not(.is-placed) .platter-hit { cursor: pointer; }
.btn { cursor: pointer; }
.btn:active .btn-face { fill: #dcdcd9; }
.btn:focus-visible { outline: none; }
.btn:focus-visible .btn-face { stroke: var(--tint-ink); stroke-width: 3; }
.pitch { cursor: ns-resize; }
.pitch:focus-visible { outline: none; }
.pitch:focus-visible > rect:first-child { stroke: var(--tint-ink); stroke-width: 3; }
.pitch-scale text { font-family: var(--text); font-size: 11px; fill: #2a2a2a; }
.pitch-scale rect { fill: #2a2a2a; }

/* the record */
.record {
  position: absolute; z-index: 4; left: 0; top: 0;
  width: 200px; aspect-ratio: 1; padding: 0;
  border: 0; border-radius: 50%; background: none;
  cursor: grab; will-change: transform;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
body.is-picked .record { opacity: 1; pointer-events: auto; }
/* while browsing, the vinyl sits just behind the focused cover (z 60) and above every other cover (z <= 50),
   so it slides straight out of its own sleeve */
body.is-picked:not(.is-placed) .record { z-index: 55; }
body.is-picked .record.is-flying { z-index: 90; }
body.is-placed .record { cursor: default; pointer-events: none; }
.record-disc {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 34%, rgba(0, 0, 0, .25) 34.3% 35.2%, transparent 35.5%),
    repeating-radial-gradient(circle, color-mix(in srgb, var(--tint) 55%, transparent) 0 1px, color-mix(in srgb, var(--tint) 78%, transparent) 1.4px 2.6px);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  /* a little depth: a soft cast shadow plus a tight contact shadow */
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, .38), 0 3px 6px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .45);
}
.record-label, .hero-label { position: absolute; inset: 33%; border-radius: 50%; overflow: hidden; background: var(--tint); }
/* the cover fills the whole label circle: no square corners showing */
.record-label img, .hero-label img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--ls, 1.15));
}
.record-label::after, .hero-label::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); background: #efefed; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3);
}
.record-sheen {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 25deg, transparent 0 7%, rgba(255, 255, 255, .55) 11%, transparent 17%, transparent 52%, rgba(255, 255, 255, .4) 61%, transparent 67%);
  -webkit-mask: radial-gradient(circle, transparent 34%, #000 35%);
          mask: radial-gradient(circle, transparent 34%, #000 35%);
}

.gate-title { margin: 64px 0 0; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.shimmer {
  background: linear-gradient(90deg, #a3a3a0 0%, #a3a3a0 38%, #161616 50%, #a3a3a0 62%, #a3a3a0 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 3.2s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.skip {
  position: fixed; right: 20px; bottom: 18px; z-index: 20;
  padding: 8px 12px; border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--muted);
}
.skip:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ===================== PAGE 02 ===================== */
.page--main { animation: arrive .9s var(--ease-out) both; padding-bottom: 110px; }
html.on-p2 { scrollbar-width: none; }
html.on-p2::-webkit-scrollbar { display: none; }

.masthead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 26px 40px 0;
}
.brand {                          /* same type as the top-right links, just larger */
  margin: 0; font-family: "DM Mono", "Courier New", monospace; font-weight: 400;
  font-size: 22px; line-height: 1.2; text-transform: uppercase; letter-spacing: .12em;
}
.home-link { color: inherit; text-decoration: none; }
.socials { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.socials a {
  font-family: "DM Mono", "Courier New", monospace; font-size: 13px; text-transform: uppercase; letter-spacing: .12em;
  color: #666; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
.socials a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.contact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; }
/* same type as cindyly.design's header links: DM Mono 14px, uppercase, 0.12em tracking */
.contact a {
  font-family: "DM Mono", "Courier New", monospace; font-weight: 400; font-size: 14px;
  text-transform: uppercase; letter-spacing: .12em;
  color: #666; text-decoration: none;
  padding: 4px 0;
  transition: color .2s, text-decoration-color .2s;
  text-decoration-line: underline; text-decoration-color: transparent; text-underline-offset: 4px;
}
.contact a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* chrome social icons beside the links, sized to the text line; a gentle lift on hover */
.contact { align-items: center; }
.brand-block { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand-icons { display: inline-flex; align-items: center; gap: 14px; }
.icon-link { display: inline-flex; align-items: center; padding: 4px 0; }
.icon-link img { display: block; height: 20px; width: auto; transition: transform .3s var(--ease-out); }
.icon-link img.icon-sm { height: 16px; }
.icon-link:hover img, .icon-link:focus-visible img { transform: translateY(-1px) rotate(-4deg); }
@media (prefers-reduced-motion: reduce) { .icon-link:hover img { transform: none; } }

.view[hidden] { display: none; }
.view { animation: arrive .6s var(--ease-out) both; }

/* home: text on the left, the spinning record on the right */
.view--home { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
/* the hero fills the first screen, so Side A only appears once you scroll */
.home-hero { min-height: calc(100vh - 90px); min-height: calc(100svh - 90px); position: relative; padding: 24px 0 72px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: "DM Mono", "Courier New", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); text-decoration: none;
}
.scroll-cue::after { content: ""; width: 1px; height: 26px; background: currentColor; animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
.scroll-cue:hover { color: var(--ink); }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }

.home-text { container-type: inline-size; }
/* one line: the size follows the column width (the headline is about 9.8em wide) */
.home-lead { margin: 0 0 16px; font-family: var(--display); font-weight: 700; font-size: min(58px, 10cqi); white-space: nowrap; line-height: 1.05; letter-spacing: -.025em; }
/* below ~30px the system font switches to its wider text cut (about 11.2em), so scale down a bit more */
@container (max-width: 340px) { .home-lead { font-size: 8.8cqi; } }
.home-intro { margin: 0; color: var(--muted); max-width: 28em; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; }
.home-intro em { color: var(--ink); }
/* Adrian's LP: a square sleeve with the vinyl half out to the right */
.hero-sleeve { position: relative; width: min(540px, 100%); aspect-ratio: 147 / 100; justify-self: center; }
.my-cover {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: 68%; aspect-ratio: 1; overflow: hidden; border-radius: 3px;
  box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .55), 0 3px 8px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .18);
  container-type: inline-size;
}
.my-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.my-cover::after {      /* printed-sleeve finish: soft vignette plus a little paper sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14), transparent 38%), radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .35));
}
.my-cover-name {
  position: absolute; left: 6cqw; top: 5cqw; z-index: 1;
  font-weight: 800; font-size: 10.5cqw; line-height: .95; letter-spacing: -.02em; text-transform: uppercase;
  color: #fff6ea; text-shadow: 0 2px 14px rgba(120, 20, 0, .35);
}
.my-cover-cat, .my-cover-sides span {
  position: absolute; z-index: 1;
  font-family: "DM Mono", "Courier New", monospace; text-transform: uppercase; letter-spacing: .12em; color: #fff6ea;
}
.my-cover-cat { right: 6cqw; top: 6.2cqw; font-size: 3.2cqw; opacity: .85; }
.my-cover-sides { position: absolute; left: 6cqw; bottom: 5.5cqw; z-index: 1; display: flex; flex-direction: column; gap: 1.2cqw; }
.my-cover-sides span {
  position: static; font-size: 3.3cqw;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 12px rgba(0, 0, 0, .55);
}
.my-cover-sides::before {   /* darkens the bottom of the photo behind the side titles */
  content: ""; position: absolute; z-index: -1; left: -6cqw; right: -100cqw; bottom: -5.5cqw; height: 34cqw;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.hero-vinyl {
  position: absolute; z-index: 1;
  left: 36%; top: 1.9%; width: 64%; aspect-ratio: 1;   /* centred on the sleeve's right edge: half in, half out */
}
.hero-disc {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 34%, rgba(0, 0, 0, .25) 34.3% 35.2%, transparent 35.5%),
    repeating-radial-gradient(circle, color-mix(in srgb, var(--tint) 55%, transparent) 0 1px, color-mix(in srgb, var(--tint) 80%, transparent) 1.4px 2.6px);
  /* an even glow all the way round, not just underneath */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 0 38px 4px rgba(0, 0, 0, .16), inset 0 0 0 1px rgba(255, 255, 255, .5);
  animation: spin 1.8s linear infinite;   /* always spinning */
}

/* side views */
/* same width and gutters as the hero (.view--home) */
.view--side { max-width: 1120px; margin: 0 auto; padding: 120px 40px 0; scroll-margin-top: 24px; }
.view-head { margin-bottom: 36px; }
.view-kicker { margin: 0; font-size: 14px; font-weight: 600; color: var(--tint-ink); }
.view-head h2 { margin: 2px 0 8px; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 6vw, 56px); line-height: 1; letter-spacing: -.03em; }
.view-head p:last-child { margin: 0; color: var(--muted); max-width: 36em; }

.exp { background: var(--card); border-radius: 18px; padding: 28px; margin-bottom: 20px; }
.exp-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 16px; }
.exp-logo {
  width: auto; min-width: 56px; max-width: 132px; height: 56px; object-fit: contain; border-radius: 12px;
  background: #fff; padding: 8px; box-shadow: inset 0 0 0 1px var(--line);
}
.exp-logo--queens { padding: 4px; }
/* photo tiles on Side B: fill the square */
.exp-logo--photo { width: 56px; min-width: 56px; padding: 0; object-fit: cover; }
.exp-logo--dywf { object-position: 50% 28%; }   /* the disco-ball head on the poster */
.exp-title h3 { margin: 0; font-size: 21px; line-height: 1.25; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.exp-title p { margin: 2px 0 0; font-weight: 500; }
.exp-dates { margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.exp-body { margin: 0; color: var(--muted); }   /* runs the full width of the card */
.badge { font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 99px; background: var(--tint); color: var(--ink); }

.stats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats li { background: #fff; border-radius: 12px; padding: 14px 16px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.stats strong { display: block; font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1.1; color: var(--ink); margin-bottom: 4px; }

.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.projects .project:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* a third card spans the row */
.project { background: #fff; border-radius: 12px; padding: 16px; }
/* company logos on the project cards */
.proj-logos { display: flex; align-items: center; gap: 16px; height: 34px; }
.proj-logos img { height: 26px; width: auto; max-width: 130px; object-fit: contain; }
.proj-icon { width: 28px; height: 28px; color: var(--ink); }
body.is-dark .proj-logos img { filter: brightness(0) invert(1); }
/* icon cards: title sits beside the icon instead of under it */
.project--inline { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.project--inline .proj-logos { height: auto; }
.project--inline h4 { margin: 0; }
.project--inline p { grid-column: 1 / -1; margin-top: 8px; }
/* Side A: the inner boxes are light grey on the panel */
[data-view="a"] .stats li, [data-view="a"] .project { background: #ececea; }
.project h4 { margin: 12px 0 4px; font-size: 15.5px; }
.project p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

.mini-sleeve {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 6px;
  font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: -.01em; color: #fff;
  box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .45);
}
.mini-sleeve--arteria { background: #3b1e4e; }
.mini-sleeve--d1g1t { background: #1f95d3; }
.mini-sleeve--dywf { background: #c8261b; font-size: 13px; }
.mini-sleeve--ab { background: #161616; font-size: 15px; }
.exp-head .mini-sleeve { padding: 0; width: 56px; height: 56px; border-radius: 12px; box-shadow: none; }

.sub { margin: 30px 0 12px; font-size: 15px; font-weight: 700; }

.events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.event { display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; color: var(--muted); }
.poster { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; margin-bottom: 8px; border-radius: 6px; }
.poster img { margin-bottom: 0; transition: transform .35s var(--ease-out); }
.poster:hover img { transform: translateY(-3px); }
.event img, .event-poster {
  width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #0f0f0f; border-radius: 6px; margin-bottom: 8px;
  box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .5);
}
.event-poster { height: auto; font-size: 18px; }
.event strong { color: var(--ink); font-size: 14px; }
.event a { margin-top: 4px; width: fit-content; font-size: 11px; }

.story {
  margin: 22px 0 0; padding: 16px 18px;
  border-left: 3px solid var(--tint); background: #fff; border-radius: 0 10px 10px 0;
  font-size: 15px; color: var(--muted);
}
.story p { margin: 0; }
.story footer { margin-top: 6px; font-size: 13px; }

.carousel { position: relative; }
.photos {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 6px; scrollbar-width: thin;
  -webkit-mask: linear-gradient(to right, #000 88%, transparent); mask: linear-gradient(to right, #000 88%, transparent);
}
.photos .photo { flex: 0 0 220px; scroll-snap-align: start; }
.carousel-btn {
  position: absolute; top: calc(50% - 3px); transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--page); color: var(--ink); font-size: 22px; line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.carousel-btn--prev { left: -14px; }
.carousel-btn--next { right: -14px; }
@media (hover: none) { .carousel-btn { display: none; } }
.photo { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.photo:hover img { transform: scale(1.04); }

.shows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.shows li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.shows li:first-child { border-top: 0; }
.when { font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 2px; }
.shows strong { font-size: 15.5px; }
.shows p { margin: 2px 0 0; font-size: 14.5px; color: var(--muted); }

.facts { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
.facts > div { background: #fff; border-radius: 12px; padding: 16px; }
.facts h4 { margin: 0 0 10px; font-size: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 11px; border-radius: 99px; background: #ececea; color: var(--ink);
  font-size: 13.5px; line-height: 1.3;
}
.chips a { font-family: "DM Mono", "Courier New", monospace; font-size: 11.5px; color: var(--muted); text-decoration: none; margin-left: 4px; }
.chips a:hover { color: var(--ink); text-decoration: underline; }
.chips-label { margin: 14px 0 8px !important; font-size: 12px !important; color: var(--muted); }
.chips li[data-c="0"] { background: #f3dede; } .chips li[data-c="1"] { background: #f3e7d2; }
.chips li[data-c="2"] { background: #e6ecd2; } .chips li[data-c="3"] { background: #d6ece2; }
.chips li[data-c="4"] { background: #d5e6f0; } .chips li[data-c="5"] { background: #dcdff5; }
.chips li[data-c="6"] { background: #e7dcf5; } .chips li[data-c="7"] { background: #f3dcea; }
.chips li[data-c="8"] { background: #d3ecec; } .chips li[data-c="9"] { background: #ece3da; }
/* each chip its own muted colour on the dark grey */
body.is-dark .chips li[data-c="0"] { background: #a14d4d; } body.is-dark .chips li[data-c="1"] { background: #94661f; }
body.is-dark .chips li[data-c="2"] { background: #677626; } body.is-dark .chips li[data-c="3"] { background: #2f7a5a; }
body.is-dark .chips li[data-c="4"] { background: #2a6c8c; } body.is-dark .chips li[data-c="5"] { background: #4a55a8; }
body.is-dark .chips li[data-c="6"] { background: #7650aa; } body.is-dark .chips li[data-c="7"] { background: #a0457c; }
body.is-dark .chips li[data-c="8"] { background: #287a7b; } body.is-dark .chips li[data-c="9"] { background: #86603f; }
body.is-dark .chips a { color: rgba(255, 255, 255, .78); }
/* an artist's handle beside their name, e.g. in Shows and residencies */
.handle { font-family: "DM Mono", "Courier New", monospace; font-size: 11.5px; color: var(--muted); text-decoration: none; margin-left: 6px; font-weight: 400; }
.handle:hover { color: var(--ink); text-decoration: underline; }
.facts p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

.mixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mixes a {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  background: #fff; border-radius: 10px; padding: 12px 16px; text-decoration: none; color: var(--ink); font-size: 14.5px;
}
.mixes a span { color: var(--muted); font-size: 11px; }
.mix-logo { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.mixes a:hover { box-shadow: inset 0 0 0 1px var(--ink); }

.outro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 34px; }
.outro h4 { margin: 0; font-size: 17px; }
.outro p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.stack { position: relative; flex: none; width: 150px; height: 110px; border: 0; padding: 0; background: none; cursor: zoom-in; }
.stack img {
  position: absolute; top: 10px; left: 40px; width: 64px; height: 86px; object-fit: cover;
  border-radius: 3px; border: 2px solid #fff; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5);
  transform-origin: 50% 120%; transition: transform .45s var(--ease-out);
}
.stack img:nth-child(1) { transform: rotate(-24deg); }
.stack img:nth-child(2) { transform: rotate(-12deg); }
.stack img:nth-child(4) { transform: rotate(12deg); }
.stack img:nth-child(5) { transform: rotate(24deg); }
.stack:hover img:nth-child(1), .stack:focus-visible img:nth-child(1) { transform: rotate(-34deg); }
.stack:hover img:nth-child(2), .stack:focus-visible img:nth-child(2) { transform: rotate(-17deg); }
.stack:hover img:nth-child(4), .stack:focus-visible img:nth-child(4) { transform: rotate(17deg); }
.stack:hover img:nth-child(5), .stack:focus-visible img:nth-child(5) { transform: rotate(34deg); }

/* player (left) and links (right) */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 40px 24px 18px; font-size: 13px;
  background: linear-gradient(to top, #fff 55%, rgba(255, 255, 255, 0));
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.np { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: calc(50% - 170px); }
.np-btn {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 6px; background: none; color: #555; cursor: pointer;
  transition: color .2s;
}
.np-btn:hover { color: var(--ink); }
.np-btn svg { width: 14px; height: 14px; fill: currentColor; }
.np-btn .i-play { display: none; }
body:not(.is-playing) .np-btn .i-pause { display: none; }
body:not(.is-playing) .np-btn .i-play { display: block; }
.np-text { margin: 0 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #555; transition: color .2s; }
.np-text { font-size: 12px; }
.np-text strong { font-weight: 400; }
/* artist and BPM stay tucked away until you hover the player */
.np-text span {
  display: inline-block; vertical-align: bottom; max-width: 0; opacity: 0; overflow: hidden;
  color: var(--muted); transition: max-width .4s var(--ease-out), opacity .3s;
}
.np:hover .np-text, .np:focus-within .np-text { color: var(--ink); }
.np:hover .np-text span, .np:focus-within .np-text span { max-width: 260px; opacity: 1; }
.links { display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: flex-end; max-width: calc(50% - 170px); }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--ink); text-decoration: underline; }
#backToVinyl { color: var(--ink); font-size: 12.5px; }

/* page scroller, styled as the 1200's pitch fader (side views only) */
.scroller {
  position: fixed; right: 22px; top: 50%; z-index: 12;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroller-panel { position: relative; width: 62px; height: min(52vh, 400px); background: #efefed; border: 2px solid var(--ink); }
.scroller-scale { position: absolute; left: 6px; top: 28px; bottom: 28px; width: 20px; }
.scroller-scale span {
  position: absolute; right: 0; transform: translateY(-50%);
  display: flex; align-items: center; gap: 2px;
  font-size: 9px; line-height: 1; color: #2a2a2a; font-variant-numeric: tabular-nums;
}
.scroller-scale span::after { content: ""; width: 4px; height: 3px; background: #2a2a2a; }
.scroller-led { position: absolute; left: 8px; top: 50%; width: 8px; height: 6px; margin-top: -3px; background: var(--led); border-radius: 1px; }
.scroller-slot { position: absolute; left: 39px; top: 10px; bottom: 10px; width: 7px; border-radius: 4px; background: #1b1b1b; cursor: pointer; }
.scroller-slot::before { content: ""; position: absolute; inset: 0 -14px; }
.scroller-cap {
  position: absolute; left: 28px; top: 10px; width: 30px; height: 36px; border-radius: 2px;
  background:
    linear-gradient(transparent 46%, #3a3a3a 46% 54%, transparent 54%),
    linear-gradient(180deg, #fbfbfa, #d9d9d6 50%, #b9b9b5);
  border: 1.5px solid #2a2a2a; box-shadow: 0 3px 6px rgba(0, 0, 0, .25);
  cursor: grab; touch-action: none;
}
.scroller-cap:active { cursor: grabbing; }
.scroller-label { font-size: 11px; color: #2a2a2a; }

/* ---------- after hours: Side B stays dark; the mirror ball drops in for 4 s on arrival ---------- */
body, .exp, .stats li, .project, .facts > div, .mixes a, .story, .bar, .contact a {
  transition: background-color .7s ease, color .7s ease, box-shadow .7s ease;
}
body.is-dark {
  --page: #1e1e1e; --ink: #f3f3f1; --muted: #adada8; --line: #3a3a3a; --card: #303030;
  background: #1e1e1e; color: var(--ink);
}
body.is-dark .stats li, body.is-dark .project, body.is-dark .facts > div,
body.is-dark .mixes a, body.is-dark .story { background: #3b3b3b; }
/* Side B boxes: a step lighter than the page, with a faint edge so they stand apart */
body.is-dark .exp { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
body.is-dark .bar { background: linear-gradient(to top, #1e1e1e 55%, rgba(30, 30, 30, 0)); }
body.is-dark img.exp-logo:not(.exp-logo--photo) { background: #f3f3f1; }
body.is-dark .np-btn, body.is-dark .np-text { color: #b5b5b0; }
body.is-dark .np-btn:hover, body.is-dark .np:hover .np-text { color: #fff; }
body.is-dark img[src*="icon-ra"] { filter: brightness(2.2); }   /* RA's black logo, lifted so it reads on black */

.disco { position: fixed; inset: 0; z-index: 30; pointer-events: none; visibility: hidden; overflow: hidden; }
body.is-disco .disco { visibility: visible; }
.disco-rig {
  position: absolute; left: 50%; top: 0; width: 140px; margin-left: -70px;
  transform: translateY(-110%); transition: transform 1s cubic-bezier(.3, 1.3, .5, 1);
}
body.is-disco .disco-rig { transform: translateY(0); }
body.disco-out .disco-rig { transform: translateY(-110%); transition: transform .8s ease-in; }
.disco-cord { display: block; width: 2px; height: 90px; margin: 0 auto; background: linear-gradient(#555, #aaa); }
.disco-ball {
  position: relative; display: block; width: 140px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #fff 0, #d9d9d9 18%, #8d8d8d 55%, #2c2c2c 100%);
  box-shadow: 0 0 40px rgba(255, 255, 255, .35), 0 0 120px rgba(160, 190, 255, .25);
}
.disco-tiles {                    /* mirror tiles, scrolled sideways to read as rotation */
  position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .55) 0 1.5px, transparent 1.5px 11px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .55) 0 1.5px, transparent 1.5px 11px),
    linear-gradient(90deg, rgba(255,255,255,.0), rgba(255,255,255,.35) 30%, rgba(255,255,255,0) 32%, rgba(255,255,255,.25) 60%, rgba(255,255,255,0) 62%);
  background-size: 11px 11px, 11px 11px, 140px 100%;
  animation: tiles 1.2s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 66%, rgba(0, 0, 0, .4) 100%); mask: radial-gradient(circle, #000 66%, rgba(0, 0, 0, .4) 100%);
}
.disco-shine { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 70% 75%, transparent 40%, rgba(0, 0, 0, .55) 100%); }
.disco-glint {
  position: absolute; left: 30%; top: 24%; width: 18px; height: 18px;
  background: radial-gradient(circle, #fff 0 2px, transparent 3px), linear-gradient(#fff, #fff) center / 2px 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 2px no-repeat;
  filter: drop-shadow(0 0 6px #fff); animation: glint .9s ease-in-out infinite alternate;
}
/* reflections: spots that sweep across the page as the ball turns */
.disco-lights {
  position: absolute; left: 50%; top: 160px; width: 0; height: 0;
  animation: sweep 6s linear infinite;
  opacity: 0; transition: opacity .6s .4s;
}
body.is-disco .disco-lights { opacity: 1; }
body.disco-out .disco-lights { opacity: 0; transition-delay: 0s; }
.disco-lights span {
  position: absolute; width: var(--d); height: var(--d); border-radius: 50%;
  background: var(--col); box-shadow: 0 0 calc(var(--d) * 1.6) var(--col);
  transform: rotate(var(--a)) translateX(var(--r));
  mix-blend-mode: screen; opacity: .85;
}

@keyframes tiles { to { background-position: 11px 0, 0 0, 140px 0; } }
@keyframes glint { from { opacity: .2; transform: scale(.6); } to { opacity: 1; transform: scale(1.1); } }
@keyframes sweep { to { transform: rotate(360deg); } }

/* poster viewer */
.poster-view {
  max-width: min(92vw, 640px); max-height: 92vh; padding: 0; border: 0; border-radius: 10px;
  background: transparent; overflow: visible;
}
.poster-view::backdrop { background: rgba(10, 10, 10, .82); }
.poster-view img { display: block; max-width: 100%; max-height: 88vh; width: auto; margin: 0 auto; border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.poster-view .gallery-close { top: -44px; right: 0; color: #fff; border-color: rgba(255, 255, 255, .4); }
.poster-view[open] img { animation: arrive .35s var(--ease-out); }

/* gallery */
.gallery { width: min(1100px, 100vw - 32px); max-height: calc(100vh - 32px); padding: 56px 20px 20px; border: 0; border-radius: 12px; background: #fff; }
.gallery::backdrop { background: rgba(20, 20, 18, .7); }
.gallery-grid { columns: 3 220px; column-gap: 12px; }
.gallery-grid img { width: 100%; margin: 0 0 12px; border-radius: 4px; break-inside: avoid; }
.gallery-close { position: absolute; right: 16px; top: 14px; padding: 6px 14px; cursor: pointer; border: 1px solid var(--line); border-radius: 99px; background: none; font-size: 13px; }

@keyframes arrive { from { opacity: 0; transform: translateY(12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== narrower screens ===================== */
@media (max-width: 980px) {
  .bar { padding: 10px 16px 10px; background: var(--page); box-shadow: 0 -1px 0 var(--line); }
  .np, .links { max-width: none; }
  .links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 14px; }
  .links a { flex: none; }
  .page--main { padding-bottom: 90px; }
  .scroller { display: none; }
  html.on-p2 { scrollbar-width: auto; }
}

@media (max-width: 760px) {
  .stage { grid-template-columns: 1fr; gap: 14px; width: min(460px, 100%); }
  .stack-col { height: 30vw; max-height: 140px; }
  .deck { grid-column: auto; margin-top: 34vw; }   /* room below the row for the vinyl to slide out */
  .home-hero { padding-top: 4px; padding-bottom: 96px; }
  .scroll-cue { position: static; transform: none; margin: -20px auto 0; }   /* sits under the text on phones */
  .scroll-cue::after { height: 16px; }
  .home-hero { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .home-intro { margin: 0 auto; }
  .hero-sleeve { width: min(420px, 100%); grid-row: 1; }
  .view--home, .view--side { padding-left: 20px; padding-right: 20px; }
  .view--side { padding-top: 64px; }
  .home-hero { padding-bottom: 28px; }   /* less empty space under the SCROLL cue */
  #side-a { padding-top: 36px; }
  .view-head { margin-bottom: 22px; }
  .view-head h2 { font-size: clamp(32px, 6vw, 56px); }

  .masthead { padding: 18px 16px 0; flex-direction: column; align-items: flex-start; }
  .contact { justify-content: flex-start; }
  .exp { padding: 16px; border-radius: 14px; margin-bottom: 14px; }
  /* card header: logo on the left; title, role and dates stacked beside it */
  .exp-head { grid-template-columns: auto 1fr; align-items: start; gap: 2px 12px; margin-bottom: 14px; }
  .exp-logo { grid-row: span 2; height: 44px; min-width: 44px; max-width: 96px; padding: 6px; border-radius: 10px; }
  .exp-logo--photo { width: 44px; min-width: 44px; padding: 0; }
  .exp-logo--queens { padding: 3px; }
  .exp-title h3 { font-size: 18px; gap: 8px; }
  .exp-title p { font-size: 15px; line-height: 1.35; }
  .exp-dates { grid-column: 2; margin-top: 2px; font-size: 13px; }
  /* stats: three compact boxes side by side */
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  .stats li { padding: 10px; font-size: 11.5px; line-height: 1.35; border-radius: 10px; }
  .stats strong { font-size: 20px; margin-bottom: 3px; }
  .projects, .facts { grid-template-columns: 1fr; }
  .projects { gap: 10px; margin-top: 10px; }
  .facts { gap: 10px; margin-top: 18px; }
  .facts > div { padding: 14px; }
  .sub { margin: 22px 0 10px; }
  .shows li { padding: 10px 0; }
  .photos .photo { flex-basis: 70vw; }
  .shows li { grid-template-columns: 1fr; gap: 2px; }
  .outro { flex-direction: column; align-items: flex-start; }
  /* bottom bar: one row that always fits the screen; the song title shortens with "…" before Back to Vinyl is cut */
  .bar {
    flex-direction: row; align-items: center; gap: 12px;
    padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .np { flex: 1 1 auto; min-width: 0; }
  .links { flex: none; overflow: visible; }
  .page--main { padding-bottom: 80px; }
  html, body { overflow-x: clip; }   /* never scroll sideways on phones */
  .skip { right: 10px; bottom: 10px; }

  /* a smaller mirror ball with fainter spots, so Side B's text stays readable while it plays */
  .disco-rig { width: 84px; margin-left: -42px; }
  .disco-cord { height: 40px; }
  .disco-ball { width: 84px; }
  .disco-lights { top: 90px; }
  .disco-lights span { width: calc(var(--d) * .6); height: calc(var(--d) * .6); transform: rotate(var(--a)) translateX(calc(var(--r) * .6)); opacity: .55; }
}

/* very small phones: three boxes get too cramped, so each stat becomes a row, number on the left */
@media (max-width: 360px) {
  .stats { grid-template-columns: 1fr; }
  .stats li { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 10px; }
  .stats strong { margin: 0; }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .proj-logos { gap: 12px; min-width: 0; }   /* both logos stay on one line, just smaller */
  .proj-logos img { height: 20px; max-width: calc(50% - 6px); }
}

@media (prefers-reduced-motion: reduce) {
  .cover-card, .stack img, .record, .page--gate { transition-duration: .01s; }
  .disco-tiles, .disco-glint, .disco-lights { animation: none; }
  .page--main, .view { animation: none; }
  .shimmer { animation: none; color: var(--ink); background: none; }
  .hero-disc, .scroll-cue::after { animation: none; }
}
