/* An Experience · homepage
   Palette and type lifted from the 2025 "Six stages and a boozer" flyer. */

@font-face {
  font-family: "Chonkyboi";
  src: url("../fonts/chonkyboi.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Comical Sans";
  src: url("../fonts/comical-sans.woff2") format("woff2");
  font-display: swap;
}
/* Fills glyphs the brand fonts don't have (apostrophes, quotes) */
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand palette */
  --slate: #6e8eaa;
  --mist: #afbcc6;
  --blue: #93aabe;
  --coral: #e15e5c;
  --butter: #e8c563;
  --mustard: #d9a81f;
  --pink: #ef8b8a;

  /* Neutrals and working names */
  --paper: #f3ede4;
  --paper-deep: #e6e0d6;
  --card: #fbf8f3;
  --ink: #26303d;
  --ink-soft: #4a5563;
  --red: var(--coral);
  --red-deep: #b93f3d;
  --blue-deep: #4f6f8c;
  --yellow: var(--butter);

  --display: "Chonkyboi", "Work Sans", system-ui, sans-serif;
  --block: "Chonkyboi", "Work Sans", system-ui, sans-serif;
  --body: "Comical Sans", "Work Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 18px;
  --shadow: 5px 5px 0 var(--ink);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

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

.eyebrow {
  font: 400 0.95rem/1 var(--block);
  letter-spacing: 0.04em;
  color: var(--red-deep);
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  font: 400 1rem/1 var(--block);
  text-decoration: none;
  padding: 0.95em 1.4em;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--red { background: var(--red); color: var(--card); }
.btn--ghost { background: transparent; }
.btn--small { padding: 0.7em 1.1em; font-size: 0.85rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--big { font-size: 1.15rem; padding: 1.1em 1.8em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--ink);
}
.brand { display: block; text-decoration: none; }
.brand img {
  height: 18px; width: auto;
  /* Ink outline plus a small offset shadow, to match the card style */
  filter:
    drop-shadow(1px 0 0 var(--ink)) drop-shadow(-1px 0 0 var(--ink))
    drop-shadow(0 1px 0 var(--ink)) drop-shadow(0 -1px 0 var(--ink))
    drop-shadow(2px 2px 0 var(--ink));
}
.site-header nav ul {
  display: flex; gap: clamp(12px, 2.5vw, 32px);
  list-style: none; margin: 0; padding: 0;
}
.site-header nav a {
  font: 500 0.95rem/1 var(--body);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { border-color: var(--red); }
/* Burger menu: below 1040px the links fold into a drop-down */
.burger { display: none; }
@media (max-width: 1040px) {
  .burger {
    display: grid; align-content: center; justify-items: center; gap: 4px;
    width: 44px; height: 40px; margin-left: auto; padding: 0;
    background: var(--card); color: var(--ink);
    border: 3px solid var(--ink); border-radius: 12px;
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
  }
  .burger span {
    display: block; width: 20px; height: 3px; border-radius: 2px; background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .burger:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
  .site-header > .btn { margin-left: 0; }

  .site-header nav {
    position: absolute; top: calc(100% + 10px); left: var(--gutter); right: var(--gutter);
    background: var(--card);
    border: 3px solid var(--ink); border-radius: var(--radius);
    box-shadow: 5px 5px 0 var(--ink);
    padding: 8px 18px;
    transform-origin: 50% 0;
    visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.98);
    transition: opacity .2s ease, transform .25s cubic-bezier(.3,1.4,.5,1), visibility 0s linear .25s;
  }
  .site-header.is-menu-open nav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .2s ease, transform .3s cubic-bezier(.3,1.4,.5,1), visibility 0s;
  }
  .site-header nav ul { flex-direction: column; gap: 0; }
  .site-header nav li + li { border-top: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
  .site-header nav a {
    display: block; padding: 14px 4px; border: 0;
    font: 400 1.15rem/1 var(--block);
  }
  .site-header nav a:hover { color: var(--red-deep); }
}
/* Phones: no logo in the bar, just the burger and Tickets */
@media (max-width: 700px) {
  .site-header .brand { display: none; }
  .burger { margin-left: 0; }
}

/* Hero
   A sunburst like the one on the 2025 flyer turns slowly behind the
   artwork; stickers and a ticket stub carry the key facts. */
.hero {
  position: relative;
  overflow: hidden;
  /* Fill the screen below the sticky header, leaving the ribbon just peeking in */
  min-height: calc(100svh - 64px - 10px);
  display: grid;
  align-items: center;
  isolation: isolate;
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 88px);
}
.hero__sun {
  position: absolute;
  z-index: -1;
  top: 50%; left: 72%;
  width: 190vmax; aspect-ratio: 1;
  translate: -50% -50%;
  background: repeating-conic-gradient(var(--butter) 0deg 9deg, var(--paper) 9deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 22%, transparent 48%);
          mask-image: radial-gradient(circle, #000 0 22%, transparent 48%);
  animation: sun-spin 140s linear infinite;
}
@keyframes sun-spin { to { rotate: 360deg; } }
@media (max-width: 959px) {
  .hero__sun { left: 50%; top: 70%; }
}

.hero__inner {
  width: 100%;
  max-width: min(1560px, max(var(--max), 82vw)); /* spreads out on big screens */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
}
/* Logo and ticket share one column width so the logo sits centred over the ticket */
.hero__text { min-width: 0; width: 100%; max-width: clamp(36rem, 38vw, 44rem); justify-self: center; }
.hero__title { margin: 0 0 clamp(40px, 6vw, 72px); text-align: center; }
.hero__title img {
  display: inline-block;
  width: 100%; height: auto;
  filter:
    drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink))
    drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink))
    drop-shadow(5px 5px 0 var(--ink));
  transform-origin: 50% 80%;
  animation: logo-in 0.9s cubic-bezier(.2,1.6,.4,1) both;
}
@keyframes logo-in {
  from { transform: rotate(-6deg) scale(0.85); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Ticket stub */
.ticket {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-1.5deg);
}
@media (min-width: 520px) {
  .ticket { grid-template-columns: 1fr auto; }
}
.ticket__facts {
  display: grid; gap: 12px;
  margin: 0;
  padding: 16px 20px;
}
.ticket__facts dt {
  font: 400 0.75rem/1 var(--block);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 4px;
}
.ticket__facts dd { margin: 0; font: 700 1.15rem/1.2 var(--body); }
.ticket__facts small { display: block; font-weight: 500; font-size: 0.9rem; color: var(--ink-soft); }
.ticket__stub {
  display: grid; align-content: center; justify-items: center; gap: 10px;
  padding: 16px 20px;
  border-top: 3px dashed var(--ink);
  background: var(--pink);
  border-radius: 0 0 13px 13px;
}
@media (min-width: 520px) {
  .ticket__stub { border-top: 0; border-left: 3px dashed var(--ink); border-radius: 0 13px 13px 0; }
}
.ticket__link { font: 400 0.9rem/1 var(--block); color: var(--ink); }

/* Artwork and stickers */
.hero__stage { position: relative; padding: 18px; }
/* B-boy illustration, rocking gently on his planted hand and waving.
   Two layers drawn on the same canvas: his raised arm (behind), and everything else. */
.hero__bboy {
  position: relative;
  width: min(100%, 560px, calc(62svh * 1803 / 2221));
  aspect-ratio: 1803 / 2221;
  margin: 0 auto;
  transform-origin: 75% 92%;
  animation: bboy-rock 3.5s ease-in-out infinite;
}
.hero__bboy img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bboy-arm {
  transform-origin: 63.3% 53.9%; /* his shoulder */
  animation: bboy-wave 1.6s ease-in-out infinite;
}
@keyframes bboy-wave {
  0%, 100% { rotate: -4deg; }
  25% { rotate: 8deg; }
  50% { rotate: -2deg; }
  75% { rotate: 8deg; }
}
@media (max-width: 959px) { .hero__bboy { width: min(80%, 320px); } }
.hero__stage .sticker--age { left: auto; bottom: auto; right: 6%; top: 18%; }
@keyframes bboy-rock {
  0%, 100% { rotate: 0deg; }
  50% { rotate: -2.5deg; }
}
.sticker {
  position: absolute;
  display: grid; place-items: center;
  text-align: center;
  font: 400 clamp(0.85rem, 1.6vw, 1.1rem)/1 var(--block);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s ease;
}
.sticker:hover { transform: scale(1.08) rotate(6deg); }
.sticker--date {
  top: -6px; left: -6px;
  width: clamp(84px, 11vw, 120px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--coral); color: var(--card);
  rotate: -12deg;
  font-size: clamp(1rem, 2vw, 1.35rem);
}
.sticker--stages {
  right: -4px; bottom: 22%;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--butter); color: var(--ink);
  rotate: 8deg;
}
.sticker--age {
  left: 10%; bottom: -4px;
  width: clamp(56px, 7vw, 72px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--slate); color: var(--card);
  rotate: -8deg;
}

