*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --black: #000; --surface: #0a0a0a; --border: #1e1e1e; --border2: #2a2a2a;
  --dim: #444; --mid: #666; --light: #999; --text: #d4d0c8; --bright: #f0ece0;
  --red: #c0392b; --mono: 'Space Mono', monospace;
}
body { background: #000; color: var(--text); font-family: var(--mono); font-size: 13px; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #222; }

/* Nav layout lives in assets/nav.css. Per-page accent override below. */
.dropdown-menu a.active { color: var(--red); }
nav .nav-link.dropdown.active,
nav .nav-link.dropdown.active .bracket,
nav .nav-link.dropdown.active .caret { color: var(--red); }


/* margin-top: 78px → 44px (2026-05-13) — the 78px gap originally
   reserved space for the archive-loader bar that used to sit below
   the nav. With the loader removed, the title is now flush with
   the nav at the same vertical position as the art galleries. */
.gallery-header { margin-top: 44px; padding: 32px 28px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.gallery-title { font-family: 'Chakra Petch', sans-serif; font-size: 36px; font-weight: 700; letter-spacing: 4px; color: var(--bright); text-transform: uppercase; }
.gallery-subtitle { font-size: 11px; letter-spacing: 4px; color: var(--mid); margin-top: 6px; text-transform: uppercase; }
.gallery-tag { font-size: 10px; letter-spacing: 3px; color: var(--red); margin-bottom: 8px; }
.gallery-meta { font-size: 11px; color: var(--light); letter-spacing: 2px; text-align: right; }
.gallery-blurb { max-width: 540px; font-size: 12px; color: var(--light); line-height: 1.7; margin-top: 14px; letter-spacing: 0.3px; }
.gallery-blurb .br { color: var(--dim); }
.gallery-blurb em { color: var(--bright); font-style: normal; }

/* tape header — scored piece feels like a concert program */
.gallery-program {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(192,57,43,0.06), transparent 60%);
  font-size: 9px; letter-spacing: 3px; color: var(--mid);
  text-transform: uppercase;
}
.gallery-program .pgm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 6px var(--red); animation: prgm-pulse 2.4s infinite ease-in-out; }
.gallery-program .pgm-label { color: var(--bright); letter-spacing: 4px; }
.gallery-program .pgm-spacer { flex: 1; }
@keyframes prgm-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ─── MOVEMENTS LAYOUT — 2 columns of large square cards ───
   2026-05-15: tiles were touching (gap: 0) with only a 1px hairline
   between them — read as one connected sheet, not two pieces. Added
   real gap + container padding so each program is a framed object,
   not a cell. Hover lift makes "this is interactive" obvious. */
.programs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
}
.program {
  border: 1px solid var(--border);
  background: #050505;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: background 0.3s, transform 0.35s ease, border-color 0.35s, box-shadow 0.35s;
}
.program:hover {
  background: #0a0a0a;
  transform: translateY(-2px);
  border-color: var(--border2);
  box-shadow: 0 6px 28px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(192, 57, 43, 0.08);
}

.prg-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}
.prg-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.78) saturate(0.85) contrast(1.05);
  transition: filter 0.5s, transform 0.6s;
}
.program:hover .prg-media video { filter: brightness(1) saturate(1) contrast(1); transform: scale(1.02); }

.prg-media::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px);
  opacity: 0.55; transition: opacity 0.3s;
}
.program:hover .prg-media::before { opacity: 0.25; }
.prg-media::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* SCORED badge — top-left, audio-coded */
.prg-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--border2);
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  font-size: 9px; letter-spacing: 2.5px; color: var(--light);
  pointer-events: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.prg-badge .eq { display: inline-flex; align-items: end; gap: 1.5px; height: 9px; }
