/* ============================================================
   danieltomaszewski.pl — jasny motyw
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
img, picture, svg { display: block; max-width: 100%; }
/* <picture> ma wysokość auto, więc img{height:100%} liczyłby procent od auto
   i zapadał się do wysokości własnej obrazu. Picture musi wypełnić kadr. */
.frame picture, .bento__tile picture, .vcard__thumb picture,
.band picture { display: block; width: 100%; height: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

/* ---------- Tokens ---------- */
:root {
  --paper:     #f4f2ed;
  --paper-2:   #fbfaf8;
  --paper-3:   #edeae3;
  --black:     #121110;

  --ink:       #14130e;
  --ink-soft:  rgba(20, 19, 14, .66);  /* 5.7:1 na papierze, WCAG AA */
  --ink-line:  rgba(20, 19, 14, .13);
  --ink-line2: rgba(20, 19, 14, .07);

  /* Żółty i czarny. Wartości nie są przypadkowe:
     #FFD54A z czernią daje 13:1 w obie strony, ale jako mały tekst
     na papierze ma tylko 1.6:1 — dlatego drobne napisy biorą --accent-deep. */
  --accent:      #ffd54a;
  --accent-hi:   #ffe066;
  --accent-deep: #7a6000;               /* 5.4:1 na papierze */
  --mark:        rgba(255, 213, 74, .78);   /* zakreślacz */
  --wash:        rgba(255, 213, 74, .38);

  --paper-on-black: rgba(244, 242, 237, .72);

  --focus: #7a6000;

  --font: 'Satoshi', 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --step--2: clamp(.68rem, .06vw + .67rem, .72rem);
  --step--1: clamp(.8rem, .1vw + .78rem, .87rem);
  --step-0:  clamp(.95rem, .16vw + .92rem, 1.05rem);
  --step-1:  clamp(1.08rem, .3vw + 1.01rem, 1.28rem);
  --step-2:  clamp(1.3rem, .6vw + 1.16rem, 1.75rem);
  --step-3:  clamp(1.7rem, 1.6vw + 1.3rem, 2.75rem);
  --step-4:  clamp(2.1rem, 3vw + 1.4rem, 3.9rem);
  --step-5:  clamp(2.4rem, 4.4vw + 1.3rem, 4.6rem);

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sect: clamp(3rem, 5.5vw, 5.25rem);

  --ease: cubic-bezier(.22, 1, .36, 1);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

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

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%);
  z-index: 999; padding: .75rem 1.25rem;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: var(--step--1);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sect); position: relative; }

/* ---------- Typografia ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -.035em; line-height: 1.06; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: var(--step--1); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow__dash { width: 28px; height: 2px; background: var(--accent); border-radius: 2px; flex: none; }
/* wariant na ciemnym tle (pas „Siła jest w zespole") */
.eyebrow--light { color: rgba(244, 242, 237, .85); }

/* Szerokości w rem, nie w ch — ch liczyłby się od fontu kontenera (16px),
   a nie od nagłówka, i ściskał tytuły do ~180px. */
