/* ==========================================================
   AtraByte Portfolio List
   ========================================================== */

.portfolio-list-page {
    --portfolio-bg: #f8f9fd;
    --portfolio-surface: #f2f3fa;
    --portfolio-text: #111321;
    --portfolio-muted: #6f7282;
    --portfolio-border: #e3e5ee;
    --portfolio-purple: #6c5cff;
    --portfolio-purple-soft: #efedff;
    --portfolio-dark: #10121f;

    background: var(--portfolio-bg);
    color: var(--portfolio-text);
}

.portfolio-page {
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 82% 12%,
            rgba(108, 92, 255, 0.055),
            transparent 25%
        ),
        var(--portfolio-bg);
}

.portfolio-container {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
}

/* ==========================================================
   HERO
   ========================================================== */

.portfolio-hero {
    position: relative;
    padding: 48px 0 46px;
}

.portfolio-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 24px;

    font-size: 11px;
    font-weight: 500;
    color: #8b8e9d;
}

.portfolio-breadcrumb a {
    color: #505361;
    text-decoration: none;

    transition: color 0.2s ease;
}

.portfolio-breadcrumb a:hover {
    color: var(--portfolio-purple);
}

.portfolio-breadcrumb span:last-child {
    color: #777a89;
}


/* ==========================================================
   HERO GRID
   ========================================================== */

.portfolio-hero__grid {
    display: grid;

    /*
     * RTL:
     * content = right
     * visual  = left
     */
    grid-template-columns:
        minmax(420px, 0.9fr)
        minmax(500px, 1.1fr);

    gap: clamp(50px, 6vw, 100px);

    align-items: center;

    min-height: 500px;
}


/* ==========================================================
   HERO CONTENT
   ========================================================== */

.portfolio-hero__content {
    position: relative;
    z-index: 5;

    max-width: 590px;
}


/* eyebrow */

.portfolio-hero__eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 20px;

    color: var(--portfolio-purple);

    font-size: 11px;
    line-height: 1;
    font-weight: 600;

    letter-spacing: 0.02em;
}


/* title */

.portfolio-hero__title {
    margin: 0;

    font-size: clamp(42px, 4vw, 58px);
    line-height: 1.28;

    font-weight: 800;

    color: var(--portfolio-text);
}

.portfolio-hero__title strong {
    color: var(--portfolio-purple);
    font-weight: inherit;
}


/* description */

.portfolio-hero__description {
    max-width: 530px;

    margin: 22px 0 0;

    color: var(--portfolio-muted);

    font-size: 14px;
    line-height: 2;
    font-weight: 400;
}


/* ==========================================================
   HERO META
   ========================================================== */

.portfolio-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 11px;

    margin-top: 30px;

    color: #8b8e9d;

    font-size: 10px;
    font-weight: 500;
}

.portfolio-hero__meta i {
    display: block;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: var(--portfolio-purple);

    opacity: 0.55;
}


/* ==========================================================
   ORBITAL SYSTEM
   ========================================================== */

.portfolio-system {
    position: relative;

    width: min(100%, 560px);
    aspect-ratio: 1 / 1;

    justify-self: center;

    isolation: isolate;
}


/* very subtle background glow */

.portfolio-system::before {
    content: "";

    position: absolute;

    width: 78%;
    height: 78%;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(108, 92, 255, 0.09) 0%,
            rgba(108, 92, 255, 0.035) 38%,
            rgba(108, 92, 255, 0) 72%
        );

    filter: blur(12px);

    z-index: -2;
}


/* ==========================================================
   ORBITS
   ========================================================== */

.portfolio-system__orbit {
    position: absolute;

    top: 50%;
    left: 50%;

    border: 1px solid rgba(108, 92, 255, 0.22);

    pointer-events: none;
}


/* outer circle */

.portfolio-system__orbit--outer {
    width: 82%;
    height: 82%;

    border-radius: 50%;

    transform:
        translate(-50%, -50%)
        rotate(-12deg);
}


/* middle circle */

.portfolio-system__orbit--middle {
    width: 67%;
    height: 67%;

    border-radius: 50%;

    border-color: rgba(108, 92, 255, 0.15);

    transform:
        translate(-50%, -50%)
        rotate(12deg);
}


