/* =========================================================
   INDUSTRY DETAIL PAGE
========================================================= */

html {
    scrollbar-gutter: stable;
}

.industry-detail-page {
    background: #ffffff;
    color: #050505;
    overflow-x: hidden;
}

.industry-detail-page * {
    box-sizing: border-box;
}


/* =========================================================
   MAIN WIDTHS
========================================================= */

.industry-case-wrap {
    width: min(960px, calc(100% - 80px));
    margin: 0 auto;
    position: relative;
}

.industry-case-text {
    width: min(820px, calc(100% - 80px));
    margin: 0 auto;
    position: relative;
}


/* =========================================================
   HERO
========================================================= */

.industry-case-hero {
    position: relative;
    padding: 135px 0 42px;
    background: #ffffff;
    overflow: hidden;
}

.industry-case-hero::after {
    content: "";
    position: absolute;

    right: 8%;
    top: 18%;

    width: 340px;
    height: 340px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(20, 226, 122, 0.13),
            transparent 62%
        );

    filter: blur(24px);

    pointer-events: none;
}


/* =========================================================
   BACK LINK
========================================================= */

.industry-back {
    position: relative;
    z-index: 2;

    display: block;
    width: fit-content;

    margin-bottom: 46px;

    color: rgba(0, 0, 0, 0.50);

    text-decoration: none;

    font-size: 13px;
    line-height: 1;
    font-weight: 400;

    transition:
        color 0.3s ease;
}

.industry-back:hover {
    color: #14e27a;
}


/* =========================================================
   EYEBROW
========================================================= */

.industry-eyebrow {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    font-size: 11px;
    line-height: 1;

    font-weight: 900;

    letter-spacing: 2.4px;

    text-transform: uppercase;

    color: #14e27a;
}

.industry-eyebrow::before {
    content: "";

    width: 24px;
    height: 1px;

    background: #14e27a;
}


/* =========================================================
   HERO HEADING
========================================================= */

.industry-case-hero h1 {
    position: relative;
    z-index: 2;

    margin: 0 0 22px;

    max-width: 900px;

    font-size:
        clamp(
            42px,
            4.1vw,
            60px
        );

    line-height: 0.98;

    letter-spacing: -2.6px;

    font-weight: 500;

    color: #050505;
}


/* =========================================================
   HERO SUBTEXT
========================================================= */

.industry-hero-subtext {
    position: relative;
    z-index: 2;

    margin: 0 0 38px;

    max-width: 760px;

    font-size: 18px;

    line-height: 1.55;

    font-weight: 400;

    color: rgba(0, 0, 0, 0.64);
}


/* =========================================================
   HERO IMAGE
========================================================= */

.industry-hero-card {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 520px;

    border-radius: 20px;

    overflow: hidden;

    background: #111;

    transform: translate3d(0, 0, 0);

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.08);
}

.industry-hero-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transform:
        translate3d(0, 0, 0);

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* =========================================================
   CONTENT BELOW IMAGE
========================================================= */

.industry-case-content {
    padding: 34px 0 95px;

    background: #ffffff;
}

.industry-case-text article {
    margin-bottom: 34px;
}

.industry-case-text article:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CONTENT HEADINGS
========================================================= */

.industry-case-text h2 {
    margin: 0 0 14px;

    font-size: 22px;

    line-height: 1.25;

    /* letter-spacing: -0.35px; */

    font-weight: 400;

    color: #050505;
}


/* =========================================================
   CONTENT PARAGRAPHS
========================================================= */

.industry-case-text p {
    margin: 0;

    font-size: 15px;

    line-height: 1.68;

    font-weight: 400;

    color: rgba(0, 0, 0, 0.74);
}


/* =========================================================
   CTA SECTION
========================================================= */

.industry-detail-cta {
    padding: 0 0 120px;

    background: #ffffff;
}

.industry-detail-cta .industry-case-wrap {
    width:
        min(
            820px,
            calc(100% - 80px)
        );
}


/* =========================================================
   CTA BOX
========================================================= */

.industry-cta-box {
    position: relative;

    padding: 52px 48px;

    border-radius: 22px;

    background: #050505;

    color: #ffffff;

    display: grid;

    grid-template-columns: 1fr;

    gap: 28px;

    align-items: start;

    overflow: hidden;

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.14);
}


/* =========================================================
   CTA GREEN GLOW
========================================================= */

.industry-cta-box::after {
    content: "";

    position: absolute;

    right: -100px;
    top: -120px;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(20, 226, 122, 0.26),
            transparent 62%
        );

    filter: blur(18px);

    pointer-events: none;
}


/* =========================================================
   CTA HEADING
========================================================= */

.industry-cta-box h2 {
    position: relative;
    z-index: 2;

    margin: 0;

    max-width: 640px;

    font-size:
        clamp(
            30px,
            3.4vw,
            44px
        );

    line-height: 1;

    letter-spacing: -1px;

    font-weight: 500;
}


/* =========================================================
   CTA BUTTON
========================================================= */

.industry-cta-box a {
    position: relative;
    z-index: 2;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: fit-content;

    min-height: 56px;

    padding: 0 28px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #16e86f 0%,
            #7dff00 100%
        );

    color: #050505;

    text-decoration: none;

    font-size: 18px;

    line-height: 1;

    font-weight: 800;

    box-shadow:
        0 14px 34px
        rgba(38, 255, 94, 0.24);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.industry-cta-box a:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 18px 42px
        rgba(38, 255, 94, 0.32);
}