@media (prefers-reduced-motion: reduce) {
  .hero__sun, .hero__bboy, .hero__bboy-arm, .hero__title img { animation: none; }
}

/* Ribbon */
.ribbon {
  --rib-font: clamp(1.3rem, 2.4vw, 1.75rem);
  --rib-pad: clamp(22px, 2.6vw, 30px);
  /* Half over the bottom of the hero, half over the section below */
  position: relative;
  z-index: 3;
  margin: calc((var(--rib-font) + 2 * var(--rib-pad) + 6px) / -2) -24px 0;
  background: var(--red);
  color: var(--paper);
  border-block: 3px solid var(--ink);
  overflow: hidden;
  transform: rotate(-2.4deg);
}
.ribbon__track {
  display: flex; width: max-content;
  animation: ribbon 60s linear infinite;
}
.ribbon span {
  font: 400 var(--rib-font)/1 var(--block);
  padding: var(--rib-pad) 0;
  white-space: nowrap;
}
.ribbon span::after { content: "✿"; margin: 0 1.6rem; color: var(--yellow); }
@keyframes ribbon { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ribbon__track { animation: none; }
}

/* Photo teaser: two favourites that open the album */
.snaps {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 9vw, 112px);
  text-align: center;
}
.snaps__grid { display: grid; gap: clamp(16px, 3vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 720px) { .snaps__grid { grid-template-columns: 1fr 1fr; } }
.snap {
  display: block;
  border: 3px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; background: var(--card);
  box-shadow: var(--shadow);
  rotate: -1.2deg;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.snap + .snap { rotate: 1.4deg; }
.snap:hover { transform: translate(-3px, -3px) scale(1.01); box-shadow: 10px 10px 0 var(--ink); }
.snap img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.snaps__more { margin-top: clamp(24px, 4vw, 40px); }

/* Ethos: short lines scattered like stickers and speech bubbles */
.ethos {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 9vw, 112px);
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  justify-items: center;
  text-align: center;
}
.ethos__title {
  font: 400 clamp(2.4rem, 8vw, 5.5rem)/0.95 var(--display);
  color: var(--slate);
  text-wrap: balance;
}
.notes {
  list-style: none; margin: 0; padding: 0;
  width: 100%;
  display: grid;
  gap: clamp(22px, 4vw, 40px) clamp(18px, 3vw, 32px);
  grid-template-columns: 1fr;
  align-items: center;
  max-width: 1000px;
}
@media (min-width: 560px) { .notes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .notes { grid-template-columns: repeat(3, 1fr); } }
.note {
  position: relative;
  font: 400 clamp(1.05rem, 2vw, 1.35rem)/1.15 var(--block);
  padding: 22px 22px;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--n);
  color: var(--ink);
  transition: transform 0.2s cubic-bezier(.2,1.6,.4,1);
}
.note:nth-child(3n+1) { rotate: -3deg; }
.note:nth-child(3n+2) { rotate: 2.5deg; }
@media (min-width: 860px) { .note:nth-child(3n+2) { translate: 0 14px; } }
.note:nth-child(3n) { rotate: -1.5deg; }
.note:hover { transform: scale(1.06) rotate(3deg); }
.note--bubble { border-radius: 28px; }
.note--bubble::after {
  content: "";
  position: absolute; left: 34px; bottom: -19px;
  width: 26px; height: 26px;
  background: var(--n);
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  rotate: 45deg; skew: 12deg 12deg;
}
.note--sticker { border-radius: 10px; }
.note--sticker::before {
  content: "";
  position: absolute; top: -12px; left: 50%; translate: -50% 0;
  width: 70px; height: 22px;
  background: color-mix(in srgb, var(--card) 75%, transparent);
  border: 2px solid color-mix(in srgb, var(--ink) 25%, transparent);
  rotate: -4deg;
}
.note--coral { --n: var(--coral); color: var(--card); }
.note--butter { --n: var(--butter); }
.note--slate { --n: var(--slate); color: var(--card); }
.note--pink { --n: var(--pink); }
.note--mustard { --n: var(--mustard); }
.note--blue { --n: var(--blue); }
@media (prefers-reduced-motion: reduce) {
  .note { transition: none; }
}

