/* Lichternacht — mobile-first; breakpoints 640 / 960 / 1200 */

/* Fonts */
@font-face {
  font-family: Geist;
  src: url('../fonts/GeistVF.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Editorial Old';
  src: url('../fonts/PPEditorialOld-Ultralight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Editorial Old';
  src: url('../fonts/PPEditorialOld-UltralightItalic.woff2') format('woff2');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

/* Tokens */
:root {
  --night: #08081c;
  --night-2: #10112a;
  --night-3: #181a3a;
  --line: #2b2e57;
  --snow: #f6f2ea;
  --mist: #c3c0d6;
  --accent: #f4c55b;
  --accent-hover: #f8d47f;
  --on-accent: #1b1405;
  --neon: #4da3ff;

  --font-body: Geist, system-ui, sans-serif;
  --font-display: 'Editorial Old', Georgia, serif;
  --text-display-xl: clamp(44px, 4.5vw + 26px, 80px);
  --text-display-l: clamp(38px, 2.2vw + 30px, 56px);

  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;

  --gutter: 20px;
  --container: 1200px;
  --section-space: 48px;
  --tabbar-h: 76px;

  --glow: 0 0 22px rgba(77, 163, 255, 0.55), 0 0 2px rgba(255, 255, 255, 0.6);
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Keeps focused elements and anchor targets clear of the fixed tab bar */
  scroll-padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
}

/* Archive: anchor targets and focus clear the sticky year tabs */
html:has(.year-tabs) {
  scroll-padding-top: 76px;
}

/* An open lightbox must not scroll the page behind it */
html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, #121338 0%, var(--night) 70%) 0 0 / 100% 900px no-repeat,
    var(--night);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, dl, dd {
  margin: 0;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 16px;
}

section[tabindex='-1']:focus,
main[tabindex='-1']:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

/* Typography */
.display {
  font-family: var(--font-display);
  font-size: var(--text-display-l);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-shadow: var(--glow);
}

.display em {
  font-style: italic;
}

.display--hero {
  font-size: var(--text-display-xl);
  line-height: 0.98;
  letter-spacing: -0.02em;
  animation: flicker-in 1.8s ease-out both;
}

@keyframes flicker-in {
  0% { opacity: 0.4; text-shadow: none; }
  12%, 20% { opacity: 1; text-shadow: var(--glow); }
  16%, 24% { text-shadow: none; }
  32%, 100% { opacity: 1; text-shadow: var(--glow); }
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

.lead {
  max-width: 36em;
  color: var(--mist);
  font-size: 17px;
  line-height: 1.55;
}

.hint {
  color: var(--mist);
  font-size: 14px;
  line-height: 1.45;
}

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  border-color: rgba(246, 242, 234, 0.35);
  background: rgba(8, 8, 28, 0.4);
  color: var(--snow);
}

.btn--ghost:hover {
  border-color: var(--snow);
}

.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-row > .btn {
  flex: 1 1 0;
  padding-inline: 14px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 17, 42, 0.72);
  color: var(--accent);
  cursor: pointer;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Chips, cards, pills */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 17, 42, 0.78);
  font-size: 14px;
  font-weight: 500;
}

.chip__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--night-2);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
}

/* Header */
.site-header {
  position: relative;
  z-index: 20;
}

.site-header--overlay {
  position: absolute;
  inset: 0 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding-block: 12px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: 6px;
  text-decoration: none;
}

.logo__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 200;
  line-height: 1;
}

