/* ==========================================================================
   Daniel Rojewski — prototyp
   ========================================================================== */
:root {
  --fs-text: 1; --fs-head: 1; /* mnożniki rozmiaru czcionek, ustawiane w panelu */
  --bg: #0b0a0b;
  --bg-2: #141213;
  --ink: #f3ede4;
  --mute: #8f8982;
  --line: rgba(243, 237, 228, .14);
  --red: #e3262f;
  --accent: #ff3b30;

  --f-display: "Anton", "Impact", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Manrope", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: calc(clamp(15px, 1.05vw, 17px) * var(--fs-text));
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

/* --- Background layers ------------------------------------------------- */
#bg3d {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.no-webgl #bg3d { display: none; }
.no-webgl body {
  background:
    radial-gradient(60vw 60vw at 80% 10%, rgba(227, 38, 47, .22), transparent 60%),
    radial-gradient(50vw 50vw at 0% 90%, rgba(227, 38, 47, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.grain {
  position: fixed; inset: -50%;
  z-index: 60; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -2%); }
  60% { transform: translate(-2%, -4%); } 80% { transform: translate(4%, 2%); } 100% { transform: translate(0, 0); }
}
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--red);
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: 70;
}
main, .footer { position: relative; z-index: 1; }

/* --- Cursor ------------------------------------------------------------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 80; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); mix-blend-mode: difference; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(243, 237, 228, .5);
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, border-color .3s;
}
.cursor__ring em { font-style: normal; font-size: calc(12px * var(--fs-text)); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--red); background: rgba(227, 38, 47, .12); }
.cursor.is-play .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--red); border-color: var(--red); }
.cursor.is-play .cursor__ring em { opacity: 1; }

/* --- Loader ------------------------------------------------------------- */
.no-anim .loader, .no-anim .cursor, .is-preview .loader { display: none; }
.no-anim .hero__person, .no-anim .hero__meta, .no-anim [data-reveal], .no-anim .sc { opacity: 1 !important; transform: none !important; }
.loader {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; align-items: flex-end;
  padding: var(--gutter);
}
.loader__inner { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.loader__name { font-family: var(--f-serif); font-style: italic; font-size: calc(clamp(1.4rem, 3vw, 2.4rem) * var(--fs-head)); color: var(--mute); }
.loader__num { font-family: var(--f-display); font-size: calc(clamp(5rem, 18vw, 16rem) * var(--fs-head)); line-height: .8; color: var(--ink); font-variant-numeric: tabular-nums; }

/* --- Shared ------------------------------------------------------------- */
.section { padding: clamp(96px, 14vw, 200px) var(--gutter); }
.label {
  margin: 0 0 1.5rem;
  font-size: calc(.78rem * var(--fs-text)); font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mute);
}
.h2 {
  margin: 0;
  font-family: var(--f-display); font-weight: 400;
  font-size: calc(clamp(2.8rem, 8vw, 8.5rem) * var(--fs-head));
  line-height: .92; text-transform: uppercase; letter-spacing: -.005em;
}
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(40px, 6vw, 80px); flex-wrap: wrap; }
.badge {
  margin: 0; padding: .45rem .9rem;
  border: 1px dashed rgba(243, 237, 228, .35); border-radius: 99px;
  font-size: calc(.72rem * var(--fs-text)); letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.link-arrow { display: inline-flex; gap: .5rem; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: .3rem; transition: border-color .3s, color .3s; }
.link-arrow:hover { color: var(--red); border-color: var(--red); }

/* split text helpers */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em 0 .06em; margin: -.12em 0 -.06em; }
.sc { display: inline-block; will-change: transform; }

/* buttons */
.btn {
  --h: 52px;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: var(--h); padding: 0 1.6rem;
  border-radius: 99px; border: 1px solid var(--red);
  background: var(--red); color: #fff;
  font-weight: 600; font-size: calc(.95rem * var(--fs-text)); letter-spacing: .02em;
  isolation: isolate;
  transition: color .4s var(--ease), border-color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn--ghost { background: transparent; border-color: rgba(243, 237, 228, .4); color: var(--ink); }
.btn--small { --h: 40px; padding: 0 1.1rem; font-size: calc(.85rem * var(--fs-text)); }
.btn--big { --h: 64px; padding: 0 2.2rem; font-size: calc(1.05rem * var(--fs-text)); }
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(6px); }