/* Section heads */
.section-head--center { margin-inline: auto; text-align: center; }
.section-head {
  max-width: 44rem;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.section-head h2 {
  font: 400 clamp(2.2rem, 6vw, 3.8rem)/1 var(--display);
  color: var(--blue-deep);
  margin-bottom: 0.4em;
}

/* Lineup */
.stages-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) var(--gutter);
}
.stages {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
/* 11 cards: 4 across on wide screens, 2 across in between */
@media (min-width: 560px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .stage { padding: 20px 18px 22px; } .stage h3 { font-size: 1.3rem; } }
.stage {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.stage:nth-child(odd) { transform: rotate(-0.6deg); }
.stage:nth-child(even) { transform: rotate(0.6deg); }
.stage:hover { transform: rotate(0) translateY(-3px); }
.stage__num {
  display: inline-block;
  font: 400 0.75rem/1 var(--block);
  background: var(--ink); color: var(--paper);
  padding: 6px 10px; border-radius: 999px;
  margin-bottom: 14px;
}
.stage__where {
  margin-top: 12px;
  font: 400 0.75rem/1.3 var(--block);
  opacity: 0.8;
}
.stage h3 { font: 400 1.45rem/1.1 var(--block); margin-bottom: 10px; }
.stage--blue { background: var(--blue); }
.stage--red { background: var(--red); color: var(--card); }
.stage--yellow { background: var(--yellow); }
.stage--pink { background: var(--pink); }
.stage--slate { background: var(--slate); color: var(--card); }
.stage--mustard { background: var(--mustard); }
.stage--ink { background: var(--ink); color: var(--paper); }
.stage--ink .stage__num { background: var(--yellow); color: var(--ink); }
.stage--ink h3 { color: var(--yellow); }

/* Stage cards open into a panel that covers the whole board */
.stages-board { display: grid; }
.stages-board > * { grid-area: 1 / 1; min-width: 0; }
.stage { position: relative; cursor: pointer; }
.stage__open {
  all: unset;
  cursor: pointer;
}
.stage__open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stage:has(.stage__open:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }
.stage__open:focus-visible { outline: none; }
.stage::before {
  content: "+";
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font: 400 1.2rem/1 var(--block);
  background: var(--card); color: var(--ink);
  border: 2px solid var(--ink);
  transition: transform 0.2s ease;
}
.stage:hover::before { transform: rotate(90deg); }

.stages { transition: opacity 0.3s ease; will-change: opacity; }
.stages-board.is-open .stages {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.stage-panel { will-change: clip-path; cursor: pointer; }
.stage-panel {
  position: relative; z-index: 2;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 32px);
  display: grid; gap: clamp(18px, 3vw, 36px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.stage-panel[hidden] { display: none; }
.stage-panel__ring {
  position: absolute; inset: -3px; z-index: 3; pointer-events: none;
  border: 3px solid var(--ink); border-radius: var(--radius);
}

.stage-panel:focus { outline: none; }
.stage-panel__photo {
  width: 100%; height: 100%; min-height: 280px; object-fit: cover;
  border: 3px solid var(--ink); border-radius: calc(var(--radius) - 6px);
  background: var(--mist);
  /* Fill the space the panel already has; a tall photo shouldn't stretch it */
  contain: size; aspect-ratio: auto;
}
.stage-panel__body { padding-right: 44px; }
.stage-panel h3 { font: 400 clamp(1.9rem, 4vw, 3rem)/1 var(--block); margin-bottom: 14px; }
.stage-panel__lede { font-size: 1.15rem; }
.stage-panel__body > p + p { margin-top: 14px; }
.stage-panel .stage__where { font-size: 0.85rem; }
.stage-panel__close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--card); color: var(--ink);
  font: 400 1.8rem/1 var(--body); cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.stage-panel__close:hover { transform: rotate(90deg); }
.stage-panel__close:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.stage-panel.stage--ink h3 { color: var(--yellow); }
@media (max-width: 720px) {
  .stage-panel { grid-template-columns: 1fr; align-content: start; }
  .stage-panel__photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; contain: none; }
  .stage-panel__body { padding-right: 0; }
  .stages-board { position: relative; }
  .stages .stage { height: var(--stage-h, auto); }
  .stage-panel { position: absolute; left: 0; right: 0; top: var(--panel-top, 0px); }
  .stages-board.is-open .stages { opacity: 1; visibility: visible; pointer-events: auto; }
  /* The open card sits under its panel; hide it so its tilted edge can't peek out */
  .stages-board.is-open .stage:has(.stage__open[aria-expanded="true"]) { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .stage::before, .stage-panel__close, .stages { transition: none; }
}

/* 10 stages and the Boozer: the Boozer runs two cards wide so the last row is full */
@media (min-width: 560px) { .stages > .stage--ink:last-child { grid-column: span 2; } }


/* Soundsystems */
.systems-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 9vw, 112px);
}
.systems-wrap .section-head h2 { font-size: clamp(1.8rem, 4.6vw, 3rem); text-wrap: balance; }
.systems {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.system {
  display: flex; flex-direction: column;
  border: 3px solid var(--ink);
  border-radius: 120px 120px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
.system__photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-bottom: 3px solid var(--ink);
}
.system__body { padding: 18px 20px 24px; border-top: 8px solid var(--sys); }
.system h3 { font: 400 1.45rem/1.1 var(--block); margin-bottom: 8px; color: var(--ink); }
.system p { margin: 0; }
.system__aside { font: 400 0.8rem/1.3 var(--block); color: var(--ink-soft); margin-top: 8px !important; }
.system--slate { --sys: var(--slate); }
.system--coral { --sys: var(--coral); }
.system--mustard { --sys: var(--mustard); }
.system--pink { --sys: var(--pink); }
/* Linked cards: the whole card is clickable, with a little lift on hover */
.system { position: relative; transition: transform .2s ease; }
.system__link { color: inherit; text-decoration: none; }
.system__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.system:has(.system__link):hover { transform: translateY(-4px) rotate(-0.5deg); }
.system__link:focus-visible::after { outline: 3px solid var(--ink); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .system:has(.system__link):hover { transform: none; } }

/* Good to know */
.info {
  background: var(--yellow);
  border-top: 4px solid var(--ink);
  padding: clamp(56px, 9vw, 112px) var(--gutter);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.info::before {
  content: "";
  position: absolute; inset: auto -8% -30% auto;
  width: min(640px, 80vw); aspect-ratio: 0.72;
  background: url("../img/line-art.webp") center / contain no-repeat;
  opacity: 0.18;
  z-index: -1;
}
/* Same content edge as the other sections, whose max-width includes the gutter */
.info__inner { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; }
.facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 18px 20px;
  transition: transform 0.2s cubic-bezier(.2,1.6,.4,1);
}
.fact:nth-child(odd) { rotate: -1deg; }
.fact:nth-child(even) { rotate: 1deg; }
.fact:hover { transform: translateY(-4px); }
.fact h3 { font: 400 1.35rem/1.1 var(--block); color: var(--red-deep); margin-bottom: 6px; }
.fact p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .fact { transition: none; } }

/* Tickets */
.tickets {
  background: var(--slate);
  border-block: 4px solid var(--ink);
  padding: clamp(56px, 9vw, 112px) var(--gutter);
  background-image: radial-gradient(circle at 1px 1px, rgba(38,48,61,.18) 1.5px, transparent 0);
  background-size: 22px 22px;
}
.tickets__card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  transform: rotate(-1deg);
}
.tickets__card .eyebrow { color: var(--red-deep); }
.tickets__card h2 {
  font: 400 clamp(1.7rem, 5vw, 3rem)/1.05 var(--block);
  color: var(--red-deep);
  margin-bottom: 1.25rem;
}
.tickets__price {
  display: inline-flex; flex-direction: column; align-items: center;
  margin-bottom: 1.25rem;
}
.tickets__amount {
  font: 400 clamp(2.8rem, 10vw, 5rem)/0.95 var(--display);
  color: var(--ink);
}
.tickets__what { font-weight: 700; }
.tickets__card > p { max-width: 32rem; margin-inline: auto; }
.tickets__card .btn { margin-top: 1.25rem; }
.tickets__small { font-size: 0.9rem; margin-top: 1rem; color: var(--ink-soft); }

