/* ============================================================
   WM DESIGN — EPOKI WIDOCZNOŚCI (v2)
   Galeria 3D: czerń-granat, opalizujące cząstki, chartreuse
   ============================================================ */

:root {
  --bg: #05060A;
  --ink: #E9E7E0;
  --ink-dim: #7C828D;
  --acc: #3ED6FF;
  --ai: #3ED6FF;
  --acc-ink: #00222E;
  --line: rgba(233, 231, 224, 0.14);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --disp: 'Syne', 'Space Grotesk', system-ui, sans-serif;
  /* 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);
}

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

html, body { background: var(--bg); }

body {
  color: var(--ink);
  font-family: var(--mono);
  overflow-x: hidden;
}

::selection { background: var(--acc); color: var(--acc-ink); }

a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
.acc { color: var(--acc); }

.scroll-space { width: 1px; }

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(2, 3, 6, 0.55) 100%);
}

/* ---------- pełnoekranowa ramka HUD + ambientowa telemetria ---------- */
.hud-frame {
  position: fixed;
  inset: 0;
  z-index: 40;
  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 rgba(233, 231, 224, 0.20);
}
.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(--acc);
  filter: drop-shadow(0 0 4px rgba(62, 214, 255, 0.55));
}
.hud-code {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--ink-dim);
  opacity: 0.45;
  white-space: nowrap;
}
.hud-code--top { top: 26px; left: clamp(92px, 9vw, 156px); }
.hud-code--left {
  left: 19px;
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  letter-spacing: 0.34em;
}
@media (max-width: 860px) {
  .hud-code { display: none; }
  .hud-frame__c { width: 20px; height: 20px; }
}

.grain {
  position: fixed;
  inset: -100px;
  z-index: 60;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.7s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-26px, 32px); }
  66% { transform: translate(30px, -24px); }
  100% { transform: translate(0, 0); }
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.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 rgba(233, 231, 224, 0.14);
}
.preloader__label { font-size: 11px; letter-spacing: 0.3em; color: var(--ink-dim); }
.preloader__count { font-size: clamp(48px, 8vw, 84px); font-family: var(--disp); font-weight: 700; color: var(--acc); letter-spacing: -0.02em; }
.preloader__bar { height: 2px; background: var(--line); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0%; background: var(--acc); }

/* ---------- HUD góra ---------- */
.hud-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 3vw, 40px);
}
.logo { display: block; }
.logo img, .logo svg { height: 48px; width: auto; display: block; }
@media (max-width: 860px) { .logo img, .logo svg { height: 40px; } }

/* === 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); }
.logo:hover .wm-spin,
.logo:focus-visible .wm-spin { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .wm-spin { transition: none !important; transform: none !important; }
}
.era-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.7s, transform 0.7s, visibility 0.7s;
}
.era-nav.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.era-nav__btn {
  font-size: 11px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-dim);
  transition: color 0.25s, border-color 0.25s;
}
.era-nav__btn:hover { color: var(--acc); border-color: var(--acc); }
.era-nav__oferta { color: var(--acc); border-color: rgba(62, 214, 255, 0.35); letter-spacing: 0.18em; }
.era-nav__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
  min-width: 200px;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .era-nav__label { min-width: 0; font-size: 10px; }
}

/* ---------- menu osi czasu ---------- */
.timeline-menu {
  position: fixed;
  left: clamp(18px, 3vw, 40px);
  bottom: 64px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.7s, transform 0.7s, visibility 0.7s;
}
.timeline-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.timeline-menu__head { font-size: 10px; letter-spacing: 0.3em; color: var(--ink-dim); margin-bottom: 6px; }
.timeline-menu button {
  display: flex;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  text-align: left;
  transition: color 0.25s, transform 0.25s;
}
.timeline-menu button i { font-style: normal; color: var(--ink-dim); opacity: 0.6; }
.timeline-menu button:hover { color: var(--ink); transform: translateX(4px); }
.timeline-menu button.active { color: var(--acc); }
.timeline-menu button.active i { color: var(--acc); opacity: 1; }
.timeline-menu__cta {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--acc);
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color 0.25s;
}
.timeline-menu__cta:hover { border-color: var(--acc); }