/* horizontal ellipse */

.portfolio-system__orbit--horizontal {
    width: 90%;
    height: 42%;

    border-radius: 50%;

    transform:
        translate(-50%, -50%)
        rotate(4deg);
}


/* vertical ellipse */

.portfolio-system__orbit--vertical {
    width: 43%;
    height: 88%;

    border-radius: 50%;

    border-color: rgba(108, 92, 255, 0.18);

    transform:
        translate(-50%, -50%)
        rotate(-5deg);
}


/* ==========================================================
   CENTRAL ORB
   ========================================================== */

.portfolio-system__core {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 48%;
    aspect-ratio: 1 / 1;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 5;
}


/* glow behind image */

.portfolio-system__core-glow {
    position: absolute;

    inset: 8%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(105, 91, 255, 0.22),
            rgba(112, 93, 255, 0.08) 42%,
            transparent 72%
        );

    filter: blur(22px);

    z-index: -1;
}


/* ACTUAL IMAGE */

.portfolio-system__orb-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    max-width: 100%;
    max-height: 100%;

    user-select: none;
    pointer-events: none;

    filter:
        drop-shadow(
            0 20px 35px rgba(78, 68, 190, 0.12)
        );
}


/* ==========================================================
   NODES
   ========================================================== */

.portfolio-system__node {
    position: absolute;

    z-index: 10;

    color: var(--portfolio-text);

    font-size: 11px;
}


/* glowing point */

.portfolio-system__dot {
    position: absolute;

    width: 12px;
    height: 12px;

    border: 3px solid rgba(255, 255, 255, 0.85);

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #7665ff,
            #4d8cff
        );

    box-shadow:
        0 0 0 5px rgba(108, 92, 255, 0.08),
        0 4px 12px rgba(89, 74, 220, 0.28);
}


/* node copy */

.portfolio-system__node-copy {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.portfolio-system__node-copy strong {
    font-size: 13px;
    line-height: 1;
    font-weight: 800;

    color: var(--portfolio-text);
}

.portfolio-system__node-copy span {
    color: #666a79;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 500;
}


/* ==========================================================
   PRODUCT - TOP
   ========================================================== */

.portfolio-system__node--product {
    top: 3%;
    left: 50%;

    transform: translateX(-50%);

    text-align: center;
}

.portfolio-system__node--product
.portfolio-system__dot {
    left: 50%;
    top: 53px;

    transform: translateX(-50%);
}


/* ==========================================================
   DESIGN - LEFT
   ========================================================== */

.portfolio-system__node--design {
    top: 49%;
    left: 1%;

    transform: translateY(-50%);

    text-align: left;
}

.portfolio-system__node--design
.portfolio-system__dot {
    right: -52px;
    top: 50%;

    transform: translateY(-50%);
}


/* ==========================================================
   ENGINEERING - RIGHT
   ========================================================== */

.portfolio-system__node--engineering {
    top: 49%;
    right: -3%;

    transform: translateY(-50%);

    text-align: left;
}

.portfolio-system__node--engineering
.portfolio-system__dot {
    left: -52px;
    top: 50%;

    transform: translateY(-50%);
}


/* ==========================================================
   AUTOMATION - BOTTOM
   ========================================================== */

.portfolio-system__node--automation {
    bottom: 1%;
    left: 50%;

    transform: translateX(-50%);

    text-align: center;
}

.portfolio-system__node--automation
.portfolio-system__dot {
    left: 50%;
    bottom: 52px;

    transform: translateX(-50%);
}


/* ==========================================================
   FLOATING PARTICLES
   ========================================================== */

.portfolio-system__particle {
    position: absolute;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #7665ff,
            #4d8cff
        );

    box-shadow:
        0 4px 12px rgba(108, 92, 255, 0.3);

    z-index: 3;
}

.portfolio-system__particle--one {
    top: 19%;
    right: 15%;
}

.portfolio-system__particle--two {
    bottom: 18%;
    left: 16%;
}

.portfolio-system__particle--three {
    top: 29%;
    left: 7%;

    width: 6px;
    height: 6px;
}


/* ==========================================================
   MICRO COPY
   ========================================================== */

