/* Bio 3D - wdrożone 29.09.2026 z _mockup-3d.html */
/* Paleta A2: pistacja z tła zdjęcia + błękit z koszuli, wzmocnione nasyceniem. */
:root {
  color-scheme: light;
  --bg: #EFF4EB;
  --bg-2: #FFFFFF;
  --ink: #192643;
  --muted: #445A50;
  --subtle: #6B8577;
  --line: rgba(25, 38, 67, 0.12);
  --line-strong: rgba(25, 38, 67, 0.22);
  --amber: #3E68CC;
  --amber-deep: #2C4C96;
  --panel: rgba(255, 255, 255, 0.72);
  --f-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Host Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(16px, 5vw, 80px);
}

* { box-sizing: border-box; }
/* atrybut hidden wygrywa z display ustawionym w komponentach (lista iKreacja, komunikaty formularza) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* Język: PL domyślnie, pozostałe ukryte */
html[data-lang="en"] .lang-pl, html[data-lang="fr"] .lang-pl { display: none !important; }
html:not([data-lang="en"]) .lang-en { display: none !important; }
html:not([data-lang="fr"]) .lang-fr { display: none !important; }

/* ===== Scena 3D ===== */
#stage {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block;
  opacity: 0; transition: opacity 1.6s var(--ease);
}
#stage.ready { opacity: 1; }
.scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(239,244,235,0.92) 0%, rgba(239,244,235,0.62) 38%, rgba(239,244,235,0) 68%),
    radial-gradient(120% 80% at 50% 120%, rgba(239,244,235,0.8), transparent 60%);
}
/* Okno pionowe z układem komputerowym (np. 1080x1350): kolumna tekstu zajmuje ~3/4 szerokości,
   więc tło pod tekstem musi sięgać dalej i mocniej przykrywać kostki */
@media (orientation: portrait) and (min-width: 901px) {
  .scrim {
    background:
      linear-gradient(90deg, rgba(239,244,235,0.95) 0%, rgba(239,244,235,0.88) 48%, rgba(239,244,235,0.6) 72%, rgba(239,244,235,0) 94%),
      radial-gradient(120% 80% at 50% 120%, rgba(239,244,235,0.8), transparent 60%);
  }
}
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* main i nav/formula muszą mieć RÓŻNY z-index (nie ten sam) - .nav i .formula
   mają position:fixed zadeklarowany niżej w arkuszu, co dla samej właściwości
   position wygrywa nad tą regułą (ta sama specyficzność, późniejsza reguła
   wygrywa), ale z-index:3 z tej reguły zostaje. main, jako PÓŹNIEJSZY element
   w DOM z tym samym z-index:3 co nav, renderował się NAD navem - stąd niedziałające
   kliknięcia w menu i PL/EN/FR. main niżej, nav/formula wyraźnie wyżej. */
main { position: relative; z-index: 3; }
.nav, .formula { position: relative; z-index: 10; }

/* ===== Nawigacja ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  display: flex; align-items: center; gap: 28px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(239,244,235,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__brand { font: 800 22px/1 var(--f-display); font-stretch: 75%; text-decoration: none; letter-spacing: -0.02em; }
.nav__brand b { color: var(--amber); font-weight: 800; }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__lang { display: flex; gap: 2px; font: 500 12px/1 var(--f-mono); }
.nav__lang button {
  background: none; border: 0; color: var(--subtle); cursor: pointer;
  font: inherit; padding: 6px 7px; border-radius: 4px; letter-spacing: 0.06em;
}
.nav__lang button.active { color: var(--bg); background: var(--amber); }
/* Przełącznik projektów iKreacja */
.hub { position: relative; }
.hub__toggle {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: none; border: 1px solid var(--line); color: var(--ink);
  font: 600 14px/1 var(--f-body); padding: 8px 12px; border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}
.hub__toggle:hover, .hub__toggle[aria-expanded="true"] { border-color: var(--amber); }
.hub__toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.25s var(--ease); }
.hub__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.hub__panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(360px, calc(100vw - 32px)); padding: 8px;
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(25, 38, 67, 0.14);
  display: grid; gap: 2px;
}
.hub__item { display: grid; gap: 4px; padding: 12px 14px; border-radius: 8px; text-decoration: none; transition: background 0.2s; }
.hub__item:hover, .hub__item:focus-visible { background: var(--bg); }
.hub__name { font: 500 13px/1.2 var(--f-mono); color: var(--amber); }
.hub__desc { font-size: 14px; line-height: 1.45; color: var(--muted); }