.prg-badge .eq i {
  width: 2px; background: var(--red); display: inline-block; height: 30%;
  animation: eq-bar 0.9s infinite ease-in-out;
}
.prg-badge .eq i:nth-child(1) { animation-delay: 0s; }
.prg-badge .eq i:nth-child(2) { animation-delay: 0.15s; }
.prg-badge .eq i:nth-child(3) { animation-delay: 0.3s; }
.prg-badge .eq i:nth-child(4) { animation-delay: 0.45s; }
@keyframes eq-bar { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.program:hover .prg-badge { color: var(--bright); border-color: var(--red); background: rgba(0,0,0,0.9); }

/* opus / number — top-right */
.prg-opus {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px; letter-spacing: 4px;
  color: var(--bright);
  padding: 4px 8px;
  border: 1px solid var(--border2);
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

/* large play affordance — slightly different from the loops gallery — circular vinyl-feel */
.prg-glyph {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 3;
  width: 78px; height: 78px;
  border-radius: 50%;
  border: 1px solid rgba(240,236,224,0.35);
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s, transform 0.5s, border-color 0.3s, background 0.3s;
  pointer-events: none;
}
.prg-glyph::before {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  border: 1px dashed rgba(240,236,224,0.18);
}
.prg-glyph::after {
  content: ''; width: 0; height: 0;
  border-left: 18px solid var(--bright);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 5px;
}
.program:hover .prg-glyph { opacity: 0; transform: translate(-50%, -50%) scale(1.4) rotate(20deg); }

/* duration tag */
.prg-dur {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  padding: 4px 8px;
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--border2);
  font-size: 9px; letter-spacing: 2px; color: var(--bright);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* program label / liner-notes block */
.prg-liner {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.prg-liner-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.prg-cat { font-size: 9px; letter-spacing: 2.5px; color: var(--red); text-transform: uppercase; }
.prg-cat .seq { color: var(--mid); }
.prg-plus { width: 20px; height: 20px; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--dim); transition: color 0.2s, border-color 0.2s; flex-shrink: 0; }
.program:hover .prg-plus { border-color: var(--red); color: var(--red); }

.prg-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 22px; line-height: 1.15;
  letter-spacing: 1.5px;
  color: var(--bright);
  text-transform: uppercase;
  font-weight: 700;
  text-wrap: pretty;
}
.prg-title .br { color: var(--dim); font-weight: 400; margin: 0 4px; }

.prg-byline {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 10px; letter-spacing: 2px; color: var(--mid);
  text-transform: uppercase;
}
.prg-byline span strong { color: var(--light); font-weight: 400; }

.prg-desc { font-size: 12px; line-height: 1.7; color: var(--light); max-width: 56ch; }

/* responsive */
@media (max-width: 900px) {
  /* iPad — single column, tightened breathing room from desktop */
  .programs { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .prg-title { font-size: 19px; }
}
@media (max-width: 600px) {
  /* Phone — full bleed, edge-to-edge. No padding, no gap, no border.
     Maximize tile size on small screens. Chris's call 2026-05-15. */
  .programs { gap: 0; padding: 0; }
  .program { border: none; }
  .program:hover { transform: none; box-shadow: none; border: none; }
}
@media (max-width: 600px) {
  .gallery-title { font-size: 24px; letter-spacing: 3px; }
  .gallery-header { padding: 24px 18px; }
  .gallery-program { padding: 8px 18px; }
  .prg-liner { padding: 14px 16px 18px; }
  .prg-title { font-size: 18px; }
}

/* loader (matches sister gallery) */
#archive-loader {
  position: fixed; top: 44px; left: 0; right: 0;
  z-index: 90; background: rgba(0,0,0,0.85); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border); padding: 8px 20px 0;
  font-family: var(--mono);
  transition: opacity 0.6s, transform 0.6s; pointer-events: none;
}
#archive-loader.gone { opacity: 0; transform: translateY(-100%); }
.al-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 10px; letter-spacing: 2.5px; color: var(--dim); padding-bottom: 6px; }
.al-status { color: var(--bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.al-status .br { color: var(--red); }
.al-status .scramble { color: var(--red); }
.al-counter { color: var(--light); font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-counter .pct { color: var(--bright); }
.al-counter .sep { color: var(--border2); margin: 0 8px; }
.al-bar { position: relative; height: 2px; background: var(--border); overflow: hidden; }
.al-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--red); transition: width 0.25s; box-shadow: 0 0 8px rgba(192,57,43,0.7); }
.al-fill::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6)); }
.al-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border2); }
#archive-loader.complete .al-fill { background: var(--bright); box-shadow: 0 0 12px rgba(240,236,224,0.8); }

#lightbox .lb-art-placeholder { background: #000; }
