/* ============================================================
   WM DESIGN — LUMEN
   Paleta A "Hi-Vis": obsydian + odblaskowy chartreuse
   ============================================================ */

:root {
  --bg: #05060A;
  --bg-alt: #0D0F13;
  --bg-card: #0C0E11;
  --ink: #E9E7E0;
  --ink-muted: #7C828D;
  --accent: #3ED6FF;
  --accent-dim: rgba(62, 214, 255, 0.12);
  --accent-dark: #00222E;
  --line: rgba(237, 234, 227, 0.08);
  --line-strong: rgba(237, 234, 227, 0.16);

  --font-display: 'Syne', 'Space Grotesk', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'JetBrains Mono', ui-monospace, monospace; /* spójnie ze stroną główną */
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  /* kanciasty panel HUD: proste krawędzie + dwa ścięte narożniki */
  --notch: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

/* ===== pełnoekranowa ramka HUD + ambientowa telemetria — spójnie ze stroną główną ===== */
.hud-frame { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity 1.1s ease; }
.hud-frame.show { opacity: 1; }
.hud-frame__c { position: absolute; width: clamp(24px, 2.6vw, 40px); height: clamp(24px, 2.6vw, 40px); border: 1px solid var(--line-strong); }
.hud-frame__c--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.hud-frame__c--tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.hud-frame__c--bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.hud-frame__c--br {
  bottom: 16px; right: 16px; border-left: 0; border-top: 0;
  border-color: var(--accent);
  filter: drop-shadow(0 0 4px rgba(62, 214, 255, 0.55));
}
.hud-code {
  position: absolute; top: 50%;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.34em;
  color: var(--ink-muted); opacity: 0.45; white-space: nowrap;
  writing-mode: vertical-rl;
}
.hud-code--left { left: 19px; transform: translateY(-50%); }
.hud-code--right { right: 19px; transform: translateY(-50%); }
@media (max-width: 860px) { .hud-code { display: none; } .hud-frame__c { width: 20px; height: 20px; } }

/* ===== laserowy pomost przejścia stron — spójnie z główną ===== */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(rgba(62, 214, 255, 0.05) 0 1px, transparent 1px 5px);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 6px 30px 2px rgba(62, 214, 255, 0.55);
  transform: translateY(-110%);
  will-change: transform;
}
.page-wipe.go { animation: pageWipeDown 0.6s cubic-bezier(0.7, 0, 0.25, 1) forwards; }
@keyframes pageWipeDown { from { transform: translateY(-110%); } to { transform: translateY(0); } }

