/* =========================================================
   TENACITY SOFT
   SELECTED WORK — PORTFOLIO INDEX
========================================================= */

.ts-portfolio,
.ts-portfolio *,
.ts-portfolio *::before,
.ts-portfolio *::after {
    box-sizing: border-box;
}


.ts-portfolio {
    --tp-blue: #1688ff;
    --tp-blue-light: #69c5ff;
    --tp-yellow: #ffc400;

    --tp-text: #f4f7fc;
    --tp-muted: #9eacbd;

    position: relative;

    z-index: 2;

    margin-top: -2px;

    padding:
        124px 0
        100px;

    overflow: hidden;

    isolation: isolate;

    background:
        radial-gradient(
            circle at 73% 43%,
            rgba(22, 136, 255, 0.07),
            transparent 31%
        ),
        linear-gradient(
            180deg,
            #020914 0%,
            #020b18 52%,
            #020914 100%
        );
}


/* =========================================================
   BACKGROUND
========================================================= */

.ts-portfolio__background {
    position: absolute;

    inset: 0;

    z-index: -2;

    pointer-events: none;
}


.ts-portfolio__grid {
    position: absolute;

    inset: 0;

    opacity: 0.045;

    background-image:
        linear-gradient(
            rgba(52, 126, 204, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(52, 126, 204, 0.08) 1px,
            transparent 1px
        );

    background-size:
        100px 100px;

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            transparent,
            #000 15%,
            #000 85%,
            transparent
        );

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            #000 15%,
            #000 85%,
            transparent
        );
}


.ts-portfolio__glow {
    position: absolute;

    width: 700px;
    height: 700px;

    right: -460px;
    top: 30%;

    border-radius: 50%;

    opacity: 0.07;

    background:
        var(--tp-blue);

    filter:
        blur(160px);
}


/* =========================================================
   TRANSITION
========================================================= */

.ts-portfolio-transition {
    position: absolute;

    width:
        min(
            calc(100% - 64px),
            1380px
        );

    height: 66px;

    left: 50%;
    top: 0;

    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    transform:
        translateX(-50%);
}


.ts-portfolio-transition span {
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(22, 136, 255, 0.17)
        );
}


.ts-portfolio-transition span:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(255, 196, 0, 0.15),
            transparent
        );
}


.ts-portfolio-transition i {
    width: 7px;
    height: 7px;

    margin-inline: 15px;

    border-radius: 50%;

    background:
        var(--tp-blue-light);

    box-shadow:
        0 0 12px rgba(105, 197, 255, 0.72);
}


/* =========================================================
   CONTAINER
========================================================= */

.ts-portfolio__container {
    width:
        min(
            calc(100% - 64px),
            1380px
        );

    margin-inline: auto;
}


/* =========================================================
   HEADER
========================================================= */

.ts-portfolio__header {
    margin-bottom:
        clamp(55px, 6vw, 82px);
}


.ts-portfolio__eyebrow {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 20px;

    color:
        var(--tp-blue-light);

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

    letter-spacing: .11em;

    text-transform: uppercase;
}


.ts-portfolio__eyebrow span {
    width: 28px;
    height: 1px;

    background:
        var(--tp-yellow);
}


.ts-portfolio__heading {
    display: grid;

    grid-template-columns:
        minmax(520px, 1fr)
        minmax(330px, .52fr);

    align-items: end;

    gap:
        clamp(45px, 7vw, 110px);
}


.ts-portfolio__heading h2 {
    max-width: 810px;

    margin: 0;

    color:
        var(--tp-text);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(
            40px,
            3.55vw,
            60px
        );

    font-weight: 700;

    line-height: 1.04;

    letter-spacing: -.052em;
}


.ts-portfolio__heading h2 strong {
    display: block;

    color:
        var(--tp-yellow);

    font-weight: inherit;
}


.ts-portfolio__heading > p {
    max-width: 480px;

    margin: 0;

    color:
        var(--tp-muted);

    font-size: 15px;

    line-height: 1.72;
}


/* =========================================================
   EXPERIENCE
========================================================= */

.ts-portfolio__experience {
    display: grid;

    grid-template-columns:
        minmax(300px, .62fr)
        minmax(680px, 1.38fr);

    min-height: 700px;

    border-top:
        1px solid rgba(72, 150, 226, .11);

    border-bottom:
        1px solid rgba(72, 150, 226, .11);
}