.section__head { max-width: 34rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.section__head--split {
  max-width: none;
  display: grid; grid-template-columns: 1.35fr .65fr;
  gap: clamp(1.5rem, 4vw, 4rem); align-items: end;
}
.section__head--split > div { max-width: none; }
.section__title { font-size: var(--step-3); margin-top: 1.1rem; text-wrap: balance; }
.section__lead { color: var(--ink-soft); max-width: 34ch; }

.prose { display: grid; gap: 1.05rem; }
.prose p { color: var(--ink-soft); line-height: 1.72; }

/* Zakreślacz. clone sprawia, że przy zawinięciu każda linia dostaje własne tło. */
.hl {
  background-image: linear-gradient(transparent 56%, var(--mark) 56%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  padding-inline: .05em;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  transition: background-size .85s var(--ease) .15s;
}
.hl.is-in, .reveal.is-in .hl { background-size: 100% 100%; }
.hl--thin { background-image: linear-gradient(transparent 66%, var(--mark) 66%); }

.link {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
  transition: box-shadow .3s var(--ease), color .3s var(--ease);
}
.link:hover { box-shadow: inset 0 -1.1em 0 var(--accent); }

.arrow-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; font-size: var(--step-0);
  padding-bottom: .5rem; min-height: 44px;
  border-bottom: 1px solid var(--ink-line);
  transition: border-color .3s var(--ease);
}
.arrow-link:hover { border-color: var(--accent-deep); }
.arrow-link svg { transition: transform .4s var(--ease); }
.arrow-link:hover svg { transform: translate(5px, -5px); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.5rem;
  border-radius: 100px;
  font-size: var(--step--1); font-weight: 700; letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background-color .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn svg { flex: none; transition: transform .35s var(--ease); }
.btn--sm { min-height: 40px; padding: .5rem 1.15rem; }

.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hi); box-shadow: 0 8px 22px rgba(255, 213, 74, .5); }
.btn--primary:hover svg { transform: translate(2px, -2px); }

.btn--ghost { border-color: var(--ink-line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-2); }

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #2b2a20; }

.btn:active { transform: scale(.97); }

/* ---------- Ramki na zdjęcia ---------- */
.frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 1px 2px rgba(21, 20, 13, .05), 0 18px 40px -18px rgba(21, 20, 13, .28);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--portrait { aspect-ratio: 4 / 5; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform .45s var(--ease), background-color .35s var(--ease),
              backdrop-filter .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-stuck {
  background: rgba(244, 242, 237, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--ink-line2);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: .9rem var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}
.nav__logo {
  margin-right: auto;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .3rem .9rem .3rem .3rem;
  border-radius: 100px;
  background: var(--paper-2);
  border: 1px solid var(--ink-line);
  transition: transform .4s var(--ease), border-color .3s var(--ease);
}
.nav__logo:hover { transform: translateY(-2px); border-color: var(--accent-deep); }
.nav__avatar {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%; overflow: hidden;
  background: var(--paper-3);
}
.nav__avatar picture { display: block; width: 100%; height: 100%; }
.nav__avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav__logo-name {
  font-size: var(--step--1); font-weight: 700; letter-spacing: -.02em;
  white-space: nowrap;
}

.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-size: var(--step--1); font-weight: 500; color: var(--ink-soft);
  padding-block: .45rem; position: relative;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--ink); }

.nav__burger { display: none; width: 44px; height: 44px; place-items: center; gap: 5px; flex-direction: column; }
.nav__burger span {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .4s var(--ease);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  padding: 6rem var(--gutter) 2.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity .35s var(--ease);
}
/* KONIECZNE: display:flex powyżej nadpisuje domyślne [hidden]{display:none}
   przeglądarki. Bez tego zamknięte menu zostaje w layoucie jako niewidoczna
   nakładka na całą stronę i przechwytuje wszystkie kliknięcia. */
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links a {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: clamp(1.7rem, 7.5vw, 2.4rem); font-weight: 700; letter-spacing: -.04em;
  padding-block: .55rem;
  border-bottom: 1px solid var(--ink-line2);
  opacity: 0; transform: translateY(12px);
}
.mobile-menu.is-open .mobile-menu__links a { animation: mmIn .45s var(--ease) forwards; }
.mobile-menu__links a:nth-child(1) { animation-delay: .05s }
.mobile-menu__links a:nth-child(2) { animation-delay: .10s }
.mobile-menu__links a:nth-child(3) { animation-delay: .15s }
.mobile-menu__links a:nth-child(4) { animation-delay: .20s }
.mobile-menu__links a:nth-child(5) { animation-delay: .25s }
.mobile-menu__links a:nth-child(6) { animation-delay: .30s }
@keyframes mmIn { to { opacity: 1; transform: none } }
.mm-num { font-size: .68rem; color: var(--accent-deep); font-weight: 700; letter-spacing: .1em; }
.mobile-menu__foot { display: flex; gap: 1.4rem; font-size: var(--step--1); color: var(--ink-soft); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(7rem, 12vw, 10rem); padding-bottom: var(--sect); overflow: hidden; }
.hero__wash {
  position: absolute; z-index: 0;
  top: -22%; right: -12%;
  width: min(62vw, 780px); aspect-ratio: 1;
  background: radial-gradient(circle at center, var(--wash), transparent 62%);
  filter: blur(20px);
  animation: washFloat 16s ease-in-out infinite alternate;
}
@keyframes washFloat {
  from { transform: translate3d(0,0,0) scale(1) }
  to   { transform: translate3d(-6%, 5%, 0) scale(1.14) }
}

