/* FABC — poprawki 20.10.2026 */

/* Work: napisy na blokach (Anton) — grubsze, węższe i większe.
   --sx  = zwężenie (1 = oryginalna szerokość, mniej = węższy)
   --fs  = wielkość względem wysokości bloku (było .86)
   --wt  = pogrubienie obrysem w kolorze litery (0 = oryginalna grubość) */
.step { --sx: .84; --fs: 1.02; --wt: .032; }
.step .f { font-size: calc(var(--h) * var(--fs)); letter-spacing: .02em;
  -webkit-text-stroke: calc(var(--h) * var(--wt)) currentColor; paint-order: stroke fill; }
.step .f span { transform: scaleX(var(--sx)) skewX(-6deg); transform-origin: 0 50%; }

/* Menu: w nagłówku tylko burger (bez linków i bez słowa „Menu”) */
.nav .n-link { display: none !important; }
#menuTxt { position: absolute !important; width: 1px !important; height: 1px !important; max-width: none !important; overflow: hidden !important;
  clip-path: inset(50%) !important; white-space: nowrap !important; opacity: 1 !important; }   /* niewidoczne, ale czytnik ekranu dalej czyta „Menu” */

/* Burger: zawsze widoczny (także na samej górze strony głównej) */
.top .menu-btn, #menuBtn { opacity: 1 !important; transform: none !important; pointer-events: auto !important; visibility: visible !important; }

/* Contact: CTA na środku, dane kontaktowe pod nim */
.contact .cmid { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 7vh !important; text-align: center; }
.contact .cw-cta { margin: 0 !important; align-items: center !important; text-align: center; }
.contact .cw-cta-t { font-size: max(48px, 6.4vw) !important; line-height: .95; }
.contact .cinfo { align-items: center !important; justify-self: center !important; text-align: center !important; }
.contact .cinfo .row { justify-content: center; }
.cw-cta-lbl { display: none !important; }

/* Menu otwarte: logo / imię białe na czarnej połowie, bez kolorowych „duchów” glitcha (to one dawały 3. logo) */
body.menu-open .top .logo, body.menu-open .top .home, body.menu-open .top .n-name, body.menu-open .top .n-name *, body.menu-open .top .marker { color: #F2F2F2 !important; }
body.menu-open .top .marker path { stroke: #F2F2F2 !important; }
body.menu-open .top .n-name, body.menu-open .top .marker, .top .n-name.n-gl { animation: none !important; text-shadow: none !important; filter: none !important; clip-path: none !important; }

/* Restore the existing short RGB bursts. Reduced motion still disables them.
   Filters belong to the content, not html: filtering html changes the containing
   block of fixed/sticky layers and can make the viewport jump. */
html.glitching, html.lglitch:not(.glitching) { filter: none !important; }
@media (prefers-reduced-motion:no-preference) {
  html.glitching #main > section:not(#film), html.glitching .fsubs { filter:url(#rgbG); }
  html.lglitch:not(.glitching) #main > section:not(#film) { filter:url(#locG); }
}
body.rgb .top { animation: none !important; }

/* WHAT I DO (mały, nad) + Cards on the table. (duży): napis z liter, które łączą się przy scrollu; karty najeżdżają na niego */
.xd-big { display: none; }
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  #expertise.xdeck.xbig { height: 240vh; }
  #expertise.xbig .xd-stage { overflow: visible !important; }   /* litery wylatują za ekran — bez przycinania */
  #expertise.xbig .sec-head h2 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }   /* zostaje dla czytników ekranu */
  #expertise.xbig .sec-head { position: relative; z-index: 3; }
  .xd-big { display: flex; position: absolute; inset: 0; z-index: 0; align-items: center; padding-top: 8vh; box-sizing: border-box; justify-content: center; pointer-events: none; user-select: none; }
  .xd-big .xb-in { display: flex; flex-direction: column; font-family: var(--font); font-weight: 800; font-size: min(24vh, 17vw); line-height: .84; letter-spacing: -.045em; color: #0A0A0A; transform: translateX(-2%); }
  .xd-big .xb-ln { display: block; white-space: nowrap; }
  .xd-big .xb-kick { position: absolute; left: var(--gutter, 5vw); top: 0; z-index: 1; font-family: var(--font); font-size: clamp(14px, 1vw, 18px); font-weight: 500; letter-spacing: .01em; text-transform: none; line-height: 1.2; color: #666; padding: 0; margin: 0; white-space: nowrap; }   /* „What I do” — mała etykieta na lewej krawędzi layoutu, jak reszta */
  .xd-big .xb-ln1 { padding-left: .34em; } .xd-big .xb-ln2 { padding-left: 1.1em; } .xd-big .xb-ln3 { padding-left: 0; }
  .xd-big .xb-ch { display: inline-block; will-change: transform, opacity; }
  #expertise.xbig .xlist { position: relative; z-index: 2; justify-content: center; will-change: transform; }
}

/* Clients: nagłówek „Brands I've worked with” 2× większy */
@media (min-width: 761px) { #clients .cl-head { top: clamp(96px, 12vh, 150px); } #clients .cl-head h2 { font-size: clamp(64px, 7.7vw, 150px); line-height: .9; white-space: nowrap; } }

/* ===== TELEFON: wszystko większe ===== */
@media (max-width: 760px) {
  /* logo: „Fabc” 2× większe; pełne „Fabian Cieniuch” na samej górze tyle, ile mieści się obok burgera */
  .top .n-name { font-size: 58px !important; transition: font-size .35s cubic-bezier(.22,1,.36,1), opacity .3s; }
  body.at-top:not(.menu-open) .top .n-name { font-size: 31px !important; }
  /* burger 3× większy i trochę niżej */
  .top .menu-btn, #menuBtn { top: 24px !important; min-width: 0 !important; height: auto !important; padding: 6px 0 !important; }
  .top .menu-btn .bars, #menuBtn .bars { width: 84px !important; height: 34px !important; }
  .top .menu-btn .bars::before, .top .menu-btn .bars::after { height: 7px !important; border-radius: 4px !important; }
  .top .menu-btn .bars::after { top: 27px !important; }
  body.menu-open .top .menu-btn .bars::before, body.menu-open .top .menu-btn .bars::after { top: 14px !important; }

  /* nagłówki 2× */
  .sec-head h2, .st-head h2, .bio-head h2, .cl-head h2 { font-size: clamp(84px, 23vw, 120px) !important; line-height: .9 !important; }
  .headline { font-size: 25vw !important; }
  .bio-head h2 { font-size: 16.5vw !important; }   /* „Cieniuch” musi się zmieścić w szerokości */
  .contact .cw-cta-t { font-size: 17.5vw !important; }
  .fsub h2 { font-size: clamp(70px, 21vw, 120px) !important; }

  /* reszta tekstów większa */
  #about .rv-in { font-size: 1.28em; }
  .contact .cmail { font-size: 34px !important; }
  .contact .cphone { font-size: 27px !important; }
  .contact .row a, .contact .swap { font-size: 22px !important; }
  .pill, .pill.dark, .cw-cta-go { font-size: 24px !important; }
  .contact .foot, .contact .foot a { font-size: 15px !important; }
  #expertise .xc span { font-size: 22px !important; }
  .mv-txt { font-size: 15px !important; } .mv-ttl { font-size: 22px !important; }
  .st-tip { font-size: 18px !important; }
}
