:root {
  --bg: #070706;
  --fg: #f3f0e8;
  --muted: rgba(243, 240, 232, .56);
  --hairline: rgba(243, 240, 232, .18);
  --poster-size: min(82vh, 84vw);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

/* display rules below must not defeat the hidden attribute */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background:
    linear-gradient(90deg, rgba(7,7,6,.94) 0, rgba(7,7,6,0) 14vw, rgba(7,7,6,0) 86vw, rgba(7,7,6,.94) 100%),
    radial-gradient(circle at 50% 105%, rgba(255, 128, 64, .12), transparent 42%);
  mix-blend-mode: normal;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 21;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.chrome {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  padding: clamp(18px, 2.1vw, 34px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header, footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  letter-spacing: .02em;
}

.brand {
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 520;
  line-height: 1;
}

/* Two-line wordmark, ~2.54:1 — sized against the header row.
   difference inverts the white marks against whatever scrolls beneath. */
.brand img {
  display: block;
  height: clamp(30px, 2.6vw, 44px);
  width: auto;
  mix-blend-mode: difference;
}

.tagline, .meta, .hint {
  color: var(--muted);
  font-size: clamp(11px, .78vw, 13px);
  line-height: 1.2;
  font-weight: 420;
}

.tagline { text-align: right; }

.progress {
  position: fixed;
  left: clamp(18px, 2.1vw, 34px);
  right: clamp(18px, 2.1vw, 34px);
  bottom: clamp(54px, 5vw, 78px);
  height: 1px;
  z-index: 32;
  pointer-events: none;
  background: var(--hairline);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: 18%;
  transform: translateX(0%);
  background: var(--fg);
  transform-origin: left center;
  will-change: transform;
}

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center start;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.stage:active { cursor: grabbing; }

.rail {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100vh;
  will-change: transform;
  transform: translate3d(0,0,0);
  padding-left: calc((100vw - var(--poster-size)) / 2);
  padding-right: calc((100vw - var(--poster-size)) / 2);
}

.poster {
  position: relative;
  flex: 0 0 var(--poster-size);
  width: var(--poster-size);
  height: var(--poster-size);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
  border-right: 1px solid rgba(255,255,255,.05);
  background: #111;
  transform: translateZ(0);
}

.poster:first-child { border-left: 1px solid rgba(255,255,255,.05); }

/* Tiny inline preview (--lqip, set from JS) sits under the real image.
   The blurred layer is oversized and clipped by its parent so the blur
   does not fade out at the edges. */
.lqip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.lqip::before {
  content: "";
  position: absolute;
  inset: -16%;
  background: var(--lqip) center / cover no-repeat #111;
  filter: blur(32px);
}

/* Loading state: shimmer while the image downloads, then fade it in. */
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.poster.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(243,240,232,0) 30%,
    rgba(243,240,232,.06) 50%,
    rgba(243,240,232,0) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.poster img {
  opacity: 0;
  transition: opacity .6s var(--ease), transform 1.1s var(--ease);
}

.poster img.is-loaded { opacity: 1; }

/* Hover: slow editorial zoom (skipped while dragging and on touch). */
@media (hover: hover) and (pointer: fine) {
  .poster .art { transition: transform 1.1s var(--ease); }

  body:not(.dragging) .poster:hover img,
  body:not(.dragging) .poster:hover .art {
    transform: scale(1.045);
  }
}

.poster img,
.poster .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transform: scale(1.0001);
}

.poster .art,
.detail-media .art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at var(--x) var(--y), rgba(255,255,255,.24), transparent 17%),
    linear-gradient(var(--a), var(--c1), var(--c2) 54%, var(--c3));
}

.poster .art::before,
.detail-media .art::before {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(255,255,255,.18);
  opacity: .7;
}

.poster .art::after,
.detail-media .art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.28));
}

.poster-copy {
  position: relative;
  z-index: 2;
  width: 72%;
  height: 72%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  text-transform: uppercase;
  letter-spacing: -.05em;
}

.poster-copy small {
  font-size: clamp(9px, .75vw, 12px);
  letter-spacing: .18em;
  opacity: .7;
}

.poster-copy h2 {
  align-self: center;
  margin: 0;
  font-size: clamp(44px, 7.2vw, 120px);
  line-height: .78;
  font-weight: 460;
  max-width: 8ch;
}

.poster-copy p {
  margin: 0;
  font-size: clamp(10px, .86vw, 14px);
  letter-spacing: .12em;
  opacity: .72;
}

/* ------------------------------------------------------------------ */
/* Upcoming / past                                                     */
/* ------------------------------------------------------------------ */

