/* generowane przez prepare_assets.py */
@font-face{font-family:'KK Serif';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/serif-400.woff2') format('woff2')}
@font-face{font-family:'KK Serif';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/serif-400i.woff2') format('woff2')}
@font-face{font-family:'KK Sans';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/sans-300.woff2') format('woff2')}
@font-face{font-family:'KK Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/sans-500.woff2') format('woff2')}


/* ============================================================ tokeny ===== */
:root {
  --ink: #0a0a0b;
  --ink-soft: #101012;
  --ink-card: #141416;
  --gold: #c9a96e;
  --gold-bright: #e3ca97;
  --cream: #f4ede0;

  --text: rgba(244, 237, 224, 0.74);
  --text-dim: rgba(244, 237, 224, 0.48);
  --line: rgba(201, 169, 110, 0.2);
  --line-soft: rgba(244, 237, 224, 0.08);

  --f-serif: "KK Serif", "Iowan Old Style", Georgia, serif;
  --f-sans: "KK Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-0: 0.9375rem;
  --step-1: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2.2vw, 3.25rem);
  --step-4: clamp(2.75rem, 1.8rem + 4.6vw, 5.5rem);

  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 128px);
  --wrap: 1180px;

  --header-h: 76px;
  --spine-h: 104px;
  --header-h-sm: 60px;
  --spine-h-sm: 62px;
}

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: var(--step-1);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-bright); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { color: var(--cream); }

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

/* Reguła UA `[hidden] { display: none }` nie łapie elementów SVG we wszystkich
   silnikach, a ikony play/pause to właśnie SVG. Wymuszamy jawnie. */
[hidden] { display: none !important; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 20px;
  font-size: 0.875rem;
}
.skip:focus { left: 8px; top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; }
.section--line { border-top: 1px solid var(--line-soft); padding-top: var(--section-y); }

/* ziarno - jedna warstwa tekstury na całą stronę, bez plików graficznych */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ========================================================== typografia == */
.eyebrow {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}

.title-xl { font-size: var(--step-4); }
.title-lg { font-size: var(--step-3); }
.title-md { font-size: var(--step-2); }
/* Kursywa w kolorze złota była powtarzana w nagłówku każdej podstrony i to
   ona najbardziej trąciła szablonem. Zostaje neutralna, a akcent w nagłówkach
   robimy konturem (.out) - tak jak nazwisko w uwerturze. */
em { font-style: italic; color: inherit; }

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.7;
  color: var(--text);
  max-width: 62ch;
}

.muted { color: var(--text-dim); }
.small { font-size: 0.8125rem; letter-spacing: 0.02em; }

.rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.75rem 0;
}
.rule--center { margin-inline: auto; }

/* ============================================================ nagłówek == */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

/* Logo to gotowy lettering - nie dublujemy go tekstem obok i nie wciskamy
   lockupu 472x187 w kwadrat, bo staje się niewidoczną plamką. */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--cream);
}
.brand img {
  width: clamp(148px, 17vw, 210px);
  height: auto;
  opacity: 0.96;
  transition: opacity 0.25s;
}
.brand:hover img { opacity: 1; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--cream); }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 9px 12px;
  font: inherit;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.8125rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
}

/* ============================================== taśma (poziome przewijanie) ==
   Strona główna to jedna pozioma taśma paneli - kółko myszy, klawiatura i
   gest na trackpadzie przesuwają ją w bok. Przewijanie jest natywne
   (scroll-snap), więc działa też bez JS-a i nie psuje dostępności.        */
body.is-reel { overflow: hidden; }
/* W układzie taśmy nagłówek musi wyjść z przepływu. Zostawiony w nim dodaje
   swoje 76 px do wysokości dokumentu, dokument staje się wyższy od ekranu
   i skok do kotwicy (#panel-2) przesuwa całą stronę w dół. */
body.is-reel .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
}

