/* =============================================================
   non.agency — Strona autora / profil członka zespołu
   Szablon: template-author-profile.php + author.php
   Namespace: .ap-*   (wszystko scope'owane pod .ap-page)
   Projekt referencyjny: design_handoff_author_page
   ------------------------------------------------------------- */

.ap-page {
  --ap-max: 1240px;
  --ap-pad-x: 40px;
  font-family: var(--font-sans);
  color: var(--non-ink);
  letter-spacing: var(--tracking-snug);
  background: var(--non-bg);
  -webkit-font-smoothing: antialiased;
}

.ap-page *,
.ap-page *::before,
.ap-page *::after { box-sizing: border-box; }

.ap-page h1,
.ap-page h2,
.ap-page h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  color: var(--non-ink);
  margin: 0;
}
.ap-page p { margin: 0; }
.ap-page ul { list-style: none; margin: 0; padding: 0; }
.ap-page a { text-decoration: none; color: inherit; }
.ap-page img { max-width: 100%; height: auto; }
.ap-page button { font-family: inherit; }

.ap-wrap { max-width: var(--ap-max); margin: 0 auto; padding: 88px var(--ap-pad-x); }
.ap-band { background: var(--non-surface); border-top: 1px solid var(--non-surface-2); }
.ap-band--bordered { border-bottom: 1px solid var(--non-surface-2); }

.ap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--non-purple);
  letter-spacing: 0;
}
.ap-eyebrow svg { flex: none; }

.ap-h2 { font-size: 40px; letter-spacing: -0.05em; }
.ap-lead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--non-mute);
  letter-spacing: -0.02em;
}

/* ---------- powrót do zespołu ---------- */
.ap-back {
  max-width: var(--ap-max);
  margin: 0 auto;
  padding: 24px var(--ap-pad-x) 8px;
}
.ap-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--non-mute);
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
}
.ap-back a:hover { color: var(--non-ink); }
.ap-back svg { transform: rotate(180deg); }

/* ---------- HERO ---------- */
.ap-hero {
  max-width: var(--ap-max);
  margin: 0 auto;
  padding: 32px var(--ap-pad-x) 72px;
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 64px;
  align-items: start;
}
.ap-hero__side { position: sticky; top: 120px; }

/* Kwadrat — portrety autorów są wgrywane 1:1, więc ramka ma ten sam kadr
   i object-fit: cover niczego nie obcina. */
.ap-portrait {
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  border: 3px solid var(--non-surface-2);
  background: var(--non-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.ap-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-portrait__initials {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 120px;
  letter-spacing: -0.05em;
  color: var(--non-surface-2);
  line-height: 1;
}
.ap-portrait__note {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--non-mute);
  background: #fff;
  border: 1px solid var(--non-surface-2);
  border-radius: 999px;
  padding: 7px 13px;
}

.ap-stats { display: flex; gap: 12px; margin-top: 12px; }
.ap-stat {
  flex: 1;
  text-align: center;
  padding: 18px 8px;
  background: var(--non-surface);
  border-radius: 16px;
}
.ap-stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.05em;
  color: var(--non-ink);
}
.ap-stat span {
  display: block;
  font-size: 12px;
  color: var(--non-mute);
  margin-top: 2px;
  letter-spacing: -0.01em;
}

.ap-hero__main { padding-top: 4px; }
.ap-hero__main h1 {
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-top: 18px;
}
.ap-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  /* Odstęp pod pigułkami taki sam jak nad nimi (20 px). Świadomie padding,
     nie margin: margines dolny scaliłby się z `margin-top` akapitu pod spodem
     (.ap-shortbio ma 26 px) i nie dodałby ani piksela. */
  padding-bottom: 20px;
}
.ap-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--non-mute);
  border: 1px solid var(--non-surface-2);
  border-radius: 999px;
  padding: 9px 15px;
  letter-spacing: -0.02em;
}
.ap-chip--role {
  font-size: 15px;
  color: var(--non-ink);
  background: var(--non-surface);
  border-color: transparent;
  padding: 9px 16px;
}
.ap-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--non-green);
  box-shadow: 0 0 0 4px rgba(31, 255, 121, 0.2);
}
.ap-shortbio {
  font-size: 19px;
  line-height: 1.5;
  color: var(--non-mute);
  letter-spacing: -0.02em;
  margin-top: 26px;
  max-width: 620px;
}

