/* ============================================================
   MONOLIT: system wizualny Advantage Marketing
   czerń jako materiał · regolit · jeden czerwony akcent · Inter (nagłówki wersalikami)
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.woff2") format("woff2-variations"), url("fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050505;
  --bg-2: #0d0d0d;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --regolith: #8a8a8a;
  --regolith-light: #c9c9c9;
  --ink: #f2f2f2;
  --paper: #e6e6e6;
  --paper-ink: #0a0a0a;
  --accent: #fb0d1f;
  --accent-btn: #d90b1a;
  --accent-btn-hover: #e8101f;
  --accent-deep: #8a0710;
  --accent-ink: #ffffff;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --w: 1440px;
  --gutter: clamp(20px, 4vw, 64px);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 192px;

  --r-1: 4px; --r-2: 8px; --r-3: 16px; --r-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --t-ui: 180ms;
  --t-reveal: 700ms;
}

/* ---------- reset (niska specyficzność) ---------- */
*, *::before, *::after { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
:where(body) { margin: 0; }
:where(h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
:where(img, video, svg) { display: block; max-width: 100%; height: auto; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(a) { color: inherit; text-decoration: none; }
:where(button) { background: none; border: 0; padding: 0; cursor: pointer; }

html { background: var(--bg); color-scheme: dark; }
body {
  font-family: var(--font);
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-1); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--accent-btn); color: #fff; padding: 8px 12px; border-radius: var(--r-1); }
.skip:focus { left: 8px; }

/* ---------- layout ---------- */
.wrap { width: min(var(--w), 100% - 2 * var(--gutter)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--s-5); }
.section { padding-block: clamp(80px, 10vw, 160px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 112px); }
.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--paper .label { color: #555; }
.section--paper .lede, .section--paper .muted { color: #444; }
.hr { height: 1px; background: var(--line); border: 0; }

/* ---------- typografia ---------- */
.display, h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; font-variation-settings: "opsz" 32; }
h1, .h1 { font-size: clamp(38px, 6.4vw, 96px); text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.98; font-weight: 800; }
h2, .h2 { font-size: clamp(28px, 3.9vw, 54px); text-transform: uppercase; letter-spacing: -0.015em; line-height: 1.0; }
h3, .h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.015em; line-height: 1.15; }
h4, .h4 { font-size: 18px; letter-spacing: 0; line-height: 1.3; }
p { text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; color: var(--regolith-light); max-width: 40ch; }
.muted { color: var(--regolith); }
.label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--regolith); font-variation-settings: "opsz" 14;
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex: none; box-shadow: 0 0 6px rgba(251, 13, 31, .7); animation: blink 1.2s linear infinite; } /* kropka REC */
@media (prefers-reduced-motion: reduce) { .label::before { animation: none; } }
.label--plain::before { display: none; }
.num { font-variant-numeric: tabular-nums; color: var(--regolith); font-size: 13px; letter-spacing: 0.08em; }
.mark { color: var(--accent); }
.measure { max-width: 62ch; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 16px; line-height: 1;
  background: var(--accent-btn); color: var(--accent-ink);
  transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) ease;
}
.btn:hover { background: var(--accent-btn-hover); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; transition: transform var(--t-ui) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1px solid var(--line-strong); padding: 8px 0 6px; transition: border-color var(--t-ui) ease, gap var(--t-ui) var(--ease-out); }
.link:hover { border-color: var(--ink); gap: 12px; }