/* =========================================================
   NEW PAGE TRANSITION
   LIGHTWEIGHT GREEN WIPE
========================================================= */

.industry-page-transition {
    position: fixed;

    inset: 0;

    z-index: 9999999;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            #14e27a 0%,
            #7dff00 100%
        );

    transform:
        translate3d(
            0,
            100%,
            0
        );

    will-change:
        transform;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* =========================================================
   TRANSITION ACTIVE STATE
========================================================= */

.industry-transition-active {
    cursor: wait;
}


/* =========================================================
   DETAIL PAGE ENTERING ANIMATION
========================================================= */

.industry-detail-page {
    will-change: auto;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .industry-case-wrap {
        width:
            calc(100% - 56px);
    }

    .industry-case-text,
    .industry-detail-cta .industry-case-wrap {
        width:
            min(
                820px,
                calc(100% - 56px)
            );
    }


    .industry-case-hero {
        padding:
            135px 0 42px;
    }


    .industry-case-hero h1 {
        font-size: 50px;

        line-height: 1;

        letter-spacing: -2.1px;
    }


    .industry-hero-subtext {
        max-width: 680px;

        font-size: 17px;
    }


    .industry-hero-card {
        height: 420px;
    }


    .industry-case-content {
        padding:
            30px 0 90px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .industry-case-wrap,
    .industry-case-text,
    .industry-detail-cta .industry-case-wrap {
        width:
            calc(100% - 32px);
    }


    .industry-case-hero {
        padding:
            115px 0 34px;
    }


    .industry-case-hero::after {

        right: -130px;

        top: 14%;

        width: 280px;

        height: 280px;

        opacity: 0.65;
    }


    /* Back */

    .industry-back {

        display: block;

        width: fit-content;

        margin-bottom: 34px;

        font-size: 12px;
    }


    /* Eyebrow */

    .industry-eyebrow {

        margin-bottom: 14px;

        font-size: 10px;

        letter-spacing: 2px;

        gap: 8px;
    }


    .industry-eyebrow::before {
        width: 20px;
    }


    /* Heading */

    .industry-case-hero h1 {

        margin-bottom: 18px;

        font-size: 34px;

        line-height: 1;

        letter-spacing: -1.5px;
    }


    /* Subtext */

    .industry-hero-subtext {

        margin:
            0 0 28px;

        font-size: 15.5px;

        line-height: 1.55;

        letter-spacing: -0.15px;
    }


    /* Hero image */

    .industry-hero-card {

        height: 300px;

        border-radius: 16px;

        box-shadow:
            0 18px 48px
            rgba(0, 0, 0, 0.08);
    }


    /* Content */

    .industry-case-content {

        padding:
            30px 0 80px;
    }


    .industry-case-text article {

        margin-bottom: 28px;
    }


    .industry-case-text h2 {

        margin-bottom: 12px;

        font-size: 18px;

        line-height: 1.25;

        /* letter-spacing: -0.25px; */
    }


    .industry-case-text p {

        font-size: 15px;

        line-height: 1.6;

        letter-spacing: -0.12px;
    }


    /* CTA */

    .industry-detail-cta {

        padding-bottom: 82px;
    }


    .industry-cta-box {

        padding:
            34px 24px;

        border-radius: 20px;
    }


    .industry-cta-box h2 {

        max-width: 100%;

        font-size: 30px;

        line-height: 1.02;

        letter-spacing: -1.2px;
    }


    .industry-cta-box a {

        min-height: 50px;

        padding:
            0 24px;

        font-size: 15px;

        font-weight: 800;
    }


    /* Mobile transition */

    .industry-page-transition {

        transform:
            translate3d(
                0,
                100%,
                0
            );
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .industry-case-hero h1 {
        font-size: 31px;
    }


    .industry-hero-card {
        height: 260px;
    }


    .industry-cta-box h2 {
        font-size: 28px;
    }

}



/* =====================================================
   CINEMATIC INDUSTRY PAGE TRANSITION
===================================================== */

html.industry-transition-active,
body.industry-transition-active {
    overflow: hidden !important;
}


/* Hide actual hero only while incoming
   transition image is covering it */

html.industry-page-entering
.industry-hero-card {
    visibility: hidden;
}


/* Keep hero text hidden during
   incoming transition */

html.industry-page-entering
.industry-case-hero h1,

html.industry-page-entering
.industry-eyebrow,

html.industry-page-entering
.industry-back,

html.industry-page-entering
.industry-hero-subtext {
    visibility: hidden;
}


/* Outgoing transition */

.industry-transition {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    overflow: hidden;
}


/* Expanding image */

.industry-transition-image {
    position: absolute;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;

    transform: translateZ(0);
    backface-visibility: hidden;

    will-change:
        top,
        left,
        width,
        height,
        border-radius,
        transform;

    box-shadow:
        0 25px 80px rgba(0,0,0,.16);
}


/* Incoming detail image */

.incoming-card-cover {
    position: fixed;

    z-index: 999999;

    pointer-events: none;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;

    transform: translateZ(0);
    backface-visibility: hidden;

    will-change:
        top,
        left,
        width,
        height,
        opacity,
        transform;

    box-shadow:
        0 25px 80px rgba(0,0,0,.14);
}


/* Prevent clicking again during transition */

.industry-opening {
    pointer-events: none;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .industry-transition-image,
    .incoming-card-cover {
        border-radius: 16px;
    }

}


.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: inline;
    }
}