/* =========================================================
   PROJECT INDEX
========================================================= */

.ts-portfolio__index {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding-right: 46px;

    border-right:
        1px solid rgba(72, 150, 226, .11);
}


.ts-portfolio-item {
    position: relative;

    width: 100%;

    display: grid;

    grid-template-columns:
        30px
        minmax(0, 1fr)
        20px;

    align-items: center;

    gap: 15px;

    padding:
        28px 0;

    border: 0;

    border-bottom:
        1px solid rgba(72, 150, 226, .09);

    color: inherit;

    background:
        transparent;

    text-align: left;

    cursor: pointer;

    opacity: .44;

    transition:
        opacity 240ms ease,
        padding-left 240ms ease;
}


.ts-portfolio-item:last-child {
    border-bottom: 0;
}


.ts-portfolio-item::before {
    content: "";

    position: absolute;

    width: 2px;

    left: -1px;
    top: 21px;
    bottom: 21px;

    opacity: 0;

    background:
        linear-gradient(
            to bottom,
            var(--tp-blue),
            var(--tp-yellow)
        );

    transition:
        opacity 220ms ease;
}


.ts-portfolio-item:hover,
.ts-portfolio-item:focus-visible,
.ts-portfolio-item.is-active {
    opacity: 1;

    padding-left: 10px;
}


.ts-portfolio-item.is-active::before {
    opacity: 1;
}


.ts-portfolio-item__number {
    color:
        rgba(105, 197, 255, .52);

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

    letter-spacing: .08em;
}


.ts-portfolio-item.is-active
.ts-portfolio-item__number {
    color:
        var(--tp-yellow);
}


.ts-portfolio-item__content {
    display: flex;

    flex-direction: column;

    gap: 6px;
}


.ts-portfolio-item__content small {
    color:
        var(--tp-blue-light);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .09em;

    text-transform: uppercase;
}


.ts-portfolio-item__content strong {
    color:
        var(--tp-text);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 17px;

    font-weight: 650;

    line-height: 1.25;

    letter-spacing: -.02em;
}


.ts-portfolio-item svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke:
        rgba(196, 214, 230, .5);

    stroke-width: 1.6;

    stroke-linecap: round;

    stroke-linejoin: round;

    transition:
        stroke 220ms ease,
        transform 220ms ease;
}


.ts-portfolio-item.is-active svg {
    stroke:
        var(--tp-yellow);

    transform:
        translateX(4px);
}


/* =========================================================
   DISPLAY
========================================================= */

.ts-portfolio__display {
    position: relative;

    min-width: 0;

    overflow: hidden;
}


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

.ts-portfolio-project {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        55px 0
        55px 60px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translate3d(
            18px,
            0,
            0
        );

    transition:
        opacity 380ms ease,
        visibility 380ms ease,
        transform 380ms ease;
}


.ts-portfolio-project.is-active {
    position: relative;

    min-height: 698px;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: none;
}


/* =========================================================
   VISUAL
========================================================= */

.ts-portfolio-project__visual {
    position: relative;

    min-height: 390px;

    margin-bottom: 36px;
}


.ts-portfolio-project__glow {
    position: absolute;

    width: 610px;
    height: 340px;

    left: 50%;
    top: 53%;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(22, 136, 255, .19),
            transparent 69%
        );

    filter:
        blur(46px);

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


/* Browser */

.ts-portfolio-browser {
    position: absolute;

    width:
        min(
            100%,
            710px
        );

    aspect-ratio:
        16 / 9;

    left: 50%;
    top: 50%;

    overflow: hidden;

    border:
        1px solid rgba(78, 169, 252, .22);

    border-radius: 18px;

    background:
        #041528;

    box-shadow:
        0 35px 80px rgba(0,0,0,.43),
        0 0 45px rgba(22,136,255,.075);

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


.ts-portfolio-browser__bar {
    height: 39px;

    display: flex;

    align-items: center;

    gap: 6px;

    padding:
        0 14px;

    border-bottom:
        1px solid rgba(78, 155, 230, .1);

    background:
        rgba(4, 22, 41, .98);
}


.ts-portfolio-browser__bar span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        rgba(123,158,191,.3);
}