/* ---------- nawigacja (pigułka) ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 16px; z-index: 100;
  display: flex; justify-content: center; pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 14px;
  background: rgba(14, 14, 14, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: background-color 300ms ease;
}
.nav__logo { display: flex; align-items: center; margin-right: 14px; padding: 9px 0; }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { padding: 10px 14px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; color: var(--regolith-light); transition: color var(--t-ui) ease, background-color var(--t-ui) ease; }
.nav__links a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.nav__links a[aria-current="page"], .nav__links a.is-active { color: var(--ink); }
.nav__links a[aria-current="page"]::before, .nav__links a.is-active::before { content: "●"; color: var(--accent); font-size: 8px; vertical-align: middle; margin-right: 8px; }
.nav__cta { margin-left: 6px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.nav__burger span { position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; background: var(--ink); transition: transform 300ms var(--ease-drawer), opacity 200ms ease; }
.nav__burger span:nth-child(1) { transform: translateY(-5px); } .nav__burger span:nth-child(3) { transform: translateY(5px); }
.nav--open .nav__burger span:nth-child(1) { transform: rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: rotate(-45deg); }
.nav__sheet { display: none; }
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__pill { padding-left: 14px; position: relative; z-index: 95; }
  .nav__sheet {
    display: block; position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden;
    background: var(--bg); overflow: hidden;
    opacity: 0; transition: opacity 320ms ease, visibility 0s linear 320ms;
  }
  .nav--open .nav__sheet { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 320ms ease; }
  .nav__sheet .stars { height: 100%; inset: 0; z-index: 0; }
  .sheet__moon { position: absolute; left: 50%; bottom: 0; width: 170vw; max-width: 960px; transform: translate(-46%, 2%); z-index: 0; pointer-events: none; }
  .sheet__moon img { display: block; width: 100%; height: auto; opacity: 0.95; mask-image: linear-gradient(to bottom, transparent, #000 45%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); }
  .sheet__moon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg) 0%, rgba(5,5,5,0) 55%); }
  .sheet__in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding: calc(96px + env(safe-area-inset-top)) var(--gutter) calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .sheet__label { margin-bottom: 8px; opacity: 0; transition: opacity 300ms ease 80ms; }
  .nav--open .sheet__label { opacity: 1; }
  .sheet__list { list-style: none; margin: 0; padding: 0; }
  .sheet__list li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(18px); transition: opacity 420ms var(--ease-out), transform 560ms var(--ease-out); }
  .nav--open .sheet__list li { opacity: 1; transform: none; }
  .nav--open .sheet__list li:nth-child(1) { transition-delay: 90ms; } .nav--open .sheet__list li:nth-child(2) { transition-delay: 160ms; } .nav--open .sheet__list li:nth-child(3) { transition-delay: 230ms; } .nav--open .sheet__list li:nth-child(4) { transition-delay: 300ms; }
  .sheet__list a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; font-size: clamp(28px, 8vw, 40px); font-weight: 800; letter-spacing: -0.005em; text-transform: uppercase; line-height: 1.05; color: var(--ink); text-decoration: none; }
  .sheet__list a:active span:last-child { color: var(--regolith-light); }
  .sheet__num { font-family: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; font-weight: 400; color: var(--regolith-light); letter-spacing: 0; flex: 0 0 auto; }
  .sheet__num i { font-style: normal; color: var(--accent); }
  .sheet__foot { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 22px; opacity: 0; transform: translateY(12px); transition: opacity 420ms ease 380ms, transform 560ms var(--ease-out) 380ms; }
  .nav--open .sheet__foot { opacity: 1; transform: none; }
  .sheet__foot .btn { align-self: flex-start; font-size: 17px; padding: 15px 22px; }
  .sheet__contact { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--regolith); text-shadow: 0 1px 12px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.9); }
  .sheet__contact a { color: var(--regolith-light); text-decoration: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: clip; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: 0; transition: opacity 500ms ease; background: #050505; }
.hero__video.is-playing { opacity: 1; }
.hero__media { background: var(--bg); }
.hero__media.is-fading img { visibility: hidden; }                                   /* pod filmem już tylko czerń strony */
.hero__video.is-playing.is-fading { opacity: 0; transition: opacity 1600ms ease-in; } /* końcówka: pełne przygaszenie do #050505 */
.hero__scrim { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.15) 35%, rgba(5,5,5,0.35) 65%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5,5,5,0.75) 0%, rgba(5,5,5,0.25) 55%, rgba(5,5,5,0) 100%);
}
.hero__grain { position: absolute; inset: 0; z-index: -1; opacity: 0.18; pointer-events: none; transition: opacity 1600ms ease-in;
  .hero--dark & { opacity: 0; }
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero__inner { padding-block: 120px clamp(40px, 6vw, 80px); }
@media (max-width: 700px) {
  /* telefon: kadr 16:9 nie może być przycięty do samej kamery, więc obraz/film zajmują górne ~46% ekranu
     w szerszym wycinku, a tekst schodzi na czerń pod nimi; dół kadru rozmywa się w tło */
  .hero__media img, .hero__video { height: 46svh; object-position: 58% 45%; }
  .hero__media::after { content: ""; position: absolute; left: 0; right: 0; top: 30svh; height: 17svh; background: linear-gradient(180deg, rgba(5,5,5,0) 0%, var(--bg) 100%); }
  .hero__scrim { background: linear-gradient(180deg, rgba(5,5,5,0.35) 0%, rgba(5,5,5,0) 20%, rgba(5,5,5,0) 100%); }
  .hero__inner { padding-top: 44svh; }
  .hero__media.is-fading::after { opacity: 0; }
}
.hero__label { margin-bottom: var(--s-5); color: var(--regolith-light); }
.hero h1 { max-width: 12ch; }
.hero__lede { margin-top: var(--s-5); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); align-items: center; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-6); margin-top: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
/* hero: układ wyśrodkowany, duży tytuł (wariant 1, 2026-09-18) */
.hero { align-items: center; }
.hero__inner { padding-block: 130px 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: none; font-size: clamp(40px, 11.5vw, 190px); line-height: 0.92; letter-spacing: -0.03em; }
.hero__lede { max-width: 52ch; margin-inline: auto; font-size: clamp(18px, 1.5vw, 24px); }
.hero__cta { justify-content: center; }
.hero__foot { justify-content: center; text-align: center; }

/* wizjer: co filmuje astronauta */
.viewfinder {
  width: min(360px, 100%); aspect-ratio: 16 / 9; position: relative;
  border: 1px solid var(--line-strong); border-radius: var(--r-2); overflow: hidden; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.viewfinder video { width: 100%; height: 100%; object-fit: cover; }
.viewfinder__hud { position: absolute; inset: 10px; pointer-events: none; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.viewfinder__hud::before, .viewfinder__hud::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid rgba(255,255,255,0.7); }
.viewfinder__hud::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.viewfinder__hud::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.viewfinder__rec { position: absolute; right: 0; top: 0; display: flex; align-items: center; gap: 6px; }
.viewfinder__rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.2s linear infinite; }
.viewfinder__cap { position: absolute; left: 0; bottom: 0; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.15; } }