/* --- Nav ---------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 18px var(--gutter);
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(11, 10, 11, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: .8rem; margin-right: auto; }
.nav__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: var(--f-display); font-size: calc(1rem * var(--fs-head)); letter-spacing: .04em;
}
.nav__brand { font-weight: 600; letter-spacing: .02em; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { position: relative; font-size: calc(.9rem * var(--fs-text)); color: rgba(243, 237, 228, .8); transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__social { display: flex; gap: .4rem; margin-left: 2rem; margin-right: 1rem; }
.nav__social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 50%; color: rgba(243, 237, 228, .8);
  transition: color .3s, border-color .3s, background .3s;
}
.nav__social a:hover { color: #fff; border-color: var(--red); background: var(--red); }
.nav__social svg { width: 17px; height: 17px; }
/* Włącznik muzyki: cztery słupki korektora, falują tylko w trakcie grania */
.nav__music {
  display: flex; align-items: center; justify-content: center; gap: 2px; flex: none;
  width: 38px; height: 38px; margin-right: 1rem; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: rgba(243, 237, 228, .8);
  cursor: pointer; transition: color .3s, border-color .3s, background .3s;
}
.nav__music:hover { color: #fff; border-color: var(--red); }
.nav__music[aria-pressed="true"] { color: #fff; border-color: var(--red); background: var(--red); }
.nav__music span { width: 2px; height: 4px; border-radius: 1px; background: currentColor; transition: height .4s var(--ease); }
.nav__music[aria-pressed="true"] span { animation: eq 1s ease-in-out infinite alternate; }
.nav__music span:nth-child(2) { height: 9px; animation-delay: -.6s !important; }
.nav__music span:nth-child(3) { height: 6px; animation-delay: -.3s !important; }
.nav__music span:nth-child(4) { animation-delay: -.8s !important; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .nav__music[aria-pressed="true"] span { animation: none; height: 10px; } }
.lang { display: flex; gap: .15rem; margin-right: 1rem; padding: 3px; border: 1px solid var(--line); border-radius: 99px; }
.lang a {
  min-width: 34px; padding: .35rem .5rem; border-radius: 99px; text-align: center;
  font-size: calc(.72rem * var(--fs-text)); font-weight: 700; letter-spacing: .08em; color: rgba(243, 237, 228, .65);
  transition: color .3s, background .3s;
}
.lang a:hover { color: var(--ink); }
.lang a.is-active { background: var(--ink); color: var(--bg); }
.menu__social { display: flex; gap: 1.6rem; margin-top: 2rem; }
.menu .menu__social a { font-family: var(--f-body); font-size: calc(1rem * var(--fs-text)); font-weight: 600; letter-spacing: .08em; }
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--red);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--gutter) var(--gutter);
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .9s var(--ease);
  pointer-events: none;
}
.menu a { font-family: var(--f-display); font-size: calc(clamp(2.8rem, 13vw, 5rem) * var(--fs-head)); line-height: 1.05; text-transform: uppercase; color: var(--bg); }
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); pointer-events: auto; }

@media (max-width: 899px) {
  .nav__links, .nav__cta, .nav__brand { display: none; }
  .nav { gap: .5rem; }
  .nav__social, .lang { margin: 0; }
  .nav__social a { width: 34px; height: 34px; }
  .nav__music { width: 34px; height: 34px; margin: 0; }
  .lang a { min-width: 28px; padding: .3rem .35rem; }
  .nav__burger { flex: none; margin-left: .2rem; }
  .nav__burger { display: block; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
}
.hero__ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; will-change: transform, opacity; }
.hero__ui > * { pointer-events: auto; }
.hero__kicker {
  position: absolute; top: 96px; left: var(--gutter); z-index: 4; margin: 0;
  display: flex; align-items: center; gap: .7rem;
  font-size: calc(.8rem * var(--fs-text)); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(243, 237, 228, .75);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(227, 38, 47, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(227, 38, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 38, 47, 0); } }

