
/* SEKCJA HERO */

.hero__section{
    position: relative;
    width: 100vw;
    min-height: 100dvh;
    padding-top: 50px;
    background-color: var(--bg-light);
    overflow: hidden;
    display: flex;
    z-index: 1;
}

.hero__left{
    width: 45vw;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2vh 2vw
}

.hero__title{
    display: flex;
    flex-direction: column;
    font-size: 0;
    margin-top: 10vh;
    margin-bottom: 0;
}

.hero__title .h2-wrapper {
    display: block;
    overflow: hidden;
    width: 100%;
}

.hero__title-line {
    display: block;
    font-size: clamp(2.25rem, 6vw, 6.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
    will-change: transform;
}

.hero__subtitle{
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    margin-bottom: 5vh;
}

.hero__right {
    width: 55vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4vh 3vw;
    gap: 1.5rem;
}

.hero__video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    margin-top: 5vh;
}
.hero__description{
    font-family: 'Marble PL', sans-serif;
    font-size: clamp(1rem, 3vw, 2rem);
    line-height: 1.22;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-wrap: pretty;
    margin-bottom: 5vh;
}

.hero__description-v2{
    display: none;
}

.hero__video .hero__title .hero__subtitle .hero__description {
    will-change: transform, opacity;
}

@media (min-width: 1025px) and (max-width: 1440px),
       (min-width: 1025px) and (max-height: 900px) {
    .hero__title {
        margin-top: 5vh;
    }

    .hero__title-line {
        font-size: clamp(2rem, 4.5vw, 4rem);
    }

    .hero__subtitle{
        padding-bottom: 5vh;
    }
    .hero__video {
        width: 100%;
        margin-top: 0;
    }

    .hero__description {
        font-size: clamp(1rem, 2vw, 1.25rem);
        margin-bottom: 2vh;
    }

    .hero__right{
        gap: 0.5rem;
    }
}

@media (max-width: 1024px) {
    .hero__section{
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        min-height: auto;
        overflow: visible;
        padding: 8rem 5vw 4rem;
        gap: 2.5rem;
    }

    .hero__left,
    .hero__right {
        width: 100%;
        height: auto;
        padding: 0;
    }

    .hero__left {
        gap: 2rem;
    }

    .hero__title {
        margin-top: -2rem;
    }

    .hero__title .hero__title-line {
        font-size: 2.75rem;
        line-height: 0.98;
        
    }

    .hero__subtitle {
        display: none;
    }

    .hero__right {
        gap: 1.75rem;
    }

    .hero__right > a {
        width: 100%;
        display: block;
    }

    .hero__video {
        width: 100%;
        border-radius: 14px;
        aspect-ratio: 4 / 5;
        margin-top: -2rem;
    }

    .hero__description-v2 {
        display: block;
        font-family: 'Marble PL', sans-serif;
        font-size: clamp(1.15rem, 3vw, 1.75rem);
        line-height: 1.22;
        font-weight: 400;
        letter-spacing: -0.01em;
        text-wrap: pretty;
        margin-bottom: 5vh;

        will-change: transform, opacity;
    }

    .hero__description {
        display: none;
    }
}

.hero-magnetic-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.magnetic-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(175px, 22vw, 350px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px solid var(--text-dark);
    background-color: transparent;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
    text-decoration: none !important;
}

.magnetic-btn-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    aspect-ratio: 1 / 1;
    background-color: var(--text-dark);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.magnetic-btn:hover .magnetic-btn-bg {
    transform: translate(-50%, -50%) scale(1);
}

.magnetic-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    color: var(--text-dark);
    mix-blend-mode: difference;
    transition: color 0.4s ease;
}

.magnetic-btn:hover .magnetic-btn-content {
    color: #ffffff;
}