/* ===== animowana strzałka-puls na CTA — spójnie z główną ===== */
.cta-go {
  display: inline-block;
  position: relative;
  width: 26px;
  height: 1em;
  margin-left: 4px;
  vertical-align: middle;
}
.btn .cta-go { margin-left: 0; }
.cta-go::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 18px; height: 1.5px; transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(62, 214, 255, 0), currentColor);
}
.cta-go i {
  position: absolute; right: 1px; top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.cta-go::after {
  content: ''; position: absolute; top: 50%; left: 0;
  width: 6px; height: 3px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 8px rgba(62, 214, 255, 0.9);
  transform: translate(0, -50%);
  animation: ctaGoPulse 1.8s ease-in-out infinite;
}
@keyframes ctaGoPulse {
  0% { transform: translate(-2px, -50%); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate(18px, -50%); opacity: 0; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-dark); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #23262C; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #33373F; }

a { color: inherit; text-decoration: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
strong { font-weight: 500; color: var(--ink); }
.accent { color: var(--accent); }
.muted { color: var(--ink-muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: clamp(96px, 14vh, 180px) 0; position: relative; }

/* ---------- Etykiety sekcji ---------- */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: clamp(24px, 4vh, 48px);
}
.section-label span { color: var(--ink-muted); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: clamp(40px, 7vh, 80px);
}
.section-title em { color: var(--accent); font-family: var(--font-display); font-style: normal; font-weight: 700; }

/* nagłówek w ramce z laserem otwierającym L→P */
.titleframe {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: clamp(14px, 1.8vw, 26px) clamp(22px, 3vw, 42px);
  border: 1px solid var(--line);
  clip-path: var(--notch);
  overflow: hidden;
  margin-bottom: clamp(28px, 4vh, 48px);
}
.titleframe .section-title { margin-bottom: 0; clip-path: inset(0 100% 0 0); }
.titleframe.revealed .section-title {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.05s cubic-bezier(.7, 0, .25, 1);
}
.titleframe__laser {
  position: absolute;
  top: -2%; bottom: -2%;
  left: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent) 18%, #fff 50%, var(--accent) 82%, transparent);
  box-shadow: 0 0 20px 4px rgba(62, 214, 255, 0.8);
  opacity: 0;
  pointer-events: none;
}
.titleframe.revealed .titleframe__laser { animation: titleframeLaser 1.05s cubic-bezier(.7, 0, .25, 1) forwards; }
@keyframes titleframeLaser {
  0% { left: 0; opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 0;
  clip-path: var(--notch);
  border: 1px solid var(--line-strong);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, color 0.3s, border-color 0.3s, filter 0.3s;
  will-change: transform;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-dark);
  border-color: var(--accent);
}
.btn--primary:hover { filter: drop-shadow(0 0 16px rgba(62, 214, 255, 0.4)); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { padding: 11px 24px; font-size: 13px; background: transparent; }
.btn--small:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Od kodu do efektu (karty kod->wizual) ---------- */
.codeflow { background: var(--bg-alt); overflow: hidden; }
.codeflow__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 14px;
}
.codeflow__title { margin-bottom: 18px; }
.codeflow__intro {
  max-width: 640px;
  color: var(--ink-muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.codeflow__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.2vw, 32px);
}
.codecard {
  --reveal: 0;
  position: relative;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  clip-path: var(--notch);
  overflow: hidden;
  background: #07090d;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, border-color 0.4s;
}
.codecard:hover { border-color: rgba(62, 214, 255, 0.4); }
.codecard__code {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: clamp(14px, 1.8vw, 26px);
  font-family: var(--font-mono);
  font-size: clamp(7.5px, 0.78vw, 10.5px);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(62, 214, 255, 0.45);
  white-space: pre-wrap;
  word-break: break-word;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.codecard__visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 calc((1 - var(--reveal)) * 100%) 0 0);
}
.codecard__scan {
  position: absolute;
  top: -2%;
  bottom: -2%;
  left: calc(var(--reveal) * 100%);
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(to bottom, transparent, var(--accent) 20%, #fff 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 18px 3px rgba(62, 214, 255, 0.75);
  opacity: 0;
  pointer-events: none;
}
.codecard__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(16px, 1.8vw, 26px);
  background: linear-gradient(to top, rgba(5, 6, 10, 0.92) 30%, transparent);
  pointer-events: none;
}
.codecard__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.codecard__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.2;
  margin-top: 6px;
}
/* makiety w kartach (konkretne dema zamiast statycznych grafik) */
.codecard__visual.mock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(16px, 2vw, 28px);
  background: #06080c;
  object-fit: unset;
}
/* 01 — odpowiedź AI */
.mock--ai { justify-content: center; }
.mai__q {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: clamp(10px, 1vw, 12.5px);
  color: var(--ink-muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px;
}
.mai__ans { margin-top: 16px; border-left: 2px solid var(--accent); padding-left: 16px; }
.mai__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.mai__ans p { font-family: var(--font-display); font-weight: 500; font-size: clamp(13px, 1.25vw, 17px); line-height: 1.45; color: var(--ink); margin: 9px 0; }
.mai__ans mark { background: rgba(62,214,255,0.18); color: var(--accent); padding: 0 5px; border-radius: 3px; }
.mai__cite { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-muted); }
/* 02 — treść + schema */
.msc__h { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.msc__fields { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.msc__field {
  font-family: var(--font-mono); font-size: clamp(10.5px, 1vw, 13px); color: var(--ink-muted);
  border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 6px;
  padding: 9px 13px;
}
.msc__field b { color: var(--ink); font-weight: 500; margin-right: 10px; }
.msc__badge {
  align-self: flex-start; margin-top: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--accent-dark); background: var(--accent);
  padding: 5px 13px; border-radius: 999px;
}
/* 04 — żywy interfejs (mini plansza: tilt + odcień + laser) */
.mock--ui { align-items: center; justify-content: center; perspective: 760px; }
.mui__panel {
  position: relative; width: 78%; aspect-ratio: 16 / 7;
  display: flex; align-items: center; gap: clamp(12px, 1.5vw, 20px);
  padding: clamp(14px, 1.6vw, 22px) clamp(16px, 2vw, 26px);
  background: linear-gradient(100deg, rgba(11,14,19,0.92), rgba(7,9,13,0.8));
  border: 1px solid rgba(62,214,255,0.4);
  clip-path: var(--notch); overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  animation: muiTilt 7s ease-in-out infinite;
}
@keyframes muiTilt {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg); border-color: rgba(62,214,255,0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
  50% { transform: rotateY(8deg) rotateX(-4deg); border-color: rgba(62,214,255,0.6); box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(62,214,255,0.18); }
}
.mui__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 46px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(62,214,255,0.5); flex-shrink: 0; }
.mui__tag { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.mui__t { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(14px, 1.5vw, 21px); color: var(--ink); margin-top: 5px; }
.mui__laser {
  position: absolute; top: -4%; bottom: -4%; left: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent) 20%, #fff 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 14px 3px rgba(62,214,255,0.8);
  animation: muiLaser 3.6s ease-in-out infinite;
}
@keyframes muiLaser { 0% { left: -2%; opacity: 0; } 12% { opacity: 1; } 50% { left: 102%; opacity: 1; } 62%, 100% { left: 102%; opacity: 0; } }