.reel {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  /* UWAGA: bez `scroll-behavior: smooth` na tym kontenerze. W połączeniu ze
     scroll-snap: mandatory przeglądarka ignoruje wtedy KAŻDE programowe
     przewijanie (i scrollTo, i przypisanie scrollLeft). Płynność robi
     własna animacja w site.js. */
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reel::-webkit-scrollbar { display: none; }

.panel {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: calc(var(--header-h) + 4vh) var(--gutter) calc(var(--spine-h) + 4vh);
}
.panel > .wrap { width: 100%; }

/* numer i etykieta panelu - detal z okładki płyty */
.panel__tag {
  position: absolute;
  top: calc(var(--header-h) + 2.2vh);
  left: var(--gutter);
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--f-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 3;
}
.panel__tag b { color: var(--gold); font-weight: 500; }

/* tło panelu: kadr z jej własnego teledysku, mocno wyciemniony */
.panel__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.panel__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: grayscale(0.4);
}
.panel__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(10, 10, 11, 0.72) 42%, rgba(10, 10, 11, 0.94) 100%);
}
.panel > .wrap,
.panel > .panel__tag { position: relative; z-index: 2; }
.panel > .hero-bg { z-index: 0; }

/* ============================================================== hero ====== */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(200px, 24vw, 340px);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--f-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: clamp(14px, 2.4vh, 26px);
}
.hero-meta span { white-space: nowrap; }
.hero-meta b { color: var(--gold); font-weight: 500; }

/* Znak marki - fala z logo. Duży, bo to on jest podpisem artystki. */
.hero-lockup {
  display: block;
  width: clamp(210px, 26vw, 380px);
  margin-bottom: clamp(10px, 2vh, 22px);
  opacity: 0.95;
}

/* Nazwisko wielkie, wychodzące za krawędź - bez wyśrodkowania i bez kursywy */
.mega {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 15.5vw, 15rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: var(--cream);
  margin: 0 0 0 -0.045em;
  white-space: nowrap;
}
.mega em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 169, 110, 0.65);
  text-stroke: 1px rgba(201, 169, 110, 0.65);
}

.claim {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(0.75rem, 0.7rem + 0.35vw, 1rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: clamp(16px, 2.6vh, 34px) 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: clamp(18px, 3vh, 40px);
}

/* spis nagrań jak lista utworów na okładce */
.tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.tracklist li {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.tracklist b {
  font-family: var(--f-serif);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--gold);
}
.tracklist span { color: var(--text); }
.tracklist i { font-style: normal; color: var(--text-dim); }

/* Tło uwertury na telefonie. Na desktopie nieaktywne - tam portret stoi
   w kolumnie obok typografii. */
.hero-bg {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg picture { display: block; height: 100%; }

/* portret: wąska, wysoka kolumna wtopiona w tło */
.portrait-col {
  position: relative;
  align-self: end;
}
.portrait__cap {
  margin-top: 16px;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.portrait-col img {
  width: 100%;
  filter: grayscale(1);
  /* wygaszamy wszystkie krawędzie - portret jest wycinką z twardą maską,
     a prostokątny kadr na czarnym tle od razu to pokazuje */
  mask-image: radial-gradient(ellipse 68% 76% at 52% 44%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 68% 76% at 52% 44%, #000 30%, transparent 100%);
}

/* ====================================================== fala dźwiękowa ==== */
/* Logo Kamili to fala dźwięku. Tutaj ta sama fala reaguje na jej głos:
   w spoczynku oddycha, po włączeniu nagrania rysuje realne widmo z WebAudio. */
.spine {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--spine-h);
  z-index: 30;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 11, 0.86) 55%);
}
.spine canvas {
  display: block;
  width: 100%;
  height: calc(var(--spine-h) - 34px);
}
.spine__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter) 14px;
  pointer-events: auto;
}
.spine__now {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.spine__now b { color: var(--cream); font-weight: 500; }
.spine__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
}
.spine__dot[data-live="true"] { opacity: 1; animation: puls 1.6s ease-in-out infinite; }
@keyframes puls { 50% { opacity: 0.25; } }

/* wskaźnik paneli */
.dots { display: flex; align-items: center; gap: 10px; }
.dots button {
  width: 30px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.dots button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(244, 237, 224, 0.24);
  transition: background-color 0.25s, transform 0.25s;
}
.dots button:hover::after { background: var(--cream); }
.dots button[aria-current="true"]::after { background: var(--gold); transform: scaleY(3); }
.dots__count {
  font-family: var(--f-sans);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  min-width: 4.5ch;
}

