@font-face {
    font-family: "Stem";
    src: url("/wp-content/uploads/2024/11/Stem-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Satoshi";
    src: url("/wp-content/uploads/2024/08/Satoshi-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Satoshi";
    src: url("/wp-content/uploads/2024/08/Satoshi-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body.page-template-page-portfolio .site-main,
body.page-id-2130 .site-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rt-portfolio-hero,
.rt-portfolio-studies,
.rt-portfolio-section {
    --rt-portfolio-max: 1780px;
    --rt-portfolio-gutter: clamp(20px, 3vw, 56px);
    --rt-portfolio-blue: #6255ff;
    --rt-portfolio-ink: #1e1e22;
    box-sizing: border-box;
    color: var(--rt-portfolio-ink);
    font-family: "Satoshi", Raleway, Arial, sans-serif;
}

.rt-portfolio-hero *,
.rt-portfolio-studies *,
.rt-portfolio-section * {
    box-sizing: border-box;
}

.rt-portfolio-hero {
    width: min(calc(100% - (var(--rt-portfolio-gutter) * 2)), 1456px);
    min-height: 560px;
    margin: 0 auto;
    padding: 44px 0 24px;
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr);
    gap: clamp(36px, 5vw, 84px);
    align-items: center;
    position: relative;
    text-align: left;
    isolation: isolate;
    background: transparent;
}

.rt-portfolio-hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    top: -56px;
    bottom: -56px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 24% 38%, rgba(98, 85, 255, .18) 0, rgba(98, 85, 255, .09) 34%, rgba(255, 255, 255, 0) 68%),
        linear-gradient(105deg, #ebe8ff 0%, #f7f8ff 38%, #fff 65%, #fff 100%);
    pointer-events: none;
}

.rt-portfolio-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 44px;
    right: -34px;
    width: 46%;
    height: calc(100% - 68px);
    border-radius: 32px;
    background:
        radial-gradient(circle at 76% 22%, rgba(98, 85, 255, .18) 0, rgba(98, 85, 255, 0) 54%),
        linear-gradient(135deg, rgba(255, 255, 255, .72) 0%, #ebe8ff 100%);
    box-shadow: 0 18px 44px rgba(18, 20, 35, .06);
}

.rt-portfolio-hero__copy {
    min-width: 0;
    margin-top: 29px;
    display: grid;
    gap: 18px;
    align-self: start;
    align-content: center;
    animation: rtPortfolioRise 650ms cubic-bezier(.2, 0, 0, 1) both;
}

.rt-portfolio-hero h1 {
    margin: 0;
    max-width: 620px;
    color: #171717;
    font-family: "Satoshi", Raleway, Arial, sans-serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
    text-wrap: balance;
}

.rt-portfolio-hero .rt-portfolio-hero__lead {
    max-width: 610px;
    margin: 0;
    color: #4b5263;
    font-size: 18px;
    line-height: 30px;
}

.rt-portfolio-hero .rt-seo-m3-hero-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    color: #171717;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.rt-portfolio-hero .rt-seo-m3-hero-points li {
    position: relative;
    padding-left: 24px;
}

.rt-portfolio-hero .rt-seo-m3-hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rt-portfolio-blue);
    box-shadow: 0 0 0 6px #ebe8ff;
}

.rt-portfolio-hero__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rt-portfolio-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 200ms cubic-bezier(.2, 0, 0, 1), box-shadow 200ms cubic-bezier(.2, 0, 0, 1), background-color 200ms cubic-bezier(.2, 0, 0, 1);
}

.rt-portfolio-button--filled {
    background: var(--rt-portfolio-blue);
    color: #fff;
    box-shadow: 0 10px 24px rgba(98, 85, 255, .2);
}

.rt-portfolio-button--outlined {
    background: #fff;
    border-color: #d8dae2;
    color: #171717;
}

.rt-portfolio-button:hover,
.rt-portfolio-button:focus-visible {
    transform: translateY(-2px);
}

.rt-portfolio-button:focus-visible {
    outline: 2px solid var(--rt-portfolio-blue);
    outline-offset: 4px;
}

.rt-portfolio-button:active {
    transform: scale(.98);
}

.rt-portfolio-hero .rt-portfolio-hero__microcopy {
    margin: 0;
    color: #686f7e;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
}

.rt-portfolio-hero__visual {
    min-width: 0;
    height: 492px;
    position: relative;
}

