/* ===================================================================
   Portfolio OA — pełny arkusz stylów
   Jedyne źródło stylów strony (index.html nie zawiera stylów inline;
   script.js animuje wyłącznie transform/opacity i przełącza klasy).

   Spis treści:
   1. Design tokens          6. Hero
   2. Baza + dostępność      7. Taśmy marquee
   3. Keyframes              8. Sekcje: Prace / Usługi / Proces
   4. Utility (pigułki itd.) 9. Sekcje: O mnie / Kontakt
   5. Preloader / pasek /   10. Responsywność (1200/900/760/600/400/1600)
      nawigacja             11. prefers-reduced-motion
   =================================================================== */

/* ---- 1. Design tokens ---- */
:root {
  --bg: #F1F4F8;          /* tło strony */
  --ink: #212227;         /* czerń: tekst główny, bordery, ciemne sekcje */
  --body: #3F444B;        /* tekst body */
  --meta: #5B6470;        /* tekst drugorzędny / meta */
  --blue: #3A6EA5;        /* błękit główny */
  --blue-light: #7FAFDC;  /* błękit jasny: akcenty, twarde cienie */
  --card: #FBFCFE;        /* tło kart */
  --light: #F1F4F8;       /* jasny tekst na ciemnym tle */
  --font-display: 'Anton', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* ---- 2. Baza ---- */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  /* kratka: 2 warstwy linii (44px jasne + 220px ciemniejsze), poziom+pion */
  background-image:
    linear-gradient(rgba(58,110,165,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,110,165,0.06) 1px, transparent 1px),
    linear-gradient(rgba(58,110,165,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,110,165,0.1) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px, 220px 220px, 220px 220px;
}

/* twarde odcięcie poziomego przewijania: taśmy 120vw/-10vw wychodzą
   poza ekran → klipujemy, żeby nigdy nie było poziomego paska */
html, body { overflow-x: hidden; }

::selection { background: var(--ink); color: var(--light); }

img { max-width: 100%; }

.page { position: relative; }

/* dostępność: widoczny focus przy nawigacji klawiaturą */
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
#kontakt a:focus-visible { outline-color: var(--blue-light); }

/* ---- 3. Keyframes ---- */
@keyframes oaMarq  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes oaSpin  { to { transform: rotate(360deg); } }
@keyframes oaPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes oaTicker {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(0); animation-timing-function: cubic-bezier(0.65,0,0.35,1); }
  50%  { transform: translateY(-1.35em); }
  90%  { transform: translateY(-1.35em); animation-timing-function: cubic-bezier(0.65,0,0.35,1); }
  100% { transform: translateY(-2.7em); }
}

/* ===================================================================
   4. Utility — elementy powtarzalne
   =================================================================== */

/* etykieta sekcji: ( Realizacje ) ( Usługi ) ( Proces ) ( O mnie ) ( Kontakt ) */
.section-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
}

/* nagłówek sekcji (Anton display) */
.sec-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
}
.accent { color: var(--blue); }
.accent-light { color: var(--blue-light); }

/* przyciski-pigułki */
.pill {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 16px 26px;
  border-radius: 99px;
}
.pill-dark { background: var(--ink); color: var(--light); transition: background 0.25s; }
.pill-dark:hover { background: var(--blue); }
.pill-sm { font-size: 13.5px; padding: 13px 22px; }
.pill-outline {
  color: var(--ink);
  border: 1.5px solid var(--ink);
  background: rgba(255,255,255,0.6);
  transition: border-color 0.25s, color 0.25s;
}
.pill-outline:hover { border-color: var(--blue); color: var(--blue); }
.pill-light { background: var(--blue-light); color: var(--ink); font-weight: 700; padding: 16px 28px; }
.pill-ghost {
  color: var(--light);
  border: 1.5px solid rgba(241,244,248,0.55);
  padding: 16px 28px;
  transition: border-color 0.25s;
}
.pill-ghost:hover { border-color: var(--blue-light); }

/* link tekstowy z podkreśleniem (Zarezerwuj termin ↗) */
.link-underline {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--blue-light);
  padding-bottom: 3px;
  transition: color 0.25s;
}
.link-underline:hover { color: var(--blue); }

/* polaroid (hero + O mnie): taśma, zdjęcie, podpis */
.photo-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 92px;
  height: 22px;
  display: block;
  background: #7FAFDCB3;
}
.photo-img {
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 28%;
}
.photo-caption {
  position: absolute;
  bottom: 9px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  color: var(--meta);
}

