/* Baza mockupów Luna Design (wersja 2, 25.10.2026): tokeny, typografia, maski bez ucinania liter, przyciski autorskie, oznaczenie AI,
   ziarno, kursor, wstęp, nagłówek z menu na telefon, zegar-pastylka, sekcje, formularz, stopka.
   Krój dobierz per klient (wzornik www/test-fonty.html, wiedza/mockupy-stron.md: „Typografia i przyciski”), fonty lokalnie: mockup.cmd fonty.
   Bez skrótu `font:` w regułach: zeruje font-variant-numeric (cyfry nautyczne zamiast wyrównanych do linii). */
:root {
  --noc: #0b1020;
  --wapien: #f4ede1;
  --akcent: #c9a15b;
  --akcent-jasny: #ecc98c;
  --akcent-ciemny: #9a6a2f;
  --akcent-tekst: #7a521f;      /* drobny akcent na jasnym tle: kontrast min. 4,5:1 */
  --atrament: #211c17;
  --tlo: var(--noc);
  --tekst: var(--wapien);
  --tekst-2: rgba(244, 237, 225, .7);
  --linia: rgba(244, 237, 225, .18);
  --f-szeryf: "Bona Nova", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;   /* do zmiany per klient */
  --f-kap: "Bona Nova SC", var(--f-szeryf);                                                       /* prawdziwe kapitaliki */
  --gutter: max(clamp(16px, 4vw, 64px), env(safe-area-inset-left), env(safe-area-inset-right));
  --max: 1440px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sciecie: 9px;
}
/* --rogi liczone na każdym elemencie, żeby nadpisanie --sciecie (rozmiar ścięcia rogu) działało lokalnie */
*, *::before, *::after {
  box-sizing: border-box;
  --rogi: polygon(var(--sciecie) 0, calc(100% - var(--sciecie)) 0, 100% var(--sciecie), 100% calc(100% - var(--sciecie)),
    calc(100% - var(--sciecie)) 100%, var(--sciecie) 100%, 0 calc(100% - var(--sciecie)), 0 var(--sciecie));
}
html { -webkit-text-size-adjust: 100%; overflow-x: clip; font-variant-numeric: lining-nums; font-kerning: normal; }
body { margin: 0; background: var(--tlo); color: var(--tekst); font-family: var(--f-szeryf); font-size: clamp(17px, .3vw + 15.6px, 19.5px);
  line-height: 1.62; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.laduje { overflow: hidden; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font-family: inherit; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
p, li, figcaption { text-wrap: pretty; }
::selection { background: var(--akcent-jasny); color: var(--atrament); }
:focus-visible { outline: 2px solid var(--akcent-jasny); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.przeskok { position: fixed; left: 16px; top: -80px; z-index: 130; padding: 14px 20px; background: var(--akcent-jasny); color: var(--atrament); transition: top .3s var(--ease); }
.przeskok:focus { top: max(16px, env(safe-area-inset-top)); }

/* maski SplitText: zapas na ogonki (ę, ą, j, p, y), akcenty nad wersalikami i zwisy kursywy; ukryte słowa wjeżdżają z yPercent 150 */
.slowo-mask { padding: .16em .1em .32em; margin: -.16em -.1em -.32em; }
/* „przesypywanie” etykiet: tekst docelowy trzyma miejsce, animacja leci na warstwie nad nim */
.jest-czeka, .jest-scramble { color: transparent !important; text-shadow: none !important; }
.jest-scramble { position: relative; }
.scramble-warstwa { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; }

.etykieta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-family: var(--f-kap); font-size: 1.04rem; line-height: 1.35;
  letter-spacing: .05em; color: var(--akcent-tekst); }
.etykieta__godz { display: inline-flex; align-items: center; gap: 14px; font-variant-numeric: lining-nums tabular-nums; }
.etykieta__godz::after { content: ""; width: clamp(28px, 3vw, 46px); height: 1px; background: currentColor; opacity: .55; }
.tytul { font-family: var(--f-szeryf); font-weight: 400; font-size: clamp(2.5rem, 5.4vw, 5.5rem); line-height: 1.05; letter-spacing: -.012em; }
.tytul em { display: block; color: var(--akcent-ciemny); }   /* dwuczęściowy tytuł: kursywna część od nowego wiersza */
.manifest { font-family: var(--f-szeryf); font-style: italic; font-size: clamp(1.4rem, 1.9vw, 1.9rem); line-height: 1.46; max-width: 30em; }
.manifest .slowo { display: inline-block; }

/* przycisk „bilet”: ścięte rogi, wewnętrzna kreska, przelot blasku przy najechaniu, strzałka SVG wydłuża się */
.przycisk { --t: var(--atrament); --k: var(--wapien); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 58px; padding: 0 24px 0 28px; font-family: var(--f-kap); font-size: 1.12rem; line-height: 1; letter-spacing: .045em; white-space: nowrap;
  color: var(--k); background: var(--t); border: 0; cursor: pointer; isolation: isolate; overflow: hidden; clip-path: var(--rogi); }
.przycisk::before { content: ""; position: absolute; inset: 4px; z-index: -1; pointer-events: none; --sciecie: 7px; clip-path: var(--rogi);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 30%, transparent); }
.przycisk::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 28%, rgba(255, 226, 170, .55) 50%, transparent 72%); transform: translateX(-120%); transition: transform .95s var(--ease); }
.przycisk:hover::after, .przycisk:focus-visible::after { transform: translateX(120%); }
.przycisk--jasny { --t: var(--akcent-jasny); --k: var(--atrament); }
.przycisk--pelny { width: 100%; justify-content: space-between; }
.strzalka { width: 34px; height: 12px; flex: none; overflow: visible; transition: width .55s var(--ease); }
.strzalka path { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.przycisk:hover .strzalka, .odnosnik:hover .strzalka { width: 46px; }
/* odnośnik: kursywa, cienka linia, przy najechaniu dorysowuje się kreska pędzla */
.odnosnik { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 8px 0 12px; font-family: var(--f-szeryf); font-style: italic; font-size: 1.3rem; line-height: 1.1; }
.odnosnik::before { content: ""; position: absolute; left: 0; right: 46px; bottom: 5px; height: 1px; background: currentColor; opacity: .32; }
.odnosnik::after { content: ""; position: absolute; left: -2px; right: 44px; bottom: 0; height: 11px; clip-path: inset(0 100% 0 0); transition: clip-path .75s var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.6C60 3.4 120 7.6 180 4.8S270 4 298 5.6' fill='none' stroke='%23d9ad62' stroke-width='2.3' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.odnosnik:hover::after, .odnosnik:focus-visible::after { clip-path: inset(0 0 0 0); }

/* oznaczenie obrazów AI (art. 50 AI Act): przy każdym kadrze, nie tylko w stopce */
.ai { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 9px; font-family: var(--f-kap); font-size: .78rem;
  line-height: 1; letter-spacing: .05em; color: rgba(244, 237, 225, .94); background: rgba(11, 16, 32, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.ai::before { content: ""; width: 5px; height: 5px; border: 1px solid currentColor; transform: rotate(45deg); }

.ziarno { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: overlay; animation: ziarno 1.2s steps(6) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); }
@keyframes ziarno { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

.kursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; opacity: 0; transition: opacity .4s; mix-blend-mode: difference; }
.kursor.jest-aktywny { opacity: 1; }
.kursor i { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.kursor__kropka { width: 6px; height: 6px; background: #fff; }
.kursor__obwodka { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .75); transition: width .35s var(--ease), height .35s var(--ease), background .35s; }
.kursor.jest-nad .kursor__obwodka { width: 70px; height: 70px; background: rgba(255, 255, 255, .12); }
@media (pointer: fine) { .kursor { display: block; } }

.wstep { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--noc); color: var(--wapien); }
.wstep__slowo { font-family: var(--f-szeryf); font-style: italic; font-size: clamp(3.6rem, 11vw, 9rem); line-height: 1.15; min-height: 1.2em; }
.wstep__linia { width: min(280px, 60vw); height: 1px; background: rgba(244, 237, 225, .15); overflow: hidden; }
.wstep__linia i { display: block; height: 100%; background: var(--akcent); transform-origin: 0 50%; transform: scaleX(0); }
.wstep__licznik { font-family: var(--f-kap); font-size: .9rem; letter-spacing: .2em; color: rgba(244, 237, 225, .6); font-variant-numeric: lining-nums tabular-nums; }

/* nagłówek: chowanie przez `translate` (transform należy do GSAP), tło szkła wg trybu jasny/ciemny */
.naglowek { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 18px; color: var(--wapien); transition: translate .6s var(--ease), background-color .45s, color .45s, padding .45s; }
.naglowek.jest-jasny { color: var(--atrament); }
.naglowek.jest-zwiniety { padding-top: max(11px, env(safe-area-inset-top)); padding-bottom: 11px; background: rgba(11, 16, 32, .55);
  -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25); }
.naglowek.jest-zwiniety.jest-jasny { background: rgba(244, 237, 225, .74); }
.naglowek.jest-ukryty { translate: 0 -110%; }
.logo { font-family: var(--f-szeryf); font-size: 1.55rem; line-height: 1.05; }
.menu { display: flex; gap: clamp(18px, 2.2vw, 36px); font-family: var(--f-kap); font-size: 1.04rem; letter-spacing: .04em; }
.menu a[aria-current="true"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.menu-przycisk { display: none; align-items: center; gap: 10px; min-height: 44px; border: 0; background: none; color: inherit; cursor: pointer; font-family: var(--f-kap); font-size: 1.04rem; letter-spacing: .05em; }
.menu-panel { position: fixed; inset: 0; z-index: 58; display: grid; align-content: center; gap: 34px; padding: calc(110px + env(safe-area-inset-top)) var(--gutter) 40px;
  background: var(--noc); color: var(--wapien); }
.menu-panel[hidden] { display: none; }
.menu-panel nav { display: grid; }
.menu-panel nav a { padding: 12px 0; border-bottom: 1px solid rgba(244, 237, 225, .12); font-family: var(--f-szeryf); font-size: clamp(1.9rem, 7.4vw, 2.8rem); line-height: 1.15; }

/* zegar dnia: ciemna pastylka czytelna na każdym tle (bez przełączania kolorów) */
.zegar { position: fixed; left: var(--gutter); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 11px; border-radius: 999px; color: var(--wapien); background: rgba(11, 16, 32, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(244, 237, 225, .13); pointer-events: none; transition: opacity .5s; }
.zegar.jest-schowany { opacity: 0 !important; }

.bohater { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--noc); color: var(--wapien); }
.bohater__obraz { position: absolute; inset: 0; }
.bohater__obraz picture, .bohater__obraz img { width: 100%; height: 100%; }
.bohater__obraz img { object-fit: cover; }
.bohater__obraz--po { --front: -30%; -webkit-mask-image: linear-gradient(to bottom, #000 var(--front), transparent calc(var(--front) + 28%));
  mask-image: linear-gradient(to bottom, #000 var(--front), transparent calc(var(--front) + 28%)); }
.bohater__tresc { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(88px, 14vh, 160px); max-width: 1000px; z-index: 3; isolation: isolate; }
.bohater__tresc::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: calc(-1 * var(--gutter)); right: -35%; top: -38%; bottom: -30%;
  background: radial-gradient(65% 60% at 28% 55%, rgba(11, 16, 32, .68), rgba(11, 16, 32, .34) 55%, transparent 78%); }
.bohater h1 { font-family: var(--f-szeryf); font-weight: 400; font-size: clamp(3rem, 8.2vw, 8.4rem); line-height: 1.02; letter-spacing: -.014em; text-shadow: 0 2px 40px rgba(0, 0, 0, .35); }
.bohater h1 .wiersz { display: block; }
.bohater h1 em { color: var(--akcent-jasny); }

.sekcja { position: relative; padding: clamp(100px, 14vh, 180px) var(--gutter); }
.sekcja__wnetrze { max-width: var(--max); margin: 0 auto; }
.karty { display: grid; gap: 28px; margin-top: 60px; }
.karta { position: sticky; top: 13vh; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 60vh; border-radius: 3px; overflow: hidden;
  background: var(--wapien); color: var(--atrament); box-shadow: 0 -20px 60px -30px rgba(60, 40, 15, .35); transform-origin: 50% 0; }
.karta img { width: 100%; height: 100%; object-fit: cover; }
.karta__tresc { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }

.formularz { display: grid; gap: 18px; max-width: 520px; padding: clamp(24px, 3vw, 40px); background: rgba(11, 16, 32, .5); color: var(--wapien);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(244, 237, 225, .14); clip-path: var(--rogi); --sciecie: 14px; }
.formularz label { display: grid; gap: 7px; }
.formularz label > span { font-family: var(--f-kap); font-size: .92rem; letter-spacing: .05em; opacity: .8; }
.formularz input, .formularz textarea, .formularz select { width: 100%; padding: 12px 2px; border: 0; border-bottom: 1px solid rgba(244, 237, 225, .3); border-radius: 0;
  background: transparent; color: inherit; font-family: var(--f-szeryf); font-size: 1.08rem; outline: none; }
.formularz input:focus, .formularz textarea:focus { border-bottom-color: var(--akcent-jasny); }

.stopka { padding: clamp(60px, 10vh, 120px) var(--gutter) calc(30px + env(safe-area-inset-bottom)); background: var(--noc); color: var(--wapien); font-size: .86rem; }

@media (max-width: 1100px) {
  .menu { display: none; }
  .menu-przycisk { display: inline-flex; }
}
@media (max-width: 860px) {
  .karta { grid-template-columns: 1fr; grid-template-rows: 44vh auto; top: 9vh; min-height: 0; }
  .zegar { left: auto; right: var(--gutter); }
  .zegar .js-miejsce { display: none; }
}
@media (max-height: 560px) { .karta { position: relative; top: auto !important; } }
@media (pointer: coarse) { .ziarno { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ziarno { animation: none; }
  .bohater__obraz--po { -webkit-mask-image: none; mask-image: none; }
  .naglowek, .zegar { transition: none; }
}