.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}

.hero__title { font-size: var(--step-4); margin: 1.4rem 0 1.5rem; }
.hero__lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 44ch; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.proof {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid var(--ink-line);
}
.proof li { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.proof__val {
  font-size: clamp(2rem, 2.6vw, 2.75rem);
  font-weight: 700; letter-spacing: -.05em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.proof__lab { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.35; }

.hero__figure { position: relative; }

/* Rotacja zdjęć w hero: kadry ułożone na sobie, przenikanie przez opacity. */
.hero__shots { position: relative; }
.hero__shots .shot {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.1s var(--ease), transform 1.6s var(--ease);
}
.hero__shots .shot.is-on { opacity: 1; transform: scale(1); }
.hero__shots .shot img { width: 100%; height: 100%; object-fit: cover; }
.badge--hero {
  position: absolute; right: -1rem; bottom: 1.75rem;
  display: flex; align-items: center; gap: .7rem;
  background: var(--paper-2);
  border-radius: var(--r-md);
  padding: .8rem 1.1rem;
  box-shadow: 0 10px 30px -10px rgba(21, 20, 13, .35);
  animation: badgeFloat 5s ease-in-out infinite alternate;
}
@keyframes badgeFloat { from { transform: translateY(0) } to { transform: translateY(-8px) } }
.badge__val { font-size: 1.6rem; font-weight: 700; letter-spacing: -.05em; }
.badge__lab { font-size: var(--step--2); color: var(--ink-soft); line-height: 1.25; }

/* ============================================================
   SKALA — jasne kafelki z ikonami
   ============================================================ */
.scale { padding-block: var(--sect); position: relative; }
.scale__head { max-width: 34rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.scale__title { font-size: var(--step-3); margin-top: 1.1rem; text-wrap: balance; }

.scale__list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink-line); border-radius: var(--r-lg);
  background: var(--paper-2); overflow: hidden;
}
.scale__item {
  min-width: 0;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-right: 1px solid var(--ink-line2);
  display: flex; flex-direction: column;
  transition: background-color .4s var(--ease);
}
.scale__item:last-child { border-right: 0; }
.scale__item:hover { background: var(--paper); }
.scale__num { font-size: var(--step--2); color: var(--ink-soft); letter-spacing: .14em; }
.scale__icon { width: 22px; height: 22px; color: var(--accent-deep); margin: 1.4rem 0 1.9rem; }
.scale__val {
  font-size: var(--step-4); font-weight: 700; letter-spacing: -.05em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.scale__lab { font-size: var(--step--1); color: var(--ink-soft); margin-top: .7rem; max-width: 22ch; }

/* ============================================================
   EKSPERTYZA
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card {
  background: var(--paper-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  will-change: transform;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 213, 74, .65);
  box-shadow: 0 18px 40px -22px rgba(21, 20, 13, .4);
}
.card__num { font-size: var(--step--2); font-weight: 700; color: var(--accent-deep); letter-spacing: .12em; }
.card__title { font-size: var(--step-2); margin: .8rem 0 .7rem; }
.card__text { color: var(--ink-soft); max-width: 40ch; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.4rem; }
.tags li {
  font-size: var(--step--2); font-weight: 500;
  padding: .32rem .7rem; border-radius: 100px;
  border: 1px solid var(--ink-line); color: var(--ink-soft);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.card:hover .tags li { border-color: rgba(255, 213, 74, .7); background: rgba(255, 213, 74, .16); }

/* ============================================================
   SIŁA W ZESPOLE — zdjęcie najeżdża od scale(.66) do pełnej szerokości
   ============================================================ */
.teamband { padding-block: clamp(2rem, 4vw, 3.5rem); overflow: clip; }
.teamband__frame {
  --tb: 0;                                  /* 0 = mały kadr, 1 = pełna szerokość */
  position: relative; overflow: hidden;
  height: clamp(300px, 46vw, 520px);
  transform: scale(calc(.68 + .32 * var(--tb)));
  border-radius: calc(28px * (1 - var(--tb)));
  opacity: calc(.45 + .55 * var(--tb));
  will-change: transform, border-radius, opacity;
}
.teamband__img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.18 - .18 * var(--tb)));   /* kontr-zoom, jak w referencji */
  will-change: transform;
}
.teamband picture { display: block; width: 100%; height: 100%; }
.teamband__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,17,16,.9) 0%, rgba(18,17,16,.72) 35%, rgba(18,17,16,.3) 70%, rgba(18,17,16,.1) 100%);
}
.teamband__cap {
  position: absolute; left: 0; bottom: 0; top: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 4.5rem);
  max-width: 34rem;
}
.teamband__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--paper); margin-top: 1rem;
  letter-spacing: -.04em; line-height: 1;
}