/* przyciski */
.ap-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ap-btn {
  height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 24px;
  border-radius: 22px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.03em;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ap-btn__chip {
  width: 40px;
  height: 40px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}
/* Dwie rzeczy, o które trzeba tu zahaczyć:
 *
 * 1. Tekst przycisku to goły węzeł tekstowy wewnątrz <a>, nie <span>. Jedyny
 *    <span> w środku to kółko ze strzałką — selektor na `span` wyczerniłby
 *    strzałkę na ciemnym tle kółka. Kolor tekstu ustawiamy więc na samym <a>.
 *
 * 2. Reset `.ap-page a { color: inherit }` ma specyficzność 0,1,1 i wygrywa
 *    z samym `.ap-btn--primary` (0,1,0) — tekst dziedziczyłby czerń z .ap-page.
 *    Dlatego reguły kolorów są scope'owane pod `.ap-page` (0,2,0 / 0,2,1).
 *    Bez tego prefiksu przycisk wychodzi czarny na fiolecie.
 */

/* Primary: biały tekst, biała ramka. */
.ap-page .ap-btn--primary,
.ap-page .ap-btn--primary:hover,
.ap-page .ap-btn--primary:focus,
.ap-page .ap-btn--primary:visited {
  color: #fff;
}
.ap-page .ap-btn--primary { background: var(--non-purple); border: 2px solid #fff; }
.ap-page .ap-btn--primary .ap-btn__chip { background: var(--non-purple-deep); color: #fff; }
.ap-page .ap-btn--primary:hover { background: var(--non-purple-deep); border-color: #fff; }

/* Ink: czarny tekst, czarna ramka. */
.ap-page .ap-btn--ink,
.ap-page .ap-btn--ink:hover,
.ap-page .ap-btn--ink:focus,
.ap-page .ap-btn--ink:visited {
  color: var(--non-ink);
}
.ap-page .ap-btn--ink { background: #fff; border: 2px solid var(--non-ink); }
.ap-page .ap-btn--ink .ap-btn__chip { background: var(--non-ink); color: #fff; }
.ap-page .ap-btn--ink:hover { background: var(--non-surface); }

/* socials */
.ap-socials { margin-top: 34px; }
.ap-socials__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--non-mute);
  margin-bottom: 12px;
}
.ap-socials__row { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-social {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--non-surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--non-mute);
  transition: all 0.15s ease;
}
.ap-page .ap-social,
.ap-page .ap-social:visited { color: var(--non-mute); }
.ap-page .ap-social:hover,
.ap-page .ap-social:focus {
  border-color: var(--non-ink);
  color: var(--non-ink);
  transform: translateY(-2px);
}

/* ---------- specjalizacje ---------- */
.ap-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.ap-topic {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--non-ink);
  background: #fff;
  border: 1px solid var(--non-surface-2);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: default;
  transition: all 0.2s ease;
}
.ap-topic:hover {
  background: var(--non-purple);
  border-color: var(--non-purple);
  color: #fff;
}

/* ---------- o mnie ---------- */
.ap-about { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
/* Jest tylko jedna z dwóch kolumn (same akapity albo sama karta faktów) —
   inaczej pusta kolumna zostawiałaby dziurę. Szablon dokłada tę klasę sam. */
.ap-about--solo { grid-template-columns: 1fr; }
.ap-about__paras { display: flex; flex-direction: column; gap: 20px; }
.ap-about__paras p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--non-mute);
  letter-spacing: -0.02em;
}
.ap-facts {
  border: 3px solid var(--non-surface-2);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ap-fact { padding: 14px 0; border-bottom: 1px solid var(--non-surface-2); }
.ap-fact:last-child { border-bottom: none; }
.ap-fact__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--non-mute);
}
.ap-fact__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--non-ink);
  letter-spacing: -0.02em;
  margin-top: 4px;
}