.badge {
  position: absolute;
  z-index: 3;
  top: clamp(12px, 1.4vw, 22px);
  left: clamp(12px, 1.4vw, 22px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  font-size: clamp(9px, .7vw, 12px);
  font-weight: 480;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(7, 7, 6, .55);
  border: 1px solid rgba(243, 240, 232, .25);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f0693d;
  animation: pulse 2.4s var(--ease) infinite;
}

.badge.past::before {
  background: rgba(243, 240, 232, .4);
  animation: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 105, 61, .55); }
  55%      { box-shadow: 0 0 0 7px rgba(240, 105, 61, 0); }
}

/* The archive reads as memory: slightly faded until you look at it. */
.poster.is-past img,
.poster.is-past .art {
  filter: grayscale(.4) brightness(.8);
  transition: filter .8s var(--ease), opacity .6s var(--ease), transform 1.1s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  body:not(.dragging) .poster.is-past:hover img,
  body:not(.dragging) .poster.is-past:hover .art {
    filter: grayscale(0) brightness(1);
  }
}

/* Next event banner — pinned under the header, always visible. */
.next-up {
  position: fixed;
  z-index: 34;
  top: clamp(66px, 8vh, 100px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 680px);
  padding: 10px 18px;
  background: rgba(7, 7, 6, .66);
  color: var(--fg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font: inherit;
  font-size: clamp(10px, .78vw, 13px);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s var(--ease);
}

.next-up:hover { border-color: rgba(243, 240, 232, .6); }
.next-up:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.next-up-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f0693d;
  animation: pulse 2.4s var(--ease) infinite;
}

.next-up-label { color: var(--muted); flex: none; }

.next-up-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------------ */
/* Rail slices — archive divider & community panel                     */
/* ------------------------------------------------------------------ */

.slice {
  position: relative;
  flex: 0 0 auto;
  height: var(--poster-size);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(20px, 3vw, 48px);
  border-right: 1px solid rgba(255,255,255,.05);
  text-transform: uppercase;
}

.slice small {
  font-size: clamp(9px, .7vw, 12px);
  letter-spacing: .18em;
  color: var(--muted);
}

.slice h2 {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 96px);
  line-height: .82;
  font-weight: 460;
  letter-spacing: -.05em;
}

.slice p {
  margin: 0;
  font-size: clamp(10px, .82vw, 13px);
  letter-spacing: .12em;
  color: var(--muted);
}

.divider-slice {
  width: calc(var(--poster-size) * .56);
  background:
    radial-gradient(circle at 30% 110%, rgba(240, 105, 61, .1), transparent 55%);
  border-left: 1px solid rgba(243, 240, 232, .16);
}

.divider-slice::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  right: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(243,240,232,.22), transparent);
}

.community-slice {
  width: calc(var(--poster-size) * .92);
  background:
    radial-gradient(circle at 70% -10%, rgba(240, 105, 61, .12), transparent 50%);
  border-left: 1px solid rgba(243, 240, 232, .16);
}

.community-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(10px, 1.6vh, 22px);
}

.community-links a,
.community-links button {
  font: inherit;
  font-size: clamp(10px, .78vw, 13px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 11px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .25s var(--ease);
}

.community-links a:hover,
.community-links button:hover { border-color: var(--fg); }

.caption {
  position: fixed;
  z-index: 31;
  left: 50%;
  top: 50%;
  width: var(--poster-size);
  height: var(--poster-size);
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: grid;
  align-items: end;
  padding: clamp(16px, 1.6vw, 26px);
  mix-blend-mode: difference;
}

.caption strong {
  font-size: clamp(12px, .9vw, 15px);
  font-weight: 500;
  letter-spacing: .02em;
}

.caption span {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.62);
  font-size: clamp(11px, .8vw, 13px);
}

.index {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.magnet {
  position: fixed;
  z-index: 33;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s var(--ease), width .35s var(--ease), height .35s var(--ease);
  mix-blend-mode: difference;
}

@media (hover:hover) and (pointer:fine) {
  body:hover .magnet { opacity: 1; }
  .stage:active ~ .magnet,
  body.dragging .magnet { width: 42px; height: 42px; }
}

/* ------------------------------------------------------------------ */
/* Poster detail — poster left, info right                             */
/* ------------------------------------------------------------------ */

.detail {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}

.detail.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .5s var(--ease);
}

.detail-media {
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 48px);
  min-height: 0;
}

/* The img box exists before its pixels arrive (aspect-ratio), so the
   shimmer can live on the element itself while it loads. */