/* ============================================================
   TRZY ZASADY
   ============================================================ */
.rules__list { border-top: 1px solid var(--ink-line); }
.rule {
  position: relative;
  display: grid; grid-template-columns: 5rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--ink-line);
}
/* Podświetlenie pseudo-elementem, nie paddingiem. Animowanie padding-inline
   przesuwało treść wiersza w bok i mogło przełamać tekst, przez co strona
   skakała pod kursorem. */
.rule::before {
  content: ''; position: absolute; inset: 0 -1.25rem; z-index: -1;
  background: var(--paper-2); border-radius: var(--r-md);
  opacity: 0; transition: opacity .35s var(--ease);
}
.rule:hover::before { opacity: 1; }
.rule__num {
  font-size: var(--step-2); font-weight: 700;
  color: var(--accent-deep); letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.rule__title { font-size: var(--step-2); max-width: 26ch; }
.rule__text { color: var(--ink-soft); margin-top: .6rem; max-width: 62ch; }

/* ============================================================
   O MNIE
   ============================================================ */
.about__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; }
.frame--inset {
  position: absolute; right: -12%; bottom: -10%;
  width: 62%;
  border: 4px solid var(--paper);
  border-radius: var(--r-lg);
}
.about__body { max-width: 54ch; }
.about__body .prose { margin-top: 1.8rem; }

.facts { margin-top: 2.4rem; }
.facts li {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
  padding-block: .9rem;
  border-top: 1px solid var(--ink-line2);
  font-size: var(--step--1); color: var(--ink-soft);
}
.facts li:last-child { border-bottom: 1px solid var(--ink-line2); }
.facts span {
  color: var(--ink); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; font-size: var(--step--2);
  padding-top: .1rem;
}

/* ============================================================
   MEDIA
   ============================================================ */
/* Karta podcastu — wiodąca, poziomy układ */
.podcast {
  position: relative;
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: clamp(3.5rem, 5vw, 4.25rem);
  overflow: hidden;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.podcast__cover {
  position: relative; z-index: 1;
  width: clamp(140px, 18vw, 220px);
  aspect-ratio: 1; border-radius: var(--r-md);
  overflow: hidden; flex: none;
  margin-right: clamp(0rem, 2vw, 2rem);
  box-shadow: 0 18px 40px -18px rgba(20, 19, 14, .55);
  transition: transform .5s var(--ease);
}
.podcast:hover .podcast__cover { transform: scale(1.04) rotate(-2deg); }
.podcast__cover picture { display: block; width: 100%; height: 100%; }
.podcast__cover img { width: 100%; height: 100%; object-fit: cover; }
.podcast:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 213, 74, .7);
  box-shadow: 0 20px 44px -22px rgba(21, 20, 13, .42);
}
.podcast__body { position: relative; z-index: 1; max-width: 46ch; }
.podcast__title { font-size: var(--step-3); margin: 1.1rem 0 .7rem; }
.podcast__text { color: var(--ink-soft); }
/* przycisk potrzebuje powietrza od tekstu */
.podcast__body .btn { margin-top: 1.75rem; }
.podcast__cta {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.2rem;
  font-size: var(--step--1); font-weight: 700; color: var(--accent-deep);
}
.podcast__cta svg { transition: transform .35s var(--ease); }
.podcast:hover .podcast__cta svg { transform: translate(2px, -2px); }