/* podpowiedź kierunku przewijania - znika po pierwszym ruchu */
.swipe-hint {
  position: fixed;
  left: var(--gutter);
  bottom: calc(var(--spine-h) + 10px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-sans);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 3;
  transition: opacity 0.5s;
}
.swipe-hint svg { width: 34px; height: 8px; stroke: var(--gold); fill: none; }
.swipe-hint[data-hidden="true"] { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .swipe-hint svg { animation: przesuw 1.9s ease-in-out infinite; }
}
@keyframes przesuw {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50% { transform: translateX(7px); opacity: 1; }
}





/* mała linia nad nazwiskiem - imię jako podpis, nie jako drugi wielki napis */
.mega__small {
  display: block;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: clamp(0.75rem, 0.7rem + 0.5vw, 1.125rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 clamp(6px, 1.2vh, 16px) 0.3em;
  white-space: nowrap;
}

.spine__play {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(10, 10, 11, 0.6);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.spine__play:hover { background: var(--gold); color: var(--ink); }
.spine__play svg { width: 13px; height: 13px; fill: currentColor; }

/* karta odtwarzacza w panelu Głos */
.voice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 860px) {
  .voice-grid { grid-template-columns: 1fr; }
}


/* pasek domykający taśmę - na stronie głównej pełni rolę stopki, bo przy
   poziomym przewijaniu klasyczna stopka pod ekranem byłaby nieosiągalna */
.end-strip {
  margin-top: clamp(18px, 3vh, 32px);
  padding-top: clamp(14px, 2vh, 22px);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-size: 0.8125rem;
}
.socials--sm a { width: 34px; height: 34px; }
.socials--sm svg { width: 14px; height: 14px; }


/* ================================================== nagłówek podstrony ==== */
.page-head {
  padding-block: clamp(52px, 11vh, 132px) clamp(28px, 5vh, 56px);
}

/* wiersz realnych danych zamiast ozdobnej etykiety */
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 clamp(18px, 3vh, 34px);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.page-meta b { color: var(--gold); font-weight: 500; }

.display {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 8.4vw, 7.5rem);
  line-height: 0.86;
  letter-spacing: -0.038em;
  color: var(--cream);
  margin: 0 0 0 -0.03em;
  max-width: 18ch;
}
/* akcent konturem - czytelny, mocny i nie wygląda jak domyślny motyw */
.out {
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 169, 110, 0.72);
  text-stroke: 1px rgba(201, 169, 110, 0.72);
}
@supports not ((-webkit-text-stroke: 1px black) or (text-stroke: 1px black)) {
  .out { color: var(--gold); }
}

.page-head .lead { margin-top: clamp(20px, 3.4vh, 40px); }
.page-head + .section { padding-top: 0; }


/* etykieta sekcji z numerem - ten sam język, co numery paneli na taśmie */
.sec-tag {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 clamp(14px, 2vh, 24px);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.sec-tag b { color: var(--gold); font-weight: 500; }

/* ============================================================ przyciski == */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); background: transparent; color: var(--cream); }
.btn--block { width: 100%; justify-content: center; }

/* =============================================================== wideo == */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}
.video-frame::before,
.video-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
}
.video-frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.video-frame::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.video-frame iframe,
.video-frame .facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* zamiast iframe'a YouTube ładujemy miniaturę; player dociąga się po kliknięciu */
.facade {
  padding: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}
.facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.3s, transform 0.6s;
}
.facade:hover img { opacity: 0.9; transform: scale(1.02); }
.facade__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(10, 10, 11, 0.55);
  display: grid;
  place-items: center;
  transition: background-color 0.25s, transform 0.25s;
}
.facade:hover .facade__play { background: var(--gold); transform: translate(-50%, -50%) scale(1.06); }
.facade__play svg { width: 20px; height: 20px; fill: var(--gold-bright); margin-left: 3px; }
.facade:hover .facade__play svg { fill: var(--ink); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: clamp(28px, 4vw, 44px);
}
.video-card__meta { margin-top: 16px; }
.video-card__title {
  font-family: var(--f-serif);
  font-size: 1.375rem;
  color: var(--cream);
  line-height: 1.25;
}
.video-card__by {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-top: 6px;
}
.tag {
  display: inline-block;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 3px 9px;
  margin-bottom: 12px;
}