/* Past parties */
section[id] { scroll-margin-top: 72px; }

.past .section-head { max-width: 52rem; }
.past .section-head h2 { font-size: clamp(1.8rem, 4.6vw, 3rem); text-wrap: balance; }
.past {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) var(--gutter);
}
/* Five parties: one row on wide screens; on smaller ones a short last row sits in the middle */
.past__grid {
  --cols: 2;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
}
.past__grid > li { flex: 0 0 calc((100% - (var(--cols) - 1) * 18px) / var(--cols)); }
@media (min-width: 600px) { .past__grid { --cols: 3; } }
@media (min-width: 1000px) { .past__grid { --cols: 5; } }
.past__grid li {
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 4px 4px 0 var(--ink);
}
.past__grid li { display: flex; flex-direction: column; }
.past__text {
  padding: 10px 12px 14px;
  border-top: 3px solid var(--ink);
  display: grid; gap: 6px;
}
.past__text span { font: 400 0.85rem/1.2 var(--block); }
.past__text p { font-size: 0.85rem; line-height: 1.35; margin: 0; }
.past__outro { margin-top: clamp(20px, 3vw, 32px); max-width: 44rem; font-size: 1.1rem; }
.past__more { margin-top: clamp(20px, 3vw, 28px); }

/* Newsletter */
.newsletter {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 10vw, 128px) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.newsletter::before {
  content: "";
  /* Fits inside the band so the footer doesn't cut it off */
  position: absolute; inset: 4% -6% 0 auto;
  width: min(720px, 90vw);
  background: url("../img/line-art.webp") right bottom / contain no-repeat;
  filter: invert(1) brightness(1.6);
  opacity: 0.12;
  z-index: -1;
}
.newsletter__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.newsletter__inner > p a { color: var(--yellow); }
.newsletter .eyebrow { color: var(--yellow); }
.newsletter h2 {
  font: 400 clamp(2.4rem, 7vw, 4.2rem)/1 var(--display);
  color: var(--blue);
  margin-bottom: 0.4em;
}
.signup {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 1.75rem;
  text-align: left;
}
.signup input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  font: 500 1.05rem/1 var(--body);
  padding: 0.95em 1.2em;
  border: 3px solid var(--paper);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}
