/* Karuzela realizacji na stronie głównej (#projects) — układ i ruch jak "Sesje i reportaże" (Yin Yang),
   typografia i kolory PixelExpert. Bez zaokrągleń poza okrągłymi strzałkami. */
.pf-reel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  isolation: isolate;
  letter-spacing: 0;
  scroll-margin-top: 0;
  overflow: hidden;
}
.pf-reel-feature { position: relative; min-width: 0; overflow: hidden; background: #0b0b0b; }
.pf-reel-layer { display: contents; }
.pf-reel-layer img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0%; opacity: 0; transition: opacity 380ms ease; }
.pf-reel-layer.is-visible img { opacity: 1; }
.pf-reel-feature::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.78)); pointer-events: none; }
.pf-reel-feature-copy { position: absolute; z-index: 1; bottom: 64px; left: clamp(20px, 4vw, 72px); right: clamp(20px, 4vw, 72px); color: #fff; }
.pf-reel .pf-reel-eyebrow { display: block; margin: 0; font: 600 12px/1.4 var(--font-primary); letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted-on-light); }
.pf-reel .pf-reel-feature-copy .pf-reel-eyebrow { color: var(--color-accent); }
.pf-reel .pf-reel-story { margin: 16px 0 28px; max-width: 16ch; font: 600 clamp(34px, 3.4vw, 52px)/1.06 var(--font-heading); letter-spacing: 0; word-spacing: .1em; white-space: pre-line; color: #fff; text-wrap: balance; }
.pf-reel-panel { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 88px 8% 56px; background: var(--color-bg-light); color: var(--color-text-on-light); }
.pf-reel .pf-reel-heading h2 { margin: 14px 0 18px; min-height: 2.08em; max-width: 14ch; font: 600 clamp(36px, 3.7vw, 56px)/1.06 var(--font-heading); letter-spacing: 0; word-spacing: .1em; color: var(--color-text-on-light); text-wrap: balance; }
.pf-reel .pf-reel-heading p { margin: 0; min-height: 4.8em; max-width: 48ch; font-size: 15px; line-height: 1.6; color: var(--color-muted-on-light); }
.pf-reel-stage { position: relative; margin-inline: -28px; padding-inline: 28px; }
.pf-reel-track { display: flex; gap: 8px; height: min(30svh, 320px); margin: 0; padding: 0; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pf-reel-track::-webkit-scrollbar { display: none; }
.pf-reel-item { position: relative; flex: 0 0 calc((100% - 24px) / 4); min-width: 0; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.pf-reel-card { position: absolute; inset: 0; display: block; overflow: hidden; background: #0b0b0b; color: #fff; text-decoration: none; -webkit-user-drag: none; }
.pf-reel-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; -webkit-user-drag: none; user-select: none; }
.pf-reel-card::after { content: ""; position: absolute; inset: 48% 0 0; background: linear-gradient(to top, rgba(0,0,0,.82), transparent); pointer-events: none; }
.pf-reel .pf-reel-card h3 { position: absolute; z-index: 1; bottom: 14px; left: 10px; right: 10px; margin: 0; font: 600 clamp(15px, 1.35vw, 20px)/1.1 var(--font-heading); letter-spacing: 0; color: #fff; overflow-wrap: anywhere; }
.pf-reel-card.is-current::before { content: ""; position: absolute; z-index: 2; inset: 0; border: 3px solid var(--color-accent); outline: 1px solid #000; outline-offset: -4px; pointer-events: none; }
.pf-reel-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.pf-reel .pf-reel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 32px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--color-text-on-light); cursor: pointer; transition: opacity 180ms ease; }
.pf-reel-arrow-prev { left: -5px; }
.pf-reel-arrow-next { right: -5px; }
.pf-reel-arrow i { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(26,26,26,.55); border-radius: 50%; background: var(--color-bg-light); font-size: 10px; transition: background 180ms ease; }
.pf-reel-arrow:disabled { opacity: .25; cursor: default; }
.pf-reel-arrow:hover:not(:disabled) i { background: var(--color-accent); border-color: #000; }
.pf-reel :is(a, button, [tabindex]):focus-visible { outline: 2px solid #000; outline-offset: 3px; box-shadow: 0 0 0 5px var(--color-accent); }
.pf-reel .pf-reel-card:focus-visible, .pf-reel .pf-reel-track:focus-visible { outline-offset: -5px; box-shadow: none; }
.pf-reel-footer { display: grid; gap: 30px; }
.pf-reel-position { display: flex; align-items: center; gap: 20px; min-width: 0; }
.pf-reel-counter { flex: 0 0 64px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-reel-progress { display: flex; gap: 6px; width: 220px; max-width: 100%; }
.pf-reel-progress span { flex: 1 1 0; height: 2px; background: rgba(26,26,26,.2); transition: background 180ms ease; }
.pf-reel-progress .is-current { background: #000; }
.pf-reel-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pf-reel .pf-reel-button { position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 46px; padding: 10px 12px; border: 1px solid #1A1A1A; border-radius: 0; background: transparent; color: #1A1A1A; font: 600 11px/1.4 var(--font-primary); letter-spacing: .12em; text-align: center; text-transform: uppercase; text-decoration: none; overflow: hidden; z-index: 0; transition: color 180ms ease; }
.pf-reel .pf-reel-button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform 280ms ease; }
.pf-reel .pf-reel-button:hover, .pf-reel .pf-reel-button:focus-visible { color: #000; }
.pf-reel .pf-reel-button:hover::before, .pf-reel .pf-reel-button:focus-visible::before { transform: scaleX(1); }
.pf-reel .pf-reel-button--light { width: auto; min-width: 220px; padding-inline: 28px; border-color: rgba(255,255,255,.8); color: #fff; }
.pf-reel [hidden] { display: none; }
@media (min-width: 1700px) {
  .pf-reel-panel { gap: 36px; }
  .pf-reel .pf-reel-heading h2 { font-size: 64px; }
  .pf-reel .pf-reel-heading p { font-size: 17px; }
  .pf-reel .pf-reel-story { font-size: 60px; }
  .pf-reel .pf-reel-card h3 { font-size: 23px; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .pf-reel-panel { padding-inline: 32px; gap: 22px; }
  .pf-reel .pf-reel-heading h2 { font-size: 34px; }
  .pf-reel .pf-reel-heading p { font-size: 13px; min-height: 6.4em; }
  .pf-reel-feature-copy { bottom: 48px; left: 28px; right: 28px; }
  .pf-reel .pf-reel-story { font-size: 34px; }
  .pf-reel-track { height: min(27svh, 220px); }
  .pf-reel .pf-reel-card h3 { font-size: 11.5px; left: 5px; right: 5px; bottom: 10px; overflow-wrap: break-word; }
  .pf-reel-stage { margin-inline: -24px; padding-inline: 24px; }
  .pf-reel .pf-reel-arrow { width: 28px; }
  .pf-reel-actions { gap: 8px; }
  .pf-reel .pf-reel-button { font-size: 10px; padding-inline: 6px; letter-spacing: .08em; }
  .pf-reel .pf-reel-button--light { min-width: 0; }
}
@media (min-width: 700px) and (max-height: 750px) {
  .pf-reel-panel { padding-top: 84px; padding-bottom: 28px; gap: 16px; }
  .pf-reel .pf-reel-heading h2 { font-size: 36px; margin-block: 10px; }
  .pf-reel .pf-reel-heading p { font-size: 13px; min-height: 4.8em; }
  .pf-reel-track { height: 27svh; }
  .pf-reel-footer { gap: 16px; }
  .pf-reel-feature-copy { bottom: 36px; }
  .pf-reel .pf-reel-story { font-size: 38px; }
}
@media (max-width: 699px) {
  .pf-reel { display: block; color: #fff; }
  .pf-reel-feature { position: absolute; inset: 0; z-index: -1; }
  .pf-reel-feature::after { inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.24) 22%, rgba(0,0,0,.8) 62%, rgba(0,0,0,.9)); }
  .pf-reel-feature-copy { display: none; }
  .pf-reel-panel { height: 100%; padding: 84px 28px max(84px, env(safe-area-inset-bottom)); justify-content: flex-end; gap: 18px; background: transparent; color: #fff; }
  .pf-reel .pf-reel-heading .pf-reel-eyebrow { color: var(--color-accent); font-size: 10px; }
  .pf-reel .pf-reel-heading h2 { font-size: 34px; min-height: 2.12em; max-width: 13ch; margin: 10px 0; color: #fff; }
  .pf-reel .pf-reel-heading p { font-size: 13px; line-height: 1.5; min-height: 4.5em; color: rgba(255,255,255,.9); }
  .pf-reel-stage { margin-inline: -20px; padding-inline: 20px; }
  .pf-reel-track { height: min(23svh, 188px); }
  .pf-reel-item { flex-basis: calc((100% - 12px) / 2.25); }
  .pf-reel .pf-reel-card h3 { font-size: 17px; left: 9px; right: 9px; bottom: 12px; }
  .pf-reel .pf-reel-arrow { width: 30px; color: #fff; }
  .pf-reel-arrow i { background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.7); }
  .pf-reel-position { gap: 16px; }
  .pf-reel-counter { color: #fff; }
  .pf-reel-progress { flex: 1; }
  .pf-reel-progress span { background: rgba(255,255,255,.3); }
  .pf-reel-progress .is-current { background: var(--color-accent); }
  .pf-reel-footer { gap: 18px; }
  .pf-reel-actions { gap: 8px; }
  .pf-reel .pf-reel-button { color: #fff; border-color: rgba(255,255,255,.65); font-size: 10px; padding: 8px; min-height: 44px; letter-spacing: .08em; }
  .pf-reel .pf-reel-button:hover, .pf-reel .pf-reel-button:focus-visible { color: #000; }
  .pf-reel :is(a, button, [tabindex]):focus-visible { outline-color: #fff; }
}
@media (max-width: 699px) and (max-height: 700px) {
  .pf-reel-panel { padding: 74px 26px 76px; gap: 12px; }
  .pf-reel .pf-reel-heading h2 { font-size: 30px; margin: 8px 0; }
  .pf-reel .pf-reel-heading p { font-size: 12px; }
  .pf-reel-track { height: 22svh; }
  .pf-reel .pf-reel-card h3 { font-size: 15px; left: 6px; right: 6px; bottom: 10px; }
  .pf-reel-footer { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pf-reel *, .pf-reel *::before { transition: none !important; } }