.hero__name {
  position: absolute; inset: 0; margin: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding-bottom: 6vh;
  font-family: var(--f-display); font-weight: 400;
  font-size: calc(clamp(5rem, 21vw, 26rem) * var(--fs-head));
  line-height: .86; /* = wysokość wersalików Antona: linie stykają się bez nakładania */
  text-transform: uppercase; letter-spacing: -.01em;
  pointer-events: none; white-space: nowrap;
}
.hero__line { display: block; }
.hero__name--back { z-index: 1; color: var(--ink); }
.hero__name--front { z-index: 3; color: transparent; -webkit-text-stroke: 1.5px rgba(243, 237, 228, .85); }
.hero__figure {
  position: absolute; z-index: 2;
  left: 50%; bottom: 0;
  height: 94%;
  aspect-ratio: 998 / 1500;
  transform: translateX(-50%);
  will-change: transform;
}
.hero__person {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 97%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 97%);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6));
}
.hero__bottom {
  position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 5vh, 56px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap;
}
.hero__tag { margin: 0; font-family: var(--f-serif); font-size: calc(clamp(2.1rem, 3.6vw, 3.45rem) * var(--fs-head)); line-height: 1.1; }
.hero__tag em { color: var(--red); }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; z-index: 4; right: var(--gutter); top: 50%;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  font-size: calc(.7rem * var(--fs-text)); letter-spacing: .25em; text-transform: uppercase; color: var(--mute);
  writing-mode: vertical-rl;
}
.hero__scroll i { position: relative; width: 1px; height: 70px; background: var(--line); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

@media (max-width: 899px) {
  .hero__name { font-size: calc(23vw * var(--fs-head)); padding-bottom: 22vh; }
  .hero__figure { height: 80%; }
  .hero__scroll { display: none; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__kicker { top: 84px; font-size: calc(.68rem * var(--fs-text)); letter-spacing: .14em; }
}

/* --- Marquee ------------------------------------------------------------ */
.marquee {
  position: relative; z-index: 1;
  padding: clamp(24px, 4vw, 48px) 0;
  border-block: 1px solid var(--line);
  background: rgba(11, 10, 11, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}
.marquee__row { white-space: nowrap; }
.marquee__inner { display: inline-flex; align-items: center; will-change: transform; }
.marquee span, .marquee b {
  font-family: var(--f-display); font-weight: 400;
  font-size: calc(clamp(2.6rem, 7vw, 7rem) * var(--fs-head)); line-height: 1.05; text-transform: uppercase;
  padding: 0 .35em;
}
.marquee b { color: var(--red); font-size: calc(clamp(1.4rem, 3vw, 3rem) * var(--fs-head)); }
.marquee__row--outline span { color: transparent; -webkit-text-stroke: 1px rgba(243, 237, 228, .55); }

/* --- About -------------------------------------------------------------- */
.statement {
  margin: 0 0 clamp(80px, 12vw, 180px);
  max-width: 22ch;
  font-family: var(--f-serif);
  font-size: calc(clamp(2.2rem, 6vw, 6.4rem) * var(--fs-head));
  line-height: 1.02; letter-spacing: -.01em;
}
.statement .sw { overflow: visible; }
.statement .is-accent { font-style: italic; color: var(--red); }
.about__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 110px); align-items: center;
}
.reveal-img { position: relative; margin: 0; overflow: hidden; border-radius: 4px; }
.reveal-img img { width: 100%; height: 120%; object-fit: cover; position: absolute; left: 0; top: -10%; }
.about__photo { aspect-ratio: 4 / 5; }
.about__text p { color: rgba(243, 237, 228, .78); max-width: 52ch; }
.about__text .h2 { font-size: calc(clamp(2.4rem, 5.4vw, 5.6rem) * var(--fs-text)); margin-bottom: 2rem; }
.creds { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.creds li { padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 99px; font-size: calc(.85rem * var(--fs-text)); }

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

/* --- Journey ------------------------------------------------------------ */
.journey { position: relative; overflow: hidden; padding-top: clamp(96px, 12vw, 160px); }
.journey__head { padding: 0 var(--gutter); }
.journey__track {
  display: flex; gap: clamp(20px, 3vw, 48px);
  width: max-content;
  padding: clamp(48px, 7vh, 90px) var(--gutter) clamp(60px, 10vh, 120px);
  will-change: transform;
}
.step {
  position: relative;
  width: clamp(300px, 30vw, 460px); min-height: 46vh;
  padding: 2rem;
  border: 1px solid var(--line); border-radius: 6px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 60%);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.step__num {
  position: absolute; top: 1.2rem; left: 1.6rem;
  font-family: var(--f-display); font-size: calc(clamp(5rem, 9vw, 9rem) * var(--fs-head)); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 237, 228, .35);
}
.step__title { margin: 0 0 .8rem; font-family: var(--f-display); font-weight: 400; font-size: calc(clamp(1.8rem, 2.6vw, 2.6rem) * var(--fs-head)); text-transform: uppercase; line-height: 1; }
.step__text { margin: 0; color: rgba(243, 237, 228, .72); }
.step--photo { padding: 0; margin: 0; overflow: hidden; width: clamp(260px, 24vw, 380px); }
.step--photo video { display: block; width: 100%; height: 100%; object-fit: cover; }
.journey__line { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 6vh, 64px); height: 1px; background: var(--line); }
.journey__line span { position: absolute; inset: 0; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 899px) {
  .journey__track { flex-direction: column; width: auto; }
  .step, .step--photo { width: 100%; min-height: 0; padding-top: 6.5rem; }
  .step--photo { aspect-ratio: 4 / 5; padding: 0; }
  .journey__line { display: none; }
}