.signup input[type="email"]::placeholder { color: var(--ink-soft); }
.signup .btn { border-color: var(--paper); box-shadow: 4px 4px 0 var(--yellow); }
.signup .btn:hover { box-shadow: 6px 6px 0 var(--yellow); }
.signup__consent {
  flex-basis: 100%;
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.92rem;
  cursor: pointer;
}
.signup__consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.signup__msg { flex-basis: 100%; min-height: 1.6em; font-weight: 700; margin: 0; }
.signup__msg.is-error { color: var(--pink); }
.signup__msg.is-ok { color: var(--yellow); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 40px var(--gutter);
  text-align: center;
}
/* Straight on from the newsletter's dark band, with no seam */
main:has(> .newsletter:last-child) + .site-footer { padding-top: 0; }
.site-footer__links {
  list-style: none; margin: 0 0 1em; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px;
  font-weight: 700;
}
.site-footer__links a { color: var(--yellow); }
.site-footer__small { font-size: 0.9rem; color: var(--blue); }
.site-footer__credit { margin-top: 0.4em; font-size: 0.8rem; }
.site-footer__credit a { color: inherit; }

/* ---------- The Lineup page ---------- */
.site-header nav a[aria-current="page"] { border-color: var(--red); }

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(24px, 4vw, 40px);
}
.page-hero__title {
  font: 400 clamp(3rem, 10vw, 6.5rem)/0.95 var(--display);
  color: var(--red);
  margin-bottom: 0.25em;
  text-wrap: balance;
}
.page-hero__lede { font-size: 1.15rem; max-width: 40rem; }
.page-hero__lede a { color: var(--red-deep); font-weight: 700; }