@media (max-width: 760px) { .codeflow__row { grid-template-columns: 1fr; } }

/* ---------- Obiektyw-hub (system filarów) ---------- */
.lenshub { background: var(--bg); overflow: hidden; }
.lenshub__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.lenshub__text { max-width: 470px; }
.lenshub__text .section-title { margin: 14px 0 20px; }
.lenshub__intro {
  color: var(--ink-muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
  margin-bottom: 30px;
}
.lenshub__lens { display: flex; justify-content: center; }
.lens { width: min(520px, 92%); height: auto; overflow: visible; }
.lens__ring { fill: none; stroke: rgba(62, 214, 255, 0.4); stroke-width: 1; }
.lens__ring--faint { stroke: rgba(62, 214, 255, 0.14); }
.lens__ticks {
  fill: none;
  stroke: rgba(62, 214, 255, 0.32);
  stroke-width: 7;
  stroke-dasharray: 1.5 15;
  transform-origin: 260px 260px;
  animation: lensSpin 90s linear infinite;
}
.lens__labels { transform-origin: 260px 260px; animation: lensSpin 64s linear infinite; }
.lens__label {
  fill: var(--accent);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.3em;
}
.lens__nodes circle { fill: var(--accent); }
.lens__aperture line {
  stroke: rgba(62, 214, 255, 0.7);
  stroke-width: 2;
  transform-origin: 260px 260px;
  animation: lensSpinRev 22s linear infinite;
}
.lens__pulse {
  fill: #eaf9ff;
  transform-origin: 260px 260px;
  animation: lensPulse 3.4s ease-in-out infinite;
  filter: drop-shadow(0 0 9px rgba(62, 214, 255, 0.95));
}
@keyframes lensSpin { to { transform: rotate(360deg); } }
@keyframes lensSpinRev { to { transform: rotate(-360deg); } }
@keyframes lensPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.45); }
}
@media (max-width: 860px) {
  .lenshub__inner { grid-template-columns: 1fr; }
  .lenshub__text { max-width: none; text-align: center; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .lens__ticks, .lens__labels, .lens__aperture, .lens__pulse { animation: none; }
}

/* odręczna kreska-akcent pod nagłówkiem hero */
.hero__scribble {
  display: block;
  width: clamp(180px, 26vw, 300px);
  height: auto;
  margin: 6px 0 2px;
}
.hero__scribble path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(62, 214, 255, 0.45));
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__box { display: flex; flex-direction: row; align-items: center; }
.preloader__logo { width: clamp(96px, 13vw, 124px); height: auto; opacity: 0.92; flex-shrink: 0; }
.preloader__info {
  display: flex; flex-direction: column; gap: 14px;
  width: clamp(240px, 40vw, 300px);
  margin-left: clamp(22px, 4vw, 40px);
  padding-left: clamp(22px, 4vw, 40px);
  border-left: 1px solid var(--line-strong);
}
.preloader__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.preloader__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.preloader__bar { height: 2px; background: var(--line); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0%; background: var(--accent); }

/* ---------- Kursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; }
.cursor__dot {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.cursor__ring {
  position: fixed;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(62, 214, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}
.cursor--hover .cursor__ring {
  width: 64px; height: 64px;
  background: rgba(62, 214, 255, 0.08);
  border-color: var(--accent);
}
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ---------- Ziarno ---------- */
.grain {
  position: fixed;
  inset: -100px;
  z-index: 998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-30px, 40px); }
  50% { transform: translate(40px, -20px); }
  75% { transform: translate(-20px, -40px); }
  100% { transform: translate(0, 0); }
}