/* ===================================================================
   5. Preloader / pasek postępu / nawigacja
   =================================================================== */

/* preloader: kurtyna z nazwiskiem (JS animuje transform i chowa) */
.pre {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.85s cubic-bezier(0.76,0,0.24,1);
}
.pre-mask { display: block; overflow: hidden; }
.pre-mask-1 { padding-bottom: 0.05em; }
.pre-mask-2 { padding-bottom: 0.08em; }
.pre-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 124px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--light);
  transform: translateY(115%); /* stan startowy — JS wjeżdża liniami do 0 */
}
.pre-line-stroke { color: transparent; -webkit-text-stroke: 1.5px var(--blue-light); }
.pre-count {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(241,244,248,0.65);
}
.pre-tag {
  position: absolute;
  bottom: 24px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(241,244,248,0.45);
}

/* pasek postępu scrolla (JS ustawia scaleX) */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* nawigacja (fixed) */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4vw;
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1.5px solid transparent;
}
/* po 40 px scrolla JS dodaje .nav-scrolled */
.nav-scrolled {
  background: rgba(241,244,248,0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(33,34,39,0.16);
}
.nav-logo {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 0.02em;
}
.logo-dot { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-link:hover { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 18px; }

/* hamburger (domyślnie ukryty na desktopie) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  margin: -6px -4px -6px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.2s;
}

/* ===================================================================
   6. Hero
   =================================================================== */
#hero {
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 120px 4vw 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--meta);
  text-transform: uppercase;
  border-bottom: 1.5px solid rgba(33,34,39,0.2);
  padding-bottom: 14px;
}
.hero-status { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
  flex-shrink: 0;
  animation: oaPulse 2s ease-in-out infinite;
}

.hero-stage { position: relative; z-index: 0; margin-top: 34px; }
.hero-band {
  position: absolute;
  right: 3vw;
  top: 52%;
  width: 44vw;
  height: clamp(64px, 9.5vw, 150px);
  background: rgba(127,175,220,0.55);
  transform: rotate(-1.6deg);
  z-index: 0;
}
.hero-photo {
  position: absolute;
  right: 6vw;
  top: -64px;
  transform: rotate(4deg);
  background: #fff;
  padding: 10px 10px 44px;
  box-shadow: 0 18px 44px rgba(33,34,39,0.18);
  z-index: 2;
}
.hero-photo .photo-tape { transform: translateX(-50%) rotate(-5deg); }
.hero-photo .photo-img { width: clamp(140px, 14vw, 205px); }
.hero-photo .photo-caption { font-size: clamp(11px, 0.78vw, 17px); line-height: 1.35; }

.hero-title {
  margin: 0;
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: 0.005em;
}
.hero-mask-1 { display: block; overflow: hidden; padding-bottom: 0.05em; }
.hero-mask-2 { display: block; overflow: hidden; padding-bottom: 0.08em; padding-left: 7vw; }
.hero-word-1 { display: block; font-size: clamp(100px, 20vw, 300px); }
.hero-word-2 {
  display: block;
  font-size: clamp(52px, 10.2vw, 164px);
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.hero-tagline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 44px;
}
.hero-verb {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  font-size: clamp(21px, 2.5vw, 32px);
  font-weight: 500;
}
.ticker-view {
  display: block;
  overflow: hidden;
  height: 1.35em;
  position: relative;
  min-width: 9ch;
}
.ticker { display: block; animation: oaTicker 4.6s infinite; }
.ticker-word {
  display: block;
  height: 1.35em;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.spin-star {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--blue-light);
  display: inline-block;
  animation: oaSpin 10s linear infinite;
}

/* ===================================================================
   7. Taśmy marquee (pod hero)
   =================================================================== */
.marq-section { position: relative; height: 225px; margin-top: -10px; overflow: hidden; }
.marq-tape {
  position: absolute;
  left: -10vw;
  width: 120vw;
  overflow: hidden;
}
.tape-dark {
  top: 44px;
  transform: rotate(-1.8deg);
  background: var(--ink);
  color: var(--light);
  padding: 14px 0;
  box-shadow: 0 14px 34px rgba(33,34,39,0.16);
}
.tape-blue {
  top: 108px;
  transform: rotate(1.4deg);
  background: var(--blue-light);
  color: var(--ink);
  padding: 12px 0;
}