.lineup-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 9vw, 112px);
}
.chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.chips[hidden] { display: none; }
.chip {
  font: 400 0.9rem/1 var(--block);
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.chip:hover { background: var(--butter); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--card); }

.artists {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(18px, 3vw, 28px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px) {
  .artists { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
.artist {
  display: flex; flex-direction: column;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.artist[hidden] { display: none; }
.artist__photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-bottom: 3px solid var(--ink);
}
.artist--tba .artist__photo { filter: grayscale(0.2); }
.artist__body { padding: clamp(12px, 2.5vw, 18px) clamp(12px, 2.5vw, 20px) clamp(14px, 3vw, 22px); display: grid; gap: 8px; min-width: 0; }
.artist__stage {
  justify-self: start;
  font: 400 0.75rem/1 var(--block);
  padding: 6px 10px; border-radius: 999px;
  background: var(--ink); color: var(--card);
}
.artist__name { font: 400 clamp(1.05rem, 3.6vw, 1.4rem)/1.1 var(--display); overflow-wrap: anywhere; }
.artist--tba .artist__name { color: var(--ink-soft); }
.artist--coral .artist__body { border-top: 8px solid var(--coral); }
.artist--slate .artist__body { border-top: 8px solid var(--slate); }
.artist--mustard .artist__body { border-top: 8px solid var(--mustard); }
.artist--blue .artist__body { border-top: 8px solid var(--blue); }
.artist--pink .artist__body { border-top: 8px solid var(--pink); }
.artist--butter .artist__body { border-top: 8px solid var(--butter); }
.artists__empty { margin-top: 1rem; font-weight: 700; color: var(--ink-soft); }

.lineup-cta {
  background: var(--butter);
  border-top: 4px solid var(--ink);
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  text-align: center;
  display: grid; justify-items: center; gap: 12px;
}
.lineup-cta h2 { font: 400 clamp(1.8rem, 5vw, 3rem)/1.05 var(--display); text-wrap: balance; }

/* ---------- Photo album page ---------- */
.year-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.year-chips .chip { text-decoration: none; }
.album-year {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) var(--gutter) clamp(40px, 7vw, 80px);
}
.album-year + .album-year { border-top: 3px dashed rgba(38, 48, 61, 0.25); }
.album-year__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: clamp(18px, 3vw, 28px); }
.album-year__title { font: 400 clamp(2.6rem, 8vw, 4.5rem)/1 var(--display); color: var(--blue-deep); }
.album-year__head p { font-weight: 700; color: var(--ink-soft); }
/* Masonry-style columns, so portrait and landscape photos sit together */
.album { list-style: none; margin: 0; padding: 0; columns: 4 220px; column-gap: clamp(12px, 2vw, 20px); }
/* inline-block stops iPhone Safari splitting a card across two columns */
.album li { display: inline-block; width: 100%; vertical-align: top; break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; margin-bottom: clamp(12px, 2vw, 20px); }
.album__photo {
  display: block; width: 100%; padding: 0;
  border: 3px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; background: var(--card);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.album li:nth-child(3n+1) .album__photo { rotate: -0.6deg; }
.album li:nth-child(3n+2) .album__photo { rotate: 0.5deg; }
.album__photo:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.album__photo img { display: block; width: 100%; height: auto; }
@media (max-width: 520px) {
  .album { columns: 2; }
}

.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(20, 26, 34, 0.94);
  color: var(--paper);
  overscroll-behavior: contain;
}
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: transparent; }
.viewer__img {
  max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px);
  width: auto; height: auto;
  border: 3px solid var(--paper); border-radius: var(--radius);
  background: var(--card);
}
.viewer__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font: 400 0.95rem/1 var(--block); }
.viewer__btn {
  position: absolute;
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid var(--paper); background: var(--ink); color: var(--paper);
  font: 700 2rem/1 var(--body);
  display: grid; place-items: center; padding: 0 0 4px;
  cursor: pointer;
}
.viewer__btn:hover { background: var(--red); }
.viewer__close { top: 16px; right: 16px; }
.viewer__prev { left: 16px; top: 50%; translate: 0 -50%; }
.viewer__next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 700px) {
  .viewer__prev, .viewer__next { top: auto; bottom: 8px; translate: none; }
}