/* Karty wideo — miniatura + tytuł. Klikalny jest przycisk, nie cała karta. */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-bottom: 1.5rem; }
.vcard { display: flex; flex-direction: column; }
.vcard__thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background: var(--paper-3);
  box-shadow: 0 14px 34px -22px rgba(20, 19, 14, .5);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.vcard:hover .vcard__thumb { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(20, 19, 14, .55); }
.vcard__thumb picture { position: absolute; inset: 0; }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.vcard:hover .vcard__thumb img { transform: scale(1.06); }
.vcard__role {
  position: absolute; left: .7rem; top: .7rem; z-index: 1;
  font-size: var(--step--2); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 100px;
  background: var(--accent); color: var(--ink);
}
/* jasny chip: czarny ginął na ciemnych miniaturach */
.vcard__role--alt { background: var(--paper); color: var(--ink); }
.vcard__name {
  font-size: var(--step-2); font-weight: 700;
  line-height: 1.2; letter-spacing: -.03em;
  margin-top: .9rem; text-wrap: balance;
  transition: color .3s var(--ease);
}
.vcard:hover .vcard__name { color: var(--accent-deep); }
.vcard__meta { font-size: var(--step--1); color: var(--ink-soft); margin-top: .3rem; }
.vcard__cta {
  display: inline-flex; align-items: center; gap: .4rem;
  align-self: flex-start;
  margin-top: auto; padding-top: .6rem;
  min-height: 44px;
  font-size: var(--step--1); font-weight: 700; color: var(--accent-deep);
}
.vcard__cta svg { transition: transform .3s var(--ease); }
.vcard__cta:hover svg { transform: translate(4px, -4px); }

/* zachowane z kart: chip, play, fala — używa ich karta podcastu i karty wideo */
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--step--2); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 100px;
  border: 1px solid var(--ink-line); color: var(--ink-soft);
  background: var(--paper);
}
.chip--live { border-color: rgba(255, 213, 74, .7); color: var(--accent-deep); }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-deep); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(122, 96, 0, .5) }
  70%  { box-shadow: 0 0 0 8px rgba(122, 96, 0, 0) }
  100% { box-shadow: 0 0 0 0 rgba(122, 96, 0, 0) }
}
.play {
  position: absolute; inset: 0; margin: auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(21, 20, 13, .3);
  transition: transform .4s var(--ease);
}
.play svg { margin-left: 2px; }
a:hover > .vcard__thumb .play, .vcard:hover .play { transform: scale(1.12); }

.wave { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; width: 100%; }
.wave-bars rect { fill: var(--accent); opacity: .5; transform-origin: center bottom; }

/* ============================================================
   COMMUNITY
   ============================================================ */
/* padding-bottom = 0: mozaika kończy się równo z sekcją, inaczej pod
   odjeżdżającą sceną zostawała pusta płachta i galeria wyglądała na uciętą */
.community { overflow: clip; padding-bottom: 0; }

/* Mozaika — kamera odjeżdża od środkowego kadru do całej siatki.
   Scena przyklejona (sticky) na czas animacji.
   Siatka NIE dochodzi do krawędzi ekranu: przy skali 1 mieści się w całości
   z marginesem, więc na końcu widać wszystkie 11 zdjęć, żadne nie jest ucięte. */
