/* =====================================================
   LIBER — Joanna F. Bielak · Tom I
   Forensic Noir × Eco-Thriller
   ===================================================== */

:root {
  --void: #060c08;
  --abyss: #08120e;
  --ink: #0b1a13;
  --moss: #14241c;
  --moss-2: #1f3328;
  --bone: #ece6d3;
  --bone-2: #d8d2c0;
  --fog: #9aa39a;
  --fog-2: #707a72;
  --liber: #c8e62e;          /* signature lime */
  --liber-soft: #adc127;
  --evidence: #ff3b3b;       /* alarm red */
  --gold: #c9a961;
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans:  'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.1,1);
  --maxw: 1320px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  background: var(--void);
  color: var(--bone-2);
  overflow-x: hidden;
  line-height: 1.55;
}
html.js body { cursor: none; }
@media (max-width: 900px) { html.js body { cursor: auto; } }
/* W trybie iframe: systemowy kursor, custom cursor wyłączony (mysz "freezowała się" przy wyjściu z iframe) */
html.liber-embedded body { cursor: auto !important; }
html.liber-embedded .cursor,
html.liber-embedded .cursor-dot { display: none !important; }
html.liber-embedded a,
html.liber-embedded button,
html.liber-embedded .btn,
html.liber-embedded [role="button"] { cursor: pointer !important; }
/* Sticky CTA bezuzyteczne w iframe (sticky wzgledem viewport iframe, nie outer page) */
html.liber-embedded .sticky-cta { display: none !important; }
/* Mobile menu w iframe musi byc PELNIE nieprzezroczyste — semi-transparent + blur
   w iframe powoduje, ze widac hero/ksiazke pod spodem. */
html.liber-embedded .nav__links {
  background: var(--void) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 9500 !important;
}
/* KRYTYCZNE: .nav ma backdrop-filter ktory tworzy CONTAINING BLOCK
   dla position:fixed descendants. Mobile menu (.nav__links) pinowal sie
   do .nav (waski pasek na top) zamiast do viewport, stad tlo tylko
   pod napisami. Usuwamy filter w embedded — w iframe i tak nie potrzebny. */
html.liber-embedded .nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Sekcje ukryte z panelu edycji */
.is-hidden-section { display: none !important; }
.skip-link {
  position: absolute; top: -100px; left: 16px;
  z-index: 10001;
  background: var(--liber); color: var(--abyss);
  padding: 10px 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; outline: none; }

:focus-visible {
  outline: 2px solid var(--liber);
  outline-offset: 3px;
  border-radius: 1px;
}
.btn:focus-visible, .nav__cta:focus-visible {
  outline-offset: 4px;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--liber); color: var(--abyss); }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: .01em; }
.mono  { font-family: var(--mono);  font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.mono.small { font-size: 11px; }
.accent { color: var(--liber); }
.hl { background: linear-gradient(180deg, transparent 60%, rgba(200,230,46,.35) 60%); padding: 0 .05em; }

/* =================== GLOBAL OVERLAYS =================== */
.grain {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 800;
  mix-blend-mode: soft-light;
  opacity: .35;
  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='1.6' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0   0 0 0 0 0   0 0 0 0 0   0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 320px 320px;
  animation: grainshift 1.6s steps(8) infinite;
}
@keyframes grainshift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(0,0); }
}
.scanlines {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 700;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(255,255,255,.018) 3px,
    rgba(0,0,0,0) 4px
  );
  mix-blend-mode: overlay;
}
.vignette {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 600;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.55) 100%);
}

/* =================== CURSOR =================== */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 38px; height: 38px;
  border: 1px solid var(--bone);
  border-radius: 50%;
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.cursor::before, .cursor::after {
  content:''; position:absolute; background: var(--bone);
}
.cursor::before { left: 50%; top: -6px; width: 1px; height: 6px; transform: translateX(-50%); }
.cursor::after  { left: 50%; bottom: -6px; width: 1px; height: 6px; transform: translateX(-50%); }
.cursor-dot { width: 4px; height: 4px; background: var(--liber); border-radius: 50%; }
body.is-hover .cursor { width: 64px; height: 64px; border-color: var(--liber); background: rgba(200,230,46,.06); }
@media (max-width: 900px) { .cursor, .cursor-dot { display: none; } }

/* =================== LOADER =================== */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--void);
  display: none;
  align-items: center; justify-content: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
html.js .loader { display: flex; }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { width: min(420px, 80vw); }
.loader__rail {
  position: relative;
  height: 2px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-bottom: 14px;
}
.loader__fill {
  position: absolute; inset: 0 100% 0 0;
  background: var(--liber);
  transition: right .15s linear;
}
.loader__label {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--fog);
  letter-spacing: .2em;
}
.loader__pct { color: var(--liber); }

/* =================== NAV =================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 30px;
  background: linear-gradient(180deg, rgba(6,12,8,.85), rgba(6,12,8,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: padding .35s var(--ease), background .35s var(--ease);
}
.nav.is-scrolled {
  padding: 12px 30px;
  background: rgba(6,12,8,.88);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__brand {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  display: flex; align-items: center; gap: 8px;
}
.nav__mark { color: var(--liber); font-size: 14px; animation: spin 8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav__sep { color: var(--fog-2); }
.nav__links {
  display: flex; gap: 22px; font-size: 11px;
}
.nav__links a {
  position: relative; padding: 6px 0;
  color: var(--fog);
  transition: color .3s;
}
.nav__links a::before {
  content:''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--liber);
  transition: right .35s var(--ease);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::before { right: 0; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--liber);
  color: var(--liber);
  font-size: 11px;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.nav__cta:hover { background: var(--liber); color: var(--abyss); }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  padding: 12px; background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  position: relative;
  z-index: 1001;
}
.nav__burger span {
  position: absolute; left: 10px; right: 10px;
  height: 1.5px; background: var(--bone);
  transition: transform .35s var(--ease), opacity .25s, top .35s var(--ease);
}
.nav__burger span:nth-child(1) { top: 13px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav__burger span:nth-child(3) { top: 27px; }
.nav__burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); background: var(--liber); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); background: var(--liber); }

@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: 0;
    /* Pelne nieprzezroczyste tlo — w iframe semi-transparent + blur
       powodowal, ze hero/ksiazka byly widoczne pod menu */
    background: #060c08;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 28px;
    padding: 80px 24px 40px;
    font-size: 14px; letter-spacing: .15em;
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
    z-index: 9500;
  }
  .nav__links a {
    color: var(--bone);
    transform: translateY(20px); opacity: 0;
    transition: transform .5s var(--ease), opacity .5s var(--ease), color .3s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links.is-open a { transform: translateY(0); opacity: 1; }
  .nav__links.is-open a:nth-child(1) { transition-delay: .08s; }
  .nav__links.is-open a:nth-child(2) { transition-delay: .14s; }
  .nav__links.is-open a:nth-child(3) { transition-delay: .20s; }
  .nav__links.is-open a:nth-child(4) { transition-delay: .26s; }
  .nav__links.is-open a:nth-child(5) { transition-delay: .32s; }
  .nav__links.is-open a:nth-child(6) { transition-delay: .38s; }
  .nav__links.is-open a:nth-child(7) { transition-delay: .44s; }
  .nav__links.is-open a:nth-child(8) { transition-delay: .50s; }
}