/* wspólny pasek przewijany (JS dopełnia klonami i wydłuża duration) */
.marq { display: flex; width: max-content; animation: oaMarq 26s linear infinite; }
.tape-blue .marq { animation-duration: 32s; animation-direction: reverse; }
.marq-group { display: flex; align-items: center; gap: 38px; padding-right: 38px; }
.marq-item {
  font-family: var(--font-display);
  font-size: 29px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.tape-blue .marq-item { font-size: 25px; }
.marq-star { color: var(--blue-light); font-size: 24px; }
.tape-blue .marq-star { color: inherit; font-size: 20px; }

/* ===================================================================
   8a. Prace (Realizacje)
   =================================================================== */
#prace { padding: 110px 0 90px; overflow: hidden; }
.works-label { padding: 0 4vw; }
.drift-title {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 230px);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(33,34,39,0.3);
  will-change: transform;
  margin-top: 6px;
}
.tilt-wrap {
  perspective: 1400px;
  max-width: 1000px;
  margin: -40px auto 0;
  padding: 0 4vw;
  position: relative;
  z-index: 1;
}
.project-card {
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--blue-light);
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 3;
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--ink); }
.bar-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(241,244,248,0.4); display: block; }
.bar-dot-blue { background: var(--blue-light); }
.bar-url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--light);
  background: rgba(241,244,248,0.12);
  padding: 4px 12px;
  border-radius: 99px;
}
.video-slot { aspect-ratio: 16 / 9; position: relative; background: var(--ink); }
.video-slot video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border-top: 2px solid var(--ink);
}
.project-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 29px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* baner „wolny slot" */
.slot-wrap { max-width: 1000px; margin: 30px auto 0; padding: 0 4vw; }
.slot-banner {
  border: 2px dashed rgba(33,34,39,0.4);
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.5);
}
.slot-text { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.slot-hl { color: var(--blue); font-weight: 700; }

/* ===================================================================
   8b. Usługi
   =================================================================== */
#uslugi { padding: 110px 4vw 120px; }
#uslugi .sec-title { font-size: clamp(52px, 8vw, 120px); }
.svc-list { margin-top: 56px; border-top: 2px solid var(--ink); }
.svc-row {
  display: flex;
  align-items: baseline;
  gap: 28px;
  flex-wrap: wrap;
  padding: 44px 8px;
  border-bottom: 2px solid var(--ink);
  transition: background 0.3s, padding 0.35s;
}
.svc-row:hover { background: rgba(127,175,220,0.15); padding-left: 30px; }
.svc-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 54px);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue);
  line-height: 1;
}
.svc-title {
  margin: 0;
  flex: 1 1 300px;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(32px, 4.8vw, 70px);
  line-height: 1;
  background-image: linear-gradient(rgba(127,175,220,0.55), rgba(127,175,220,0.55));
  background-repeat: no-repeat;
  background-size: 0% 42%;
  background-position: 0 76%;
  transition: background-size 0.5s;
}
.svc-row:hover .svc-title { background-size: 100% 42%; }
.svc-desc { margin: 0; flex: 1 1 280px; max-width: 390px; font-size: 16px; line-height: 1.6; color: var(--body); }
.svc-arrow { font-family: var(--font-display); font-size: 30px; }

/* ===================================================================
   8c. Proces (zygzak 4 etapów)
   =================================================================== */
#proces { padding: 0 4vw 130px; }
#proces .sec-title { font-size: clamp(48px, 7vw, 110px); }
.steps { display: flex; flex-direction: column; gap: 10px; max-width: 980px; margin: 64px auto 0; }
.step { position: relative; width: 100%; max-width: 660px; box-sizing: border-box; }
.step:nth-of-type(odd) { margin-right: auto; }
.step:nth-of-type(even) { margin-left: auto; }

.step-badge {
  position: absolute;
  top: -24px;
  z-index: 2;
  width: 54px;
  height: 54px;
  box-sizing: border-box;
  background: var(--bg);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
}
.step:nth-of-type(odd) .step-badge { left: -12px; transform: rotate(-3deg); }
.step:nth-of-type(even) .step-badge { right: -12px; transform: rotate(3deg); }
.step-badge-fill { background: var(--blue); color: var(--light); }

