/* STATION. — concept site
   Black room, white type, one red signal. */

:root {
  --bg: #000;
  --fg: #e8e8e3;
  --muted: #6e6e6a;
  --rule: #1f1f1f;
  --signal: #e3000f;
  --gutter: clamp(16px, 3vw, 40px);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain, like the posters */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s 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%); }
}

::selection { background: var(--signal); color: #fff; }

a { color: inherit; text-decoration: none; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.6;
}
.muted { color: var(--muted); }

/* ---------- Bar ---------- */

.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px var(--gutter);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: #fff;
}
.bar__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.bar__mark { width: 22px; height: 22px; }
.bar__nav { display: flex; gap: clamp(14px, 3vw, 36px); }
.bar__nav a { opacity: .55; transition: opacity .2s; }
.bar__nav a:hover { opacity: 1; }
.bar__meta { justify-self: end; display: flex; gap: 18px; font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 90px var(--gutter) 60px;
  text-align: center;
}

.hero__mark {
  width: min(46vw, 380px);
  height: min(46vw, 380px);
  overflow: visible;
  cursor: pointer;
}
.hero__mark .half {
  transition: transform 1.2s cubic-bezier(.7, 0, .2, 1);
  animation: split 1.6s cubic-bezier(.7, 0, .2, 1) .3s both;
}
.hero__mark .half--top { --to: translate(0, 0); --from: translate(6px, 3px); }
.hero__mark .half--bot { --to: translate(0, 0); --from: translate(-6px, -3px); }
@keyframes split {
  from { transform: var(--from); }
  to   { transform: var(--to); }
}
/* Hover: the halves close into one record */
.hero__mark:hover .half--top { transform: translate(6px, 3px); }
.hero__mark:hover .half--bot { transform: translate(-6px, -3px); }
.hero__mark:hover .half { animation: none; }

.hero__mark .track {
  transform-origin: 50% 50%;
  transform-box: fill-box;
  animation: rail 1.4s cubic-bezier(.7, 0, .2, 1) both;
}
@keyframes rail {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.wordmark {
  font-weight: 700;
  font-size: clamp(30px, 6.4vw, 84px);
  letter-spacing: .32em;
  margin-right: -.32em;           /* optical centering for tracked caps */
  line-height: 1;
  margin-top: 12px;
}
.wordmark .dot { color: var(--signal); }

.hero__line { color: var(--muted); }

.hero__next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
}

.live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse 1.8s ease-in-out infinite;
  flex: none;
}
@keyframes pulse { 50% { opacity: .2; } }

.cursor {
  display: inline-block;
  width: .6em; height: 1.1em;
  margin-left: 4px;
  background: var(--fg);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sections ---------- */

.section {
  padding: 120px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
}
.section__label {
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 48px;
}
.section__label::before { content: "— "; }

/* ---------- Program (list, Berghain-plain) ---------- */

.program { list-style: none; }

.event {
  display: grid;
  grid-template-columns: 80px minmax(180px, 1.1fr) 2fr 120px;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  transition: background .25s;
}
.event:first-child { border-top: 1px solid var(--rule); }
.event:hover { background: #0a0a0a; }

.event__no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding-top: 10px;
}
.event__date { display: flex; flex-direction: column; gap: 6px; }
.big {
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: .95;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.event__body { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.event__venue { font-size: clamp(18px, 1.8vw, 24px); margin-bottom: 6px; }
.event__status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
}
.event--next .big { color: var(--fg); }
.event--next .event__no { color: var(--signal); }

/* ---------- Archive (grid, HoR-style tiles) ---------- */

.archive {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-flow: dense;
  gap: 2px;
}
.tile { position: relative; overflow: hidden; background: #0b0b0b; }
.tile--tall { aspect-ratio: 3 / 4; }
.tile--wide { grid-column: span 2; aspect-ratio: auto; }
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.15) brightness(.8);
  transition: filter .5s, transform .8s cubic-bezier(.2, 0, .2, 1);
}
.tile:hover img { filter: none; transform: scale(1.03); }
.tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  font-size: 11px;
}

/* ---------- Info ---------- */

.info { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info__lead {
  font-weight: 700;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.info__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-content: start; }
.info dl { display: grid; grid-template-columns: 1fr; gap: 4px; }
.info dt { color: var(--muted); margin-top: 14px; }
.info dt:first-child { margin-top: 0; }
.info dd { text-transform: none; font-size: 13px; }
.info a { border-bottom: 1px solid var(--muted); }
.info a:hover { border-color: var(--signal); }

/* ---------- Footer ---------- */

.foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 80px var(--gutter) 28px;
}
.foot__mark { width: 18px; height: 18px; }
.foot .muted { margin-left: auto; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .hide-sm { display: none; }
  .bar { grid-template-columns: auto 1fr auto; gap: 14px; }
  .bar__brand span { display: none; }
  .bar__nav { justify-content: center; }

  .hero__mark { width: 62vw; height: 62vw; }

  .event { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .event__no { grid-column: 1; padding-top: 0; }
  .event__status { grid-column: 2; grid-row: 1; padding-top: 0; }
  .event__date, .event__body { grid-column: 1 / -1; }

  .archive { grid-template-columns: repeat(2, 1fr); }

  .info, .info__cols { grid-template-columns: 1fr; }
  .section { padding-top: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