/* =================== HERO =================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 30px 60px;
  overflow: hidden;
  isolation: isolate;
}
/* W trybie iframe: zablokowana wysokość zamiast 100vh (parent ustala viewport) */
html.liber-embedded .hero {
  min-height: var(--liber-vh, 800px);
}
html.liber-embedded .hero__content { padding-top: 32px; }
.hero__bg {
  position: absolute; inset: -8%;
  z-index: -3;
  will-change: transform;
}
.hero__bg-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.28) saturate(0.55) brightness(0.45) hue-rotate(-12deg);
}
.hero__bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(200,230,46,.05), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(255,59,59,.05), transparent 60%),
    linear-gradient(180deg, rgba(6,12,8,.72) 0%, rgba(6,12,8,.55) 35%, rgba(6,12,8,.96) 100%);
}
.hero__fog {
  position: absolute; inset: 0; z-index: -2;
  pointer-events: none;
}
.hero__fog-layer {
  position: absolute; inset: -10%;
  background-image: radial-gradient(ellipse at 50% 60%, rgba(255,255,255,.08), transparent 60%);
  filter: blur(50px);
  opacity: .7;
}
.hero__fog-layer--a { animation: fogA 22s linear infinite; }
.hero__fog-layer--b { animation: fogB 30s linear infinite; opacity: .5; background-image: radial-gradient(ellipse at 20% 80%, rgba(200,230,46,.08), transparent 60%); }
.hero__fog-layer--c { animation: fogC 40s linear infinite; opacity: .4; background-image: radial-gradient(ellipse at 80% 30%, rgba(255,255,255,.06), transparent 60%); }
@keyframes fogA { 0% { transform: translate(-5%,0); } 50% { transform: translate(5%, -3%); } 100% { transform: translate(-5%,0); } }
@keyframes fogB { 0% { transform: translate(0,5%); } 50% { transform: translate(-6%, -5%); } 100% { transform: translate(0,5%); } }
@keyframes fogC { 0% { transform: translate(4%,2%); } 50% { transform: translate(-4%, 6%); } 100% { transform: translate(4%,2%); } }

.hero__crosshair {
  position: absolute; inset: 0;
  pointer-events: none; z-index: -1;
}
.hero__crosshair-h, .hero__crosshair-v {
  position: absolute; background: rgba(200,230,46,.08);
}
.hero__crosshair-h { left: 0; right: 0; top: 50%; height: 1px; }
.hero__crosshair-v { top: 0; bottom: 0; left: 50%; width: 1px; }

.live-badge {
  position: absolute; top: 110px; right: 30px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(255,59,59,.12);
  border: 1px solid rgba(255,59,59,.5);
  color: var(--evidence);
  font-size: 10px;
  border-radius: 2px;
  z-index: 5;
}
.live-badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--evidence);
  box-shadow: 0 0 0 0 rgba(255,59,59,.7);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,59,59,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255,59,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); }
}
.live-badge__time { color: var(--bone); opacity: .9; }
@media (max-width: 700px) { .live-badge { top: 76px; right: 12px; font-size: 9px; padding: 6px 10px; } }

.hero__content {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 4vh;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__text { order: 1; }
  .hero__packshot { order: 0; margin: 0 auto; }
}
.hero__text { position: relative; }
.hero__eyebrow {
  display: inline-flex; flex-wrap: wrap; align-items: center;
  gap: 12px; font-size: 10px; color: var(--fog);
  margin-bottom: 32px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(6,12,8,.45);
}
.hero__eyebrow-sep { color: var(--liber); }

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(82px, 16vw, 240px);
  line-height: .82;
  letter-spacing: -.025em;
  margin: 0;
  color: var(--bone);
  position: relative;
}
@media (max-width: 1000px) {
  .hero__title { font-size: clamp(96px, 22vw, 240px); }
  .hero__eyebrow { justify-content: center; }
}
.hero__title-line {
  display: inline-block;
  background: linear-gradient(180deg, var(--bone) 0%, var(--bone-2) 70%, var(--fog) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  text-shadow: 0 0 80px rgba(200,230,46,.18);
}
.hero__title-line::before,
.hero__title-line::after {
  content: attr(data-glitch);
  position: absolute; inset: 0;
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--liber);
  opacity: 0;
  mix-blend-mode: screen;
}
.hero__title-line::before { color: var(--evidence); transform: translate(-2px, 0); animation: glitchA 7s infinite; }
.hero__title-line::after  { color: var(--liber);    transform: translate(2px, 0);  animation: glitchB 7s infinite; }
@keyframes glitchA {
  0%,92%,100% { opacity: 0; transform: translate(0,0); clip-path: inset(0); }
  93% { opacity: .8; transform: translate(-3px,0); clip-path: inset(20% 0 60% 0); }
  95% { opacity: .8; transform: translate(2px,0);  clip-path: inset(60% 0 20% 0); }
  97% { opacity: .8; transform: translate(-1px,0); clip-path: inset(40% 0 40% 0); }
  99% { opacity: 0; }
}
@keyframes glitchB {
  0%,92%,100% { opacity: 0; transform: translate(0,0); clip-path: inset(0); }
  93% { opacity: .6; transform: translate(3px,0);  clip-path: inset(70% 0 10% 0); }
  95% { opacity: .6; transform: translate(-2px,0); clip-path: inset(10% 0 70% 0); }
  97% { opacity: .6; transform: translate(1px,0);  clip-path: inset(50% 0 30% 0); }
  99% { opacity: 0; }
}