/* ---------- pull quote ---------- */
.ap-quote { background: var(--non-purple); position: relative; overflow: hidden; }
.ap-quote__deco {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 380px;
  height: 380px;
  opacity: 0.4;
  pointer-events: none;
}
.ap-quote__inner { max-width: 1040px; margin: 0 auto; padding: 96px var(--ap-pad-x); position: relative; }
.ap-quote blockquote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0;
}
.ap-quote__by { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.ap-quote__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  overflow: hidden;
  flex: none;
}
.ap-quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ap-quote__by b { display: block; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.ap-quote__by span { display: block; color: rgba(255, 255, 255, 0.7); font-size: 13px; letter-spacing: -0.01em; }

/* ---------- wystąpienia i media ---------- */
.ap-talks { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
/* Sam film albo sama lista wystąpień — jedna kolumna zamiast pustej połowy. */
.ap-talks--solo { grid-template-columns: 1fr; }
.ap-talks--solo .ap-appearances { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ap-featured { border: 3px solid var(--non-surface-2); border-radius: 24px; overflow: hidden; }
.ap-featured__video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--non-ink); }
.ap-featured__video iframe,
.ap-featured__video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.ap-featured__body { padding: 24px 28px; }
.ap-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--non-purple);
}
.ap-featured__title { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-top: 8px; }
.ap-featured__meta { font-size: 14px; color: var(--non-mute); margin-top: 6px; letter-spacing: -0.01em; }

.ap-appearances { display: flex; flex-direction: column; gap: 12px; }
.ap-appearance {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--non-surface-2);
  border-radius: 18px;
  background: var(--non-surface);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.ap-appearance,
.ap-appearance:hover,
.ap-appearance:focus,
.ap-appearance:visited { color: var(--non-ink); }
.ap-appearance:hover { background: #fff; border-color: var(--non-ink); transform: translateY(-3px); }
.ap-appearance__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ap-appearance__top svg { color: var(--non-mute); }
/* Wystąpienie bez podanego typu — strzałka i tak trzyma się prawej krawędzi. */
.ap-appearance__top > svg:only-child { margin-left: auto; }
.ap-appearance__title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-top: 10px; color: var(--non-ink); }
.ap-appearance__meta { font-size: 13px; color: var(--non-mute); margin-top: 4px; letter-spacing: -0.01em; }

/* ---------- wyróżnienia ---------- */
.ap-awards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ap-award { background: #fff; border: 1px solid var(--non-surface-2); border-radius: 20px; padding: 28px; }
.ap-award__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: var(--non-surface);
  color: var(--non-purple);
  margin-bottom: 20px;
}
.ap-award__year { font-size: 13px; font-weight: 700; color: var(--non-purple); letter-spacing: -0.01em; }
.ap-award__title { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; margin-top: 6px; line-height: 1.2; }
.ap-award__org { font-size: 14px; color: var(--non-mute); margin-top: 8px; letter-spacing: -0.01em; }

/* ---------- artykuły ---------- */
.ap-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.ap-link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--non-ink);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--non-ink);
  padding-bottom: 3px;
}
.ap-page .ap-link-underline,
.ap-page .ap-link-underline:visited { color: var(--non-ink); }
.ap-page .ap-link-underline:hover,
.ap-page .ap-link-underline:focus { color: var(--non-purple); border-color: var(--non-purple); }