.magnetic-icon {
    width: 30px;
    height: 30px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.magnetic-btn:hover .magnetic-icon {
    transform: rotate(45deg);
}

.magnetic-text {
    font-family: 'Marble PL', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

/* DO ANIMACJI GSAP — ukryte do loaderFinished */
.hero__section .hero__title,
.hero__section .hero__subtitle,
.hero__section .hero__description,
.hero__section .hero__video {
    visibility: hidden;
}

/* MEDIA DLA SEKCJI HERO */




/* SEKCJA INTRO DO PORTFOLIO  */

.portfolio-intro{
    background: #0b0b0b;
    padding: 20vh 10vw;
    border-radius: 80px 80px 0 0 ;
    position: relative;
    z-index: 10;
}
.intro-label {
    display: block;
    font-family: 'Marble PL', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2rem;
}
.intro-title {
    font-family: 'Marble PL', sans-serif;
    font-size: clamp(3rem, 6vw, 8rem);
    line-height: 0.9;
    color: #fff;
    margin-bottom: 4rem;
}

/* MEDIA DLA CIEMNE INTRO  */
@media (max-width: 1024px) {
    .portfolio-intro{
        border-radius: 40px 40px 0 0;
        margin: 0 auto;
        padding: 12vh 4vw;
        width: 100%;
        max-width: 100%;
    }

    .intro-title{
        font-family: 'Marble PL', sans-serif;
        font-weight: 700;
        font-size: clamp(2.5rem, 7vw, 3rem);
        line-height: 1.1;
        margin-bottom: 2rem;
    }
    .intro-label{
        letter-spacing: 0.1em;
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }
}


/* JASNA SEKCJA PRZEJSCIE  */
.cta-light {
    background-color: #F4F4F5;
    color: #0b0b0b;
    padding: 20vh 5vw;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 6vw;
}

.cta-text {
    flex: 1 1 auto;
    max-width: 82%;
    min-width: 0;
}

.cta-text h2 {
    font-family: 'Marble PL', sans-serif;
    font-size: clamp(2.5rem, 3.25vw, 3rem);
    line-height: 1.22;
    font-weight: 500;
    letter-spacing: -0.01em;
    max-width: none;
}

.cta-button-wrap {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

.cta-light .magnetic-btn {
    color: #0b0b0b;
    border-color: rgba(11, 11, 11, 0.2);
}

.cta-light .magnetic-btn-bg {
    background: #0b0b0b;
}

.cta-light .magnetic-btn:hover {
    color: #ffffff;
}


@media (min-width: 1025px) and (max-width: 1440px),
       (min-width: 1025px) and (max-height: 900px) {
    .cta-text h2{
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .magnetic-btn{
        width: clamp(200px, 30vw, 250px);
    }

    .cta-light{
        padding: 15vh 10vw;
    }
}
/* MEDIA DLA SEKCJA JASNA PRZEJSCIE  */
@media (max-width: 1024px){

    .cta-light{
        display: block;
        min-height: auto;
        padding: 10vh 5vw;
    }
    .cta-flex{
        flex-direction: column;
        gap: 4vh;
        align-items: flex-start;
    }
    .cta-text {
        width: 100%;
        text-align: left; 
    }
    .cta-text {
        max-width: 100%;
    }

    .cta-text h2 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.18;
        max-width: 100%;
    }
    .cta-button-wrap {
        width: 100%;
        display: flex;
        justify-content: flex-start; 
        align-self: flex-start;
        text-align: center;
    }

    .magnetic-btn{
        width: clamp(200px, 30vw, 350px);
    }


    
}

/* CIEMNA SEKCJA INTRO PORTFOLIO */
.section-dark-reveal {
    background-color: #0b0b0b;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    clip-path: inset(100% 0% 0% 0%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reveal-content {
    padding: 10vw;
}

/* Dostosowanie magnetic buttona do jasnego tła */
.cta-light .circle-btn {
    border: 1px solid rgba(11, 11, 11, 0.2);
    color: #0b0b0b;
}

.cta-light .circle-btn:hover {
    background: #0b0b0b;
    color: #ffffff;
}


/* SEKCJA PORTFOLIO TUNEL 3D   */

.flow {
    height: 100vh;
    background: #0b0b0b;
    position: relative;
    overflow: hidden;
    z-index: 20;
}

.flow-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 2000px;
}

.flow .img {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 450px;
}

@media (min-width: 1025px) and (max-width: 1440px),
       (min-width: 1025px) and (max-height: 900px) {

    .flow .section-text {
        width: 70% !important;
    }

    .flow .section-text p {
        font-size: clamp(1rem, 4vw, 1.4rem) !important;
    }

    .flow .img{
        width: 500px;
        height: 250px;
    }
}

@media (max-width: 1024px) {
    .flow .img{
        width: 600px;
        height: 400px;
    }

    .flow .img img{
        border-radius: 25px;
    }
}
.flow .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.flow .img.cover {
    width: 100%;
    height: 100%;
    position: relative;
}

.flow .img.cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.flow .section-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    color: #ffffff;
    font-family: 'Marble PL', sans-serif;
    width: 100%;
    pointer-events: none;
}

.flow .section-text p {
    font-family: 'Marble PL',
        sans-serif;
    font-size: clamp(1.5rem, 5vw, 2rem);
    letter-spacing: 0.05em;
    opacity: 0.9;
}



.flow .img.final-white-section{
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Biały finał pokrywa cały ekran OD RAZU (płaski 2D, bez transformu 3D).
       Dzięki temu wyłanianie to czysty fade opacity — zero czarnej połowy
       i zero "doskoku" przy przejściu w stan settled. */
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
}
.flow .img.final-white-section::after {
    display: none;
}

/* Po zakończeniu tunelu — płaski, pełnoekranowy slajd (fix Android GPU) */
.flow.flow--settled .flow-images {
    perspective: none;
    transform: none;
}
.flow.flow--settled .img.final-white-section.is-settled {
    position: absolute;
    inset: 0;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: 200;
}
.final-content {
    display: grid !important;
    grid-template-columns: 1fr;
    position: relative;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
    opacity: 0;
}



.final-content-left {
    width: 100%;
    min-height: 100vh;
    padding: 8vh clamp(1.5rem, 4vw, 3rem);
    padding-right: clamp(280px, 36vw, 580px);
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.final-content-inner {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(2rem, 4vh, 3.5rem);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.final-content-left h2.cta-text {
    font-family: 'Marble PL', sans-serif;
    font-size: clamp(2.5rem, 3.25vw, 3rem);
    line-height: 1.22;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: none;
    max-width: 100%;
    margin: 0;
    text-align: center;
}

.stats-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    width: 100%;
    margin-top: clamp(2.5rem, 5vh, 4rem);
    padding-top: clamp(2rem, 4vh, 3rem);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-family: 'Marble PL', sans-serif;
    font-size: clamp(2.25rem, 3.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #0b0b0b;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.7rem, 0.95vw, 0.82rem);
    font-weight: 500;
    line-height: 1.35;
    color: rgba(11, 11, 11, 0.55);
    max-width: 14ch;
    text-align: center;
}

.final-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-top: clamp(2.5rem, 5vh, 4rem);
}

.final-scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(11, 11, 11, 0.45);
}

.final-scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: rgba(11, 11, 11, 0.55);
    animation: finalScrollBounce 2s ease-in-out infinite;
}

.final-scroll-line {
    display: block;
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(11, 11, 11, 0.08), rgba(11, 11, 11, 0.45));
    position: relative;
    overflow: hidden;
}

.final-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b0b0b;
    animation: finalScrollLine 1.8s ease-in-out infinite;
}

@keyframes finalScrollLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

@keyframes finalScrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.final-content-right {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: clamp(280px, 32vw, 550px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.01);
}

@media (min-width: 1025px) and (max-width: 1440px),
       (min-width: 1025px) and (max-height: 900px) {
    
    .final-content-right .magnetic-btn{
        width: clamp(200px, 30vw, 250px) !important;
    }

        .final-content-left {
            justify-content: center !important;
            align-items: center !important;
            text-align: center !important;
        }
    
        .final-content-inner {
        align-items: center !important; 
        justify-content: center !important; 
        height: 100% !important;
        padding: 5vh 0 !important;
    }

    .final-content-left h2.cta-text {
        width: 100% !important; 
        text-align: center !important; 
        font-size: clamp(2.5rem, 4vw, 3.5rem) !important;
        line-height: 1.1 !important;
        margin-top: 0 !important;
    }


}

/* RESPONSYWNOŚĆ */
@media (max-width: 1024px) {
    .final-content-left {
        padding-right: clamp(1.5rem, 4vw, 3rem);
    }

    .final-content-right {
        width: clamp(240px, 28vw, 320px);
    }
}



.btn-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


.final-content h2 {
    font-family: 'Marble PL', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}
.final-content p{
    margin-top: 5vh;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.25rem, 6vw, 1.75rem);
    line-height: 1.1;
    font-weight: 600;

}