.hero__motto {
  font-size: clamp(20px, 2.2vw, 30px);
  color: var(--bone);
  margin: 28px 0 12px;
  max-width: 580px;
  letter-spacing: .005em;
  font-weight: 300;
  line-height: 1.25;
}
@media (max-width: 1000px) {
  .hero__motto { margin-left: auto; margin-right: auto; }
}
.hero__divider {
  display: flex; gap: 8px;
  margin: 24px 0;
}
@media (max-width: 1000px) {
  .hero__divider { justify-content: center; }
}
.hero__divider span {
  width: 6px; height: 6px;
  background: var(--liber);
  transform: rotate(45deg);
  opacity: .6;
}
.hero__divider span:nth-child(2) { opacity: 1; }

.hero__lede {
  font-size: 15px;
  color: var(--fog);
  max-width: 540px;
  margin: 0 0 36px;
  line-height: 1.7;
}
@media (max-width: 1000px) {
  .hero__lede { margin-left: auto; margin-right: auto; }
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }
@media (max-width: 1000px) { .hero__cta { justify-content: center; } }

/* Hero packshot — premium evidence display */
.hero__packshot {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  max-width: 380px;
}
.hero__packshot-frame {
  position: relative;
  padding: 0;
  perspective: 1500px;
}
.hero__packshot-img {
  position: relative; z-index: 2;
  width: 100%; max-width: 320px;
  filter:
    drop-shadow(0 30px 60px rgba(0,0,0,.7))
    drop-shadow(0 0 40px rgba(200,230,46,.08));
  animation: bookFloat 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes bookFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-10px) rotate(1deg); }
}
.hero__packshot-glow {
  position: absolute;
  top: 10%; left: 10%; right: 10%; bottom: 10%;
  background: radial-gradient(ellipse at center, rgba(200,230,46,.18), transparent 70%);
  filter: blur(40px);
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.08); }
}
.hero__packshot-shadow {
  position: absolute;
  bottom: -10px; left: 15%; right: 15%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.7), transparent 70%);
  filter: blur(12px);
  z-index: 1;
}
.hero__packshot-meta {
  margin-top: 22px;
  display: flex; align-items: center; gap: 14px;
  font-size: 9px;
}
.hero__packshot-tag {
  padding: 4px 10px;
  background: var(--evidence);
  color: var(--bone);
  font-weight: 700;
  letter-spacing: .2em;
}
.hero__packshot-code { color: var(--fog); }

.countdown {
  display: inline-flex; flex-direction: column;
  padding: 18px 26px;
  border: 1px solid rgba(200,230,46,.22);
  background: rgba(6,12,8,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: 8px;
  position: relative;
}
.countdown::before, .countdown::after {
  content:''; position: absolute; width: 10px; height: 10px;
  border: 1px solid var(--liber);
}
.countdown::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.countdown::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.countdown__label {
  color: var(--liber); font-size: 11px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.countdown__pulse {
  width: 7px; height: 7px;
  background: var(--evidence); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,59,59,.6);
  animation: pulse 1.6s infinite;
}
.countdown__grid { display: flex; gap: 22px; }
@media (max-width: 1000px) { .countdown { align-self: center; } .countdown__grid { justify-content: center; } }
.countdown__cell { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.countdown__num {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  position: relative;
}
.countdown__num.is-flip {
  animation: numFlip .55s var(--ease);
}
@keyframes numFlip {
  0%   { transform: translateY(0); filter: blur(0); }
  40%  { transform: translateY(-100%); filter: blur(3px); opacity: 0; }
  41%  { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); filter: blur(0); opacity: 1; }
}
.countdown__u { font-size: 9px; color: var(--fog-2); margin-top: 6px; }

.hero__scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; color: var(--fog-2);
}
.hero__scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, transparent, var(--liber), transparent);
  animation: scrollline 2.5s var(--ease) infinite;
}
@keyframes scrollline {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =================== BUTTONS =================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 14px 24px;
  font-size: 11px;
  border: 1px solid var(--liber);
  color: var(--abyss);
  background: var(--liber);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  cursor: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(200,230,46,.18); }
.btn__label { position: relative; z-index: 2; }
.btn__shine {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn:hover .btn__shine { transform: translateX(120%); }
.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--bone);
}
.btn--ghost:hover { border-color: var(--liber); color: var(--liber); box-shadow: none; }
.btn--xl { padding: 20px 38px; font-size: 12px; }

/* =================== TICKER =================== */
.ticker {
  background:
    linear-gradient(180deg, #0a0f0c 0%, #050905 50%, #0a0f0c 100%);
  color: var(--bone);
  overflow: hidden;
  border-top: 1px solid rgba(200,230,46,.2);
  border-bottom: 1px solid rgba(200,230,46,.2);
  padding: 16px 0;
  position: relative;
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px;
  pointer-events: none; z-index: 2;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--void), transparent); }