.nav__cta {
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  transition: border-color 0.2s, background 0.2s;
}
.nav__cta:hover { border-color: var(--amber); background: rgba(212,165,116,0.1); }

/* ===== Pasek formuły (element z arkusza) ===== */
.formula {
  position: fixed; right: var(--gutter); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: stretch;
  font: 400 13px/1 var(--f-mono);
  background: rgba(255,255,255,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  max-width: calc(100% - 2 * var(--gutter));
}
.formula__ref { padding: 10px 12px; color: var(--amber); border-right: 1px solid var(--line); min-width: 64px; }
.formula__fx { padding: 10px 10px; color: var(--subtle); font-style: italic; border-right: 1px solid var(--line); }
.formula__val { padding: 10px 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.formula__val::after { content: ''; display: inline-block; width: 7px; height: 14px; margin-left: 3px; vertical-align: -2px; background: var(--amber); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ===== Sekcje ===== */
.section {
  min-height: 100svh;
  padding-block: clamp(120px, 16vh, 180px);
  padding-inline: var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
}
.wrap { width: 100%; max-width: 620px; }
.wrap--wide { max-width: 760px; }
.eyebrow {
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber); display: flex; align-items: center; gap: 12px; margin: 0 0 28px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
h2 {
  font: 700 clamp(40px, 6.4vw, 84px)/0.95 var(--f-display);
  font-stretch: 78%; letter-spacing: -0.025em; margin: 0 0 36px; text-wrap: balance;
}
p { margin: 0; }
.lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); max-width: 58ch; }

/* Hero */
.hero { padding-top: clamp(130px, 20vh, 200px); }
.hero__meta { font: 400 13px/1.4 var(--f-mono); color: var(--subtle); letter-spacing: 0.04em; margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero__meta span:first-child { color: var(--amber); }
.hero h1 {
  font-family: var(--f-display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(68px, 12.5vw, 196px); line-height: 0.84; letter-spacing: -0.035em;
  margin: 0 0 30px;
}
.hero h1 .l2 { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero__claim {
  font: 500 clamp(24px, 2.6vw, 34px)/1.15 var(--f-display); font-stretch: 90%;
  margin-bottom: 20px; letter-spacing: -0.01em;
}
.hero__claim em { font-style: normal; color: var(--amber); }
.hero__role { font-size: 15px; color: var(--subtle); margin-bottom: 18px; letter-spacing: 0.01em; }
.hero__id {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  cursor: pointer;
}
.hero__id:hover { z-index: 50; }
.hero__id img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line-strong);
  filter: contrast(1.05) saturate(1.1);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.hero__id:hover img { transform: scale(2.4); box-shadow: 0 12px 32px rgba(25,38,67,0.28); }
.hero__id span { font: 400 13.5px/1.4 var(--f-mono); color: var(--subtle); }
.hero__id span b { color: var(--amber); font-weight: 500; }
.hero__id .hero__id-hint {
  font: 500 11.5px/1 var(--f-mono); color: var(--amber);
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero__id:hover .hero__id-hint, .hero__id:focus-visible .hero__id-hint { opacity: 1; transform: translateX(0); }

.section.contact { position: relative; overflow: hidden; }
/* Kontakt: portret obok nagłówka - twarz nigdy pod tekstem */
.contact__head { display: grid; grid-template-columns: minmax(170px, 250px) 1fr; gap: clamp(24px, 4vw, 48px); align-items: end; margin-bottom: 8px; }
.contact__portrait { margin: 0; }
.contact__portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%;
  border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(25, 38, 67, 0.16);
}
.contact__portrait figcaption { margin-top: 12px; font: 600 15px/1.3 var(--f-display); font-stretch: 92%; }
.contact__portrait figcaption span { display: block; font: 400 12px/1.4 var(--f-mono); color: var(--subtle); letter-spacing: 0.04em; margin-top: 2px; }
.contact__head h2 { margin-bottom: 0; }
.contact .wrap { position: relative; z-index: 1; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--f-body); text-decoration: none;
  padding: 16px 24px; border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn--primary { background: var(--amber); color: var(--bg); }
.btn--primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--amber); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.scroll-cue {
  margin-top: clamp(48px, 9vh, 96px); display: flex; align-items: center; gap: 14px;
  font: 400 12px/1 var(--f-mono); color: var(--subtle); letter-spacing: 0.12em; text-transform: uppercase;
}
.scroll-cue i { width: 1px; height: 44px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--amber); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* Wejście strony */
.intro > * { animation: rise 1.1s var(--ease) both; }
.intro > *:nth-child(2) { animation-delay: 0.08s; }
.intro > *:nth-child(3) { animation-delay: 0.18s; }
.intro > *:nth-child(4) { animation-delay: 0.26s; }
.intro > *:nth-child(5) { animation-delay: 0.34s; }
.intro > *:nth-child(6) { animation-delay: 0.42s; }
.intro > *:nth-child(7) { animation-delay: 0.6s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* Odsłanianie przy przewijaniu - start z widocznego stanu */
.js .reveal { transition: transform 1s var(--ease), opacity 1s var(--ease); }
.js .reveal.pending { transform: translateY(40px); opacity: 0.25; }

/* Manifest */
.manifest p { font: 400 clamp(22px, 2.3vw, 30px)/1.35 var(--f-display); font-stretch: 92%; letter-spacing: -0.01em; }
.manifest p + p { margin-top: 28px; color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); font-family: var(--f-body); line-height: 1.6; }
.manifest strong { color: var(--amber); font-weight: 500; }

/* Oś czasu jak wiersze arkusza */
.sheet { border-top: 1px solid var(--line-strong); }
.row {
  display: grid; grid-template-columns: 34px 150px 1fr; gap: 0 22px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.row:hover { background: linear-gradient(90deg, rgba(212,165,116,0.07), transparent 80%); }
.row__n { font: 400 12px/1.9 var(--f-mono); color: var(--subtle); }
/* Podejście: portret obok manifestu ("pracuję 1 na 1" = z tym człowiekiem) */
.manifest-grid { max-width: 700px; display: grid; grid-template-columns: minmax(150px, 190px) 1fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.manifest__portrait { margin: 0; padding-top: 44px; }
.manifest-grid .manifest p:first-child { font-size: clamp(21px, 1.9vw, 26px); }
.manifest__portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%;
  border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(25, 38, 67, 0.16);
}
.manifest__builder { font-size: 15px; color: var(--subtle); margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.manifest__builder a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.row__year { font: 500 14px/1.7 var(--f-mono); color: var(--amber); font-variant-numeric: tabular-nums; }
.row__role { font: 600 19px/1.3 var(--f-display); font-stretch: 92%; margin-bottom: 6px; }
.row__desc { color: var(--muted); font-size: 15.5px; }

/* Projekty */
.cases { display: grid; gap: 18px; }
.case {
  display: grid; grid-template-columns: 148px 1fr; gap: 24px;
  padding: 20px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.case:hover { border-color: rgba(212,165,116,0.45); transform: translateX(6px); }
.case { cursor: pointer; }
.case:focus-visible { outline-offset: 4px; }
.case__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; filter: grayscale(0.15) contrast(1.03); background: var(--bg-2); }
.case__client { font: 500 12px/1.4 var(--f-mono); color: var(--amber); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.case h3 { font: 700 23px/1.15 var(--f-display); font-stretch: 88%; margin: 0 0 10px; text-wrap: balance; }
.case p { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font: 400 12px/1 var(--f-mono); padding: 7px 10px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--muted); }
.tag--hot { border-color: rgba(212,165,116,0.5); color: var(--amber); }
.case__more { display: inline-block; margin-top: 14px; font: 500 12.5px/1 var(--f-mono); color: var(--amber); letter-spacing: 0.02em; }

/* Modal case study */
.case-modal-overlay {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(25,38,67,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: var(--gutter);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.case-modal-overlay.open { opacity: 1; pointer-events: auto; }
.case-modal {
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 16px;
  max-width: 640px; width: 100%; max-height: 84vh; overflow-y: auto;
  padding: 34px; position: relative;
  transform: translateY(16px) scale(0.98); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.case-modal-overlay.open .case-modal { transform: translateY(0) scale(1); opacity: 1; }
.case-modal__close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  background: none; border: 1px solid var(--line-strong); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; font-size: 18px; line-height: 1;
}
.case-modal__close:hover { border-color: var(--amber); color: var(--amber); }
.case-modal[hidden] { display: none; }
.case-modal__client { font: 500 12px/1.4 var(--f-mono); color: var(--amber); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.case-modal h3 { font: 700 28px/1.15 var(--f-display); font-stretch: 88%; margin: 0 0 22px; padding-right: 40px; text-wrap: balance; }
.case-modal__block { margin-bottom: 18px; }
.case-modal__block h4 { font: 500 12px/1 var(--f-mono); color: var(--subtle); letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 8px; }
.case-modal__block p { color: var(--muted); font-size: 15.5px; margin: 0; }
.case-modal .tags { margin-top: 22px; }

/* Modal kontaktowy z hero */
.contact-modal__head { display: flex; align-items: center; gap: 18px; margin: 0 0 24px; padding-right: 40px; }
.contact-modal__head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); filter: contrast(1.05) saturate(1.1); flex-shrink: 0; }
.contact-modal__head h3 { font: 700 22px/1.15 var(--f-display); font-stretch: 88%; margin: 0 0 4px; }
.contact-modal__head p { font-size: 14.5px; color: var(--subtle); margin: 0; }
.contact-modal__cta { display: inline-flex; }
.contact-modal__list { margin-top: 28px; border-top: 1px solid var(--line-strong); }

/* Co buduję sam */
.builds { margin-top: 72px; }
.builds__grid { display: grid; gap: 18px; }
.build-card {
  border-radius: 14px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.build-card__visual img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.build-card__visual--diagram { background: var(--bg-2); padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.build-card__body { padding: 20px 22px 22px; }
.build-card h3 { font: 700 23px/1.15 var(--f-display); font-stretch: 88%; margin: 0 0 10px; text-wrap: balance; }
.build-card p { color: var(--muted); font-size: 15px; max-width: 62ch; }
.build-card__link { display: inline-block; margin-top: 14px; font: 500 13px/1.3 var(--f-mono); color: var(--amber); text-decoration: none; }
.build-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Grafika AI-Exec (SVG) */
.ax { display: block; width: 100%; height: auto; font-family: var(--f-body); }
.ax-ring { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 3 6; }
.ax-ring--flow { stroke: var(--amber); stroke-width: 2; stroke-dasharray: 22 620; animation: ax-orbit 7s linear infinite; }
.ax-links line { stroke: var(--line-strong); stroke-width: 1.2; }
.ax-flows line { stroke: var(--amber); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 6 190; animation: ax-flow 2.8s linear infinite; }
.ax-flows line:nth-child(2) { animation-delay: 0.7s; }
.ax-flows line:nth-child(3) { animation-delay: 1.4s; }
.ax-flows line:nth-child(4) { animation-delay: 2.1s; }
.ax-flows line:nth-child(5) { animation-delay: 1s; }
.ax-owner-line { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 4 4; }
.ax-you { fill: var(--ink); }
.ax-you-t { fill: var(--bg-2); font: 600 15px var(--f-body); }
.ax-mem { fill: #E7EDFA; stroke: var(--amber); stroke-width: 1.6; }
.ax-node rect { fill: var(--bg-2); stroke: var(--line-strong); stroke-width: 1.2; }
.ax-role { fill: var(--amber); font: 500 12px var(--f-mono); letter-spacing: 0.08em; }
.ax-t { fill: var(--ink); font-size: 15px; font-weight: 500; }
.ax-t--mem { font: 700 17px var(--f-display); }
.ax-s { fill: var(--muted); font-size: 13px; }
.ax-s--xs { font-size: 11px; }
@keyframes ax-flow { from { stroke-dashoffset: 196; } to { stroke-dashoffset: 0; } }
@keyframes ax-orbit { to { stroke-dashoffset: -642; } }
.ax-steps { list-style: none; counter-reset: ax; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 0; padding: 0; }
.ax-steps li { counter-increment: ax; font-size: 13.5px; line-height: 1.35; color: var(--muted); padding-top: 10px; border-top: 2px solid var(--line); }
.ax-steps li::before { content: counter(ax); display: block; font: 500 12px/1 var(--f-mono); color: var(--amber); margin-bottom: 6px; }

/* Specjalizacje */
.skills { display: grid; gap: 30px; }
.skills__label { font: 500 12px/1 var(--f-mono); color: var(--subtle); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; font-size: 15px; padding: 10px 16px; border-radius: 999px;
  background: rgba(245,239,227,0.05); border: 1px solid var(--line);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.chip:hover { background: rgba(212,165,116,0.12); border-color: rgba(212,165,116,0.5); color: var(--amber); }

/* Kontakt */
.contact h2 { font-size: clamp(40px, 4.6vw, 68px); }
.contact__head + .lede { margin-top: 32px; }
.contact .lede { max-width: 600px; }
.contact h2 em { font-style: normal; color: var(--amber); }
.contact__list { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line-strong); }
.contact__item {
  display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.contact__item .k { font: 500 12px/1 var(--f-mono); color: var(--subtle); letter-spacing: 0.1em; text-transform: uppercase; }
.contact__item .v { font: 600 clamp(18px, 2vw, 22px)/1.2 var(--f-display); font-stretch: 92%; text-decoration: none; user-select: all; overflow-wrap: anywhere; }
.contact__item a.v:hover { color: var(--amber); }
.copy {
  background: none; border: 1px solid var(--line-strong); color: var(--muted);
  font: 500 12px/1 var(--f-mono); padding: 8px 10px; border-radius: 4px; cursor: pointer;
}
.copy:hover { border-color: var(--amber); color: var(--amber); }

footer {
  position: relative; z-index: 3;
  padding: 40px var(--gutter) calc(96px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center;
  font: 400 13px/1.4 var(--f-mono); color: var(--subtle);
  background: var(--bg);
}
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--amber); }

.fallback-bg #stage { display: none; }
.fallback-bg body { background: radial-gradient(90% 70% at 80% 30%, #DCEBD2, var(--bg) 70%); }

/* ===== Formularz kontaktowy (Brevo) ===== */
.contact-form { margin-top: 48px; padding: clamp(20px, 3vw, 32px); border-radius: 14px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.contact-form__title { font: 600 clamp(20px, 2vw, 24px)/1.2 var(--f-display); font-stretch: 92%; margin: 0 0 22px; text-wrap: balance; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 22px; }
.form-grid__full { grid-column: 1 / -1; }
.contact-form .entry__label { display: block; font: 500 12px/1.3 var(--f-mono); color: var(--subtle); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.contact-form .input {
  width: 100%; font: 400 16px/1.5 var(--f-body); color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form textarea.input { resize: vertical; min-height: 110px; }
.contact-form .input[aria-invalid="true"] { border-color: #B42318; }
.contact-form .input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(62, 104, 204, 0.18); }
.contact-form button.btn { border: 0; cursor: pointer; }
.contact-form button.btn:disabled { opacity: 0.6; cursor: wait; }
.input--hidden { display: none !important; }
.contact-form .form-loader { animation: spin 0.8s linear infinite; }
.contact-form button:disabled .btn__arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-msg { font-size: 15px; padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; }
.form-msg--ok { color: #14532D; background: #DCFCE7; border: 1px solid #86EFAC; }
.form-msg--error { color: #7F1D1D; background: #FEE2E2; border: 1px solid #FCA5A5; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .hub { margin-left: auto; position: static; }
  /* na wąskim ekranie lista pod całym paskiem menu (pozycjonowana względem .nav) */
  .hub__panel { left: var(--gutter); right: var(--gutter); top: calc(100% - 4px); width: auto; }
  .scrim { background: linear-gradient(180deg, rgba(239,244,235,0.72), rgba(239,244,235,0.86)); }
  .row { grid-template-columns: 26px 1fr; }
  .row__year { grid-column: 2; }
  .row > div:last-child { grid-column: 2; margin-top: 6px; }
  .case { grid-template-columns: 1fr; }
  .case__img { aspect-ratio: 16 / 9; }
  .contact__item { grid-template-columns: 1fr auto; }
  .manifest-grid { grid-template-columns: 1fr; gap: 24px; }
  .ax-steps { grid-template-columns: 1fr 1fr; }
  .build-card__visual--diagram { padding: 10px 8px 12px; }
  .manifest__portrait { padding-top: 0; max-width: 180px; }
  .contact__head { grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
  .contact__portrait figcaption { display: none; }
  .contact__head .eyebrow { margin-bottom: 12px; }
  .contact h2 { font-size: clamp(34px, 9vw, 52px); }
  .contact__item .k { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .nav { gap: 12px; }
  .nav__cta { display: none; }
  .formula__fx { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal.pending { transform: none; opacity: 1; }
}