/* ---------- Nawigacja ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav__logo { display: block; }
.nav__logo img, .nav__logo svg { height: 46px; width: auto; display: block; }
@media (max-width: 900px) { .nav__logo img, .nav__logo svg { height: 38px; } }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.3s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(7, 8, 10, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(62, 214, 255, 0.07), transparent 70%);
}
.hero__content { position: relative; z-index: 2; width: 100%; padding-top: 80px; }
.hero__title, .hero__sub, .hero__label { max-width: 620px; }
.hero__label { margin-bottom: clamp(18px, 2.4vh, 28px); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero__line { display: block; overflow: hidden; white-space: nowrap; }
.hero__line > span { display: inline-block; will-change: transform; }
/* akcent hero ujednolicony z główną: prosty Syne + prosta cyjanowa kreska (zamiast serif italic + odręcznej) */
.hero__title em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  position: relative;
}
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.04em;
  height: 5px;
  background: var(--accent);
  border-radius: 3px;
  filter: drop-shadow(0 0 8px rgba(62, 214, 255, 0.5));
}
.hero__title.revealed .hero__line { overflow: visible; } /* po intro: pokaż podkreślenie spod maski */
.hero__scribble { display: none; } /* odręczna kreska zastąpiona prostą (spójność z główną) */
.hero__sub {
  max-width: 520px;
  margin-top: clamp(24px, 4vh, 40px);
  color: var(--ink-muted);
  font-size: clamp(15px, 1.3vw, 18px);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(32px, 5vh, 56px);
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollPulse 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scrollPulse {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ---------- MANIFEST ---------- */
.manifest { background: var(--bg); }
.manifest__body { max-width: 820px; position: relative; padding-left: clamp(40px, 6vw, 84px); }
/* cienka szyna spinająca manifest z deckiem/procesem (bez ramek) */
.manifest__rail {
  position: absolute;
  left: 14px; top: 4px; bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent) 8%, var(--accent) 92%, transparent);
  filter: drop-shadow(0 0 6px rgba(62, 214, 255, 0.7));
  opacity: 0.75;
  pointer-events: none;
}
.manifest__pulse {
  position: absolute;
  left: 9px; top: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 10%, var(--accent) 45%, transparent 72%);
  box-shadow: 0 0 16px 4px rgba(62, 214, 255, 0.7);
  pointer-events: none;
  animation: processPulse 5.5s linear infinite;
}
.manifest__body p.reveal-words {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.9vw, 38px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: clamp(32px, 5vh, 56px);
}
.reveal-words .w { opacity: 0.12; transition: none; }
.manifest__statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: clamp(40px, 7vh, 72px);
}
.manifest__statement em { color: var(--accent); font-family: var(--font-display); font-style: normal; font-weight: 700; }

/* ---------- AUDYTY ---------- */
.audits { background: var(--bg-alt); overflow: hidden; }
.audits__beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(62, 214, 255, 0.5), transparent);
  left: -10%;
  animation: beamSweep 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes beamSweep {
  0%, 100% { left: 4%; opacity: 0; }
  10% { opacity: 1; }
  50% { left: 96%; opacity: 1; }
  60%, 90% { opacity: 0; }
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  transition: border-color 0.4s, transform 0.2s ease-out, box-shadow 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
}
/* refleks światła wędrujący za kursorem (pozycję ustawia tilt w main.js) */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(460px circle at var(--shx, 50%) var(--shy, 50%),
    rgba(62, 214, 255, 0.16), rgba(237, 234, 227, 0.06) 38%, transparent 64%);
  opacity: 0;
  transition: opacity 0.45s;
}
.card:hover::after { opacity: 1; }
.card:hover {
  border-color: rgba(62, 214, 255, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 44px rgba(62, 214, 255, 0.14);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.card p { color: var(--ink-muted); font-size: 15px; }
.card p + p { margin-top: 14px; }
.card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent) !important;
  margin-bottom: 18px;
}
.card__note {
  margin-top: 18px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px !important;
}
.card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.card--featured {
  border-color: rgba(62, 214, 255, 0.35);
  box-shadow: 0 0 80px rgba(62, 214, 255, 0.06);
  margin-bottom: clamp(48px, 8vh, 88px);
}
.card--featured:hover { border-color: var(--accent); }
.card--featured h3 { font-size: clamp(28px, 3vw, 40px); }
.card--featured p { font-size: clamp(15px, 1.2vw, 17px); max-width: 720px; }
.card--featured .btn { margin-top: 28px; }

