@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #a6201c;
  --ink: #161212;
  --field: #121212;
  --text: #e7e2dc;
  --dim: rgba(231, 226, 220, 0.45);
  --rule: rgba(231, 226, 220, 0.16);
  --pad: clamp(1.25rem, 5vw, 4rem);
  --tick: 3.5rem;
  --screen: 100svh;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.95 0 0 0 0 0.9 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  background: var(--field);
  color: var(--text);
}

body {
  overflow-x: clip;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* old print: vignette under, film grain over */

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.6) 100%);
}

body::after {
  z-index: 100;
  inset: -50%;
  background: var(--grain);
  opacity: 0.09;
  animation: grain 0.9s steps(4) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* scene fills the first screen like object-fit: cover, but as a box,
   so the light overlays stay pinned to the picture.
   --fx / --fy pick which part of the picture survives the crop. */

.stage {
  --stage-h: calc(var(--screen) - var(--tick));
  --fx: 1;
  --fy: 0.45;
  position: relative;
  z-index: 1;
  height: var(--stage-h);
  min-height: 24rem;
  overflow: hidden;
  background: #0b0909;
}

.stage__frame {
  position: absolute;
  left: calc(var(--fx) * 100%);
  top: calc(var(--fy) * 100%);
  width: max(100%, calc(max(var(--stage-h), 24rem) * 16 / 9));
  aspect-ratio: 16 / 9;
  transform: translate(calc(var(--fx) * -100%), calc(var(--fy) * -100%));
}

.stage__move {
  position: absolute;
  inset: 0;
  transform-origin: 82% 48%;
  animation: push 32s ease-in-out infinite alternate;
}

.stage__move img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes push {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

/* stage wash flickers like old cans on a dimmer */

.stage__lights {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 14% 22% at 30% 30%, rgba(255, 60, 40, 0.55), transparent 70%),
    radial-gradient(ellipse 14% 22% at 43% 30%, rgba(255, 70, 50, 0.5), transparent 70%),
    radial-gradient(ellipse 22% 14% at 35% 46%, rgba(255, 40, 30, 0.35), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.35;
  animation: flicker 7s steps(1) infinite;
}

@keyframes flicker {
  0% { opacity: 0.35; }
  8% { opacity: 0.6; }
  10% { opacity: 0.3; }
  31% { opacity: 0.45; }
  33% { opacity: 0.2; }
  35% { opacity: 0.5; }
  58% { opacity: 0.4; }
  72% { opacity: 0.65; }
  74% { opacity: 0.3; }
  90% { opacity: 0.45; }
}

/* slow drifting haze over the stage */

.stage__haze {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 30% 18% at 36% 40%, rgba(255, 210, 190, 0.09), transparent 70%);
  mix-blend-mode: screen;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(-2%, 1%); opacity: 0.6; }
  to { transform: translate(3%, -1%); opacity: 1; }
}

/* fade the bottom into the ticker and darken edges so the poster leads */

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 70%, rgba(18, 18, 18, 0.85) 100%),
    radial-gradient(ellipse at 70% 45%, transparent 50%, rgba(0, 0, 0, 0.45) 100%);
}

.stage__cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(0.9rem, 3vh, 1.6rem);
  transform: translateX(-50%);
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.stage__cue span {
  display: inline-block;
  margin-left: 0.15em;
  animation: nudge 2.4s ease-in-out infinite;
}

/* portrait screens: the whole poster must fit, centred; the club falls off
   the left and any gap above/below fades into the wall */

@media (max-aspect-ratio: 1 / 1) {
  .stage__frame {
    --w: min(270vw, max(100vw, calc(max(var(--stage-h), 24rem) * 16 / 9)));
    width: var(--w);
    left: calc(50vw - 0.81 * var(--w));
    top: 50%;
    transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
    animation: pan 3.5s cubic-bezier(0.3, 0, 0.25, 1) both;
  }

  .stage__move {
    transform-origin: 81% 50%;
    animation-name: push-small;
  }
}

/* open on the hall (stage sits ~37% across the picture), then walk to the poster (~81%) */