.ap-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ap-article {
  display: flex;
  flex-direction: column;
  border: 3px solid var(--non-surface-2);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.18s ease;
}
.ap-article,
.ap-article:hover,
.ap-article:focus,
.ap-article:visited { color: var(--non-ink); }
.ap-article:hover { border-color: var(--non-ink); }
.ap-article__media {
  height: 168px;
  background: var(--non-surface);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.ap-article__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ap-article__cat {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--non-purple);
  background: #fff;
  border-radius: 999px;
  padding: 7px 13px;
}
.ap-article__chip {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 18px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--non-ink);
  transition: all 0.2s ease;
  flex: none;
}
.ap-article:hover .ap-article__chip { background: var(--non-ink); color: #fff; width: 60px; }
.ap-article__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
/* Kolor jawnie, nie przez dziedziczenie: karta to <a>, a globalne style linków
   z motywu potrafią przefarbować tytuł na fioletowo. */
.ap-article__title { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; color: var(--non-ink); }
.ap-article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 13px;
  color: var(--non-mute);
  letter-spacing: -0.01em;
}
.ap-article__meta i { width: 3px; height: 3px; border-radius: 999px; background: var(--non-mute); display: inline-block; }

/* ---------- media pack ---------- */
.ap-media { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
/* Media pack bez zdjęć — sama karta z pobraniem bio, na całą szerokość. */
.ap-media--solo { grid-template-columns: 1fr; }
.ap-dls { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.ap-dl {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--non-surface-2);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
  width: 100%;
}
.ap-dl:hover { border-color: var(--non-ink); transform: translateY(-2px); }
.ap-dl__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--non-surface);
  color: var(--non-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ap-dl__copy { flex: 1; }
.ap-dl__copy b { display: block; font-size: 15px; font-weight: 700; color: var(--non-ink); letter-spacing: -0.02em; }
.ap-dl__copy span { display: block; font-size: 13px; color: var(--non-mute); letter-spacing: -0.01em; margin-top: 2px; }

.ap-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Jedno zdjęcie (albo tylko portret) — bez kolumny małych kafli. */
.ap-photos--one { grid-template-columns: 1fr; max-width: 380px; }
.ap-photo {
  border-radius: 20px;
  border: 3px solid var(--non-surface-2);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--non-surface-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  overflow: hidden;
}
.ap-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Duży kafel mozaiki — również 1:1, bo zdjęcia są kwadratowe. */
.ap-photo--tall { aspect-ratio: 1 / 1; }
.ap-photos__col { display: flex; flex-direction: column; gap: 16px; }
.ap-photos__col .ap-photo { flex: 1; min-height: 120px; }

/* ---------- kontakt ---------- */
.ap-contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.ap-contact h2 { font-size: 44px; letter-spacing: -0.05em; margin: 16px 0; line-height: 1.02; }
.ap-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--non-surface);
  border-radius: 14px;
  margin-bottom: 12px;
}
.ap-status__dot {
  width: 10px;
  height: 10px;
  background: var(--non-green);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(31, 255, 121, 0.18);
  flex: none;
}
.ap-status b { display: block; font-size: 14px; font-weight: 700; color: var(--non-ink); letter-spacing: -0.01em; }
.ap-status span { display: block; font-size: 12px; color: var(--non-mute); margin-top: 2px; }
.ap-calendar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 16px 22px;
  background: #fff;
  border: 1px solid var(--non-surface-2);
  border-radius: 14px;
  margin-bottom: 24px;
  transition: border-color 0.15s ease;
}
.ap-calendar:hover { border-color: var(--non-ink); }
.ap-calendar__title { font-size: 16px; font-weight: 700; color: var(--non-ink); letter-spacing: -0.02em; margin-top: 2px; }
.ap-calendar__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--non-surface);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--non-ink);
  flex: none;
}
.ap-mailrow { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--non-mute); letter-spacing: -0.02em; }
.ap-mailrow a { color: var(--non-ink); font-weight: 700; }
.ap-mailrow a:hover { color: var(--non-purple); }