.ts-portfolio-browser__bar span:first-child {
    background:
        var(--tp-yellow);
}


.ts-portfolio-browser__bar i {
    width: 135px;
    height: 6px;

    margin-left: auto;

    border-radius: 999px;

    background:
        rgba(95,150,202,.1);
}


.ts-portfolio-browser__screen {
    position: absolute;

    inset:
        39px 0 0;
}


.ts-portfolio-browser__screen > img {
    position: relative;

    z-index: 3;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position:
        top center;
}


/* =========================================================
   SIMPLE TRAVEL FALLBACK
========================================================= */

.ts-portfolio-browser__fallback {
    position: absolute;

    inset: 0;

    z-index: 1;

    display: grid;

    grid-template-columns:
        54px 1fr;
}


.ts-portfolio-browser__fallback aside {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 14px;

    padding-top: 20px;

    border-right:
        1px solid rgba(75,154,230,.1);
}


.ts-portfolio-browser__fallback aside span {
    width: 19px;
    height: 19px;

    border-radius: 5px;

    background:
        rgba(78,143,206,.09);
}


.ts-portfolio-browser__fallback aside .is-active {
    background:
        rgba(22,136,255,.32);
}


.ts-portfolio-browser__fallback main {
    padding: 18px;
}


.ts-portfolio-browser__fallback main header {
    display: flex;

    margin-bottom: 12px;
}


.ts-portfolio-browser__fallback main header strong {
    width: 115px;
    height: 11px;

    border-radius: 999px;

    background:
        rgba(225,239,251,.7);
}


.ts-portfolio-browser__fallback main header i {
    width: 72px;
    height: 25px;

    margin-left: auto;

    border-radius: 7px;

    background:
        rgba(255,196,0,.64);
}


.ts-portfolio-fake-metrics {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 9px;

    margin-bottom: 10px;
}


.ts-portfolio-fake-metrics span {
    height: 59px;

    border-radius: 8px;

    background:
        rgba(18,53,87,.48);
}


.ts-portfolio-fake-workspace {
    display: grid;

    grid-template-columns:
        1.45fr .7fr;

    gap: 10px;
}


.ts-portfolio-fake-workspace div {
    height: 178px;

    border-radius: 8px;

    background:
        rgba(5,24,43,.64);
}


/* =========================================================
   FINANCE FALLBACK
========================================================= */

.ts-portfolio-finance-fallback {
    position: absolute;

    inset: 0;

    padding: 20px;
}


.ts-portfolio-finance-fallback__balance {
    position: relative;

    height: 73px;

    margin-bottom: 11px;

    padding: 14px;

    border:
        1px solid rgba(70,157,242,.11);

    border-radius: 9px;
}


.ts-portfolio-finance-fallback__balance small {
    width: 75px;
    height: 6px;

    display: block;

    margin-bottom: 9px;

    border-radius: 999px;

    background:
        rgba(105,197,255,.22);
}


.ts-portfolio-finance-fallback__balance strong {
    width: 130px;
    height: 16px;

    display: block;

    border-radius: 4px;

    background:
        rgba(235,244,253,.7);
}


.ts-portfolio-finance-fallback__balance i {
    position: absolute;

    width: 60px;
    height: 24px;

    right: 14px;
    top: 24px;

    border-radius: 6px;

    background:
        rgba(37,220,124,.11);
}


.ts-portfolio-finance-fallback__chart {
    position: relative;

    height: 165px;

    margin-bottom: 11px;

    border:
        1px solid rgba(70,157,242,.1);

    border-radius: 9px;

    background-image:
        linear-gradient(
            rgba(58,132,207,.06) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(58,132,207,.06) 1px,
            transparent 1px
        );

    background-size:
        40px 40px;
}


.ts-portfolio-finance-fallback__chart svg {
    position: absolute;

    inset: 10% 4%;

    width: 92%;
    height: 80%;
}


.ts-portfolio-finance-fallback__chart path {
    fill: none;

    stroke:
        var(--tp-blue-light);

    stroke-width: 2;

    filter:
        drop-shadow(
            0 0 5px rgba(22,136,255,.6)
        );
}


.ts-portfolio-finance-fallback__rows {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 9px;
}


.ts-portfolio-finance-fallback__rows span {
    height: 44px;

    border-radius: 7px;

    background:
        rgba(72,139,205,.08);
}