.portfolio-system__microcopy {
    position: absolute;

    display: flex;
    flex-direction: column;

    color: #9a9dad;

    font-size: 8px;
    line-height: 1.65;
    font-weight: 600;

    letter-spacing: 0.13em;

    text-transform: uppercase;

    z-index: 2;
}


/* upper left */

.portfolio-system__microcopy--top {
    top: 13%;
    left: -7%;
}


/* bottom left */

.portfolio-system__microcopy--bottom {
    bottom: 7%;
    left: -7%;
}

.portfolio-system__microcopy--bottom i {
    display: block;

    width: 30px;
    height: 1px;

    margin-bottom: 10px;

    background: var(--portfolio-purple);

    opacity: 0.6;
}


/* ==========================================================
   RTL FIXES
   ========================================================== */

html[dir="rtl"] .portfolio-hero__title {
    letter-spacing: normal;
}

html[dir="rtl"] .portfolio-hero__content {
    text-align: right;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 980px) {

    .portfolio-hero {
        padding-top: 38px;
    }

    .portfolio-hero__grid {
        grid-template-columns:
            minmax(330px, 0.9fr)
            minmax(400px, 1.1fr);

        gap: 30px;

        min-height: 440px;
    }

    .portfolio-hero__title {
        font-size: clamp(38px, 5vw, 48px);
    }

    .portfolio-system {
        width: min(100%, 470px);
    }

    .portfolio-system__microcopy {
        display: none;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 720px) {

    .portfolio-hero {
        padding: 28px 0 30px;
    }

    .portfolio-breadcrumb {
        margin-bottom: 32px;
    }

    .portfolio-hero__grid {
        display: flex;
        flex-direction: column;

        gap: 34px;

        min-height: 0;
    }

    .portfolio-hero__content {
        width: 100%;
        max-width: none;
    }

    .portfolio-hero__eyebrow {
        margin-bottom: 14px;
    }

    .portfolio-hero__title {
        font-size: clamp(34px, 10vw, 44px);
    }

    .portfolio-hero__description {
        max-width: 95%;

        margin-top: 16px;

        font-size: 12px;
        line-height: 1.9;
    }

    .portfolio-hero__meta {
        margin-top: 22px;

        gap: 8px;

        font-size: 9px;
    }


    /* visual */

    .portfolio-system {
        width: min(100%, 410px);

        margin-inline: auto;
    }

    .portfolio-system__core {
        width: 47%;
    }

    .portfolio-system__node-copy strong {
        font-size: 11px;
    }

    .portfolio-system__node-copy span {
        font-size: 9px;
    }

    .portfolio-system__microcopy {
        display: none;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 440px) {

    .portfolio-system {
        width: 340px;
        max-width: 100%;
    }

    .portfolio-system__node--engineering {
        right: 0;
    }

    .portfolio-system__node--design {
        left: 0;
    }

    .portfolio-system__node--design
    .portfolio-system__dot {
        right: -35px;
    }

    .portfolio-system__node--engineering
    .portfolio-system__dot {
        left: -35px;
    }

}

/* ==========================================================
   FILTER BAR
   ========================================================== */

.portfolio-filter-section {
    padding-top: 10px;
}

.portfolio-filter-bar {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border-top: 1px solid var(--portfolio-border);
    border-bottom: 1px solid var(--portfolio-border);
}

.portfolio-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}

.portfolio-filter {
    min-height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 7px 15px;

    border-radius: 999px;

    background: #f1f2f7;

    color: #5f6270;
    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.portfolio-filter small {
    min-width: 22px;

    padding-inline-start: 8px;

    border-inline-start: 1px solid rgba(80, 83, 97, 0.12);

    font-size: 9px;
    font-weight: 600;

    opacity: 0.65;
}

.portfolio-filter:hover {
    background: #e9e8ff;
    color: var(--portfolio-purple);
}

.portfolio-filter.is-active {
    color: #fff;
    background: var(--portfolio-purple);
}

.portfolio-filter.is-active small {
    border-color: rgba(255, 255, 255, 0.28);
    opacity: 0.85;
}

.portfolio-sort {
    flex: 0 0 auto;

    min-width: 112px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 0 15px;

    border: 1px solid var(--portfolio-border);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.45);

    color: #555866;

    font-size: 11px;
    font-weight: 500;
}

.portfolio-sort__icon {
    font-size: 11px;
}


/* ==========================================================
   PROJECT LIST
   ========================================================== */

.portfolio-projects {
    padding: 26px 0 0;
}

.portfolio-project-list {
    width: 100%;
}


/* ==========================================================
   PROJECT ROW
   ========================================================== */

.portfolio-project {
    position: relative;

    display: grid;
    grid-template-columns:
        minmax(300px, 0.78fr)
        minmax(0, 1.22fr);

    gap: 58px;

    align-items: center;

    min-height: 440px;

    padding: 32px 0 34px;

    border-bottom: 1px solid var(--portfolio-border);
}


/* alternating project */

.portfolio-project--reverse {
    grid-template-columns:
        minmax(0, 1.22fr)
        minmax(300px, 0.78fr);
}

.portfolio-project--reverse .portfolio-project__content {
    grid-column: 2;
    grid-row: 1;
}

.portfolio-project--reverse .portfolio-project__media {
    grid-column: 1;
    grid-row: 1;
}


/* ==========================================================
   PROJECT CONTENT
   ========================================================== */

.portfolio-project__content {
    position: relative;
    z-index: 2;

    padding: 8px 0;
}

.portfolio-project__topline {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 27px;
}

.portfolio-project__counter {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 5px;

    font-size: 10px;
    font-weight: 600;

    color: #777a88;
}

.portfolio-project__counter strong {
    color: var(--portfolio-purple);

    font-size: 13px;
    font-weight: 800;
}

.portfolio-project__counter span:nth-child(2) {
    opacity: 0.35;
}

.portfolio-project__line {
    width: 75px;
    height: 1px;

    background: var(--portfolio-purple);

    opacity: 0.65;
}

.portfolio-project__category {
    display: inline-flex;
    align-items: center;

    min-height: 22px;

    padding: 4px 10px;

    border-radius: 999px;

    background: var(--portfolio-purple-soft);

    color: var(--portfolio-purple);

    font-size: 9px;
    line-height: 1;
    font-weight: 600;
}


/* title */

.portfolio-project__title {
    max-width: 460px;

    margin: 0 0 16px;

    font-size: clamp(27px, 2.6vw, 39px);
    line-height: 1.35;
    letter-spacing: -0.035em;
    font-weight: 800;

    color: var(--portfolio-text);
}

.portfolio-project__title a {
    color: inherit;
    text-decoration: none;
}

.portfolio-project__title a:hover {
    color: var(--portfolio-purple);
}


/* description */

.portfolio-project__description {
    max-width: 430px;

    margin: 0 0 20px;

    color: var(--portfolio-muted);

    font-size: 13px;
    line-height: 1.9;
}


/* tags */

.portfolio-project__tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 24px;
}

