.hero {
    height: 100svh;
    padding-top: 250px;
    padding-bottom: 60px;
}

.hero-main-wrapper {
    min-height: calc(100svh - 310px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-heading-wrapper {
    margin-bottom: 36px;
}

.hero-heading {
    display: flex;
    flex-wrap: wrap;
}

.hero-word {
    display: inline-block;
    font-size: clamp(48px, 10vw, 150px);
    line-height: 0.8;
    color: var(--clr-white);
}

.text-orange {
    color: var(--clr-orange);
}

.hero-break {
    flex-basis: 100%;
    height: 0;
}

.mobile-only {
    display: none;
}

.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-paragraph {
    max-width: 480px;
}

.scroll-down-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.scroll-down-text {
    font-size: 14px;
    line-height: 1;
}

.scroll-down-icon {
    max-width: 20px;
}

/* TABLET */

@media (max-width: 1040px) {
    .hero-main-wrapper {
        justify-content: flex-end;
        gap: 32px;
    }

    .hero-heading-wrapper {
        margin: 0;
    }

    .hero-content-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 32px;
    }
}

/* MOBILE */

@media (max-width: 992px) and (orientation: landscape) {
    .hero {
        min-height: 550px;
        padding-top: 180px;
        padding-bottom: 24px;
    }
}

@media (max-width: 479px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}


/* INTRO SECTION */

.intro {
    height: 100svh;
}

.intro-main-wrapper {
    position: relative;
    height: 85svh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.intro-heading {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.25em;
}

.intro-word {
    display: inline-block;
    font-size: clamp(32px, 7vw, 120px);
    line-height: 0.85;
    white-space: nowrap;
}

.intro-break {
    flex-basis: 100%;
    height: 0;
}

.intro-break.mobile-only {
    display: none;
}

.intro-paragraph {
    max-width: 480px;
}

.intro-visual {
    position: absolute;
    width: 600px;
    right: 60px;
    bottom: 0;
}

.intro-brain {
    display: block;
    width: 100%;
    height: auto;
}

.intro-label {
    position: absolute;
    display: inline-flex;
    flex-direction: column;
    width: max-content;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
}

.intro-label::after {
    content: "";
    display: block;
    width: calc(100% + 20px);
    height: 1px;
    margin-top: 6px;
    background-color: #777777;
}

.intro-label::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    bottom: -3px;
    border-radius: 50%;
    background-color: var(--clr-orange);
}

.intro-label-planning {
    top: 10%;
    right: -40px;
    align-items: flex-end;
}

.intro-label-planning::before {
    left: -27px;
}

.intro-label-problem {
    top: 65%;
    left: -120px;
    align-items: flex-start;
}

.intro-label-problem::before {
    right: -27px;
}

.intro-label-development {
    bottom: 10%;
    right: -40px;
    align-items: flex-end;
}

.intro-label-development::before {
    left: -27px;
}

/* TABLET */

@media (max-width: 1040px) {
    .intro {
        height: auto;
        min-height: 100svh;
    }

    .intro-main-wrapper {
        height: auto;
    }

    .intro-paragraph {
        margin-top: 32px;
    }

    .intro-visual {
        position: relative;
        width: 77%;
        max-width: 528px;
        right: auto;
        bottom: auto;
        margin: 80px auto 0;
    }

    .intro-label {
        font-size: 16px;
    }

    .intro-label-planning {
        top: calc(10% - 10px);
        right: -10px;
    }

    .intro-label-problem {
        top: calc(75% + 10px);
        left: -10px;
    }

    .intro-label-development {
        bottom: calc(10% - 10px);
        right: -10px;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .intro-visual {
        width: 65%;
        margin-top: 80px;
    }

    .intro-label-planning {
        top: calc(10% - 10px);
        right: -30px;
    }

    .intro-label-problem {
        top: calc(75% + 15px);
        left: -45px;
    }

    .intro-label-development {
        bottom: calc(10% - 15px);
        right: -45px;
    }
}

/* MOBILE PORTRAIT */

@media (max-width: 479px) {
    .intro-visual {
        width: 70%;
    }

    .intro-label {
        font-size: 14px;
    }

    .intro-label::after {
        width: 100%;
    }

    .intro-label-planning {
        top: calc(10% - 10px);
        right: -20px;
    }

    .intro-label-planning::before {
        left: -7px;
    }

    .intro-label-problem {
        top: calc(75% + 20px);
        left: -30px;
    }

    .intro-label-problem::before {
        right: -7px;
    }

    .intro-label-development {
        bottom: calc(10% - 20px);
        right: -30px;
    }

    .intro-label-development::before {
        left: -7px;
    }
}



.solutions-heading {
    display: flex;
    flex-direction: column;
    font-size: clamp(25px, 7vw, 120px);
    line-height: 0.85;
}

.solutions-heading span {
    display: block;
}

.solution-cards-wrapper {
    margin-top: 80px;
}

.solution-card {
    width: 100%;
    padding: 32px;
    display: flex;
    justify-content: space-between;
}

.is-grey {
    background-color: var(--clr-grey);
}

.is-orange {
    background-color: var(--clr-orange);
}

.solution-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
}

.heading-three {
    font-size: 48px;
    line-height: 1;
    color: var(--clr-black);
}

.solution-paragraph {
    max-width: 600px;
    color: var(--clr-black);
}


/* TABLET */

@media (max-width: 992px) {
    .solution-cards-wrapper {
        margin-top: 48px;
    }

    .heading-three {
        font-size: 36px;
    }

    .solution-card {
        padding: 24px;
        gap: 48px;
    }
}

/* MOBILE */

@media (max-width: 769px) {
    .solution-card {
        flex-direction: column;
        gap: 36px;
    }

    .solution-icons {
        max-width: 76px;
        align-self: flex-end;
    }

    .solution-cards-wrapper {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-top: 40px;
    }
}

/* SOLUTIONS STACK CARDS */

@media (min-width: 768px) {
    .solution-cards-wrapper {
        position: relative;
        padding-bottom: 300px;
    }

    .solution-card {
        position: sticky;
        top: 12vh;
        margin-bottom: 0;
        transform-origin: center center;
    }

    .solution-card:last-child {
        margin-bottom: 0;
    }
}

/* MOBILE PORTRAIT */

@media (max-width: 479px) {
    .heading-three {
        font-size: 24px;
    }

    .solution-card-content {
        gap: 16px;
    }

    .solution-card {
        padding: 16px;
        gap: 24px;
    }

    .solution-icons {
        max-width: 54px;
    }
}


.case-study {
    position: relative;
}

.case-study-panel {
    position: relative;
    isolation: isolate;
    padding-block: 96px;
}

.case-study-panel > .container-lg {
    width: 100%;
}

.case-study-panel .case-study-main {
    width: 100%;
}

.case-study-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 72px;
}

