/* ==========================================================
   OSTRÓW RAP NIGHT — style
   ========================================================== */

:root {
  color-scheme: dark; /* ciemne paski przewijania itp. */

  --black: #000;
  --ink: #060606;
  --white: #fff;
  --gray: #7a7a7a;
  --line: rgba(255, 255, 255, .07);
  --gold: #e0b84a;
  --gold-light: #fbe7a1;
  --gold-dark: #a87a1f;
  --gold-gradient: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);

  --font-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --spin: 8s; /* czas jednego pełnego obrotu logo */
}

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

html,
body {
  background: var(--black);
  color: var(--white);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

/* ==========================================================
   HERO
   ========================================================== */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 460px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- tło ---------- */

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  animation: orn-drift 18s ease-in-out infinite alternate;
}

.hero__glow--a {
  width: 75vmax;
  height: 75vmax;
  top: -38vmax;
  right: -22vmax;
  background: radial-gradient(circle, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .04) 35%, transparent 65%);
}

.hero__glow--b {
  width: 70vmax;
  height: 70vmax;
  bottom: -40vmax;
  left: -25vmax;
  background: radial-gradient(circle, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 35%, transparent 65%);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' 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");
}

/* winieta – przyciemnione rogi */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .75) 100%);
}

@keyframes orn-drift {
  to { transform: translate3d(-5%, 4%, 0) scale(1.1); }
}

/* ---------- scena z logo ---------- */

.hero__stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  container-type: size; /* logo skaluje się do wolnego miejsca nad paskiem */

  --logo-size: min(44cqh, 60cqw); /* rozmiar logo – od niego zależą też rzędy ksywek */
}

.logo-scene {
  --size: var(--logo-size);
  --depth: calc(var(--size) * .045); /* grubość "monety" */

  position: relative;
  z-index: 1; /* nad łańcuchami, pod profilowymi */
  width: var(--size);
  aspect-ratio: 1;
  perspective: calc(var(--size) * 3.2);
}

/* delikatna poświata za logo */
.logo-scene::before {
  content: '';
  position: absolute;
  inset: -30%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 30%, transparent 62%);
}

/* przy rzędach ksywek: ciemna obwódka, żeby logo odcinało się od tekstu */
.hero__stage:has(.name-rows:not([hidden])) .logo-scene::before {
  background: radial-gradient(circle closest-side, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .96) 58%, rgba(0, 0, 0, .6) 66%, transparent 76%);
}

/* ---------- rzędy ksywek za logo ---------- */

.name-rows {
  --rows: 9;
  --band: max(calc(var(--logo-size) * 1.45), 55cqh); /* wysokość pasa z ksywkami */

  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--band);
  overflow: hidden;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
  font-size: calc(var(--band) / var(--rows) * .8);
  line-height: 1;
  letter-spacing: .01em;
  /* rzędy znikają łagodnie przy bokach ekranu */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.name-rows[hidden] {
  display: none;
}

.name-row {
  overflow: hidden;
  white-space: nowrap;
}

.name-row__track {
  display: flex;
  width: max-content;
  animation: orn-row-left var(--duration, 60s) linear var(--delay, 0s) infinite;
  will-change: transform;
}

.name-row--right .name-row__track {
  animation-name: orn-row-right;
}

.name-row__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.name-row__name {
  padding: 0 .32em;
  color: rgba(255, 255, 255, .9);
}

/* main artyści (z gwiazdką * w składzie) */
.name-row__name--gold {
  color: var(--gold);
  text-shadow: 0 0 .5em rgba(224, 184, 74, .45);
}

.name-row__dot {
  flex-shrink: 0;
  width: .14em;
  height: .14em;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}