.audits__group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.audits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.audits__closing {
  margin-top: clamp(40px, 6vh, 64px);
  max-width: 640px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 22px);
  color: var(--ink);
}

/* ---------- USŁUGI ---------- */
/* ===================== DECK USŁUG (plansze) ===================== */
/* kolejność sekcji: deck usług wskakuje zaraz pod hero (reszta bez zmian) */
main { display: flex; flex-direction: column; }
.hero { order: -4; }
.services { order: -3; }
.manifest { order: -2; }
/* .process { order: -1 } ustawione w sekcji Proces */

.services { background: var(--bg); overflow: hidden; }
.deck__hint {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}
.deck {
  position: relative;
  margin-top: clamp(32px, 5vh, 56px);
  padding-left: clamp(40px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 18px);
}
/* laserowa szyna z pulsem (spójnie z sekcją Proces) */
.deck__rail {
  position: absolute;
  left: 14px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent) 8%, var(--accent) 92%, transparent);
  filter: drop-shadow(0 0 6px rgba(62, 214, 255, 0.85));
  pointer-events: none;
}
.deck__pulse {
  position: absolute;
  left: 9px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 10%, var(--accent) 45%, transparent 72%);
  box-shadow: 0 0 16px 4px rgba(62, 214, 255, 0.8);
  pointer-events: none;
  animation: processPulse 4.2s linear infinite;
}
.deck__canvas {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.deck__canvas.show { opacity: 1; }

.board {
  position: relative;
  width: 100%;
  min-height: clamp(108px, 14vh, 148px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 52px);
  padding: clamp(20px, 2.2vw, 32px) clamp(24px, 3vw, 48px);
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: linear-gradient(100deg, rgba(11,14,19,0.66), rgba(7,9,13,0.5));
  border: 1px solid var(--line);
  clip-path: var(--notch);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), box-shadow 0.4s, border-color 0.4s;
}
.board:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.board:hover,
.board.is-active {
  transform: translateX(6px);
  border-color: rgba(62,214,255,0.55);
  box-shadow: 0 26px 60px rgba(0,0,0,0.5), 0 0 50px rgba(62,214,255,0.14);
}

/* siatka technicznego tła planszy */
.board__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(62,214,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62,214,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(140% 160% at 0% 50%, #000 25%, transparent 72%);
  mask-image: radial-gradient(140% 160% at 0% 50%, #000 25%, transparent 72%);
}
/* refleks światła wędrujący za kursorem (pozycję ustawia JS) */
.board::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--shx, 50%) var(--shy, 50%),
    rgba(62,214,255,0.16), rgba(237,234,227,0.05) 40%, transparent 64%);
  opacity: 0;
  transition: opacity 0.45s;
}
.board:hover::after { opacity: 1; }
/* laserowy skan przebiegający przy otwieraniu planszy */
.board__scan {
  position: absolute;
  top: -2%; bottom: -2%;
  left: -2px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent) 20%, #fff 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 18px 3px rgba(62,214,255,0.75);
  opacity: 0;
  pointer-events: none;
}
.board.is-scanning .board__scan { animation: boardScan 0.62s ease-in-out; }
@keyframes boardScan {
  0% { left: -2px; opacity: 1; }
  85% { opacity: 1; }
  100% { left: 102%; opacity: 0; }
}

.board__num {
  grid-column: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 3.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237,234,227,0.18);
}
.board--flagship .board__num { -webkit-text-stroke-color: rgba(62,214,255,0.42); }

.board__body { grid-column: 2; min-width: 0; display: block; }
.board__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.board__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.board__tagline {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(14px, 1vw, 16px);
  color: var(--ink-muted);
}
.board__tagline em { color: var(--accent); font-style: italic; }
.board__cue {
  grid-column: 3;
  justify-self: end;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.3s;
}
.board__cue i { color: var(--accent); font-style: normal; transition: transform 0.3s; display: inline-block; }
.board:hover .board__cue { color: var(--ink); }
.board:hover .board__cue i { transform: translateX(5px); }

.services__footnote {
  margin-top: clamp(40px, 6vh, 64px);
  padding-top: clamp(28px, 4vh, 40px);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 560px;
}