.ticker::after  { right: 0; background: linear-gradient(270deg, var(--void), transparent); }
.ticker__track {
  display: inline-flex; gap: 40px;
  white-space: nowrap;
  animation: tickerScroll 38s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item--accent { color: var(--evidence); }
.ticker__item { color: var(--bone-2); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =================== SECTIONS =================== */
.section {
  position: relative;
  padding: 130px 30px;
  max-width: 100%;
}
.section__header {
  max-width: var(--maxw);
  margin: 0 auto 70px;
}
.section__num {
  font-size: 11px;
  color: var(--liber);
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(40px, 6vw, 84px);
  line-height: .95;
  margin: 0 0 14px;
  letter-spacing: -.02em;
  color: var(--bone);
}
.section__sub {
  font-size: 10px;
  color: var(--fog-2);
}

/* =================== CASE / AKTA =================== */
.section--case { background: linear-gradient(180deg, var(--void), var(--abyss)); }
.case {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }

.case__file {
  background: linear-gradient(180deg, #f4ecd6, #e8dfc6);
  color: #1a1f1a;
  padding: 36px 38px;
  position: relative;
  isolation: isolate;
  box-shadow:
    0 30px 60px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.05);
  transform: rotate(-.4deg);
}
.case__file::before {
  content:'';
  position: absolute; top: -10px; left: 36px;
  width: 80px; height: 22px;
  background: rgba(200,230,46,.65);
  transform: rotate(-2deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.case__filehead {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px;
  color: #4d534a;
  border-bottom: 1px solid rgba(0,0,0,.15);
  padding-bottom: 12px;
  margin-bottom: 22px;
}
.case__stamp {
  color: var(--evidence);
  border: 1.5px solid var(--evidence);
  padding: 4px 10px;
  letter-spacing: .25em;
  transform: rotate(2deg);
}
.case__body {
  font-size: 18px;
  line-height: 1.7;
}
.case__body p { margin: 0 0 18px; }
.case__body em { font-style: italic; }
.case__body .hl { background: linear-gradient(180deg, transparent 60%, rgba(200,230,46,.55) 60%); }
.dropcap {
  float: left;
  font-size: 64px;
  line-height: .85;
  padding: 4px 10px 0 0;
  font-weight: 600;
  color: var(--moss);
}
.case__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
  border-top: 1px dashed rgba(0,0,0,.2);
  padding-top: 18px; margin-top: 14px;
  font-size: 10px;
}
.case__k { color: #6a6f5e; display: block; margin-bottom: 4px; }
.case__v { color: #1a1f1a; }
@media (max-width: 600px) { .case__meta { grid-template-columns: 1fr; } }

.case__pull {
  background: var(--ink);
  border: 1px solid rgba(200,230,46,.18);
  padding: 36px;
  position: relative;
  transform: rotate(.5deg);
}
.case__pullmark {
  font-family: var(--serif);
  font-size: 110px;
  line-height: .7;
  color: var(--liber);
  opacity: .9;
  margin-bottom: 6px;
}
.case__pull blockquote {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
}
.case__pull blockquote em { color: var(--liber); font-style: italic; }
.case__pullsig { color: var(--fog); font-size: 10px; margin-top: 18px; }

/* =================== SYNOPSIS =================== */
.section--syn {
  background:
    radial-gradient(ellipse at top, rgba(200,230,46,.04), transparent 50%),
    var(--void);
}
.syn {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
}
@media (max-width: 900px) { .syn { grid-template-columns: 1fr; } }

.syn__stickycol {
  position: sticky; top: 100px;
  align-self: start;
}
@media (max-width: 900px) {
  .syn__stickycol { position: static; top: auto; }
}
.syn__num { font-size: 11px; color: var(--liber); margin-bottom: 16px; }
.syn__title {
  font-size: clamp(40px, 6vw, 76px);
  line-height: .95;
  margin: 0 0 18px;
  letter-spacing: -.02em;
}
.syn__sub { color: var(--fog); font-size: 10px; margin-bottom: 26px; max-width: 360px; }
.syn__videowrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(200,230,46,.18);
  background: #000;
  isolation: isolate;
}
.syn__videowrap::before, .syn__videowrap::after {
  content:''; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--liber);
  pointer-events: none;
  z-index: 3;
}
.syn__videowrap::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.syn__videowrap::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.syn__video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;          /* kwadrat — natywny aspekt klipu 1080×1080 */
  object-fit: contain;
  background: #000;
  filter: contrast(1.04) saturate(.92);
}
.syn__sound {
  position: absolute;
  top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px;
  background: rgba(6,12,8,.78);
  border: 1px solid rgba(200,230,46,.35);
  color: var(--liber);
  font-size: 10px;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
  z-index: 4;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.syn__sound:hover { background: rgba(200,230,46,.15); border-color: var(--liber); }
.syn__sound:focus-visible { outline-offset: 2px; }
@media (max-width: 700px) {
  .syn__videowrap { max-width: 100%; }
}

.syn__story { display: flex; flex-direction: column; gap: 38px; }
.syn__chunk {
  border-left: 1px solid rgba(200,230,46,.25);
  padding: 8px 0 8px 26px;
  position: relative;
}
.syn__chunk::before {
  content:''; position: absolute; left: -5px; top: 14px;
  width: 9px; height: 9px;
  background: var(--liber);
  transform: rotate(45deg);
}
.syn__chip {
  display: inline-block;
  font-size: 10px;
  color: var(--liber);
  margin-bottom: 10px;
}
.syn__chunk p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; margin: 0; color: var(--bone-2); }
.syn__chunk em { color: var(--liber); font-style: italic; }
.syn__chunk--final p { color: var(--bone); font-weight: 500; }

/* =================== TEAM / DOSSIER =================== */
.section--team { background: linear-gradient(180deg, var(--abyss), var(--void)); }
.team {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .team { grid-template-columns: 1fr; } }

.dossier {
  background: rgba(20,36,28,.4);
  border: 1px solid rgba(200,230,46,.12);
  padding: 24px;
  position: relative;
  transition: border-color .35s var(--ease), transform .4s var(--ease);
  will-change: transform;
  transform-style: preserve-3d;
}
.dossier:hover { border-color: rgba(200,230,46,.4); }
.dossier__head {
  display: flex; justify-content: space-between;
  font-size: 9px; color: var(--fog);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 18px;
}
.dossier__rank { color: var(--liber); }
.dossier__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--abyss);
  border: 1px solid rgba(255,255,255,.05);
  overflow: hidden;
  color: var(--fog-2);
}
.dossier__portrait-bg { position: absolute; inset: 0; opacity: .85; }
.dossier__portrait-tag {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 9px; color: var(--liber);
  background: rgba(6,12,8,.7);
  padding: 4px 8px;
}
.dossier__crosshair { position: absolute; inset: 18px; pointer-events: none; }
.dossier__crosshair span {
  position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--liber); opacity: .5;
}
.dossier__crosshair span:nth-child(1) { top: 0;    left: 0;    border-right: 0; border-bottom: 0; }
.dossier__crosshair span:nth-child(2) { top: 0;    right: 0;   border-left: 0;  border-bottom: 0; }
.dossier__crosshair span:nth-child(3) { bottom: 0; left: 0;    border-right: 0; border-top: 0; }
.dossier__crosshair span:nth-child(4) { bottom: 0; right: 0;   border-left: 0;  border-top: 0; }
.dossier__silhouette {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 70%; color: rgba(200,230,46,.6);
}
.dossier__fingerprint {
  position: absolute; inset: 24px;
  color: var(--liber);
  opacity: .9;
}
.dossier__portrait-bg--matrix {
  background:
    repeating-linear-gradient(0deg, rgba(200,230,46,.04) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at center, rgba(200,230,46,.06), transparent 70%),
    linear-gradient(135deg, #0a1410, #0e1a14) !important;
}
.dossier__portrait-bg--redact {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px),
    linear-gradient(135deg, #0e1a14, #14241c) !important;
}
.dossier__portrait-tag {
  position: absolute; bottom: 10px; left: 10px;
  font-size: 9px; color: var(--liber);
  background: rgba(6,12,8,.85);
  padding: 5px 9px;
  border: 1px solid rgba(200,230,46,.25);
}
.dossier__chart {
  position: absolute; top: 12px; right: 12px;
  display: grid; grid-template-columns: auto auto; gap: 4px 10px;
  font-size: 8.5px; color: var(--fog);
  background: rgba(6,12,8,.7);
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.05);
}
.dossier__chart-k { color: var(--fog-2); }
.dossier__chart-v { color: var(--liber); display: inline-flex; align-items: center; gap: 6px; }
.dossier__chart-v i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #5ee06b; box-shadow: 0 0 8px rgba(94,224,107,.6);
  display: inline-block;
}
.dossier__chart-v--hold { color: var(--evidence); }
.dossier__chart-v--hold i { background: var(--evidence); box-shadow: 0 0 8px rgba(255,59,59,.6); }
.dossier__body { padding-top: 18px; }
.dossier__name {
  font-size: 30px; line-height: 1.05; margin: 0 0 4px;
}
.dossier__alias { color: var(--liber); font-style: italic; font-size: .8em; }
.dossier__role { font-size: 9px; color: var(--fog); margin-bottom: 14px; }
.dossier p { font-size: 15px; line-height: 1.55; color: var(--bone-2); }
.dossier__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.dossier__tags span {
  font-size: 9px;
  padding: 4px 10px;
  border: 1px solid rgba(200,230,46,.3);
  color: var(--liber);
}

