/* Puntižela — layout: conference promo; texture: the 2025 poster (photocopied B&W, torn paper, tape labels);
   accent: the featured edition's poster colour (set from data.json) */

:root {
  --bg: #0a0a0a;
  --surface: #171717;
  --surface-2: #1f1f1f;
  --line: #2a2a2a;
  --paper: #ecebe4;
  --text: #ecebe4;
  --muted: #9b988f;
  --accent: #45a3c1;
  --accent-ink: #0a0a0a;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --type: "Special Elite", "Courier New", monospace;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 2.2vw, 32px);
  --radius: clamp(16px, 1.8vw, 26px);
  --radius-sm: 14px;
  --max: 1520px;
  --hero-h: 100svh;   /* main.js sets the real screen height on <html> (pinHero) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* photocopy grain over the whole page */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: 100vh; height: 100lvh; z-index: 60; pointer-events: none;
  background-image: var(--grain); opacity: .07; will-change: transform;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; }

/* ---------- type ---------- */
/* Safari runs SVG filters on the CPU on every repaint; on their own layers the rough type is filtered once and only moved */
.display, .card__name, .year__num, .story__title, .reader h2 { will-change: transform; }
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: .004em;
  margin: 0;
  color: var(--paper);
  filter: url(#rough);
  text-wrap: balance;
}
.display--md { font-size: clamp(40px, 5vw, 80px); }
.display--lg { font-size: clamp(52px, 8vw, 128px); }
.display--xl { font-size: clamp(60px, 10.5vw, 172px); }

/* tape: a strip of coloured tape with ragged ends, typewriter lettering */
.label, .tape {
  display: inline-block;
  margin: 0;
  padding: 7px 18px 6px;
  background: var(--accent); color: var(--accent-ink);
  font: 400 15px/1.1 var(--type);
  letter-spacing: .04em;
  text-transform: uppercase;
  -webkit-mask:
    url(../img/ui/tape-left.svg) left / 10px 100% no-repeat,
    linear-gradient(#000 0 0) center / calc(100% - 18px) 100% no-repeat,
    url(../img/ui/tape-right.svg) right / 10px 100% no-repeat;
          mask:
    url(../img/ui/tape-left.svg) left / 10px 100% no-repeat,
    linear-gradient(#000 0 0) center / calc(100% - 18px) 100% no-repeat,
    url(../img/ui/tape-right.svg) right / 10px 100% no-repeat;
}

/* the brand wordmark on a torn strip of tape */
.tape--brand {
  padding: clamp(10px, 1.4vw, 18px) clamp(16px, 2vw, 30px);
  -webkit-mask:
    url(../img/ui/torn-top-a.svg) top left / 192px 12px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 22px) no-repeat,
    url(../img/ui/torn-bottom-a.svg) bottom left / 192px 12px repeat-x;
          mask:
    url(../img/ui/torn-top-a.svg) top left / 192px 12px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 22px) no-repeat,
    url(../img/ui/torn-bottom-a.svg) bottom left / 192px 12px repeat-x;
}
.tape--brand img { height: clamp(46px, 6.4vw, 108px); width: auto; }

/* ---------- pills, round buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 8px 8px 8px 26px;
  border: 1px solid #5a5a5a;
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  font: 400 15px/1 var(--type);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .2s, background .2s;
}
.pill:hover { border-color: var(--accent); }
.pill__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font: 400 20px/1 var(--sans); letter-spacing: 0;
  transition: transform .25s;
}
.pill:hover .pill__icon { transform: translateX(3px); }

.round {
  display: inline-grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid #4a4a4a; background: var(--bg);
  font-size: 20px; line-height: 1; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.round:hover { border-color: var(--accent); }
.round--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.round--accent:hover { border-color: var(--accent); }
.round--accent:focus-visible { outline-color: var(--paper); }
/* overlays focus their scrolling panel on open, not the close button */
.overlay__panel:focus, .lightbox__figure:focus { outline: none; }
.round:disabled { opacity: .35; cursor: default; }