/* ===================== DOSSIER (pełnoekranowa treść usługi) ===================== */
.dossier {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  visibility: hidden;
  pointer-events: none;
}
.dossier.open { visibility: visible; pointer-events: auto; }
.dossier__scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 7, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.dossier.open .dossier__scrim { opacity: 1; }

.dossier__panel {
  position: relative;
  width: min(720px, 94vw);
  height: 100%;
  display: none;
  flex-direction: column;
  background:
    radial-gradient(100% 60% at 100% 0%, rgba(62,214,255,0.07), transparent 55%),
    linear-gradient(180deg, #0b0e13, #07090d);
  border-left: 1px solid rgba(62,214,255,0.35);
  box-shadow: -40px 0 120px rgba(0,0,0,0.6);
  transform: translateX(40px);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(.22,1,.36,1), opacity 0.45s ease;
}
.dossier__panel.active { display: flex; }
.dossier.open .dossier__panel.active { transform: translateX(0); opacity: 1; }

.dossier__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 2.4vh, 26px) clamp(22px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.dossier__code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.dossier__close {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  background: none;
  border: 1px solid var(--line);
  padding: 7px 12px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.dossier__close i { color: var(--accent); font-style: normal; margin-left: 6px; }
.dossier__close:hover { color: var(--ink); border-color: var(--accent); }

.dossier__scroll {
  position: relative;
  overflow-y: auto;
  padding: clamp(28px, 4vh, 48px) clamp(22px, 3vw, 44px) clamp(40px, 6vh, 64px);
  flex: 1;
}
.dossier__graph {
  position: absolute;
  top: 0; right: 0;
  width: 70%;
  height: 340px;
  pointer-events: none;
  opacity: 0.55;
}
.dossier__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 26px);
  margin-bottom: clamp(24px, 3.5vh, 40px);
}
.dossier__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237,234,227,0.18);
  flex-shrink: 0;
}
.dossier__panel[data-panel="0"] .dossier__num { -webkit-text-stroke-color: rgba(62,214,255,0.42); }
.dossier__flag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.dossier__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.dossier__tagline {
  margin-top: 10px;
  font-size: clamp(16px, 1.5vw, 22px);
  color: var(--ink-muted);
}
.dossier__tagline em { color: var(--accent); font-style: italic; }

