* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #f5f7fa;
    color: #14283d;
    font: 16px/1.6 Arial, sans-serif
}

a {
    color: inherit;
    text-underline-offset: 5px
}

a:focus-visible {
    outline: 3px solid #00868b;
    outline-offset: 5px
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px max(24px, calc((100vw - 1160px)/2));
    background: #fff;
    border-bottom: 1px solid #dde4eb
}

.portfolio-brand {
    font-weight: 800;
    font-size: 24px;
    text-decoration: none;
    white-space: nowrap
}

.portfolio-header nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap
}

.portfolio-main {
    max-width: 1208px;
    margin: auto;
    padding: 0 24px
}

.portfolio-intro {
    padding: 72px 0 58px;
    max-width: 780px
}

.portfolio-intro span {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #087f83
}

.portfolio-intro h1 {
    font-size: clamp(36px, 6vw, 66px);
    letter-spacing: -2px;
    line-height: 1.08;
    margin: 22px 0
}

.portfolio-intro p {
    font-size: 19px;
    color: #536173;
    max-width: 610px
}

.portfolio-button {
    display: inline-block;
    padding: 13px 20px;
    background: #0c7178;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px
}

.portfolio-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px
}

.portfolio-projects article {
    overflow: hidden;
    background: white;
    border-radius: 16px;
    border: 1px solid #dde4eb
}

.project-art {
    height: 220px;
    padding: 25px;
    position: relative;
    overflow: hidden
}

.project-art>span {
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold
}

.art-store {
    background: #132b42;
    color: white
}

.mock-window {
    margin-top: 24px;
    border: 1px solid #90a4b5;
    border-radius: 10px;
    padding: 14px;
    transform: rotate(-5deg)
}

.mock-window>i {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #93d9dc;
    border-radius: 50%;
    margin-right: 4px
}

.mock-tiles {
    display: flex;
    gap: 10px;
    margin-top: 14px
}

.mock-tiles b {
    width: 33%;
    height: 66px;
    background: #dbe9ed;
    border-radius: 5px
}

.art-design {
    background: #e4d6ed;
    color: #49345b
}

.design-type {
    font-size: 42px;
    line-height: 1.1;
    font-family: Georgia, serif;
    margin-top: 22px
}

.art-demo {
    background: #d6efea;
    color: #16574d
}

.demo-colors {
    display: flex;
    gap: 12px;
    margin-top: 35px
}

.demo-colors b {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #12777d
}

.demo-colors b:nth-child(2) {
    background: #8156a5
}

.demo-colors b:nth-child(3) {
    background: #ecaf65
}

.demo-label {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px
}

.project-copy {
    padding: 25px
}

.project-copy small {
    font-size: 11px;
    letter-spacing: 1px;
    color: #617181
}

.project-copy h2 {
    font-size: 23px;
    line-height: 1.2;
    margin: 15px 0
}

.project-copy p {
    color: #536173
}

.project-copy a {
    font-weight: bold;
    color: #086b73
}

.portfolio-cta {
    margin: 48px 0;
    padding: 38px;
    background: #e7edf2;
    border-radius: 16px
}

.portfolio-cta h2 {
    font-size: 30px;
    line-height: 1.2;
    margin-top: 0
}

.portfolio-cta p {
    max-width: 700px
}

.portfolio-footer {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px 24px;
    border-top: 1px solid #dce3eb;
    font-size: 14px
}

@media(max-width:800px) {
    .portfolio-projects {
        grid-template-columns: 1fr
    }

    .project-art {
        height: 230px
    }

    .portfolio-header {
        align-items: flex-start;
        flex-direction: column
    }

    .portfolio-header nav {
        gap: 18px
    }

    .portfolio-intro {
        padding: 42px 0
    }

    .portfolio-intro h1 {
        letter-spacing: -1px
    }

    .portfolio-cta {
        padding: 25px
    }

    .portfolio-button {
        overflow-wrap: anywhere;
        max-width: 100%
    }
}

.portfolio-author {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    margin: 0 0 48px;
    padding: 32px;
    background: #fff;
    border: 1px solid #dde4eb;
    border-radius: 16px
}

.portfolio-portrait {
    aspect-ratio: 6/7;
    background: linear-gradient(135deg, #143049, #087f83);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center
}

.portfolio-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block
}

.portfolio-initials {
    font-size: 78px;
    font-weight: bold;
    color: #fff;
    letter-spacing: -4px
}

.portfolio-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: bold;
    color: #087f83
}

.portfolio-author h2 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    margin: 14px 0
}

.portfolio-author p {
    color: #536173
}

.portfolio-author-copy>a {
    font-weight: bold;
    color: #086b73
}

.portfolio-author-copy {
    min-width: 0
}

@media(max-width:650px) {
    .portfolio-author {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 22px
    }

    .portfolio-portrait {
        max-width: 240px;
        width: 100%;
        margin: auto
    }

    .portfolio-initials {
        font-size: 64px
    }
}

/* Statyczna grafika użytkownika; bez animacji i obsługi scrollowania. */
.portfolio-main {
    position: relative;
    isolation: isolate
}

.portfolio-main::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    top: 0;
    right: 0;
    width: min(100%, 850px);
    height: 540px;
    background: url('./lexus.svg') center right/contain no-repeat;
    opacity: .40;
    transition: opacity 0.45s ease, transform 0.45s ease;
}



.portfolio-main:hover::before {
    opacity: 1;
    transform: translateX(50px);
}



.portfolio-intro {
    position: relative;
    max-width: none;
    background: linear-gradient(90deg, #f5f7fa 0%, rgba(245, 247, 250, .97) 34%, rgba(245, 247, 250, .65) 62%, rgba(245, 247, 250, 0) 100%)
}

.portfolio-intro h1 {
    max-width: 780px
}

@media(max-width:650px) {
    .portfolio-main::before {
        top: 10px;
        height: 430px;
        width: 100%;
        opacity: .12
    }

    .portfolio-intro {
        background: linear-gradient(90deg, rgba(245, 247, 250, .95), rgba(245, 247, 250, .45))
    }
}

/* Efekt działa na urządzeniach z precyzyjnym wskaźnikiem. */
.portfolio-main::before {
    transition: opacity .45s ease, transform .45s ease
}

@media(hover:hover) and (pointer:fine) {
    .portfolio-main:hover::before {
        opacity: 1;
        transform: translateX(50px)
    }
}

/* Przy prawej krawędzi grafika nie powiększa szerokości strony. */
body {
    overflow-x: clip
}

@media(prefers-reduced-motion:reduce) {
    .portfolio-main::before {
        transition: none
    }

    .portfolio-main:hover::before {
        transform: none
    }
}