.portfolio-project__tags span {
    display: inline-flex;
    align-items: center;

    min-height: 24px;

    padding: 4px 10px;

    border-radius: 999px;

    background: #f0f1f6;

    color: #777a89;

    font-size: 9px;
    line-height: 1;
    font-weight: 500;
}


/* ==========================================================
   PROJECT BUTTON
   ========================================================== */

.portfolio-project__button {
    width: fit-content;
    min-height: 39px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    padding: 8px 17px;

    border-radius: 999px;

    background: var(--portfolio-dark);
    color: #fff;

    text-decoration: none;

    font-size: 11px;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.portfolio-project__button span:last-child {
    font-size: 13px;

    transition: transform 0.25s ease;
}

.portfolio-project__button:hover {
    background: var(--portfolio-purple);

    transform: translateY(-2px);

    box-shadow:
        0 9px 24px rgba(108, 92, 255, 0.18);
}

.portfolio-project__button:hover span:last-child {
    transform: translate(2px, -2px);
}


/* ==========================================================
   PROJECT MEDIA
   ========================================================== */

.portfolio-project__media {
    position: relative;

    display: block;

    min-width: 0;

    text-decoration: none;
}

.portfolio-project__image {
    position: relative;

    width: calc(100% - 42px);
    aspect-ratio: 1.62 / 1;

    overflow: hidden;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #f1f2f8,
            #ebeaff
        );

    box-shadow:
        0 10px 30px rgba(22, 25, 50, 0.055);
}

