/* =========================================================
   Dariusz Wyżga — portfolio
   Swiss / editorial: Helvetica Now, czarny tekst na chłodnej
   szarości wideo, pigułki jako jedyny język przycisków.
   ========================================================= */

:root {
  --font-heading: 'HelveticaNowDisplay-Medium', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'HelveticaNowDisplayW01-Rg', 'Helvetica Neue', Arial, sans-serif;

  --ink: #000;
  --paper: #eceeef;
  --paper-2: #f7f8f8;
  --white: #fff;
  --muted: rgba(0, 0, 0, .52);
  --line: rgba(0, 0, 0, .12);
  --line-soft: rgba(0, 0, 0, .08);

  --gutter: 20px;
  /* jeden promień dla wszystkich ramek, mniejszy dla elementów w ramkach */
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: #c9ced2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, svg { display: block; }
sup { font-size: .42em; vertical-align: top; position: relative; top: .35em; margin-left: .04em; }
::selection { background: #000; color: #fff; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------
   Wideo w tle
   --------------------------------------------------------- */
.bg-head {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* pierwsza klatka jako plakat, zanim canvas się narysuje */
  background: #c9ced2 url("../frames/h001.webp") 70% center / cover no-repeat;
}
.bg-head canvas { display: block; width: 100%; height: 100%; }

/* ---------------------------------------------------------
   Navbar
   --------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  transition: background-color .3s ease, backdrop-filter .3s ease, padding .3s ease;
}
@media (min-width: 640px) { .navbar { padding: 20px 32px; } }
.navbar.is-scrolled {
  background: rgba(236, 238, 239, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
@media (min-width: 640px) { .navbar.is-scrolled { padding-block: 14px; } }

.logo { display: flex; align-items: center; gap: 12px; color: #000; }
.logo__txt {
  font-family: var(--font-heading);
  font-size: 21px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.logo__star {
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
  transition: transform .6s var(--ease);
}
.logo:hover .logo__star { transform: rotate(90deg); }
@media (min-width: 640px) {
  .logo__txt { font-size: 26px; }
  .logo__star { font-size: 30px; }
}

.nav, .navbar__side { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 36px); }
  .navbar__side { display: flex; align-items: center; }
}
.nav {
  font-size: 20px;
  line-height: 1;
  color: #000;
  white-space: nowrap;
}
.nav__link, .navbar__cta, .lang__btn { transition: opacity .2s ease; }
.nav__link:hover, .navbar__cta:hover, .lang__btn:hover { opacity: .6; }
.nav__link.is-current { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.navbar__side { gap: 28px; font-size: 20px; line-height: 1; }
@media (min-width: 1280px) {
  .nav, .navbar__side { font-size: 23px; }
}
.navbar__cta { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

.lang { display: flex; align-items: center; gap: 4px; }
.lang__btn { opacity: .35; }
.lang__btn.is-active { opacity: 1; }
.lang__sep { opacity: .35; }

/* hamburger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0 8px 8px;
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger i {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  transition: transform .3s ease, opacity .3s ease;
}
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  padding: 0 32px;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.menu.is-open { opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) { .menu { display: none; } }
.menu__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.menu__nav a {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity .4s ease, transform .4s var(--ease);
  transition-delay: calc(var(--d, 0) * 50ms);
}
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu__cta { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lang--menu { font-size: 20px; }

/* ---------------------------------------------------------
   Pigułki
   --------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #000;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.5;
  padding: .3em 16px;
  margin: 0 .2em .4em;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
@media (min-width: 640px) { .pill { font-size: 15px; padding-inline: 20px; gap: 12px; } }
.pill:hover { background: #000; color: #fff; }

.pill--outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.pill--outline:hover { background: #fff; color: #000; }
.pill--outline u { text-decoration: underline; text-underline-offset: 1px; }
.pill--outline .ico-copy { flex: none; }
.pill.is-copied { background: #fff; color: #000; }

.pill--solid { background: #000; color: #fff; border-color: #000; }
.pill--solid:hover { background: #fff; color: #000; }

.pill--sm { margin: 0; }
.pill.is-active { background: #000; color: #fff; border-color: #000; }

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
main { position: relative; z-index: 1; }

.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 48px;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { justify-content: center; padding-bottom: 0; } }

/* Ta sama siatka i lewa krawędź co w sekcji kontakt (.wrap + 12 kolumn). */
.hero__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .hero__content { grid-column: 1 / span 6; }
}
.hero__content { position: relative; z-index: 10; }

/* Nagłówek hero: krój i proporcje tytułu z kontaktu, ale mniejszy stopień —
   tekstu jest ok. 3× więcej i musi zmieścić się pod menu. */
.hero__intro {
  pointer-events: none;
  user-select: none;
  margin-bottom: 28px;
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.4vw, 72px);
  line-height: .95;
  letter-spacing: -0.05em;
  font-weight: 400;
  color: #000;
  text-wrap: balance;
  filter: blur(4px);
}
/* Start rozmyty (jak w briefie), potem „łapie ostrość” przed pisaniem. */
.js .hero__intro {
  opacity: .85;
  transition: filter 1.2s var(--ease), opacity 1.2s var(--ease);
}
.js .hero__intro.is-in { filter: blur(0); opacity: 1; }
/* Zdanie pod nagłówkiem: jak akapit w kontakcie. */
.hero__typed {
  color: #000;
  margin-bottom: 28px;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.35;
  font-weight: 400;
  max-width: 36ch;
  min-height: 2.7em;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #000;
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
.hero__typed.is-done .caret { display: none; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
  margin-inline: -.2em;
}
.js .hero__actions {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.js .hero__actions.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------
   Arkusz treści — wjeżdża na wideo
   --------------------------------------------------------- */
.sheet {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 -30px 80px -40px rgba(0, 0, 0, .25);
}

/* marquee */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-block: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.6vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  animation: marquee 48s linear infinite;
}
.marquee__track i { font-style: normal; font-size: .75em; opacity: .35; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sekcje */
.section { padding-block: clamp(88px, 11vw, 168px); }
.section + .section { border-top: 1px solid var(--line); }

.idx { color: var(--muted); font-variant-numeric: tabular-nums; }

.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
@media (min-width: 900px) {
  .sec-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .sec-head__label { grid-column: 1 / span 3; padding-top: .6em; }
  .sec-head__main { grid-column: 4 / -1; }
}
.sec-head__label { font-size: 15px; line-height: 1.3; }
.sec-head__main { display: flex; flex-direction: column; gap: 28px; }

.display {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 104px);
  line-height: .95;
  letter-spacing: -0.045em;
  max-width: 14ch;
  text-wrap: balance;
}
.sec-head__note {
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.35;
  color: var(--muted);
  max-width: 34ch;
}

/* about */
.statement {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(30px, 3.9vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 22ch;
  text-wrap: balance;
}
.tag-hl {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 999px;
  padding: 0 .38em .06em;
  line-height: 1.1;
}
.lead {
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.4;
  color: var(--muted);
  max-width: 44ch;
}
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 24px;
}
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
}
.facts b {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 80px);
  line-height: .9;
  letter-spacing: -0.045em;
}
.facts span { font-size: 15px; color: var(--muted); }