.step-card {
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--blue-light);
  padding: 28px 32px;
  transition: transform 0.35s, box-shadow 0.35s;
}
.step:nth-of-type(1) .step-card { transform: rotate(-0.7deg); }
.step:nth-of-type(2) .step-card { transform: rotate(0.6deg); }
.step:nth-of-type(3) .step-card { transform: rotate(-0.5deg); }
.step:nth-of-type(4) .step-card { transform: rotate(0.7deg); }
.step .step-card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 10px 10px 0 var(--blue-light); }
.step-card-dark { background: var(--ink); color: var(--light); }

.step-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.step-card-dark .step-eyebrow { color: var(--blue-light); }
.step-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.05;
}
.step-desc { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--body); max-width: 560px; }
.step-card-dark .step-desc { color: rgba(241,244,248,0.85); }

.step-arrow {
  align-self: center;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: rgba(58,110,165,0.7);
}
.step-arrow:nth-of-type(odd) { transform: rotate(10deg); }
.step-arrow:nth-of-type(even) { transform: rotate(-10deg); }

/* ===================================================================
   9a. O mnie
   =================================================================== */
#o-mnie { padding: 20px 4vw 130px; }
.about-inner { max-width: 1060px; margin: 0 auto; }
.about-lede {
  margin: 30px 0 0;
  font-size: clamp(23px, 2.9vw, 38px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mark {
  background: rgba(127,175,220,0.5);
  padding: 1px 7px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.mark-ink {
  background: var(--ink);
  color: var(--light);
  padding: 1px 9px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.about-row { display: flex; gap: 44px; flex-wrap: wrap; align-items: flex-start; margin-top: 60px; }
.about-photo {
  transform: rotate(-3deg);
  background: #fff;
  padding: 10px 10px 34px;
  box-shadow: 0 18px 44px rgba(33,34,39,0.16);
  position: relative;
}
.about-photo .photo-tape { transform: translateX(-50%) rotate(4deg); }
.about-photo .photo-img { width: clamp(180px, 18vw, 240px); }
.about-photo .photo-caption { font-size: 11px; }
.about-col { flex: 1 1 420px; max-width: 560px; }
.about-bio { margin: 6px 0 0; font-size: 18px; line-height: 1.7; color: var(--body); }
.about-bio strong { font-weight: 600; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.chip {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  padding: 6px 12px;
  background: rgba(255,255,255,0.6);
}

/* ===================================================================
   9b. Kontakt (ciemna stopka)
   =================================================================== */
#kontakt {
  background: var(--ink);
  color: var(--light);
  border-radius: 36px 36px 0 0;
  padding: 110px 4vw 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
#kontakt .section-label { color: var(--blue-light); }
#kontakt .sec-title { margin: 20px 0 0; font-size: clamp(90px, 17vw, 250px); line-height: 0.9; }
.contact-cta { margin-top: 36px; }
.contact-mail {
  text-decoration: none;
  color: var(--light);
  font-weight: 600;
  font-size: clamp(17px, 2.8vw, 36px);
  letter-spacing: 0.01em;
  border-bottom: 3px solid var(--blue-light);
  padding-bottom: 6px;
  font-family: var(--font-mono);
}
.contact-note { margin: 18px 0 0; font-family: var(--font-mono); font-size: 12.5px; color: rgba(241,244,248,0.55); }
.contact-actions { margin-top: 40px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* konturowa marquee nad stopką */
.contact-marq { margin-top: 90px; overflow: hidden; }
.contact-marq .marq { animation-duration: 30s; }
.contact-marq .marq-group { gap: 40px; padding-right: 40px; }
.marq-ghost {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(241,244,248,0.4);
}
.contact-marq .marq-star { font-size: 34px; }

.footer {
  margin-top: 60px;
  border-top: 1.5px solid rgba(241,244,248,0.18);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(241,244,248,0.6);
}

/* ===================================================================
   10. RESPONSYWNOŚĆ
   Breakpointy: 1200 (mały laptop) · 900 (tablet) · 760 (menu mobilne)
   · 600 (telefon) · 400 (mały telefon) · 1600 (duży monitor).
   Ultra-wide = plakatowy full-bleed (bez cappowania — celowo).
   =================================================================== */

/* ---- mały laptop ---- */
@media (max-width: 1200px) {
  .hero-photo { right: 4vw; }
}

/* ---- tablet ---- */
@media (max-width: 900px) {
  .hero-photo { width: auto; }
  .hero-photo .photo-img { width: clamp(120px, 16vw, 180px); }
}

/* ---- ≤760: menu mobilne ---- */
@media (max-width: 760px) {
  .nav-burger { display: flex; }

  /* row-gap:0 — inaczej `gap:20px` dodaje puste odstępy między
     zwiniętymi wierszami menu i rozdyma pasek nawigacji */
  .nav { flex-wrap: wrap; row-gap: 0; }

  .nav-links,
  .nav-cta {
    order: 5;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin: 0;
    transition: max-height 0.38s cubic-bezier(0.16,1,0.3,1), opacity 0.25s, padding 0.38s;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  .nav-links a {
    padding: 13px 2px;
    font-size: 16px;
    border-bottom: 1px solid rgba(33,34,39,0.1);
  }
  .nav-cta a { display: block; width: 100%; box-sizing: border-box; text-align: center; }

  .nav.nav-open {
    background: rgba(241,244,248,0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(33,34,39,0.16);
  }
  .nav-open .nav-links { max-height: 320px; opacity: 1; padding-top: 6px; }
  .nav-open .nav-cta { max-height: 90px; opacity: 1; padding: 6px 0 14px; }

  /* animacja hamburgera → X */
  .nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* hero: chowamy dekoracyjny polaroid (to samo zdjęcie jest w „O mnie")
     i nagłówek meta (za dużo tekstu na telefonie) */
  .hero-photo { display: none; }
  .hero-meta { display: none; }
  /* „O mnie": zdjęcie wyśrodkowane, nie do lewej */
  .about-row { justify-content: center; }
  /* treść startuje od góry, bez wymuszonej pełnej wysokości */
  #hero {
    min-height: auto;
    justify-content: flex-start;
    padding: 92px 5vw 52px;
  }
  /* „ADAMCZEWSKI" bez wcięcia 7vw — nie wychodzi poza ekran */
  .hero-mask-2 { padding-left: 0; }
  /* oryginalny clamp utyka na min 52px poniżej ~510px szerokości.
     Skala 15.5vw wypełnia ~93% szerokości na każdym telefonie;
     cap 78px schodzi się gładko z wartością desktopową na 760px. */
  .hero-word-2 { font-size: clamp(44px, 15.5vw, 78px); }

  /* realizacje: karta nie zachodzi na przewijany tytuł */
  .tilt-wrap { margin-top: 0; }
  /* showcase: na telefonach leci pionowe nagranie (776×1316) —
     slot dostaje jego proporcje, żeby nic nie było przycięte */
  .video-slot { aspect-ratio: 776 / 1316; }

  /* usługi: luźniejsze wiersze; tap nie robi wcięcia (jak w oryginale) */
  .svc-row { padding: 30px 2px; gap: 12px 20px; }
  .svc-row:hover { padding-left: 2px; }

  /* proces: mniejszy padding kart */
  .step-card { padding: 22px 20px; }
}

/* ---- ≤600: telefon ---- */
@media (max-width: 600px) {
  /* taśmy pod hero: mniejsza czcionka + ciaśniejsze ułożenie */
  .marq-section { height: 172px; }
  .marq-tape .marq-item,
  .marq-tape .marq-star { font-size: 19px; }
  .tape-dark { top: 30px; }
  .tape-blue { top: 88px; }

  /* mniejsze odstępy pionowe + trochę więcej powietrza po bokach */
  #prace { padding-top: 76px; padding-bottom: 56px; }
  #uslugi { padding: 76px 6vw 80px; }
  #proces { padding: 0 6vw 84px; }
  #o-mnie { padding: 16px 6vw 84px; }
  #kontakt { padding: 84px 6vw 24px; }

  #kontakt .sec-title { font-size: clamp(58px, 15vw, 250px); }
}

/* ---- ≤400: mały telefon ---- */
@media (max-width: 400px) {
  .marq-tape .marq-item,
  .marq-tape .marq-star { font-size: 17px; }
}

/* ---- duży monitor: większe zdjęcie w hero ---- */
@media (min-width: 1600px) {
  .hero-photo .photo-img { width: clamp(205px, 15vw, 320px); }
}

/* ===================================================================
   11. Ograniczony ruch — wyłączamy pętle animacji;
   preloader, tilt, magnesy i drift wyłącza script.js
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marq, .ticker, .spin-star, .status-dot { animation: none; }
}
