/* ============================================================
   PIPELINE (.pp_* - cykl ofertowy 4 kroki)
   Auto-extracted from index.html (single source of truth).
   Edit here; index.html only links these files.
   ============================================================ */
.pp_pin {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}
.pp_track {
    position: relative;
    height: 240vh;
}
.pp_stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    align-items: center;
}
.pp_panels {
    position: relative;
    width: 100%;
    height: min(760px, 86vh);
}
.pp_panel {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pp_panel.is_active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.pp_text { position: relative; }
.pp_num {
    font-family: var(--serif);
    font-variation-settings: "opsz" 144, "wght" 300;
    font-style: normal;
    font-size: 110px;
    line-height: 0.9;
    color: var(--navy);
    letter-spacing: -0.03em;
    margin: 0 0 28px;
    display: block;
    opacity: 0.92;
}
.pp_kicker {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--oxblood);
    margin: 0 0 14px;
}
.pp_title {
    font-family: var(--sans-d);
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.012em;
    color: var(--ink);
    margin: 0 0 20px;
}
.pp_desc {
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin: 0 0 32px;
    max-width: 460px;
}
.pp_meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--hairline);
    padding-top: 22px;
    max-width: 480px;
}
.pp_meta_row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    align-items: baseline;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.5;
}
.pp_meta_k {
    color: var(--ink-faint);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
}
.pp_meta_v {
    color: var(--ink);
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}
.pp_meta_v code {
    font-family: var(--mono);
    font-size: 12px;
    background: var(--navy-soft);
    color: var(--navy);
    padding: 1px 6px;
    border-radius: 3px;
}

.pp_visual {
    position: relative;
    border: 1px solid rgba(245, 241, 237, 0.08);
    background-color: var(--ink);
    background-image:
        radial-gradient(58% 46% at 22% 28%, rgba(187, 13, 41, 0.24), transparent 72%),
        radial-gradient(54% 50% at 78% 76%, rgba(20, 49, 91, 0.32), transparent 74%),
        radial-gradient(40% 32% at 50% 50%, rgba(245, 241, 237, 0.04), transparent 80%);
    background-size: 220% 220%, 220% 220%, 180% 180%;
    background-position: 0% 0%, 100% 100%, 50% 50%;
    background-repeat: no-repeat;
    animation: pp_xray 22s ease-in-out infinite alternate;
    border-radius: 4px;
    padding: 32px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 30px 60px -40px rgba(0, 0, 0, 0.55),
        0 1px 3px rgba(0, 0, 0, 0.35);
}
@keyframes pp_xray {
    0%   { background-position: 0% 0%,    100% 100%, 50% 50%; }
    35%  { background-position: 70% 25%,  20% 80%,   40% 60%; }
    65%  { background-position: 100% 60%, 0% 30%,    60% 40%; }
    100% { background-position: 30% 100%, 80% 10%,   45% 55%; }
}
.pp_visual::before {

    content: "";
    position: absolute;
    top: 14px; left: 14px;
    width: 12px; height: 12px;
    border-top: 1px solid rgba(245, 241, 237, 0.22);
    border-left: 1px solid rgba(245, 241, 237, 0.22);
}
.pp_visual::after {
    content: "";
    position: absolute;
    bottom: 14px; right: 14px;
    width: 12px; height: 12px;
    border-bottom: 1px solid rgba(245, 241, 237, 0.22);
    border-right: 1px solid rgba(245, 241, 237, 0.22);
}
.pp_visual_caption {
    position: absolute;
    bottom: 14px; left: 18px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 241, 237, 0.50);
}
.pp_visual_label {
    position: absolute;
    top: 14px; right: 18px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 241, 237, 0.50);
}
.pp_svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pp_svg .stroke-hair { stroke: var(--hairline-2); fill: none; }
.pp_svg .stroke-ink  { stroke: var(--ink); fill: none; }
.pp_svg .stroke-navy { stroke: var(--navy); fill: none; }
.pp_svg .stroke-ox   { stroke: var(--oxblood); fill: none; }
.pp_svg .fill-paper  { fill: var(--paper-card); }
.pp_svg .fill-navy   { fill: var(--navy); }
.pp_svg .fill-ox     { fill: var(--oxblood); }
.pp_svg .fill-ink    { fill: var(--ink); }
.pp_svg .fill-faint  { fill: var(--ink-faint); }
.pp_svg .mono { font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em; }
.pp_svg .mono-sm { font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; }
.pp_svg .sans { font-family: var(--sans); font-size: 11px; }

.pp_svg .stroke-hair-d { stroke: rgba(245, 241, 237, 0.20); fill: none; }
.pp_svg .stroke-navy-d { stroke: rgba(245, 241, 237, 0.55); fill: none; }
.pp_svg .fill-faint-d  { fill: rgba(245, 241, 237, 0.55); }
.pp_svg .fill-light    { fill: rgba(245, 241, 237, 0.88); }

.pp_svg .dash { stroke-dasharray: 3 3; }

.pp_visual .draw {
    stroke-dasharray: var(--len, 600);
    stroke-dashoffset: var(--len, 600);
    transition: stroke-dashoffset 1680ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms);
}
.pp_visual.in .draw { stroke-dashoffset: 0; }
.pp_visual .pop {
    opacity: 0;
    transform: translateY(6px);
    transform-origin: center;
    transition: opacity 720ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms),
                transform 720ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms);
}
.pp_visual.in .pop { opacity: 1; transform: translateY(0); }

/* uwaga: świadomie NIE respektujemy prefers-reduced-motion dla pp_visual /
   mod_visual / intel_term - to subtelne fade/draw, nie jarring; brand-style
   reveal, identyczna logika jak hero-pipeline (patrz brand-logo-animation.md) */

@media (max-width: 980px) {
    .pp_pin { padding: 0 24px; }
    .pp_track { height: auto; }
    .pp_stage {
        position: static;
        height: auto;
        display: block;
    }
        .pp_panels {
        position: static;
        height: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
        gap: 72px;
    }
    .pp_panel {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .pp_num { font-size: 80px; margin-bottom: 16px; }
    .s_head { padding: 0 24px; margin-bottom: 64px; }
    .pipeline { padding: 96px 0 64px; }
}