/* expertise rows */
.rows { border-bottom: 1px solid var(--line); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 32px 0 36px;
}
.row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  background: var(--paper-2);
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.row:hover::before { opacity: 1; }
@media (min-width: 900px) {
  .row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 40px 0 44px; }
  .row__num { grid-column: 1 / span 3; }
  .row__head { grid-column: 4 / span 4; }
  .row__list { grid-column: 8 / -1; }
}
.row__num { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .5em; }
.row__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.row__foot { margin-top: 14px; font-size: 14px; color: var(--muted); }
.row__list li {
  font-size: 17px;
  line-height: 1.4;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.row__list li:first-child { border-top: 0; padding-top: 4px; }

/* experience */
.jobs { border-bottom: 1px solid var(--line); }
.job {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}
@media (min-width: 900px) {
  .job { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 56px 0 64px; }
  .job__id { grid-column: 1 / span 6; }
  .job__body { grid-column: 7 / -1; }
}
.job__company {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 72px);
  line-height: .95;
  letter-spacing: -0.045em;
}
.job__role { margin-top: 14px; font-size: clamp(18px, 1.5vw, 22px); }
.job__meta { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
.job__sub { font-weight: 400; font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.job__list { counter-reset: jl; }
.job__list li {
  counter-increment: jl;
  display: grid;
  grid-template-columns: 36px 1fr;
  font-size: 17px;
  line-height: 1.45;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}
.job__list li::before { content: counter(jl, decimal-leading-zero); color: var(--muted); font-size: 13px; padding-top: .2em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.chip {
  font-size: 13px;
  line-height: 1.5;
  padding: .25em 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .1);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
  margin-top: clamp(64px, 8vw, 120px);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #000; padding: 18px 0 32px; }
.stat b {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(56px, 7.4vw, 128px);
  line-height: .85;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 15px; color: var(--muted); max-width: 18ch; }

.clients { margin-top: clamp(64px, 8vw, 120px); }
.clients__title { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.clients__list {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.9vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 28ch;
}
.clients__item { transition: opacity .25s ease; }
.clients__item em { font-style: normal; color: var(--muted); font-size: .5em; letter-spacing: -0.01em; vertical-align: .35em; }
.clients__sep { color: var(--muted); }
@media (hover: hover) {
  .clients__list:hover .clients__item { opacity: .28; }
  .clients__list:hover .clients__item:hover { opacity: 1; }
}

/* stack */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.packs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px) { .packs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .packs { grid-template-columns: repeat(3, 1fr); } }
.pack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px 24px 28px;
  min-height: 300px;
  transition: opacity .3s ease, transform .3s var(--ease), background-color .3s ease;
}
.pack:hover { background: #fff; }
.pack.is-hidden { display: none; }
.pack.is-fading { opacity: 0; transform: translateY(8px); }
.pack__num { font-size: 15px; color: var(--muted); }
.pack__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.pack__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.pack__tags li {
  font-size: 13px;
  line-height: 1.5;
  padding: .25em 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------
   Kontakt — znów na wideo
   --------------------------------------------------------- */
.contact {
  position: relative;
  z-index: 1;
  padding-block: clamp(120px, 16vw, 220px) clamp(64px, 8vw, 120px);
}
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .contact__lead { grid-column: 1 / span 6; }
  .cform { grid-column: 8 / -1; }
}
.contact__lead > p { text-shadow: 0 0 22px rgba(236, 238, 239, .9), 0 0 6px rgba(236, 238, 239, .6); }
.contact__label { font-size: 15px; margin-bottom: 24px; }
.contact__label .idx { color: rgba(0, 0, 0, .55); }
.contact__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(44px, 6.6vw, 112px);
  line-height: .93;
  letter-spacing: -0.05em;
  max-width: 12ch;
  text-wrap: balance;
}
.contact__p {
  margin-top: 28px;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.35;
  max-width: 36ch;
}
.contact__actions { display: flex; flex-wrap: wrap; row-gap: 4px; margin: 28px -.2em 0; }
.contact__loc { margin-top: 18px; font-size: 15px; color: rgba(0, 0, 0, .6); }

.cform {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 640px) { .cform { padding: 36px; } }
.cform__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.cform__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cform__note { font-size: 14px; color: var(--muted); }
.cform__row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) { .cform__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; color: var(--muted); }
.field__input {
  font: inherit;
  font-size: 17px;
  color: #000;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.field__input:focus { border-color: #000; background: #fff; }
.field__input--area { resize: vertical; min-height: 96px; line-height: 1.4; }
.cform__gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }
.cform__submit { margin: 0; }
.cform.is-busy .cform__submit { opacity: .6; pointer-events: none; }
.cform__status { font-size: 14px; }
.cform__status.is-ok { color: #0a6b3a; }
.cform__status.is-error { color: #a4231b; }

/* ---------------------------------------------------------
   Stopka
   --------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 96px) 0 24px;
  /* jasny welon: stopka zostaje czytelna także na ciemnym fragmencie wideo */
  background: linear-gradient(to bottom, rgba(236, 238, 239, 0), rgba(236, 238, 239, .82) 55%, rgba(236, 238, 239, .95));
}
.footer__big {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(0, 0, 0, .25);
  padding-top: 18px;
  font-family: var(--font-heading);
  font-size: clamp(36px, 12.2vw, 240px);
  line-height: .86;
  letter-spacing: -0.065em;
  transition: opacity .25s ease;
}
.footer__big:hover { opacity: .7; }
.footer__big .ico-arrow {
  width: .42em;
  height: .42em;
  flex: none;
  margin-top: .08em;
  transition: transform .4s var(--ease);
}
.footer__big:hover .ico-arrow { transform: translate(.06em, -.06em); }
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(28px, 4vw, 56px);
  font-size: 14px;
  color: rgba(0, 0, 0, .7);
}
.footer__name sup { font-size: .7em; top: .1em; }
.footer__time { font-variant-numeric: tabular-nums; }
.footer__top { color: #000; transition: opacity .2s ease; }
.footer__top:hover { opacity: .6; }

/* ---------------------------------------------------------
   Toast
   --------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  transform: translate(-50%, 16px);
  background: #000;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  padding: .55em 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease);
  white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------
   Reveal
   --------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(18px);
  transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .reveal.is-in { opacity: 1; filter: blur(0); transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .hero__actions { opacity: 1; filter: none; transform: none; }
  .hero__intro { filter: none; }
  .marquee__track { animation: none; }
}

/* ---------------------------------------------------------
   Druk: strona zapisana jako PDF = CV
   --------------------------------------------------------- */
.cv-head { display: none; }

@media print {
  html, body { background: #fff !important; font-size: 10.5pt; }
  .bg-head, .navbar, .menu, .toast, .hero, .marquee, .filters,
  .cform, .contact__actions, .footer, .row::before { display: none !important; }
  .sheet { border-radius: 0; box-shadow: none; background: #fff; overflow: visible; }

  .cv-head { display: block; margin-bottom: 1.2rem; padding: 0 var(--gutter); }
  .cv-head h2 { font-family: var(--font-heading); font-weight: 400; font-size: 28pt; letter-spacing: -.04em; line-height: 1; }
  .cv-head__role { font-size: 12pt; margin-top: .3rem; }
  .cv-head__meta { font-size: 9pt; color: #555; margin-top: .4rem; }
  .cv-head__lead { margin-top: .7rem; max-width: 62ch; color: #333; font-size: 10pt; line-height: 1.45; }

  .section, .contact { padding-block: .8rem; }
  .sec-head { margin-bottom: .8rem; gap: .4rem; }
  .display, .statement, .contact__title { font-size: 18pt; max-width: none; }
  .lead, .sec-head__note, .contact__p { font-size: 10pt; max-width: none; margin-top: .3rem; }
  .facts b, .stat b { font-size: 22pt; }
  .row, .job { padding: .6rem 0; break-inside: avoid; }
  .row__title { font-size: 13pt; }
  .job__company { font-size: 16pt; }
  .row__list li, .job__list li { font-size: 9.5pt; padding: .2rem 0; }
  .clients__list { font-size: 12pt; }
  .packs { grid-template-columns: 1fr 1fr; }
  .pack { min-height: 0; padding: .6rem; break-inside: avoid; background: #fff; }
  .pack__title { font-size: 12pt; }
  .pack.is-hidden { display: flex !important; }
  .js .reveal { opacity: 1 !important; filter: none !important; transform: none !important; }
  #experience, #stack { page-break-before: always; }
}