.aspects { max-width: var(--maxw); margin: 100px auto 0; }
.aspects__head {
  display: flex; align-items: center; gap: 20px;
  color: var(--fog); font-size: 11px;
  margin-bottom: 40px;
}
.aspects__line { flex: 1; height: 1px; background: rgba(255,255,255,.08); }
.aspects__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 1000px) { .aspects__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .aspects__grid { grid-template-columns: 1fr; } }
.aspects__card {
  padding: 26px;
  background: rgba(20,36,28,.35);
  border: 1px solid rgba(255,255,255,.05);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.aspects__card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,230,46,.4);
  background: rgba(20,36,28,.6);
}
.aspects__icon { color: var(--liber); margin-bottom: 18px; }
.aspects__title {
  font-family: var(--serif); font-size: 22px; margin: 0 0 8px;
  color: var(--bone);
}
.aspects__card p { font-size: 14px; color: var(--fog); line-height: 1.55; margin: 0; }

/* =================== QUOTES =================== */
.section--quotes {
  background:
    linear-gradient(180deg, var(--void) 0%, var(--abyss) 100%);
}
.quotes {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 40px;
}
.quote {
  margin: 0;
  padding: 36px;
  background: rgba(11,26,19,.6);
  border-left: 3px solid var(--liber);
  position: relative;
}
.quote--big { padding: 56px; }
.quote--accent {
  background: linear-gradient(135deg, rgba(200,230,46,.08), rgba(11,26,19,.6));
  border-left-color: var(--liber);
}
.quote--final {
  background: var(--abyss);
  border: 1px solid rgba(200,230,46,.3);
  border-left: 3px solid var(--liber);
  text-align: center;
  padding: 60px 36px;
}
.quote__meta {
  font-size: 10px; color: var(--liber);
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.quote__meta::before {
  content:''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--evidence);
  animation: pulse 1.4s infinite;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.4;
  margin: 0;
  color: var(--bone);
  font-weight: 400;
}
.quote--big blockquote { font-size: clamp(26px, 2.6vw, 40px); }
.quote blockquote em { color: var(--liber); font-style: italic; }
.quote figcaption {
  font-size: 10px; color: var(--fog); margin-top: 18px;
}
.quote__hugetext { font-size: clamp(30px, 3.8vw, 58px); display: block; line-height: .98; letter-spacing: -.025em; }

/* =================== PRESS / OPINIE =================== */
.section--press { background: var(--abyss); }
.press {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 1000px) { .press { grid-template-columns: 1fr; } }
.press__card {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.018) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #fbf6e6, #ece6d3);
  color: #1a1f1a;
  padding: 28px 28px 32px;
  position: relative;
  isolation: isolate;
  transition: transform .4s var(--ease);
  will-change: transform;
  transform-style: preserve-3d;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.press__card:nth-child(1) { transform: rotate(-.7deg); }