@keyframes orn-row-left {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes orn-row-right {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

.logo-coin {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: orn-spin var(--spin) linear infinite;
  will-change: transform;
}

.logo-face,
.logo-edge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.logo-face {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

.logo-face--front {
  transform: translateZ(calc(var(--depth) / 2));
}

.logo-face--back {
  transform: rotateY(180deg) translateZ(calc(var(--depth) / 2));
}

.logo-face__img,
.logo-face__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* cień na froncie/tyle – ściemnia logo, gdy jest bokiem do widza */
.logo-face__shade {
  filter: brightness(0);
  opacity: 0;
  animation: orn-shade calc(var(--spin) / 2) linear infinite;
}

@keyframes orn-spin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

@keyframes orn-shade {
  0%   { opacity: 0;   animation-timing-function: ease-in; }
  50%  { opacity: .55; animation-timing-function: ease-out; }
  100% { opacity: 0; }
}

/* ---------- artyści na łańcuchach ---------- */

.artists {
  --avatar: 48px; /* nadpisywane z JS, zależnie od ekranu */

  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* łańcuchy idą za logo, do jego środka */
.artists__chains {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.artists__list {
  position: absolute;
  inset: 0;
  z-index: 2;
  list-style: none;
}

.artist {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--avatar);
  height: var(--avatar);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.artist:hover,
.artist.is-dragging {
  z-index: 10;
}

.artist.is-dragging,
.is-grabbing,
.is-grabbing * {
  cursor: grabbing;
}

.artist__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a1a;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .7), 0 8px 20px rgba(0, 0, 0, .6);
  transition: transform .2s ease, border-color .2s ease;
}

.artist:hover .artist__photo,
.artist.is-dragging .artist__photo {
  transform: scale(1.12);
  border-color: var(--white);
}

/* dymek z nazwą */
.artist__name {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: .4em .75em .35em;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(12px, 1vw, 20px);
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap; /* ksywki pisane dokładnie jak na liście – bez zamiany na wielkie litery */
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .18s ease, transform .18s ease;
}

/* artyści przy górnej krawędzi mają dymek pod sobą */
.artist--label-below .artist__name {
  bottom: auto;
  top: calc(100% + 10px);
  transform: translate(-50%, -4px);
}

.artist:hover .artist__name,
.artist.is-dragging .artist__name {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- złoci artyści (z gwiazdką * w składzie) ---------- */

/* pulsująca złota poświata za profilowym */
.artist--gold::before {
  content: '';
  position: absolute;
  inset: -45%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 184, 74, .55) 0%, rgba(224, 184, 74, .18) 40%, transparent 68%);
  pointer-events: none;
  animation: orn-gold-glow 2.6s ease-in-out infinite alternate;
}

.artist--gold .artist__photo,
.artist--gold:hover .artist__photo,
.artist--gold.is-dragging .artist__photo {
  border-color: var(--gold);
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, .7),
    0 0 12px 2px rgba(224, 184, 74, .6),
    0 8px 20px rgba(0, 0, 0, .6);
}

.artist--gold .artist__name {
  background: var(--gold-gradient);
  box-shadow: 0 0 14px rgba(224, 184, 74, .45);
}

@keyframes orn-gold-glow {
  from { opacity: .55; transform: scale(.92); }
  to   { opacity: 1;   transform: scale(1.06); }
}

/* ==========================================================
   PASEK PRZEWIJANY
   ========================================================== */

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: .6em 0;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.2vw, 32px); /* skaluje się do szerokości ekranu */
  line-height: 1.1;
  letter-spacing: .03em;
  text-transform: uppercase;
  user-select: none;
  -webkit-user-select: none;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: orn-marquee var(--marquee-duration, 30s) linear infinite;
  will-change: transform;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee__item {
  margin-right: .9em;
  white-space: nowrap;
}

.marquee__item--muted {
  color: var(--gray);
}

.marquee__dot {
  flex-shrink: 0;
  width: .26em;
  height: .26em;
  margin-right: .9em;
  border-radius: 50%;
  background: var(--white);
}

@keyframes orn-marquee {
  to { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================
   SEKCJE – wspólne
   ========================================================== */

.section {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 16px;
}

.section__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--gray);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.section-head__eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.section-head__outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .5);
}

.section-head__text {
  max-width: 40ch;
  color: #a3a3a3;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.6;
}

/* ==========================================================
   EDYCJE
   ========================================================== */

.editions {
  background: transparent; /* bez własnego tła – brak widocznej granicy z sekcją zapowiedzi */
}

.editions__grid {
  --editions-gap: clamp(12px, 1.6vw, 20px);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--editions-gap);
}

@media (max-width: 900px) {
  .editions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* szeroki kafelek (najnowsza edycja) – prostokąt przez całą szerokość, tej samej wysokości co pozostałe */
.editions__item--wide {
  grid-column: 1 / -1;
  container-type: inline-size;
}

.editions__item--wide .edition-card {
  aspect-ratio: auto;
  height: calc((100cqw - 3 * var(--editions-gap)) / 3); /* = wysokość zwykłego kafelka 3:4 */
}

.editions__item--wide .edition-card__cover img {
  object-position: 50% 28%; /* ekran sceny w kadrze */
}

.editions__item--wide .edition-card__number {
  font-size: 23cqw; /* jak na zwykłym kafelku (92% jego szerokości) */
}

@media (max-width: 900px) {
  .editions__item--wide {
    grid-column: 1 / -1;
  }

  .editions__item--wide .edition-card {
    height: calc((100cqw - var(--editions-gap)) * 2 / 3);
  }

  .editions__item--wide .edition-card__number {
    font-size: 45cqw;
  }
}

/* przełącznik kolejności: najnowsze / najstarsze */
.editions__sort {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: #0d0d0d;
}

.editions__sort-btn {
  padding: .7em 1.25em .65em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a3a3a3;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.editions__sort-btn:hover,
.editions__sort-btn:focus-visible {
  color: var(--white);
}

.editions__sort-btn[aria-pressed="true"] {
  background: var(--white);
  color: var(--black);
}

.editions__item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.editions__item.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- kafelek edycji ---------- */

.edition-card {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: #0b0b0b;
  color: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .3s ease;
}

.edition-card:hover,
.edition-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, .4);
}