.case-study-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.heading-white {
    color: var(--clr-white);
}

.case-study-label {
    margin-top: 16px;
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1;
    color: rgba(7, 7, 7, 0.7);
}

.label-white {
    color: rgba(235, 237, 236, 0.7);
}

.case-study-paragraph {
    max-width: 560px;
}

.case-study-link-wrapper {
    display: flex;
    gap: 8px;
}

.case-study-link {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.arrow-icon {
    max-width: 20px;
}

.case-study-image {
    width: 100%;
}


/* DESKTOP PINNED PANELS */

@media (min-width: 1041px) {
    .case-study-panel {
        min-height: 100svh;
        display: flex;
        align-items: center;
    }
}


/* TABLET */

@media (max-width: 1040px) {
    .case-study-panel {
        min-height: auto;
        display: block;
        padding-block: 72px;
    }

    .case-study-content {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 32px;
        margin-bottom: 48px;
    }
}


/* MOBILE */

@media (max-width: 767px) {
    .case-study-panel {
        padding-block: 48px;
    }

    .case-study-content {
        gap: 24px;
        margin-bottom: 40px;
    }

    .case-study-link {
        font-size: 16px;
    }
}



.about {
    padding-block: 240px;
}

.about-main-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}



.about-heading {
    display: flex;
    flex-direction: column;
    font-size: clamp(32px, 7vw, 120px);
    line-height: 0.90;
}