/* --- formularz: klasy .cf-* z design systemu, zgodne z Contact Form 7 --- */
.ap-page .cf-form {
  background: #fff;
  border: 1px solid var(--non-surface-2);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--non-shadow-card);
  font-family: var(--font-sans);
}
.ap-page .cf-form__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--non-surface-2);
}
.ap-page .cf-form__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--non-ink);
}
.ap-page .cf-form__step {
  font-size: 12px;
  font-weight: 700;
  color: var(--non-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ap-page .cf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ap-page .cf-field__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--non-ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ap-page .cf-req { color: var(--non-purple); }
.ap-page .cf-field__control {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--non-surface);
  border: 1px solid var(--non-surface-2);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.ap-page .cf-field__control:hover { border-color: rgba(23, 26, 33, 0.18); }
.ap-page .cf-field__control:focus-within {
  background: #fff;
  border-color: var(--non-ink);
  box-shadow: 0 0 0 4px rgba(87, 22, 247, 0.12);
}
.ap-page .cf-field__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--non-mute);
}
.ap-page .cf-field__control:focus-within .cf-field__icon { color: var(--non-ink); }
.ap-page .cf-field__control .wpcf7-form-control-wrap { flex: 1; min-width: 0; display: flex; }
.ap-page .cf-field__input,
.ap-page .cf-field__textarea {
  flex: 1;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--non-ink);
  letter-spacing: -0.01em;
  padding: 12px 16px 12px 0;
}
.ap-page .cf-field__input::placeholder,
.ap-page .cf-field__textarea::placeholder { color: var(--non-mute); }
.ap-page .cf-field__textarea { padding: 14px 16px 14px 0; resize: vertical; min-height: 110px; }
.ap-page .cf-field--textarea .cf-field__icon { align-self: flex-start; padding-top: 14px; height: auto; }
.ap-page .cf-field--textarea .cf-field__control { align-items: stretch; }
.ap-page .cf-field--textarea .cf-field__control .wpcf7-form-control-wrap { align-items: stretch; }

.ap-page .cf-newsletter {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 22px;
  font-size: 13px;
  color: var(--non-ink);
  letter-spacing: -0.01em;
  line-height: 1.45;
}
.ap-page .cf-newsletter > p { display: contents; }
.ap-page .cf-newsletter br { display: none; }
.ap-page .cf-newsletter .wpcf7-form-control-wrap { flex: none; }
.ap-page .cf-newsletter .wpcf7-list-item { margin: 0; }
.ap-page .cf-newsletter .wpcf7-list-item-label { display: none; }
.ap-page .cf-newsletter input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--non-surface-2);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex: none;
  margin-top: 1px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ap-page .cf-newsletter input[type="checkbox"]:hover { border-color: var(--non-ink); }
.ap-page .cf-newsletter input[type="checkbox"]:checked { background: var(--non-purple); border-color: var(--non-purple); }
.ap-page .cf-newsletter input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.ap-page .cf-newsletter label { cursor: pointer; line-height: 1.45; }

.ap-page .cf-submit {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 8px;
  height: 60px;
  background: var(--non-purple);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}
.ap-page .cf-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--non-green);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.6, 0.05, 0.3, 1);
  z-index: 0;
}
.ap-page .cf-submit br { display: none; }
.ap-page .cf-submit__text { grid-column: 2; text-align: center; position: relative; z-index: 1; }
.ap-page .cf-submit__chip {
  grid-column: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  flex: none;
  position: relative;
  z-index: 1;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.ap-page .cf-submit:hover { color: var(--non-ink); }
.ap-page .cf-submit:hover::before { transform: translateX(0); }
.ap-page .cf-submit:hover .cf-submit__chip { background: var(--non-ink); color: var(--non-green); transform: translateX(2px); }
.ap-page .cf-submit:active { transform: translateY(1px); }
.ap-page .cf-disclaimer {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--non-mute);
  font-style: italic;
  letter-spacing: -0.01em;
}
.ap-page .cf-disclaimer a { color: var(--non-mute); text-decoration: underline; }