/* 404 page */
.lost { min-height: calc(100dvh - 240px); }
.lost .page-hero__title { max-width: 10ch; }
.lost__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.75rem; }

/* Peekers
   Festival stickers that bounce out from behind the screen edge or a card
   as their section scrolls into view, then tuck away again once it's past.
   Each one is a clipping box; the drawing slides inside it.
     peek--left / peek--right: from the screen edge, behind the section's content.
       --at = how far down the section, --size = width.
     peek--up: rises from behind the top edge of its parent (a card or grid).
       Add peek--floor to rise from the parent's bottom edge instead.
       --x = where along the edge (centre), --size = width.
   --tilt rotates the drawing, --delay staggers it. main.js adds .is-out. */
.has-peeks { position: relative; isolation: isolate; }
.peek {
  position: absolute;
  z-index: -1;
  width: min(var(--size, 160px), 30vw);
  pointer-events: none;
  margin: 0; padding: 0; list-style: none;
}
.peek img {
  display: block; width: 100%; height: auto;
  transition: transform 0.35s cubic-bezier(.5, 0, .75, 0);
}
.peek.is-out img {
  transition: transform 0.75s cubic-bezier(.3, 1.7, .5, 1) var(--delay, 0s);
}
/* Side ones hide past the edge of the screen (the page clips anything wider
   than the window), then bounce almost fully into view */
