/* ==============================================
   BASE RESETS
   ============================================== */

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham/GothamProLight.woff2') format('woff2'),
    url('../fonts/gotham/GothamProLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham/GothamProRegular.woff2') format('woff2'),
    url('../fonts/gotham/GothamProRegular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham/GothamProMedium.woff2') format('woff2'),
    url('../fonts/gotham/GothamProMedium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham/GothamProBold.woff2') format('woff2'),
    url('../fonts/gotham/GothamProBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham/GothamProBlack.woff2') format('woff2'),
    url('../fonts/gotham/GothamProBlack.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: #000000;
}

body.admin-bar #page-header.sticky-top-bg {
    opacity: 0;
}

img {
    max-width: 100%;
}

svg {
    width: 100%;
    height: auto;
}

section {
    width: 100%;
}

p:not(:last-child) {
    margin-bottom: 1em;
}

#page-header .header-wrapper {
    box-shadow: 0 1px 3px #070e271f;
}

/* ==============================================
   REUSABLE UI: Tag List
   ============================================== */
.tag-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-list__item {
    padding: 6px 20px;
    display: block;
    background-color: #333;
    border-radius: 4px;
    font-size: 14px;
    line-height: normal;
    color: #FFF;
}

/* ==============================================
   PAGE WRAPPER
   ============================================== */
.case-study {
    font-family: 'Gotham', sans-serif;
    color: #FFF;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
}

.case-study .container {
    max-width: 1360px;
    padding: 0 20px;
    margin: 0 auto;
}

.section-title {
    color: #FFF;
    font-size: 29px;
    font-weight: 700;
    line-height: 0.93;
    text-transform: uppercase;
}

/* ==============================================
   SECTION: Hero
   ============================================== */
.hero {
    margin-top: -66px;
    margin-bottom: 75px;
}

.hero__mobile {
    display: none;
}

/* ==============================================
   SECTION: Overview
   ============================================== */
.overview {
    margin-bottom: 120px;
}

.overview .section-title {
    margin-bottom: 30px;
}

.overview__info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 120px;
}

.overview__intro {
    max-width: 582px;
}

.overview__details {
    max-width: 590px;
}

.overview__meta {
    display: flex;
    gap: 40px;
    justify-content: space-between;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #E8E9EB;
}

.overview__meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    max-width: 220px;

    &:first-child {
        max-width: 150px;
    }
}

.overview__meta-label {
    color: #979797;
}

.overview__images {
    display: flex;
    gap: 17px;
}

/* ==============================================
   SECTION: Timeline
   ============================================== */
.timeline {
    margin: 120px 0;
}

.timeline__heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
}

.timeline__text {
    max-width: 461px;
}

.timeline__row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.timeline__item {
    flex: 1 1;
    text-align: center;
    padding: 6px;
    border-radius: 4px;
    background: #333;
    font-size: 14px;
    position: relative;
}

.timeline__item:after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D9D9D9;
    display: block;
}

.timeline__line {
    width: 100%;
    height: 2px;
    border-radius: 46px;
    background: linear-gradient(90deg, #222 0%, #5B5B5B 49.52%, #222 100%);
}

.solutions {
    margin: 120px 0;
    padding-top: 190px;
}

.solutions__wrapper {
    padding: 40px;
    border-radius: 12px;
    background: #222;
    position: relative;
}

.solutions__heading {
    margin-bottom: 105px;
}

.solutions__row {
    display: flex;
    gap: 100px;
}

.solutions__item {
    flex: 1 1;
    max-width: 490px;
}

.solutions__item .section-title {
    margin-bottom: 12px;
}

.solutions__item .text {
    font-size: 14px;
    color: #9D9D9C;
}

.solutions__image {
    position: absolute;
    right: 0;
    top: -189px;
    max-width: 550px;
}

.gallery {
    margin: 120px 0;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery__col img:not(:last-child) {
    margin-bottom: 20px;
}

.features {
    margin: 120px 0;
}

.features__row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.features__item {
    flex: 1 1;
}

.features__item img {
    border-radius: 12px;
    overflow: hidden;
}

.features__item:first-child img {
    padding-right: 3px;
}

.features__item .section-title {
    margin-bottom: 12px;
}

.features__item .subtitle {
    color: #FFF;
    font-size: 14px;
    margin-bottom: 6px;
}

.features__item .text {
    color: #9D9D9C;
    font-size: 14px;
    margin-bottom: 20px;
}


.application-preview {
    margin: 120px 0;
    position: relative;
}

.application-preview__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1140px;
}

.application-preview__content svg {
    width: 100%;
    height: auto;
}

.application-preview__content img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 390px;
}