/* =========================================================
   WEBSITE FALLBACK
========================================================= */

.ts-portfolio-website-fallback {
    position: absolute;

    inset: 0;
}


.ts-portfolio-website-fallback nav {
    height: 50px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        0 20px;
}


.ts-portfolio-website-fallback nav strong {
    width: 72px;
    height: 9px;

    margin-right: auto;

    border-radius: 999px;

    background:
        rgba(255,196,0,.62);
}


.ts-portfolio-website-fallback nav span {
    width: 40px;
    height: 5px;

    border-radius: 999px;

    background:
        rgba(106,157,205,.13);
}


.ts-portfolio-website-fallback > div {
    display: grid;

    grid-template-columns:
        1fr .85fr;

    gap: 18px;

    padding:
        24px 20px;
}


.ts-portfolio-website-fallback section {
    padding-top: 19px;
}


.ts-portfolio-website-fallback section small {
    width: 75px;
    height: 6px;

    display: block;

    margin-bottom: 14px;

    border-radius: 999px;

    background:
        var(--tp-yellow);
}


.ts-portfolio-website-fallback section strong {
    width: 91%;
    height: 18px;

    display: block;

    margin-bottom: 8px;

    border-radius: 4px;

    background:
        rgba(232,243,253,.74);
}


.ts-portfolio-website-fallback section strong:nth-child(3) {
    width: 68%;
}


.ts-portfolio-website-fallback section p {
    width: 84%;
    height: 34px;

    margin:
        17px 0;

    border-radius: 5px;

    background:
        rgba(104,158,209,.1);
}


.ts-portfolio-website-fallback section i {
    width: 85px;
    height: 29px;

    display: block;

    border-radius: 7px;

    background:
        var(--tp-blue);
}


.ts-portfolio-website-fallback aside {
    display: grid;

    place-items:
        end center;

    min-height: 220px;

    overflow: hidden;

    border-radius: 12px;

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(22,136,255,.2),
            rgba(4,22,42,.84)
        );
}


.ts-portfolio-website-fallback aside span {
    width: 115px;
    height: 175px;

    border-radius:
        58px 58px
        17px 17px;

    background:
        linear-gradient(
            to bottom,
            rgba(145,190,230,.42),
            rgba(38,91,142,.59)
        );
}


/* =========================================================
   INFO
========================================================= */

.ts-portfolio-project__info {
    max-width: 710px;
}


.ts-portfolio-project__category {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 12px;

    color:
        var(--tp-blue-light);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .09em;

    text-transform: uppercase;
}


.ts-portfolio-project__category i {
    width: 18px;
    height: 1px;

    background:
        var(--tp-yellow);
}


.ts-portfolio-project__info h3 {
    margin:
        0 0 13px;

    color:
        var(--tp-text);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(
            26px,
            2.1vw,
            35px
        );

    font-weight: 650;

    line-height: 1.15;

    letter-spacing: -.035em;
}


.ts-portfolio-project__info > p {
    max-width: 650px;

    margin:
        0 0 20px;

    color:
        var(--tp-muted);

    font-size: 13px;

    line-height: 1.65;
}


/* Capabilities — not tags */

.ts-portfolio-project__capabilities {
    display: flex;

    flex-wrap: wrap;

    gap:
        9px 25px;
}