.rt-portfolio-hero-project {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 8px;
    background: #e7e9ef;
    box-shadow: 0 18px 42px rgba(18, 20, 35, .14);
    animation: rtPortfolioRise 700ms cubic-bezier(.2, 0, 0, 1) both;
}

.rt-portfolio-hero-project--main {
    inset: 32px 24% 28px 0;
    animation-delay: 80ms;
}

.rt-portfolio-hero-project--top {
    top: 0;
    right: 0;
    width: 39%;
    height: 45%;
    animation-delay: 150ms;
}

.rt-portfolio-hero-project--bottom {
    right: 3%;
    bottom: 0;
    width: 43%;
    height: 47%;
    animation-delay: 220ms;
}

.rt-portfolio-hero-project img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(.2, 0, 0, 1);
}

.rt-portfolio-hero-project:hover img {
    transform: scale(1.025);
}

.rt-portfolio-hero-project figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 9px 11px;
    border-radius: 4px;
    background: rgba(16, 17, 21, .84);
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    font-weight: 800;
}

.rt-portfolio-hero-project figcaption span {
    display: block;
    color: rgba(255, 255, 255, .74);
    font-size: 11px;
    font-weight: 600;
}

@keyframes rtPortfolioRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rt-portfolio-studies,
.rt-portfolio-section {
    padding: clamp(70px, 7vw, 130px) 0;
    overflow: hidden;
    background: #fff;
}

.rt-portfolio-studies {
    background: var(--rt-portfolio-blue);
}

.rt-portfolio-section:nth-of-type(odd) {
    background: #f8f8f8;
}

.rt-portfolio-section__head {
    width: min(100%, var(--rt-portfolio-max));
    margin: 0 auto clamp(34px, 4vw, 62px);
    padding-inline: var(--rt-portfolio-gutter);
    text-align: center;
}

.rt-portfolio-section__head h2 {
    margin: 0;
    color: var(--rt-portfolio-ink);
    font-family: "Stem", "Satoshi", Arial, sans-serif;
    font-size: clamp(48px, 6vw, 118px);
    font-weight: 500;
    line-height: .95;
}

.rt-portfolio-studies .rt-portfolio-section__head h2,
.rt-portfolio-studies .rt-portfolio-section__head p {
    color: #fff;
}

.rt-portfolio-section__head p {
    max-width: 520px;
    margin: 16px auto 0;
    color: #4f5159;
    font-size: clamp(17px, 1.2vw, 22px);
    line-height: 1.45;
}

.rt-portfolio-tabs {
    width: min(100%, var(--rt-portfolio-max));
    margin: 0 auto;
    padding-inline: var(--rt-portfolio-gutter);
}

.rt-portfolio-tabs__nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: clamp(28px, 3vw, 46px);
    overflow-x: auto;
    scrollbar-width: none;
}

.rt-portfolio-tabs__nav::-webkit-scrollbar {
    display: none;
}

.rt-portfolio-tabs .rt-portfolio-tab {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px !important;
    background: #f1f2f4 !important;
    color: var(--rt-portfolio-ink) !important;
    min-width: clamp(138px, 10vw, 192px);
    padding: 19px 28px;
    font-family: "Satoshi", Arial, sans-serif;
    font-size: clamp(17px, 1.08vw, 20px);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
    transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}

.rt-portfolio-tabs .rt-portfolio-tab.is-active,
.rt-portfolio-tabs .rt-portfolio-tab:hover,
.rt-portfolio-tabs .rt-portfolio-tab:focus-visible {
    background: var(--rt-portfolio-blue) !important;
    border-color: var(--rt-portfolio-blue) !important;
    color: #fff !important;
}

.rt-portfolio-tabs .rt-portfolio-tab:hover,
.rt-portfolio-tabs .rt-portfolio-tab:focus-visible {
    transform: translateY(-1px);
}

.rt-portfolio-panel[hidden] {
    display: none !important;
}

.rt-portfolio-section .rw-carousel {
    padding-inline: clamp(42px, 5vw, 96px) !important;
}

.rt-portfolio-section .rw-carousel__card {
    min-height: clamp(390px, 32vw, 560px) !important;
    border-radius: 28px !important;
}

.rt-portfolio-section .rw-carousel__title {
    font-size: clamp(20px, 1.4vw, 28px) !important;
    line-height: 1.05 !important;
}

