/* ============================================================
   Filip portfolio — style.css
   Bazowane na Polyvale: #111 / #fff / #F10F0F. Poppins.
   ============================================================ */

:root {
  --red: #F10F0F;
  --ink: #111;
  --muted: #555;
  --label: #6f6f6f;   /* szare etykiety — kontrast WCAG (nie #999) */
  --hairline: #ececec;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: #fff; color: var(--ink); overflow-x: hidden; max-width: 100vw; }
body.nav-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 5vw; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- HEADER ---------- */
.site-header {
  padding: 1.4rem 0 1.2rem;
  position: sticky; top: 0; z-index: 40;
  background: #fff; border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-bar { width: 100%; }
.site-header .logo { display: flex; align-items: center; flex-shrink: 0; line-height: 0; }
.site-header .logo img { display: block; height: 46px; width: auto; max-width: 170px; }
.site-header .logo .logo-full { height: 44px; max-width: 160px; } /* pełny wordmark — tylko na stronie głównej */

.header-tools { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.main-nav ul { display: flex; gap: 2.4rem; list-style: none; }
.main-nav a {
  font-size: 0.9rem; font-weight: 500; text-decoration: none; padding: 0.4rem 0;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.main-nav a:hover { color: var(--red); }

.header-icons { display: flex; align-items: center; gap: 1rem; }
.header-icons a {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  color: var(--ink); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.header-icons a:hover { color: var(--red); }
.header-icons svg { pointer-events: none; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 48px; height: 48px; color: var(--ink); z-index: 220; position: relative;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle svg { pointer-events: none; }

@media (min-width: 861px) {
  .main-nav { flex: 1; display: flex; justify-content: center; }
  .main-nav ul { justify-content: center; }
}

/* ---------- HERO (pełny kadr: zdjęcie wypełnia hero, tekst na nim) ---------- */
.hero {
  position: relative; min-height: calc(100vh - 88px);
  display: flex; align-items: flex-end;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 3vw)); /* ukos — echo kreski „y" */
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(1) brightness(0.42);
}
.hero-copy { position: relative; z-index: 1; padding: 4rem 5vw 6rem; max-width: 900px; }
.hero-meta { margin-bottom: 1.6rem; }
.hero-meta .tag { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }

.headline {
  color: #fff; white-space: nowrap;
  font-size: clamp(1.7rem, 3.3vw, 3.1rem); font-weight: 700; letter-spacing: -0.015em;
  line-height: 1.25;
}
.swap-wrap { display: inline-block; clip-path: inset(-0.12em -0.06em); white-space: nowrap; transition: width .35s cubic-bezier(.4,0,.2,1); }
.swap-subj { display: inline-block; color: var(--red); transition: transform .3s ease, opacity .3s ease; }
.swap-subj.leave { transform: translateY(-115%); opacity: 0; }
.swap-subj.pre { transition: none; transform: translateY(115%); opacity: 0; }
.swap-verb { color: #fff; } /* cicho dopasowuje się do rodzaju */
.qmark-img { display: inline; height: 0.82em; vertical-align: -0.08em; margin-left: 0.05em; width: auto; }

.sub { margin-top: 1.3rem; font-size: 1.15rem; color: #d9d9d9; max-width: 440px; }
.cta-row { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.btn, .btn-outline, .btn-ghost, .btn-light {
  border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.8rem;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.btn { background: var(--ink); color: #fff; border: 1.5px solid var(--ink); }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); padding: 0 1.5rem; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
/* Na ciemnym zdjęciu przyciski w inwersji */
.hero .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { border-color: var(--red); color: var(--red); }

/* Fala głosówki pod CTA — cichy element, nie konkuruje z tekstem */
.hero .wave { display: flex; align-items: center; gap: 3px; height: 44px; max-width: 520px; margin-top: 2.8rem; }
.hero .wave i {
  flex: 1 0 auto; width: 4px; max-width: 6px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.32); transform-origin: center;
  animation: waveIdle 2.4s ease-in-out infinite;
}
.hero .wave i.played { background: var(--red); }
@keyframes waveIdle { 50% { transform: scaleY(0.55); } }

/* Mały symbol w prawym dolnym rogu (zamiast samej kropki) */
.hero-mark { position: absolute; right: 5vw; bottom: 8vh; height: 64px; width: auto; z-index: 1; }

/* Wejście hero — jednorazowe, subtelne */
.hero-enter > .hero-meta, .hero-enter > .headline, .hero-enter > .sub, .hero-enter > .cta-row {
  animation: heroIn .55s ease forwards;
}
.hero-enter > .hero-meta { animation-delay: .05s; }
.hero-enter > .headline { animation-delay: .16s; }
.hero-enter > .sub { animation-delay: .27s; }
.hero-enter > .cta-row { animation-delay: .38s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- SEKCJE ---------- */
.section { padding: 5.5rem 5vw 4.5rem; max-width: 1320px; margin: 0 auto; }
.section + .section { border-top: 1px solid var(--hairline); }
.section.no-border { border-top: none; }

.sec-title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 700; letter-spacing: -0.04em;
  line-height: 1; text-transform: lowercase; margin-bottom: 2.2rem;
}
.sec-title-sm { font-size: clamp(1.9rem, 4vw, 3rem); }
.sec-title .qmark-img { height: 0.8em; vertical-align: -0.06em; margin-left: 0.06em; }
.sec-title .title-end { white-space: nowrap; }
.dot { color: var(--red); }

/* Trzy kropki zamiast jednej — np. „robimy też..." */
.dot-trio {
  display: inline-flex; align-items: flex-end; gap: 0.14em;
  margin-left: 0.08em; vertical-align: 0.08em;
}
.dot-trio span {
  width: 0.2em; height: 0.2em; border-radius: 50%;
  background: var(--ink);
}
.dot-trio span.is-red { background: var(--red); }

.section-body { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
.section-text p { color: var(--muted); font-size: 1.05rem; max-width: 520px; }
.section-text p + p { margin-top: 1rem; }
.section-text p strong { color: var(--ink); font-weight: 600; }

.arrow-link { display: inline-block; margin-top: 1.6rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--ink); padding: 0.35rem 0; }
.arrow-link:hover { color: var(--red); border-color: var(--red); }
.arr { display: inline-block; transition: transform .25s ease; }
.arrow-link:hover .arr, .ig-giant:hover .arr { transform: translateX(6px); }

.section-media { position: relative; }
.section-media img {
  width: 100%; height: 400px; object-fit: cover; filter: grayscale(1);
  clip-path: polygon(0 0, 100% 2.5%, 100% 100%, 0 97.5%);
}
.section-media::after { content: ""; position: absolute; bottom: -1px; right: -11px; width: 22px; height: 22px; background: var(--red); border-radius: 50%; }

.bignum { font-size: clamp(5rem, 11vw, 9rem); font-weight: 700; letter-spacing: -0.04em; line-height: 0.9; }
.bignum .unit { font-size: 0.35em; font-weight: 700; color: var(--red); }
.bignum-note { color: var(--label); font-size: 0.95rem; margin-top: 0.8rem; }

/* ---------- STUDIO: pełnoekranowy pas, ukośne krawędzie, paralaksa ---------- */
.studio-band { position: relative; color: #fff; margin: 3rem 0; clip-path: polygon(0 0, 100% 3.5vw, 100% 100%, 0 calc(100% - 3.5vw)); overflow: hidden; }
.studio-band .bg {
  position: absolute; inset: -7.5% 0; width: 100%; height: 115%;
  object-fit: cover; filter: grayscale(1) brightness(0.45); will-change: transform;
}
.studio-band .inner { position: relative; z-index: 1; padding: 9rem 5vw; max-width: 1320px; margin: 0 auto; }
.studio-band .sec-title { margin-bottom: 1.4rem; }
.studio-band p { color: #e4e4e4; font-size: 1.05rem; max-width: 520px; }
.btn-ghost { margin-top: 2rem; border: 1.5px solid #fff; color: #fff; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ---------- REALIZACJE ---------- */
.ig-giant { display: inline-block; margin-top: 1.8rem; text-decoration: none; font-size: clamp(1.7rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; border-bottom: 4px solid var(--ink); padding-bottom: 0.3rem; white-space: nowrap; }
.ig-giant:hover { color: var(--red); border-color: var(--red); }

.ig-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.ig-thumb { display: block; position: relative; }
.ig-thumb img, .ig-thumb .photo-placeholder {
  width: 100%; height: 260px; object-fit: cover; filter: grayscale(1);
  clip-path: polygon(0 0, 100% 2.5%, 100% 100%, 0 97.5%);
  transition: transform .35s ease;
}
.ig-thumb:hover img { transform: scale(1.025); }
.ig-thumb .photo-placeholder { filter: none; background: #f4f4f4; display: flex; align-items: center; justify-content: center; }

/* ---------- ZAMKNIĘCIE (biała, spokojna sekcja) ---------- */
.closing {
  background: #fff; color: var(--ink); text-align: center;
  margin-top: 3rem; padding: 4.5rem 5vw 5rem;
  border-top: 1px solid var(--hairline);
}
.closing .pre { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.closing h2 { font-size: clamp(1.5rem, 2.9vw, 2.3rem); font-weight: 700; line-height: 1.25; max-width: 760px; margin: 0 auto; }
.closing .btn { margin-top: 2rem; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--red); color: #fff; }

/* ---------- STOPKA (jedyny czarny blok — z ukosem u góry) ---------- */
.site-footer {
  background: #111; color: #fff;
  clip-path: polygon(0 0, 100% 2.5vw, 100% 100%, 0 100%);
  padding: calc(2.4rem + 2.5vw) 0 1.6rem;
}
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.foot-logo img { height: 32px; width: auto; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 2.4rem; }
.foot-contact { display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer a { color: #d6d6d6; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--red); }
.foot-meta { color: #8f8f8f; font-size: 0.85rem; margin-top: 1.8rem; text-align: center; }

/* ---------- PODSTRONY: nagłówek strony ---------- */
.page-hero { padding: 3rem 5vw 1rem; max-width: 1320px; margin: 0 auto; }
.page-intro { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin-top: -0.6rem; }
.page-cta { text-align: center; padding: 4rem 5vw 5rem; }

/* ---------- USŁUGI ---------- */
.services { padding: 3.5rem 5vw 1rem; max-width: 1320px; margin: 0 auto; }
.service-flagship {
  background: #111; color: #fff; padding: 3.5rem 3rem 3rem;
  clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
  margin-bottom: 1rem;
}
.service-flagship h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
.service-flagship p { color: #e4e4e4; font-size: 1.05rem; max-width: 640px; margin-top: 1.1rem; }
.service-flagship .price { color: #fff; font-weight: 600; }
.service-row { border-top: 1px solid var(--hairline); padding: 2.6rem 0.5rem; }
.service-row:first-child { border-top: none; }
.service-row h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; }
.service-row p { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin-top: 0.9rem; }
.price { margin-top: 1.3rem; font-weight: 600; font-size: 1rem; }
.price-todo, .todo-chip {
  display: inline-block; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em;
  color: var(--red); border: 1.5px dashed var(--red); border-radius: 999px;
  padding: 0.3rem 0.9rem; text-transform: uppercase;
}
.extras { padding: 4.5rem 5vw 1rem; max-width: 1320px; margin: 0 auto; }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.extra-card { border: 1px solid var(--hairline); padding: 1.8rem 1.6rem; position: relative; transition: border-color .25s ease; }
.extra-card h3 { font-size: 1.15rem; font-weight: 700; }
.extra-card p { color: var(--muted); font-size: 0.98rem; margin-top: 0.6rem; }
.extra-card .price { margin-top: 1rem; font-size: 0.95rem; }
.extra-card:hover { border-color: var(--ink); }
.voucher { padding: 4.5rem 5vw 1rem; max-width: 1320px; margin: 0 auto; }
.voucher-card { border: 2px solid var(--ink); padding: 2.8rem 2.6rem; position: relative; max-width: 860px; margin: 0 auto; }
.voucher-card::after { content: ""; position: absolute; top: -11px; right: -11px; width: 22px; height: 22px; background: var(--red); border-radius: 50%; }
.voucher-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; }
.voucher-card p { color: var(--muted); font-size: 1.05rem; margin-top: 0.9rem; max-width: 640px; }
.voucher-note { font-size: 0.9rem; font-style: italic; }

/* ---------- JAK TO DZIAŁA: kroki ---------- */
.steps { padding: 2rem 5vw 1rem; max-width: 1100px; margin: 0 auto; }
.step { display: grid; grid-template-columns: 170px 1fr; gap: 2.5rem; align-items: start; padding: 3rem 0; border-top: 1px solid var(--hairline); }
.step:first-child { border-top: none; }
.step-num { font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 0.9; color: var(--red); }
.step-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; }
.step-body p { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin-top: 0.9rem; }

/* ---------- STUDIO (podstrona) ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery-item { position: relative; }
.gallery-item img, .gallery-item.photo-placeholder {
  width: 100%; height: 300px; object-fit: cover; filter: grayscale(1);
  clip-path: polygon(0 0, 100% 2.5%, 100% 100%, 0 97.5%);
}
.gallery-item.photo-placeholder { filter: none; background: #f4f4f4; display: flex; align-items: center; justify-content: center; }
.gear-accordion {
  max-width: 860px; border-top: 1px solid var(--hairline);
}
.gear-panel { border-bottom: 1px solid var(--hairline); }
.gear-panel[open] .gear-trigger-label { color: var(--ink); }
.gear-panel[open] .gear-chevron { transform: rotate(-135deg); color: var(--red); }

.gear-trigger {
  list-style: none; display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 1rem; padding: 1.15rem 0.25rem;
  cursor: pointer; user-select: none;
}
.gear-trigger::-webkit-details-marker { display: none; }
.gear-trigger::marker { content: ""; }
.gear-trigger:hover .gear-trigger-label { color: var(--red); }

.gear-trigger-label {
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink); transition: color 0.2s ease;
}
.gear-count {
  font-size: 0.78rem; font-weight: 600; color: var(--label);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 0.2rem 0.65rem; min-width: 1.8rem; text-align: center;
}
.gear-chevron {
  width: 8px; height: 8px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg);
  color: var(--ink); transition: transform 0.25s ease, color 0.2s ease;
  margin-right: 0.15rem;
}

.gear-panel .gear-list {
  list-style: none; display: grid; gap: 0.55rem;
  padding: 0 0 1.35rem 0.25rem; color: var(--muted); font-size: 1rem;
}
.gear-list li { padding-left: 1.3rem; position: relative; }
.gear-list li::before { content: ""; position: absolute; left: 0; top: 0.48em; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
.camp { padding-bottom: 4rem; }
.camp-card { background: #111; color: #fff; padding: 3.5rem 3rem; clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%); }
.camp-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; text-transform: lowercase; }
.camp-card > p { color: #e4e4e4; font-size: 1.05rem; max-width: 640px; margin-top: 1.1rem; }

/* ---------- ZESPÓŁ ---------- */
.team { padding: 2rem 5vw 1rem; max-width: 1320px; margin: 0 auto; }
.person { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; padding: 3.5rem 0; border-top: 1px solid var(--hairline); }
.person:first-child { border-top: none; }
.person:nth-child(even) .person-photo { order: 1; }
.person-photo img, .photo-placeholder {
  width: 100%; height: 420px; object-fit: cover; filter: grayscale(1);
  clip-path: polygon(0 0, 100% 2.5%, 100% 100%, 0 97.5%);
}
.photo-placeholder { filter: none; background: #f4f4f4; display: flex; align-items: center; justify-content: center; }
.person-body h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
.person-body p { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin-top: 1rem; }

/* ---------- KONTAKT ---------- */
.contact { padding: 2rem 5vw 4rem; max-width: 1320px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact-label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); margin-top: 2rem; }
.contact-label:first-child { margin-top: 0; }
.contact-big { display: inline-block; font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; text-decoration: none; margin-top: 0.4rem; word-break: break-word; }
a.contact-big:hover { color: var(--red); }
.contact-details p { margin-top: 0.4rem; }

/* ---------- FORMULARZE (Netlify Forms) ---------- */
.site-form { margin-top: 2rem; max-width: 640px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-field input, .form-field textarea {
  width: 100%; font-family: 'Poppins', sans-serif; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink); border-radius: 2px; padding: 0.75rem 0.9rem;
}
.form-field input:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.form-consent { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.4rem 0 1.6rem; }
.form-consent input { width: 18px; height: 18px; margin-top: 0.2rem; accent-color: var(--red); flex-shrink: 0; }
.form-consent label { font-size: 0.85rem; color: var(--muted); }
.form-consent a { color: inherit; }
.site-form button { cursor: pointer; border: none; font-family: 'Poppins', sans-serif; }
.form-on-dark .form-field label { color: #fff; }
.form-on-dark .form-field input { border-color: #fff; }
.form-on-dark .form-consent label { color: #cfcfcf; }

/* ---------- DZIĘKUJEMY ---------- */
.thanks { padding: 7rem 5vw 8rem; max-width: 720px; margin: 0 auto; text-align: center; }
.thanks h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; }
.thanks p { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; }
.thanks .btn { margin-top: 2.4rem; }

/* ---------- POLITYKA PRYWATNOŚCI ---------- */
.legal { padding: 2rem 5vw 5rem; max-width: 860px; margin: 0 5vw; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2.4rem; }
.legal p { color: var(--muted); font-size: 1rem; margin-top: 0.8rem; }
.legal ul { margin: 0.8rem 0 0 1.2rem; color: var(--muted); }
.legal li { margin-top: 0.5rem; }
.legal li strong { color: var(--ink); }
.legal a { color: var(--ink); }
.legal a:hover { color: var(--red); }

/* ---------- PORTFOLIO ---------- */
.releases { padding: 2rem 5vw 5rem; max-width: 1320px; margin: 0 auto; }
.releases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.release iframe { border-radius: 12px; border: 0; }
.release-meta { margin-top: 0.7rem; color: var(--muted); font-size: 0.95rem; }
.release-meta strong { color: var(--ink); }
.release-role { display: inline-block; margin-right: 0.5rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--red); }
.release-role-desc { color: var(--muted); font-size: 0.92rem; margin-top: 0.35rem; line-height: 1.45; }
.release-tracks { color: var(--label); font-size: 0.85rem; margin-top: 0.25rem; font-style: italic; }

/* ---------- SCROLL REVEAL ----------
   .reveal — cała sekcja wjeżdża razem (podstrony).
   .reveal.reveal-stagger — warstwowo: tytuł, potem treść (strona główna).
   Bez JS treść zostaje widoczna (progressive enhancement). */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

.reveal-stagger .sec-title, .reveal-stagger .section-body, .reveal-stagger .inner, .reveal-stagger .ig-thumbs {
  opacity: 1; transform: none;
}
html.js .reveal-stagger { opacity: 1; transform: none; transition: none; }
html.js .reveal-stagger .sec-title, html.js .reveal-stagger .section-body, html.js .reveal-stagger .inner, html.js .reveal-stagger .ig-thumbs {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
html.js .reveal-stagger .section-body, html.js .reveal-stagger .ig-thumbs { transition-delay: .12s; }
html.js .reveal-stagger.is-visible .sec-title, html.js .reveal-stagger.is-visible .section-body,
html.js .reveal-stagger.is-visible .inner, html.js .reveal-stagger.is-visible .ig-thumbs { opacity: 1; transform: none; }

/* Czerwona kropka w tytułach „wskakuje" po odsłonięciu sekcji */
.reveal .sec-title .dot { display: inline-block; }
html.js .reveal .sec-title .dot { transform: scale(0); }
html.js .reveal.is-visible .sec-title .dot { animation: dotpop .4s .5s cubic-bezier(.34,1.56,.64,1) forwards; }
@keyframes dotpop { to { transform: scale(1); } }

/* ---------- MOBILE ---------- */
@media (max-width: 860px) {
  .site-header { padding: 1rem 0 0.85rem; z-index: 220; }
  .site-header .logo img { height: 38px; }
  .site-header .logo .logo-full { height: 34px; }
  .header-tools { gap: 0.2rem; }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0; background: #111; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    visibility: hidden; opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 1.6rem; text-align: center; padding: 2rem; }
  .main-nav a {
    color: #fff; font-size: 1.45rem; font-weight: 600;
    display: inline-block; padding: 0.6rem 1rem; min-height: 48px; line-height: 1.3;
  }
  body.nav-locked .nav-toggle { color: #fff; }

  /* Hero — uproszczony na mobile */
  .hero {
    min-height: 56vh;
    clip-path: none;
    align-items: flex-end;
  }
  .hero-bg { filter: grayscale(1) brightness(0.48); }
  .hero-copy { padding: 2.2rem 5vw 2.6rem; max-width: 100%; width: 100%; }
  .hero-meta { margin-bottom: 1rem; }
  .hero-meta .tag { font-size: 0.72rem; letter-spacing: 0.1em; line-height: 1.4; }
  .headline {
    white-space: normal; font-size: clamp(1.45rem, 6.2vw, 1.85rem);
    line-height: 1.3; max-width: 100%;
  }
  .swap-wrap { width: auto !important; white-space: normal; transition: none; clip-path: none; }
  .swap-subj { white-space: normal; }
  .sub { margin-top: 1rem; font-size: 1rem; max-width: none; }
  .cta-row { margin-top: 1.6rem; gap: 0.75rem; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .cta-row .btn-outline { display: none; }
  .hero .wave { display: none; }
  .hero-mark { display: none; }
  .hero-enter > .hero-meta, .hero-enter > .headline, .hero-enter > .sub, .hero-enter > .cta-row {
    animation-duration: 0.4s;
    animation-delay: 0s !important;
  }

  .section { padding: 3.5rem 5vw 3rem; }
  .section-body { grid-template-columns: 1fr; gap: 2rem; }
  .section-media img { height: 300px; }
  .bignum { font-size: clamp(4rem, 20vw, 6rem); }

  .studio-band { clip-path: polygon(0 0, 100% 6vw, 100% 100%, 0 calc(100% - 6vw)); }
  .studio-band .inner { padding: 6rem 5vw; }

  .ig-thumbs { grid-template-columns: 1fr; gap: 1.2rem; margin-top: 2.2rem; }
  .ig-thumb img, .ig-thumb .photo-placeholder { height: 220px; }

  .closing { padding: 3.5rem 5vw 4rem; }
  .site-footer {
    clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 100%);
    padding: calc(1.4rem + 3vw) 0 1rem;
  }
  .foot-grid { flex-direction: column; gap: 1.2rem; align-items: flex-start; }
  .foot-logo img { height: 22px; }
  .foot-nav { grid-template-columns: 1fr 1fr; gap: 0.35rem 1.4rem; }
  .foot-nav a, .foot-contact a { font-size: 0.84rem; }
  .foot-contact { gap: 0.35rem; }
  .foot-meta { margin-top: 1rem; font-size: 0.78rem; line-height: 1.45; padding: 0 5vw; }

  .page-hero { padding: 2rem 5vw 0.5rem; }
  .services { padding: 2.5rem 5vw 0.5rem; }
  .service-flagship { padding: 2.4rem 1.6rem 2.2rem; }
  .extras, .voucher { padding: 3rem 5vw 0.5rem; }
  .extras-grid { grid-template-columns: 1fr; }
  .voucher-card { padding: 2rem 1.5rem; }
  .voucher-card::after { right: -8px; top: -8px; width: 18px; height: 18px; }
  .page-cta { padding: 3rem 5vw 3.5rem; }

  .step { grid-template-columns: 1fr; gap: 0.8rem; padding: 2.2rem 0; }
  .step-num { font-size: clamp(2.8rem, 14vw, 4rem); }

  .gallery { grid-template-columns: 1fr; }
  .gallery-item img, .gallery-item.photo-placeholder { height: 240px; }
  .gear-trigger { padding: 1rem 0.15rem; }
  .camp-card { padding: 2.4rem 1.6rem; }
  .form-row { grid-template-columns: 1fr; }

  .person { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.4rem 0; }
  .person:nth-child(even) .person-photo { order: 0; }
  .person-photo img, .photo-placeholder { height: 320px; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.6rem; }

  .thanks { padding: 4.5rem 5vw 5.5rem; }
  .legal { margin: 0; }
  .releases-grid { grid-template-columns: 1fr; }
}

/* ---------- REDUKCJA RUCHU ----------
   Windows często włącza to w Ustawienia → Ułatwienia dostępu → Efekty wizualne.
   Zamiast wyłączać wszystko: krótsze wejście hero, wolniejsza fala, bez scroll-fade i paralaksy. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-enter > .hero-meta, .hero-enter > .headline, .hero-enter > .sub, .hero-enter > .cta-row {
    animation: heroIn 0.35s ease forwards;
    animation-delay: 0s !important;
  }
  .hero .wave i { animation-duration: 3.2s; }
  html.js .reveal, html.js .reveal-stagger .sec-title, html.js .reveal-stagger .section-body,
  html.js .reveal-stagger .inner, html.js .reveal-stagger .ig-thumbs { opacity: 1; transform: none; transition: none; }
  html.js .reveal.is-visible .sec-title .dot { animation: none; }
  .reveal .sec-title .dot { transform: scale(1); }
}

/* ---------- PORTFOLIO: brand mark, text hero, timeline, skills ---------- */
.brand-mark {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
}
.brand-initials {
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em;
  border: 1.5px solid currentColor; padding: 0.35rem 0.55rem; line-height: 1;
}
.brand-name { font-size: 0.95rem; font-weight: 600; }
.brand-mark--light { color: #fff; }
.brand-mark--light:hover { color: var(--red); }

.hero--text {
  background: #111;
  min-height: calc(100vh - 88px);
  align-items: flex-end;
  overflow: hidden;
}
.hero-atmosphere {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 80%, rgba(241, 15, 15, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(255, 255, 255, 0.06), transparent 50%),
    linear-gradient(160deg, #1a1a1a 0%, #111 45%, #0a0a0a 100%);
}
.hero-atmosphere::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  opacity: 0.12; mix-blend-mode: overlay; pointer-events: none;
}
.headline--name {
  white-space: normal;
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 12ch;
}

.embed-placeholder {
  min-height: 152px; border: 1.5px dashed var(--hairline);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 0.7rem; padding: 1.4rem 1.5rem; background: #fafafa;
}
.embed-placeholder p { color: var(--label); font-size: 0.9rem; }
.embed-frame { position: relative; border-radius: 12px; overflow: hidden; }
.embed-frame iframe { display: block; border: 0; }

.timeline { max-width: 760px; }
.timeline-item {
  padding: 1.8rem 0; border-top: 1px solid var(--hairline);
}
.timeline-item:first-child { border-top: none; padding-top: 0; }
.timeline-period {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--label);
}
.timeline-company {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 700;
  margin-top: 0.35rem; letter-spacing: -0.02em;
}
.timeline-role { color: var(--muted); font-size: 1.05rem; margin-top: 0.35rem; }

.split-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.split-col .timeline { max-width: none; }
.split-col .sec-title { margin-bottom: 1.6rem; }

.skills-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem 0.9rem;
  max-width: 820px;
}
.skills-list li {
  font-weight: 600; font-size: 0.95rem;
  border-bottom: 2px solid var(--ink); padding: 0.35rem 0;
}
.skills-list li:hover { color: var(--red); border-color: var(--red); }

.skills-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}
.skills-bullets li { margin-top: 0.55rem; padding-left: 0.2rem; }
.skills-bullets li::marker { color: var(--red); }

.photo-stack {
  display: grid;
  gap: 1rem;
}
.photo-stack .photo-placeholder,
.photo-stack .photo-frame {
  width: 100%;
  height: 280px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 2.5%, 100% 100%, 0 97.5%);
}
.photo-stack .photo-placeholder {
  background: #f4f4f4;
  filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}
.photo-stack .photo-frame:first-child { height: 360px; }
.photo-stack .photo-frame:last-child { height: 300px; }
.photo-stack .photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  filter: none;
}

.hero .headline--name {
  white-space: normal;
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 12ch;
}
.hero .hero-bg {
  filter: grayscale(1) brightness(0.38);
  object-position: center 30%;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-poster { display: block; }
}

.contact-strip { margin-top: 1.2rem; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.contact-strip .contact-big { margin-top: 0; }
.contact-loc { color: var(--muted); margin-top: 0.5rem; font-size: 1rem; }
.social-row {
  display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap;
  margin-top: 1.8rem;
}
.social-row a {
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border-bottom: 2px solid var(--ink); padding-bottom: 0.2rem;
}
.social-row a:hover { color: var(--red); border-color: var(--red); }

/* Simple header — personal site, not Polyvale logo bar */
.site-header--simple { border-bottom: 1px solid var(--hairline); }
.logo-text {
  font-size: 0.95rem; font-weight: 700; letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap;
}
.logo-text:hover { color: var(--red); }
.header-cv {
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 0.4rem 1rem; min-height: 40px;
  display: inline-flex; align-items: center;
}
.header-cv:hover { border-color: var(--red); color: var(--red); }
.foot-grid--simple { align-items: center; }
.foot-name { font-weight: 600; font-size: 1rem; color: #fff; }

.closing .btn-outline {
  border-color: var(--ink); color: var(--ink);
}
.closing .btn-outline:hover { border-color: var(--red); color: var(--red); }

@media (max-width: 860px) {
  .hero--text { min-height: 72vh; clip-path: none; }
  .headline--name,
  .hero .headline--name {
    font-size: clamp(2.1rem, 10vw, 3rem);
    max-width: none;
  }
  .hero .cta-row .btn-outline { display: inline-flex; width: 100%; justify-content: center; }
  .hero .btn-hero-email { display: none; }
  .logo-text { font-size: 0.82rem; max-width: 55vw; overflow: hidden; text-overflow: ellipsis; }
  .photo-stack .photo-placeholder { height: 180px; }
  .photo-stack .photo-frame { height: 240px; }
  .photo-stack .photo-frame:first-child { height: 340px; }
  .header-cv { display: none; }
  .split-cols { grid-template-columns: 1fr; gap: 3rem; }
  #umiejetnosci .sec-title-sm { font-size: clamp(1.55rem, 7.2vw, 2.2rem); }
}