.edition-card:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.edition-card__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, .13), transparent 60%),
    #0b0b0b;
}

/* przyciemnienie od dołu, żeby napisy były czytelne */
.edition-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .2) 45%, transparent 70%);
}

.edition-card__cover {
  position: absolute;
  inset: 0;
}

.edition-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
}

.edition-card:hover .edition-card__cover img {
  transform: scale(1.06);
  filter: grayscale(0);
}

/* pokolorowana wersja czarno-białej okładki – wjeżdża po najechaniu */
.edition-card__cover--kolor {
  opacity: 0;
  transition: opacity .5s ease;
}

.edition-card__cover.edition-card__cover--kolor img {
  filter: none;
}

.edition-card:hover .edition-card__cover--kolor {
  opacity: 1;
}

/* wielki numer edycji */
.edition-card__number {
  position: absolute;
  right: -.02em;
  bottom: -.14em;
  font-family: var(--font-display);
  font-size: 92cqw;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28);
  transition: color .45s ease, -webkit-text-stroke-color .45s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

.edition-card:hover .edition-card__number {
  -webkit-text-stroke-color: rgba(255, 255, 255, .7);
  transform: translateY(-3%);
}

.edition-card:not(.edition-card--cover):hover .edition-card__number {
  color: var(--white);
  -webkit-text-stroke-color: var(--white);
}