.ts-portfolio-project__capabilities span {
    position: relative;

    padding-left: 15px;

    color:
        rgba(218,231,243,.83);

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


.ts-portfolio-project__capabilities span::before {
    content: "";

    position: absolute;

    width: 5px;
    height: 5px;

    left: 0;
    top: 5px;

    border-radius: 50%;

    background:
        var(--tp-yellow);

    box-shadow:
        0 0 7px rgba(255,196,0,.34);
}


/* =========================================================
   FOOTNOTE
========================================================= */

.ts-portfolio__footnote {
    display: grid;

    grid-template-columns:
        auto minmax(0,1fr);

    align-items: center;

    gap:
        clamp(35px, 6vw, 85px);

    margin-top:
        clamp(65px, 7vw, 90px);

    padding:
        26px 0;

    border-top:
        1px solid rgba(72,150,226,.09);

    border-bottom:
        1px solid rgba(72,150,226,.09);
}


.ts-portfolio__footnote span {
    color:
        var(--tp-yellow);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        16px;

    font-weight: 650;

    white-space: nowrap;
}


.ts-portfolio__footnote p {
    max-width: 760px;

    margin: 0;

    color:
        var(--tp-muted);

    font-size: 12px;

    line-height: 1.65;
}


/* =========================================================
   REVEAL
========================================================= */

[data-portfolio-reveal] {
    opacity: 0;

    transform:
        translateY(21px);

    transition:
        opacity 680ms ease,
        transform 680ms ease;
}


[data-portfolio-reveal].is-visible {
    opacity: 1;

    transform: none;
}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1280px) {

    .ts-portfolio__container,
    .ts-portfolio-transition {
        width:
            min(
                calc(100% - 48px),
                1220px
            );
    }


    .ts-portfolio__experience {
        grid-template-columns:
            minmax(285px, .61fr)
            minmax(620px, 1.39fr);
    }


    .ts-portfolio__index {
        padding-right: 34px;
    }


    .ts-portfolio-project {
        padding-left: 44px;
    }

}


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

@media (max-width: 980px) {

    .ts-portfolio {
        padding:
            114px 0
            90px;
    }


    .ts-portfolio__container,
    .ts-portfolio-transition {
        width:
            min(
                calc(100% - 38px),
                820px
            );
    }


    .ts-portfolio__heading {
        grid-template-columns: 1fr;

        gap: 22px;
    }


    .ts-portfolio__heading > p {
        max-width: 640px;
    }


    .ts-portfolio__experience {
        grid-template-columns: 1fr;

        min-height: 0;
    }


    .ts-portfolio__index {
        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        padding-right: 0;

        border-right: 0;

        border-bottom:
            1px solid rgba(72,150,226,.11);
    }


    .ts-portfolio-item {
        min-height: 115px;

        grid-template-columns:
            1fr;

        align-content: center;

        gap: 5px;

        padding:
            17px 18px;

        border-bottom: 0;

        border-right:
            1px solid rgba(72,150,226,.09);
    }


    .ts-portfolio-item:last-child {
        border-right: 0;
    }


    .ts-portfolio-item svg {
        display: none;
    }


    .ts-portfolio-item::before {
        width: auto;
        height: 2px;

        left: 18px;
        right: 18px;
        top: auto;
        bottom: 0;
    }


    .ts-portfolio-item:hover,
    .ts-portfolio-item.is-active {
        padding-left: 18px;
    }


    .ts-portfolio-project {
        padding:
            50px 0;
    }


    .ts-portfolio-project.is-active {
        min-height: 675px;
    }


    .ts-portfolio-project__visual {
        min-height: 420px;
    }

}


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

@media (max-width: 680px) {

    .ts-portfolio {
        padding:
            102px 0
            75px;
    }


    .ts-portfolio__container,
    .ts-portfolio-transition {
        width:
            calc(100% - 28px);
    }


    .ts-portfolio__heading h2 {
        font-size:
            clamp(
                35px,
                10vw,
                46px
            );
    }


    .ts-portfolio__index {
        display: flex;

        overflow-x: auto;

        scrollbar-width: none;
    }


    .ts-portfolio__index::-webkit-scrollbar {
        display: none;
    }


    .ts-portfolio-item {
        min-width: 220px;

        flex: 0 0 220px;
    }


    .ts-portfolio-project {
        padding:
            40px 0;
    }


    .ts-portfolio-project.is-active {
        min-height: 590px;
    }


    .ts-portfolio-project__visual {
        min-height: 320px;

        margin-bottom: 24px;
    }


    .ts-portfolio-browser {
        width: 108%;
    }


    .ts-portfolio-project__info h3 {
        font-size:
            clamp(
                26px,
                8vw,
                34px
            );
    }


    .ts-portfolio-project__capabilities {
        display: grid;

        gap: 10px;
    }


    .ts-portfolio__footnote {
        grid-template-columns: 1fr;

        gap: 10px;

        margin-top: 58px;
    }


    .ts-portfolio__footnote span {
        white-space: normal;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ts-portfolio *,
    .ts-portfolio *::before,
    .ts-portfolio *::after {
        transition-duration:
            .01ms !important;
    }


    [data-portfolio-reveal] {
        opacity: 1;

        transform: none;
    }

}