.mosaic { height: 240vh; position: relative; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.mosaic__stage {
  position: sticky; top: 0;
  height: 100vh; overflow: clip;
  display: grid; place-items: center;
}
/* Wysokość jawnie w vh, nie w %. Procent nie miał się do czego odnieść:
   wysokość komórki gridu liczy się z zawartości, a zawartość z procentu.
   Przez to siatka puchła ponad ekran i dolny rząd był ucięty. */
.bento {
  --s: 1;
  width: calc(100% - 2 * var(--gutter));
  max-width: 1560px;
  height: 78vh;
  display: flex; flex-direction: column; gap: .9%;
  transform: scale(var(--s));
  transform-origin: center center;
  will-change: transform;
}
/* min-height:0 — bez tego domyślne min-height:auto pozwala rzędom rosnąć
   ponad flex-basis, bo elementy flex nie kurczą się poniżej swojej treści. */
.bento__row { flex: 0 0 24.5%; min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .9%; }
.bento__mid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 27% 1fr 27%; gap: .9%; }

/* Zdjęcie wyjęte z przepływu (absolute). Inaczej narzucało kafelkowi swoją
   wysokość naturalną, rzędy puchły ponad flex-basis i dolny rząd wychodził
   poza ekran. To była przyczyna „uciętej galerii”. */
.bento__tile {
  position: relative; min-height: 0;
  overflow: hidden; border-radius: 12px;
  background: var(--paper-3);
}
.bento__tile picture { position: absolute; inset: 0; }
.bento__tile img { width: 100%; height: 100%; object-fit: cover; }
.bento__tile--center { border-radius: 16px; }

/* podpis w rogu sceny */
.mosaic__cap {
  position: absolute; left: var(--gutter); bottom: 2rem; z-index: 2;
  background: var(--paper-2);
  border-radius: var(--r-md);
  padding: .8rem 1.1rem;
  box-shadow: 0 10px 30px -10px rgba(21, 20, 13, .35);
  font-size: var(--step--1);
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.mosaic__cap.is-in { opacity: 1; transform: none; }

/* ============================================================
   OPINIE
   ============================================================ */
.gbadge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.15rem; border-radius: 100px;
  background: var(--paper-2); border: 1px solid var(--ink-line);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  min-height: 48px;
  transition: border-color .3s var(--ease), transform .35s var(--ease);
}
.gbadge:hover { border-color: var(--accent-deep); transform: translateY(-2px); }
.gbadge__g { flex: none; }
.gbadge__val { font-size: var(--step-1); font-weight: 700; letter-spacing: -.03em; }
.gbadge__stars { color: var(--accent-deep); letter-spacing: .1em; font-size: var(--step--1); }
.gbadge__lab { font-size: var(--step--1); color: var(--ink-soft); }

/* Bez align-items: start. Każdy kafel dopasowywał się do swojej treści,
   przez co w jednym rzędzie różniły się nawet o 47px. Domyślny stretch
   wyrównuje je do najwyższego, a margin-top: auto na stopce kafla
   ustawia nazwiska w jednej linii. */
.opinions__list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.opinion {
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 2.2vw, 1.85rem);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.opinion:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 213, 74, .7);
  box-shadow: 0 18px 40px -22px rgba(20, 19, 14, .4);
}
.opinion__mark { color: var(--accent-deep); margin-bottom: 1rem; flex: none; }
.opinion__text { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.7; }
.opinion__who {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--ink-line2);
}
.opinion__text { margin-bottom: 1.25rem; }
.opinion__name { font-weight: 700; font-size: var(--step-0); }
.opinion__role { font-size: var(--step--1); color: var(--ink-soft); margin-top: .1rem; }

/* ============================================================
   PASJE
   ============================================================ */