@media (max-width: 768px) {

    .flow-images .img {
        width: 500px;
        height: 325px;
    }

    /* Tło tunelu jaśnieje gdy biały finał wjeżdża — zero czarnego prześwitu */
    .flow.flow--final {
        background-color: var(--bg-light);
    }

    .flow .final-white-section.final-detached {
        position: absolute !important;
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        overflow: hidden !important;
        z-index: 60 !important;
        background-color: var(--bg-light) !important;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    .flow .final-white-section.final-detached::after {
        display: none !important;
    }

    /* 2. ZAWARTOŚĆ - wyśrodkowana, ograniczona do najmniejszego viewportu (nigdy ucięta przez pasek adresu) */
    .final-content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100svh !important;
        padding: max(4vh, env(safe-area-inset-top)) 6vw max(4vh, env(safe-area-inset-bottom)) !important;
        transform: none !important;
        position: relative !important;
    }

    .final-content-inner {
        max-width: 100% !important;
    }

    .final-content-left {
        width: 100% !important;
        min-height: auto !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .final-content-left h2.cta-text {
        font-size: clamp(1.25rem, 7vw, 1.75rem) !important;
        line-height: 1.18 !important;
        font-weight: 500 !important;
        text-transform: none !important;
        max-width: 100% !important;
        text-align: left !important;
        padding-top: 0 !important;
    }

    .stats-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        text-align: center;
        gap: 8px !important;
        margin-top: 3vh !important;
        padding-top: 3vh !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        width: 100% !important;
    }

    .stat-item {
        flex: 1 !important;
        gap: 5px !important;
    }

    .stat-number {
        font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
        max-width: 100% !important;
    }

    .final-scroll-hint {
        margin-top: 4vh !important;
        gap: 0.65rem !important;
    }

    .final-scroll-text {
        font-size: 0.65rem !important;
        letter-spacing: 0.14em !important;
    }

    .final-scroll-line {
        height: 32px !important;
    }

    .btn-wrapper .hero-magnetic-wrapper:nth-child(2) {
        display: none !important;
    }

    .final-content-right {
        display: none;
    }

    .btn-wrapper {
        display: flex !important;
        width: auto !important;
        text-align: center;
    }
}





.scroll-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
    opacity: 0;
    bottom: 40px;
}

.scroll-text {
    font-family: 'Marble PL', sans-serif;
    font-size: 13px;
    letter-spacing: 0.3em;
    color: #000;
}