/* ---------- pasek logotypów ---------- */
.logos { padding-block: var(--s-7); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.logos__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-5); margin-bottom: var(--s-6); }
.logos__track { display: flex; align-items: center; width: max-content; animation: marquee 50s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__track img { height: 30px; width: auto; margin-right: clamp(40px, 6vw, 96px); opacity: 0.6; filter: grayscale(1); mix-blend-mode: screen; transition: opacity var(--t-ui) ease; }
.logos__track img.badge { height: 44px; filter: grayscale(1) brightness(1.15); }
.logos__track img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- manifest (słowa rozświetlają się) ---------- */
.manifest { position: relative; height: 300svh; padding: 0; } /* długość scrolla = długość "filmu" */
.manifest__stage { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: clip; isolation: isolate; padding-block: 96px 64px; }
.manifest__bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.manifest__bg img, .manifest__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: translateX(var(--sun-x, 9%)) scale(1.02); transform-origin: 50% 50%; } /* Słońce w prawej części, tekst na czerni po lewej */
@media (min-width: 1600px) { .manifest { --sun-x: 13%; } }
@media (min-width: 2000px) { .manifest { --sun-x: 16%; } }
.manifest__video { opacity: 0; transition: opacity 900ms ease; }
.manifest__video.is-playing { opacity: 1; }
.manifest__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(5,5,5,0) 22%, rgba(5,5,5,0) 78%, var(--bg) 100%),
              linear-gradient(90deg, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.78) 38%, rgba(5,5,5,0.35) 58%, rgba(5,5,5,0) 74%); }
.manifest__bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--bg); opacity: max(clamp(0, (0.22 - var(--p, 0)) / 0.22, 1), clamp(0, (var(--p, 0) - 0.72) / 0.24, 1)); pointer-events: none; } /* start i koniec scrolla: czerń strony, układ wyłania się i gaśnie */
.manifest .wrap { position: relative; }
.manifest p { transform: translateY(calc((0.5 - var(--p, 0)) * 60px)); text-shadow: 0 2px 24px rgba(5,5,5,.9), 0 0 2px rgba(5,5,5,.8); }
@media (max-width: 700px) {
  .manifest__stage { align-items: start; padding-top: calc(9svh + 144vw * 9 / 16 - 4px); padding-bottom: 48px; } /* tekst zaraz pod kadrem układu */
  /* telefon: cały układ w kadrze (pasy orbit widoczne), a nie samo Słońce; kadr 16:9 na czerni w górnej części ekranu */
  .manifest__bg img, .manifest__video { inset: auto; top: 9svh; left: -22%; width: 144%; max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: contain; object-position: 50% 50%; transform: none; filter: brightness(.95);
    -webkit-mask-image: radial-gradient(ellipse 52% 64% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 52% 64% at 50% 50%, #000 55%, transparent 100%); } /* pośrednie przybliżenie: Słońce + większość orbit, krawędzie w czerni */
  .manifest__bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(5,5,5,0) 14%, rgba(5,5,5,0) 50%, rgba(5,5,5,0.7) 66%, var(--bg) 100%); }
}
.manifest p { font-size: clamp(24px, 3.6vw, 56px); font-weight: 700; letter-spacing: 0.005em; line-height: 1.12; max-width: 24ch; text-wrap: balance; text-transform: uppercase; font-variation-settings: "opsz" 32; }
.manifest .w { color: rgba(242,242,242,0.22); transition: color 500ms var(--ease-drawer); }
.manifest .w.on { color: var(--ink); }
.manifest .w.on.mark { color: var(--accent); }