.logo__sub {
  color: var(--mist);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav,
.site-header__cta {
  display: none;
}

.site-nav__link {
  padding: 12px 14px;
  color: var(--mist);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav__link:hover,
.site-nav__link[aria-current] {
  color: var(--snow);
}

/* Bottom tab bar (mobile) */
.tabbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 32, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.tabbar__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  color: var(--mist);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.tabbar__link svg {
  width: 22px;
  height: 22px;
}

.tabbar__link[aria-current] {
  color: var(--accent);
  font-weight: 600;
}

/* Sections */
.section {
  position: relative;
  padding-block: var(--section-space);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

[data-reveal] {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - var(--tabbar-h));
  min-height: calc(100svh - var(--tabbar-h));
  padding: 96px max(var(--gutter), env(safe-area-inset-right)) 28px max(var(--gutter), env(safe-area-inset-left));
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 28, 0.7) 0%, rgba(8, 8, 28, 0) 18%, rgba(8, 8, 28, 0.05) 34%, rgba(8, 8, 28, 0.9) 62%, var(--night) 86%);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__img--main {
  object-position: 50% 30%;
}

.hero__img--wide,
.hero__img--people {
  display: none;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__content .chip {
  align-self: flex-start;
}

/* Facts */
.facts {
  display: grid;
  gap: 12px;
}

.fact {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.fact__icon {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.fact__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}

.fact__value {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.fact__meta {
  color: var(--mist);
  font-size: 16px;
}

.fact--address {
  flex-direction: column;
  align-items: stretch;
}

.fact__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.hours {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
}

.hours__row dd {
  font-weight: 600;
}

.hours__row--closed {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 16px;
}

.hours__row--closed dd {
  font-weight: 400;
}

.facts__pills {
  margin-top: 16px;
}

/* Program */
.program {
  display: grid;
  gap: 16px;
}

.program-group {
  padding: 4px 18px;
}

.program-group__title {
  padding: 14px 0 10px;
}

.program-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding-block: 8px;
  border-top: 1px solid var(--line);
}

.program-row time,
.program-row__date {
  width: 80px;
  flex: none;
  color: var(--mist);
  font-size: 15px;
}

.program-row time b {
  color: var(--snow);
  font-weight: 600;
}

.program-row__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.program-row--closed {
  color: var(--mist);
}

.program-row__meta {
  font-size: 15px;
}

/* The opening day is the only one-event group: a feature tile fills its bento row instead of leaving a gap. */
.program-group--feature {
  display: flex;
  flex-direction: column;
  border-color: rgba(244, 197, 91, 0.32);
  background:
    radial-gradient(90% 80% at 0% 100%, rgba(77, 163, 255, 0.16), transparent 70%),
    var(--night-2);
}

.program-group--feature .program-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
}

.program-group--feature .program-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-block: 10px 18px;
  border-top: 0;
}

.program-group--feature time {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: auto;
  color: var(--snow);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 200;
  line-height: 1;
  text-shadow: var(--glow);
}

.program-group--feature time b {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 15px;
  text-shadow: none;
}

.program-group--feature .program-row__main {
  font-size: 22px;
}

/* Two-line row (act + gold note below): keep the date on the act's baseline instead of centring it. */
.program-row--note {
  align-items: baseline;
}

.program-row__note {
  flex-basis: 100%;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.program-notes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: 16px;
  line-height: 1.45;
}

.note svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--accent);
}

.note--neon {
  border: 1px dashed rgba(77, 163, 255, 0.5);
  background: rgba(77, 163, 255, 0.06);
}

.note--neon svg {
  color: var(--neon);
}

.program-notes .btn {
  align-self: stretch;
}

.bands {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.bands__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.band {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--night-2);
  cursor: zoom-in;
  transition: border-color 0.2s ease;
}

.band:hover {
  border-color: var(--accent);
}

.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Near-square photo in a 3:2 tile: keep the heads, crop from the bottom (the lightbox shows it whole). */
.band--top img {
  object-position: 50% 0;
}

.partners {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.partners__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The logos come with light backgrounds, so they sit on white tiles (as on the poster) instead of on the night colour. */
.partners__list img {
  display: block;
  width: auto;
  height: 80px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: #fff;
}

/* Story */
.story {
  display: grid;
  gap: 20px;
}

.story__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.story__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--night-2);
}

.stat__value {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 200;
  line-height: 1;
}

.stat__label {
  color: var(--mist);
  font-size: 15px;
  line-height: 1.35;
  hyphens: auto;
}

/* Preview & archive teaser */
.media-split {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
}

.media-split__block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.spline-scene {
  display: none;
}

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--night-2);
}

.embed > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 30px rgba(244, 197, 91, 0.35);
  color: var(--on-accent);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}

.embed__play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.embed__play svg {
  width: 26px;
  height: 26px;
}