/* --- Styles ------------------------------------------------------------- */
.styles {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  padding: 110px var(--gutter) var(--gutter);
}
.styles__head { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: baseline; }
.styles__count { margin: 0; font-family: var(--f-display); font-size: calc(1.4rem * var(--fs-head)); color: var(--mute); letter-spacing: .05em; }
.styles__count b { color: var(--accent); font-weight: 400; font-size: calc(2.4rem * var(--fs-text)); }
/* Karuzela: slajdy obok siebie, szerokość slajdu = szerokość sekcji (ustawiana w main.js) */
.styles__stage { position: absolute; inset: 0 auto 0 0; z-index: 2; display: flex; width: max-content; pointer-events: none; will-change: transform; }
.style-panel {
  flex: none; width: 100vw; height: 100%;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
}
.style-panel__sub { margin: 0 0 .4rem; font-family: var(--f-serif); font-style: italic; font-size: calc(clamp(1.6rem, 3vw, 3rem) * var(--fs-head)); color: var(--accent); }
.style-panel__name {
  margin: 0; max-width: 11ch;
  font-family: var(--f-display); font-weight: 400;
  font-size: calc(clamp(4rem, 13vw, 15rem) * var(--fs-head)); line-height: .86; text-transform: uppercase;
  text-shadow: 0 10px 60px rgba(0, 0, 0, .45);
}
.style-panel__desc { margin: 1.6rem 0 0; max-width: 38ch; font-size: calc(clamp(1rem, 1.3vw, 1.2rem) * var(--fs-text)); color: rgba(243, 237, 228, .82); }
.styles__bars { position: absolute; z-index: 3; left: var(--gutter); bottom: var(--gutter); display: flex; gap: .5rem; }
.styles__bars i { width: 44px; height: 3px; background: var(--line); border-radius: 3px; transition: background .4s, width .6s var(--ease); }
.styles__bars i.is-active { background: var(--accent); width: 88px; }

@media (max-width: 899px) {
  .style-panel__name { font-size: calc(17vw * var(--fs-head)); }
}