@keyframes pan {
  0% { translate: calc(0.44 * var(--w)) 0; }
  100% { translate: 0 0; }
}

@keyframes push-small {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

@keyframes nudge {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(4px); }
}

/* ticker: letterpress band, each word set differently, sticks to the top */

.ticker {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--tick);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--field);
  border-block: 3px double var(--rule);
}

.ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: run 46s linear infinite;
}

.ticker__track span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
  text-transform: uppercase;
  padding: 0 clamp(1rem, 2.2vw, 1.75rem);
}

.ticker__track span:nth-child(6n + 1),
.ticker__track span:nth-child(6n + 2),
.ticker__track span:nth-child(6n + 3) {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 0 0.55rem;
}

.ticker__track span:nth-child(6n + 1) {
  padding-left: clamp(1rem, 2.2vw, 1.75rem);
}

.ticker__track span:nth-child(6n + 2) {
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
}

.ticker__track span:nth-child(6n + 3) {
  color: var(--paper);
  padding-right: clamp(1rem, 2.2vw, 1.75rem);
}

.ticker__track span:nth-child(6n + 4) {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--paper);
  padding-block: 0.4rem;
  box-shadow: inset 0 0 0 1px var(--paper);
  margin: 0 0.5rem;
  padding-inline: 0.7rem 0.46rem;
  transform: rotate(-2deg);
}

.ticker__track span:nth-child(6n + 5) {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--dim);
}

.ticker__track span:nth-child(6n) {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text);
}

.ticker__track span:nth-child(6n)::after {
  content: "";
  width: 1.6rem;
  height: 1px;
  margin-left: clamp(1rem, 2.2vw, 1.75rem);
  background: var(--rule);
}

@keyframes run {
  to { transform: translateX(-50%); }
}

/* shared */

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}

section {
  padding: clamp(4.5rem, 13vh, 8.5rem) 0;
  scroll-margin-top: var(--tick);
}

section + section {
  border-top: 1px dashed var(--rule);
}

.label {
  margin: 0 0 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

/* manifest */

.manifest__line {
  margin: 0;
  font-size: clamp(2.3rem, 8vw, 5.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow: 0 0 1px rgba(231, 226, 220, 0.35);
}

.manifest__line--accent {
  margin-top: 0.6rem;
  font-size: clamp(1.6rem, 4.6vw, 3.4rem);
  color: var(--paper);
  text-shadow: 0 0 1px rgba(166, 32, 28, 0.6);
}

.manifest__note {
  max-width: 20ch;
  margin: 2.5rem 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  color: var(--dim);
}

/* file */

.file h2 {
  margin: 0 0 2.5rem;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.file__rows {
  margin: 0 0 3rem;
}

.file__row {
  display: grid;
  grid-template-columns: minmax(7rem, 14rem) 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px dashed var(--rule);
}

.file__row:first-child {
  border-top: 1px dashed var(--rule);
}

.file dt {
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}

.file dd {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.redact {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: transparent;
  background: var(--paper);
  line-height: 1.2;
  padding: 0 0.15em;
  cursor: help;
  outline: none;
}

.redact::after {
  content: attr(data-reveal);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 0.4em;
  color: var(--ink);
  font-size: 0.82em;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.redact:hover::after,
.redact:focus-visible::after,
.redact.is-open::after {
  opacity: 1;
}

.button {
  appearance: none;
  border: 1px dashed var(--rule);
  border-radius: 0;
  background: var(--ink);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.15rem 1.8rem;
}

.button:disabled {
  color: var(--dim);
  cursor: not-allowed;
}

/* footer */

.footer {
  display: flex;
  justify-content: space-between;
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem var(--pad) calc(2.5rem + env(safe-area-inset-bottom));
  border-top: 1px dashed var(--rule);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--dim);
}

@media (max-width: 560px) {
  :root {
    --tick: 3rem;
  }

  .file__row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::after,
  .ticker__track,
  .stage__frame,
  .stage__move,
  .stage__lights,
  .stage__haze,
  .stage__cue span {
    animation: none;
  }
}