.edition-card__top {
  position: absolute;
  top: clamp(12px, 7cqw, 20px);
  left: clamp(12px, 7cqw, 20px);
  right: clamp(12px, 7cqw, 20px);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.edition-card__tag {
  padding: .45em .8em .4em;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  font-size: clamp(10px, 4cqw, 12px);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.edition-card__info {
  position: absolute;
  left: clamp(12px, 7cqw, 20px);
  right: clamp(56px, 24cqw, 72px);
  bottom: clamp(12px, 7cqw, 20px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edition-card__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 11cqw, 34px);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.edition-card__meta {
  color: #a3a3a3;
  font-size: clamp(11px, 4.4cqw, 13px);
}

.edition-card__arrow {
  position: absolute;
  right: clamp(12px, 7cqw, 20px);
  bottom: clamp(12px, 7cqw, 20px);
  display: grid;
  place-items: center;
  width: clamp(34px, 14cqw, 44px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  transition: background .3s ease, border-color .3s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}

.edition-card__arrow svg {
  width: 45%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edition-card:hover .edition-card__arrow {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
  transform: rotate(45deg);
}

/* ---------- okienko z galerią ---------- */

/* strona pod spodem nie przewija się, gdy okienko jest otwarte */
html:has(.edition-modal[open]) {
  overflow: hidden;
}

.edition-modal {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}

.edition-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px) 16px;
}

.edition-modal::backdrop {
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.edition-modal[open]::backdrop {
  animation: orn-fade-in .3s ease;
}

.edition-modal__panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: #0a0a0a;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .8);
}

.edition-modal[open] .edition-modal__panel {
  animation: orn-modal-in .45s cubic-bezier(.2, .8, .2, 1);
}

.edition-modal__head {
  position: sticky;
  top: 0;
  z-index: 10; /* nad zdjęciami i ich podpisami */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(10, 10, 10, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.edition-modal__eyebrow {
  margin-bottom: 8px;
  color: var(--gray);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.edition-modal__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 400;
  line-height: .9;
  text-transform: uppercase;
}

.edition-modal__meta {
  margin-top: 10px;
  color: #a3a3a3;
  font-size: 14px;
}

/* fotografowie edycji – raz u góry okienka */
.edition-modal__photographers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.edition-modal__photographers[hidden] {
  display: none;
}

.edition-modal__photographers-label {
  margin-right: 2px;
  color: var(--gray);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.photo-credit--head {
  padding: .5em .8em;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: 12px;
}

a.photo-credit--head:hover,
a.photo-credit--head:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

/* współpraca przy edycji – napis + logo partnera (przezroczyste tło) */
.edition-modal__partner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
  color: #bdbdbd;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.edition-modal__partner[hidden] {
  display: none;
}

.edition-modal__partner-logo {
  display: inline-flex;
  transition: transform .25s ease;
}

.edition-modal__partner-logo img {
  display: block;
  width: auto;
  height: 40px;
}

a.edition-modal__partner[href]:hover .edition-modal__partner-logo,
a.edition-modal__partner[href]:focus-visible .edition-modal__partner-logo {
  transform: translateY(-2px);
}

a.edition-modal__partner[href]:hover .edition-modal__partner-text,
a.edition-modal__partner[href]:focus-visible .edition-modal__partner-text {
  color: var(--white);
}

.edition-modal__close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .35s ease;
}

.edition-modal__close svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.edition-modal__close:hover,
.edition-modal__close:focus-visible {
  background: var(--white);
  color: var(--black);
  transform: rotate(90deg);
}

.edition-modal__body {
  padding: clamp(20px, 3vw, 32px);
}

.edition-modal__label {
  margin: 0 0 14px;
  color: var(--gray);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.edition-modal__label:not(:first-child) {
  margin-top: clamp(28px, 4vw, 44px);
}

.edition-modal__photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(110px, 14vw, 180px);
  grid-auto-flow: dense;
  gap: 10px;
}

.edition-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #141414;
}

/* układ "mozaiki" – niektóre zdjęcia są większe */
.edition-photo:nth-child(6n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

.edition-photo:nth-child(6n + 4) {
  grid-column: span 2;
}

.edition-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

.edition-photo:hover img {
  transform: scale(1.04);
}

.edition-photo__open {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.edition-photo__open:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -4px;
}

.edition-photo__img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- zakładki Foto / Wideo ---------- */

.media-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: #0d0d0d;
}

.media-tabs[hidden],
.media-tabs__tab[hidden] {
  display: none;
}

.media-tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .7em 1.25em .65em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a3a3a3;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.media-tabs__tab:hover,
.media-tabs__tab:focus-visible {
  color: var(--white);
}

.media-tabs__tab[aria-selected="true"] {
  background: var(--white);
  color: var(--black);
}

.media-tabs__count {
  padding: .25em .55em;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.media-tabs__tab[aria-selected="true"] .media-tabs__count {
  background: rgba(0, 0, 0, .12);
}

/* ---------- mozaika zdjęć – całe, bez ucinania, różnej wielkości ---------- */

.edition-modal__photos.is-masonry {
  --cols: 4; /* ile kolumn */

  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-auto-rows: 2px; /* drobna "kratka" – wysokości liczy js/gallery.js */
  grid-auto-flow: dense; /* małe zdjęcia wypełniają luki obok dużych */
  column-gap: 10px;
  row-gap: 0;
}

@media (max-width: 900px) {
  .edition-modal__photos.is-masonry {
    --cols: 3;
  }
}

@media (max-width: 560px) {
  .edition-modal__photos.is-masonry {
    --cols: 2;
  }
}

.is-masonry .edition-photo {
  --r: 1.5; /* proporcje zdjęcia – ustawiane z danych */

  align-self: start;
  aspect-ratio: var(--r);
  container-type: inline-size;
  animation: orn-tile-in .7s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes orn-tile-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
}

/* na wąskich zdjęciach podpis to samo logo IG */
@container (max-width: 160px) {
  .photo-credit--tile span {
    display: none;
  }
}

/* ---------- filmy – odtwarzane od razu w zakładce Wideo ---------- */

.edition-modal__photos.is-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  grid-auto-rows: auto;
  gap: 14px;
}

@media (max-width: 560px) {
  .edition-modal__photos.is-videos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.edition-video {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: #000;
  animation: orn-tile-in .7s cubic-bezier(.2, .8, .2, 1) both;
}

.edition-video video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16; /* pionowe filmy jak rolki */
  object-fit: contain;  /* nic nie jest ucięte */
  background: #000;
}

/* filmy z YouTube (Shorts) – pionowe, bez osobnej ramki w kafelku */
.edition-video .yt-embed {
  border: 0;
  border-radius: 0;
}

.yt-embed.yt-embed--short {
  aspect-ratio: 9 / 16;
}

/* w wąskim kafelku krótsza informacja o zgodzie na YouTube */
.yt-embed--short .yt-embed__placeholder {
  gap: 10px;
  padding: 14px;
  font-size: 12px;
}

.yt-embed--short .yt-embed__placeholder svg {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
}

/* w bardzo wąskim kafelku (telefon) zostaje sam przycisk – opis zgody jest w banerze cookies */
.yt-embed.yt-embed--short {
  container-type: inline-size;
}

@container (max-width: 200px) {
  .yt-embed__placeholder p {
    display: none;
  }
}

.yt-embed--short .yt-embed__placeholder .cookie-btn {
  font-size: 12px;
}

/* pod filmem: tytuł + podpis twórcy */
.edition-video__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  padding: 10px 12px 11px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

/* film poziomy – szerszy kafelek, bez czarnych pasów */
.edition-video--wide {
  grid-column: span 2;
}

.edition-video--wide video {
  aspect-ratio: 16 / 9;
}

/* film bez tytułu i podpisu – bez pustego paska pod spodem */
.edition-video__caption:empty {
  display: none;
}

.edition-video__title {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.1;
  letter-spacing: .03em;
}

.photo-credit--caption {
  color: #a3a3a3;
  font-size: 11px;
}

a.photo-credit--caption:hover,
a.photo-credit--caption:focus-visible {
  color: var(--white);
}

/* ---------- podpis fotografa (logo IG + nazwa) ---------- */

.photo-credit {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.photo-credit svg {
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* w lewym dolnym rogu zdjęcia */
.photo-credit--tile,
.photo-credit--lightbox {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  padding: .45em .65em;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.photo-credit--tile {
  font-size: 10.5px;
  opacity: .85;
}

.edition-photo:hover .photo-credit--tile {
  opacity: 1;
}

.photo-credit--lightbox {
  left: 12px;
  bottom: 12px;
  font-size: 13px;
}

a.photo-credit--tile:hover,
a.photo-credit--tile:focus-visible,
a.photo-credit--lightbox:hover,
a.photo-credit--lightbox:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

/* podpis pojawia się dopiero razem ze zdjęciem/filmem */
.photo-credit--lightbox {
  transition: opacity .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.lightbox__figure:not(.is-loaded) .photo-credit--lightbox {
  opacity: 0;
}

/* zdjęcia w drodze: aparat i pod nim "Zdjęcia już niedługo" (zamiast pustych miejsc) */
.edition-modal__photos--soon {
  display: block;
}

.edition-modal__soon {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(48px, 7vw, 88px) 20px;
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: repeating-linear-gradient(135deg, #101010 0 12px, #131313 12px 24px);
  text-align: center;
}

.edition-modal__soon svg {
  width: clamp(52px, 6vw, 72px);
  fill: none;
  stroke: rgba(255, 255, 255, .75);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, .25));
}

.edition-modal__soon-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
  text-transform: uppercase;
}

/* znaczek na kafelku edycji, np. "Zdjęcia już niedługo" */
.edition-card__tag--soon {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .92);
  color: var(--black);
}

.edition-photo--empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed rgba(255, 255, 255, .12);
  background: repeating-linear-gradient(135deg, #101010 0 12px, #131313 12px 24px);
  color: #4d4d4d;
}

.edition-photo--empty svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edition-photo--empty figcaption {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .edition-modal__photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

.edition-modal__lineup {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edition-chip {
  padding: .55em .95em .5em;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1;
  letter-spacing: .04em; /* ksywki pisane dokładnie jak na liście */
}

.edition-chip--gold {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 14px rgba(224, 184, 74, .25);
}

.edition-modal__empty {
  color: var(--gray);
  font-size: 14px;
}

.edition-modal__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px clamp(20px, 3vw, 32px) clamp(20px, 3vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.edition-modal__step {
  padding: .7em 1.2em .6em;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.edition-modal__step[data-step="1"] {
  margin-left: auto;
}

.edition-modal__step:hover,
.edition-modal__step:focus-visible {
  background: var(--white);
  color: var(--black);
}

.edition-modal__step[hidden] {
  display: none;
}

@keyframes orn-fade-in {
  from { opacity: 0; }
}

@keyframes orn-modal-in {
  from { opacity: 0; transform: translateY(28px) scale(.98); }
}

/* ==========================================================
   PODGLĄD ZDJĘCIA / FILMU NA PEŁNYM EKRANIE
   ========================================================== */

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: hidden;
}

.lightbox[open] {
  display: block;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, .94);
}

.lightbox[open]::backdrop {
  animation: orn-fade-in .25s ease;
}

.lightbox__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 64px clamp(16px, 7vw, 96px);
}

.lightbox__figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  animation: orn-fade-in .3s ease;
}

.lightbox__media,
.lightbox__media img {
  display: block;
  max-width: min(100%, 1600px);
  max-height: calc(100dvh - 128px);
  width: auto;
  height: auto;
  border-radius: 10px;
}

.lightbox__counter {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #a3a3a3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: var(--white);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.lightbox__close svg,
.lightbox__nav svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__close {
  top: 12px;
  right: 12px;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: clamp(8px, 2vw, 24px);
}

.lightbox__nav--next {
  right: clamp(8px, 2vw, 24px);
}

.lightbox__nav[hidden] {
  display: none;
}

.lightbox__close:hover,
.lightbox__close:focus-visible,
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

@media (max-width: 640px) {
  .lightbox__stage {
    padding: 64px 8px;
  }

  .lightbox__nav {
    top: auto;
    bottom: 14px;
    transform: none;
  }
}

/* ==========================================================
   NASTĘPNA EDYCJA (zapowiedź)
   ========================================================== */

/* następna edycja jest zaraz pod hero – pierwsza sekcja po zjechaniu */
.next-edition {
  z-index: 1; /* poświata karty nachodzi na Archiwum, bez widocznej granicy */
  padding-bottom: 0; /* odstęp do Archiwum daje sekcja z edycjami */
}


/* poświata po bokach karty następnej edycji */
.next-edition .section__inner {
  position: relative;
  isolation: isolate;
}

.next-edition .section__inner::before {
  content: '';
  position: absolute;
  inset: 8% 0;
  z-index: -1;
  border-radius: 24px;
  box-shadow:
    -24px 0 70px -8px rgba(255, 255, 255, .32),
     24px 0 70px -8px rgba(255, 255, 255, .32);
  pointer-events: none;
  animation: orn-side-glow 3.5s ease-in-out infinite alternate;
  transition: filter 1.2s ease .4s;
}

/* poświata pojawia się dopiero razem z kartą */
.js-reveal .next-edition .section__inner:not(.is-revealed)::before {
  filter: opacity(0);
}

@keyframes orn-side-glow {
  from { opacity: .5; }
  to   { opacity: 1; }
}

.next-edition__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 4.4vw, 56px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-left-color: rgba(255, 255, 255, .32);
  border-right-color: rgba(255, 255, 255, .32);
  border-radius: 24px;
  background:
    radial-gradient(80% 90% at 85% 50%, rgba(255, 255, 255, .1), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(255, 255, 255, .05), transparent 60%),
    #070707;
}

/* delikatna siatka jak w hero */
.next-edition__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000 0%, transparent 65%);
          mask-image: radial-gradient(ellipse at 80% 50%, #000 0%, transparent 65%);
}

/* wielka dziewiątka w tle */
.next-edition__number {
  position: absolute;
  right: clamp(-20px, 2vw, 40px);
  bottom: -.16em;
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(220px, 32vw, 460px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .22);
  pointer-events: none;
  user-select: none;
  animation: orn-drift-y 7s ease-in-out infinite;
}

@keyframes orn-drift-y {
  50% { translate: 0 -14px; }
}

.next-edition__content {
  position: relative;
  max-width: 820px; /* szerzej – długa nazwa miejsca mieści się w 1–2 liniach */
}

.next-edition__title {
  margin-bottom: clamp(20px, 3vw, 32px);
  font-size: clamp(44px, 6.2vw, 92px);
}

.next-edition__details {
  display: grid;
  grid-template-columns: max-content minmax(0, max-content) max-content; /* kolumny na szerokość tekstu, bez pustej przerwy */
  justify-content: start;
  gap: 16px clamp(16px, 3vw, 40px);
  margin-bottom: clamp(24px, 3vw, 36px);
}

.next-edition__detail {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.next-edition__detail dt {
  margin-bottom: 8px;
  color: var(--gray);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.next-edition__detail dd {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .next-edition__details {
    grid-template-columns: 1fr 1fr;
  }

  /* na telefonie: data i start obok siebie, miejsce pod nimi na całą szerokość */
  .next-edition__detail:nth-child(2) {
    grid-column: 1 / -1;
    order: 3;
  }
}

/* ---------- odliczanie ---------- */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 12px);
  max-width: 460px;
  margin-bottom: clamp(22px, 3vw, 32px);
}

.countdown[hidden] {
  display: none;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(12px, 1.8vw, 18px) 6px clamp(10px, 1.4vw, 14px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
}

.countdown__value {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* cyfra, która się zmieniła, wpada z góry */
.countdown__value.is-tick {
  animation: orn-tick .45s cubic-bezier(.2, .8, .2, 1);
}

@keyframes orn-tick {
  from { opacity: .25; transform: translateY(-8px); }
}

.countdown__label {
  color: var(--gray);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.countdown__done {
  margin-bottom: clamp(24px, 3vw, 36px);
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  text-transform: uppercase;
}

.countdown__done[hidden] {
  display: none;
}

/* ---------- przycisk "Kup bilet" ---------- */

.ticket-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: 1.05em 1.6em 1em 1.8em;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 10px 30px rgba(255, 255, 255, .12);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}

.ticket-btn:hover,
.ticket-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), 0 14px 40px rgba(255, 255, 255, .22);
}

.ticket-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.ticket-btn:active {
  transform: translateY(0) scale(.98);
}

/* rozchodząca się obwódka – przyciąga wzrok do przycisku */
.ticket-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: inherit;
  pointer-events: none;
  animation: orn-ping 2.6s cubic-bezier(.2, .8, .2, 1) infinite;
}

@keyframes orn-ping {
  0%       { opacity: .8; transform: scale(1); }
  70%, 100% { opacity: 0;  transform: scale(1.12, 1.4); }
}

.ticket-btn__label {
  white-space: nowrap;
}

.ticket-btn__icon {
  width: 1.1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s ease;
}

.ticket-btn:hover .ticket-btn__icon {
  transform: translateX(3px);
}

/* sprzedaż jeszcze nie ruszyła – obrys zamiast białego przycisku, bez kliknięcia */
.ticket-btn--soon,
.ticket-btn--soon:hover {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
  cursor: default;
  transform: none;
}

/* ==========================================================
   WSPÓŁPRACA – STARA PRZEPOMPOWNIA 2.0
   ========================================================== */

.partner {
  padding-top: 0;
}

.partner__card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: #070707;
}

/* lewa strona: grafika współpracy */
.partner__visual {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background: #0b0b0b;
}

/* trzyma proporcje grafiki 4:5 – kolumna nigdy nie jest niższa niż obrazek */
.partner__visual::before {
  content: '';
  display: block;
  padding-top: 125%;
}

.partner__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.partner__card:hover .partner__poster {
  transform: scale(1.03);
}

/* prawa strona: tekst */
.partner__content {
  align-self: center;
  padding: clamp(28px, 5vw, 64px);
}

.partner__title {
  margin-bottom: 20px;
  font-size: clamp(40px, 5.2vw, 76px);
}

.partner__lead {
  max-width: 48ch;
  margin-bottom: 24px;
  color: #a3a3a3;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}

.partner__highlight {
  margin-bottom: 28px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.3;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.partner__highlight strong {
  display: inline-block;
  padding: .06em .26em 0;
  border-radius: 5px;
  line-height: 1;
  background: var(--white);
  color: var(--black);
  font-weight: 400;
  animation: orn-glow 2.8s ease-in-out infinite;
}

@keyframes orn-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 255, 255, 0); }
  50%      { box-shadow: 0 0 16px rgba(255, 255, 255, .45); }
}