/* --- Schedule ----------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.chip {
  padding: .6rem 1.2rem; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(11, 10, 11, .4);
  font-size: calc(.88rem * var(--fs-text)); font-weight: 500;
  transition: background .3s, border-color .3s, color .3s;
}
.chip:hover { border-color: rgba(243, 237, 228, .5); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day {
  display: grid; grid-template-columns: 200px 1fr; gap: 2rem;
  padding: 1.8rem 0; border-top: 1px solid var(--line);
}
.day:last-child { border-bottom: 1px solid var(--line); }
.day__name { margin: 0; font-weight: 400; font-family: var(--f-display); font-size: calc(clamp(1.6rem, 2.4vw, 2.4rem) * var(--fs-head)); text-transform: uppercase; line-height: 1; }
.day__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.class {
  --c: var(--red);
  position: relative; overflow: hidden;
  padding: 1.3rem 1.4rem;
  border-radius: 6px; border: 1px solid var(--line);
  background: rgba(20, 18, 19, .6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .3s, transform .5s var(--ease);
}
.class::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.class:hover { border-color: var(--c); transform: translateY(-4px); }
.class__time { font-family: var(--f-display); font-size: calc(1.9rem * var(--fs-head)); line-height: 1; }
.class__time small { font-family: var(--f-body); font-size: calc(.8rem * var(--fs-text)); color: var(--mute); margin-left: .4rem; }
.class__style { margin: .6rem 0 .2rem; font-weight: 700; font-size: calc(1.05rem * var(--fs-text)); color: var(--c); }
.class__who { margin: 0 0 .5rem; font-size: calc(.9rem * var(--fs-text)); font-weight: 600; color: var(--ink); }
.class__meta { margin: 0; font-size: calc(.85rem * var(--fs-text)); line-height: 1.5; color: var(--mute); }
@media (max-width: 899px) { .day { grid-template-columns: 1fr; gap: 1rem; } }

/* --- Festivals ---------------------------------------------------------- */
.fests { list-style: none; margin: 0; padding: 0; }
.fest { position: relative; isolation: isolate; border-top: 1px solid var(--line); }
.fest__inner {
  display: grid; grid-template-columns: 170px 1fr auto auto; align-items: center; gap: 2rem;
  padding: 1.8rem 1rem;
  transition: color .5s var(--ease), padding .5s var(--ease);
}
.fests__empty { color: var(--mute); font-size: calc(1.1rem * var(--fs-text)); }
.fest:last-child { border-bottom: 1px solid var(--line); }
.fest::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.fest:hover::before { transform: scaleY(1); }
.fest:hover .fest__inner { padding-left: 2rem; padding-right: 2rem; }
.fest__date { font-family: var(--f-display); font-size: calc(clamp(1.6rem, 2.4vw, 2.4rem) * var(--fs-head)); line-height: 1; }
.fest__date small { display: block; margin-top: .3rem; font-family: var(--f-body); font-size: calc(.75rem * var(--fs-text)); letter-spacing: .15em; text-transform: uppercase; color: var(--mute); transition: color .4s; }
.fest__name { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: calc(clamp(1.8rem, 3.6vw, 3.8rem) * var(--fs-head)); line-height: 1; text-transform: uppercase; }
.fest__place { color: var(--mute); text-align: right; transition: color .4s; }
.fest__arrow { font-size: calc(1.8rem * var(--fs-text)); transition: transform .5s var(--ease); }
.fest:hover .fest__arrow { transform: rotate(-45deg); }
.fest:hover .fest__date small, .fest:hover .fest__place { color: rgba(255, 255, 255, .85); }
@media (max-width: 899px) {
  .fest__inner { grid-template-columns: 1fr auto; gap: .6rem 1rem; }
  .fest__date { grid-column: 1 / -1; }
  .fest__place { text-align: left; grid-column: 1; }
  .fest__arrow { grid-row: 2; grid-column: 2; }
}