.design {
    margin: 120px 0;
}

.design__heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.design__text {
    width: 100%;
    max-width: 553px;
    color: #9D9D9C;
    font-size: 14px;
}

.design__subtitle {
    color: #FFF;
    margin-bottom: 6px;
}


.ui-design {
    margin: 120px 0;
    position: relative;
}

.ui-design__heading {
    position: absolute;
    top: 0;
    left: 0;
}

.ui-design__text {
    max-width: 401px;
    position: absolute;
    top: 185px;
    right: 89px;
    font-size: 15px;
}

.ui-design__image.second {
    max-width: 640px;
    margin: -40px auto 0;
}


.typography {
    margin: 120px 0;
}

.typography__heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 3px;
}

.typography__text {
    max-width: 518px;
    font-size: 14px;
    color: #9D9D9C;
}

.typography__fonts {
    font-size: 20px;
    margin-bottom: 20px;
}

.typography__fonts .bold {
    font-weight: 900;
}

.typography__colors .colors-row {
    margin-top: -50px;
    display: flex;
}

.typography__colors .color-item {
    flex: 1 1;
    height: 230px;
    border-radius: 8px;
    background: var(--bg-color, #ffffff);
    color: var(--color, #ffffff);
    padding: 10px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.typography__colors .color-item .name,
.typography__colors .color-item .code {
    font-size: 12px;
    font-weight: 400;
}


.application {
    margin: 120px 0;
}

.application__grid {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 60px 14px;

    border-radius: 12px;
    background: #222;

    padding: 80px 12px;
}

.application__item:not(.small) {
    grid-column: span 2;
}


.results {
    margin: 120px 0;
}

.results__header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 60px;
}

.results__text {
    max-width: 553px;
    color: #9D9D9C;
    font-size: 14px;
}

.results__subtitle {
    color: #fff;
    margin-bottom: 6px;
}

.results__quote {
    max-width: 986px;
    margin-bottom: 60px;
}

.results__quote .quote__text {
    display: flex;
    gap: 11px;

    color: #FFF;
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 20px;
}

.results__quote .quote__text:before {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='45' height='30' viewBox='0 0 45 30' fill='none'%3E%3Cpath d='M11.5577 0H21.4644L16.1572 12.5954C18.7518 14.313 20.0491 17.1756 20.0491 20.2672C20.0491 25.9924 15.8034 30 10.0246 30C4.71745 30 0 26.5649 0 20.2672C0 17.2901 1.17936 14.771 2.71253 12.4809L11.5577 0ZM38.3292 12.5954C40.9238 14.313 42.2211 17.1756 42.2211 20.2672C42.2211 25.9924 37.9754 30 32.1966 30C26.8894 30 22.172 26.5649 22.172 20.2672C22.172 17.2901 23.3514 14.771 24.8845 12.4809L33.7297 0H43.6364L38.3292 12.5954Z' fill='%23EF9302'/%3E%3C/svg%3E");
    display: block;
    width: 45px;
    height: 30px;
    aspect-ratio: 3/2;
}

.results__quote .quote__user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.results__quote .quote__user--image {
    max-width: 60px;
    padding: 4px;
}

.results__quote .quote__user--name {
    color: #FFF;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 4px;
}

.results__quote .quote__user--position {
    color: #9D9D9C;
    font-size: 16px;
    font-weight: 400;
}

.results__grid {
    display: flex;
    gap: 20px;
}

.results__item {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;

    padding: 20px;
    border-radius: 12px;
    background: #222;
}

.results__item .text {
    margin-bottom: 22px;
}

.results__item .image {
    margin-top: auto;
}

.results__item:last-child .image {
    display: flex;
    justify-content: center;
}

.results__item:last-child .image img {
    max-width: 330px;
    margin: 0 auto -20px;
}

@media (max-width: 1320px) {
    .ui-design__text {
        max-width: 340px;
        right: 20px;
    }
}

@media (max-width: 1024px) {
    .case-study {
        font-size: 15px;
    }
    .section-title {
        font-size: 24px;
        font-weight: 700;
        line-height: 27px;
    }
    .hero {
        margin-top: 20px;
        margin-bottom: 60px;
    }
    .hero__desktop {
        display: none;
    }
    .hero__mobile {
        display: block;
    }
    .results__grid {
        flex-direction: column;
    }
    .solutions {
        padding-top: 0px;
    }
    .solutions__wrapper {
        padding-bottom: 70vw;
    }
    .solutions__image {
        right: 0;
        top: auto;
        bottom: 0;
        max-width: 60vw;
    }
    .ui-design__image:not(.second) {
        max-width: 550px;
        padding-top: 70px;
    }
    .typography__colors .colors-row {
        margin-top: -20px;
    }
    .overview {
        margin-bottom: 60px;
    }
    .overview__info {
        flex-direction: column;
        margin-bottom: 60px;
    }
    .overview .section-title {
        margin-bottom: 24px;
    }
    .timeline {
        margin: 60px 0;
    }
    .timeline__heading {
        flex-direction: column;
        margin-bottom: 24px;
    }
    .timeline__content {
        display: flex;
        flex-direction: row-reverse;
        gap: 20px;
    }
    .timeline__row {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        margin-bottom: 0;
    }
    .timeline__line {
        width: 2px;
        height: auto;
        border-radius: 46px;
        background: linear-gradient(90deg, #222 0%, #5B5B5B 49.52%, #222 100%);
    }
    .timeline__item:after {
        bottom: 50%;
        left: -25px;
        transform: translate(0, 50%);
    }
    .solutions {
        margin: 60px 0;
    }
    .solutions__wrapper {
        padding: 20px;
        padding-bottom: 340px;
    }
    .solutions__row {
        flex-direction: column;
        gap: 40px;
    }
    .solutions__heading {
        margin-bottom: 30px;
    }
    .solutions__image {
        max-width: 314px;
    }
    .gallery {
        margin: 60px 0;
    }
    .gallery__grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    .features {
        margin: 60px 0;
    }
    .features__row {
        flex-direction: column;
    }
    .application-preview {
        margin: 60px 0;
    }
    .application-preview__content img {
        max-width: 142px;
    }
    .design {
        margin: 60px 0;
    }
    .design__heading {
        flex-direction: column;
    }
    .design__image {
        border-radius: 6px;
        overflow: hidden;
    }
    .design__image img {
        aspect-ratio: 1.02/1;
        object-fit: cover;
        object-position: center;
    }
    .ui-design {
        margin: 60px 0;
    }
    .ui-design__heading {
        position: static;
        margin-bottom: 20px;
    }
    .ui-design__text {
        position: static;
    }
    .ui-design__image:not(.second) {
        max-width: 100%;
        padding-top: 20px;
    }
    .ui-design__image:not(.second) img {
        aspect-ratio: 1 / 1.2;
        object-fit: cover;
        object-position: center;
    }
    .ui-design__image.second {
        margin: 20px auto 0;
    }
    .typography {
        margin: 60px 0;
    }
    .typography__heading {
        flex-direction: column;
    }
    .typography__text {
        margin-bottom: 24px;
    }
    .typography__fonts {
        margin-bottom: 40px;
    }
    .typography__colors .colors-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 16px;
        margin-top: -12px;
    }
    .typography__colors .color-item {
        height: 58px;
    }
    .application {
        margin: 60px 0;
    }
    .application__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 20px;
    }
    .application__item:not(.small) {
        grid-column: span 1;
    }
    .application__item.small {
        display: none;
    }
    .results {
        margin: 60px 0;
    }
    .results__header {
        flex-direction: column;
        margin-bottom: 60px;
    }
    .results__quote .quote__text {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .results__quote .quote__text:before {
        width: 35px;
        height: 24px;
        aspect-ratio: 35/24;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    .results__quote .quote__user {
        padding-left: 45px;
    }
}