.rt-portfolio-section .rw-carousel__sub {
    font-size: clamp(15px, 1.1vw, 19px) !important;
}

.rt-portfolio-section .rw-carousel-empty {
    min-height: 0;
}

.rt-portfolio-studies .rt-slider--projects {
    background: transparent !important;
}

.rt-portfolio-studies .rt-project-card strong {
    color: #fff !important;
}

@media (min-width: 1900px) {
    .rt-portfolio-hero {
        min-height: 560px;
    }

    .rt-portfolio-hero__visual {
        height: 492px;
    }

    .rt-portfolio-section .rw-carousel__card {
        min-height: 620px !important;
    }
}

@media (max-width: 1100px) {
    .rt-portfolio-hero {
        min-height: 0;
        padding: 52px 0 64px;
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .rt-portfolio-hero::after {
        top: auto;
        right: -24px;
        bottom: 32px;
        width: calc(100% + 48px);
        height: 38%;
        border-radius: 28px;
    }

    .rt-portfolio-hero h1 {
        max-width: 760px;
        font-size: 48px;
    }

    .rt-portfolio-hero .rt-portfolio-hero__lead {
        max-width: 720px;
    }
}

@media (max-width: 900px) {
    .rt-portfolio-hero {
        min-height: 0;
    }

    .rt-portfolio-hero__visual {
        height: 460px;
    }

    .rt-portfolio-button {
        min-width: 170px;
    }

    .rt-portfolio-tabs {
        padding-inline: 0;
    }

    .rt-portfolio-tabs__nav {
        justify-content: flex-start;
        padding-inline: var(--rt-portfolio-gutter);
    }

    .rt-portfolio-section .rw-carousel {
        padding-inline: 44px !important;
    }

    .rt-portfolio-section .rw-carousel__card {
        min-height: 62vh !important;
    }
}

@media (max-width: 560px) {
    .rt-portfolio-hero {
        width: calc(100% - 32px);
        padding: 24px 0 32px;
        gap: 20px;
    }

    .rt-portfolio-hero::before {
        top: -24px;
        bottom: -40px;
        background: linear-gradient(180deg, #ebe8ff 0%, #f8f8ff 42%, #fff 78%);
    }

    .rt-portfolio-hero::after {
        border-radius: 24px;
        background:
            radial-gradient(circle at 70% 20%, rgba(98, 85, 255, .16) 0, rgba(98, 85, 255, 0) 56%),
            linear-gradient(135deg, rgba(255, 255, 255, .74) 0%, #ebe8ff 100%);
    }

    .rt-portfolio-hero__copy {
        margin-top: 0;
        gap: 14px;
    }

    .rt-portfolio-hero h1 {
        font-size: 34px;
        line-height: 1.12;
    }

    .rt-portfolio-hero .rt-portfolio-hero__lead {
        font-size: 16px;
        line-height: 26px;
    }

    .rt-portfolio-hero .rt-seo-m3-hero-points {
        gap: 9px;
        font-size: 15px;
        line-height: 22px;
    }

    .rt-portfolio-hero__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .rt-portfolio-button {
        width: 100%;
    }

    .rt-portfolio-hero__visual {
        height: 300px;
    }

    .rt-portfolio-hero-project--main {
        inset: 0 0 28% 0;
    }

    .rt-portfolio-hero-project--top {
        top: auto;
        left: 0;
        right: auto;
        bottom: 0;
        width: 48%;
        height: 36%;
    }

    .rt-portfolio-hero-project--bottom {
        right: 0;
        bottom: 0;
        width: 48%;
        height: 36%;
    }

    .rt-portfolio-hero-project figcaption {
        left: 8px;
        bottom: 8px;
        max-width: calc(100% - 16px);
        padding: 7px 8px;
        font-size: 12px;
        line-height: 16px;
    }

    .rt-portfolio-hero-project figcaption span {
        font-size: 10px;
    }

    .rt-portfolio-section__head {
        text-align: left;
    }

    .rt-portfolio-section__head h2 {
        font-size: 48px;
    }

    .rt-portfolio-section__head p {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rt-portfolio-hero__copy,
    .rt-portfolio-hero-project {
        animation: none;
    }

    .rt-portfolio-hero-project img,
    .rt-portfolio-button {
        transition: none;
    }
}