.press__card:nth-child(2) { transform: rotate(.5deg); }
.press__card:nth-child(3) { transform: rotate(-.3deg); }
.press__badge {
  display: inline-block;
  font-size: 9px;
  color: var(--moss);
  padding: 4px 10px;
  border: 1px solid var(--moss);
  margin-bottom: 18px;
}
.press__text {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.press__text em { color: var(--moss); font-style: italic; font-weight: 500; }
.press__author { font-size: 10px; color: #5a5f50; }

/* =================== TRYLOGIA =================== */
.section--trilogy {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(200,230,46,.05), transparent 50%),
    var(--void);
}
.trilogy {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.trilogy::before {
  content:'';
  position: absolute; left: 50px; top: 20px; bottom: 20px;
  width: 1px; background: linear-gradient(180deg, var(--liber), transparent);
  opacity: .3;
}
@media (max-width: 700px) { .trilogy::before { left: 30px; } }
.tome {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  opacity: .6;
  transition: opacity .4s var(--ease);
}
.tome:hover { opacity: 1; }
.tome--active { opacity: 1; }
@media (max-width: 700px) { .tome { grid-template-columns: 70px 1fr; gap: 16px; } }

.tome__rail { display: flex; align-items: flex-start; gap: 12px; position: relative; }
.tome__roman {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--liber);
  font-weight: 500;
}
.tome--active .tome__roman { text-shadow: 0 0 30px rgba(200,230,46,.4); }
.tome__line { display: none; }
.tome__title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: .95;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.tome__sub { font-size: 11px; color: var(--liber); margin-bottom: 14px; }
.tome__body p { font-size: 17px; color: var(--bone-2); max-width: 720px; margin: 0 0 18px; line-height: 1.6; }
.tome__pill {
  display: inline-block;
  font-size: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(200,230,46,.4);
  color: var(--liber);
}
.tome:not(.tome--active) .tome__pill { border-color: rgba(255,255,255,.15); color: var(--fog); }

/* =================== SHIPPING BANNER =================== */
.ship-banner {
  max-width: var(--maxw);
  margin: 0 auto 40px;
  padding: 26px 30px;
  display: grid;
  gap: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(200,230,46,.04) 0 6px, transparent 6px 14px),
    linear-gradient(135deg, rgba(20,36,28,.7), rgba(11,26,19,.8));
  border: 1px solid rgba(200,230,46,.35);
  position: relative;
  overflow: hidden;
}
.ship-banner::before, .ship-banner::after {
  content:''; position: absolute; width: 18px; height: 18px;
  border: 1.5px solid var(--liber);
  pointer-events: none;
}
.ship-banner::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.ship-banner::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.ship-banner__row {
  display: flex; align-items: center; gap: 10px;
}
.ship-banner__pulse {
  width: 8px; height: 8px;
  background: var(--liber);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(200,230,46,.7);
  animation: shipPulse 1.6s infinite;
}
@keyframes shipPulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,230,46,.7); }
  70%  { box-shadow: 0 0 0 12px rgba(200,230,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,230,46,0); }
}
.ship-banner__label {
  font-size: 10px;
  color: var(--liber);
  letter-spacing: .2em;
}
.ship-banner__main {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--bone);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.ship-banner__main .accent {
  font-style: italic;
  color: var(--liber);
}
.ship-banner__sub {
  font-size: 14px;
  color: var(--fog);
  line-height: 1.55;
  max-width: 720px;
}
.ship-banner__sub em { color: var(--bone-2); font-style: italic; }

/* =================== STICKY CTA =================== */
.sticky-cta {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 400;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--liber);
  color: var(--abyss);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .14em;
  border: 1px solid var(--liber);
  box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 0 0 rgba(200,230,46,.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .35s var(--ease), visibility .35s, transform .35s var(--ease), box-shadow .35s, background .25s;
  cursor: pointer;
}
.sticky-cta.is-visible {
  opacity: 1; visibility: visible; transform: translateY(0);
  animation: stickyPulse 2.4s ease-in-out infinite 1.5s;
}
@keyframes stickyPulse {
  0%, 100% { box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 0 0 rgba(200,230,46,.5); }
  50%      { box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 0 12px rgba(200,230,46,0); }
}
.sticky-cta:hover {
  background: #d3ed3e;
  transform: translateY(-2px);
}
.sticky-cta__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--evidence);
  box-shadow: 0 0 0 0 rgba(255,59,59,.7);
  animation: pulse 1.4s infinite;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .sticky-cta { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 11px; }
  .sticky-cta__text { font-size: 11px; }
}

/* =================== NAV CTA z pulse =================== */
.nav__cta {
  position: relative;
  overflow: visible;
}
.nav__cta::after {
  content:'';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--liber);
  opacity: 0;
  animation: navCtaRing 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes navCtaRing {
  0%   { opacity: .85; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

/* =================== FORMATY =================== */
.section--formats {
  background:
    radial-gradient(ellipse at 20% 100%, rgba(200,230,46,.05), transparent 50%),
    var(--abyss);
}
.formats {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .formats { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 700px) {
  .section--formats { padding-left: 12px; padding-right: 12px; }
  .fmt { padding: 24px 18px; }
  .fmt__cover { height: 240px; margin-bottom: 16px; }
  .fmt__title { font-size: 22px; }
  .fmt__ribbon { right: -42px; padding: 4px 36px; font-size: 8px; }
}
.fmt {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(20,36,28,.6), rgba(11,26,19,.55));
  border: 1px solid rgba(200,230,46,.12);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
  transform-style: preserve-3d;
}
.fmt::after {
  content:''; position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(200,230,46,.06), transparent 60%);
  z-index: -1;
}
.fmt:hover { border-color: rgba(200,230,46,.4); }
.fmt--featured {
  background:
    repeating-linear-gradient(0deg, rgba(200,230,46,.02) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(200,230,46,.08), rgba(11,26,19,.6));
  border-color: rgba(200,230,46,.32);
  box-shadow: 0 30px 60px rgba(200,230,46,.06), 0 0 60px rgba(200,230,46,.04);
}
.fmt__ribbon {
  position: absolute; top: 18px; right: -38px;
  background: var(--liber);
  color: var(--abyss);
  font-size: 9px; font-weight: 700;
  padding: 5px 40px;
  transform: rotate(45deg);
  letter-spacing: .15em;
  z-index: 3;
}
.fmt__badge {
  display: inline-block;
  font-size: 9px;
  color: var(--liber);
  padding: 4px 10px;
  border: 1px solid rgba(200,230,46,.3);
  margin-bottom: 24px;
}
.fmt__cover {
  position: relative;
  height: 320px;
  display: flex; align-items: flex-end; justify-content: center;
  margin-bottom: 22px;
}
.fmt__cover img {
  max-height: 100%; width: auto; max-width: 100%;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.7));
  transition: transform .5s var(--ease);
}
.fmt:hover .fmt__cover img { transform: translateY(-8px) rotate(-1deg); }
.fmt__shadow {
  position: absolute; bottom: -6px; left: 20%; right: 20%;
  height: 18px;
  background: radial-gradient(ellipse, rgba(0,0,0,.6), transparent 70%);
  filter: blur(8px);
}
.fmt__title { font-size: 28px; margin: 0 0 6px; }
.fmt__meta { font-size: 10px; color: var(--liber); margin-bottom: 8px; }
.fmt__price {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}
.fmt__price-now {
  font-family: var(--serif); font-weight: 600;
  font-size: 28px;
  color: var(--bone);
  letter-spacing: -.01em;
}
.fmt__price-old {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fog-2);
  text-decoration: line-through;
}
.fmt__price-badge {
  font-size: 9px;
  background: var(--evidence);
  color: var(--bone);
  padding: 3px 8px;
  letter-spacing: .14em;
  font-weight: 600;
}
.fmt p { font-size: 14px; color: var(--fog); margin: 0 0 22px; line-height: 1.6; }
.fmt .btn { width: 100%; justify-content: center; }
.fmt__wave {
  display: flex; align-items: center; justify-content: center;
  gap: 3px; height: 32px; margin-bottom: 18px;
}
.fmt__wave span {
  display: block; width: 3px; background: var(--liber); border-radius: 2px;
  animation: wave 1.4s ease-in-out infinite;
}
.fmt__wave span:nth-child(1)  { height: 30%; animation-delay: -1.4s; }
.fmt__wave span:nth-child(2)  { height: 80%; animation-delay: -1.3s; }
.fmt__wave span:nth-child(3)  { height: 40%; animation-delay: -1.2s; }
.fmt__wave span:nth-child(4)  { height: 60%; animation-delay: -1.1s; }
.fmt__wave span:nth-child(5)  { height: 90%; animation-delay: -1.0s; }
.fmt__wave span:nth-child(6)  { height: 30%; animation-delay: -0.9s; }
.fmt__wave span:nth-child(7)  { height: 70%; animation-delay: -0.8s; }
.fmt__wave span:nth-child(8)  { height: 50%; animation-delay: -0.7s; }
.fmt__wave span:nth-child(9)  { height: 90%; animation-delay: -0.6s; }
.fmt__wave span:nth-child(10) { height: 40%; animation-delay: -0.5s; }
.fmt__wave span:nth-child(11) { height: 70%; animation-delay: -0.4s; }
.fmt__wave span:nth-child(12) { height: 100%; animation-delay: -0.3s; }
.fmt__wave span:nth-child(13) { height: 60%; animation-delay: -0.2s; }
.fmt__wave span:nth-child(14) { height: 35%; animation-delay: -0.1s; }
.fmt__wave span:nth-child(15) { height: 80%; animation-delay: 0s; }
.fmt__wave span:nth-child(16) { height: 50%; animation-delay: -0.15s; }
.fmt__wave span:nth-child(17) { height: 90%; animation-delay: -0.25s; }
.fmt__wave span:nth-child(18) { height: 30%; animation-delay: -0.35s; }
.fmt__wave span:nth-child(19) { height: 70%; animation-delay: -0.45s; }
.fmt__wave span:nth-child(20) { height: 50%; animation-delay: -0.55s; }
@keyframes wave {
  0%, 100% { transform: scaleY(.4); opacity: .6; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* =================== PRE-ORDER FORM =================== */
.section--preorder {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(200,230,46,.05), transparent 60%),
    var(--void);
  padding: 100px 30px;
}
.preorder-wrap {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 900px) { .preorder-wrap { grid-template-columns: 1fr; gap: 36px; } }
.preorder__left .section__num { color: var(--liber); font-size: 11px; margin-bottom: 14px; }
.preorder__left .section__title { font-size: clamp(36px, 5vw, 56px); }
.preorder__lede {
  font-size: 15px; color: var(--fog);
  margin: 14px 0 22px; max-width: 480px; line-height: 1.7;
}
.preorder__perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 11px; color: var(--bone-2); }
.preorder__perks li { display: flex; align-items: center; gap: 10px; }
.perk-dot {
  width: 6px; height: 6px; background: var(--liber); border-radius: 50%;
  flex-shrink: 0;
}