.ap-sent { text-align: center; padding: 32px 8px; }
.ap-sent__icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--non-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ap-sent b { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.ap-sent p { font-size: 15px; color: var(--non-mute); margin-top: 8px; letter-spacing: -0.01em; }

/* ---------- powiązany zespół ---------- */
.ap-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ap-person {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--non-surface-2);
  border-radius: 20px;
  padding: 20px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.ap-person,
.ap-person:hover,
.ap-person:focus,
.ap-person:visited { color: var(--non-ink); }
.ap-person:hover { border-color: var(--non-ink); transform: translateY(-3px); }
.ap-person__tile {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--non-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--non-surface-2);
  flex: none;
  overflow: hidden;
}
.ap-person__tile img { width: 100%; height: 100%; object-fit: cover; }
.ap-person b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.03em; color: var(--non-ink); }
.ap-person span { display: block; font-size: 13px; color: var(--non-mute); margin-top: 3px; letter-spacing: -0.01em; }

/* ---------- toast ---------- */
.ap-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  background: var(--non-ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: var(--non-shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: ap-toast 0.25s ease;
}
@keyframes ap-toast {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- narzędzia ---------- */
/* Treść tylko dla czytników ekranu (podpis tabeli, nagłówki kolumn). */
.ap-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Lead pod nazwiskiem może mieć kilka akapitów — kolejne stoją ciaśniej,
   inaczej hero rozjeżdżałoby się na trzy odległe bloki. */
.ap-shortbio + .ap-shortbio { margin-top: 14px; }

/* ---------- specjalizacje z opisem ---------- */
/* Wariant listy włącza się dopiero, gdy w ACF pojawi się choć jeden opis;
   bez opisów sekcja renderuje pigułki .ap-topic jak wcześniej. */
.ap-topiclist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
.ap-topicrow {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--non-surface-2);
  border-radius: 16px;
  padding: 20px 22px;
}
.ap-topicrow__mark {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--non-surface);
  color: var(--non-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ap-topicrow__copy b {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--non-ink);
}
.ap-topicrow__copy span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--non-mute);
  margin-top: 5px;
  letter-spacing: -0.01em;
}

/* ---------- chronologia kariery ---------- */
.ap-timeline {
  width: 100%;
  max-width: 920px;
  border-collapse: collapse;
  text-align: left;
}
.ap-timeline tbody tr { border-top: 1px solid var(--non-surface-2); }
.ap-timeline tbody tr:last-child { border-bottom: 1px solid var(--non-surface-2); }
.ap-timeline th,
.ap-timeline td {
  padding: 18px 24px 18px 0;
  vertical-align: baseline;
  font-weight: 400;
}
.ap-timeline th[scope="row"] {
  width: 190px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--non-purple);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ap-timeline td {
  font-size: 17px;
  line-height: 1.4;
  color: var(--non-ink);
  letter-spacing: -0.02em;
  padding-right: 0;
}

/* ---------- publikacje zewnętrzne ---------- */
.ap-page .ap-subhead {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--non-mute);
  margin-bottom: 16px;
}
.ap-pubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* Nad kaflami z bloga — potrzebny oddech między dwiema siatkami. */
.ap-pubs--stacked { margin-bottom: 48px; }
.ap-pub {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--non-surface-2);
  border-radius: 18px;
  padding: 22px 24px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.ap-page .ap-pub,
.ap-page .ap-pub:visited { color: var(--non-ink); }
.ap-pub:hover { border-color: var(--non-ink); transform: translateY(-3px); }
.ap-pub__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ap-pub__top svg { color: var(--non-mute); flex: none; }
/* Publikacja bez podanego źródła — strzałka trzyma się prawej krawędzi. */
.ap-pub__top > svg:only-child { margin-left: auto; }
.ap-pub__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 10px;
}
.ap-pub__meta { font-size: 13px; color: var(--non-mute); margin-top: 6px; letter-spacing: -0.01em; }