.dossier__text { position: relative; max-width: 620px; color: var(--ink-muted); }
.dossier__text p + p { margin-top: 16px; }
.dossier__lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 20px;
}
.dossier__sublabel {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 30px !important;
  margin-bottom: 8px !important;
}
.dossier__list { list-style: none; margin-top: 8px; }
.dossier__list li {
  padding: 16px 0 16px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 15px;
}
.dossier__list li::before {
  content: '◆';
  position: absolute;
  left: 0; top: 19px;
  font-size: 9px;
  color: var(--accent);
}
.dossier__quote {
  margin-top: 30px !important;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink);
}
.dossier__statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.01em;
  color: var(--ink) !important;
  margin-top: 26px !important;
}
.dossier__statement em { color: var(--accent); font-weight: 400; }
.dossier__meta {
  margin-top: 22px !important;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.dossier__text .btn { margin-top: 32px; }

/* animowana grafika HUD w panelu (kroki procesu) */
.dossier__glyph {
  position: absolute;
  top: clamp(16px, 2.4vh, 32px);
  right: clamp(20px, 3vw, 40px);
  width: clamp(108px, 15vw, 176px);
  height: auto;
  opacity: 0.55;
  pointer-events: none;
}
.dossier__glyph .gl-faint { fill: none; stroke: rgba(62, 214, 255, 0.28); stroke-width: 1.5; }
.dossier__glyph .gl-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dossier__glyph .gl-fill { fill: var(--accent); }
.dossier__glyph .gl-spin { transform-origin: 100px 100px; animation: glSpin 7s linear infinite; }
.dossier__glyph .gl-pulse { animation: glPulse 2.6s ease-in-out infinite; }
@keyframes glSpin { to { transform: rotate(360deg); } }
@keyframes glPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ---------- PROCES ---------- */
.process { background: var(--bg-alt); order: -1; } /* zaraz pod deckiem usług */
.process__steps {
  position: relative;
  padding-left: clamp(40px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 18px);
}
/* laserowa szyna ze świeceniem */
.process__line {
  position: absolute;
  left: 14px;
  top: 0;
  width: 2px;
  height: 100%;
  color: var(--accent);
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(62, 214, 255, 0.85));
}
/* puls lecący w dół szyny */
.process__pulse {
  position: absolute;
  left: 9px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 10%, var(--accent) 45%, transparent 72%);
  box-shadow: 0 0 16px 4px rgba(62, 214, 255, 0.8);
  pointer-events: none;
  animation: processPulse 4.2s linear infinite;
}
@keyframes processPulse {
  0% { top: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
/* krok jako kanciasta ramka HUD */
.process__step {
  position: relative;
  display: flex;
  gap: clamp(18px, 2.5vw, 36px);
  padding: clamp(24px, 3.5vh, 40px) clamp(24px, 3vw, 42px);
  background: linear-gradient(120deg, rgba(11, 14, 19, 0.6), rgba(7, 9, 13, 0.4));
  border: 1px solid var(--line);
  clip-path: var(--notch);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.process__step:hover {
  border-color: rgba(62, 214, 255, 0.4);
  transform: translateX(4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4), 0 0 40px rgba(62, 214, 255, 0.12);
}
/* laser skanujący krok przy wejściu w kadr */
.process__step::after {
  content: '';
  position: absolute;
  top: -2%; bottom: -2%;
  left: -2px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent) 20%, #fff 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 18px 3px rgba(62, 214, 255, 0.75);
  opacity: 0;
  pointer-events: none;
}
.process__step.is-in::after { animation: boardScan 0.7s ease-in-out; }
.process__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(62, 214, 255, 0.4);
  flex-shrink: 0;
}
.process__step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.process__step p { color: var(--ink-muted); font-size: 15px; max-width: 560px; }
.process__step { cursor: pointer; }
.process__step:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.process__cue {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.3s;
}
.process__cue i { color: var(--accent); font-style: normal; display: inline-block; transition: transform 0.3s; }
.process__step:hover .process__cue { color: var(--ink); }
.process__step:hover .process__cue i { transform: translateX(5px); }

/* ---------- DLA KOGO ---------- */
.who { background: var(--bg); }
.who__body { max-width: 820px; position: relative; padding-left: clamp(40px, 6vw, 84px); }
.who__rail {
  position: absolute; left: 14px; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent) 8%, var(--accent) 92%, transparent);
  filter: drop-shadow(0 0 6px rgba(62, 214, 255, 0.7));
  opacity: 0.75; pointer-events: none;
}
.who__pulse {
  position: absolute; left: 9px; top: 0; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, #fff 10%, var(--accent) 45%, transparent 72%);
  box-shadow: 0 0 16px 4px rgba(62, 214, 255, 0.7); pointer-events: none;
  animation: processPulse 5.5s linear infinite;
}
.who__big {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  max-width: 640px;
  color: var(--ink-muted);
}
.who__statement {
  margin-top: clamp(48px, 9vh, 100px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 62px);
  letter-spacing: -0.025em;
  line-height: 1.06;
}
.who__statement em { color: var(--accent); font-family: var(--font-display); font-style: normal; font-weight: 700; }
.who__rule {
  margin-top: clamp(44px, 7vh, 80px);
  max-width: 720px;
}
.who__rule-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.who__rule p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.who__invite {
  margin-top: clamp(32px, 5vh, 56px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.who__invite em { color: var(--accent); font-family: var(--font-display); font-style: normal; font-weight: 600; }

/* ---------- KONTAKT ---------- */
.contact {
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(80px, 12vh, 140px);
}
.contact__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}
.contact .container { position: relative; z-index: 2; }
.contact__motto {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 680px;
}
.contact__motto em { color: var(--accent); font-family: var(--font-display); font-style: normal; font-weight: 700; }
.contact__sub {
  margin-top: clamp(24px, 4vh, 40px);
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 560px;
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  margin-top: clamp(40px, 7vh, 80px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3.6vw, 54px);
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: 12px;
  transition: color 0.4s, border-color 0.4s;
  will-change: transform;
}
.contact__mail:hover { color: var(--accent); border-color: var(--accent); text-shadow: 0 0 26px rgba(62, 214, 255, 0.45); }
.contact__mail-arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact__mail:hover .contact__mail-arrow { transform: translateX(12px) rotate(-45deg); }
/* numer telefonu z cząstek 3D */
.contact__phone {
  display: block;
  margin-top: clamp(40px, 7vh, 72px);
  cursor: pointer;
}
.contact__phone-canvas {
  display: block;
  width: min(620px, 100%);
  height: clamp(96px, 14vw, 170px);
  margin: 0;
}
.contact__phone-hint {
  margin-top: 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--ink-muted);
  opacity: 0.75;
}
/* aktywne kafle kontaktu (konsola sygnału) */
.contact__tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(40px, 7vh, 72px);
  max-width: 900px;
  perspective: 1100px;
}
.ctile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 16px);
  padding: clamp(24px, 2.8vw, 38px);
  background: linear-gradient(135deg, rgba(11,14,19,0.72), rgba(7,9,13,0.5));
  border: 1px solid var(--line);
  clip-path: var(--notch);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), border-color 0.4s, box-shadow 0.4s;
}
.ctile:hover { border-color: rgba(62,214,255,0.55); box-shadow: 0 26px 60px rgba(0,0,0,0.5), 0 0 50px rgba(62,214,255,0.16); }
.ctile__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(62,214,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(62,214,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(120% 120% at 0% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 120% at 0% 0%, #000 30%, transparent 78%);
}
.ctile::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--shx,50%) var(--shy,50%), rgba(62,214,255,0.18), transparent 64%);
  opacity: 0; transition: opacity 0.45s;
}
.ctile:hover::after { opacity: 1; }
.ctile__scan {
  position: absolute; top: -2%; bottom: -2%; left: -2px; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent) 20%, #fff 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 18px 3px rgba(62,214,255,0.75); opacity: 0; pointer-events: none;
}
.ctile.is-scan .ctile__scan { animation: boardScan 0.7s ease-in-out; }
.ctile__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.ctile__value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(15px, 1.7vw, 25px); letter-spacing: -0.01em; line-height: 1.1;
  color: var(--ink); white-space: nowrap;
}
.ctile__cta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); transition: color 0.3s; margin-top: 4px; }
.ctile__cta i { color: var(--accent); font-style: normal; display: inline-block; transition: transform 0.3s; }
.ctile:hover .ctile__cta { color: var(--ink); }
.ctile:hover .ctile__cta i { transform: translateX(6px); }