.embed--map {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  padding: 24px;
  aspect-ratio: auto;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 40%, var(--night-3), var(--night-2));
  text-align: center;
}

.embed--map > svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.year-cards {
  display: flex;
  gap: 12px;
  /* Extra block padding keeps the focus ring visible inside the scroller */
  margin: -6px calc(-1 * var(--gutter)) -4px;
  padding: 6px var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.year-cards::-webkit-scrollbar {
  display: none;
}

.year-card {
  position: relative;
  flex: none;
  width: 150px;
  height: 200px;
  overflow: hidden;
  border-radius: 16px;
  color: var(--snow);
  text-decoration: none;
  scroll-snap-align: start;
}

.year-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.year-card:hover img {
  transform: scale(1.04);
}

.year-card span {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 14px 12px;
  background: linear-gradient(180deg, rgba(8, 8, 28, 0), rgba(8, 8, 28, 0.9));
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 200;
  line-height: 1;
}

/* Route */
.route {
  display: grid;
  gap: 16px;
}

.route__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.route address {
  font-size: 18px;
  font-style: normal;
  line-height: 1.5;
}

.route address span {
  color: var(--mist);
}

/* Footer */
.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 200;
  line-height: 1;
}

.site-footer p {
  color: var(--mist);
  font-size: 16px;
}

.site-footer p a {
  color: var(--snow);
  text-underline-offset: 3px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

/* Plain text links, but still a 44 px tall hit area for touch. */
.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mist);
  font-size: 16px;
  text-decoration: none;
  text-underline-offset: 3px;
}

.site-footer__legal a:hover,
.site-footer__legal a[aria-current='page'] {
  color: var(--snow);
}

.site-footer__legal a:hover {
  text-decoration: underline;
}

.site-footer__credit {
  font-size: 14px !important;
}

/* Snowfall */
.snowfall {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}

.snowfall__flake {
  position: absolute;
  top: -5%;
  animation: snow-sway 3s ease-in-out infinite alternate;
}

.snowfall__flake span {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-shadow: 0 0 6px rgba(77, 163, 255, 0.6);
  animation: snow-fall 12s linear infinite;
}

.snowfall__flake:nth-child(1) { left: 6%; animation-delay: 0s; }
.snowfall__flake:nth-child(1) span { animation-delay: 0s; }
.snowfall__flake:nth-child(2) { left: 19%; animation-delay: 1s; }
.snowfall__flake:nth-child(2) span { animation-delay: 6s; font-size: 11px; }
.snowfall__flake:nth-child(3) { left: 33%; animation-delay: 0.5s; }
.snowfall__flake:nth-child(3) span { animation-delay: 3s; }
.snowfall__flake:nth-child(4) { left: 47%; animation-delay: 2s; }
.snowfall__flake:nth-child(4) span { animation-delay: 9s; font-size: 12px; }
.snowfall__flake:nth-child(5) { left: 60%; animation-delay: 1.5s; }
.snowfall__flake:nth-child(5) span { animation-delay: 1.5s; }
.snowfall__flake:nth-child(6) { left: 72%; animation-delay: 0s; }
.snowfall__flake:nth-child(6) span { animation-delay: 7.5s; font-size: 11px; }
.snowfall__flake:nth-child(7) { left: 84%; animation-delay: 2.5s; }
.snowfall__flake:nth-child(7) span { animation-delay: 4.5s; }
.snowfall__flake:nth-child(8) { left: 94%; animation-delay: 1s; }
.snowfall__flake:nth-child(8) span { animation-delay: 10.5s; font-size: 12px; }

@keyframes snow-fall {
  from { transform: translateY(0); }
  to { transform: translateY(110vh); }
}

@keyframes snow-sway {
  from { transform: translateX(0); }
  to { transform: translateX(60px); }
}

/* Archive */
.archive-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 16px 8px;
}

.year-tabs {
  position: sticky;
  top: 8px;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-block: 16px 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(16, 17, 42, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.year-tab {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--mist);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.year-tab[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.archive-year + .archive-year {
  margin-top: 48px;
}

.archive-year__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 16px;
}

.archive-year__head h2 {
  font-size: 40px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--night-2);
  cursor: zoom-in;
}

.archive-item img,
.archive-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

button.archive-item:hover img {
  transform: scale(1.03);
}

.archive-item--video {
  cursor: default;
}

.archive-item__toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: var(--snow);
  background: rgba(8, 8, 28, 0.75);
}