/* ---------- galeria media packu (od 4 zdjęć) ---------- */
/* Karta z pobraniami nad galerią, galeria na całą szerokość pasa. */
.ap-media--stack { grid-template-columns: 1fr; gap: 40px; align-items: start; }
.ap-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.ap-gphoto {
  display: block;
  padding: 0;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 3px solid var(--non-surface-2);
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.18s ease;
}
.ap-gphoto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.ap-gphoto:hover { border-color: var(--non-ink); }
.ap-gphoto:hover img { transform: scale(1.04); }
.ap-gphoto:focus-visible { outline: 3px solid var(--non-purple); outline-offset: 2px; }

/* ---------- hero: portret jako przewijana galeria ---------- */
/* Slajdy leżą na sobie w tej samej kwadratowej ramce, którą ma zwykły portret —
   hero nie zmienia wysokości przy przewijaniu. */
.ap-portrait--slider { cursor: zoom-in; }
.ap-hslide {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}
.ap-hslide.is-active { opacity: 1; visibility: visible; }
.ap-hslide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-hslide:focus-visible { outline: 3px solid var(--non-purple); outline-offset: -3px; }

.ap-hnav {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  /* Pasek leży na zdjęciu, którego koloru nie znamy — stąd ciemne tło. */
  background: rgba(15, 4, 43, 0.72);
  backdrop-filter: blur(6px);
}
.ap-hnav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ap-hnav__btn:hover { background: rgba(255, 255, 255, 0.22); }
.ap-hnav__btn:focus-visible { outline: 2px solid var(--non-green); outline-offset: 1px; }
.ap-hnav__count {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  min-width: 46px;
  text-align: center;
}

/* ---------- karuzela cytatów ---------- */
/* Slajdy pozycjonowane absolutnie względem toru, a tor trzyma wysokość
   najwyższego cytatu — inaczej pas skakałby przy każdej zmianie. */
.ap-quote__track { position: relative; display: grid; }
.ap-quote__slide { grid-area: 1 / 1; margin: 0; }
.ap-quote--carousel .ap-quote__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.ap-quote--carousel .ap-quote__slide.is-active { opacity: 1; visibility: visible; }
/* Nazwisko i podpis pod cytatem stylują reguły .ap-quote__by b / span wyżej —
   struktura jest ta sama co przed karuzelą, więc nie duplikujemy ich tutaj. */

.ap-qnav { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.ap-qnav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ap-qnav__btn:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }
.ap-qnav__btn:focus-visible { outline: 2px solid var(--non-green); outline-offset: 2px; }
.ap-qnav__dots { display: flex; align-items: center; gap: 8px; }
.ap-qnav__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ap-qnav__dot:hover { background: rgba(255, 255, 255, 0.65); }
.ap-qnav__dot.is-active { background: #fff; transform: scale(1.25); }
.ap-qnav__dot:focus-visible { outline: 2px solid var(--non-green); outline-offset: 3px; }

/* ---------- tematy do rozmowy ---------- */
.ap-speaking { margin-top: 56px; }
.ap-speaking__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
}
.ap-speaking__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 16px;
  line-height: 1.45;
  color: var(--non-ink);
  letter-spacing: -0.02em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--non-surface-2);
}
.ap-speaking__mark { color: var(--non-purple); margin-top: 4px; }

/* ---------- o firmie ---------- */
.ap-company { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.ap-company__body { display: flex; flex-direction: column; gap: 16px; }
.ap-company__body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--non-ink);
  letter-spacing: -0.02em;
}

/* ---------- podgląd zdjęcia ---------- */
.ap-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 4, 43, 0.93);
  animation: ap-lb-in 0.18s ease;
}
@keyframes ap-lb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ap-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.6);
}
.ap-lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ap-lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}
.ap-lightbox__btn:focus-visible { outline: 2px solid var(--non-green); outline-offset: 2px; }
/* Przy jednym zdjęciu JS ustawia [hidden] na strzałkach i liczniku. Reguły
   wyżej deklarują display, a styl autora bije arkusz przeglądarki — bez tej
   linijki `hidden` nic by nie ukrył. */