.portfolio-project__image::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    border: 1px solid rgba(17, 19, 33, 0.045);
    border-radius: inherit;
}

.portfolio-project__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-project__media:hover
.portfolio-project__image img {
    transform: scale(1.018);
}


/* ==========================================================
   LARGE SIDE NUMBER
   ========================================================== */

.portfolio-project__side-number {
    position: absolute;

    top: 18px;
    right: 0;

    width: 32px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;

    color: var(--portfolio-purple);
}

.portfolio-project__side-number strong {
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.portfolio-project__side-number span {
    max-width: 70px;

    writing-mode: vertical-rl;

    color: #8b8e9c;

    font-size: 8px;
    line-height: 1.4;
}


/* reverse media number */

.portfolio-project--reverse
.portfolio-project__image {
    margin-left: 42px;
}

.portfolio-project--reverse
.portfolio-project__side-number {
    right: auto;
    left: 0;
}


/* ==========================================================
   PAGINATION
   ========================================================== */

.portfolio-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    gap: 20px;

    padding: 34px 0;
}

.portfolio-pagination__button {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: #565967;
    text-decoration: none;

    font-size: 11px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.portfolio-pagination__button:last-child {
    justify-self: end;
}

.portfolio-pagination__button:hover {
    color: var(--portfolio-purple);
}

.portfolio-pagination__status {
    color: #858895;

    font-size: 10px;
    font-weight: 500;
}

.portfolio-pagination__status span {
    margin-inline: 4px;

    opacity: 0.4;
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.portfolio-empty {
    min-height: 420px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 60px 20px;

    text-align: center;
}

.portfolio-empty > span {
    margin-bottom: 14px;

    color: var(--portfolio-purple);

    font-size: 13px;
    font-weight: 700;
}

.portfolio-empty h2 {
    margin: 0 0 12px;

    font-size: 28px;
    font-weight: 800;
}

.portfolio-empty p {
    margin: 0 0 24px;

    color: var(--portfolio-muted);

    font-size: 13px;
}

.portfolio-empty a {
    padding: 10px 18px;

    border-radius: 999px;

    background: var(--portfolio-dark);
    color: #fff;

    text-decoration: none;

    font-size: 11px;
}


/* ==========================================================
   BOTTOM CTA
   ========================================================== */

.portfolio-cta {
    padding-bottom: 34px;
}

.portfolio-cta__inner {
    min-height: 94px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border-top: 1px solid var(--portfolio-border);
    border-bottom: 1px solid var(--portfolio-border);
}

.portfolio-cta__inner p {
    margin: 0;

    color: var(--portfolio-text);

    font-size: 16px;
    font-weight: 700;
}

.portfolio-cta__inner a {
    min-height: 39px;

    display: inline-flex;
    align-items: center;

    gap: 14px;

    padding: 8px 18px;

    border-radius: 999px;

    background: var(--portfolio-dark);
    color: #fff;

    text-decoration: none;

    font-size: 11px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.portfolio-cta__inner a:hover {
    background: var(--portfolio-purple);
    transform: translateY(-2px);
}


/* ==========================================================
   RTL
   ========================================================== */

html[dir="rtl"] .portfolio-hero__title,
html[dir="rtl"] .portfolio-project__title {
    letter-spacing: normal;
}

html[dir="rtl"] .portfolio-hero__visual {
    padding-left: 0;
    padding-right: 18px;
}

html[dir="rtl"] .portfolio-orb--one {
    right: auto;
    left: 50px;
}

html[dir="rtl"] .portfolio-orb--two {
    right: auto;
    left: 145px;
}

html[dir="rtl"] .portfolio-orb--three {
    right: auto;
    left: 20px;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 980px) {

    .portfolio-container {
        width: min(100% - 40px, 900px);
    }

    .portfolio-hero {
        padding-top: 38px;
    }

    .portfolio-breadcrumb {
        margin-bottom: 32px;
    }

    .portfolio-hero__grid {
        grid-template-columns: 1fr 280px;
        gap: 40px;
    }

    .portfolio-hero__title {
        font-size: clamp(36px, 5vw, 52px);
    }

    .portfolio-project,
    .portfolio-project--reverse {
        grid-template-columns:
            minmax(260px, 0.85fr)
            minmax(0, 1.15fr);

        gap: 35px;

        min-height: 370px;
    }

    .portfolio-project--reverse
    .portfolio-project__content {
        grid-column: 2;
    }

    .portfolio-project--reverse
    .portfolio-project__media {
        grid-column: 1;
    }

    .portfolio-project__title {
        font-size: 28px;
    }

    .portfolio-project__description {
        font-size: 12px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 720px) {

    .portfolio-container {
        width: calc(100% - 32px);
    }

    .portfolio-page {
        overflow: clip;
    }


    /* HERO */

    .portfolio-hero {
        padding: 28px 0 24px;
    }

    .portfolio-breadcrumb {
        margin-bottom: 28px;
        font-size: 10px;
    }

    .portfolio-hero__grid {
        display: block;
        min-height: 0;
    }

    .portfolio-hero__content {
        max-width: none;
    }

    .portfolio-hero__title {
        font-size: clamp(33px, 10vw, 45px);
        line-height: 1.38;
    }

    .portfolio-hero__description {
        max-width: 92%;
        margin-top: 18px;

        font-size: 12px;
        line-height: 1.9;
    }

    .portfolio-hero__visual {
        min-height: 185px;

        margin-top: 22px;

        padding: 0;

        justify-content: flex-end;
    }

    .portfolio-orb--one {
        width: 105px;
        height: 105px;

        top: 5px;
    }

    .portfolio-orb--two {
        width: 82px;
        height: 82px;

        top: 50px;
    }

    .portfolio-orb--three {
        width: 70px;
        height: 70px;

        top: 70px;
    }


    /* FILTERS */

    .portfolio-filter-bar {
        min-height: auto;

        padding: 15px 0;

        display: block;
    }

    .portfolio-filters {
        flex-wrap: nowrap;

        width: 100%;

        overflow-x: auto;

        padding-bottom: 4px;

        scrollbar-width: none;
    }

    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }

    .portfolio-filter {
        flex: 0 0 auto;
    }

    .portfolio-sort {
        display: none;
    }


    /* PROJECTS */

    .portfolio-projects {
        padding-top: 8px;
    }

    .portfolio-project,
    .portfolio-project--reverse {
        display: flex;
        flex-direction: column;

        gap: 22px;

        min-height: 0;

        padding: 30px 0 38px;
    }

    .portfolio-project__content,
    .portfolio-project--reverse
    .portfolio-project__content {
        order: 2;

        width: 100%;
    }

    .portfolio-project__media,
    .portfolio-project--reverse
    .portfolio-project__media {
        order: 1;

        width: 100%;
    }

    .portfolio-project__image,
    .portfolio-project--reverse
    .portfolio-project__image {
        width: calc(100% - 34px);

        margin: 0;
    }

    .portfolio-project__topline {
        margin-bottom: 18px;
    }

    .portfolio-project__line {
        width: 50px;
    }

    .portfolio-project__title {
        max-width: none;

        margin-bottom: 12px;

        font-size: 27px;
        line-height: 1.4;
    }

    .portfolio-project__description {
        max-width: none;

        margin-bottom: 17px;

        font-size: 12px;
    }

    .portfolio-project__tags {
        margin-bottom: 20px;
    }

    .portfolio-project__side-number {
        right: 0;
    }

    .portfolio-project--reverse
    .portfolio-project__side-number {
        right: 0;
        left: auto;
    }


    /* CTA */

    .portfolio-cta {
        padding-bottom: 22px;
    }

    .portfolio-cta__inner {
        min-height: 105px;

        gap: 18px;
    }

    .portfolio-cta__inner p {
        max-width: 55%;

        font-size: 14px;
        line-height: 1.7;
    }


    /* PAGINATION */

    .portfolio-pagination {
        padding: 26px 0;
    }

}


/* ==========================================================
   VERY SMALL SCREENS
   ========================================================== */

@media (max-width: 420px) {

    .portfolio-container {
        width: calc(100% - 24px);
    }

    .portfolio-hero__title {
        font-size: 31px;
    }

    .portfolio-project__title {
        font-size: 24px;
    }

    .portfolio-project__image {
        aspect-ratio: 1.48 / 1;
    }

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

        padding: 22px 0;
    }

    .portfolio-cta__inner p {
        max-width: none;
    }

}