.peek--right { top: var(--at, 10%); right: min(0px, calc(50% - 50vw)); }
.peek--right img { transform: translateX(115%) rotate(var(--tilt, 0deg)); }
.peek--right.is-out img { transform: translateX(6%) rotate(var(--tilt, 0deg)); }
.peek--left { top: var(--at, 10%); left: min(0px, calc(50% - 50vw)); }
.peek--left img { transform: translateX(-115%) rotate(var(--tilt, 0deg)); }
.peek--left.is-out img { transform: translateX(-6%) rotate(var(--tilt, 0deg)); }
@media (max-width: 700px) {
  .peek--right.is-out img { transform: translateX(38%) rotate(var(--tilt, 0deg)); }
  .peek--left.is-out img { transform: translateX(-38%) rotate(var(--tilt, 0deg)); }
}
/* Rising ones are only cut along the edge they rise from */
.peek--up {
  bottom: 100%;
  left: calc(var(--x, 50%) - min(var(--size, 160px), 30vw) / 2);
  clip-path: inset(-200px -200px 0 -200px);
}
.peek--up img { transform: translateY(110%) rotate(var(--tilt, 0deg)); transform-origin: 50% 100%; }
.peek--up.is-out img { transform: translateY(var(--out, 4%)) rotate(var(--tilt, 0deg)); }
/* peek--floor: grows up from the bottom edge of its section instead */
.peek--floor { bottom: 0; }
/* peek--behind: no cut line at all; the card in front hides its base */
.peek--behind { clip-path: none; }
/* Phones: no peeking stickers (the header b-boy stays) */
@media (max-width: 700px) {
  .peek { display: none; }
  /* ...except the characters around the essentials and tickets, which sit
     on top of the cards so they're properly visible */
  .info .peek, .tickets .peek, .systems-wrap .peek { display: block; z-index: 3; }
  /* Keep them off the text: cards are left-aligned, so the bass player
     switches to the right edge beside "Camping", and the sunflower shrinks */
  /* Essentials: the bass player takes the top-right spot, and the biker sits
     at the bottom left in some extra room, overlapping the last card a little */
  /* The biker stays inside this section: hanging over the next one made
     iPhone Safari tuck his wheels behind the tickets section */
  .newsletter::before { display: none; }
  .info { padding-bottom: calc(min(260px, 30vw) * 1.41 + 24px); overflow-x: clip; overflow-y: visible; z-index: 1; }
  .info::before { inset: auto -8% 0 auto; }
  .info .peek--left { --at: 2% !important; left: auto; right: min(0px, calc(50% - 50vw)); }
  .info .peek--left img { transform: translateX(115%) rotate(-12deg); }
  .info .peek--left.is-out img { transform: translateX(24%) rotate(-12deg); }
  .info .peek--right { top: auto; bottom: 8px; right: auto; left: min(0px, calc(50% - 50vw)); }
  .info .peek--right img { transform: translateX(-115%) rotate(8deg); }
  .info .peek--right.is-out img { transform: translateX(-6%) rotate(8deg); }
  .tickets .peek--right { display: none; }
  .tickets .peek--floor { --size: 84px !important; --x: 5% !important; }
  /* Soundsystems: one speaker per card, over the photo rather than the text */
  .systems-wrap > .peek--left { --at: 10% !important; }
  .systems-wrap > .peek--right { --at: 54% !important; }
  .systems-wrap > .peek--left.is-out img { transform: translateX(-24%) rotate(var(--tilt, 0deg)); }
  .systems-wrap > .peek--right.is-out img { transform: translateX(24%) rotate(var(--tilt, 0deg)); }
  .systems .peek--up {
    bottom: auto; top: 77%; left: min(0px, calc(50% - 50vw)); clip-path: none;
  }
  .systems .peek--up img { transform: translateX(-115%) rotate(8deg); }
  .systems .peek--up.is-out img { transform: translateX(-20%) rotate(8deg); }
}
/* Anchors for the ones that rise from behind something */
.systems, .facts, .tickets__card, .newsletter__inner { position: relative; }
.tickets, .newsletter { isolation: isolate; }
@media (prefers-reduced-motion: reduce) {
  .peek img, .peek.is-out img { transition: none; }
}

/* Hero "Get Tickets!": fidgety and impatient, like it's dying to be clicked.
   A constant little tremble, a big excited wiggle every couple of seconds,
   and full-on bouncing when you hover. Uses translate/rotate/scale so the
   usual .btn hover lift still works on top. */
.btn--jitter {
  animation:
    jitter-tremble 0.4s steps(2, jump-none) infinite,
    jitter-burst 3.6s ease-in-out infinite;
}
.btn--jitter:hover, .btn--jitter:focus-visible {
  animation:
    jitter-tremble 0.2s steps(2, jump-none) infinite,
    jitter-hop 0.6s ease-in-out infinite;
}
@keyframes jitter-tremble {
  0% { translate: 0.7px -0.5px; }
  25% { translate: -0.8px 0.5px; }
  50% { translate: 0.5px 0.7px; }
  75% { translate: -0.5px -0.6px; }
  100% { translate: 0.7px -0.5px; }
}
@keyframes jitter-burst {
  0%, 72%, 100% { rotate: 0deg; scale: 1; }
  76% { rotate: -3.5deg; scale: 1.04; }
  80% { rotate: 3deg; scale: 1.04; }
  84% { rotate: -2deg; scale: 1.02; }
  88% { rotate: 0deg; scale: 1; }
}
@keyframes jitter-hop {
  0%, 100% { rotate: -2deg; scale: 1.04; }
  50% { rotate: 2deg; scale: 1.06; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--jitter, .btn--jitter:hover, .btn--jitter:focus-visible { animation: none; }
}

/* Phones: keep the hero logo but tighten it up, and squash the ticket card
   so both fit near the top: When and Where side by side, and the button
   and link on one row. */
@media (max-width: 519px) {
  .hero__title { margin-bottom: 22px; }
  .ticket__facts { grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px; }
  .ticket__facts dd { font-size: 1rem; }
  .ticket__facts small { font-size: 0.78rem; }
  .ticket__stub {
    grid-auto-flow: column; justify-content: space-between; align-items: center;
    padding: 10px 14px;
  }
  .ticket__stub .btn { padding: 0.75em 1.2em; }
}