.ap-lightbox__btn[hidden],
.ap-lightbox__count[hidden] { display: none; }
.ap-lightbox__close { top: 24px; right: 24px; }
.ap-lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.ap-lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
.ap-lightbox__count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0;
}
/* Strona pod otwartym podglądem nie przewija się. */
body.ap-lb-open { overflow: hidden; }

/* Przejścia w karuzelach i lightboxie to same przenikania, ale kto poprosił
   o brak animacji, ma dostać zmianę natychmiastową. */
@media (prefers-reduced-motion: reduce) {
  .ap-hslide,
  .ap-quote--carousel .ap-quote__slide,
  .ap-lightbox,
  .ap-gphoto img { transition: none; animation: none; }
}

/* =============================================================
   RESPONSYWNOŚĆ
   ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .ap-topiclist { grid-template-columns: 1fr; }
  .ap-pubs { grid-template-columns: 1fr 1fr; }
  .ap-speaking__list { grid-template-columns: 1fr; }
  .ap-company { grid-template-columns: 1fr; gap: 28px; }
  .ap-hero { grid-template-columns: 340px 1fr; gap: 40px; }
  .ap-hero__main h1 { font-size: 54px; }
  .ap-about { grid-template-columns: 1fr; gap: 40px; }
  .ap-talks { grid-template-columns: 1fr; }
  .ap-contact { grid-template-columns: 1fr; gap: 40px; }
  .ap-awards { grid-template-columns: 1fr 1fr; }
  .ap-articles { grid-template-columns: 1fr 1fr; }
  .ap-related { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .ap-page { --ap-pad-x: 20px; }
  .ap-wrap { padding: 56px var(--ap-pad-x); }
  .ap-hero { grid-template-columns: 1fr; padding: 16px var(--ap-pad-x) 48px; }
  .ap-hero__side { position: static; }
  .ap-portrait { max-width: 340px; }
  .ap-hero__main h1 { font-size: clamp(38px, 10vw, 52px); }
  .ap-shortbio { font-size: 17px; }
  .ap-h2 { font-size: 30px; }
  .ap-contact h2 { font-size: 32px; }
  .ap-quote__inner { padding: 64px var(--ap-pad-x); }
  .ap-quote blockquote { font-size: 28px; }
  .ap-awards { grid-template-columns: 1fr; }
  .ap-articles { grid-template-columns: 1fr; }
  .ap-related { grid-template-columns: 1fr; }
  .ap-media { grid-template-columns: 1fr; gap: 32px; }
  .ap-dls { max-width: none; }
  .ap-pubs { grid-template-columns: 1fr; }
  .ap-gallery { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  /* Tabela na wąskim ekranie: okres nad rolą, zamiast dwóch ściśniętych kolumn. */
  .ap-timeline tbody tr { display: block; padding: 16px 0; }
  .ap-timeline th[scope="row"],
  .ap-timeline td { display: block; width: auto; padding: 0; }
  .ap-timeline td { margin-top: 4px; font-size: 16px; }
  .ap-speaking { margin-top: 40px; }
  .ap-qnav { margin-top: 28px; gap: 10px; }
  .ap-qnav__btn { width: 38px; height: 38px; }
  .ap-lightbox { padding: 12px; }
  .ap-lightbox img { max-height: 74vh; }
  .ap-lightbox__btn { width: 42px; height: 42px; }
  .ap-lightbox__close { top: 12px; right: 12px; }
  .ap-lightbox__prev { left: 10px; }
  .ap-lightbox__next { right: 10px; }
  .ap-actions .ap-btn { flex: 1 1 100%; justify-content: space-between; }
  .ap-page .cf-form { padding: 20px 18px; border-radius: 18px; }
}