/* ---------- HUD dół ---------- */
.hud-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 26px clamp(18px, 3vw, 40px);
  pointer-events: none;
}
.hud-bottom > * { pointer-events: auto; }
.sound { font-size: 10px; letter-spacing: 0.22em; color: var(--ink-dim); transition: color 0.25s; }
.sound:hover, .sound[aria-pressed="true"] { color: var(--acc); }
.phrase {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  max-width: 560px;
  text-align: center;
  white-space: pre-line;
  font-family: var(--disp);
  font-weight: 500;
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.45;
  color: var(--ink);
  min-height: 3em;
}
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: opacity 0.6s 0.25s;
  pointer-events: none;
}
/* tor scrollu z cyjanowym pulsem spływającym w dół — większa, wyraźna zachęta „przewiń" */
.scroll-hint::before {
  content: '';
  display: block;
  width: 1.5px;
  height: 40px;
  margin-bottom: 8px;
  background: linear-gradient(rgba(62, 214, 255, 0), rgba(62, 214, 255, 0.5));
}
.scroll-hint::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 10px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--acc);
  box-shadow: 0 0 10px rgba(62, 214, 255, 0.9);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-2px); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(38px); opacity: 0; }
}
.scroll-hint i {
  display: block;
  width: 18px; height: 18px;
  border-right: 2.5px solid var(--acc);
  border-bottom: 2.5px solid var(--acc);
  transform: rotate(45deg);
  animation: chev 1.6s ease-in-out infinite;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(62, 214, 255, 0.5));
}
.scroll-hint i:nth-child(2) { animation-delay: 0.22s; margin-top: -10px; }
@keyframes chev {
  0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
  45% { opacity: 0.9; }
  100% { opacity: 0; transform: rotate(45deg) translate(6px, 6px); }
}
/* laserowy pomost przejścia: ciemny panel ze skanlinią zjeżdża z góry, prowadzony świecącą cyjanową krawędzią */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 200;
  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(--acc);
  box-shadow: 0 6px 30px 2px rgba(62, 214, 255, 0.55);
  transform: translateY(-110%); /* -110%: świecąca krawędź poza ekranem w spoczynku */
  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); } }
/* dolny CTA (wtórny): uruchamia oś czasu — przygaszony, ta sama szerokość co główny */
.prolog__start {
  display: block;
  width: fit-content;
  min-width: 290px;
  max-width: 90%;
  margin: 12px auto 0;
  pointer-events: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-align: center;
  color: var(--ink-dim);
  padding: 13px 30px;
  border: 1px solid var(--line);
  clip-path: var(--notch);
  background: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s 0.08s, transform 0.7s 0.08s, color 0.25s, border-color 0.25s;
}
.prolog.ctaon .prolog__start { opacity: 1; transform: translateY(0); }
.prolog__start:hover { color: var(--acc); border-color: rgba(62, 214, 255, 0.4); }
/* główne CTA na prologu: skrót do oferty (dla klientów, którzy nie chcą scrollować) + laser na hover */
.prolog__offer {
  display: block;
  width: fit-content;
  min-width: 290px;
  max-width: 90%;
  margin: clamp(18px, 3vh, 30px) auto 0;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-align: center;
  color: var(--acc);
  padding: 13px 30px;
  border: 1px solid rgba(62, 214, 255, 0.4);
  clip-path: var(--notch);
  background: rgba(62, 214, 255, 0.05);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s, transform 0.7s, background 0.25s, filter 0.25s;
}
.prolog.ctaon .prolog__offer { opacity: 1; transform: translateY(0); }
.prolog__offer:hover { background: rgba(62, 214, 255, 0.14); filter: drop-shadow(0 0 12px rgba(62, 214, 255, 0.45)); }
.prolog__offer::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -120%; width: 55%;
  background: linear-gradient(90deg, transparent, rgba(62, 214, 255, 0.55), transparent);
  pointer-events: none;
}
.prolog__offer:hover::after { animation: btnLaser 0.7s ease; }
@keyframes btnLaser { from { left: -120%; } to { left: 170%; } }
/* poziomy „aktywny" wskaźnik w prawo na przycisku oferty (analog do pulsu scrollu) */
.cta-go {
  display: inline-block;
  position: relative;
  width: 26px;
  height: 1em;
  margin-left: 12px;
  vertical-align: middle;
}
.cta-go::before { /* tor poziomy */
  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 { /* szewron w prawo */
  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 { /* cyjanowy puls spływający w prawo */
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 6px; height: 3px;
  border-radius: 2px;
  background: var(--acc);
  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; }
}
.era-nav__oferta { border-radius: 0; clip-path: var(--notch); }
/* żywy zegar PL w centrum górnego HUD */
.hud-clock {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 860px) { .hud-clock { display: none; } }

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 55;
}
.progress span { display: block; height: 100%; width: 0%; background: var(--acc); opacity: 0.8; }