/* ======================================================== odtwarzacz ==== */
.player {
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, var(--ink-card), var(--ink-soft));
  padding: clamp(24px, 4vw, 36px);
}
.player__track { font-family: var(--f-serif); font-size: 1.5rem; color: var(--cream); }
.player__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 8px;
}
.player__row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}
.player__btn {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.player__btn:hover { background: var(--gold); color: var(--ink); }
.player__btn svg { width: 16px; height: 16px; fill: currentColor; }
.player__bar { flex: 1; display: flex; align-items: center; gap: 14px; }
.player__range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 2px;
  background: var(--line-soft);
  cursor: pointer;
}
.player__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}
.player__range::-moz-range-thumb {
  width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--gold);
}
.player__time {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  min-width: 5.5ch;
  text-align: right;
}

/* ========================================================== koncerty ==== */
.gig {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
}
.gig:last-child { border-bottom: 1px solid var(--line-soft); }
.gig__day {
  font-family: var(--f-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold-bright);
}
.gig__month {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}
.gig__title { font-family: var(--f-serif); font-size: 1.375rem; color: var(--cream); }
.gig__where { font-size: 0.875rem; color: var(--text-dim); margin-top: 6px; }
.gig--past { opacity: 0.55; }
@media (max-width: 700px) {
  .gig { grid-template-columns: 72px 1fr; }
  .gig > .btn { grid-column: 2; justify-self: start; }
}

.empty {
  border: 1px solid var(--line-soft);
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
}
.empty .title-md { margin-bottom: 14px; }