.archive-item__toggle svg {
  width: 18px;
  height: 18px;
}

.archive-item__toggle[aria-pressed='true'] .icon-pause,
.archive-item__toggle[aria-pressed='false'] .icon-play {
  display: none;
}

.archive-item__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 8, 28, 0.75);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(4, 4, 16, 0.97);
  color: var(--snow);
}

.lightbox::backdrop {
  background: rgba(4, 4, 16, 0.9);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.lightbox__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 12px;
}

.lightbox__figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: var(--radius-sm);
  object-fit: contain;
  touch-action: pan-y;
  user-select: none;
}

.lightbox__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
}

.lightbox__nav .icon-btn {
  width: 52px;
  height: 52px;
}

/* Legal & utility pages */
.legal {
  padding-block: 24px 64px;
}

.richtext {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 70ch;
}

.richtext h1 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: var(--text-display-l);
  font-weight: 200;
  line-height: 1.05;
  text-shadow: var(--glow);
}

.richtext h2 {
  margin-top: 24px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.richtext h3 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.richtext h4 {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
}

.richtext p,
.richtext li {
  color: var(--mist);
  line-height: 1.65;
}

.richtext ul {
  margin: 0;
  padding-left: 20px;
}

.richtext li + li {
  margin-top: 6px;
}

.richtext a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  min-height: 60vh;
  padding-block: 64px;
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }

  .facts {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }

  .archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  /* Bento pairs are matched by row count (2 + 2, 3 + 3) so tiles in a row end flush. */
  .program {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bands__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .program-group--feature,
  .program-notes {
    grid-column: 1 / -1;
  }

  .program-notes {
    flex-direction: row;
  }

  .program-notes .note {
    flex: 1;
  }

  .year-tabs {
    max-width: 480px;
  }

  .btn-row > .btn {
    flex: 0 0 auto;
    padding-inline: 24px;
  }
}

@media (min-width: 960px) {
  :root {
    --section-space: 80px;
  }

  html {
    scroll-padding-bottom: 0;
  }

  body {
    padding-bottom: 0;
    font-size: 18px;
  }

  .tabbar {
    display: none;
  }

  .site-header--overlay {
    position: relative;
  }

  .site-header__inner {
    min-height: 84px;
  }

  .logo__title {
    font-size: 26px;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-left: auto;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .site-header__route {
    display: none;
  }

  .lead {
    font-size: 19px;
  }

  .section__head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
  }

  .hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 48px;
    max-width: calc(var(--container) + 2 * var(--gutter));
    min-height: 0;
    margin-inline: auto;
    padding: 48px var(--gutter) 72px;
    overflow: visible;
  }

  .hero__media {
    position: static;
    z-index: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, 220px);
    gap: 14px;
    order: 2;
  }

  .hero__media::after {
    display: none;
  }

  .hero__img {
    border-radius: var(--radius-lg);
  }

  .hero__img--wide {
    display: block;
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 60px rgba(77, 163, 255, 0.18);
  }

  .hero__img--main {
    grid-column: 3;
    grid-row: 1;
  }

  .hero__img--people {
    display: block;
    grid-column: 3;
    grid-row: 2;
  }

  .hero__content {
    gap: 20px;
  }

  .program {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .bands__list {
    gap: 16px;
  }

  .program-group {
    grid-column: span 2;
    padding-inline: 22px;
  }

  .program-group--wide {
    grid-column: span 3;
  }

  .story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 48px;
  }

  .story__img {
    height: 420px;
    border-radius: 24px;
  }

  .media-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .spline-scene {
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    display: block;
    height: 110vh;
  }

  .year-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .year-card {
    width: auto;
    height: 144px;
  }

  .route {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: stretch;
    gap: 24px;
  }

  .embed--map {
    min-height: 320px;
  }

  .site-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .archive-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .display--hero {
    animation: none;
  }

  .snowfall {
    display: none;
  }

  .reveal-ready [data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