.detail-media.is-loading img {
  background: linear-gradient(100deg,
    rgba(243,240,232,0) 30%,
    rgba(243,240,232,.06) 50%,
    rgba(243,240,232,0) 70%) #111;
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

/* With a tiny preview layer behind it, the img must stay transparent. */
.detail-media.has-lqip img {
  background: none;
  animation: none;
}

/* Stack the preview and the image in the same grid cell. */
.detail-media > * { grid-area: 1 / 1; }

.detail-media .lqip {
  position: relative;
  inset: auto;
  width: min(84vh, 100%);
  aspect-ratio: 1 / 1;
}

.detail-media img,
.detail-media .art {
  position: relative;
  width: min(84vh, 100%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.08);
  transform: translateY(14px);
  opacity: 0;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}

.detail.open .detail-media img,
.detail.open .detail-media .art {
  transform: translateY(0);
  opacity: 1;
}

.detail-info {
  min-height: 0;
  overflow-y: auto;
  padding: clamp(28px, 5vw, 84px);
  padding-top: clamp(72px, 9vh, 120px);
  border-left: 1px solid rgba(255,255,255,.06);
  transform: translateY(18px);
  opacity: 0;
  transition: transform .7s var(--ease) .08s, opacity .7s var(--ease) .08s;
}

.detail.open .detail-info {
  transform: translateY(0);
  opacity: 1;
}

.detail-info small {
  display: block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: clamp(10px, .72vw, 12px);
  color: var(--muted);
  margin-bottom: 18px;
}

.detail-info h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 3.6vw, 64px);
  line-height: .92;
  font-weight: 470;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.detail-meta {
  color: var(--muted);
  font-size: clamp(12px, .86vw, 14px);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: clamp(24px, 3vh, 42px);
  padding-bottom: clamp(18px, 2.4vh, 30px);
  border-bottom: 1px solid var(--hairline);
}

.detail-body {
  font-size: clamp(14px, 1.02vw, 17px);
  line-height: 1.65;
  font-weight: 420;
  color: rgba(243, 240, 232, .86);
  max-width: 62ch;
}

.detail-body p { margin: 0 0 1.1em; }
.detail-body h2, .detail-body h3 {
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 520;
  margin: 1.6em 0 .5em;
}
.detail-body h2 { font-size: 1.25em; }
.detail-body h3 { font-size: 1.05em; }
.detail-body ul, .detail-body ol { margin: 0 0 1.1em; padding-left: 1.2em; }
.detail-body li { margin-bottom: .35em; }
.detail-body blockquote {
  margin: 1.2em 0;
  padding-left: 1em;
  border-left: 1px solid var(--hairline);
  color: var(--muted);
}
.detail-body a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(243, 240, 232, .4);
  transition: text-decoration-color .25s var(--ease);
}
.detail-body a:hover { text-decoration-color: var(--fg); }

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 4vh, 48px);
  padding-top: clamp(18px, 2.4vh, 30px);
  border-top: 1px solid var(--hairline);
}

.detail-actions button,
.detail-actions a {
  font: inherit;
  font-size: clamp(10px, .78vw, 13px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 11px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .25s var(--ease);
}

.detail-actions button:hover,
.detail-actions a:hover { border-color: var(--fg); }
.detail-actions button:focus-visible,
.detail-actions a:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.detail-close {
  position: absolute;
  top: clamp(14px, 2vw, 28px);
  right: clamp(14px, 2vw, 28px);
  z-index: 41;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}

.detail-close:hover { border-color: var(--fg); transform: rotate(90deg); }
.detail-close:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

@media (max-width: 900px) {
  .detail {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow-y: auto;
    display: block;
  }

  .detail-media {
    padding: 0;
  }

  .detail-media img,
  .detail-media .art {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .detail-media .lqip { width: 100%; }

  .detail-info {
    border-left: 0;
    padding: 26px 20px 64px;
    overflow: visible;
  }

  .detail-close {
    position: fixed;
    background: rgba(7,7,6,.6);
    backdrop-filter: blur(6px);
  }
}

@media (max-width: 720px) {
  :root { --poster-size: min(76vh, 92vw); }
  .tagline { display: none; }
  .hint { display: none; }
  .caption { padding: 14px; }
  .next-up { top: 64px; }
  .divider-slice { width: min(72vw, var(--poster-size)); }
  .community-slice { width: min(92vw, var(--poster-size)); }
}

@media (prefers-reduced-motion: reduce) {
  .rail { transition: transform .001s linear; }
  .magnet { display: none; }
  .detail, .detail-media img, .detail-media .art, .detail-info { transition: none; }
  .poster.is-loading::before,
  .detail-media.is-loading img { animation: none; }
  .poster img, .poster .art { transition: none; }
  .poster:hover img, .poster:hover .art { transform: scale(1.0001); }
  .badge::before, .next-up-dot { animation: none; }
}
