html, body {
    overflow-x: clip;
}

.line-heading {
    h1, h2 {
        margin-bottom: 12px;
    }

    .line {
        margin-left: 8px;
        height: 1px;
        width: 60px;
        background-color: white;
    }
}

.glow-circle {
    position: absolute;
    right: -300px;
}

.accent-btn {
    position: relative;
    
    a {
        font-size: 20px;
    }

    img {
        position: absolute;
        z-index: -1;
        top: -8px;
        left: 40px;
    }
}

.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 200px;

    .content {
        margin-left: 500px;
        margin-top: 100px;

        h1 {
            margin-bottom: 100px;
        }

        .subtext {
            margin-bottom: 100px;
            max-width: 600px;
        }
    }

    .gears {
        position: absolute;
        top: -80px;
        left: -40px;
    }
}

.service-description {
    border-top: 1px solid #1e1e1e;
    border-bottom: 1px solid #1e1e1e;

    padding-top: 80px;
    padding-bottom: 80px;

    .exclusive, .investment-range, .cta {
        display: flex;

        h2, h1 {
            width: 300px;
        }
    }

    .exclusive {
        margin-bottom: 200px;
    }

    .investment-range {
        margin-bottom: 100px;
    }
}

.inevitable {
    margin-top: 180px;
    position: relative;

    .man-on-laptop {
        position: absolute;
        height: 700px;
        top: -50px;
        left: -800px;
    }

    .content {
        margin-left: 300px;

        > .line-heading {
            margin-bottom: 80px;
        }
    }

    .top, .bottom {
        display: flex;
        gap: 40px;

        .line-heading {
            margin-bottom: 30px;
        }
    }

    .top {
        margin-bottom: 160px;
    }

    .left, .right {
        width: 450px;

        .subtext {
            width: 400px;
        }
    }

    
}

/* Origins */

.origins-page .section-padding {
    padding-left: 100px;
    padding-right: 100px;
}

.side-nav {
  position: fixed;
  display: flex;
  gap: 30px;
  top: 50%;
  left: 20px;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top; /* or center, depending on what you want */
  z-index: 1;
  
  a {
    font-size: 12px;
    font-weight: var(--light-fw);
    text-decoration: none;
    color: inherit;
    padding-bottom: 10px;
  }

  a:hover {
    cursor: pointer;
    text-decoration: underline;
  }
}

.origins-hero {
    padding-top: 150px;

    .hollow-clicalyst {
        align-self: center;
    }

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

    .content {
        margin-left: 0;
        margin-top: 10px;

        h1 {
            margin-bottom: 40px;
        }

        .subtext {
            margin-bottom: 60px;
        }
    }
}

.framework-section {
    position: relative;
    padding-top: 200px;
    margin-top: 100px;

    .letter-s {
        position: absolute;
        z-index: -1;
        top: 320px;
    }

    .sub-headline {
        margin-top: 140px;
        margin-left: 60px;
        width: 1000px;
    }

    .center-container {
        margin-top: 220px;
        display: flex;
        justify-content: center;
    }

    .center-text {
        text-align: center;
        font-style: italic;
        /* font-weight: var(--light-fw); */
        max-width: 700px;
        font-size: 24px;
    }

    .number-container {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 150px;
    }

    .background-image {
        position: sticky;
        top: 150px;
        align-self: flex-start;
        width: 700px;
    }

    .background-image-container {
        position: absolute;
        right: 300px;
        height: 1800px;
    }

    .framework {
        display: flex;
        gap: 100px;

        h2, .subtext {
            margin-bottom: 40px;
        }

        img {
            align-self: center;
        }
    }

    .content {
        width: 400px;
    }
    .main-framework-container {
        margin-top: 180px;
        display: flex;
    }

    .framework-container {
        display: flex;
        flex-direction: column;
        gap: 140px;
    }
}

.foundational-pillars {
    margin-top: 100px;
    padding-top: 100px;

    .foundational {
        margin-bottom: 40px;
    }

    .heading-container {
        display: flex;
        justify-content: space-between;
    }

    .clicalyst-stands-for {
        font-size: 40px;
    }

    .description {
        width: 600px;
        text-align: center;
        line-height: 180%;
        font-weight: var(--light-fw);
        font-size: 18px;
    }

    .pillars-container {
        margin-top: 80px;
        display: flex;
        /* justify-content: space-between; */
        gap: 10px;
        flex-wrap: wrap;
    }

    .pillar:nth-child(even) {
        margin-top: 100px;
    }

    .pillar {
        position: relative;
        /* background-color: aquamarine; */
        width: 250px;
        height: 300px;
    }

    .inner-container {
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .pillar-heading {
        margin-bottom: 10px;
        font-size: 20px;
    }

    .pillar-description {
        font-weight: var(--light-fw);
    }

    .icon {
        align-self: flex-start;
        width: 80px;
    }

    .corner {
        width: 30px;
        position: absolute;
    }

    .top-left-corner {
        left: 0px;
        top: 0px;
    }

    .bottom-right-corner {
        right: 0px;
        bottom: 0px;
    }
}

.type-of-client {
    padding-top: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;

    h1, p {
        text-align: center;
    }

    .line-heading {
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;

        .line {
            margin-left: 0px;
            width: 100px;
            background-color: var(--clicalyst-orange);
        }
    }

    .accent-btn {
        margin-top: 80px;
    }
}

@media (max-width: 900px) {
    .origins-page .section-padding {
        padding-left: 25px;
        padding-right: 25px;
    }

    .side-nav {
        display: none;
    }

    .hero {
        .content {
            margin-top: 80px;
            margin-left: 40px;
            flex-direction: column;
            gap: 40px;
        }

        .hollow-clicalyst {
            position: absolute;
            z-index: -1;
            left: 20px;
        }

        .gears {
            opacity: 0.3;
        }
    }

    .service-description {
        .exclusive, .investment-range, .cta {
            flex-direction: column;
            gap: 40px;

            h2, h1 {
                width: auto;
            }
        }
    }

    .inevitable {
        .man-on-laptop {
            display: none;
        }

        .content {
            margin-left: 0px;
        }

        .top, .bottom {
            flex-direction: column;
            gap: 100px;
        }

        .top {
            margin-bottom: 100px;
        }

        .left, .right {
            width: auto;

            .subtext {
                width: auto;
            }
        }
    }

    .origins-hero {
        .container {
            margin-top: 20px;
            margin-left: 10px;
            flex-direction: column;
            gap: 40px;
        }

        .hollow-clicalyst {
            position: absolute;
            z-index: -1;
            left: 20px;
        }
    }

    .foundational-pillars {
        padding-top: 20px;
        margin-top: 20px;
        .heading-container {
            flex-direction: column;
            gap: 20px;
        }

        .clicalyst-stands-for {
            font-size: 28px;
        }

        .description {
            width: auto;
            font-size: 16px;
        }

        .pillars-container {
            width: 100%;
            row-gap: 120px;
            justify-content: center;
        }

        .pillar:nth-child(even) {
            margin-top: 0px;
        }
    }

    .framework-section {
        .sub-headline {
            width: auto;
            margin-left: 20px;
        }

        .number-container {
            width: 40px;

            img {
                width: 100%;
                align-self: flex-start;
            }

            .one {
                width: auto;
                height: 100px;
            }
        }

        .framework {
            gap: 30px;
        }

        .content {
            width: 260px;
        }

        .background-image-container {
            left: 230px;
        }
    }
}