/* ============================================================ formularz = */
.form { display: grid; gap: 20px; max-width: 620px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input,
.field select,
.field textarea {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--cream);
  background: var(--ink-soft);
  border: 1px solid var(--line-soft);
  padding: 14px 16px;
  width: 100%;
}
.field textarea { min-height: 168px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); outline: none; }
.field--hp { position: absolute; left: -9999px; }
.form__note { font-size: 0.75rem; color: var(--text-dim); }
.form__msg { padding: 14px 16px; border: 1px solid var(--line); font-size: 0.9375rem; }
.form__msg[data-kind="ok"] { border-color: var(--gold); color: var(--gold-bright); }
.form__msg[data-kind="err"] { border-color: #a8555a; color: #e2a4a7; }

/* ============================================================== siatki == */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split--wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
@media (max-width: 860px) {
  .split, .split--wide { grid-template-columns: 1fr; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.card {
  border: 1px solid var(--line-soft);
  padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(170deg, rgba(20, 20, 22, 0.9), rgba(16, 16, 18, 0.6));
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { font-size: 0.9375rem; }

.list-clean { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list-clean li { position: relative; padding-left: 22px; font-size: 0.9375rem; }
.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

.repertoire { columns: 2; column-gap: clamp(24px, 4vw, 48px); }
.repertoire li { break-inside: avoid; }
@media (max-width: 620px) { .repertoire { columns: 1; } }

/* ============================================================== stopka == */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(40px, 6vw, 64px);
  margin-top: var(--section-y);
}
.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  justify-content: space-between;
  align-items: flex-start;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  transition: background-color 0.25s, color 0.25s;
}
.socials a:hover { background: var(--gold); color: var(--ink); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--gold); }
.copy { font-size: 0.75rem; color: var(--text-dim); margin-top: 28px; }

/* ============================================================== reszta == */
/* Plakietka podglądu MUSI być poza przepływem. W przepływie dokłada swoje
   38 px nad <main>, dokument staje się wyższy od ekranu i podgląd przestaje
   pokazywać ten sam układ, co wersja docelowa. */
.preview-flag {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  z-index: 60;
  max-width: calc(100% - 2 * var(--gutter));
  background: rgba(42, 29, 5, 0.94);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 7px 16px;
}
body.is-reel .preview-flag { bottom: calc(var(--spine-h) + 10px); }
@media (max-width: 860px) {
  .preview-flag { font-size: 0.625rem; padding: 6px 12px; }
  body.is-reel .preview-flag { bottom: 12px; }
}

main { position: relative; z-index: 2; }

/* ###########################################################################
   REGUŁY DLA TELEFONU NA KOŃCU PLIKU - CELOWO.
   Przy równej specyficzności wygrywa reguła późniejsza. Gdy ten blok stał
   wyżej, bazowe definicje `.video-grid`, `.spine` czy `.tracklist li`
   nadpisywały układ mobilny i np. karuzela nagrań w ogóle nie działała.
   ########################################################################### */
/* ============================================ TELEFON: pionowa historia ====
   Na telefonie strona NIE jest rozłożoną w pion wersją desktopową. To osobny
   układ: pełnoekranowe kadry przewijane w pionie ze snapowaniem, jeden temat
   na ekran, zdjęcia i wideo na całą szerokość - bez pudełek i bez pustych
   marginesów. Ten sam pomysł co taśma na desktopie, obrócony o 90 stopni.  */
@media (max-width: 860px) {
  body.is-reel { overflow: hidden; }

  .reel {
    display: block;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    /* min-height, NIE height: przy sztywnej wysokości i overflow:hidden
       dłuższy kadr po prostu ucinał tekst. Snap nadal łapie początek kadru. */
    height: auto;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: visible;
    padding: calc(var(--header-h-sm) + 34px) 0 calc(var(--spine-h-sm) + 26px);
    border: 0;
  }
  .panel > .wrap { padding-inline: var(--gutter); max-width: none; }

  /* numer kadru: znacznik u góry, nad treścią, poza siatką tekstu */
  .panel > .panel__tag {
    position: static;
    top: auto;
    margin: 0 var(--gutter) 16px;
    font-size: 0.5625rem;
    letter-spacing: 0.3em;
  }

  /* Tła paneli wyłączone na telefonie: miniatury z YouTube mają wypalone
     napisy, które rozciągnięte na pełny ekran wyglądają jak błąd. Na małym
     ekranie rolę obrazu pełni sam kadr wideo albo pasek zdjęcia w uwerturze. */
  .panel__bg { display: none; }

  /* ---- 01 uwertura: struktura okładki ----------------------------------
     Zdjęcie NIE idzie na cały ekran: źródło ma 512 px, więc rozciągnięte
     robi się rozmyte. Zamiast tego pasek u góry, gdzie obraz jest
     POMNIEJSZANY (390 z 512) i wygląda ostro, a typografia siedzi pod nim
     na czystej czerni. */
  /* Uwertura: treść siada nad paskiem, nie w środku kadru - inaczej pod
     przyciskami zostaje 200 px pustego pola, a nad nimi zdjęcie jest ucięte. */
  .panel--hero { justify-content: flex-end; }
  .hero-grid { display: block; }
  .portrait-col { display: none; }
  .hero-bg {
    display: block;
    inset: 0 0 auto 0;
    height: 46dvh;
  }
  .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    filter: grayscale(1) contrast(1.06);
  }
  .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(10, 10, 11, 0.5) 0%,
      rgba(10, 10, 11, 0.08) 42%,
      rgba(10, 10, 11, 0.75) 84%,
      var(--ink) 100%
    );
  }

  .hero-meta {
    gap: 4px 14px;
    margin-bottom: 14px;
    font-size: 0.5625rem;
    letter-spacing: 0.22em;
  }
  .hero-lockup { width: 132px; margin-bottom: 14px; opacity: 0.9; }
  .mega {
    font-size: clamp(3.4rem, 19vw, 5.4rem);
    line-height: 0.84;
    letter-spacing: -0.04em;
    white-space: normal;
    margin-left: -0.03em;
  }
  .mega__small {
    font-size: 0.6875rem;
    letter-spacing: 0.34em;
    margin-bottom: 8px;
  }
  .claim {
    margin-top: 14px;
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
  }
  .hero-actions { margin-top: 22px; gap: 10px; }

  /* ---- 02 teledysk: kadr od krawędzi do krawędzi, w zwykłym przepływie -- */
  .panel--film .split { display: block; }
  .panel--film .split > div:first-child {
    /* wideo wychodzi za marginesy - na telefonie pełna szerokość wygląda
       mocniej niż obrazek w ramce z odstępami */
    margin-inline: calc(-1 * var(--gutter));
    margin-bottom: 22px;
  }
  .panel--film .video-frame { border-inline: 0; }
  .panel--film .video-frame::before,
  .panel--film .video-frame::after { display: none; }
  .panel--film .facade__play { width: 66px; height: 66px; }
  .panel--film .title-lg { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .hide-sm { display: none !important; }   /* treść pomijana na telefonie */

  /* ---- 03 głos: duży odtwarzacz + skrócony repertuar -------------------- */
  .voice-grid { display: block; }
  .voice-grid > div + div { margin-top: 26px; }
  .tracklist li:nth-child(n + 5) { display: none; }   /* 4 pozycje wystarczą */
  .tracklist li { padding: 7px 0; font-size: 0.75rem; }

  /* ---- 04 nagrania: karuzela przesuwana w bok wewnątrz kadru ----------- */
  .video-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .video-grid::-webkit-scrollbar { display: none; }
  .video-grid > * {
    flex: 0 0 74vw;
    scroll-snap-align: center;
  }
  .video-card__title { font-size: 1.0625rem; }
  .video-card__by { font-size: 0.6875rem; }

  /* ---- 05 booking: mail jako duży cel dotknięcia ----------------------- */
  .panel--end .split { display: block; }
  .panel--end .cards { display: none; }         /* formaty są na /koncerty/ */
  .end-strip {
    margin-top: 22px;
    padding-top: 18px;
    gap: 14px 18px;
  }
  .end-strip > a[href^="mailto"] {
    width: 100%;
    font-size: 1.0625rem;
    letter-spacing: 0.02em;
  }

  /* ---- wspólne: mniej ozdób, większe cele dotknięcia ------------------- */
  /* Złota kreska na telefonie znika, ale jej margines zostaje jako odstęp -
     przy display:none nagłówek zlepiał się z akapitem. */
  .panel .rule {
    height: 0;
    width: 0;
    background: none;
    margin: 16px 0;
  }
  .panel .lead { font-size: 1rem; line-height: 1.62; }
  .panel .title-lg { font-size: clamp(2.1rem, 9.6vw, 2.8rem); }
  .panel .display { font-size: clamp(2.3rem, 11vw, 3.2rem); }

  /* ---- pasek dolny: fala, odtwarzanie, pozycja w historii -------------- */
  .spine {
    position: fixed;
    height: var(--spine-h-sm);
    background: linear-gradient(180deg, transparent, rgba(10, 10, 11, 0.92) 45%);
  }
  .spine canvas { height: 38px; }
  .spine__bar { padding: 0 var(--gutter) 12px; gap: 12px; }
  .spine__now { gap: 10px; font-size: 0.5625rem; letter-spacing: 0.16em; }
  .spine__now > span:nth-of-type(3) { display: none; }  /* podpis "posłuchaj" */
  .spine__play { width: 38px; height: 38px; }
  .dots__count { font-size: 0.5625rem; }

  /* kropki jako pionowy wskaźnik na krawędzi ekranu */
  .dots {
    position: fixed;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 7px;
    z-index: 35;
  }
  .dots button { width: 22px; height: 12px; }
  .dots button::after {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: 100%;
    transform: none;
  }
  .dots button[aria-current="true"]::after {
    background: var(--gold);
    transform: scaleX(3);
  }

  /* na telefonie pionowe przewijanie jest oczywiste, a wskaźnik kadrów
     stoi na krawędzi - podpowiedź tylko zabierałaby miejsce */
  .swipe-hint { display: none; }

  /* nagłówek: niższy, logo mniejsze, menu jako pełny ekran */
  .site-header { min-height: var(--header-h-sm); }
  .site-header__inner { min-height: var(--header-h-sm); }
  .brand img { width: 132px; }
  .nav-toggle { padding: 8px 11px; font-size: 0.625rem; }
  .nav {
    top: var(--header-h-sm);
    height: calc(100dvh - var(--header-h-sm));
    justify-content: center;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(18px);
    padding: 0 var(--gutter);
  }
  .nav a {
    font-family: var(--f-serif);
    font-size: 2rem;
    letter-spacing: -0.01em;
    text-transform: none;
    padding: 16px 0;
    color: var(--cream);
  }
  .nav a[aria-current="page"] { color: var(--gold); }
}
/* --------------------------------------------------- telefon: szczegóły --- */
@media (max-width: 560px) {
  .btn {
    padding: 15px 18px;
    letter-spacing: 0.14em;
  }
  .hero-actions .btn,
  .page-head .btn,
  .form [type="submit"],
  .empty .btn {
    width: 100%;
    justify-content: center;
  }
  .claim { letter-spacing: 0.22em; }
  .mega__small { letter-spacing: 0.3em; }
  .hero-meta { gap: 6px 16px; font-size: 0.5625rem; letter-spacing: 0.2em; }
  .page-meta { font-size: 0.5625rem; letter-spacing: 0.2em; gap: 6px 14px; }
  .display { font-size: clamp(2.4rem, 11vw, 3.4rem); max-width: none; }
  .hero-lockup { width: clamp(160px, 46vw, 220px); }
}