.passions__list { border-top: 1px solid var(--ink-line); }
.passion {
  position: relative;
  display: grid; grid-template-columns: 3.5rem 1fr 1.05fr 200px;
  align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1rem, 2vw, 1.4rem);
  border-bottom: 1px solid var(--ink-line);
}
.passion::before {
  content: ''; position: absolute; inset: 0 -1.25rem; z-index: -1;
  background: var(--paper-2); border-radius: var(--r-md);
  opacity: 0; transition: opacity .35s var(--ease);
}
.passion:hover::before { opacity: 1; }
.passion__num { font-size: var(--step--2); font-weight: 700; color: var(--accent-deep); letter-spacing: .12em; }
.passion__name { font-size: var(--step-2); transition: color .3s var(--ease); }
.passion:hover .passion__name { color: var(--accent-deep); }
.passion__desc { color: var(--ink-soft); font-size: var(--step--1); max-width: 44ch; }
.passion__shot {
  width: 200px; aspect-ratio: 4 / 3;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 10px 26px -14px rgba(20, 19, 14, .45);
  transition: transform .5s var(--ease);
}
.passion:hover .passion__shot { transform: scale(1.04); }
.passion__shot picture { display: block; width: 100%; height: 100%; }
.passion__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.passion:hover .passion__shot img { transform: scale(1.06); }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact { background: var(--paper-2); border-top: 1px solid var(--ink-line2); }
.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact__title { font-size: var(--step-4); margin: 1.2rem 0 1.2rem; max-width: 15ch; text-wrap: balance; }
.contact__lead { color: var(--ink-soft); max-width: 42ch; font-size: var(--step-1); line-height: 1.55; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Bezpośrednie dane kontaktowe — mail i telefon */
.direct { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.direct__link {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.4rem;
  border-radius: 100px;
  border: 1px solid var(--ink-line);
  background: var(--paper);
  font-weight: 700; font-size: var(--step-0);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .35s var(--ease);
}
.direct__link svg { color: var(--accent-deep); flex: none; }
.direct__link:hover {
  border-color: var(--accent-deep);
  background: rgba(255, 213, 74, .18);
  transform: translateY(-2px);
}

/* Sieci jako przyciski. Wcześniej klikalny był cały wiersz na całą szerokość. */
.socials {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: 2.25rem;
}
.socials a {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.05rem;
  border-radius: 100px; border: 1px solid var(--ink-line);
  font-size: var(--step--1); font-weight: 700;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .35s var(--ease);
}
.socials a:hover { border-color: var(--accent-deep); background: rgba(255, 213, 74, .18); transform: translateY(-2px); }
.socials__handle { color: var(--ink-soft); font-weight: 400; }

.contact__media { display: grid; gap: 1rem; }
.contact__media .frame { aspect-ratio: 3/2; }
.contact__media .frame:first-child { transform: rotate(-1.5deg); }
.contact__media .frame:last-child { transform: rotate(1.5deg) translateX(6%); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--ink-line);
  padding-block: clamp(3rem, 6vw, 5rem) 0;
  overflow: clip;
  container-type: inline-size;
}
/* nazwisko skalowane do szerokości kontenera, nie do vw:
   przy vw wychodziło poza wrap (max-width 1200) i było ucinane */

.footer__cols {
  display: grid; grid-template-columns: 1.3fr .85fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.footer__head {
  font-size: var(--step--2); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1rem;
}
.footer__big {
  font-size: var(--step-1); font-weight: 500;
  min-height: 40px; display: inline-flex; align-items: center;
  transition: color .3s var(--ease);
  box-shadow: inset 0 -2px 0 transparent;
}
.footer__big:hover { box-shadow: inset 0 -2px 0 var(--accent); }
.footer__note { font-size: var(--step--1); color: var(--ink-soft); margin-top: .9rem; }

.footer__col a:not(.footer__big) {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: var(--step-0); color: var(--ink-soft);
  min-height: 36px;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
/* transform zamiast padding: nie wymusza przeliczenia układu */
.footer__col a:not(.footer__big):hover { color: var(--ink); transform: translateX(4px); }

/* Wielkie nazwisko przez całą szerokość ekranu, ucięte dolną krawędzią stopki
   (jak w stopce sellision.pl). Dlatego .footer ma overflow: clip
   i zerowy padding-bottom. */
.footer__wordmark {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: -.26em;
  font-size: 10.4cqi;
  font-weight: 700; letter-spacing: -.05em; line-height: .82;
  color: rgba(20, 19, 14, .09);
  white-space: nowrap;
  user-select: none;
  padding-left: var(--gutter);
}

.footer__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem; flex-wrap: wrap;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line2);
  font-size: var(--step--1); color: var(--ink-soft);
}
.footer__role { color: var(--ink-soft); }
.footer__up {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; transition: color .3s var(--ease);
}
.footer__up svg { transition: transform .4s var(--ease); }
.footer__up:hover { color: var(--ink); }
.footer__up:hover svg { transform: translateY(-3px); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: calc(var(--d, 0) * 75ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr .82fr; }
  .scale__list { grid-template-columns: repeat(2, 1fr); }
  .passion { grid-template-columns: 3rem 1fr 150px; }
  .passion__desc { grid-column: 2 / 3; grid-row: 2; max-width: none; }
  .passion__shot { width: 150px; grid-row: 1 / 3; grid-column: 3; }
}

@media (max-width: 860px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero { padding-top: 6.5rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__figure { order: -1; max-width: 380px; }
  .badge--hero { right: .5rem; bottom: 1rem; }

  .section__head--split { grid-template-columns: 1fr; align-items: start; }
  .section__head--split > div { max-width: none; }

  .about__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .about__media { max-width: 420px; }
  .frame--inset { right: -6%; width: 55%; }
  .facts li { grid-template-columns: 1fr; gap: .15rem; }

  .cards { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__media { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .footer__cols { grid-template-columns: 1fr; gap: 2rem; }
  .scale__list { grid-template-columns: 1fr; }
  .videos { grid-template-columns: 1fr; }
  .opinions__list { grid-template-columns: 1fr; }
  .podcast { grid-template-columns: 1fr; }
  .podcast__badge { display: none; }
  .proof { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
  /* li jest elementem flex, więc rozciągnąć trzeba link w środku */
  .direct { flex-direction: column; }
  .direct li { display: flex; }
  .direct__link { flex: 1; justify-content: center; }

  /* na wąskim ekranie 4 kafelki w rzędzie to kropki — zostają 2 */
  .mosaic { height: 200vh; }
  .bento { height: 72vh; }
  .bento__row { grid-template-columns: repeat(2, 1fr); }
  .bento__row .bento__tile:nth-child(n+3) { display: none; }
  /* wąskie boki przycinały środkowy kadr tak, że znikał z niego Daniel —
     na mobile środek dostaje pełną szerokość */
  .bento__mid { grid-template-columns: 1fr; }
  .bento__tile--side { display: none; }
  .bento__tile--center img { object-position: 38% center; }
  .passion { grid-template-columns: 2.5rem 1fr; gap: .5rem 1rem; }
  .passion__shot { width: 100%; grid-column: 1 / -1; grid-row: 3; margin-top: .75rem; }
  .contact__media { grid-template-columns: 1fr; }
}

/* ============================================================
   MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hl { clip-path: inset(0 0 0 0); }
  .band__img { position: static; height: 100%; }

  /* JS nie aktualizuje --tb przy reduced-motion, więc kadr zostałby
     zamrożony w scale(.68) i półprzezroczysty. Wymuszamy stan końcowy. */
  .teamband__frame { --tb: 1; }

  /* bez zoomu: mozaika staje się zwykłą, statyczną siatką */
  .mosaic { height: auto; }
  .mosaic__stage { position: static; height: auto; padding-block: 1rem; }
  .bento { transform: none; height: auto; gap: .6rem; }
  .bento__row { flex: none; gap: .6rem; }
  .bento__mid { gap: .6rem; }
  .bento__tile { aspect-ratio: 3 / 2; }
  .bento__tile--side { aspect-ratio: 1 / 1; }
  .mosaic__cap { position: static; opacity: 1; transform: none; margin-top: 1rem; display: inline-block; }
}