.partner__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.partner__address {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a3a3a3;
  font-size: 14px;
}

.partner__address svg {
  flex-shrink: 0;
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .9em 1.3em .85em;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.btn-outline svg {
  width: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

@media (max-width: 860px) {
  .partner__card {
    grid-template-columns: 1fr;
  }

  .partner__visual {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
}

/* ==========================================================
   PASEK U GÓRY
   ========================================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 16px;
  pointer-events: none; /* puste miejsce paska nie blokuje artystów pod spodem */
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}

.topbar.is-scrolled,
.topbar.is-open {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom-color: rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.topbar__brand,
.topbar__toggle,
.topbar__nav {
  pointer-events: auto;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
}

.topbar__brand img {
  width: 36px;
  height: 36px;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.topbar__nav > a:not(.btn-outline) {
  position: relative;
  padding: 6px 0;
  color: #a3a3a3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

/* kreska pod linkiem */
.topbar__nav > a:not(.btn-outline)::after {
  content: '';
  position: absolute;
  left: 0;
  right: .18em;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.topbar__nav > a:not(.btn-outline):hover,
.topbar__nav > a:not(.btn-outline):focus-visible,
.topbar__nav > a.is-active {
  color: var(--white);
}

.topbar__nav > a:not(.btn-outline):hover::after,
.topbar__nav > a:not(.btn-outline):focus-visible::after,
.topbar__nav > a.is-active::after {
  transform: scaleX(1);
}

/* przycisk menu (tylko telefon) */
.topbar__toggle {
  display: none;
  place-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(0, 0, 0, .4);
  cursor: pointer;
}

.topbar__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  transition: transform .3s ease;
}

.topbar.is-open .topbar__toggle span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.topbar.is-open .topbar__toggle span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .topbar__brand span {
    display: none;
  }

  .topbar__nav {
    gap: 24px;
  }
}

@media (max-width: 760px) {

  .topbar__toggle {
    display: grid;
  }

  .topbar__nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(8, 8, 8, .97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }

  .topbar.is-open .topbar__nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .topbar__nav > a:not(.btn-outline) {
    padding: 12px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: .03em;
  }

  .topbar__nav > a:not(.btn-outline)::after {
    display: none;
  }

  .topbar__nav .socials {
    padding: 8px 12px;
  }

  .topbar__nav .btn-outline {
    justify-content: center;
    margin-top: 8px;
  }
}

/* sekcje nie chowają się pod paskiem po kliknięciu w link */
.next-edition,
.editions,
.partner {
  scroll-margin-top: 96px;
}

/* ==========================================================
   SOCIAL MEDIA (pasek u góry + stopka)
   ========================================================== */

.socials {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.socials__link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: var(--white);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}

.socials__link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials__link:hover,
.socials__link:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

.topbar .socials__link {
  width: 36px;
  height: 36px;
}

.topbar .socials__link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================
   STOPKA
   ========================================================== */

.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 16px 28px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: radial-gradient(60% 50% at 50% 100%, rgba(255, 255, 255, .07), transparent 70%), var(--black);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer__brand img {
  width: 56px;
  height: 56px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.footer__nav a {
  color: #a3a3a3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: var(--white);
}

/* wielki napis na dole */
.footer__wordmark {
  margin: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px);
  font-family: var(--font-display);
  font-size: clamp(40px, 12.6vw, 172px);
  line-height: .85;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .22);
  user-select: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--gray);
  font-size: 13px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer__legal a,
.footer__legal button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gray);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease;
}

.footer__legal a:hover,
.footer__legal a:focus-visible,
.footer__legal button:hover,
.footer__legal button:focus-visible {
  color: var(--white);
}

.footer__credit {
  font-size: 12px;
}

.footer__credit a {
  color: #d4d4d4;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  transition: color .2s ease, border-color .2s ease;
}

.footer__credit a:hover,
.footer__credit a:focus-visible {
  color: var(--white);
  border-color: var(--white);
}

/* ==========================================================
   PLIKI COOKIES – baner
   ========================================================== */

.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  width: min(440px, calc(100% - 32px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background: rgba(10, 10, 10, .96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: orn-cookie-in .5s cubic-bezier(.2, .8, .2, 1);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.cookie-banner__text {
  color: #a3a3a3;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner__text a {
  color: var(--white);
}

.cookie-banner__settings {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.cookie-banner__settings[hidden] {
  display: none;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

/* przełącznik zgody */
.cookie-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  color: #a3a3a3;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.cookie-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-option strong {
  display: block;
  color: var(--white);
  font-size: 14px;
}

.cookie-option__switch {
  position: relative;
  width: 38px;
  height: 22px;
  margin-top: 2px;
  border-radius: 999px;
  background: #2a2a2a;
  transition: background .2s ease;
}

.cookie-option__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8a8a8a;
  transition: transform .25s ease, background .2s ease;
}

.cookie-option input:checked + .cookie-option__switch {
  background: var(--white);
}

.cookie-option input:checked + .cookie-option__switch::after {
  transform: translateX(16px);
  background: var(--black);
}

.cookie-option input:disabled + .cookie-option__switch {
  opacity: .55;
}

.cookie-option input:focus-visible + .cookie-option__switch {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* przyciski w banerze i przy filmach */
.cookie-btn {
  padding: .8em 1.15em .75em;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  border-color: var(--white);
}

.cookie-btn--primary {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.cookie-btn--primary:hover,
.cookie-btn--primary:focus-visible {
  background: #d9d9d9;
}

.cookie-btn--link {
  padding-left: .4em;
  padding-right: .4em;
  border-color: transparent;
  color: #a3a3a3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-btn--link:hover,
.cookie-btn--link:focus-visible {
  border-color: transparent;
  color: var(--white);
}

.cookie-btn[hidden] {
  display: none;
}

@keyframes orn-cookie-in {
  from { opacity: 0; transform: translateY(24px); }
}

/* ==========================================================
   FILMY Z YOUTUBE (wczytywane po zgodzie)
   ========================================================== */

.yt-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: #0b0b0b;
}

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

.yt-embed__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: #a3a3a3;
  font-size: 14px;
  line-height: 1.5;
}

.yt-embed__placeholder svg {
  width: 56px;
  height: 56px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  fill: var(--white);
}

.yt-embed__placeholder p {
  max-width: 36ch;
}

.yt-embed__placeholder a {
  color: #a3a3a3;
  font-size: 13px;
}

/* ==========================================================
   STRONA: POLITYKA COOKIES
   ========================================================== */

.legal {
  padding-top: clamp(120px, 14vw, 180px);
}

.legal__inner {
  max-width: 780px;
  margin: 0 auto;
}

.legal__title {
  margin-bottom: 16px;
}

.legal__updated {
  margin-bottom: clamp(32px, 5vw, 56px);
  color: var(--gray);
  font-size: 14px;
}

.legal__content h2 {
  margin: 40px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.legal__content p,
.legal__content li {
  color: #bdbdbd;
  font-size: 16px;
  line-height: 1.75;
}

.legal__content p + p {
  margin-top: 12px;
}

.legal__content ul {
  margin: 12px 0 0 20px;
}

.legal__content a {
  color: var(--white);
  text-underline-offset: 3px;
}

.legal__table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
}

.legal__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.legal__table th,
.legal__table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
  vertical-align: top;
}

.legal__table th {
  color: var(--gray);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.legal__table td {
  color: #bdbdbd;
}

.legal__table tr:last-child td {
  border-bottom: 0;
}

.legal__table code {
  color: var(--white);
  font-size: 13px;
}

.legal__actions {
  margin-top: 40px;
}

/* ==========================================================
   ANIMACJE PRZY PRZEWIJANIU
   Elementy z data-reveal wjeżdżają po kolei, gdy ich grupa
   (data-reveal-group) pojawi się na ekranie.
   ========================================================== */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity .8s ease var(--reveal-delay, 0ms),
    transform 1s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms);
}

.js-reveal [data-reveal="scale"] {
  transform: translate3d(0, 40px, 0) scale(.96);
}

.js-reveal [data-reveal="left"] {
  transform: translate3d(-48px, 0, 0);
}

.js-reveal [data-reveal="number"] {
  transform: translate3d(10%, 22%, 0);
  transition-duration: 1.2s, 1.6s;
}

.js-reveal .is-revealed [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ==========================================================
   Ograniczony ruch (ustawienie systemowe)
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .logo-coin,
  .logo-face__shade,
  .marquee__track,
  .name-row__track,
  .hero__glow,
  .artist--gold::before,
  .partner__highlight strong,
  .ticket-btn::after,
  .next-edition__number,
  .next-edition .section__inner::before {
    animation-play-state: paused;
  }

  .cookie-banner {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .js-reveal [data-reveal] {
    transform: none;
    transition: opacity .5s ease var(--reveal-delay, 0ms);
  }

  .editions__item {
    transform: none;
    transition: opacity .4s ease;
  }

  .edition-modal[open] .edition-modal__panel,
  .is-masonry .edition-photo,
  .edition-video,
  .countdown__value.is-tick {
    animation: none;
  }
}