.about-heading span {
    display: block;
}

.about-paragraph {
    max-width: 510px;
    margin-top: 40px;
}

.about-absolute-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 500 / 490;
}

.black-box {
    width: 100%;
    max-width: 408px;
    height: 490px;
    position: absolute;
    background-color: var(--clr-black);
    z-index: 500;
}

.orange-box {
    width: 100%;
    max-width: 408px;
    height: 490px;
    position: absolute;
    background-color: var(--clr-orange);
    z-index: 400;
    left: 32px;
    top: -32px;
}

.about-image {
    max-width: 409px;
    position: absolute;
    z-index: 1000;
    top: 14px;
}

/* TABLET */ 

@media (max-width: 1040px) {
    .about {
        padding-block: 72px;
    }

    .about-main-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 120px;
    }

    .about-absolute-wrapper {
        align-self: center;
    }

    .about-paragraph {
        margin-top: 32px;
    }
}

/* MOBILE */ 

@media (max-width: 767px) {
    .about {
        padding-block: 48px;
    }

    .about-main-wrapper {
        gap: 80px;
    }

    .about-paragraph {
        margin-top: 24px;
    }

}


/* MOBILE PORTRAIT */

@media (max-width: 479px) {
    .black-box {
        max-width: 260px;
        height: 311px;
    }

    .orange-box {
        max-width: 260px;
        height: 311px;
    }

    .about-image {
        max-width: 260px;
        top: 9px;
    }
}



.cta {
    height: 100svh;
    padding-top: 96px;
    padding-bottom: 72px;
}

.cta > .container-lg {
    height: 100%;
}

.cta-main-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%;
}

.cta-heading {
    display: flex;
    flex-direction: column;
    font-size: clamp(56px, 8vw, 120px);
    line-height: 0.90;
}

.cta-heading span {
    display: block;
}

.bottom-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cta-link-wrapper {
    display: flex;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 48px;
    line-height: 1;
    font-family: var(--ff-heading);
    font-weight: 800;
    color: inherit;
    transition: color 300ms ease;
}

.cta-arrow {
    display: block;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: currentColor;

    -webkit-mask: url("../assets/icons/arrow-bold.svg")
        center / contain no-repeat;

    mask: url("../assets/icons/arrow-bold.svg")
        center / contain no-repeat;

    transition: transform 300ms ease;
}

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

.social-media-icon {
    max-width: 32px;
}

/* HOVER */

@media (hover: hover) {
    .cta-link:hover {
        color: var(--clr-orange);
    }

    .cta-link:hover .cta-arrow {
        transform: translate(4px, -4px);
    }
}

/* KEYBOARD FOCUS */

.cta-link:focus-visible {
    color: var(--clr-orange);
}

/* TABLET */

@media (max-width: 992px) {
    .cta {
        padding-top: 72px;
        padding-bottom: 48px;
    }
}

/* MOBILE */

@media (min-width: 480px) and (max-width: 767px) and (orientation: landscape) {
    .bottom-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

@media (max-width: 767px) {
    .cta {
        min-height: 650px;
        padding-top: 48px;
        padding-bottom: 32px;
    }

    .cta-link {
        gap: 6px;
        font-size: 36px;
    }

    .cta-arrow {
        width: 24px;
        height: 24px;
    }

    .social-wrapper {
        gap: 12px;
    }

    .social-media-icon {
        max-width: 24px;
    }
}

/* MOBILE PORTRAIT */

@media (max-width: 479px) {
    .bottom-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 24px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .cta-link,
    .cta-arrow {
        transition: none;
    }

    .cta-link:hover .cta-arrow {
        transform: none;
    }
}

