/* BEZ LITOŚCI — strona. Kolory i kroje: brand.css */
:root {
  --pad: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --rail: 200px;
  --gap: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; color: var(--white); font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--display); text-transform: uppercase; line-height: 1.04; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.25rem); }
:focus-visible { outline: 2px solid var(--blood-hi); outline-offset: 4px; }
::selection { background: var(--blood); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--white); color: #000; padding: 8px 12px; }
.hl { color: var(--blood-hi); }

/* Etykieta sekcji: numer + nazwa */
.label {
  display: flex; align-items: baseline; gap: 14px; margin: 0;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.label b { font-weight: 500; color: var(--blood-hi); font-variant-numeric: tabular-nums; }
.label--gap { margin-bottom: 28px; }
html { scrollbar-color: #2a2a2a var(--black); }

/* Sekcja z boczną szyną */
section { padding-block: var(--gap); border-bottom: 1px solid var(--line); }
.sec { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 32px; align-items: start; }
.sec > .label { position: sticky; top: 96px; padding-top: 0.5em; }

/* Przyciski i linki */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  font: 600 0.8rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--blood); background: var(--blood); color: #fff; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--white); border-color: var(--white); color: #000; }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 0.72rem; }
.link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); white-space: nowrap;
  transition: color .2s ease;
}
.link::after { content: '→'; transition: transform .2s ease; }
.link:hover { color: var(--blood-hi); }
.link:hover::after { transform: translateX(4px); }
.link--up::after { content: '↑'; }
.link--up:hover::after { transform: translateY(-4px); }

/* Nawigacja */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 7, 7, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { transition: background .25s ease, border-color .25s ease; }
.nav:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.nav__in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 12px 0; transition: color .2s ease; }
.nav__links a:hover, .nav__links a.is-active, .nav__links a[aria-current] { color: var(--white); }
.nav__toggle { display: none; }