/* ---------- photos ---------- */
/* .xerox: high-contrast photocopy B&W with heavy grain */
.xerox { position: relative; overflow: hidden; margin: 0; background: var(--surface); }
.xerox img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.45) brightness(1.02);
}
.xerox::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: var(--grain); opacity: .42; mix-blend-mode: overlay;
}
/* .duo: on hover the photo turns into an accent duotone */
.duo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--accent); mix-blend-mode: multiply;
  opacity: 0; transition: opacity .35s ease;
}
.duo-host:focus-visible .duo::before, .duo-host.is-lit .duo::before, .duo.is-lit::before { opacity: 1; }
/* touch screens keep :hover stuck on the last tapped element; there the scroll position lights things up (.is-lit) */
@media (hover: hover) {
  .duo-host:hover .duo::before, .duo:hover::before { opacity: 1; }
}

/* ---------- layout ---------- */
main, .footer { max-width: var(--max); margin: 0 auto; }
.section { padding: clamp(80px, 11vw, 168px) var(--gutter) 0; }
.section__head { display: grid; gap: clamp(18px, 2.2vw, 30px); margin-bottom: clamp(36px, 4.5vw, 72px); justify-items: start; }
.section__head--split { grid-template-columns: 1fr auto; align-items: end; }
.section__head--split > div { display: grid; gap: clamp(18px, 2.2vw, 30px); justify-items: start; }
.section__head--center { justify-items: center; text-align: center; }
.section__note { margin: 0; max-width: 38ch; color: #c9c6be; font-size: 17px; line-height: 1.55; }
@media (max-width: 899px) {
  .section__head--split:has(> .section__note) { grid-template-columns: 1fr; }
}
.center { display: flex; justify-content: center; margin-top: 40px; }
.center:has(> [hidden]) { display: none; }


/* ---------- hero: the crowd as a full-bleed torn photocopy, the two title lines as equal pasted slabs ---------- */
/* layout after inspo/hero.png: black stage, one performer as the object, title split across two corners */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-rows: auto 1fr auto auto;
  align-items: end; gap: 28px 40px;
  min-height: 100vh; min-height: var(--hero-h);
  padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(70px, 8vw, 110px);
}
.hero__bg {
  position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0;
  background: #000;   /* true black, so the photo's crushed shadows and its faded edges meet it without a seam */
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 38px) no-repeat,
    url(../img/ui/torn-bottom-a.svg) bottom left / 640px 40px repeat-x;
          mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 38px) no-repeat,
    url(../img/ui/torn-bottom-a.svg) bottom left / 640px 40px repeat-x;
}
/* the photo sits right of centre and melts into the black at its edges */
.hero__bg img {
  position: absolute; top: 0; right: 0; width: min(100%, 76vw); height: 100%;
  object-position: 30% 25%;
  filter: grayscale(1) contrast(1.5) brightness(.92);
  -webkit-mask: linear-gradient(90deg, transparent, #000 30%, #000 80%, transparent), linear-gradient(#000 70%, transparent);
  -webkit-mask-composite: source-in;
          mask: linear-gradient(90deg, transparent, #000 30%, #000 80%, transparent), linear-gradient(#000 70%, transparent);
          mask-composite: intersect;
}
/* on phones the photo sits under the top title, so it melts into the black at its top edge too */
@media (max-width: 699px) {
  .hero__bg img {
    top: 24%; width: 100%; height: 76%; object-position: 32% 15%;
    -webkit-mask: linear-gradient(90deg, transparent, #000 30%, #000 80%, transparent), linear-gradient(transparent, #000 22%, #000 70%, transparent);
    -webkit-mask-composite: source-in;
            mask: linear-gradient(90deg, transparent, #000 30%, #000 80%, transparent), linear-gradient(transparent, #000 22%, #000 70%, transparent);
            mask-composite: intersect;
  }
}

.hero__title { display: contents; }
.hero__top, .hero__sub {
  font-size: clamp(60px, 9.4vw, 150px); line-height: .86;
  animation: settle .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero__top { grid-area: 1 / 1 / 2 / -1; align-self: start; max-width: 3.4em; }
.hero__sub { grid-area: 3 / 2 / 5 / 3; justify-self: end; text-align: right; animation-delay: .15s; }
/* the page's one load moment: the two halves of the title settle in */
@keyframes settle { from { opacity: 0; transform: translateY(10px); } }
.hero__intro { grid-area: 3 / 1; margin: 0; font-size: 17px; line-height: 1.5; max-width: 34ch; text-shadow: 0 1px 12px #000; }
.hero__cta { grid-area: 4 / 1; justify-self: start; }
@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto auto; }
  .hero__sub { grid-area: 3 / 1; }
  .hero__intro { grid-area: 4 / 1; }
  .hero__cta { grid-area: 5 / 1; }
}

/* ---------- strip (marquee on torn tape) ---------- */
/* slanted, like tape slapped across the torn bottom edge of the hero */
.strip-wrap { position: relative; z-index: 1; overflow-x: clip; width: 100vw; margin: calc(-48px - 5vw) 0 0 calc(50% - 50vw); padding: calc(36px + 5vw) 0; }
.strip {
  margin-inline: -80px; rotate: -6deg;
  overflow: hidden; background: var(--accent); color: var(--accent-ink);
  -webkit-mask:
    url(../img/ui/torn-top-a.svg) top left / 320px 14px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 26px) no-repeat,
    url(../img/ui/torn-bottom-a.svg) bottom left / 320px 14px repeat-x;
          mask:
    url(../img/ui/torn-top-a.svg) top left / 320px 14px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 26px) no-repeat,
    url(../img/ui/torn-bottom-a.svg) bottom left / 320px 14px repeat-x;
}
/* main.js fills the track with just enough copies and sets the duration, so it moves at the same speed on every screen */
.strip__track { display: flex; width: max-content; animation: marquee 120s linear infinite; will-change: transform; }
.strip__item {
  display: flex; align-items: center; gap: 28px; padding: 24px 14px;
  font: 400 clamp(16px, 1.6vw, 22px)/1 var(--type); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.strip__item::after { content: "✶"; font-size: 1.1em; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- map ---------- */
.map {
  position: relative;
  height: clamp(380px, 46vw, 620px);
  border-radius: var(--radius); overflow: hidden;
  background: #121212; isolation: isolate;
}
.map .leaflet-tile-pane { filter: invert(1) grayscale(1) contrast(1.35) brightness(.78); }
.map::after {
  content: ""; position: absolute; inset: 0; z-index: 450; pointer-events: none;
  background-image: var(--grain); opacity: .3; mix-blend-mode: overlay;
}
.leaflet-container { font-family: var(--sans); background: #121212; }
.leaflet-control-attribution { background: rgba(10,10,10,.75) !important; color: #8d8a83 !important; font-size: 11px; }
.leaflet-control-attribution a { color: #bdbab2 !important; }
.leaflet-bar a { background: var(--bg) !important; color: var(--text) !important; border-color: #333 !important; }
.leaflet-bar a:hover { background: var(--accent) !important; color: var(--accent-ink) !important; }
.leaflet-bar { border: 1px solid #333 !important; }
.pin { cursor: pointer; color: var(--accent); filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.pin svg { display: block; width: 100%; height: 100%; fill: currentColor; stroke: var(--bg); stroke-width: 2.2; stroke-linejoin: round; transition: transform .2s; transform-origin: 50% 100%; }
.pin:hover, .pin:focus-visible { color: var(--paper); }
.pin:hover svg { transform: scale(1.08); }

/* ---------- line-up ---------- */
.cards, .visuals {
  display: grid; grid-auto-flow: column;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scroll-padding-inline: var(--gutter);
  margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 14px;
  scrollbar-width: thin; scrollbar-color: #444 transparent;
}
.cards { grid-auto-columns: minmax(250px, 1fr); }
@media (min-width: 900px) { .cards { grid-auto-columns: calc((100% - 48px) / 3.4); } }

/* card: shared by artists and posters. B&W by default, accent fill on hover */
.card {
  position: relative; display: flex; flex-direction: column;
  scroll-snap-align: start;
  border: 0; padding: 0; text-align: left;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2);
  min-height: clamp(380px, 38vw, 520px);
  transition: background .35s ease;
}
.card:focus-visible, .card.is-lit { background: var(--accent); }
.card__media { position: absolute; inset: 0 0 64px; border-radius: var(--radius); }
.card__shade, .card__shade--accent {
  position: absolute; inset: 0 0 64px; z-index: 3; pointer-events: none; border-radius: var(--radius);
  transition: opacity .35s ease;
}
.card__shade { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%); }
.card__shade--accent { background: linear-gradient(180deg, transparent 52%, var(--accent) 86%); opacity: 0; }
.card:focus-visible .card__shade, .card.is-lit .card__shade { opacity: 0; }
.card:focus-visible .card__shade--accent, .card.is-lit .card__shade--accent { opacity: 1; }
.card__name {
  position: relative; z-index: 4;
  margin-top: auto; padding: 0 24px 22px;
  font: 400 clamp(38px, 3.8vw, 58px)/.92 var(--display); text-transform: uppercase;
  color: var(--paper); filter: url(#rough);
  transition: color .35s ease;
}
.card:focus-visible .card__name, .card.is-lit .card__name { color: var(--accent-ink); }
.card__day { position: absolute; top: 18px; left: 16px; z-index: 4; }
.card__day .tape { font-size: 13px; }
.card:focus-visible .card__day .tape, .card.is-lit .card__day .tape { background: var(--accent-ink); color: var(--accent); }
.card__bar {
  position: relative; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 24px;
  font: 400 14px/1 var(--type); letter-spacing: .06em; text-transform: uppercase;
  transition: color .35s ease;
}
.card:focus-visible .card__bar, .card.is-lit .card__bar { color: var(--accent-ink); }
.card__bar span:last-child { font: 400 24px/1 var(--sans); }
/* the same look on mouse hover; touch screens use .is-lit instead (see .duo) */
@media (hover: hover) {
  .card:hover { background: var(--accent); }
  .card:hover .card__shade { opacity: 0; }
  .card:hover .card__shade--accent { opacity: 1; }
  .card:hover .card__name, .card:hover .card__bar { color: var(--accent-ink); }
  .card:hover .card__day .tape { background: var(--accent-ink); color: var(--accent); }
  .card:hover .card__media, .card:hover .card__shade--accent { border-radius: var(--radius) var(--radius) 0 0; }
}


/* ---------- about: the plain-text answer to what, where, when ---------- */
.about { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.about__text { display: grid; gap: 1em; max-width: 60ch; }
.about__text p { margin: 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: #d3d0c8; }
.about__text p:first-child { color: var(--paper); }
.facts { margin: 0; display: none; }
.fact { display: grid; gap: 10px; justify-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.fact:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .fact { grid-template-columns: 150px 1fr; align-items: baseline; gap: 20px; } }
.fact dt { font-size: 13px; }
.fact dd { margin: 0; font: 400 18px/1.4 var(--type); color: var(--paper); }

/* ---------- archive (year rows) ---------- */
.years { list-style: none; margin: 0; padding: 0; }
/* each row carries its own top line and a solid background: while a year opens or shuts the rows below
   slide over its panel (see slide() in main.js), so they have to hide it and bring their line along */
.year { border-top: 1px solid var(--line); background: var(--bg); }
.year:last-child { border-bottom: 1px solid var(--line); }
#arhiva ~ .section, .footer { background: var(--bg); }
.year__btn {
  display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 20px;
  width: 100%; padding: 20px 0; border: 0; background: none; text-align: left; color: inherit;
}
@media (min-width: 900px) { .year__btn { grid-template-columns: 220px 1fr 180px 56px; gap: 32px; } }
.year__num { font: 400 clamp(44px, 5vw, 76px)/.9 var(--display); color: var(--paper); filter: url(#rough); transition: color .2s; }
/* --accent is set per row from that year's poster */
.year__btn.is-lit .year__num, .year__btn[aria-expanded="true"] .year__num { color: var(--accent); }
@media (hover: hover) {
  .year__btn:hover .year__num { color: var(--accent); }
  .year__btn:hover .year__toggle { border-color: var(--accent); }
}
.year__title { display: block; font: 400 clamp(16px, 1.4vw, 20px)/1.25 var(--type); text-transform: uppercase; letter-spacing: .03em; }
.year__heads { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.year__count { display: none; color: var(--muted); font: 400 14px/1 var(--type); letter-spacing: .05em; text-transform: uppercase; }
@media (min-width: 900px) { .year__count { display: block; } }
.year__toggle { width: 48px; height: 48px; font-size: 22px; pointer-events: none; transition: transform .3s, background .2s, border-color .2s; }
.year__toggle--plus::before, .year__toggle--plus::after {
  content: ""; grid-area: 1 / 1; width: 16px; height: 2px; border-radius: 1px; background: currentColor;
}
.year__toggle--plus::after { rotate: 90deg; }
.year__btn[aria-expanded="true"] .year__toggle { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.year__panel { padding: 0 0 36px; }
@media (min-width: 900px) { .year__panel { padding-left: 252px; padding-right: 88px; } }
.year__panel[hidden] { display: none; }
.year__text { margin: 0 0 18px; max-width: 62ch; color: #d3d0c8; }
.year__lineup { margin: 0; max-width: 70ch; font-size: 18px; line-height: 1.7; }
.year__lineup b { color: var(--accent); font-weight: 600; }
.year__quote { margin: 22px 0 0; padding-left: 20px; border-left: 3px solid var(--accent); max-width: 60ch; }
.year__quote p { margin: 0 0 8px; font: 400 19px/1.5 var(--type); }
.year__quote cite { font-style: normal; color: var(--muted); font-size: 14px; }
.year__imgs { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.year__img { width: min(260px, 46%); aspect-ratio: 4 / 3; border-radius: var(--radius-sm); border: 0; padding: 0; cursor: zoom-in; }
.year--gap .year__btn { cursor: default; }
.year--gap .year__num { color: #4b4a45; font-size: clamp(30px, 3vw, 44px); }
.year--gap .year__title { color: var(--muted); text-transform: none; letter-spacing: 0; }
.year--now .year__num { color: var(--accent); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; grid-auto-flow: dense; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.shot { border: 0; padding: 0; aspect-ratio: 1; border-radius: var(--radius-sm); cursor: zoom-in; }
.shot--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
/* next to square tiles the row sets the height; alone in a row (2 columns) it keeps 2:1 */
@media (min-width: 700px) { .shot--wide { aspect-ratio: auto; } }
.shot img { position: absolute; inset: 0; }   /* the photo fills the tile but never sets the row height */
.shot--tall { grid-row: span 2; aspect-ratio: auto; }
.shot figcaption {
  position: absolute; left: 10px; bottom: 12px; z-index: 3;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.shot:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: hover) { .shot:hover figcaption { opacity: 1; transform: none; } }
.shot figcaption.tape { font-size: 13px; }
/* new batches: a plain dark placeholder, then each photo fades in once it has loaded */
.shot.is-new img { opacity: 0; }
.shot { --d: 0ms; }   /* render.js sets a stagger on each photo added to the full gallery */
.shot.is-in img { animation: fade-in .5s ease-out both; animation-delay: var(--d); }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- posters ---------- */
.visuals { grid-auto-columns: minmax(230px, 1fr); }
@media (min-width: 900px) { .visuals { grid-auto-columns: calc((100% - 64px) / 4.3); } }
.carousel-nav { display: flex; gap: 10px; justify-self: end; align-self: end; }
/* poster cards are artist cards (see .card); each one carries its own year colour as --accent */
.card--poster { cursor: zoom-in; }
.card--poster img { object-position: 50% 0; }

/* ---------- stories ---------- */
.stories { display: grid; gap: clamp(56px, 7vw, 110px); }
.story { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) {
  .story { grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
  .story:nth-child(even) .story__media { order: 2; }
}
.story__media { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 0; padding: 0; cursor: pointer; }
.story__title { margin: 0 0 12px; font: 400 clamp(36px, 3.8vw, 58px)/.95 var(--display); text-transform: uppercase; filter: url(#rough); }
.story__author { margin: 0 0 20px; color: var(--muted); font: 400 15px/1.3 var(--type); }
.story__excerpt { margin: 0 0 28px; max-width: 48ch; color: #d3d0c8; }

/* ---------- partners: just the logos ---------- */
.partners {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1040px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; align-items: center;
}
@media (min-width: 700px) { .partners { grid-template-columns: repeat(4, 1fr); gap: 48px 40px; } }
.partner { display: grid; place-items: center; height: 80px; }
/* on phones the logos are small and the row keeps well clear of the screen edges */
@media (max-width: 699px) {
  .partners { padding-inline: 12%; gap: 24px 36px; }
  .partners .partner { height: 56px; }
  .partners .partner img { max-height: 40px; }
}
.partner img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; opacity: .85; }

/* ---------- footer ---------- */
.footer { padding: clamp(72px, 8vw, 120px) var(--gutter) 24px; overflow-x: clip; }
.footer__tape {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px;
  margin-top: clamp(56px, 7vw, 100px);
}
.tape--brand-lg img { height: clamp(56px, 8vw, 128px); }
.footer__slogan { font: 400 clamp(18px, 2vw, 28px)/1.2 var(--type); text-transform: uppercase; letter-spacing: .04em; }
.footer__legal { margin: 40px 0 0; color: #6d6b64; font-size: 13px; text-align: center; }
.footer__links { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: 13px; }
.footer__links a { color: #9b988f; text-underline-offset: 3px; }
.footer__links a:hover { color: var(--accent); }
.footer__credits { margin: 18px auto 0; max-width: 80ch; color: var(--accent-ink); font-size: 12px; line-height: 1.5; text-align: center; }

/* ---------- lightbox ---------- */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(5,5,5,.94); }
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); }
.lightbox__count { margin: 0; font: 400 14px/1 var(--type); letter-spacing: .08em; color: var(--muted); }
.lightbox__figure { margin: 0; display: grid; grid-template-rows: 1fr auto; place-items: center; min-height: 0; padding: 0 var(--gutter) 20px; }
.lightbox--mono .lightbox__figure img { filter: grayscale(1) contrast(1.45) brightness(1.02); }
.lightbox__figure img { max-width: min(100%, 1600px); max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 10px; object-fit: contain; }
.lightbox__figure figcaption { padding-top: 14px; color: #cfccc4; font: 400 15px/1.4 var(--type); text-align: center; }
.lightbox__prev, .lightbox__next { position: fixed; top: 50%; translate: 0 -50%; }
.lightbox__prev { left: var(--gutter); }
.lightbox__next { right: var(--gutter); }
/* on phones the arrows sit in a band along the bottom; the photo and its caption stay together, centred above it */
@media (max-width: 699px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; translate: none; }
  .lightbox__figure { grid-template-rows: auto auto; align-content: center; padding-bottom: 92px; }
  .lightbox__figure img { max-height: calc(100dvh - 260px); }
}

/* ---------- overlays: full gallery and story reader (faded in by main.js) ---------- */
html.is-locked { overflow: hidden; }
.overlay__box { position: fixed; top: 0; bottom: 0; }
.overlay__panel { position: absolute; inset: 0; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.vault, .reader {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
}
.vault::backdrop { background: transparent; }
/* once the gallery covers the screen, the page behind stops being painted */
html.is-covered main, html.is-covered .footer { visibility: hidden; }
.reader[open]::backdrop { animation: fade-in .28s ease both; }

/* ---------- vault: the whole gallery, nothing else on screen ---------- */
.vault__box { left: 0; right: 0; }
.vault__bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px var(--gutter);
  background: var(--bg);
}
.vault__title { font-size: clamp(36px, 5vw, 72px); }
.vault__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 0;
}
@media (min-width: 700px) { .vault__grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .vault__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.vault .center { padding-bottom: 56px; }

/* ---------- reader ---------- */
.reader__box { right: 0; width: min(820px, 100vw); }
.reader__box .overlay__panel { border-left: 1px solid var(--line); }
.reader__close { position: sticky; top: 16px; float: right; margin: 16px 16px 0 0; z-index: 5; }
.reader__body { padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 72px) 96px; }
.reader__media { aspect-ratio: 16 / 9; border-radius: var(--radius); margin: 28px 0 36px; }
.reader__kicker { font-size: 13px; }
.reader h2, .story-page h1 { margin: 22px 0 12px; font: 400 clamp(40px, 5vw, 64px)/.95 var(--display); text-transform: uppercase; color: var(--paper); filter: url(#rough); }
.reader__author { color: var(--muted); margin: 0; font-family: var(--type); }
.reader__text p, .reader__credit { font-size: 18px; line-height: 1.7; margin: 0 0 1.1em; max-width: 64ch; }
.reader__text .q { font-family: var(--type); color: var(--accent); margin-top: 1.8em; }
.reader__text blockquote {
  margin: 1.4em 0; padding-left: 22px; border-left: 3px solid var(--accent);
  font: 400 21px/1.5 var(--type); white-space: pre-line;
}
.reader__credit { margin-top: 2.5em; font-size: 14px; color: var(--muted); }

/* ---------- a story's own page (price/<id>/, written by deploy/prerender.js): the reader as a page ---------- */
.story-page main, .page-bar { max-width: 820px; margin: 0 auto; }
.page-bar { padding: 20px var(--gutter) 0; }
.page-bar .pill { padding: 8px 26px 8px 8px; }
.story-page .reader__body { padding-top: clamp(24px, 4vw, 48px); padding-bottom: 48px; }
.more { padding: 0 clamp(20px, 6vw, 72px) 24px; display: grid; gap: 28px; justify-items: start; }
.more__list { list-style: none; margin: 0; padding: 0; width: 100%; }
.more__list a { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; }
.more__list li:last-child a { border-bottom: 1px solid var(--line); }
.more__title { font: 400 clamp(24px, 3vw, 34px)/1 var(--display); text-transform: uppercase; color: var(--paper); }
.more__author { font: 400 14px/1.3 var(--type); color: var(--muted); }
.more__list a:hover .more__title { color: var(--accent); }
.more p { margin: 0; }
.story-page .footer { padding-top: 48px; }

/* ---------- load error ---------- */
.load-error {
  margin: 24px var(--gutter); padding: 22px 26px; border-radius: var(--radius-sm);
  background: #3a1410; border: 1px solid #e5482f; color: #ffd9d2; font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip__track, .hero__top, .hero__sub { animation: none; }
  .shot.is-in img { animation: none; opacity: 1; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* on hover the photo runs straight into the accent bar, no rounded seam */
.card:focus-visible .card__media, .card:focus-visible .card__shade--accent,
.card.is-lit .card__media, .card.is-lit .card__shade--accent { border-radius: var(--radius) var(--radius) 0 0; }
