/* TRZASK — wygląd. Mobile-first od 320 px, neo-brutalizm: płaskie bloki, grube linie, twarde cienie.
   Kontrasty (AA): tusz #111 na żółtym/czerwonym/różowym/papierze, biel i żółć na niebieskim. */
:root {
  --paper: #F4F1EA;
  --ink: #111111;
  --y: #FFE500;
  --r: #FF3D2E;
  --b: #2340FF;
  --p: #FF7AD9;
  --w: #FFFFFF;
  --rule: 3px;
  --sh: 6px;
  --focus: var(--ink);
  --pad: 14px;
  --hdr: 58px;
  --disp: "Science Gothic", "Arial Narrow", Impact, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --bd: 26s;
}
@media (min-width: 768px) { :root { --rule: 4px; --sh: 10px; --pad: 28px; --hdr: 66px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 8px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-stretch: 87.5%; font-weight: 400;
  font-size: 0.875rem; line-height: 1.6; overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 0.9375rem; } }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
strong { font-weight: 700; }
kbd { font: inherit; font-weight: 700; display: inline-block; min-width: 1.6em; padding: 0 .3em; border: 2px solid currentColor; border-bottom-width: 3px; text-align: center; line-height: 1.35; margin: 0 .1em; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.no-js .js-only { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
main { overflow-x: clip; }
.skip { position: fixed; left: 10px; top: 10px; z-index: 200; padding: .7rem 1rem; background: var(--y); color: var(--ink); border: var(--rule) solid var(--ink); font-weight: 700; text-decoration: none; transform: translateY(-180%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.tag { display: inline-block; font-family: var(--mono); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; padding: .15em .5em; border: 2px solid currentColor; vertical-align: middle; white-space: nowrap; }

/* ================= NAGŁÓWEK ================= */
.top { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--rule) solid var(--ink); }
.top-in { height: var(--hdr); max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand-mark { width: 34px; height: 34px; padding: 5px; background: var(--r); border: var(--rule) solid var(--ink); fill: var(--ink); }
.brand-word { font-family: var(--disp); font-weight: 900; font-stretch: 70%; font-size: 1.6rem; line-height: 1; letter-spacing: .01em; }
.nav { margin-left: auto; }
.nav ul { display: flex; }
.nav a { display: block; padding: .5rem .8rem; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border-left: 2px solid var(--ink); }
.nav li:last-child a { border-right: 2px solid var(--ink); }
.nav a:hover { background: var(--y); }
.deck { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav + .deck { margin-left: 14px; }
.beat { display: none; gap: 3px; margin-right: 4px; }
.beat i { width: 10px; height: 10px; border: 2px solid var(--ink); background: transparent; }
.beat i.on { background: var(--ink); }
.tbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px; background: var(--w); border: var(--rule) solid var(--ink); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; box-shadow: 3px 3px 0 var(--ink); }
.tbtn:hover { background: var(--y); }
.tbtn:active { transform: translate(3px, 3px); box-shadow: none; }
.tbtn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.tbtn .tbtn-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tbtn-play[data-on="true"] { background: var(--r); }
.tbtn-mute[aria-pressed="true"] { background: var(--ink); color: var(--y); }
.i-stop, [data-on="true"] > .i-play { display: none; }
[data-on="true"] > .i-stop { display: block; }
.i-off, .tbtn-mute[aria-pressed="true"] .i-on { display: none; }
.tbtn-mute[aria-pressed="true"] .i-off { display: block; }
.burger { display: grid; gap: 5px; width: 18px; }
.burger i { display: block; height: 3px; background: currentColor; transition: transform .2s; }
[aria-expanded="true"] .burger i:first-child { transform: translateY(4px) rotate(45deg); }
[aria-expanded="true"] .burger i:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 1099px) {
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--y); border-bottom: var(--rule) solid var(--ink); display: none; }
  .js .nav.open { display: block; }
  .js .nav ul { flex-direction: column; max-width: 1440px; margin: 0 auto; }
  .js .nav a { border: 0; border-top: 2px solid var(--ink); padding: .9rem var(--pad); font-size: .9rem; }
  .js .nav li:first-child a { border-top: 0; }
  .js .nav a:hover { background: var(--w); }
  .no-js .top-in { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .no-js .nav { width: 100%; margin: 0; }
  .no-js .nav ul { flex-wrap: wrap; }
  .no-js .nav a { white-space: nowrap; }
}
@media (min-width: 420px) { .tbtn-play .tbtn-l, .tbtn-mute .tbtn-l { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
@media (min-width: 560px) { .tbtn-menu .tbtn-l { position: static; width: auto; height: auto; overflow: visible; clip: auto; } .beat { display: inline-flex; } }
@media (min-width: 1100px) { .tbtn-menu { display: none !important; } .deck { margin-left: 14px; } }

/* ================= HERO ================= */
.hero { --k: 0; border-bottom: var(--rule) solid var(--ink); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; max-width: 1440px; margin: 0 auto; border-left: 0; }
.hero-kick { display: flex; flex-wrap: wrap; border-bottom: var(--rule) solid var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .6875rem; }
.hero-kick span { padding: .55rem var(--pad); border-right: 2px solid var(--ink); }
.blk { --bg: var(--r); --fg: var(--ink); background: var(--bg); color: var(--fg); border-bottom: var(--rule) solid var(--ink); position: relative; transition: background-color .25s steps(2), color .25s steps(2); }
.pal-0 { --bg: var(--r); --fg: var(--ink); }
.pal-1 { --bg: var(--b); --fg: var(--w); }
.pal-2 { --bg: var(--y); --fg: var(--ink); }
.pal-3 { --bg: var(--p); --fg: var(--ink); }
.hero-word { overflow: hidden; padding: 10px var(--pad) 4px; container-type: inline-size; }
.h1 { font-family: var(--disp); font-weight: 900; line-height: .8; text-transform: uppercase; }
/* mobile: dwa wiersze TRZ / ASK; od 600 px jeden wiersz. Litery rozsunięte do krawędzi, więc puls szerokości nie zmienia szerokości słowa */
.h1-w { display: block; font-size: calc(100cqi / 2.08); }
.h1-row { display: flex; justify-content: space-between; align-items: flex-end; height: .84em; }
.h1-row + .h1-row { margin-top: .04em; }
.h1-row > span { --p: 0; display: block; font-stretch: calc(56% + var(--p) * 18%); font-weight: calc(700 + var(--p) * 200); }
@media (min-width: 600px) {
  .h1-w { display: flex; justify-content: space-between; font-size: calc(100cqi / 4.02); }
  .h1-row { display: contents; }
  .h1-w > .h1-row > span { height: .84em; }
}
.hero-lead { padding: 22px var(--pad); display: flex; align-items: flex-end; }
.lead { font-size: 1rem; font-weight: 500; line-height: 1.5; max-width: 34em; }
.hero-next { padding: 18px var(--pad); display: grid; gap: 4px; align-content: start; }
.next-l { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.next-d { font-family: var(--disp); font-weight: 800; font-stretch: 70%; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
.next-n { font-size: 3.6rem; font-stretch: 60%; display: inline-block; margin-right: 6px; vertical-align: -0.12em; }
.next-t { font-weight: 700; }
.next-a { font-weight: 700; justify-self: start; }
.hero-go { padding: 22px var(--pad) 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.go { width: min(250px, 70vw); aspect-ratio: 1; border-radius: 50%; border: var(--rule) solid var(--ink); background: var(--ink); color: var(--y); box-shadow: var(--sh) var(--sh) 0 var(--ink); display: grid; place-items: center; padding: 18px; transform: rotate(-8deg) scale(calc(1 + var(--k) * .05)); transition: background-color .15s; position: relative; }
.go::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2px dashed currentColor; }
.go:hover { background: var(--b); color: var(--w); }
.go:active { box-shadow: none; transform: rotate(-8deg) translate(var(--sh), var(--sh)); }
.go-in { display: grid; gap: 6px; text-align: center; }
.go-t { font-family: var(--disp); font-weight: 900; font-stretch: 62%; font-size: 2.6rem; line-height: .9; text-transform: uppercase; }
.go-s { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.35; padding: 0 10px; }
.go[data-on="true"] { background: var(--y); color: var(--ink); }
.go-link { font-weight: 700; }
.sticker { position: absolute; z-index: 3; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .6875rem; line-height: 1.15; padding: .55em .8em; border: var(--rule) solid var(--ink); background: var(--w); box-shadow: 4px 4px 0 var(--ink); pointer-events: none; }
.st-1 { right: 10px; top: 46px; transform: rotate(6deg); background: var(--y); }
.st-2 { display: none; }
.st-3 { display: none; }
@media (min-width: 600px) {
  .hero-grid { grid-template-columns: repeat(6, 1fr); }
  .hero-kick, .hero-word { grid-column: 1 / -1; }
  .hero-lead { grid-column: 1 / 5; border-right: var(--rule) solid var(--ink); }
  .hero-next { grid-column: 5 / -1; }
  .hero-go { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 32px; }
  .go { width: 220px; }
  .st-2 { display: block; right: 18%; top: auto; bottom: 80px; font-family: var(--disp); font-size: 2rem; font-stretch: 60%; background: var(--r); border-radius: 50%; width: 76px; height: 76px; display: grid; place-items: center; padding: 0; transform: rotate(-12deg); }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(12, 1fr); min-height: calc(100vh - var(--hdr)); min-height: calc(100svh - var(--hdr)); grid-template-rows: auto 1fr auto; }
  .hero-word { display: flex; align-items: flex-end; padding-top: 12px; }
  .h1-w { width: 100%; }
  .hero-word .h1 { flex: 1; min-width: 0; }
  .hero-lead { grid-column: 1 / 6; border-bottom: 0; padding: 28px var(--pad); }
  .lead { font-size: 1.125rem; }
  .hero-next { grid-column: 6 / 9; border-right: var(--rule) solid var(--ink); border-bottom: 0; padding: 24px; }
  .hero-go { grid-column: 9 / -1; border-bottom: 0; flex-direction: column; justify-content: center; padding: 22px; }
  .go { width: 210px; }
  .st-1 { top: 64px; right: 3%; font-size: .8125rem; }
  .st-2 { right: auto; left: 40%; bottom: auto; top: 20px; }
  .st-3 { display: block; left: 26%; top: 70px; transform: rotate(-4deg); background: var(--p); }
}
@media (min-width: 1300px) { .next-n { font-size: 5rem; } .go { width: 240px; } .go-t { font-size: 3rem; } }

/* ================= PASY (marquee) ================= */
.band { overflow: hidden; border-bottom: var(--rule) solid var(--ink); background: var(--y); color: var(--ink); position: relative; z-index: 2; }
.band-r { background: var(--r); }
.band-k { background: var(--ink); color: var(--y); }
.band-b { background: var(--b); color: var(--w); }
.band-tilt { transform: rotate(-1.4deg); margin: 14px -10px -14px; border-top: var(--rule) solid var(--ink); }
.band-tilt2 { transform: rotate(1.2deg); margin: -10px -10px -10px; border-top: var(--rule) solid var(--ink); }
.band-t { display: inline-block; white-space: nowrap; font-family: var(--disp); font-weight: 900; font-stretch: 75%; font-size: 1.6rem; line-height: 1; padding: .5rem 0 .45rem; text-transform: uppercase; letter-spacing: .01em; will-change: transform; }
@media (min-width: 768px) { .band-t { font-size: 2.6rem; } }
.js .band-t { animation: band var(--bd) linear infinite; }
.js .band-rev { animation-direction: reverse; }
@keyframes band { to { transform: translateX(-50%); } }

/* ================= SEKCJE + PRZEJŚCIA ================= */
.sec { position: relative; padding: 64px 0 72px; border-bottom: var(--rule) solid var(--ink); }
@media (min-width: 768px) { .sec { padding: 104px 0 112px; } }
.sec-head { display: grid; gap: 16px; margin-bottom: 34px; max-width: 980px; }
.sec-n { justify-self: start; background: var(--ink); color: var(--paper); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; padding: .35em .7em; }
.h2 { font-family: var(--disp); font-weight: 900; font-stretch: 50%; font-size: clamp(2rem, 10.5vw, 6.6rem); line-height: .9; text-transform: uppercase; letter-spacing: -.005em; }
.h2-b { --hb: var(--y); display: inline; background: linear-gradient(var(--hb), var(--hb)) 0 58% / 100% .9em no-repeat; color: var(--ink); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .08em; }
.sec-p { font-size: 1rem; max-width: 40em; }
.h3 { font-family: var(--disp); font-weight: 900; font-stretch: 70%; font-size: 2rem; line-height: .95; text-transform: uppercase; }
/* twarde przejście kolorem: blok zjeżdża w prawo, odsłaniając sekcję (tylko z JS i bez ograniczenia ruchu) */
.wipe::before, .wipe::after { content: ""; position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.wipe::after { background: var(--wipe, var(--y)); content: attr(data-label); font-family: var(--disp); font-weight: 900; font-stretch: 60%; font-size: clamp(6rem, 30vw, 26rem); line-height: .8; color: var(--ink); display: flex; align-items: flex-start; padding: 40px var(--pad); overflow: hidden; }
.wipe::before { background: var(--ink); }
.wipe.in::after { animation: wipeOut .62s cubic-bezier(.76, 0, .24, 1) .05s forwards; }
.wipe.in::before { animation: wipeOut .5s cubic-bezier(.76, 0, .24, 1) .3s forwards; }
@keyframes wipeOut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); visibility: hidden; } }
.wipe.done::before, .wipe.done::after { display: none; }

/* ================= MASZYNA ================= */
.sec-machine { background: var(--paper); }
.sec-machine .h2-b { --hb: var(--b); color: var(--w); }
.machine { --k: 0; background: var(--w); border: var(--rule) solid var(--ink); box-shadow: var(--sh) var(--sh) 0 var(--ink); padding: 12px; display: grid; gap: 14px; }
@media (min-width: 768px) { .machine { padding: 22px; gap: 18px; } }
.m-top { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch; }
.m-lcd { background: var(--ink); color: var(--y); display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; padding: 8px 12px; border: var(--rule) solid var(--ink); }
.lcd-l { font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.lcd-v { font-family: var(--disp); font-weight: 800; font-stretch: 60%; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.m-scope { display: none; width: 100%; height: 88px; background: var(--paper); border: var(--rule) solid var(--ink); }
.mbtn { height: 100%; min-height: 64px; min-width: 104px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--r); color: var(--ink); border: var(--rule) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-family: var(--disp); font-weight: 900; font-stretch: 70%; font-size: 1.6rem; text-transform: uppercase; }
.mbtn svg { width: 22px; height: 22px; fill: currentColor; }
.mbtn:hover { background: var(--y); }
.mbtn:active { transform: translate(4px, 4px); box-shadow: none; }
.mbtn[data-on="true"] { background: var(--ink); color: var(--y); }
@media (min-width: 640px) {
  .m-top { grid-template-columns: auto 1fr auto; }
  .m-scope { display: block; height: 88px; align-self: center; }
}
/* 320–419 px: LCD w jednym rzędzie, GRAJ/STOP na całą szerokość pod spodem — nic nie wystaje poza panel */
.machine > *, .m-top > *, .m-ctrl > *, .grid-wrap > *, .grid > * { min-width: 0; }
@media (max-width: 419px) {
  .m-top { grid-template-columns: 1fr; gap: 8px; }
  .m-lcd { grid-template-columns: auto 1fr auto 1fr; padding: 8px 10px; }
  .lcd-v { font-size: 1.75rem; }
  .mbtn { width: 100%; min-width: 0; min-height: 52px; font-size: 1.4rem; }
  .tempo-row { gap: 6px; }
  .tempo-row output { font-size: 1.35rem; min-width: 1.9em; }
}
@media (max-width: 359px) { .machine .trk { gap: 4px; } .machine .step { min-height: 28px; } }
.m-ctrl { display: grid; gap: 14px; }
@media (min-width: 900px) { .m-ctrl { grid-template-columns: minmax(260px, 1fr) auto; align-items: end; } .m-fx { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .m-ctrl { grid-template-columns: minmax(280px, 1fr) auto auto; } .m-fx { grid-column: auto; } }
.m-tempo label, .m-presets legend { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; margin-bottom: 6px; padding: 0; }
.unit { font-weight: 400; }
.tempo-row { display: flex; align-items: center; gap: 8px; }
.tempo-row output { font-family: var(--disp); font-weight: 800; font-stretch: 60%; font-size: 1.6rem; min-width: 2.2em; text-align: right; line-height: 1; }
.sbtn { width: 40px; height: 40px; flex: none; border: var(--rule) solid var(--ink); background: var(--paper); font-weight: 800; font-size: 1.2rem; line-height: 1; display: grid; place-items: center; padding: 0; }
.sbtn:hover { background: var(--y); }
input[type="range"] { flex: 1; min-width: 0; height: 40px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; background: var(--ink); }
input[type="range"]::-moz-range-track { height: 10px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 34px; margin-top: -12px; background: var(--y); border: var(--rule) solid var(--ink); border-radius: 0; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 28px; background: var(--y); border: var(--rule) solid var(--ink); border-radius: 0; }
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pbtn { min-height: 40px; padding: 0 12px; border: var(--rule) solid var(--ink); background: var(--paper); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.pbtn:hover { background: var(--y); }
.pbtn[aria-pressed="true"] { background: var(--ink); color: var(--y); }
.pbtn-alt { background: var(--w); border-style: dashed; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .8125rem; cursor: pointer; min-height: 40px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 52px; height: 28px; border: var(--rule) solid var(--ink); background: var(--paper); position: relative; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: var(--ink); transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--y); }
.switch input:checked + .switch-ui::after { transform: translateX(24px); }
.switch input:focus-visible + .switch-ui { outline: 4px solid var(--ink); outline-offset: 3px; }

.grid-wrap { display: grid; gap: 6px; }
.steps-ruler { display: none; }
.grid { display: grid; gap: 12px; }
.trk { --tc: var(--r); --tf: var(--ink); display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.trk-h { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }
.trk-h::before { content: ""; width: 14px; height: 14px; background: var(--tc); border: 2px solid var(--ink); flex: none; }
.t-snare { --tc: var(--b); --tf: var(--w); }
.t-clap { --tc: var(--p); }
.t-hat { --tc: var(--y); }
.t-bass { --tc: var(--ink); --tf: var(--y); }
.cell { display: block; }
.step { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; min-height: 30px; padding: 0; border: var(--rule) solid var(--ink); background: var(--paper); color: var(--tf); font-family: var(--disp); font-weight: 800; font-stretch: 60%; font-size: .9rem; line-height: 1; position: relative; transition: transform .08s; }
.step.q { background: #E4DFD3; }
.step:hover { background: #fff6a8; }
.step[aria-pressed="true"] { background: var(--tc); }
.step .n { pointer-events: none; }
.step:not([aria-pressed="true"]) .n { display: none; }
.step.now { box-shadow: 0 0 0 3px var(--ink); z-index: 1; }
.step.now::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: -10px; height: 4px; background: var(--ink); }
.step[aria-pressed="true"].hit { transform: scale(1.14); }
.step:focus-visible { outline-offset: 2px; z-index: 2; }
@media (min-width: 900px) {
  .steps-ruler { display: grid; grid-template-columns: 112px repeat(16, 1fr); column-gap: 5px; font-weight: 700; font-size: .6875rem; text-align: center; }
  .steps-ruler::before { content: ""; }
  .steps-ruler span:nth-child(4n + 1) { background: var(--ink); color: var(--paper); }
  .grid { gap: 8px; }
  .trk { grid-template-columns: 112px repeat(16, 1fr); gap: 5px; align-items: center; }
  .trk-h { grid-column: auto; }
  .cell:nth-child(4n + 2):not(:nth-child(2)) { margin-left: 6px; }
  .steps-ruler span:nth-child(4n + 1):not(:first-child) { margin-left: 6px; }
  .step { font-size: 1.05rem; }
}
.m-help { font-size: .75rem; line-height: 1.9; }
.noscript { padding: 16px; border: var(--rule) dashed var(--ink); background: var(--y); font-weight: 700; }

/* ================= LINE-UP: ściana z plakatami ================= */
.sec-lineup { background: var(--b); color: var(--w); --focus: var(--y); overflow: hidden;
  background-image: linear-gradient(rgba(255,255,255,.08) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.08) 2px, transparent 2px);
  background-size: 120px 60px, 120px 60px; }
.sec-lineup .sec-n { background: var(--y); color: var(--ink); }
.wall { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px 18px; padding: 10px 6px 0; }
@media (min-width: 480px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } .poster article { aspect-ratio: 3 / 4; } }
@media (min-width: 860px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; } }
@media (min-width: 1180px) { .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.poster { --pb: var(--y); --pf: var(--ink); --k: 0; position: relative; transform: rotate(var(--rot, 0deg)) scale(calc(1 + var(--k) * .035)); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.poster article { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 100%; padding: 18px 16px 16px; background: var(--pb); color: var(--pf); border: var(--rule) solid var(--ink); box-shadow: 8px 8px 0 rgba(0,0,0,.45); overflow: hidden; container-type: inline-size; }
.poster::before { content: ""; position: absolute; z-index: 3; top: -12px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: rgba(244, 241, 234, .82); border: 1px solid rgba(0,0,0,.18); transform: rotate(-3deg); }
.poster article::after { content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 0; background: linear-gradient(135deg, var(--pb) 0 45%, rgba(0,0,0,.35) 50%, #d9d4c7 52%, #fff 100%); box-shadow: -4px -4px 8px rgba(0,0,0,.25); transition: width .25s, height .25s; }
.poster:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); z-index: 4; }
.poster:hover article::after, .poster:focus-within article::after { width: 54px; height: 54px; }
.p-r { --pb: var(--r); }
.p-w { --pb: var(--w); }
.p-b { --pb: var(--ink); --pf: var(--y); }
.p-p { --pb: var(--p); }
.p-k { --pb: var(--paper); --pf: var(--b); }
.p-meta { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .6875rem; border-bottom: 3px solid currentColor; padding-bottom: 8px; }
.p-name { font-family: var(--disp); font-weight: 900; font-stretch: 55%; font-size: 19cqi; line-height: .84; text-transform: uppercase; hyphens: manual; overflow-wrap: normal; flex: 1; }
.p-genre { font-weight: 700; font-size: .8125rem; }
.p-bar { height: 26px; background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px 6px, transparent 6px 10px, currentColor 10px 14px, transparent 14px 16px); opacity: .9; }
.p-play { align-self: flex-start; min-height: 40px; padding: 0 12px; border: 3px solid var(--ink); background: var(--ink); color: var(--w); font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 2; }
.p-play::before { content: ""; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.p-play[aria-pressed="true"]::before { width: 10px; height: 10px; border: 0; background: currentColor; }
.p-b .p-play { background: var(--y); color: var(--ink); }
.p-play:hover { background: var(--w); color: var(--ink); }
.p-play[aria-pressed="true"] { background: var(--w); color: var(--ink); }
.poster .p-play:focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 7px var(--w); }
.js .wall.ready .poster { opacity: 0; }
.js .wall.ready .poster.slap { opacity: 1; animation: slap .46s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: var(--d, 0s); }
@keyframes slap {
  0% { opacity: 0; transform: translate(-18px, -40px) rotate(calc(var(--rot, 0deg) - 14deg)) scale(1.45); }
  55% { opacity: 1; transform: rotate(calc(var(--rot, 0deg) + 1.5deg)) scale(.95); }
  100% { opacity: 1; transform: rotate(var(--rot, 0deg)) scale(1); }
}
.poster.slap:hover { animation: none; }

/* ================= KALENDARZ ================= */
.sec-cal { background: var(--paper); }
.sec-cal .h2-b { --hb: var(--r); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.chip { min-height: 40px; padding: 0 14px; border: var(--rule) solid var(--ink); background: var(--w); font-weight: 800; text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; }
.chip:hover { background: var(--y); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--y); }
.filter-n { margin-left: auto; font-weight: 700; font-size: .8125rem; }
.cal { border-top: var(--rule) solid var(--ink); }
.ev { display: grid; grid-template-columns: 82px 1fr; column-gap: 14px; row-gap: 8px; padding: 14px 0; border-bottom: var(--rule) solid var(--ink); align-items: start; transition: background-color .15s; }
.ev[hidden] { display: none; }
.ev-d { grid-row: span 2; display: grid; justify-items: center; background: var(--y); border: var(--rule) solid var(--ink); padding: 6px 4px 8px; text-align: center; line-height: 1; }
.ev-day { font-family: var(--disp); font-weight: 900; font-stretch: 55%; font-size: 2.6rem; line-height: .9; }
.ev-fest .ev-day { font-size: 1.7rem; line-height: 1.1; }
.ev-m, .ev-w { font-weight: 800; text-transform: uppercase; font-size: .6875rem; letter-spacing: .06em; }
.ev-t { font-family: var(--disp); font-weight: 900; font-stretch: 70%; font-size: 1.5rem; line-height: .95; text-transform: uppercase; margin-bottom: 6px; }
.ev-x { font-size: .8125rem; }
.ev-h { font-weight: 700; font-size: .8125rem; display: inline; }
.ev-h, .ev-k { grid-column: 2; }
.ev-k { justify-self: start; font-weight: 800; text-transform: uppercase; font-size: .6875rem; letter-spacing: .06em; padding: .3em .7em; border: 2px solid var(--ink); }
.k-klub { background: var(--w); }
.k-warsztaty { background: var(--p); }
.k-festiwal { background: var(--ink); color: var(--y); }
.ev-fest { background: var(--r); }
.ev-fest .ev-d { background: var(--w); }
.ev:hover { background: var(--y); }
.ev:hover .ev-d { background: var(--w); }
@media (min-width: 768px) {
  .ev { grid-template-columns: 110px 1fr 150px 130px; column-gap: 24px; padding: 18px 14px; align-items: center; }
  .ev-d { grid-row: auto; }
  .ev-day { font-size: 3.6rem; }
  .ev-fest .ev-day { font-size: 2.3rem; }
  .ev-t { font-size: 2.1rem; }
  .ev-h, .ev-k { grid-column: auto; }
  .ev-k { justify-self: end; }
}

/* ================= BILETY ================= */
.sec-tix { background: var(--ink); color: var(--paper); --focus: var(--y); }
.sec-tix .sec-n { background: var(--y); color: var(--ink); }
.sec-tix .h2-b { --hb: var(--p); }
.tix { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 1024px) { .tix { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; } }
.tk { --tb: var(--y); --tf: var(--ink); display: grid; grid-template-columns: 1fr; background: var(--tb); color: var(--tf); border: var(--rule) solid var(--paper);
  -webkit-mask: radial-gradient(circle 12px at 0 calc(100% - 74px), transparent 11px, #000 12px) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% calc(100% - 74px), transparent 11px, #000 12px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 12px at 0 calc(100% - 74px), transparent 11px, #000 12px) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% calc(100% - 74px), transparent 11px, #000 12px) right / 51% 100% no-repeat; }
.tk-b { --tb: var(--b); --tf: var(--w); }
.tk-r { --tb: var(--r); }
.tk-main { padding: 20px 20px 18px; display: grid; gap: 8px; align-content: start; }
.tk-k { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .6875rem; }
.tk-t { font-family: var(--disp); font-weight: 900; font-stretch: 52%; font-size: clamp(2rem, 9.6vw, 3rem); line-height: .86; text-transform: uppercase; }
.tk-p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tk-v { font-family: var(--disp); font-weight: 800; font-stretch: 70%; font-size: 2rem; line-height: 1; }
.tk-x { font-size: .8125rem; }
.tk-stub { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px; border-top: 3px dashed currentColor; }
.tk-code { font-weight: 800; letter-spacing: .12em; font-size: .75rem; writing-mode: horizontal-tb; }
.qty { display: flex; align-items: center; gap: 0; }
.qty .sbtn { background: var(--w); color: var(--ink); }
.qty .sbtn:hover { background: var(--paper); }
.qty-v { display: grid; place-items: center; width: 48px; height: 40px; border-top: var(--rule) solid var(--ink); border-bottom: var(--rule) solid var(--ink); background: var(--w); color: var(--ink); font-family: var(--disp); font-weight: 800; font-stretch: 70%; font-size: 1.4rem; }
.tk .sbtn:focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 7px var(--w); z-index: 1; position: relative; }
.tix-sum { margin-top: 30px; display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; align-items: center; border: var(--rule) solid var(--paper); padding: 18px 20px; }
.sum-l { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; display: flex; gap: 10px; align-items: center; }
.sum-v { font-family: var(--disp); font-weight: 900; font-stretch: 60%; font-size: 2.6rem; line-height: 1; text-align: right; }
.tix-sum .btn { grid-column: 1 / -1; }
.sum-s { grid-column: 1 / -1; font-size: .8125rem; min-height: 1.6em; }
@media (min-width: 768px) { .tix-sum { grid-template-columns: auto 1fr auto; } .tix-sum .btn { grid-column: auto; } }
.btn { min-height: 52px; padding: 0 22px; border: var(--rule) solid var(--ink); font-family: var(--disp); font-weight: 900; font-stretch: 70%; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .01em; box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: none; }
.btn-y { background: var(--y); color: var(--ink); border-color: var(--y); box-shadow: 5px 5px 0 var(--p); }
.btn-y:hover { background: var(--w); }
.btn-k { background: var(--ink); color: var(--y); }
.btn-k:hover { background: var(--b); color: var(--w); }

/* ================= ZASADY + FAQ ================= */
.sec-rules { background: var(--p); }
.sec-rules .h2-b { --hb: var(--ink); color: var(--p); }
.rules { display: grid; gap: 0; border: var(--rule) solid var(--ink); background: var(--ink); grid-template-columns: 1fr; }
@media (min-width: 640px) { .rules { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .rules { grid-template-columns: repeat(3, 1fr); } }
.rule { background: var(--paper); padding: 18px 18px 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; outline: calc(var(--rule) / 2) solid var(--ink); }
.rule:nth-child(3n + 2) { background: var(--y); }
.rule:nth-child(3n) { background: var(--w); }
.rule-n { grid-row: span 2; font-family: var(--disp); font-weight: 900; font-stretch: 55%; font-size: 4.6rem; line-height: .78; color: var(--ink); -webkit-text-stroke: 0; }
.rule-t { font-family: var(--disp); font-weight: 900; font-stretch: 72%; font-size: 1.45rem; line-height: .95; text-transform: uppercase; margin: 2px 0 8px; }
.rule p { font-size: .8125rem; }
.faq { margin-top: 48px; display: grid; gap: 10px; max-width: 980px; }
.faq .h3 { margin-bottom: 8px; }
.faq details { background: var(--w); border: var(--rule) solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 54px 14px 16px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: var(--y); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 3px solid var(--ink); }
.faq details p { padding: 14px 16px 18px; }

/* ================= KONTAKT ================= */
.sec-contact { background: var(--y); }
.sec-contact .h2-b { --hb: var(--ink); color: var(--y); }
.contact { display: grid; gap: 30px; }
@media (min-width: 1024px) { .contact { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } }
.addr { font-weight: 700; font-size: 1rem; border-left: 8px solid var(--ink); padding-left: 14px; }
.form { display: grid; gap: 16px; background: var(--w); border: var(--rule) solid var(--ink); box-shadow: var(--sh) var(--sh) 0 var(--ink); padding: 18px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; padding: 26px; } .field-wide, .form .btn, .form-s { grid-column: 1 / -1; } .field:nth-child(3) { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .75rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; background: var(--paper); border: var(--rule) solid var(--ink); border-radius: 0; font-size: 1rem; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { background: var(--w); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--r); border-width: 4px; }
.err { font-size: .8125rem; font-weight: 700; min-height: 0; }
.err:not(:empty)::before { content: "✕ "; color: var(--ink); }
.form .btn { justify-self: start; }
.form-s { font-weight: 700; }
.form-s:not(:empty) { background: var(--ink); color: var(--y); padding: 12px 14px; }

/* ================= STOPKA ================= */
.ftr { background: var(--r); color: var(--ink); overflow: hidden; }
.ftr-word { font-family: var(--disp); font-weight: 900; font-stretch: 80%; font-size: calc(100vw / 5.2); line-height: .8; text-transform: uppercase; text-align: center; padding: 18px 0 0; border-bottom: var(--rule) solid var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.ftr-in { display: grid; gap: 14px; padding-top: 26px; padding-bottom: 34px; }
.ftr-note { max-width: 46em; }
.ftr-made { font-family: var(--disp); font-weight: 900; font-stretch: 70%; font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.ftr-made a { white-space: nowrap; background: var(--ink); color: var(--y); text-decoration: none; padding: 0 .15em; }
.ftr-made a:hover { background: var(--y); color: var(--ink); }
.ftr-tech { font-size: .8125rem; }
.ftr-top { justify-self: start; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
@media (min-width: 900px) { .ftr-in { grid-template-columns: 1.4fr 1fr; align-items: end; } .ftr-made { grid-row: 1; grid-column: 2; justify-self: end; text-align: right; font-size: 2.4rem; } .ftr-top { grid-column: 2; justify-self: end; } }

/* ================= RUCH ================= */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .band-t { animation: none; }
  .wipe::before, .wipe::after { display: none; }
  .js .wall.ready .poster { opacity: 1; }
  .poster:hover { transform: rotate(var(--rot, 0deg)); }
}
.rm .band-t { animation: none !important; }
@media (max-width: 379px) {
  .brand { gap: 6px; }
  .brand-mark { width: 30px; height: 30px; padding: 4px; }
  .brand-word { font-size: 1.3rem; }
  .tbtn { padding: 0 8px; min-width: 38px; }
  .deck { gap: 5px; }
}