.preorder {
  display: flex; flex-direction: column; gap: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(200,230,46,.02) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(20,36,28,.5), rgba(11,26,19,.6));
  border: 1px solid rgba(200,230,46,.18);
  padding: 30px;
  position: relative;
  isolation: isolate;
}
.preorder::before, .preorder::after {
  content:''; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--liber);
}
.preorder::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.preorder::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.preorder__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .preorder__row { grid-template-columns: 1fr; } }
.preorder__field { display: flex; flex-direction: column; gap: 6px; }
.preorder__label { font-size: 10px; color: var(--fog); }
.preorder__field input,
.preorder__field select,
.preorder__field textarea {
  background: rgba(6,12,8,.7);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--bone);
  font-family: var(--mono); font-size: 12px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
  width: 100%;
}
.preorder__field textarea { font-family: var(--sans); font-size: 13px; resize: vertical; min-height: 70px; }
.preorder__field input:focus,
.preorder__field select:focus,
.preorder__field textarea:focus {
  border-color: var(--liber);
  background: rgba(6,12,8,.95);
}
.preorder__bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px;
  margin-top: 10px;
}
@media (max-width: 600px) { .preorder__bottom { flex-direction: column; align-items: stretch; } }
.preorder__check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 11px; color: var(--fog);
  line-height: 1.4;
  cursor: pointer;
}
.preorder__check input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1px solid rgba(200,230,46,.4);
  background: rgba(6,12,8,.5);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
}
.preorder__check input:checked {
  background: var(--liber);
}
.preorder__check input:checked::after {
  content:'✓';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--abyss);
  font-size: 12px;
  font-weight: 700;
}
.preorder__note { font-size: 10px; color: var(--fog-2); margin: 8px 0 0; }
.preorder__note a { color: var(--liber); text-decoration: underline; text-decoration-color: rgba(200,230,46,.4); }

/* =================== AUTHOR =================== */
.section--author { background: var(--void); }
.author {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .author { grid-template-columns: 1fr; } }
.author__num { font-size: 11px; color: var(--liber); margin-bottom: 16px; }
.author__title { font-size: clamp(48px, 7vw, 96px); line-height: .95; margin: 0 0 28px; letter-spacing: -.02em; }
.author__bio { font-size: 18px; color: var(--bone-2); line-height: 1.7; margin: 0 0 18px; max-width: 580px; }
.author__contact { font-size: 11px; margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--fog); }
.author__contact a { color: var(--liber); border-bottom: 1px solid transparent; transition: border-color .3s; }
.author__contact a:hover { border-color: var(--liber); }
.author__sep { color: var(--fog-2); }