/* ---------- o nas ---------- */
.about, .section--dark2 { background: var(--bg-2); }
.about__photo { border-radius: var(--r-3); overflow: hidden; aspect-ratio: 4 / 5; background: #1a1a1a; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.about__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 -120px 160px -60px rgba(5,5,5,.55); pointer-events: none; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.92); }
.about__photo .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #777; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; padding: 20px; }
.people { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
.person { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.person__avatar { width: 56px; height: 56px; border-radius: 50%; background: #2a2a2a; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong); }
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person b { display: block; font-weight: 600; }
.person span { font-size: 14px; color: var(--regolith); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s-5); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.facts b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.facts span { font-size: 14px; color: var(--regolith); }

/* ---------- lista realizacji (styl 01 / KLIENT / ROK / PROJEKT) ---------- */
.ledger { border-top: 1px solid var(--line); }
.ledger__row { display: grid; grid-template-columns: 64px 1.2fr 80px 2fr 1fr; gap: var(--s-4); align-items: center; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); transition: background-color var(--t-ui) ease; position: relative; }
.ledger__row:hover { background: var(--surface); }
.ledger__row > * { position: relative; z-index: 1; }
.ledger__row .client { font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.ledger__row .year { color: var(--regolith); font-variant-numeric: tabular-nums; }
.ledger__row .project { color: var(--regolith-light); }
.ledger__row .cat { color: var(--regolith); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; }
.ledger__thumb { position: absolute; right: 20%; top: 50%; width: 220px; aspect-ratio: 16/9; border-radius: var(--r-2); overflow: hidden; z-index: 2; pointer-events: none; opacity: 0; transform: translateY(-50%) rotate(-3deg) scale(0.95); transition: opacity 250ms ease, transform 500ms var(--ease-out); }
.ledger__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ledger__row:hover .ledger__thumb { opacity: 1; transform: translateY(-50%) rotate(-2deg) scale(1); }
@media (max-width: 860px) { .ledger__row { grid-template-columns: 40px 1fr auto; } .ledger__row .project, .ledger__thumb { display: none; } .ledger__row .cat { grid-column: 2 / -1; text-align: left; } }

/* ---------- filtr portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-6) 0; }
.chip { padding: 12px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--regolith-light); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color var(--t-ui) ease, color var(--t-ui) ease, transform var(--t-ui) var(--ease-out); }
.chip:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper-ink); box-shadow: none; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); grid-auto-flow: dense; container-type: inline-size; grid-auto-rows: calc((100cqw - 2 * var(--s-4)) / 3 * 0.625); }
.work { display: block; position: relative; border-radius: var(--r-2); overflow: hidden; background: var(--surface); isolation: isolate; min-height: 0; }
.work--tall { grid-row: span 2; }
.work--wide { grid-column: span 2; }
.work img, .work video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-drawer), opacity 300ms ease; }
.work:hover img { transform: scale(1.03); }
.work__meta { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; font-size: 13px; }
.work__meta b { font-weight: 600; display: block; font-size: 15px; }
.work__meta span { color: var(--regolith-light); }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0) 40%, rgba(5,5,5,0.55) 75%, rgba(5,5,5,0.92) 100%); }
.work__meta { text-shadow: 0 1px 8px rgba(0,0,0,0.8); }
.work__play { position: absolute; right: 12px; top: 12px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: rgba(5,5,5,0.6); display: grid; place-items: center; border: 1px solid var(--line-strong); }
.work__play svg { width: 12px; height: 12px; margin-left: 2px; }
.work[hidden] { display: none; }
@media (max-width: 1100px) { .works { grid-template-columns: repeat(2, 1fr); grid-auto-rows: calc((100cqw - var(--s-4)) / 2 * 0.625); } }
@media (max-width: 600px) { .works { grid-template-columns: 1fr; grid-auto-rows: auto; } .work { aspect-ratio: 16 / 10; } .work--wide { grid-column: span 1; } .work--tall { grid-row: span 1; aspect-ratio: 9 / 12; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(5,5,5,0.92); padding: var(--gutter); opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 250ms ease, visibility 0s linear 250ms; }
.lightbox[open] { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 250ms ease; }
.lightbox__box { max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: 12px; transform: scale(0.97); transition: transform 350ms var(--ease-out); }
.lightbox[open] .lightbox__box { transform: none; }
.lightbox video, .lightbox img { max-height: 82svh; width: auto; max-width: 100%; border-radius: var(--r-2); background: #000; margin-inline: auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; color: var(--regolith-light); font-size: 14px; }
.lightbox__close { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color var(--t-ui) ease, transform var(--t-ui) var(--ease-out); }
.lightbox__close:hover { background: rgba(255,255,255,0.08); }
.lightbox__close:active { transform: scale(0.95); }

/* ---------- usługi szczegółowo (/uslugi) ---------- */
.svc { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-6); align-items: center; padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line); }
.svc__media { grid-column: 1 / span 6; border-radius: var(--r-3); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); position: relative; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__body { grid-column: 7 / span 6; }
.svc:nth-child(even) .svc__media { grid-column: 7 / span 6; order: 2; }
.svc:nth-child(even) .svc__body { grid-column: 1 / span 6; }
.svc h2 { margin-top: var(--s-3); font-size: clamp(26px, 3vw, 44px); }
.svc .lede { margin-top: var(--s-4); }
.svc__list { margin-top: var(--s-5); display: grid; gap: 10px; }
.svc__list li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; color: var(--regolith-light); font-size: 16px; }
.svc__list li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); background: radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px); margin-top: 3px; }
.svc__for { margin-top: var(--s-5); font-size: 14px; color: var(--regolith); max-width: 60ch; }
.svc__for b { color: var(--regolith-light); font-weight: 600; }
.svc__cta { margin-top: var(--s-6); display: flex; gap: var(--s-3); flex-wrap: wrap; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; gap: var(--s-5); } .svc__media, .svc__body, .svc:nth-child(even) .svc__media, .svc:nth-child(even) .svc__body { grid-column: 1 / -1; order: 0; } }