.contact__address {
  display: block;
  margin-top: clamp(36px, 6vh, 64px);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 2;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* ---------- STOPKA ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 28px 0; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer__logo { display: block; }
.footer__logo img, .footer__logo svg { height: 36px; width: auto; display: block; }

/* === NOWE LOGO: znak „W obrócone 180° = M” === */
.wm-spin { transform-box: fill-box; transform-origin: center; transition: transform .7s cubic-bezier(.7,0,.2,1); }
.nav__logo:hover .wm-spin,
.nav__logo:focus-visible .wm-spin { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .wm-spin { transition: none !important; animation: none !important; transform: none !important; }
}

.footer__motto, .footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}
.footer__phone {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.footer__phone:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Animowane wejścia (GSAP ustawia stany) ---------- */
.fade-up { opacity: 0; transform: translateY(40px); }

/* ---------- Responsywność ---------- */
@media (max-width: 900px) {
  .nav__links, .nav .btn--small { display: none; }
  .nav__burger { display: flex; }
  .hero__scroll { display: none; }
  .dossier__graph { width: 100%; opacity: 0.4; }
}
@media (max-width: 560px) {
  .board { grid-template-columns: auto 1fr; row-gap: 14px; padding: 22px 22px; }
  .board__cue { grid-column: 1 / -1; justify-self: start; }
  .dossier__panel { width: 100vw; border-left: none; }
  .hero__canvas { opacity: 0.45; }
  .contact__tiles { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .audits__beam, .hero__scroll-line::after { animation: none; }
  .cta-go::after { animation: none; opacity: 0; }
  .reveal-words .w { opacity: 1 !important; }
  .fade-up { opacity: 1; transform: none; }
  .board, .board:nth-child(odd) { transform: none; }
  .board.is-scanning .board__scan { animation: none; }
  .deck__canvas { display: none; }
  .titleframe .section-title { clip-path: none; }
  .titleframe__laser { display: none; }
  .process__pulse, .deck__pulse, .manifest__pulse, .who__pulse { display: none; }
  .process__step.is-in::after { animation: none; }
  .dossier__glyph .gl-spin, .dossier__glyph .gl-pulse { animation: none; }
  .mui__panel { animation: none; transform: rotateY(-6deg); }
  .mui__laser { animation: none; opacity: 0; }
  .ctile { transform: none !important; }
  .ctile.is-scan .ctile__scan { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