/* Foto Joanny — case-file style, mniejszy rozmiar */
.author__photo {
  position: relative;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 320px;
  display: flex; flex-direction: column;
  background: var(--abyss);
  border: 1px solid rgba(200,230,46,.22);
  isolation: isolate;
}
.author__photo::before, .author__photo::after {
  content:''; position: absolute; width: 16px; height: 16px;
  border: 1.5px solid var(--liber);
  pointer-events: none;
  z-index: 3;
}
.author__photo::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.author__photo::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.author__photo picture {
  display: block;
  width: 100%;
  overflow: hidden;
}
.author__photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.04) saturate(.92);
  transition: filter .4s var(--ease);
}
.author__photo:hover img {
  filter: contrast(1.08) saturate(1);
}
.author__photo-credit {
  display: flex; align-items: center;
  gap: 8px;
  font-size: 9px;
  color: var(--fog-2);
  padding: 9px 14px;
  border-top: 1px solid rgba(200,230,46,.12);
  background: rgba(11,26,19,.55);
  letter-spacing: .12em;
}
.author__photo-credit-label {
  color: var(--liber);
  font-weight: 500;
}
.author__photo-credit a {
  color: var(--bone-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, color .25s;
}
.author__photo-credit a:hover {
  color: var(--liber);
  border-bottom-color: var(--liber);
}
@media (max-width: 900px) {
  .author__photo { max-width: 260px; }
}

/* Zachowane dla kompatybilności (gdyby się gdzieś używało) */
.author__plate {
  padding: 40px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.015) 0 2px, transparent 2px 8px),
    linear-gradient(135deg, rgba(20,36,28,.8), rgba(11,26,19,.9));
  border: 1px solid rgba(200,230,46,.18);
  text-align: center;
  position: relative;
}
.author__plate::before, .author__plate::after {
  content:''; position: absolute; width: 22px; height: 22px;
  border: 1px solid var(--liber);
}
.author__plate::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.author__plate::after  { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.author__photo-plate::before, .author__photo-plate::after {
  display: none;
}
.author__plate-tag { font-size: 10px; color: var(--liber); margin-bottom: 22px; }
.author__plate-name {
  font-size: clamp(46px, 5vw, 64px);
  font-style: italic;
  color: var(--bone);
  line-height: 1;
}
.author__plate-line {
  width: 60%; height: 1px; background: var(--liber);
  margin: 18px auto;
}
.author__plate-sub { font-size: 10px; color: var(--fog); }

/* =================== FINAL CTA =================== */
.section--final {
  background:
    radial-gradient(ellipse at center, rgba(200,230,46,.06), transparent 60%),
    linear-gradient(180deg, var(--abyss), var(--void));
  text-align: center;
}
.final { max-width: 900px; margin: 0 auto; }
.final__motto {
  font-size: clamp(48px, 8vw, 110px);
  line-height: .95;
  margin: 0 0 50px;
  letter-spacing: -.02em;
}
.final__motto span { display: inline-block; margin: 0 .1em; }
.final__motto span:nth-child(2) { color: var(--liber); font-style: italic; }
.final__motto span:nth-child(4) { color: var(--liber); font-style: italic; }
.final__date { margin-top: 32px; font-size: 11px; color: var(--fog); }

/* =================== FOOTER =================== */
.foot {
  background: var(--void);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 50px 30px;
}
.foot__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}
@media (max-width: 800px) { .foot__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.foot__title { font-size: 36px; letter-spacing: -.02em; line-height: 1; margin-bottom: 6px; }
.foot__sub { font-size: 10px; color: var(--fog); }
.foot__publisher img { width: 180px; opacity: .85; transition: opacity .3s; }
.foot__publisher img:hover { opacity: 1; }
.foot__contact {
  display: flex; flex-direction: column; gap: 6px; font-size: 10px;
  color: var(--fog); text-align: right;
}
@media (max-width: 800px) { .foot__contact { text-align: center; } }
.foot__contact a { color: var(--liber); }

/* =================== REVEAL ANIMATIONS =================== */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

html.js [data-split-words] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
html.js [data-split-words] .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
html.js [data-split-words].is-in .word > span { transform: translateY(0); }
html.js [data-split-words] .word { margin-right: .22em; }

/* Magnetic */
[data-magnetic] { display: inline-flex; will-change: transform; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-split-words] .word > span { transform: none; }
  .grain, .scanlines, .hero__fog { display: none; }
}

/* Different reveal styles for narrative variety */
html.js .section--syn [data-reveal] { transform: translateX(20px); }
html.js .section--syn [data-reveal].is-in { transform: translateX(0); }

html.js .section--quotes [data-reveal] { transform: translateY(20px) scale(.97); filter: blur(4px); }
html.js .section--quotes [data-reveal].is-in { transform: translateY(0) scale(1); filter: blur(0); }

html.js .section--press [data-reveal] { transform: rotate(-2deg) translateY(60px); }
html.js .section--press [data-reveal].is-in { transform: rotate(0) translateY(0); }
html.js .press__card:nth-child(1)[data-reveal].is-in { transform: rotate(-.7deg); }
html.js .press__card:nth-child(2)[data-reveal].is-in { transform: rotate(.5deg); }
html.js .press__card:nth-child(3)[data-reveal].is-in { transform: rotate(-.3deg); }

html.js .section--final [data-split-words] .word > span { transition-duration: 1.4s; }

/* Mobile padding tweaks */
@media (max-width: 700px) {
  .section { padding: 80px 18px; }
  .hero { padding: 110px 18px 50px; }
  .nav { padding: 14px 16px; }
  .nav.is-scrolled { padding: 10px 16px; }
  .section__header { margin-bottom: 50px; }
  .hero__title { font-size: clamp(72px, 18vw, 140px); }
  .hero__motto { font-size: 18px; }
  .hero__lede { font-size: 14px; }
  .hero__packshot { max-width: 240px; }
  .countdown { padding: 14px 16px; width: 100%; box-sizing: border-box; }
  .countdown__grid { gap: 12px; }
  .countdown__cell { min-width: 50px; }
  .live-badge { font-size: 8px; padding: 5px 8px; gap: 6px; top: 76px; right: 12px; }
  .live-badge__time { display: none; }
}

/* Very small viewports — 320-380 */
@media (max-width: 380px) {
  .hero__title { font-size: clamp(64px, 22vw, 100px); }
  .hero__eyebrow { font-size: 9px; padding: 6px 10px; gap: 8px; }
  .countdown__num { font-size: 22px; }
  .countdown__u { font-size: 8px; }
  .countdown__cell { min-width: 42px; }
  .countdown__grid { gap: 10px; }
  .btn { padding: 12px 18px; font-size: 10px; }
  .section__title { font-size: clamp(32px, 8vw, 48px); }
  .case__file, .case__pull { padding: 22px; }
  .case__body { font-size: 16px; }
  .dossier { padding: 18px; }
  .quote, .quote--big, .quote--final { padding: 24px; }
}