/* ---------- proces ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-5); counter-reset: step; }
.step { padding: var(--s-6) 0 0; border-top: 1px solid var(--line-strong); position: relative; }
.section--paper .step { border-color: rgba(0,0,0,0.18); }
.step::after { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-drawer); }
.step .num { font-size: 13px; transition: color 300ms ease; }
.step h3 { margin-top: var(--s-5); font-size: 22px; }
.step p { margin-top: var(--s-3); color: var(--regolith); font-size: 15px; }
.section--paper .step p { color: #555; }
html.js .steps--live .step h3, html.js .steps--live .step p, html.js .steps--live .step .num { opacity: 0.55; transition: opacity 500ms var(--ease-drawer), color 300ms ease; }
html.js .steps--live .step.on::after { transform: scaleX(1); }
html.js .steps--live .step.on h3, html.js .steps--live .step.on p, html.js .steps--live .step.on .num { opacity: 1; }
html.js .steps--live .step.on .num { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { html.js .steps--live .step h3, html.js .steps--live .step p, html.js .steps--live .step .num { opacity: 1; } html.js .steps--live .step::after { transform: scaleX(1); } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: var(--s-5); align-items: center; padding: var(--s-5) 0; font-weight: 600; font-size: clamp(17px, 1.3vw, 21px); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; transition: transform 300ms var(--ease-out), background-color var(--t-ui) ease; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 300ms var(--ease-out); }
.faq details[open] summary i { transform: rotate(45deg); background: rgba(255,255,255,0.06); }
.faq summary:hover i { background: rgba(255,255,255,0.08); }
.faq .a { padding: 0 0 var(--s-5); color: var(--regolith-light); max-width: 68ch; }

/* ---------- formularz briefu ---------- */
.brief { position: relative; isolation: isolate; }
.brief__bg { position: absolute; inset: 0 0 -280px 0; z-index: -1; overflow: hidden; }
.brief__bg img { width: 100%; height: 100%; object-fit: cover; object-position: left bottom; filter: brightness(0.85); }
.brief__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(5,5,5,0.55) 28%, rgba(5,5,5,0.35) 60%, rgba(5,5,5,0.15) 100%), linear-gradient(90deg, rgba(5,5,5,0) 45%, rgba(5,5,5,0.55) 100%); }
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-5); }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--regolith-light); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); border-radius: var(--r-2);
  padding: 14px 16px; color: var(--ink); transition: border-color var(--t-ui) ease, background-color var(--t-ui) ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,0.3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px var(--accent); background: rgba(255,255,255,0.06); }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c9c9c9' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field select option { color: #111; }
.field .err { display: none; font-size: 13px; color: #ff6b74; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #ff6b74; }
.field.is-invalid .err { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; inset: 0; opacity: 0; }
.choices span { display: inline-block; padding: 12px 14px; border-radius: var(--r-pill); font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--regolith-light); transition: background-color var(--t-ui) ease, color var(--t-ui) ease, transform var(--t-ui) var(--ease-out); cursor: pointer; }
.choices input:checked + span { background: var(--ink); color: var(--paper-ink); box-shadow: none; }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choices label:active span { transform: scale(0.97); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 14px; color: var(--regolith-light); align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent-btn); }
.consent .err { grid-column: 2; display: none; font-size: 13px; color: #ff6b74; }
.consent.is-invalid .err { display: block; }
.consent.is-invalid input { outline: 2px solid #ff6b74; outline-offset: 2px; }
.form__foot { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; margin-top: var(--s-3); }
.form__note { font-size: 14px; color: var(--regolith); }
.form__ok { display: none; padding: var(--s-6); border: 1px solid var(--line-strong); border-radius: var(--r-3); }
.form.is-sent { display: none; }
.form.is-sent + .form__ok { display: block; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }

/* ---------- kontakt ---------- */
.contact-card { display: grid; gap: var(--s-5); }
.contact-card dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--regolith); }
.contact-card dd { font-size: clamp(18px, 1.7vw, 26px); font-weight: 600; letter-spacing: -0.01em; margin-top: 4px; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--accent); }

/* ---------- stopka ---------- */
.footer { padding-block: var(--s-8) var(--s-6); position: relative; isolation: isolate; overflow: clip; background: transparent; }
.footer::before, .footer::after { pointer-events: none; }
.footer { z-index: 1; }
.brief { z-index: 0; }
.footer::before { content: ""; position: absolute; inset: auto 0 0 0; height: min(90vh, 900px); z-index: -1;
  background: url("img/rock-foot-1920.webp") left bottom / cover no-repeat; opacity: 0.45; filter: brightness(0.75);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); }
.footer::after { content: ""; position: absolute; inset: auto 0 0 0; height: min(90vh, 900px); z-index: -1;
  background: linear-gradient(180deg, rgba(5,5,5,0) 0%, rgba(5,5,5,0.45) 35%, rgba(5,5,5,0.35) 70%, rgba(5,5,5,0.25) 100%); }