/* ---------- karty epok ---------- */
.era-card {
  position: fixed;
  right: clamp(18px, 4vw, 64px);
  top: 50%;
  transform: translateY(-40%);
  z-index: 40;
  width: min(360px, 82vw);
  padding: 24px 26px;
  background: rgba(8, 10, 16, 0.62);
  border: 1px solid rgba(233, 231, 224, 0.16);
  /* kanciasty panel HUD — spójnie z kartą finału */
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  box-shadow: inset 0 1px 0 rgba(233, 231, 224, 0.06), 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.era-card__tag { font-size: 10px; letter-spacing: 0.26em; color: var(--acc); margin-bottom: 12px; }
.era-card h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.era-card h2 .nb { white-space: nowrap; } /* akronim E-E-A-T nie łamie się na „T" */
.era-card__hud {
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: rgba(62, 214, 255, 0.78);
  background: rgba(62, 214, 255, 0.05);
  border-left: 2px solid rgba(62, 214, 255, 0.5);
  padding: 8px 12px;
  margin-bottom: 14px;
  text-wrap: balance;
}
.era-card p:last-child { font-size: 13px; line-height: 1.7; color: rgba(233, 231, 224, 0.6); }

/* ---------- finał: wolna typografia nad sceną, bez pudełka ---------- */
.offer {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  width: min(960px, 94vw);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.offer::before {
  /* miękka winieta pod treścią — czytelność bez widocznej ramki */
  content: '';
  position: absolute;
  inset: -12% -18%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(4, 5, 9, 0.72) 30%, transparent 72%);
}
.offer.visible { pointer-events: auto; }
.offer__tag {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  margin-bottom: clamp(14px, 2.4vh, 26px);
}
.offer__title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.65);
}
.offer__title em {
  font-style: normal; color: var(--acc); font-weight: 700;
  position: relative; white-space: nowrap;
}
.offer__title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0.04em; height: 3px;
  background: var(--acc); border-radius: 2px;
  filter: drop-shadow(0 0 5px rgba(62, 214, 255, 0.5));
}
.offer__sub {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
}
/* finał: inscenizacja odpowiedzi AI */
.ai-chat {
  max-width: 620px;
  margin: clamp(26px, 4.4vh, 46px) auto 0;
  text-align: left;
}
.ai-chat__q {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  min-height: 1.6em;
}
.ai-chat__prompt { color: var(--acc); margin-right: 6px; }
.ai-chat__thinking {
  display: none;
  gap: 6px;
  margin-top: 14px;
  padding-left: 14px;
}
.ai-chat__thinking.on { display: flex; }
.ai-chat__thinking span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acc);
  animation: aiDot 1s ease-in-out infinite;
}
.ai-chat__thinking span:nth-child(2) { animation-delay: 0.18s; }
.ai-chat__thinking span:nth-child(3) { animation-delay: 0.36s; }
@keyframes aiDot {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}
.ai-chat__answer {
  position: relative;
  margin-top: 16px;
  padding: clamp(18px, 2.6vw, 26px) clamp(20px, 3vw, 30px);
  background: rgba(8, 11, 18, 0.62);
  border: 1px solid rgba(62, 214, 255, 0.28);
  /* kanciasty panel HUD: ścięte narożniki (echo --notch, większe dla dużego panelu) */
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 50px rgba(62, 214, 255, 0.08);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s;
}
.ai-chat__answer.on { opacity: 1; }
/* subtelna skanlinia HUD pod treścią */
.ai-chat__answer::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(rgba(62, 214, 255, 0.05) 0 1px, transparent 1px 4px);
  opacity: 0.45;
}
/* laser „generujący" odpowiedź AI — skan przejeżdża i odsłania treść top-down */
.ai-chat__scan {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 2px;
  background: var(--acc); box-shadow: 0 0 18px 2px rgba(62, 214, 255, 0.75);
  opacity: 0; pointer-events: none;
}
.ai-chat__panel { position: relative; z-index: 1; clip-path: inset(0 0 100% 0); }
.ai-chat__answer.on .ai-chat__panel { animation: aiReveal 1s 0.18s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.ai-chat__answer.on .ai-chat__scan { animation: aiScan 1s 0.18s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes aiReveal { to { clip-path: inset(0 0 0% 0); } }
@keyframes aiScan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.ai-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ai-chat__brand {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.02em;
  color: var(--ink);
}
.ai-chat__verified {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--acc);
  border: 1px solid rgba(62, 214, 255, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.ai-chat__live {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--acc); margin-right: 7px; vertical-align: middle;
  box-shadow: 0 0 8px rgba(62, 214, 255, 0.8);
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.ai-chat__body {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(233, 231, 224, 0.6);
}
.ai-chat__contact {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2.6vw, 28px);
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.ai-chat__cta {
  flex-basis: 100%;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--acc);
}
.ai-chat__phone {
  position: relative;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 0.25s, text-shadow 0.25s;
}
.ai-chat__phone:hover { color: var(--acc); text-shadow: 0 0 26px rgba(62, 214, 255, 0.4); }
.ai-chat__mail {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  transition: color 0.25s;
}
.ai-chat__mail:hover { color: var(--acc); }
/* laserowe podkreślenie „wjeżdżające" pod kontaktem na hover */
.ai-chat__phone::after, .ai-chat__mail::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  height: 2px; width: 0;
  background: var(--acc);
  box-shadow: 0 0 8px rgba(62, 214, 255, 0.75);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.ai-chat__phone:hover::after, .ai-chat__mail:hover::after { width: 100%; }
.offer__more-wrap { margin-top: clamp(16px, 3vh, 28px); }
.offer__more {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.25s, border-color 0.25s;
}
.offer__more:hover { color: var(--acc); border-color: var(--acc); }
.offer__address {
  margin-top: clamp(18px, 3.4vh, 34px);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--ink-dim);
}

/* ---------- prolog 2026 ---------- */
.prolog {
  position: fixed;
  left: 50%;
  top: 78%;
  transform: translate(-50%, -50%);
  z-index: 45;
  width: min(700px, 84vw);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.prolog-tag {
  position: fixed;
  left: 50%;
  top: 17%;
  transform: translate(-50%, -50%);
  z-index: 45;
  font-family: var(--mono);
  font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s;
}
.prolog-tag.on { opacity: 1; }
.ai { color: var(--ai); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.prolog__title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(30px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.prolog__title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition: opacity 0.7s, transform 0.7s, filter 0.7s;
}
.prolog__title.on span { opacity: 1; transform: translateY(0); filter: blur(0); }
.prolog__title.on span:nth-child(1) { transition-delay: 0s; }
.prolog__title.on span:nth-child(2) { transition-delay: 0.12s; }
.prolog__title.on span:nth-child(3) { transition-delay: 0.24s; }
.prolog__title.on span:nth-child(4) { transition-delay: 0.4s; }
.prolog__title.on span:nth-child(5) { transition-delay: 0.56s; }
.prolog__title .acc-em { font-style: italic; color: var(--acc); font-weight: 500; }
/* PROTOTYP ?html: ostre motto HTML na tle planety z cząstek */
.prolog-html {
  position: fixed;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  z-index: 45;
  width: min(960px, 92vw);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.prolog-html .prolog__title { font-size: clamp(36px, 6.4vw, 86px); }
.prolog-html .ln { display: block; }
/* miękkie zacisznienie globu pod napisem — czystsza separacja typografii */
.prolog-html::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 135%; height: 220%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 50% at center, rgba(5, 6, 10, 0.74), rgba(5, 6, 10, 0.42) 48%, rgba(5, 6, 10, 0) 76%);
}
/* warianty akcentowanego słowa — przełączane ?html=serif|cyan|frame */
.prolog-html .acc-em { color: var(--acc); font-style: normal; font-weight: 700; }
body.acc-serif .prolog-html .acc-em {
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400;
}
body.acc-frame .prolog-html .acc-em { position: relative; }
body.acc-frame .prolog-html .acc-em::before,
body.acc-frame .prolog-html .acc-em::after {
  content: ''; position: absolute; width: 0.34em; height: 0.48em;
  border: 2px solid var(--acc); pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(62, 214, 255, 0.5));
}
body.acc-frame .prolog-html .acc-em::before { top: -0.14em; left: -0.16em; border-right: 0; border-bottom: 0; }
body.acc-frame .prolog-html .acc-em::after { bottom: -0.1em; right: -0.16em; border-left: 0; border-top: 0; }
/* odręczna kreska (acc-line) — domyślnie ukryta, pokazywana tylko w wariancie 'draw' */
.prolog-html .acc-line { display: none; }
/* wariant 'straight' (domyślny): prosta, równa cyjanowa kreska pod słowem — spójna z tech-HUD głównej */
body.acc-straight .prolog-html .acc-em { position: relative; color: var(--acc); font-style: normal; font-weight: 700; }
body.acc-straight .prolog-html .acc-em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 4px;
  background: var(--acc); border-radius: 2px;
  filter: drop-shadow(0 0 5px rgba(62, 214, 255, 0.5));
  pointer-events: none;
}
/* wariant 'draw' (domyślny): odręczna cyjanowa kreska pod słowem — spójna z hero oferty */
body.acc-draw .prolog-html .acc-em { position: relative; color: var(--acc); font-style: normal; font-weight: 700; }
body.acc-draw .prolog-html .acc-line {
  display: block; position: absolute;
  left: -3%; width: 106%; bottom: -0.2em; height: 0.34em;
  overflow: visible;
}
body.acc-draw .prolog-html .acc-line path {
  fill: none; stroke: var(--acc); stroke-width: 4; stroke-linecap: round;
  vector-effect: non-scaling-stroke; /* stała grubość niezależnie od szerokości słowa (krótkie 'AI.' nie zniekształca kreski) */
  filter: drop-shadow(0 0 5px rgba(62, 214, 255, 0.45));
}
/* wariant 'panel': kanciasty panel HUD (notch + cienka ramka + ledwo widoczne tło) */
body.acc-panel .prolog-html .acc-em {
  display: inline-block;
  color: var(--acc);
  padding: 0 0.26em;
  background: rgba(62, 214, 255, 0.10);
  border: 1.5px solid rgba(62, 214, 255, 0.5);
  clip-path: var(--notch);
  filter: drop-shadow(0 0 6px rgba(62, 214, 255, 0.22));
}
.prolog__caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.15em;
  background: var(--ai);
  box-shadow: 0 0 14px rgba(62, 214, 255, 0.7);
  animation: caretBlink 0.85s steps(1) infinite;
}
@keyframes caretBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }
/* wskaźnik sekwencji narracji: trzy kreski, aktywna świeci cyjanem */
.seq-ticks {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 14px auto 0;
}
.seq-ticks i {
  display: block;
  width: 28px;
  height: 2px;
  background: rgba(233, 231, 224, 0.16);
  transition: background 0.7s, box-shadow 0.7s;
}
.seq-ticks i.on {
  background: var(--acc);
  box-shadow: 0 0 12px rgba(62, 214, 255, 0.55);
}

