/* =========================================================
   latolab - style
   ========================================================= */
:root {
  /* Ion palette - dwie cząstki z logo */
  --ion-m: #C13BF0;   /* Ion Orchid: fiolet przesunięty w magentę */
  --ion-m-hi: #E27BFF;
  --ion-c: #1FB4F0;   /* Ion Azure: błękit przesunięty w cyjan */
  --ion-c-hi: #7FE0FF;
  --ion-v: #7B6CFF;   /* przejście między nimi */
  --ion-grad: linear-gradient(100deg, var(--ion-m) 0%, var(--ion-v) 50%, var(--ion-c) 100%);

  --paper: #F1F0F5;
  --paper-2: #E6E4EE;
  --white: #FFFFFF;
  --ink: #0D0B13;
  --ink-2: #17141F;
  --ink-3: #252130;
  --muted: #625D70;
  --line: rgba(13, 11, 19, .12);
  --accent: var(--ion-m);
  --accent-2: var(--ion-m-hi);
  --mint: var(--ion-c);
  --violet: var(--ion-v);

  --gutter: clamp(16px, 5vw, 72px);
  --radius: clamp(14px, 1.6vw, 24px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --f-sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-loading { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.display {
  font-weight: 400;
  font-size: clamp(44px, 8.4vw, 136px);
  line-height: .98;
  letter-spacing: -.035em;
}

/* split-text masks */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
  white-space: nowrap;
}
.pill--dark { background: var(--ink-3); color: var(--paper); }
.pill--dark:hover { background: var(--accent); }
.pill--light { background: var(--paper-2); color: var(--ink); }
.pill--light:hover { background: var(--white); }
.pill--white { background: var(--white); color: var(--ink); box-shadow: 0 6px 24px rgba(11,13,18,.06); }
.pill--white:hover { background: var(--ink); color: var(--paper); }
.pill--lg { height: 60px; padding: 0 30px; font-size: 15px; }
.pill--grad { background: var(--ion-grad); background-size: 160% 100%; background-position: 0 0; color: #fff; transition: background-position .8s var(--ease), transform .4s var(--ease); }
.pill--grad:hover { background-position: 100% 0; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; transition: transform .4s var(--ease); }
.pill:hover .dot { transform: scale(1.8); }

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
}
.pre-flask { width: clamp(70px, 9vw, 110px); color: var(--paper); }
.pre-flask svg { width: 100%; height: auto; overflow: visible; }
.pre-outline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) .1s forwards; }
.pre-fill { fill: var(--accent-2); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pre-meta {
  position: absolute; top: 28px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; color: rgba(238,240,245,.5);
}
.pre-count {
  position: absolute; left: var(--gutter); bottom: 10px;
  font-size: clamp(64px, 12vw, 180px); font-weight: 300; line-height: 1; letter-spacing: -.04em;
}

/* =========================================================
   HEADER + MENU
   ========================================================= */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--gutter);
  pointer-events: none;
}
.hdr > * { pointer-events: auto; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); transition: color .5s var(--ease);
}
.hdr.is-dark .logo { color: var(--paper); }
.menu[hidden] { display: none; }
/* ---------- LOGO: wordmark + dwie cząstki ---------- */
.wm {
  position: relative; display: inline-block;
  font-family: var(--f-sans); font-weight: 600; letter-spacing: -.05em; line-height: 1;
  font-size: 27px; padding-right: .6em;
}
.wm-dots { position: absolute; right: 0; top: 0; width: .6em; height: .7em; }
.wm-dots i, .wm-mark i { position: absolute; border-radius: 50%; display: block; }
.d-m {
  background: radial-gradient(circle at 32% 30%, var(--ion-m-hi) 0%, var(--ion-m) 55%, #8E1FC4 100%);
}
.d-c {
  background: radial-gradient(circle at 32% 30%, var(--ion-c-hi) 0%, var(--ion-c) 55%, #0C78B8 100%);
}
.wm-dots .d-m { width: .3em; height: .3em; left: .05em; top: .17em; animation: bob 5s ease-in-out infinite; }
.wm-dots .d-c { width: .19em; height: .19em; left: .37em; top: -.1em; animation: bob 5s ease-in-out -2.4s infinite; }
@keyframes bob { 0%,100% { transform: translate(0,0); } 50% { transform: translate(.02em,-.05em); } }
.wm-mark { position: relative; display: inline-block; width: 1em; height: 1em; }
.wm-mark .d-m { width: .58em; height: .58em; left: 0; bottom: 0; }
.wm-mark .d-c { width: .36em; height: .36em; right: 0; top: 0; }
.hdr-actions { position: relative; display: flex; gap: 10px; align-items: center; }
.menu-btn { min-width: 112px; justify-content: space-between; }
.dots { display: inline-flex; gap: 3px; }
.dots b { width: 5px; height: 5px; border-radius: 50%; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn[aria-expanded="true"] .dots b:first-child { transform: translateX(4px); }
.menu-btn[aria-expanded="true"] .dots b:last-child { transform: translateX(-4px); }

.menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 300px;
  display: grid; gap: 10px;
}
.menu-list, .menu-lab {
  background: var(--white); border-radius: 16px; padding: 18px 22px; margin: 0; list-style: none;
  box-shadow: 0 20px 50px rgba(11,13,18,.12);
}
.menu-list li a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 22px; font-weight: 400; letter-spacing: -.02em; padding: 7px 0;
  transition: color .3s, padding .4s var(--ease);
}
.menu-list li a:hover { color: var(--accent); padding-left: 6px; }
.menu-lab { background: var(--ink); color: var(--paper); display: flex; align-items: center; gap: 12px; font-size: 20px; }
.menu-lab .wm-mark { font-size: 20px; }
.menu-sub { font: 400 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 0 4px; }
.menu-list li a.sm { font-size: 16px; padding: 4px 0; }
.menu-lab .ico { margin-left: auto; width: 20px; }
.menu-lab:hover { background: var(--accent); }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 24px var(--gutter) 0; min-height: 100vh; display: flex; flex-direction: column; }
.hero-head { display: flex; padding: 6px 0 clamp(20px, 3vw, 36px); }
.hero-lead {
  max-width: min(560px, 100% - 320px); margin-left: clamp(0px, 20vw, 340px);
  font-size: clamp(22px, 2.15vw, 32px); line-height: 1.12; letter-spacing: -.02em;
  min-height: 2.4em;
}
.stage {
  position: relative; flex: 1; min-height: 420px;
  background: radial-gradient(120% 90% at 50% 40%, #1C1726 0%, var(--ink) 65%);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transform-origin: 50% 100%;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud { position: absolute; display: flex; gap: 10px; color: rgba(238,240,245,.9); pointer-events: none; }
.hud-dim { color: rgba(238,240,245,.45); }
.hud--tl { top: 22px; left: 24px; flex-direction: column; gap: 4px; }
.hud--tr { top: 22px; right: 24px; flex-direction: column; gap: 4px; text-align: right; align-items: flex-end; }
.hud-state { font-size: 15px; }
.hud--bl { bottom: 22px; left: 24px; font-size: 13px; }
.hud--br { bottom: 22px; right: 24px; align-items: center; gap: 14px; }
.hud-dots { display: inline-flex; gap: 6px; }
.hud-dots i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid rgba(238,240,245,.5); transition: background .4s; }
.hud-dots i.on { background: var(--mint); border-color: var(--mint); }

.markers, .reel-markers, .cta-markers {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 22px; font-size: 20px; font-weight: 300; line-height: 1;
}
.markers .mono { font-size: 12px; }

/* =========================================================
   STATEMENT
   ========================================================= */
.statement { position: relative; padding: clamp(120px, 16vw, 240px) var(--gutter) clamp(80px, 10vw, 160px); overflow: hidden; }
.snake { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.snake path { fill: none; stroke: var(--accent); stroke-width: 30; stroke-linecap: round; }
.statement .display { position: relative; z-index: 1; margin-left: clamp(0px, 14vw, 220px); }
.statement-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: start;
  margin-top: clamp(56px, 7vw, 110px);
}
.statement-copy { padding-top: 10px; display: grid; gap: 40px; justify-items: start; max-width: 560px; }
.statement-copy p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; }