/* --- Contact ------------------------------------------------------------ */
.contact__title {
  margin: 0 0 clamp(48px, 7vw, 100px);
  font-family: var(--f-display); font-weight: 400;
  font-size: calc(clamp(3rem, 11vw, 12rem) * var(--fs-head)); line-height: .85; text-transform: uppercase;
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.form { display: grid; gap: 1.4rem; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 1.6rem 0 .7rem;
  border: 0; border-bottom: 1px solid rgba(243, 237, 228, .25);
  background: transparent; color: var(--ink);
  font: inherit; font-size: calc(1.15rem * var(--fs-text)); outline: none; border-radius: 0;
  transition: border-color .3s;
  resize: vertical;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--bg); color: var(--ink); }
.field--select::after { content: "↓"; position: absolute; right: 0; bottom: .8rem; color: var(--mute); pointer-events: none; }
.field label {
  position: absolute; left: 0; top: 1.5rem;
  color: var(--mute); pointer-events: none;
  transform-origin: 0 0; transition: transform .4s var(--ease), color .3s;
}
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label,
.field--select label { transform: translateY(-1.3rem) scale(.78); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b6b; }
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: calc(.85rem * var(--fs-text)); color: var(--mute); cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; margin-top: .15rem; flex: none; }
.check.is-invalid span { color: #ff6b6b; }
.form .btn { justify-self: start; }
.form__status { margin: 0; min-height: 1.6em; font-weight: 500; }
.form__status.is-ok { color: #7be0a1; }
.form__status.is-err { color: #ff6b6b; }
.contact__photo { aspect-ratio: 3 / 4; margin-bottom: 1.5rem; }
.contact__direct { display: grid; gap: 1.2rem; margin-bottom: 1.5rem; }
.contact__direct a { display: grid; gap: .2rem; font-size: calc(clamp(1.05rem, 1.6vw, 1.35rem) * var(--fs-text)); font-weight: 600; overflow-wrap: anywhere; transition: color .3s; }
.contact__direct a:hover { color: var(--red); }
.contact__direct small { font-size: calc(.72rem * var(--fs-text)); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.contact__chat { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }
.contact__chat .btn { flex: 1 1 14rem; justify-content: center; }
.socials { display: grid; }
.socials a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: calc(clamp(1.6rem, 2.4vw, 2.2rem) * var(--fs-head)); text-transform: uppercase;
  transition: color .3s, padding .5s var(--ease);
}
.socials a:hover { color: var(--red); padding-left: .3rem; }
/* Anton nie ma strzałki ↗ — bez tego telefony podstawiają emoji */
.socials__arrow { font-family: var(--f-body); font-size: .8em; }
/* Bez formularza: zdjęcie obok danych kontaktowych */
.contact__grid--solo { grid-template-columns: 1fr; }
.contact__grid--solo .contact__side { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: end; }
.contact__grid--solo .contact__photo { margin: 0; }
@media (max-width: 899px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__grid--solo .contact__side { grid-template-columns: 1fr; }
}

/* --- Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); overflow: hidden; background: rgba(11, 10, 11, .7); }
.footer__big { white-space: nowrap; padding: clamp(32px, 5vw, 64px) 0 0; }
.footer__big span {
  display: inline-block;
  font-family: var(--f-display); font-size: calc(clamp(3rem, 8vw, 9rem) * var(--fs-head)); line-height: 1; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 237, 228, .3);
  will-change: transform;
}
.footer__bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.5rem var(--gutter) 2rem; color: var(--mute); font-size: calc(.85rem * var(--fs-text));
}
.footer__bar a:hover { color: var(--ink); }
.footer__dev a { text-decoration: underline; text-underline-offset: 3px; }

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .dot, .hero__scroll i::after { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* --- Podgląd w panelu --------------------------------------------------- */
.is-flash { animation: flash 1.4s ease-out; border-radius: 4px; }
@keyframes flash { 0%, 30% { outline: 2px solid var(--red); outline-offset: 6px; } 100% { outline: 2px solid transparent; outline-offset: 12px; } }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.is-sending button[type=submit] { opacity: .6; pointer-events: none; }

/* Tekst tylko dla Google i czytników ekranu */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