.rewind {
  position: fixed;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  z-index: 44;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(90px, 16vw, 230px);
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(62, 214, 255, 0.55);
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 60px rgba(62, 214, 255, 0.14);
}

/* ---------- sygnatura ---------- */
.credit {
  position: fixed;
  right: clamp(18px, 3vw, 40px);
  bottom: 22px;
  z-index: 50;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--ink-dim);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s, visibility 0.8s;
  pointer-events: none;
}
.credit.show { opacity: 1; visibility: visible; }

/* ---------- przełącznik dźwięku ---------- */
.sound-toggle {
  position: fixed;
  left: clamp(18px, 3vw, 40px);
  bottom: 22px;
  z-index: 60;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.3s, color 0.3s;
}
.sound-toggle:hover { opacity: 1; }
.sound-toggle[aria-pressed="true"] { color: var(--acc); opacity: 0.9; }

/* ---------- glitch ---------- */
.glitch-layer {
  position: fixed;
  inset: 0;
  z-index: 58;
  pointer-events: none;
  opacity: 0;
  background:
    repeating-linear-gradient(0deg, rgba(62, 214, 255, 0.05) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(90deg, rgba(120, 200, 255, 0.03) 0 3px, transparent 3px 9px);
  mix-blend-mode: screen;
}
.phrase .glitching { animation: textGlitch 0.32s steps(2) infinite; }
@keyframes textGlitch {
  0% { transform: translate(0, 0); text-shadow: 2px 0 rgba(62, 214, 255, 0.55), -2px 0 rgba(255, 110, 190, 0.35); }
  50% { transform: translate(-2px, 1px); text-shadow: -3px 0 rgba(62, 214, 255, 0.55), 3px 0 rgba(255, 110, 190, 0.35); }
  100% { transform: translate(1px, -1px); text-shadow: 2px 0 rgba(62, 214, 255, 0.55), -2px 0 rgba(255, 110, 190, 0.35); }
}

/* ---------- treść dla robotów/czytników ---------- */
.sr-content {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- responsywność ---------- */
@media (max-width: 860px) {
  .timeline-menu { display: none; }
  /* pasek górny: bez strzałek (nawigacja scrollem), etykieta przycinana — OFERTA zawsze widoczna */
  #prevEra, #nextEra { display: none; }
  .era-nav { gap: 8px; }
  .era-nav__label {
    min-width: 0;
    font-size: 10px;
    max-width: 44vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hud-top { padding: 16px 18px; gap: 12px; }
  .era-card {
    right: 50%;
    transform: translate(50%, 0);
    top: auto;
    bottom: 130px;
    width: min(380px, 92vw);
    padding: 18px 20px;
  }
  .era-card h2 { font-size: 26px; }
  .phrase {
    position: fixed;
    left: 50%;
    bottom: 62px;
    transform: translateX(-50%);
    width: 92vw;
    max-width: none;
    font-size: 13px;
    line-height: 1.45;
    min-height: 0;
  }
  .credit { display: none; }
  .sound-toggle { left: 14px; bottom: 14px; font-size: 9px; }
  .offer { transform: translate(-50%, -50%); max-height: 78vh; overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint span::after { animation: none; }
  .phrase .glitching { animation: none; }
  .ai-chat__panel { clip-path: none; }
  .ai-chat__scan { display: none; }
  .ai-chat__live { animation: none; }
  .scroll-hint::after { animation: none; opacity: 0; }
  .cta-go::after { animation: none; opacity: 0; }
}