.specimen {
  margin: 0; position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #EAD9F7 0%, #CFE6F7 100%);
  border-radius: var(--radius); overflow: hidden;
}
.lattice { position: absolute; inset: 0; width: 100%; height: 100%; }
.lattice line { stroke: rgba(193,59,240,.45); stroke-width: 1.2; }
.lattice circle { fill: var(--accent); }
.specimen figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 16px;
  display: flex; justify-content: space-between; color: var(--ink);
}

/* =========================================================
   REEL
   ========================================================= */
.reel { position: relative; }
.reel-pin { height: 100vh; padding: 0 var(--gutter); display: flex; flex-direction: column; justify-content: center; position: relative; }
.reel-card {
  position: relative; height: 70vh; width: 44%;
  background: radial-gradient(110% 120% at 30% 20%, #2A1A3C 0%, var(--ink) 70%);
  border-radius: var(--radius); overflow: hidden;
}
.reel-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel-label { position: absolute; left: 22px; right: 22px; top: 18px; display: flex; justify-content: space-between; color: rgba(238,240,245,.6); }
.reel-words {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: center; align-items: center; gap: clamp(16px, 3vw, 48px);
  pointer-events: none; color: #fff;
}
.rw { font-size: clamp(56px, 9vw, 150px); font-weight: 300; letter-spacing: -.03em; line-height: 1; mix-blend-mode: difference; }
.reel-play {
  pointer-events: auto; width: clamp(88px, 9vw, 136px); height: clamp(56px, 5.6vw, 84px);
  border-radius: 999px; background: #fff; color: var(--ink); display: grid; place-items: center;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.reel-play svg { width: 26px; }
.reel-play:hover, .reel-play.is-on { background: var(--mint); }

/* =========================================================
   STATES (pinned, dark)
   ========================================================= */
.states { background: var(--ink); color: var(--paper); height: 420vh; position: relative; }
.states-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.states-pin canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.states-ui {
  position: absolute; inset: 0; padding: 110px var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto;
  pointer-events: none;
}
.states-top { grid-column: 1 / -1; display: flex; justify-content: space-between; color: rgba(238,240,245,.55); }
.states-count b { color: var(--paper); font-weight: 500; }
.states-copy { position: relative; align-self: center; width: min(460px, 100%); height: 360px; }
.state-item { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.state-item h3 { font-size: clamp(36px, 4.4vw, 68px); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.state-item p:last-child { color: rgba(238,240,245,.7); font-size: 17px; max-width: 400px; }
.state-kicker { color: var(--mint); }
.state-ico { width: 52px; height: 52px; color: var(--paper); }
.state-item:not(.is-active) { visibility: hidden; }
.states-nav {
  align-self: center; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px;
  color: rgba(238,240,245,.4);
}
.states-nav li { display: flex; align-items: center; gap: 12px; transition: color .4s; }
.states-nav i { width: 28px; height: 1px; background: currentColor; transition: width .5s var(--ease), background .4s; }
.states-nav li.is-active { color: var(--paper); }
.states-nav li.is-active i { width: 56px; background: var(--mint); }
.states-gauge { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: rgba(238,240,245,.8); }
.sg-bar { flex: 1; max-width: 360px; height: 1px; background: rgba(238,240,245,.2); margin-left: 16px; position: relative; }
.sg-bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: linear-gradient(90deg, var(--paper), var(--accent-2), var(--mint), var(--violet)); }

/* =========================================================
   SECTIONS - shared
   ========================================================= */
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.sec-note { max-width: 320px; line-height: 1.6; }

/* ---------- services ---------- */
.services { padding: clamp(110px, 12vw, 200px) var(--gutter) clamp(60px, 8vw, 120px); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.svc {
  position: relative; padding: 34px 30px 80px; min-height: 340px;
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  transition: background .5s var(--ease), color .5s var(--ease);
  overflow: hidden;
}
.svc:nth-child(3n) { border-right: 0; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 34px; }
.svc-top .mono { color: var(--muted); transition: color .5s; }
.svc-ico { width: 56px; height: 56px; color: var(--ink); transition: color .5s; }
.svc h3 { font-size: clamp(24px, 2vw, 30px); font-weight: 400; letter-spacing: -.02em; }
.svc p { color: var(--muted); max-width: 340px; transition: color .5s; }
.svc-arrow { position: absolute; left: 30px; bottom: 30px; width: 24px; opacity: 0; transform: translateX(-12px); transition: all .5s var(--ease); }
.svc:hover { background: var(--ink); color: var(--paper); }
.svc:hover .svc-ico { color: var(--mint); }
.svc:hover p, .svc:hover .svc-top .mono { color: rgba(238,240,245,.65); }
.svc:hover .svc-arrow { opacity: 1; transform: none; }

/* icon micro-animations (also used in brand.html) */
.liq { transition: transform .6s var(--ease); }
.bub { opacity: .9; }
:is(.svc, .step, .icon-tile, .state-item):hover .liq { animation: slosh 1.6s ease-in-out infinite; }
:is(.svc, .step, .icon-tile):hover .bub { animation: rise 1.4s ease-in infinite; }
:is(.svc, .step, .icon-tile):hover .bub.b2 { animation-delay: .5s; }
:is(.svc, .step, .icon-tile):hover .core { animation: pulse 1.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes slosh { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-1.5px) translateX(.6px) } }
@keyframes rise { 0% { transform: translateY(0); opacity: 1 } 100% { transform: translateY(-14px); opacity: 0 } }
@keyframes pulse { 50% { transform: scale(1.6) } }

/* ---------- work ---------- */
.work { padding: clamp(80px, 10vw, 160px) var(--gutter); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 28px); perspective: 1400px; }
.case { display: block; }
.case-cover {
  position: relative; aspect-ratio: 16 / 10.5; border-radius: var(--radius); overflow: hidden;
  transform-origin: 50% 0%; will-change: transform;
}
.case-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.case:hover .case-cover svg { transform: scale(1.05); }
.case-chip {
  position: absolute; left: 18px; top: 16px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(8px);
}
.case-tags { margin-top: 20px; }
.case h3 {
  display: flex; align-items: center; margin-top: 8px;
  font-size: clamp(30px, 3vw, 46px); font-weight: 400; letter-spacing: -.03em; line-height: 1.1;
}
.case-arrow {
  display: inline-block; width: 0; overflow: hidden; flex: none;
  transition: width .6s var(--ease), margin .6s var(--ease);
}
.case-arrow svg { width: clamp(26px, 2.4vw, 36px); }
.case:hover .case-arrow { width: clamp(42px, 3.6vw, 60px); }

.cv-lattice { background: linear-gradient(150deg, #2A1640 0%, #0D0B13 100%); }
.cv-flow    { background: linear-gradient(160deg, #0B2533 0%, #0D0B13 100%); }
.cv-gas     { background: linear-gradient(170deg, #EFE3F8 0%, #D6E9F6 100%); }
.cv-plasma  { background: radial-gradient(90% 90% at 70% 40%, #3A1A55 0%, #0D0B13 70%); }
.work-more { display: flex; justify-content: center; margin-top: clamp(60px, 7vw, 100px); }

/* ---------- process ---------- */
.process { background: var(--paper-2); }
.process-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 100px 0 50px; }
.process-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--gutter); margin-bottom: clamp(32px, 4vw, 60px); flex-wrap: wrap; }
.process-progress { display: flex; align-items: center; gap: 14px; }
.pp-bar { width: 160px; height: 1px; background: var(--line); position: relative; }
.pp-bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--accent); }
.process-track { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.step {
  width: clamp(280px, 30vw, 420px); min-height: clamp(320px, 42vh, 420px);
  background: var(--paper); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 14px; transition: background .5s var(--ease), color .5s var(--ease);
}
.step:hover { background: var(--ink); color: var(--paper); }
.step:hover p { color: rgba(238,240,245,.65); }
.step-n { color: var(--accent); }
.step:hover .step-n { color: var(--mint); }
.step-ico { width: 64px; height: 64px; margin: auto 0 18px; }
.step h3 { font-size: clamp(28px, 2.4vw, 38px); font-weight: 400; letter-spacing: -.03em; }
.step p { color: var(--muted); transition: color .5s; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(80px, 10vw, 150px) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 12px; padding-right: 20px; }
.stat-num { font-size: clamp(48px, 6vw, 96px); font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.stat .mono { color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative; min-height: 100vh; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-inner { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 28px; padding: 120px var(--gutter) 60px; pointer-events: none; }
.cta-inner a { pointer-events: auto; }
.cta-eyebrow { color: rgba(238,240,245,.7); }
.cta-title { font-size: clamp(56px, 10vw, 170px); font-weight: 400; line-height: .98; letter-spacing: -.04em; }
.cta-title .ul { position: relative; display: inline-block; }
.cta-title .ul::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: max(3px, .04em);
  background: currentColor; transform: scaleX(var(--ul, 0)); transform-origin: left;
}
.cta-markers { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px; color: rgba(238,240,245,.6); }

/* ---------- footer ---------- */
.ftr { background: var(--white); padding: clamp(80px, 9vw, 140px) var(--gutter) 0; overflow: hidden; }
.ftr-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; }
.ftr-col { display: flex; flex-direction: column; gap: 4px; font-size: 17px; }
.ftr-col a:hover { color: var(--accent); }
.ftr-gap { margin-top: 40px; }
.ftr-col p + p { margin-top: 24px; }
.ftr-news h3 { font-size: clamp(30px, 3vw, 46px); font-weight: 400; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 30px; }
.news { position: relative; display: flex; max-width: 480px; background: var(--paper); border-radius: 14px; }
.news input { flex: 1; border: 0; background: transparent; font: inherit; padding: 20px 22px; outline: none; color: var(--ink); }
.news button { width: 60px; display: grid; place-items: center; }
.news button svg { width: 22px; }
.news-ok { position: absolute; left: 0; top: calc(100% + 12px); color: var(--accent); opacity: 0; transition: opacity .4s; }
.news.sent .news-ok { opacity: 1; }
.ftr-bottom { display: flex; justify-content: space-between; align-items: center; padding: clamp(60px, 7vw, 100px) 0 20px; color: var(--muted); }
.to-top { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background .4s; }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 22px; }
.ftr-word { line-height: .78; margin: 0 -.02em -0.06em; overflow: hidden; }
.ftr-word > span {
  display: block; font-size: 30vw; font-weight: 500; letter-spacing: -.07em; line-height: .8;
  color: var(--ink); transform: translateY(var(--fw, 60%));
}

/* ---------- cursor follower ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 0; height: 0;
}
.cursor-label {
  position: absolute; left: 14px; top: 14px; white-space: nowrap;
  background: var(--white); color: var(--ink); padding: 7px 12px; border-radius: 999px;
  opacity: 0; transform: scale(.6); transform-origin: 0 0; transition: opacity .3s, transform .4s var(--ease);
}
.cursor.is-on .cursor-label { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .statement-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc:nth-child(3n) { border-right: 1px solid var(--line); }
  .svc:nth-child(2n) { border-right: 0; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-news { grid-column: 1 / -1; }
  .states-nav { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hdr { padding: 16px var(--gutter); }
  .hdr .pill--dark { display: none; }
  .logo-word { font-size: 22px; }
  .hero-lead { margin-left: 0; max-width: none; padding-top: 56px; }
  .hud--tl .hud-dim, .hud--br .hud-dim { display: none; }
  .reel-card { width: 100% !important; height: 56vh; }
  .svc-grid, .work-grid, .ftr-grid { grid-template-columns: 1fr; }
  .svc { border-right: 0 !important; min-height: 0; }
  .states-ui { padding-top: 90px; grid-template-columns: 1fr; }
  .states-copy { align-self: end; height: 320px; }
  .state-item { justify-content: flex-end; }
  .menu { width: calc(100vw - 2 * var(--gutter)); }
  .process-pin { height: auto; padding: 90px 0 60px; }
  .process-track { flex-direction: column; width: auto; }
  .step { width: 100%; min-height: 0; }
  .step-ico { margin: 10px 0; }
  .process-progress { display: none; }
  .ftr-bottom { flex-wrap: wrap; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   v2 - preloader z wordmarkiem
   ========================================================= */
.pre-logo { color: var(--paper); text-align: center; }
.pre-logo .wm { font-size: clamp(56px, 11vw, 168px); }
.pre-logo .wm-dots i { transform: scale(0); }
.pre-bar { width: min(340px, 60vw); height: 1px; margin: 34px auto 0; background: rgba(241,240,245,.15); position: relative; overflow: hidden; }
.pre-bar i { position: absolute; inset: 0; background: var(--ion-grad); transform-origin: left; transform: scaleX(0); }
.wm-clip { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .02em .12em; margin: -.06em -.02em -.12em; }
.wm-clip > span { display: inline-block; }

/* snake z gradientem */
.snake path { stroke: url(#snakeGrad); }

/* =========================================================
   PRODUKTY (strona główna)
   ========================================================= */
.products { padding: clamp(110px, 12vw, 200px) var(--gutter) clamp(60px, 8vw, 120px); position: relative; }
.prod-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.prod-row {
  position: relative; display: grid; grid-template-columns: 90px 1fr auto 60px; align-items: center; gap: 24px;
  padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line); overflow: hidden;
}
.prod-row::before {
  content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease); z-index: 0;
}
.prod-row > * { position: relative; z-index: 1; transition: color .5s var(--ease), transform .6s var(--ease); }
.prod-n { color: var(--muted); }
.prod-name { font-size: clamp(30px, 4.4vw, 68px); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.prod-kicker { color: var(--muted); text-align: right; }
.prod-go { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); justify-self: end; }
.prod-go svg { width: 22px; }
.prod-row:hover::before { transform: scaleY(1); }
.prod-row:hover > * { color: var(--paper); }
.prod-row:hover .prod-name { transform: translateX(18px); }
.prod-row:hover .prod-go { background: var(--ion-grad); color: #fff; transform: rotate(-45deg); }
.prod-preview {
  position: fixed; left: 0; top: 0; width: min(420px, 32vw); z-index: 40; pointer-events: none;
  opacity: 0; transform: scale(.85); transition: opacity .35s, transform .5s var(--ease);
  filter: drop-shadow(0 30px 60px rgba(13,11,19,.35));
}
.prod-preview.is-on { opacity: 1; transform: none; }
.prod-preview .vis-wrap { position: absolute; inset: 0 auto auto 0; opacity: 0; transition: opacity .3s; }
.prod-preview .vis-wrap.is-on { position: relative; opacity: 1; }
@media (hover: none), (max-width: 760px) { .prod-preview { display: none; } }
@media (max-width: 760px) {
  .prod-row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .prod-n, .prod-kicker { grid-column: 1; text-align: left; }
  .prod-name { grid-column: 1; grid-row: 2; }
  .prod-go { grid-column: 2; grid-row: 1 / span 3; }
}

/* =========================================================
   MODAL - formularze
   ========================================================= */
html.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(13,11,19,.6); backdrop-filter: blur(10px); }
.modal-box {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--white); border-radius: 28px; padding: clamp(24px, 3.4vw, 48px);
}
.modal-x { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; transition: background .3s, transform .5s var(--ease); z-index: 2; }
.modal-x:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.modal-x svg { width: 20px; }
.modal-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.modal[data-mode="order"] .modal-grid { grid-template-columns: 1.5fr 1fr; }
.modal:not([data-mode="order"]) .m-rush { display: none; }
.modal:not([data-mode="order"]) .modal-box { width: min(640px, 100%); }
.mform { position: relative; display: grid; gap: 16px; align-content: start; }
.m-eyebrow { color: var(--ion-m); }
.m-title { font-size: clamp(34px, 4vw, 54px); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.m-note { color: var(--muted); max-width: 460px; margin-bottom: 8px; }
.modal[data-mode="order"] .m-note { color: var(--ink); padding-left: 14px; border-left: 2px solid var(--ion-c); }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > span { font: 400 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field em { font-style: normal; color: var(--ion-m); margin-left: 4px; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid transparent; border-radius: 14px;
  padding: 15px 16px; outline: none; resize: vertical; transition: border-color .3s, background .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--ion-m); background: var(--white); }
.m-err { color: #D2265B; min-height: 1em; }
.m-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.m-legal { font-size: 13px; color: var(--muted); max-width: 260px; }
.m-ok { position: absolute; inset: 0; background: var(--white); display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; }
.m-ok[hidden] { display: none; }
.m-ok h3 { font-size: clamp(30px, 3vw, 42px); font-weight: 400; letter-spacing: -.03em; }
.m-ok p { color: var(--muted); }
.m-ok-dots { position: relative; width: 56px; height: 56px; margin-bottom: 10px; }
.m-ok-dots i { position: absolute; border-radius: 50%; }
.m-ok-dots i:first-child { width: 34px; height: 34px; left: 0; bottom: 0; background: radial-gradient(circle at 32% 30%, var(--ion-m-hi), var(--ion-m) 60%); animation: bob 3s ease-in-out infinite; }
.m-ok-dots i:last-child { width: 20px; height: 20px; right: 0; top: 0; background: radial-gradient(circle at 32% 30%, var(--ion-c-hi), var(--ion-c) 60%); animation: bob 3s ease-in-out -1.4s infinite; }
.m-rush {
  position: relative; overflow: hidden; border-radius: 22px; padding: 30px; color: #fff;
  background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--ion-m) 70%, transparent), transparent 70%),
              radial-gradient(80% 70% at 0% 100%, color-mix(in srgb, var(--ion-c) 65%, transparent), transparent 70%), var(--ink);
  display: flex; flex-direction: column; gap: 10px; min-height: 340px;
}
.m-rush .mono { color: rgba(255,255,255,.7); margin-top: auto; }
.m-rush h3 { font-size: 26px; font-weight: 400; letter-spacing: -.02em; }
.rush-phone { font-size: clamp(30px, 3.2vw, 42px); font-weight: 400; letter-spacing: -.03em; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.4); align-self: flex-start; transition: border-color .3s; }
.rush-phone:hover { border-color: #fff; }
.rush-note { font-size: 14px; color: rgba(255,255,255,.7); }
.rush-dots { position: absolute; top: 26px; right: 26px; width: 44px; height: 44px; }
.rush-dots i { position: absolute; border-radius: 50%; background: #fff; }
.rush-dots i:first-child { width: 26px; height: 26px; left: 0; bottom: 0; opacity: .9; }
.rush-dots i:last-child { width: 15px; height: 15px; right: 0; top: 0; opacity: .6; }
@media (max-width: 760px) {
  .modal[data-mode="order"] .modal-grid, .m-row { grid-template-columns: 1fr; }
  .m-rush { min-height: 0; }
  .m-rush .mono { margin-top: 0; }
}

/* v2 - poprawki */
.ftr-word > span { font-size: 30vw; }
.ftr-word .wm { font-size: inherit; letter-spacing: -.07em; line-height: .8; }
.ftr-word .wm-dots i { animation-duration: 7s; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; pointer-events: auto; }
.hdr .wm { font-size: 30px; }
.hdr.is-dark .logo { color: var(--paper); }

.ftr-word { padding-top: 6vw; }
.ftr-word > span { font-size: 28vw; }

/* v3 - slogan, menu DNA */
.hero-lead { font-weight: 400; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.06; letter-spacing: -.03em; max-width: min(640px, 100% - 320px); }
.hero-lead em { font-style: normal; }
.hero-lead em .wi {
  background: var(--ion-grad); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead em .w:last-child .wi { background-position: 100% 0; }
.menu-lab { align-items: center; }
.ml-t { display: grid; line-height: 1.15; }
.ml-t b { font-weight: 400; font-size: 20px; }
.ml-t small { font: 400 11px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: rgba(241,240,245,.6); margin-top: 4px; }
@media (max-width: 640px) { .hero-lead { max-width: none; font-size: 30px; } }

/* =========================================================
   v4 - logo w Unbounded, menzurka, wąż, reel, eksperymenty, CTA
   ========================================================= */
:root { --f-logo: 'Unbounded', 'Inter Tight', sans-serif; }
.wm { font-family: var(--f-logo); font-weight: 300; letter-spacing: -.035em; padding-right: .5em; }
.hdr .wm { font-size: 23px; }
.wm-dots { width: .5em; height: .6em; }
.wm-dots .d-m { width: .24em; height: .24em; left: .07em; top: .2em; }
.wm-dots .d-c { width: .15em; height: .15em; left: .31em; top: -.04em; }

/* preloader: menzurka napełnia się w trakcie ładowania */
.pre-flask { width: clamp(78px, 8vw, 112px); color: var(--paper); display: grid; justify-items: center; }
.pre-flask svg { width: 100%; height: auto; overflow: visible; }
.pre-outline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) .1s forwards; }
.pre-fill { transform-box: view-box; transform-origin: 50% 100%; transform: translateY(100%); }
.pre-bub { animation: preBub 1.6s ease-in infinite; transform-box: fill-box; }
.pre-bub.b2 { animation-delay: .5s; } .pre-bub.b3 { animation-delay: 1s; }
@keyframes preBub { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-34px); opacity: 0; } }
.pre-flask .pre-bar { width: min(220px, 50vw); margin-top: 30px; }
.fly-logo { position: fixed; z-index: 101; transform-origin: 0 0; color: var(--paper); pointer-events: none; line-height: 1; }
.fly-logo .wm { display: block; }
.fly-logo .wm-clip { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .02em .14em; margin: -.08em -.02em -.14em; }
.fly-logo .wm-clip > span { display: inline-block; }

/* wąż: wchodzi na ekran startowy, ale chowa się za treścią sekcji */
.statement { overflow: visible; overflow-x: clip; z-index: 2; }
.snake { z-index: 0; top: -300px; height: calc(100% + 300px); }
.statement .display, .statement-grid { position: relative; z-index: 1; }

/* reel: Byle do lata! */
.reel-words { gap: .26em; font-size: clamp(56px, 9vw, 150px); }
.rw { font-size: inherit; }
.rw-logo { font-family: var(--f-logo); font-weight: 300; letter-spacing: -.04em; }

/* wybrane eksperymenty = produkty */
.case-cover.vis-host { background: radial-gradient(120% 120% at 20% 0%, #2A1A3C 0%, var(--ink) 70%); padding: clamp(18px, 2.6vw, 40px); padding-top: clamp(52px, 5vw, 70px); }
.case-cover.vis-host .vis-wrap { height: 100%; transition: transform 1.2s var(--ease); }
.case-cover.vis-host .vis { height: 100%; aspect-ratio: auto; }
.case:hover .case-cover.vis-host .vis-wrap { transform: scale(1.03); }

/* CTA: bez podkreśleń, mniejszy tytuł, ruchome tło plazmy */
.cta-title { font-size: clamp(48px, 8.4vw, 144px); }
.cta-bg { position: absolute; inset: -10%; filter: blur(70px) saturate(1.2); opacity: .75; }
.blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.blob.b1 { width: 46vw; height: 46vw; left: 4%; top: 18%; background: radial-gradient(circle, var(--ion-m), transparent 68%); animation: blobA 16s ease-in-out infinite alternate; }
.blob.b2 { width: 40vw; height: 40vw; right: 6%; top: 8%; background: radial-gradient(circle, var(--ion-c), transparent 68%); animation: blobB 19s ease-in-out infinite alternate; }
.blob.b3 { width: 34vw; height: 34vw; left: 36%; bottom: 0; background: radial-gradient(circle, var(--ion-v), transparent 68%); animation: blobC 13s ease-in-out infinite alternate; }
@keyframes blobA { to { transform: translate(28vw, -12vh) scale(1.25); } }
@keyframes blobB { to { transform: translate(-30vw, 22vh) scale(.8); } }
@keyframes blobC { to { transform: translate(-14vw, -30vh) scale(1.35); } }
.cta canvas { z-index: 0; }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }
.fly-logo .wm-dots i { animation: none; }
.ftr-word > span { font-size: 19.5vw; }
.ftr-word .wm { letter-spacing: -.045em; }

/* =========================================================
   v5 - pasek nawigacji, reel 3D, CTA, warianty kroju logo
   ========================================================= */
.wm, .rw-logo { font-family: var(--f-logo); font-weight: var(--w-logo, 300); letter-spacing: var(--ls-logo, -.035em); }

/* biały pasek pojawia się po pierwszej sekcji */
.hdr { transition: padding .5s var(--ease); }
.hdr::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(255,255,255,.9); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(13,11,19,.06), 0 10px 30px -18px rgba(13,11,19,.25);
  opacity: 0; transform: translateY(-14px); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.hdr.is-bar { padding-top: 12px; padding-bottom: 12px; }
.hdr.is-bar::before { opacity: 1; transform: none; }
.hdr.is-bar .logo { color: var(--ink); }

/* reel: czarno-biała scena 3D */
.reel-card { background: #000; }
.reel-label { color: rgba(255,255,255,.55); z-index: 1; }
.reel-more {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 1;
  display: grid; justify-items: center; gap: 10px; color: rgba(255,255,255,.75);
  font: 200 14px var(--f-sans); letter-spacing: .14em; text-transform: lowercase;
}
.reel-more i { width: 1px; height: 34px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; }
.reel-more i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: hint 1.8s ease-in-out infinite; }

/* CTA: równe marginesy góra/dół */
.cta-inner { padding: clamp(110px, 14vh, 160px) var(--gutter); }

/* v6 - stopka ze sloganem */
.ftr-grid { grid-template-columns: 1.5fr .8fr 1.2fr; }
.ftr-claim { gap: 28px; }
.ftr-slogan { font-size: clamp(28px, 2.7vw, 42px); line-height: 1.08; letter-spacing: -.03em; max-width: 560px; }
.ftr-slogan span { background: var(--ion-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ftr-cta { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; font: 400 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.ftr-cta span { width: 18px; display: inline-flex; transition: transform .4s var(--ease); }
.ftr-cta:hover span { transform: translateX(6px); }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr; } }

/* =========================================================
   v7 - logo w Syne, reel na pełny ekran, wąż niżej
   ========================================================= */
:root { --f-logo: 'Syne', 'Inter Tight', sans-serif; --w-logo: 500; --ls-logo: -.03em; }
.hdr { transition: padding .5s var(--ease), transform .6s var(--ease), opacity .4s var(--ease); }
.hdr.is-hidden { transform: translateY(-120%); opacity: 0; pointer-events: none; }
.hdr.is-hidden > * { pointer-events: none; }
.reel-card { border-radius: 24px; }
.reel-more { bottom: clamp(22px, 4vh, 40px); }
.reel-more span { font-size: 15px; }
/* wąż przesunięty niżej - przechodzi przez ekran w trakcie scrolla */
.snake { top: -60px; height: calc(100% + 60px); }
.reel-card { flex-shrink: 0; }
.reel-markers.top { position: absolute; left: var(--gutter); right: var(--gutter); top: 24px; }
.reel-markers.bottom { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24px; }
/* okładki eksperymentów w kolorach produktu */
.case-cover.cover-paper { background: linear-gradient(160deg, #E9EEF7, #C9D5EA); }
.case-cover.cover-gala { background: radial-gradient(90% 90% at 50% 0%, #3A2A12, #070604 75%); }
.case-cover.cover-lime { background: linear-gradient(160deg, #1E3A22, #08110A); }
.case-cover.cover-sunset { background: linear-gradient(160deg, #FFD3BF, #FF8A6B); }
.case-cover.cover-mono { background: #1A1A1A; }
.case-cover.cover-neon { background: linear-gradient(160deg, #1B2470, #070A1F); }
.case-cover.cover-paper .case-chip, .case-cover.cover-sunset .case-chip { background: rgba(20,22,30,.12); color: #14161E; }

/* ---------- O nas ---------- */
.about { padding: clamp(100px, 12vw, 180px) var(--gutter) clamp(60px, 7vw, 100px); }
.about-eyebrow { color: var(--muted); margin-bottom: 24px; }
.about-lead { font-size: clamp(24px, 2.6vw, 40px); line-height: 1.15; letter-spacing: -.025em; max-width: 1000px; margin-top: clamp(28px, 3vw, 44px); }
.grad { background: var(--ion-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; margin-top: clamp(48px, 5vw, 80px); }
.about-card { position: relative; overflow: hidden; background: var(--white); border-radius: var(--radius); padding: clamp(26px, 3vw, 48px); display: grid; gap: 16px; align-content: start; justify-items: start; }
.about-card .mono { color: var(--muted); }
.about-card h3 { font-size: clamp(30px, 3vw, 46px); font-weight: 400; letter-spacing: -.03em; }
.about-card p:not(.mono) { font-size: 18px; line-height: 1.5; max-width: 640px; }
.about-card .pill { margin-top: 12px; }
.about-card--dark { background: var(--ink); color: var(--paper); }
.about-card--dark p:not(.mono) { color: rgba(241,240,245,.82); }
.about-dots { position: absolute; right: clamp(24px, 3vw, 48px); top: clamp(24px, 3vw, 44px); width: 64px; height: 64px; }
.about-dots i { position: absolute; border-radius: 50%; }
.about-dots .d-m { width: 34px; height: 34px; left: 0; bottom: 0; animation: bob 5s ease-in-out infinite; }
.about-dots .d-c { width: 20px; height: 20px; right: 0; top: 0; animation: bob 5s ease-in-out -2.4s infinite; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 640px) { html, body { overflow-x: clip; } }