.scroll-line-container {
    width: 1px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line-fill {
    width: 100%;
    height: 100%;
    background-color: #000;
    position: absolute;
    top: -100%;
}


/* SEKCJA CIEMNA PRZEJŚCIE PRZEZ HORIZONTAL */
.portfolio-intro2 {
    background: #030303;
    padding: 20vh 10vw;
    border-radius: 40px 40px 0 0;
    position: relative;
    z-index: 30;
    overflow: hidden;
}
.portfolio-intro2 .container {
    position: relative;
    z-index: 2;
}

.intro-label2 {
    display: block;
    font-family: 'Marble PL', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.intro-title2 {
    font-family: 'Marble PL', sans-serif;
    font-size: clamp(3rem, 6vw, 8rem);
    line-height: 0.9;
    color: #fff;
    margin-bottom: 4rem;
}

/* MEDIA DLA CIEMNE INTRO 2 */
@media (max-width: 1024px) {
    .portfolio-intro2 {
        border-radius: 40px 40px 0 0;
        margin: 0 auto;
        padding: 12vh 4vw;
        width: 100%;
        max-width: 100%;
    }

    .intro-title2 {
        font-family: 'Marble PL', sans-serif;
        font-weight: 700;
        font-size: clamp(2.5rem, 7vw, 3rem);
        line-height: 1.1;
        margin-bottom: 2rem;
    }

    .intro-label2 {
        letter-spacing: 0.1em;
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }
}




/* SEKCJA HORYZONTALNA  */
.ws-horizontal-wrapper {
    overflow: hidden;
    width: 100%;
    height: 100vh;
}

.ws-horizontal-container {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    height: 100%;
}



.panel-impact {
    background-color: #030303;
    color: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.ws-noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.ws-impact-heading-wrapper {
    position: absolute;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.ws-massive-heading {
    font-family: 'Marble', sans-serif;
    font-size: 8.5vw;
    font-weight: 800;
    /* ExtraBold */
    line-height: 0.85;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: -0.02em;
    margin: 0;
}


.ws-line-mask {
    overflow: hidden;
    display: block;
    padding-bottom: 0.5vw;
}


.ws-word {
    display: inline-block;
    transform: translateY(120%);
    will-change: transform, opacity, color;
    -webkit-transform: translateZ(0);
}

.ws-word-2 {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
}

.ws-truth-wrapper {
    position: absolute;
    left: 85vw;
    width: 75vw;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 2;
}

.ws-truth-content {
    max-width: 60vw;
    margin-left: 5vw;
}

.ws-truth-paragraph {
    font-family: 'Marble', sans-serif;
    font-size: clamp(1.2rem, 2vw, 4rem);
    line-height: 1.6;
    font-weight: 300;
    /* Light */
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2vw;
}


.ws-truth-line {
    height: 1px;
    background-color: #ffffff;
    width: 0%;
    opacity: 0.4;
}


/* KONTENER PANELU KOŃCOWEGO */
.panel-outro {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #030303;
    padding: 0 5vw;
    text-align: center;
}

.outro-content {
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* NAGŁÓWEK */
.outro-heading {
    font-family: 'Marble', sans-serif;
    font-size: clamp(2rem, 8vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    color: #ffffff;
    margin: 1.5vw 0;
    text-transform: uppercase;
    text-wrap: pretty;
    word-break: normal;
    overflow-wrap: normal;
}

.outro-desc {
    font-family: 'Marble', sans-serif;
    font-size: 1.1vw;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    max-width: 35vw;
    margin-bottom: 3vw;
    line-height: 1.5;

}

.word-mask {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
    padding: 0.15em 0;
    margin: -0.15em 0;
}

.word-inner {
    will-change: transform, opacity;
}


/* PRZYCISK CTA */



.magnetic-btn.is-light {
    border-color: #ffffff;
    border-width: 2px;
}


@media (min-width: 1025px) and (max-width: 1440px),
       (min-width: 1025px) and (max-height: 900px) {
    .panel-outro .magnetic-btn{
        width: clamp(200px, 30vw, 250px) !important;
    }

    .panel-outro .outro-heading{
        font-size: clamp(2rem, 7vw, 6rem) !important;
    }
}
@media (max-width: 1024px) {
    .panel-outro {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        min-height: 100vh;
        box-sizing: border-box;
        padding: max(3vh, env(safe-area-inset-top, 0px)) 6vw max(3vh, env(safe-area-inset-bottom, 0px));
        overflow: hidden;
        justify-content: center;
        align-items: center;
    }

    .outro-content {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        gap: clamp(1.25rem, 3.5vh, 2rem);
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .card-tag-outro {
        font-family: 'Marble PL', sans-serif;
        font-size: 0.7rem;
        font-weight: 400;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-light);
        margin-bottom: 0;
    }

    .outro-heading-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .outro-heading {
        font-family: 'Marble PL', sans-serif;
        font-size: clamp(2rem, 8.5vw, 2.75rem);
        font-weight: 700;
        line-height: 1.1;
        margin: 0;
        max-width: 100%;
    }

    .panel-outro .hero-magnetic-wrapper {
        margin-top: clamp(0.5rem, 1.5vh, 1rem);
    }

    .panel-outro .magnetic-btn {
        width: clamp(132px, 36vw, 168px);
    }

    .panel-outro .magnetic-btn-content {
        gap: 6px;
    }

    .panel-outro .magnetic-icon {
        width: 20px;
        height: 20px;
    }

    .panel-outro .magnetic-text {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }
}



@media (max-width: 768px) {

    .ws-horizontal-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        height: 100vh !important;
        background: #030303 !important;
    }

   
    .ws-horizontal-wrapper {
        background: #030303 !important;
    }

        .panel-impact {
            width: 300vw !important;
            height: 100vh !important;
            flex-shrink: 0 !important;
            padding: 0 !important;
        }
    
        /* Odsuwamy główny nagłówek od ścian */
    .ws-impact-heading-wrapper { 
        width: 90vw !important; 
        left: 5vw !important;   
    }
    
    .ws-massive-heading { 
        font-size: 11.5vw !important; 
        word-wrap: break-word !important;
    }

    .ws-word-2 {
        color: #ffffff !important;
        -webkit-text-stroke: 0 !important;
    }
    
        
        .ws-truth-wrapper {
            left: 210vw !important;
            width: 90vw !important;
        }
        .ws-truth-content {
            max-width: 100% !important;
            margin-left: 0 !important;
        }
        .ws-truth-paragraph {
            font-size: 4.5vw !important;
            line-height: 1.2 !important;
        }

    .panel-arsenal {
        width: 400vw !important;
        height: 100vh !important;
        flex-shrink: 0 !important;
        display: block !important;
        position: relative !important;
        border-left: none !important;
    }

    /* Tytuł sekcji */
    .arsenal-fixed {
        width: 80vw !important;
        height: 100vh !important;
        position: absolute !important;
        left: 5vw !important;
        top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    .arsenal-title {
        font-size: 12vw !important;
        white-space: normal !important;
    }

    /* 4. KARTY: Twarde pozycjonowanie absolutne jak w czołgu */
    .panel-arsenal .card,
    .panel-arsenal .card-1,
    .panel-arsenal .card-2,
    .panel-arsenal .card-3 {
        position: absolute !important;
        /* Tak jak miałeś na PC */
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 90vw !important;
        /* Karta na prawie cały telefon */
        height: 75vh !important;
        margin: 0 !important;
        padding: 6vw !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* MATEMATYKA NA SZTYWNO (Każda karta na oddzielnym ekranie) */
    .panel-arsenal .card-1 {
        left: 100vw !important;
    }

    /* Pierwsza za tytułem */
    .panel-arsenal .card-2 {
        left: 200vw !important;
    }

    /* Druga */
    .panel-arsenal .card-3 {
        left: 300vw !important;
    }

    /* Trzecia */

    /* TYPOGRAFIA (Zabezpieczona) */
    .card-tag {
        font-size: 3.5vw !important;
        margin-bottom: 3vw !important;
    }

    .card h3 {
        font-size: 7.5vw !important;
        margin-bottom: 2vw !important;
        line-height: 1.1 !important;
    }

    .card-desc {
        font-size: 4vw !important;
        margin-bottom: auto !important;
        max-width: 100% !important;
    }

    .card-metrics {
        gap: 3vw !important;
        padding-top: 4vw !important;
    }

    .metric-row {
        padding-bottom: 2vw !important;
        gap: 2vw !important;
    }

    .m-label {
        font-size: 3vw !important;
        width: 45% !important;
        margin-top: 0 !important;
    }

    .m-value {
        font-size: 3.5vw !important;
        width: 55% !important;
        text-align: right !important;
    }

    .card-hook {
        font-size: 3.5vw !important;
        margin-top: 4vw !important;
        padding-top: 4vw !important;
    }

    .hook-arrow {
        font-size: 5vw !important;
    }

    /* 5. OUTRO: w poziomym scrollu — sztywny slajd 100vh */
    .panel-outro {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        flex-shrink: 0 !important;
        margin-left: 0 !important;
    }
}






/* SEKCJA OFERTY  */



#px-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9995;
}

/* ══════════════ TECH SECTION ══════════════ */
.tech-section {
    display: grid;
    grid-template-columns: 37% 63%;
    align-items: start;
    width: 100vw;
    min-height: 230vh;
    position: relative;
    background: #030303;
}

/* Lewa kolumna — pin: initTechSectionSticky() w page-home.js */
.s-left {
    --s-left-tier: #E8572A;
    grid-column: 1;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 20;
    border-right: 1px solid rgba(244, 244, 245, 0.06);
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
}

.s-left__fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.s-left__grain {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.s-left__glow {
    position: absolute;
    top: 18%;
    right: -12%;
    width: min(42vw, 320px);
    height: min(42vw, 320px);
    border-radius: 50%;
    background: radial-gradient(circle, var(--s-left-tier) 0%, transparent 68%);
    filter: blur(70px);
    opacity: 0.28;
    transition: background 0.85s ease, opacity 0.5s ease;
}

.s-left__ghost {
    position: absolute;
    right: -0.08em;
    bottom: 0.02em;
    font-family: 'Marble PL', sans-serif;
    font-weight: 800;
    font-size: clamp(9rem, 22vw, 16rem);
    line-height: 0.82;
    letter-spacing: -0.06em;
    color: var(--s-left-tier);
    opacity: 0.055;
    user-select: none;
    transition: color 0.85s ease, opacity 0.5s ease, transform 0.9s cubic-bezier(.16, 1, .3, 1);
}

.s-left.is-tier-active .s-left__ghost {
    opacity: 0.1;
    transform: scale(1.03) translateX(-4px);
}

.s-left__orbit {
    position: absolute;
    top: 50%;
    right: -18%;
    width: min(52vw, 340px);
    height: min(52vw, 340px);
    transform: translateY(-50%) rotate(-90deg);
    opacity: 0.55;
}

.s-left__orbit-track {
    fill: none;
    stroke: rgba(244, 244, 245, 0.06);
    stroke-width: 1;
}

.s-left__orbit-fill {
    fill: none;
    stroke: var(--s-left-tier);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    filter: drop-shadow(0 0 8px var(--s-left-tier));
    transition: stroke 0.85s ease;
}

.s-left__beam {
    position: absolute;
    top: 8vh;
    right: 0;
    width: 3px;
    height: 84vh;
}

.s-left__beam-track {
    stroke: rgba(244, 244, 245, 0.08);
    stroke-width: 2;
}

.s-left__beam-fill {
    stroke: var(--s-left-tier);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    filter: drop-shadow(0 0 6px var(--s-left-tier));
    transition: stroke 0.85s ease;
}

.s-left__frame {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: color-mix(in srgb, var(--s-left-tier) 35%, transparent);
    border-style: solid;
    z-index: 2;
    pointer-events: none;
    transition: border-color 0.85s ease;
}

.s-left__frame--tl { top: 5vh; left: 4vw; border-width: 1px 0 0 1px; }
.s-left__frame--tr { top: 5vh; right: 2vw; border-width: 1px 1px 0 0; }
.s-left__frame--bl { bottom: 5vh; left: 4vw; border-width: 0 0 1px 1px; }
.s-left__frame--br { bottom: 5vh; right: 2vw; border-width: 0 1px 1px 0; }

.s-left__inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 6vh 4vw 6vh 7vw;
    box-sizing: border-box;
}

.s-left__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.s-left__signal {
    display: flex;
    align-items: center;
}

.s-left__signal-text {
    .s-left__orbit-fill,
    .s-left__beam-fill,
    .s-left__progress-fill,
    .s-left__glow,
    .s-left__frame,
    .s-desc {
        transition: none;
    }
}

.s-left__signal-text {
    font-family: 'Marble PL', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(244, 244, 245, 0.45);
}

.s-tag {
    font-family: 'Marble PL', sans-serif;
    font-size: clamp(0.7rem, 0.85vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0.85;
}

.s-title {
    font-family: 'Marble PL', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 4.25rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0;
    color: var(--text-light);
}

.s-title-line {
    display: block;
    overflow: hidden;
}

.s-title-line > span {
    display: block;
    will-change: transform;
}

.s-left__readout {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.s-left__readout-num {
    font-family: 'Marble PL', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--s-left-tier);
    min-width: 2.2ch;
    transition: color 0.85s ease;
}

.s-left__readout-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.s-left__readout-label {
    font-family: 'Marble PL', sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(244, 244, 245, 0.38);
}

.s-left__readout-name {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.72rem, 0.95vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(244, 244, 245, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    line-height: 1.65;
    color: rgba(244, 244, 245, 0.62);
    max-width: 22rem;
    margin: 0;
    padding-left: 1.1rem;
    border-left: 2px solid color-mix(in srgb, var(--s-left-tier) 55%, transparent);
    transition: border-color 0.85s ease;
}

.s-left__progress {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 22rem;
}

.s-left__progress-track {
    flex: 1;
    height: 2px;
    background: rgba(244, 244, 245, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.s-left__progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--s-left-tier), color-mix(in srgb, var(--s-left-tier) 40%, #fff));
    box-shadow: 0 0 12px color-mix(in srgb, var(--s-left-tier) 60%, transparent);
    border-radius: 2px;
    transition: background 0.85s ease, box-shadow 0.85s ease;
}

.s-left__progress-pct {
    font-family: 'Marble PL', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: rgba(244, 244, 245, 0.45);
    min-width: 2.5rem;
    text-align: right;
}

.s-left-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.25rem;
}

.s-left .przycisk {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.s-left .przycisk .magnetic-btn {
    width: clamp(140px, 15vw, 175px);
    border-color: rgba(244, 244, 245, 0.35);
}

.s-left .przycisk .magnetic-btn-bg {
    background-color: var(--text-light);
}

.s-left .przycisk .magnetic-btn-content {
    gap: 5px;
    color: var(--text-light);
    mix-blend-mode: normal;
}

.s-left .przycisk .magnetic-btn:hover .magnetic-btn-content {
    color: #030303;
}

.s-left .przycisk .magnetic-icon {
    width: 18px;
    height: 18px;
}

.s-left .przycisk .magnetic-text {
    font-size: clamp(0.58rem, 0.65vw, 0.7rem);
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-align: center;
    max-width: 5.5rem;
}


/* RIGHT scrollable */
.s-right {
    grid-column: 2;
    width: 100%;
    min-height: 230vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 17vh 0;
    
}

/* WIRE */
.wire-svg {
    position: absolute;
    top: 0;
    left: 80px;
    width: 2px;
    height: 100%;
    z-index: 1;
    overflow: visible;
}

.wire-bg {
    stroke: rgba(244, 244, 245, .04);
    stroke-width: 1;
    fill: none;
}

.wire-fg {
    stroke: rgba(244, 244, 245, .7);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* PULSE DOT */
.pulse-dot {
    position: absolute;
    left: 80px;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(244, 244, 245, .25);
    animation: pulse-ring 1.6s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: .7;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* NODES */
.tech-node {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-left: 120px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(44px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1),
        transform .8s cubic-bezier(.16, 1, .3, 1);
}

.tech-node.active {
    opacity: 1;
    transform: translateX(0);
}

.node-dot {
    position: absolute;
    left: 80px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid rgba(244, 244, 245, 0.12);
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: border-color .5s ease .3s,
        box-shadow .5s ease .3s,
        background .5s ease .3s;
}

.tech-node.active .node-dot {
    background: var(--nc);
    border-color: var(--nc);
    box-shadow: 0 0 10px var(--nc), 0 0 22px var(--nc);
}

.h-line {
    position: absolute;
    left: 80px;
    top: 50%;
    width: 42px;
    height: 1px;
    background: linear-gradient(to right, var(--nc), transparent);
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 2;
    transition: transform .5s ease .4s;
}

.tech-node.active .h-line {
    transform: scaleX(1);
}

.tech-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(244, 244, 245, 0.03);
    border: 1px solid rgba(244, 244, 245, 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    transform: scale(.5) rotate(-10deg);
    transition: transform .75s cubic-bezier(.34, 1.56, .64, 1) .08s,
        border-color .5s ease .28s,
        box-shadow .5s ease .28s;
}

.tech-node.active .tech-icon {
    transform: scale(1) rotate(0deg);
}

#n0.active .tech-icon {
    border-color: rgba(232, 87, 42, .35);
    box-shadow: 0 0 22px rgba(232, 87, 42, .3);
}

#n1.active .tech-icon {
    border-color: rgba(247, 223, 30, .25);
    box-shadow: 0 0 22px rgba(247, 223, 30, .25);
}

#n2.active .tech-icon {
    border-color: rgba(136, 206, 2, .3);
    box-shadow: 0 0 24px rgba(136, 206, 2, .3);
}

#n3.active .tech-icon {
    border-color: rgba(244, 244, 245, .2);
    box-shadow: 0 0 18px rgba(244, 244, 245, .15);
}

.ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: var(--nc);
    opacity: 0;
    animation: spin 2.8s linear infinite;
    transition: opacity .5s ease .55s;
}

.ring2 {
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-bottom-color: var(--nc);
    opacity: 0;
    animation: spin 5.5s linear infinite reverse;
    transition: opacity .5s ease .65s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.tech-node.active .ring {
    opacity: .7;
}

.tech-node.active .ring2 {
    opacity: .2;
}

.tech-icon svg {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
}

.icon-path {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    transition: stroke-dashoffset 1.05s ease .52s;
}

.tech-node.active .icon-path {
    stroke-dashoffset: 0;
}

/* INFO */
.tech-info {
    flex: 1;
    padding-right: 22px;
}

.node-num {
    font-family: 'Marble PL', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: .45em;
    color: var(--dim);
    display: block;
    margin-bottom: 12px;
    opacity: 0;
    transition: opacity .5s ease .62s;
}

.tech-node.active .node-num {
    opacity: 1;
}

.node-title {
    font-family: 'Marble PL', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -.01em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--bg-light);
}

.slash {
    color: var(--nc);
    opacity: .5;
    margin: 0 6px;
}

.node-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.4;
    color: rgba(244, 244, 245, 0.604);
    max-width: 30vw;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .65s ease .7s, transform .65s ease .7s;
}

.tech-node.active .node-desc {
    opacity: 1;
    transform: translateY(0);
}

.node-price {
    display: inline-block;
    margin-top: 20px;
    font-family: 'Marble PL', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: .3em;
    padding: 7px 16px;
    border: 1px solid ;
    border-radius: 15px;
    border-color: rgba(244, 244, 245, 0.604);;
    color: #f4f4f4;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .5s ease .9s;
}

.tech-node.active .node-price {
    opacity: 1;
}

.node-price.accent {
    border-color: var(--nc);
    color: var(--nc);
}

.node-price.accent-white {
    border-color: rgba(244, 244, 245, .3);
    color: var(--text-light);
}


/* ══════════ TECH SECTION — LAPTOP (1025–1440px) ══════════ */
@media (min-width: 1025px) and (max-width: 1440px) {
    .tech-section {
        min-height: 205vh;
    }

    /* Lewy panel — mieści się w 100vh pod headerem */
    .s-left__inner {
        gap: clamp(0.55rem, 1.1vh, 0.9rem);
        padding: clamp(4.25rem, 6.5vh, 5rem) 3vw 2.5vh 5vw;
        justify-content: center;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }

    .s-left__inner::-webkit-scrollbar {
        display: none;
    }

    .s-title {
        font-size: clamp(1.55rem, 2.6vw, 2.35rem);
    }

    .s-desc {
        font-size: clamp(0.82rem, 0.95vw, 0.92rem);
        line-height: 1.55;
        max-width: 100%;
    }

    .s-left__readout {
        padding: 0.6rem 0.75rem;
        gap: 0.7rem;
    }

    .s-left__readout-num {
        font-size: clamp(1.55rem, 2.2vw, 1.85rem);
    }

    .s-left__readout-name {
        font-size: 0.7rem;
    }

    .s-left__signal-text {
        font-size: 0.52rem;
        letter-spacing: 0.16em;
    }

    .s-left__ghost {
        font-size: clamp(4.5rem, 13vw, 8rem);
    }

    .s-left__orbit {
        width: min(40vw, 240px);
        height: min(40vw, 240px);
        right: -14%;
    }

    .s-left-actions {
        gap: 0.55rem;
        margin-top: 0;
    }

    .s-left .przycisk .magnetic-btn {
        width: clamp(112px, 11vw, 140px);
    }

    .s-left .przycisk .magnetic-text {
        font-size: 0.52rem;
        max-width: 4.8rem;
    }

    .s-left__frame--tl,
    .s-left__frame--tr {
        top: 3.25rem;
    }

    .s-left__frame--bl,
    .s-left__frame--br {
        bottom: 2vh;
    }

    /* Prawa kolumna — pierwszy poziom niżej, przewidywalne odstępy */
    .s-right {
        min-height: 205vh;
        padding: 34vh 0 8vh;
        justify-content: flex-start;
        gap: clamp(13vh, 17vh, 19vh);
    }

    .tech-node {
        padding-left: 88px;
        gap: 18px;
    }

    .wire-svg,
    .pulse-dot,
    .node-dot,
    .h-line {
        left: 56px;
    }

    .h-line {
        width: 32px;
    }

    .tech-icon {
        width: 68px;
        height: 68px;
    }

    .tech-icon svg {
        width: 28px;
        height: 28px;
    }

    .node-title {
        font-size: clamp(1.65rem, 2.8vw, 2.35rem);
    }

    .node-desc {
        font-size: clamp(0.88rem, 1vw, 0.98rem);
        max-width: 34rem;
    }
}

/* Bardzo niski laptop (np. 1366×620–800) */
@media (min-width: 1025px) and (max-width: 1440px),
       (min-width: 1025px) and (max-height: 900px) {
    .s-left__inner {
        gap: 0.5rem;
        padding-top: 4rem;
        padding-bottom: 2vh;
    }

    .s-title {
        font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    }

    .s-left__readout {
        padding: 0.5rem 0.65rem;
    }

    .s-left__progress-pct {
        font-size: 0.65rem;
    }

    .s-right {
        padding-top: 36vh;
        gap: 12vh;
    }

    .tech-info .node-title{
        font-size: clamp(1.5rem, 6vw, 1.5rem) !important;
    }

    .tech-info .node-desc{
        font-size: clamp(0.8rem, 3.6vw, 0.8rem) !important;
        line-height: 1.1;
        max-width: 80%;
        text-wrap: pretty;
    }

    .tech-info .node-price{
        font-size: clamp(0.7rem, 3.6vw, 0.8rem) !important;
        letter-spacing: 0.2em;
        padding: 6px 12px;
        margin-top: 14px;
        margin-right: 8px;
    }
}

@media (max-width: 1024px) {

    /* Jedna kolumna: najpierw lewy panel, potem oferta z wire */
    .tech-section {
        display: block;
        width: 100%;
        min-height: auto;
    }

    /* Lewy panel — NIE sticky, naturalny przepływ */
    .s-left {
        height: auto;
        width: 100%;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid rgba(244, 244, 245, 0.06);
    }

    .s-left__inner {
        height: auto;
        gap: 1.25rem;
        padding: 13vh 7vw 8vh;
    }

    .s-left__signal,
    .s-left__progress {
        display: none;
    }

    .s-left__readout {
        padding: 0.75rem 0.9rem;
    }

    .s-left__readout-num {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        min-width: auto;
    }

    .s-left__readout-name {
        font-size: clamp(0.68rem, 3.2vw, 0.8rem);
        letter-spacing: 0.04em;
        line-height: 1.35;
    }

    .s-left__orbit,
    .s-left__beam,
    .s-left__ghost {
        display: none;
    }

    .s-left__frame {
        width: 20px;
        height: 20px;
    }

    .s-left__frame--tl,
    .s-left__frame--bl { left: 5vw; }
    .s-left__frame--tr,
    .s-left__frame--br { right: 5vw; }

    .s-left__readout-name {
        white-space: normal;
    }

    .s-desc {
        max-width: 34rem;
    }

    .s-left-actions {
        gap: 0.85rem;
        margin-top: 0.75rem;
    }

    /* Prawa kolumna — pełna szerokość, naturalna wysokość */
    .s-right {
        width: 100%;
        min-height: auto;
        justify-content: flex-start;
        gap: 10vh;
        padding: 8vh 0 14vh;
        box-sizing: border-box;
    }

    .tech-node {
        opacity: 1;
        transform: none;
        transition: opacity .6s ease, transform .6s ease;
    }

    .tech-node:not(.active) {
        opacity: 0.28;
        transform: translateX(0);
    }

    .tech-node.active {
        opacity: 1;
        transform: translateX(0);
    }

    .tech-node:not(.active) .tech-icon {
        transform: scale(0.92);
    }

    .tech-node:not(.active) .icon-path {
        stroke-dashoffset: 220;
    }

    .tech-node:not(.active) .node-num,
    .tech-node:not(.active) .node-desc,
    .tech-node:not(.active) .node-price {
        opacity: 0.45;
    }

    /* Wire i znaczniki bliżej lewej krawędzi */
    .wire-svg { left: 32px; }
    .pulse-dot { left: 32px; }

    .tech-node {
        gap: 18px;
        padding-left: 64px;
        padding-right: 6vw;
    }

    .node-dot { left: 32px; }

    .h-line {
        left: 32px;
        width: 26px;
    }

    .tech-icon {
        width: 58px;
        height: 58px;
    }

    .tech-icon svg {
        width: 24px;
        height: 24px;
    }

    .tech-info {
        padding-right: 0;
        min-width: 0;
    }

    .node-num {
        font-size: 11px;
        letter-spacing: 0.35em;
        margin-bottom: 8px;
    }

    .node-title {
        font-size: clamp(1.5rem, 6vw, 2.1rem);
        margin-bottom: 10px;
    }

    .node-desc {
        max-width: 100%;
        font-size: clamp(0.92rem, 3.6vw, 1rem);
        line-height: 1.5;
    }

    .node-price {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
        padding: 6px 12px;
        margin-top: 14px;
        margin-right: 8px;
    }
}

/* Bardzo wąskie ekrany — jeszcze ciaśniej, żeby tekst się nie dusił */
@media (max-width: 560px) {
    .wire-svg,
    .pulse-dot,
    .s-right .node-dot,
    .s-right .h-line { left: 26px; }

    .h-line { width: 22px; }

    .tech-node {
        gap: 14px;
        padding-left: 54px;
        padding-right: 4vw;
    }

    .tech-icon {
        width: 50px;
        height: 50px;
    }

    .tech-icon svg {
        width: 21px;
        height: 21px;
    }

    .node-title {
        font-size: clamp(1.3rem, 7vw, 1.75rem);
    }
}


/* ── SEKCJA PRZEŁAMUJĄCA (BIAŁA) ── */
.horizontal-breaker {
    background-color: #f4f4f4;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.horizontal-breaker__container {
    width: 100%;
}

.horizontal-breaker__text {
    display: flex;
    width: max-content;
    white-space: nowrap;
    gap: 4vw;
    padding-left: 100vw;
    color: #050507;
    margin: 0;

    font-family: 'Marble PL', Impact, sans-serif;
    font-size: clamp(3rem, 12vw, 12rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}


.magnetic-btn.is-light .magnetic-btn-bg {
    background-color: #ffffff;
}

.magnetic-btn.is-light .magnetic-btn-content {
    color: #ffffff;
    mix-blend-mode: normal;
}

.magnetic-btn.is-light:hover .magnetic-btn-content {
    color: var(--text-dark);
}

.magnetic-btn.is-light .magnetic-icon {
    fill: currentColor;
}

@media (min-width: 1025px) and (max-width: 1440px),
       (min-width: 1025px) and (max-height: 900px) {
    .horizontal-breaker__text{
        font-size: clamp(2rem, 8vw, 8rem) !important;
    }
}

.content-cta {
    height: 20vh;
    width: 100vw;
    background-color: #030303;
}


/* Drugie jasne przejście — nachodzi na ciemną sekcję tech / cta */
.cta-light.second {
    margin-top: -12vh;
    border-radius: 80px 80px 0 0;
    position: relative;
    z-index: 20;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .cta-light.second {
        margin-top: -5vh;
        border-radius: 40px 40px 0 0;
    }
}


/* SEKCJA SHORT PORTFOLIO  */

.short-portfolio {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 8vw;
    row-gap: 2vw;
    padding: 15vh 6vw 25vh;
    max-width: 1800px;
    margin: 0 auto;
    align-items: start;
    background-color: #F4F4F5;
}

@media (min-width: 1921px) {
    .short-portfolio {
        max-width: 2200px;
    }
}
/* ASYMETRIA CUBERTO */
.content-short-portfolio:nth-child(even) {
    margin-top: 15vw;
}

/* KARTA PROJEKTU */
.content-short-portfolio {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}

.short-portfolio-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(244, 244, 245, 0.03);
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    position: relative;
}

.short-portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* HOVER EFFECTS */
.content-short-portfolio:hover .short-portfolio-media {
    transform: scale(0.95);
}

.content-short-portfolio:hover .short-portfolio-video {
    transform: scale(1.1);
}

.short-portfolio-title {
    font-family: 'Marble PL', sans-serif;
    font-weight: 600;
    font-size: clamp(20px, 1.5vw, 28px);
    color: #030303;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 1024px) {

    .short-portfolio{
        grid-template-columns: repeat(1, 1fr);
        row-gap: 10vh;
        padding: 10vh 3vw 20vh;
    }

        .content-short-portfolio:nth-child(even) {
            margin-top: 0vw;
        }

    .short-portfolio-video{
        object-fit: cover;
        border-radius: 16px;
        width: 100%;
        aspect-ratio: 4 / 5;
    }
}



.cta-dark {
    background-color: #030303;
    color: #f4f4f5;
    padding: 20vh 10vw;
    display: flex;
    align-items: center;
    min-height: 40vh;
    border-radius: 80px 80px 0 0;
}

.cta-flex-dark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 6vw;
}

.cta-dark .cta-text-light {
    flex: 1 1 auto;
    max-width: 82%;
    min-width: 0;
    text-align: right;
}

.cta-dark .cta-text-light h2 {
    font-family: 'Marble PL', sans-serif;
    font-size: clamp(2.5rem, 3.25vw, 3rem);
    line-height: 1.22;
    font-weight: 500;
    letter-spacing: -0.01em;
    max-width: none;
    color: #f4f4f5;
}

.cta-dark .cta-button-wrap {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
}

.cta-dark .magnetic-btn {
    color: #f4f4f5;
    border-color: rgba(244, 244, 245, 0.2);
}

.cta-dark .magnetic-btn-bg {
    background: #f4f4f5;
}

.cta-dark .magnetic-btn-content {
    color: #f4f4f5;
    mix-blend-mode: normal;
}

.cta-dark .magnetic-btn:hover .magnetic-btn-content {
    color: #0b0b0b;
}

.cta-dark .circle-btn {
    border: 1px solid rgba(244, 244, 245, 0.2);
    color: #f4f4f5;
}

.cta-dark .circle-btn:hover {
    background: #f4f4f5;
    color: #0b0b0b;
}

@media (min-width: 1025px) and (max-width: 1440px),
       (min-width: 1025px) and (max-height: 900px) {
    .cta-dark .magnetic-btn{
        width: clamp(200px, 30vw, 250px) !important;
    }

    .cta-dark .cta-text-light h2{
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
    }
}
@media (max-width: 1024px) {
    .cta-dark {
        display: block;
        min-height: auto;
        padding: 10vh 6vw;
        border-radius: 40px 40px 0 0;
    }

    .cta-flex-dark {
        flex-direction: column;
        gap: 6vh;
        align-items: flex-start;
    }

    .cta-dark .cta-text-light {
        width: 100%;
        max-width: 100%;
        text-align: left;
        order: 1;
    }

    .cta-dark .cta-text-light h2 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.18;
        max-width: 100%;
    }

    .cta-dark .cta-button-wrap {
        width: 100%;
        order: 2;
        justify-content: flex-start;
        align-self: flex-start;
    }
}

section.fifth {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.fifth .outer,
.fifth .inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fifth .bg {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 110%;
    width: 100%;
    top: -5%;
    background-color: #030303;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.fifth h2 {
    font-size: clamp(1rem, 6vw, 10rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    width: 100vw;
    max-width: 1200px;
    text-transform: none;
    font-family: "Marble PL", sans-serif;
}

.fifth h2 * {
    will-change: transform;
}

.fifth .h2-wrapper {
    overflow: hidden;
}

.fifth .h2-desc {
    display: none;
}

.fifth .upper {
    height: 50vh;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 4vw 2rem 4vw;
    box-sizing: border-box;
    position: relative;
}

.fifth .lower {
    height: 50vh;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem 4vw 0 4vw;
    box-sizing: border-box;
    position: relative;
}

.fifth .outro-title {
    color: #fff;
    font-size: clamp(4rem, 15vw, 18rem);
    font-family: "Marble PL", sans-serif;
    font-weight: 800;
    margin: 0;
    line-height: 0.85;
    white-space: nowrap;
    will-change: transform;
}

.fifth .lower .outro-title {
    text-align: right;
}

.fifth .upper .h2-wrapper,
.fifth .lower .h2-wrapper {
    width: 100%;
    overflow: hidden;
}

.fifth .lower .h2-wrapper {
    display: flex;
    justify-content: right;
    padding-right: 12rem;
}

.fifth .cta-button-wrap,
.fifth .hero-magnetic-wrapper {
    display: flex;
    justify-content: flex-start;
    text-align: left;
    width: auto;
    margin-left: 0;
    padding-left: 0;
    flex: none;
    align-self: auto;
}

.fifth .hero-magnetic-wrapper {
    justify-content: center;
    align-items: center;
}

.fifth .outro-buttons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 5;
}

.fifth .upper .outro-buttons {
    position: absolute;
    right: 4vw;
    bottom: 2rem;
}

.fifth .lower .outro-buttons {
    position: absolute;
    left: 4vw;
    top: 2rem;
}

.fifth .upper .h2-wrapper {
    position: relative;
    z-index: 1;
}

.fifth .lower .h2-wrapper {
    position: relative;
    z-index: 1;
}

.fifth .outro-buttons .magnetic-btn {
    width: clamp(300px, 12vw, 450px);
    visibility: visible;
}

.fifth .magnetic-btn {
    border-color: rgba(255, 255, 255, 0.5);
}

.fifth .magnetic-btn-bg {
    background-color: #fff;
}

.fifth .magnetic-btn-content {
    color: #fff;
    mix-blend-mode: normal;
}

.fifth .magnetic-btn:hover .magnetic-btn-content {
    color: #0a0a0a;
}

@media (min-width: 1025px) and (max-width: 1440px),
       (min-width: 1025px) and (max-height: 900px) {
    .fifth .outro-buttons .magnetic-btn {
        width: clamp(200px, 30vw, 200px) !important;
    }
    .fifth .upper .outro-title {
        font-size: clamp(10rem, 35vw, 10rem);
        padding-right: 20rem;
    }

    .fifth .lower .outro-title {
        font-size: clamp(10rem, 35vw, 10rem);
        padding-left: 35rem;
    }
}


@media (min-width: 1921px) {
    .fifth .outro-title {
        font-size: clamp(20rem, 13vw, 28rem);
    }

    .fifth .lower .h2-wrapper {
        display: flex;
        justify-content: right;
        padding-right: 25rem;
    }

    .fifth .outro-buttons .magnetic-btn {
        width: clamp(400px, 10vw, 550px);
    }

    .fifth .lower {
        gap: 6vw;
    }
}

@media (max-width: 768px) {

    .fifth .bg {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 2vh 3vw;
        gap: 3vh;
    }

    .fifth .upper {
        display: contents;
    }

    .fifth .lower {
        display: contents;
    }

    .fifth .upper .h2-wrapper {
        order: 2;
    }

    .fifth .upper .outro-buttons {
        order: 1;
        position: static;
    }

    .fifth .lower .h2-wrapper {
        order: 3;
        padding-right: 0;
        justify-content: flex-start;
    }

    .fifth .lower .outro-buttons {
        order: 4;
        position: static;
    }

    .fifth .outro-title {
        font-size: clamp(4rem, 10vw, 4rem);
        line-height: 0.85;
        white-space: nowrap;
        text-align: left;
    }

    .fifth .outro-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .fifth .outro-buttons .magnetic-btn {
        width: clamp(150px, 45vw, 200px);
    }

    .fifth .outro-buttons .magnetic-btn .magnetic-text {
        font-size: 0.7rem;
    }

    .fifth .h2-desc {
        display: block;
        font-family: "Inter", sans-serif;
        font-size: clamp(1.3rem, 3vw, 1.3rem);
        font-weight: 500;
        line-height: 1.1;
        color: #fff;
        max-width: 100%;
        text-wrap: pretty;
        text-align: left;
    }

    .fifth .h2-desc-wrapper {
        order: 3;
        width: 100%;
    }

    .fifth .upper .cta-button-wrap {
        display: none;
    }
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .fifth .outro-title {
        font-size: clamp(4rem, 12vw, 10rem);
    }

    .fifth .lower .cta-button-wrap {
        z-index: 10;
    }
}