@media (max-width: 900px) { .footer::before { background-image: url("img/rock-foot-960.webp"); } }
.footer { }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-6); }
.footer__brand img { height: 32px; width: auto; }
.footer__brand p { margin-top: var(--s-4); color: var(--regolith); max-width: 34ch; font-size: 15px; }
.footer h4, .footer .footer__h { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--regolith); margin-bottom: var(--s-4); }
.footer li { padding: 0; }
.footer li a { display: inline-block; padding: 9px 0; color: var(--regolith-light); transition: color var(--t-ui) ease; }
.footer li span { display: inline-block; padding: 9px 0; }
.footer li a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: 13px; color: var(--regolith); }
.footer__word { font-size: min(9.6vw, 150px); font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; line-height: 0.9; color: rgba(255,255,255,0.05); margin-top: var(--s-8); user-select: none; white-space: nowrap; overflow: hidden; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- nagłówki sekcji ---------- */
.sec-head { display: grid; grid-template-columns: 1fr auto; gap: var(--s-5); align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head h2 { margin-top: var(--s-3); max-width: 18ch; }
.sec-head .lede { margin-top: var(--s-4); }
@media (max-width: 700px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease-drawer), transform var(--t-reveal) var(--ease-drawer); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 80ms; } html.js .reveal[data-delay="2"] { transition-delay: 160ms; } html.js .reveal[data-delay="3"] { transition-delay: 240ms; } html.js .reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .logos__track { animation: none; }
  .manifest .w { color: var(--ink); transition: none; }
  .viewfinder__rec i { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- utils ---------- */
.mt-3 { margin-top: var(--s-3); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.col-6 { grid-column: span 6; } .col-5 { grid-column: span 5; } .col-7 { grid-column: span 7; } .col-4 { grid-column: span 4; } .col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }
.col-6.off-7 { grid-column: 7 / span 6; } .col-7.off-7 { grid-column: 7 / span 6; } .col-5.off-1 { grid-column: 2 / span 5; }
@media (max-width: 900px) { .grid { row-gap: var(--s-7); } .col-6, .col-5, .col-7, .col-4, .col-8, .col-6.off-7, .col-7.off-7, .col-5.off-1 { grid-column: 1 / -1; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.h2--about { font-size: clamp(26px, 2.9vw, 42px); }
.viewfinder { width: min(320px, 100%); }

/* ---------- mobile poprawki ---------- */
@media (max-width: 560px) {
  .service { min-height: 0; gap: var(--s-4); padding: var(--s-5); }
  .logos__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .logos__head .muted { display: none; }
  .hero__foot { gap: var(--s-4); }
  .facts { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- usługi: akordeon 1:1 ze starej strony (Avista as-services-3) ---------- */
.svcx, .has-ghost { position: relative; overflow: clip; }
.svcx__ghost, .ghost { position: absolute; left: max(-0.04em, calc((100% - var(--w)) / 2 - var(--gutter))); top: clamp(24px, 4vw, 56px); font-size: clamp(80px, 13vw, 210px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.85; color: rgba(255,255,255,0.045); text-transform: uppercase; user-select: none; pointer-events: none; }
.svcx .grid { align-items: start; }
.svcx__left { position: sticky; top: 96px; }
.svcx__rock { margin: var(--s-4) 0 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r-3); position: relative; z-index: 0; pointer-events: none; }
.svcx__rock video { width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; transform: scale(1.08); transform-origin: 46% 50%; mix-blend-mode: screen; }
.acc { border-bottom: 1px solid var(--line-strong); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 30px; padding: 35px 0; }
.acc summary::-webkit-details-marker { display: none; }
.acc__num { font-family: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 22px; font-weight: 400; color: #fff; align-self: flex-start; margin-top: 12px; flex: 0 0 auto; letter-spacing: 0; }
.acc__num i { font-style: normal; color: var(--accent); }
.acc__title {
  font-size: clamp(24px, 3vw, 46px); font-weight: 800; letter-spacing: -0.005em; line-height: 1.2; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; min-width: 0; flex: 1 1 auto;
  background: linear-gradient(90deg, #b5b5b5 0%, #8a8a8a 70%, #767676 100%) text;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: -webkit-text-fill-color 300ms cubic-bezier(0.44, 0, 0.56, 1);
}
.acc[open] .acc__title { -webkit-text-fill-color: #fff; }
.acc__plus { position: relative; width: 60px; height: 60px; flex: 0 0 auto; margin-left: auto; border-radius: 50%; border: 1.5px solid #fff; color: #fff; transition: transform 300ms cubic-bezier(0.44, 0, 0.56, 1), border-color 300ms ease, color 300ms ease; }
.acc__plus::before, .acc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.acc__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc:not([open]) summary:hover .acc__plus { color: var(--accent); border-color: var(--accent); }
.acc[open] .acc__plus { transform: rotate(227deg); }
.acc__body { display: grid; grid-template-columns: 1fr 1.45fr; gap: 40px; align-items: center; padding: 0 0 45px 0; animation: accIn 400ms var(--ease-drawer); }
.acc__img { border-radius: 24px; overflow: hidden; height: 225px; background: var(--surface); }
.acc__img img { width: 100%; height: 100%; object-fit: cover; }
.acc__text { display: grid; gap: 14px; color: #909090; font-size: 18px; }
.acc__text p { text-wrap: pretty; }
.acc__tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.acc__tags a, .acc__tags span { color: #fff; font-size: 15px; font-weight: 400; border: 1px solid #909090; border-radius: 100px; padding: 10px 18px; transition: background-color 300ms ease, border-color 300ms ease; }
.acc__tags a:hover { background: var(--accent-btn); border-color: transparent; }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 1100px) {
  .acc__title { white-space: normal; font-size: clamp(26px, 4.2vw, 48px); background: none; -webkit-text-fill-color: #a3a3a3; }
}
@media (max-width: 900px) {
  .svcx__left { position: static; }
  .svcx__rock { margin: var(--s-4) 0; aspect-ratio: 16 / 10; }
  .svcx__rock video { mix-blend-mode: normal; }
  .svcx__rock video { transform: none; }
  .svcx__ghost, .ghost { font-size: 28vw; top: 8px; }
  .acc summary { gap: 16px; padding: 22px 0; }
  .acc__num { font-size: 16px; margin-top: 6px; }
  .acc__title { font-size: clamp(26px, 7.5vw, 40px); }
  .acc__plus { width: 36px; height: 36px; }
  .acc__plus::before, .acc__plus::after { width: 14px; }
  .acc__body { grid-template-columns: 1fr; gap: 20px; padding-bottom: 28px; }
  .acc__img { height: 180px; }
}
@media (prefers-reduced-motion: reduce) { .acc__body { animation: none; } }

/* ---------- sekcja ze skalnym tłem u góry ---------- */
.section--rock { position: relative; isolation: isolate; overflow: clip; padding-top: clamp(140px, 18vw, 260px); }
.section--rock .sec-head { margin-bottom: clamp(56px, 8vw, 120px); grid-template-columns: 1fr; justify-items: center; text-align: center; }
.section--rock .sec-head h2 { max-width: 14ch; font-size: clamp(40px, 5.6vw, 84px); }
.section--rock .sec-head .label { justify-content: center; }
.section--rock::before { content: ""; position: absolute; inset: 0 0 auto 0; height: min(110vh, 1100px); z-index: -1;
  background: url("img/rock-wall-1920.webp") center top / cover no-repeat; opacity: 0.42; filter: brightness(0.7) contrast(0.95); }
.section--rock::after { content: ""; position: absolute; inset: 0 0 auto 0; height: min(110vh, 1100px); z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(5,5,5,0.35) 16%, rgba(5,5,5,0.3) 38%, rgba(5,5,5,0.78) 66%, var(--bg) 100%); }
@media (max-width: 900px) { .section--rock::before { background-image: url("img/rock-wall-960.webp"); height: 70vh; } .section--rock::after { height: 70vh; } }

/* ---------- portfolio: zwijanie ---------- */
.works { position: relative; }
.work[data-over] { display: none; }
.works--collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(5,5,5,0) 0%, var(--bg) 100%); }
.works__more { display: flex; justify-content: center; margin-top: var(--s-6); }
.works__more[hidden] { display: none; }
.works__toggle svg { transition: transform 300ms var(--ease-out); }
.works__toggle[aria-expanded="true"] svg { transform: rotate(-90deg) !important; }

/* ---------- sekcja z krawędzią Księżyca + gwiazdy ---------- */
.section--moon { position: relative; isolation: isolate; overflow: clip; padding-top: clamp(140px, 18vw, 260px); --moon-img: url("img/moon-limb-4-1920.webp"); }
.section--moon .sec-head { margin-bottom: clamp(200px, 26vw, 380px); grid-template-columns: 1fr; justify-items: center; text-align: center; }
.section--moon .sec-head h2 { max-width: 14ch; font-size: clamp(40px, 5.6vw, 84px); }
.section--moon .sec-head .label { justify-content: center; }
.section--moon::before { content: ""; position: absolute; inset: 0 0 auto 0; height: min(100vh, 960px); z-index: -2;
  background: var(--moon-img) center bottom / cover no-repeat; opacity: 0.5; filter: brightness(0.65); }
.section--moon::after { content: ""; position: absolute; inset: 0 0 auto 0; height: min(100vh, 960px); z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(5,5,5,0.15) 14%, rgba(5,5,5,0.05) 60%, rgba(5,5,5,0.55) 88%, var(--bg) 100%); }
.stars { position: absolute; inset: 0 0 auto 0; height: min(100vh, 960px); z-index: -1; pointer-events: none; overflow: hidden; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0; animation: twinkle var(--d, 4s) ease-in-out var(--dl, 0s) infinite; }
.stars i.big { width: 3px; height: 3px; box-shadow: 0 0 6px rgba(255,255,255,0.6); }
@keyframes twinkle { 0%, 100% { opacity: 0.05; transform: scale(0.8); } 50% { opacity: var(--o, 0.8); transform: scale(1); } }
@media (max-width: 900px) { .section--moon .sec-head { margin-bottom: 42vw; } .section--moon::before, .section--moon::after, .stars { height: 80vh; } .section--moon::before { background-image: url("img/moon-limb-4-960.webp"); } }
@media (prefers-reduced-motion: reduce) { .stars i { animation: none; opacity: 0.5; } }

/* ===== LOADER: strona wchodzi w trójkąt w logo ===== */
.loader { --ld-in: 700ms; --ld-out: 1150ms; }
.loader__mark { opacity: 0; transition: opacity var(--ld-in) ease; } /* bez CSS transform: transform ustawia JS atrybutem */
.loader.is-on .loader__mark { opacity: 1; }
.loader__glowc { opacity: 0; transform-box: fill-box; transform-origin: center; animation: ld-glow 2.2s ease-in-out infinite; }
.loader.is-on .loader__glowc { opacity: 1; }
.loader__edge { opacity: 0; stroke-dasharray: 40; stroke-dashoffset: 40; }
.loader.is-on .loader__edge { opacity: .9; animation: ld-edge 1.6s cubic-bezier(.65,0,.35,1) 250ms forwards; }
.loader.is-on .loader__cap { opacity: 1; transition: opacity 600ms ease 350ms; font-family: "Inter", system-ui, sans-serif; }
.loader.is-zoom .loader__cap { opacity: 0; transition: opacity 250ms ease; }
.loader.is-zoom .loader__glowc { animation: none; opacity: 0; transition: opacity 300ms; }
.loader.is-zoom .loader__edge { animation: none; opacity: 0; transition: opacity 400ms; }
.loader.is-done { opacity: 0; transition: opacity 250ms ease; pointer-events: none; }
@keyframes ld-glow { 0%,100% { transform: scale(.9); opacity: .55; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes ld-edge { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .loader__mark, .loader__cap, .loader__edge, .loader__glowc { transition: none !important; animation: none !important; }
  .loader.is-done { transition: opacity 300ms ease; }
}

/* ===== strona dokumentu (polityka prywatności) ===== */
.prose-page { padding-top: clamp(120px, 14vw, 180px); }
.toc { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 18px; position: sticky; top: 96px; }
.toc a { font-size: 13px; color: var(--regolith); text-decoration: none; padding: 3px 0; }
.toc a:hover { color: var(--ink); }
.prose { font-size: 16px; line-height: 1.65; color: var(--regolith-light); }
.prose h2 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; color: var(--ink); margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 28px; }
.prose p { margin-top: 12px; }
.prose ul { margin: 12px 0 0 0; padding-left: 20px; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: 20px 22px; line-height: 1.7; }
@media (max-width: 860px) { .toc { position: static; } .prose-page .col-7.off-6 { margin-top: 32px; } }

/* ===== baner cookies ===== */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9000; display: flex; justify-content: flex-start; pointer-events: none; }
.cc[hidden] { display: none; }
.cc__box { pointer-events: auto; width: min(520px, 100%); background: rgba(13,13,13,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-strong); border-radius: var(--r-3); padding: 22px 22px 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: translateY(12px); opacity: 0; animation: ccIn 500ms var(--ease-out) forwards; }
@keyframes ccIn { to { transform: none; opacity: 1; } }
.cc__label { margin-bottom: 8px; }
.cc__title { font-size: 17px; letter-spacing: 0; text-transform: uppercase; }
.cc__text { font-size: 14px; line-height: 1.55; color: var(--regolith-light); margin-top: 8px; }
.cc__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cc__opts { margin-top: 14px; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.cc__opts[hidden] { display: none; }
.cc__opt { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 13px; color: var(--regolith); align-items: start; cursor: pointer; }
.cc__opt input { margin-top: 2px; accent-color: var(--accent); }
.cc__opt b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.cc__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.cc__actions [hidden] { display: none; }
.cc__link { background: none; border: 0; color: var(--regolith); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 4px; margin-left: auto; }
.cc__link:hover { color: var(--ink); }
@media (max-width: 600px) { .cc { left: 10px; right: 10px; bottom: 10px; } .cc__box { padding: 18px 16px 14px; } .cc__actions .btn { flex: 1 1 auto; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .cc__box { animation: none; opacity: 1; transform: none; } }

/* napisy-duchy w tle sekcji (jak „Usługi”) */
.ghost--right { left: auto; right: max(-0.04em, calc((100% - var(--w)) / 2 - var(--gutter))); text-align: right; }
.section--moon .ghost { color: rgba(255,255,255,0.05); z-index: 0; }
.about .ghost, .section--dark2 .ghost { color: rgba(255,255,255,0.035); }

/* blokada przewijania tła (menu mobilne, lightbox) */
html.is-locked, html.is-locked body { overflow: hidden; overscroll-behavior: none; }
.nav__sheet { touch-action: none; } .sheet__in { touch-action: pan-y; overscroll-behavior: contain; }
/* W9: gwiazdy w zamkniętym menu nie animują się */
.nav:not(.nav--open) .nav__sheet .stars i { animation-play-state: paused; }
/* W12: tytuły akordeonu na bardzo wąskich ekranach */
@media (max-width: 360px) { .acc__title { overflow: visible; font-size: clamp(20px, 7vw, 40px); overflow-wrap: anywhere; } }
/* W11: fallbacki dla starszych Safari */
@supports not (height: 1svh) { .hero { min-height: 100vh; } .manifest { height: 300vh; } .manifest__stage { height: 100vh; } }
@supports not (overflow: clip) { .hero, .manifest__stage { overflow: hidden; } .svcx, .has-ghost { contain: paint; } }
/* kosmetyka: reduced motion — pasek logotypów zawija zamiast ucinać */
@media (prefers-reduced-motion: reduce) { .logos__track { flex-wrap: wrap; width: auto; row-gap: 16px; } }
.sheet__contact a { padding: 6px 0; display: inline-block; }