/* Hero */
section.hero { position: relative; overflow: hidden; padding-block: 0; }
.hero__photo {
  position: absolute; inset: 0 0 0 44%;
  background: url(img/dawid.jpg) center 20% / cover no-repeat;
  filter: grayscale(1) contrast(1.02) brightness(.72);
}
.hero__photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(7,7,7,.45) 45%, rgba(7,7,7,.1) 100%),
    linear-gradient(0deg, var(--black) 0%, rgba(7,7,7,0) 35%);
}
.hero__in { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: min(calc(100vh - 65px), 780px); padding-block: 80px 0; }
.hero h1 { font-size: clamp(1.9rem, 3.7vw, 3.3rem); line-height: 1.1; max-width: 15em; margin: auto 0 24px; }
.hero__lead { font-size: 1.05rem; max-width: 30em; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.hero__bar {
  display: flex; flex-wrap: wrap; gap: 12px 48px; margin-top: auto; padding-block: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.hero__in > .hero__cta { margin-bottom: 72px; }
.hero__bar strong { margin-right: 8px; color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero__bar a { margin-left: auto; color: var(--white); }
.hero__bar a:hover { color: var(--blood-hi); }

/* Kim jestem */
.statement { max-width: 24em; margin-bottom: 0; color: var(--white); font-size: clamp(1.35rem, 2.5vw, 2.05rem); line-height: 1.32; letter-spacing: -0.012em; }
.statement em { font-style: normal; color: var(--muted); }
.why { margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.why__q { margin: 0 0 14px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.why h2 { max-width: 16em; }

/* Wyzwania */
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 40px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.tile { display: flex; flex-direction: column; }
.tile__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) brightness(0.84); transition: filter .35s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile__img img, .tile:focus-visible .tile__img img { filter: none; transform: scale(1.03); }
.tile__play {
  position: absolute; left: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(7,7,7,.72); color: #fff; transition: background .2s ease;
}
.tile__play svg { width: 12px; height: 12px; margin-left: 2px; }
.tile:hover .tile__play { background: var(--blood); }
.tile__time {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; background: rgba(7,7,7,.78); color: var(--white);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}
.tile h3 { margin: 18px 0 6px; font: 600 1.05rem/1.3 var(--body); letter-spacing: -0.005em; transition: color .2s ease; }
.tile:hover h3 { color: var(--blood-hi); }
.tile p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.tile__more { margin-top: 12px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); }
.tile__more::after { content: ' →'; }
.tile:hover .tile__more { color: var(--blood-hi); }

.planned { margin-top: clamp(64px, 8vw, 104px); }
.planned h3.sub { margin-bottom: 20px; font: 500 0.72rem/1.4 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.planned__list { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.planned__list li {
  counter-increment: p;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px 24px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--line); transition: padding .25s ease;
}
.planned__list li:last-child { border-bottom: 1px solid var(--line); }
.planned__list li::before { content: counter(p, decimal-leading-zero); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.planned__list h3 { font: 600 1.05rem/1.3 var(--body); }
.planned__list p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.planned__list p:empty { display: none; }

/* System */
.system__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; }
.system h2 { margin-bottom: 20px; }
.system p { max-width: 34em; margin: 0; }

/* Newsletter — panel */
.newsletter { border-bottom: 0; padding-bottom: 0; }
.panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 7vw, 104px); align-items: end;
  padding: clamp(32px, 5vw, 72px);
  border: 1px solid var(--line);
  background: radial-gradient(110% 160% at 100% 0%, rgba(143, 10, 16, .22), transparent 60%), var(--panel);
}
.panel .label { margin-bottom: 28px; }
.panel h2 { margin-bottom: 20px; }
.panel p.lead { margin: 0; max-width: 28em; }
.form { display: flex; align-items: stretch; border-bottom: 1px solid var(--white); transition: border-color .2s ease; }
.form:focus-within { border-color: var(--blood-hi); }
.form input { flex: 1; min-width: 0; min-height: 56px; padding: 0; background: none; border: 0; outline: 0; color: var(--white); font: inherit; font-size: 1.1rem; }
.form input::placeholder { color: var(--muted); }
.form button { background: none; border: 0; padding: 0 0 0 20px; cursor: pointer; }
.form__msg { min-height: 1.6em; margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); }
.form__msg.is-on { color: var(--white); }

.form button:disabled { opacity: .5; cursor: progress; }
.signup.is-busy .form { border-color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; margin-top: 20px; font-size: 0.85rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input {
  appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid var(--muted); border-radius: 0; background: none; cursor: pointer;
  display: grid; place-items: center; transition: background .15s ease, border-color .15s ease;
}
.check input::after { content: ''; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .15s ease; }
.check input:checked { background: var(--blood); border-color: var(--blood); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check:hover input { border-color: var(--white); }
.signup__done:focus { outline: 0; }
.signup__big { margin: 0 0 8px; color: var(--white); font: 400 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.signup__done p:last-child { margin: 0; }

/* Kontakt */
.contact { border-bottom: 0; }
.contact__mail {
  display: inline-block; color: var(--white); overflow-wrap: anywhere;
  font-family: var(--display); font-size: clamp(1.6rem, 4.4vw, 3.2rem); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.01em;
  background: linear-gradient(var(--blood-hi), var(--blood-hi)) 0 100% / 100% 2px no-repeat; padding-bottom: 8px;
  transition: color .2s ease;
}
.contact__mail:hover { color: var(--blood-hi); }
.contact__note { margin: 28px 0 0; max-width: 30em; }
.contact__links { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-top: 20px; }

/* Stopka */
.footer { border-top: 1px solid var(--line); padding-block: 28px 36px; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer__hand { width: 210px; height: auto; margin-left: -30px; mix-blend-mode: screen; opacity: .75; }
.footer small { margin-left: auto; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Podstrona */
.page { padding-block: var(--gap); min-height: 70vh; }
.page h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 14em; margin-bottom: 28px; }
.page p { max-width: 34em; }
.page .link { margin-top: 20px; }
.draft { display: inline-block; margin-bottom: 28px; padding: 4px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* Strona misji */
.page .link--back { margin: 0 0 36px; color: var(--muted); }
.link--back::after { content: none; }
.link--back::before { content: '←'; transition: transform .2s ease; }
.link--back:hover::before { transform: translateX(-4px); }
.mission .label span { color: var(--muted); }
.mission h1 { margin-bottom: 16px; }
.mission__lead { font-size: 1.1rem; color: var(--text); }
.mission__lead:empty { display: none; }
.mission__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; margin-top: 40px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.player button { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.player img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); transition: filter .3s ease; }
.player button:hover img { filter: none; }
.player .tile__play { left: 50%; top: 50%; bottom: auto; width: 68px; height: 68px; translate: -50% -50%; background: var(--blood); }
.player .tile__play svg { width: 18px; height: 18px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.brief { margin: 0; }
.brief div { padding: 20px 0; border-top: 1px solid var(--line); }
.brief div:last-child { border-bottom: 1px solid var(--line); }
.brief dt { margin-bottom: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blood-hi); }
.brief dt::after { content: ' ›'; }
.brief dd { margin: 0; color: var(--white); font-size: 1.05rem; line-height: 1.5; }
.thought { margin-top: clamp(48px, 6vw, 80px); max-width: 44em; }
.thought .label { margin-bottom: 20px; }
.thought__text p { max-width: none; color: var(--white); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; }
.mission__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--line); }
.mission__nav .link { margin-top: 0; }
.mission__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 48px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); background: var(--panel); }
.mission__cta p { margin: 0; color: var(--white); }
[hidden] { display: none !important; }

/* Wejście sekcji */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (hover: hover) {
  .planned__list li:hover { padding-left: 12px; }
  .planned__list li:hover::before { color: var(--blood-hi); }
}

@media (max-width: 980px) {
  .sec { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sec > .label { position: static; padding-top: 0; }
}
@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--white); cursor: pointer;
  }
  .nav__toggle span, .nav__toggle span::before { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .2s ease, top .2s ease; }
  .nav__toggle span { position: relative; transform: translateY(-3px); }
  .nav__toggle span::before { content: ''; position: absolute; top: 7px; }
  .nav__toggle[aria-expanded='true'] span { transform: rotate(45deg); }
  .nav__toggle[aria-expanded='true'] span::before { top: 0; transform: rotate(-90deg); }
  .nav__in { gap: 12px; }
  .nav__in .btn { margin-left: auto; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: 8px var(--pad) 20px;
    background: var(--black); border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 16px 0; font-size: 0.8rem; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }

  .hero__photo { inset: 0; opacity: .55; }
  .hero__photo::after { background: linear-gradient(0deg, var(--black) 12%, rgba(7,7,7,.55) 60%, rgba(7,7,7,.3) 100%); }
  .hero__in { justify-content: flex-end; min-height: min(calc(100svh - 65px), 740px); padding-top: 120px; }
  .hero__in > .hero__cta { margin-bottom: 48px; }
  .hero__bar { gap: 10px 28px; }
  .hero__bar a { display: none; }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planned__list li { grid-template-columns: 36px minmax(0, 1fr); }
  .mission__grid { grid-template-columns: minmax(0, 1fr); }
  .planned__list p { grid-column: 2; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__cta .btn { width: 100%; }
  .footer small { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
