/* Give the homepage's middle chapters the same warm, cinematic language as
   the hero and footer while keeping every section's content readable. */
.lp-cinematic-scene {
    position: relative;
    isolation: isolate;
}

.lp-cinematic-scene::before {
    position: absolute;
    top: 0;
    right: var(--lp-content-start);
    left: var(--lp-content-start);
    z-index: -1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(83, 173, 255, .28) 18%, rgba(255, 152, 0, .78) 52%, rgba(255, 152, 0, .1) 82%, transparent);
    content: "";
    opacity: .26;
    transform: scaleX(.12);
    transform-origin: left center;
    transition: opacity 1.1s ease, transform 1.35s cubic-bezier(.2, .75, .25, 1);
}

.lp-cinematic-scene::after {
    content: none;
}

.lp-cinematic-scene.lp-scene-live::before {
    opacity: .82;
    transform: scaleX(1);
}

@keyframes lp-cinematic-heading-in {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes lp-cinematic-sweep {
    from {
        opacity: 0;
        transform: translateX(-125%);
    }

    35% {
        opacity: .65;
    }

    to {
        opacity: 0;
        transform: translateX(125%);
    }
}

.lp-cinematic-scene.lp-scene-live > .container > .section-head,
.lp-cinematic-scene.lp-scene-live .execution-chapter-head {
    animation: lp-cinematic-heading-in .8s cubic-bezier(.2, .75, .25, 1) both;
}

.counter-area .container,
.lp-cinematic-scene > .container,
.lp-cinematic-scene > .testimonial-wrapper {
    position: relative;
    z-index: 1;
}

/* Turn the proof points into a shared constellation of quiet glass panels. */
.counter-area .year-of-expariance-wrapper,
.counter-area .counter-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(13, 15, 20, .88) 66%);
    box-shadow: 0 18px 54px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .045);
    transition: border-color .45s ease, background-color .45s ease, transform .45s cubic-bezier(.2, .75, .25, 1), box-shadow .45s ease;
}

.counter-area .year-of-expariance-wrapper {
    padding: clamp(24px, 3.2vw, 46px);
    border-radius: 24px;
}

.counter-area .counter-card {
    padding: 28px 20px;
    border-radius: 20px;
}

.counter-area .counter-card::before,
.education-experience#problem-spaces .my-skill-card::before {
    position: absolute;
    top: 0;
    right: 18px;
    left: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 152, 0, .72), transparent);
    content: "";
    opacity: .55;
    transition: opacity .4s ease, transform .5s ease;
}

.counter-area .year-of-expariance-wrapper:hover,
.counter-area .counter-card:hover {
    border-color: rgba(255, 152, 0, .38);
    box-shadow: 0 24px 64px rgba(255, 152, 0, .08), inset 0 1px rgba(255, 255, 255, .08);
    transform: translateY(-5px);
}

.counter-area .counter-card:hover::before,
.education-experience#problem-spaces .my-skill-card:hover::before {
    opacity: 1;
    transform: scaleX(1.12);
}

/* The four problem-space cards share the same illuminated edge as the stats. */
.education-experience#problem-spaces .my-skill-card {
    position: relative;
    min-height: 100%;
    border-color: rgba(255, 255, 255, .12);
    background: linear-gradient(155deg, rgba(255, 255, 255, .065), rgba(7, 10, 15, .72) 75%);
    text-align: left;
    transition: border-color .45s ease, background .45s ease, transform .45s cubic-bezier(.2, .75, .25, 1), box-shadow .45s ease;
}

.education-experience#problem-spaces .my-skill-card .card-title,
.education-experience#problem-spaces .my-skill-card .card-title p {
    width: 100%;
    text-align: left;
}

.education-experience#problem-spaces .my-skill-card:hover {
    border-color: rgba(255, 152, 0, .42);
    background: linear-gradient(155deg, rgba(255, 152, 0, .11), rgba(7, 10, 15, .82) 72%);
    box-shadow: 0 20px 56px rgba(0, 0, 0, .32);
    transform: translateY(-7px);
}

/* A restrained orange track lets the execution section carry the visual story. */
#execution-approach .progress-charts {
    padding: 24px 24px 28px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(8, 11, 17, .62));
    transition: border-color .4s ease, transform .4s ease, background .4s ease;
}

#execution-approach .progress-charts:hover {
    border-color: rgba(255, 152, 0, .35);
    background: linear-gradient(145deg, rgba(255, 152, 0, .075), rgba(8, 11, 17, .72));
    transform: translateX(5px);
}

#execution-approach .progress-charts .progress {
    height: 4px !important;
    margin-top: 18px;
    padding: 0 !important;
    background: rgba(255, 255, 255, .1);
}

#execution-approach .progress-charts .progress .progress-bar {
    box-shadow: 0 0 15px rgba(255, 152, 0, .52);
}

/* Selected work becomes a real image-led tile grid instead of a list above
   thumbnails. Keep the existing tilted-card motion inside the framed image. */
#portfolio .section-head {
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
}

#portfolio .latest-portfolio-tabs-area .nav-tabs {
    gap: 10px;
    border-bottom: 0;
    margin-bottom: 28px;
}

#portfolio .latest-portfolio-tabs-area .nav-link {
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    transition: color .3s ease, border-color .3s ease, background .3s ease, transform .3s ease, box-shadow .3s ease;
}

#portfolio .latest-portfolio-tabs-area .nav-link:hover {
    border-color: rgba(255, 152, 0, .52);
    background: rgba(255, 152, 0, .08);
    transform: translateY(-2px);
}

#portfolio .latest-portfolio-tabs-area .nav-link.active {
    border-color: rgba(255, 152, 0, .78);
    background: linear-gradient(120deg, rgba(255, 152, 0, .18), rgba(255, 152, 0, .055));
    box-shadow: 0 0 24px rgba(255, 152, 0, .1), inset 0 0 14px rgba(255, 152, 0, .045);
}

#portfolio .latest-portfolio-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    grid-template-areas: "visual copy";
    align-items: stretch;
    min-height: 356px;
    height: 100%;
    overflow: hidden;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(9, 12, 18, .96) 58%);
    box-shadow: 0 18px 58px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .055);
    transition: border-color .45s ease, box-shadow .45s ease, transform .45s cubic-bezier(.2, .75, .25, 1);
}

#portfolio .latest-portfolio-card::after {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    width: 28%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translateX(-125%) skewX(-18deg);
}

#portfolio .latest-portfolio-card:hover::after {
    animation: lp-cinematic-sweep .9s ease-out both;
}

#portfolio .latest-portfolio-card:hover {
    border-color: rgba(255, 152, 0, .48);
    box-shadow: 0 28px 76px rgba(0, 0, 0, .48), 0 0 35px rgba(255, 152, 0, .08), inset 0 1px rgba(255, 255, 255, .1);
    transform: translateY(-7px);
}

#portfolio .latest-portfolio-card > .img-box {
    grid-area: visual;
    min-width: 0;
    min-height: 332px;
    margin: 0;
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 17px;
    background: #0a0d13;
}

#portfolio .latest-portfolio-card > .img-box > a {
    display: block;
    width: 100%;
    height: 100%;
}

#portfolio .latest-portfolio-card .tilted-card-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 332px;
    margin: 0 !important;
}

#portfolio .latest-portfolio-card .tilted-card-img {
    border-radius: 15px;
    filter: brightness(.92) saturate(.94);
    opacity: 1;
    transition: filter .45s ease;
}

#portfolio .latest-portfolio-card:hover .tilted-card-img {
    filter: brightness(1.04) saturate(1.08);
}

#portfolio .latest-portfolio-card > .portfolio-card-content-wrap {
    position: relative;
    grid-area: copy;
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 24px 24px 56px;
}

#portfolio .latest-portfolio-card .portfolio-card-content-wrap .content-left {
    width: 100%;
}

#portfolio .latest-portfolio-card .portfolio-card-content-wrap .content-left > span {
    display: block;
    margin-bottom: 16px;
    font-size: clamp(1.35rem, 1.2vw, 1.65rem) !important;
    line-height: 1.5;
}

#portfolio .latest-portfolio-card .portfolio-card-content-wrap .portfolio-card-title {
    margin: 0 0 8px;
    font-size: clamp(2rem, 2.1vw, 2.6rem);
    line-height: 1.15;
}

#portfolio .latest-portfolio-card .portfolio-card-content-wrap .portfoli-card-para {
    max-width: 34rem;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.65;
}

#portfolio .latest-portfolio-card .portfolio-card-content-wrap .tmp-arrow-icon-btn {
    position: absolute;
    right: 20px;
    bottom: 18px;
    margin: 0;
}

#portfolio .tab-pane.fade.show.active .latest-portfolio-card {
    animation: lp-work-card-enter .72s cubic-bezier(.2, .75, .25, 1) both;
}

#portfolio .tab-pane.fade.show.active .paralax-image:nth-child(2) .latest-portfolio-card {
    animation-delay: .09s;
}

#portfolio .tab-pane.fade.show.active .paralax-image:nth-child(3) .latest-portfolio-card {
    animation-delay: .18s;
}

#portfolio .tab-pane.fade.show.active .paralax-image:nth-child(4) .latest-portfolio-card {
    animation-delay: .27s;
}

@keyframes lp-work-card-enter {
    from { opacity: .68; transform: translate3d(0, 20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.testimonial.lp-cinematic-scene .testimonial-card {
    padding: 28px 30px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 14px;
    background: #0a0b0e;
    box-shadow: none;
    transition: border-color .2s ease;
}

.testimonial.lp-cinematic-scene .testimonial-card:hover {
    border-color: rgba(255, 255, 255, .2);
    box-shadow: none;
    transform: none;
}

@media (max-width: 1199px) {
    #portfolio .latest-portfolio-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(230px, 50vw) auto;
        grid-template-areas: "visual" "copy";
        min-height: 0;
    }

    #portfolio .latest-portfolio-card > .img-box,
    #portfolio .latest-portfolio-card .tilted-card-container {
        min-height: 0;
        height: 100% !important;
    }

    #portfolio .latest-portfolio-card > .portfolio-card-content-wrap {
        padding: 22px 18px 64px;
    }
}

@media (max-width: 767px) {
    .lp-cinematic-scene::before {
        right: 20px;
        left: 20px;
    }

    .counter-area .year-of-expariance-wrapper,
    .counter-area .counter-card {
        border-radius: 18px;
    }

    .testimonial.lp-cinematic-scene .testimonial-card {
        padding: 24px;
    }

    .education-experience#problem-spaces .my-skill-card {
        padding: 28px 24px;
    }

    #execution-approach .progress-charts {
        padding: 20px 18px 24px;
    }

    #portfolio .latest-portfolio-card {
        padding: 9px;
        border-radius: 20px;
    }

    #portfolio .latest-portfolio-card > .img-box {
        border-radius: 14px;
    }

    #portfolio .latest-portfolio-card > .portfolio-card-content-wrap {
        padding: 18px 12px 76px;
    }

    #portfolio .latest-portfolio-card .portfolio-card-content-wrap .content-left > span {
        margin-bottom: 0;
        line-height: 1.35;
    }

    #portfolio .latest-portfolio-card .portfolio-card-content-wrap .content-left > br {
        display: none;
    }

    #portfolio .latest-portfolio-card .portfolio-card-content-wrap .content-left > span + br {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-cinematic-scene::before {
        opacity: 1;
        transform: none;
        transition: none !important;
    }

    .counter-area .year-of-expariance-wrapper,
    .counter-area .counter-card,
    .education-experience#problem-spaces .my-skill-card,
    #execution-approach .progress-charts,
    #portfolio .latest-portfolio-card,
    .testimonial.lp-cinematic-scene .testimonial-card {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* Editorial middle chapters: reserve framed cards for the selected work. */
.logo-swiper {
    padding-bottom: 20px;
    border-bottom: 0;
}

.logo-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-swiper .support-company-logo,
.logo-swiper .support-company-logo:hover {
    width: 100%;
    min-height: 94px;
    height: auto;
    padding: 12px 18px;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    transform: none;
}

.logo-swiper .support-company-logo img {
    width: min(100%, 160px);
    max-height: 76px !important;
    opacity: .78;
    transition: opacity .3s ease, transform .45s cubic-bezier(.2, .75, .25, 1);
}

.logo-swiper .support-company-logo:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

.logo-swiper .support-company-logo:hover {
    transform: translateY(-4px);
}

#impact .row.g-5 {
    --bs-gutter-x: clamp(28px, 5vw, 72px);
    --bs-gutter-y: 0;
}

#impact .year-of-expariance-wrapper,
#impact .counter-card {
    overflow: visible;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

#impact .counter-card::before {
    display: none;
}

#impact .year-of-expariance-wrapper {
    padding: 0 clamp(20px, 3vw, 42px) 12px 0;
    border-right: 0 !important;
}

#impact .year-expariance-wrap {
    display: block;
}

#impact .year-number {
    display: block;
    margin-bottom: 10px;
    color: #ff9800;
    font-size: clamp(4.8rem, 8vw, 7.5rem) !important;
    letter-spacing: -.05em;
}

#impact .year-title {
    display: block;
    margin-bottom: 0;
    font-size: clamp(1.7rem, 2.4vw, 2.45rem) !important;
    font-weight: 650;
    line-height: 1.16 !important;
}

#impact .year-title br {
    display: block;
}

#impact .year-para {
    max-width: 32rem;
    margin-top: 18px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .impact-scene .logo-swiper {
        margin-top: 48px;
    }



    #impact .row {
        justify-content: center !important;
        text-align: center !important;
    }

    #impact .year-of-expariance-wrapper {
        padding-left: 0;
        padding-right: 0;
        text-align: left !important;
    }

    #impact .year-expariance-wrap {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-bottom: 12px;
        text-align: left;
    }

    #impact .year-number {
        display: block;
        width: auto;
        margin: 0 0 10px;
        font-size: clamp(3rem, 15vw, 4.5rem) !important;
        line-height: 1;
        letter-spacing: -.04em;
        text-align: left;
    }

    #impact .year-title {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0;
        font-size: clamp(1.55rem, 5vw, 2.1rem) !important;
        line-height: 1.18 !important;
        text-align: left;
        white-space: normal;
    }

    #impact .year-title br {
        display: block;
    }

    #impact .year-para,
    #impact .counter-para {
        max-width: 100%;
        margin-top: 0;
        font-size: clamp(1.08rem, 3.8vw, 1.28rem);
        line-height: 1.5;
        text-align: left !important;
    }

    #impact .counter-area-right-content {
        width: 100%;
    }

    #impact .counter-area-right-content .row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
        width: 100%;
    }

    #impact .counter-area-right-content .col-lg-6 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
        padding: 0;
    }

    #impact .counter-card {
        min-height: auto;
        padding: 18px 12px 20px;
        text-align: left !important;
    }

    #impact .counter-title {
        margin: 0 0 10px;
        font-size: clamp(2.7rem, 10vw, 4rem) !important;
        line-height: 1;
        text-align: left !important;
    }
}

#impact .counter-area-right-content .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

#impact .counter-area-right-content .col-lg-6 {
    padding: 0;
}

#impact .counter-card {
    --metric-inset: clamp(16px, 2.1vw, 30px);
    min-height: 172px;
    margin: 0;
    padding: 0 var(--metric-inset) 24px;
}

#impact .counter-card::after {
    display: none;
}

#impact .counter-area-right-content .col-lg-6:nth-child(-n + 2) .counter-card::after {
    display: none;
}

#impact .counter-area-right-content .col-lg-6:nth-child(odd) .counter-card {
    border-right: 0 !important;
}

#impact .counter-area-right-content .col-lg-6:nth-child(odd) .counter-card::after {
    display: none;
}

#impact .counter-area-right-content .col-lg-6:nth-child(even) .counter-card::after {
    display: none;
}

#impact .counter-title {
    margin: 0 0 18px;
    font-size: clamp(2.9rem, 5.1vw, 5rem) !important;
    letter-spacing: -.045em;
    text-align: left !important;
}

#impact .year-number,
#impact .counter-title {
    display: flex;
    align-items: baseline;
    gap: .16em;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
}

#impact .odometer {
    letter-spacing: 0;
}

#impact .counter-suffix {
    display: inline-block;
    margin-left: 0;
    font-size: .76em;
    letter-spacing: 0;
    vertical-align: .08em;
}

.impact-spacer {
    position: relative;
    z-index: 5 !important;
    height: 50px;
    background: #000;
}

#impact.counter-area > .container {
    padding-top: 0;
    background-color: #000 !important;
}

#impact .counter-para {
    max-width: 17rem;
    margin: 0;
    line-height: 1.55;
    text-align: left !important;
}

#service.service-area {
    padding: clamp(54px, 6.8vw, 90px) 0 clamp(54px, 6.8vw, 88px);
}

#service .service-chapter-head {
    max-width: 850px;
    margin-bottom: 32px;
    text-align: left;
}

#service .service-chapter-head .section-sub-title {
    justify-content: flex-start;
    text-align: left;
}

#service .service-chapter-head .title {
    margin: 0;
}

@media (min-width: 768px) {
    :is(#service, #problem-spaces, #execution-approach) > .container {
        padding-inline: 0;
    }
}

#service .service-chapter-head,
#problem-spaces .section-head,
#execution-approach .execution-chapter-head {
    padding-inline: 0;
}

/* Three middle chapters share one restrained editorial intro. Existing shell
   tokens retain large-screen positioning; grid measure keeps items grouped. */
:is(#service, #problem-spaces, #execution-approach) .section-sub-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

:is(#service, #problem-spaces, #execution-approach) .middle-chapter-marker {
    color: #b5b7bd;
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.4;
}

:is(#service, #problem-spaces, #execution-approach) .section-sub-title::before {
    content: "";
    width: 24px;
    height: 2px;
    flex: 0 0 24px;
    background: var(--color-primary);
}

#service #card-container,
#problem-spaces .skill-cards-container,
#execution-approach .execution-grid {
    max-width: min(100%, calc(var(--lp-copy-max) * 2.4));
}

#service #card-container {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-inline: 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

#service #card-container > div {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

#service #card-container > div:not(:nth-child(3n)) {
    border-right: 1px solid rgba(255, 255, 255, .12);
}

#service .electric-border {
    height: 100%;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    isolation: isolate;
}

/* Keep the original electric hover flash above the adjoining capability cells. */
#service .electric-border:hover {
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    #service .eb-stroke {
        filter: none !important;
    }
}

#service .eb-content,
#service .service-card-v1 {
    height: 100%;
}

#service .service-card-v1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px clamp(18px, 2.4vw, 34px) 28px;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

#service .service-card-v1 .service-card-icon {
    justify-content: flex-start;
    min-width: 0;
    height: 32px;
    min-height: 32px;
    align-items: center;
    margin: 0 0 16px;
    font-size: 28px;
}

#service .service-card-v1 .service-title,
#service .service-card-v1 .service-para {
    width: 100%;
    text-align: left;
}

#service .service-card-v1 .service-title {
    margin-bottom: 8px;
    font-size: clamp(1.15rem, 1.5vw, 1.4rem);
    line-height: 1.35;
}

#service .service-card-v1 .service-para {
    max-width: 25rem;
    margin-bottom: 0;
    line-height: 1.6;
}

#problem-spaces.education-experience,
#execution-approach.tmp-skill-area {
    padding-top: clamp(46px, 5.9vw, 74px);
    padding-bottom: clamp(46px, 5.9vw, 74px);
}

#problem-spaces .section-head,
#execution-approach .execution-chapter-head {
    max-width: 850px;
    margin: 0 0 32px;
    text-align: left;
}

#problem-spaces .section-head .section-sub-title,
#execution-approach .execution-chapter-head .section-sub-title {
    justify-content: flex-start;
    text-align: left;
}

#problem-spaces .section-head .title,
#execution-approach .execution-chapter-head .title {
    margin: 0 0 14px;
    text-align: left;
}

#problem-spaces .section-head p {
    max-width: 760px;
    margin-bottom: 0;
    line-height: 1.7;
}

#problem-spaces .skill-cards-container .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-inline: 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

#problem-spaces .skill-cards-container .row > div {
    border-bottom: 0 !important;
}

#problem-spaces .skill-cards-container .row > div:not(:nth-child(4n)) {
    border-right: 1px solid rgba(255, 255, 255, .12);
}

#problem-spaces .my-skill-card {
    display: block;
    min-height: 0 !important;
    height: 100%;
    padding: 24px clamp(16px, 2vw, 28px) 26px !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left;
    transform: none !important;
}

#problem-spaces.education-experience .my-skill-card::before {
    position: static;
    display: block;
    height: auto;
    margin-bottom: 16px;
    background: none;
    color: #ff9800;
    content: "0" counter(problem-space, decimal);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    opacity: .9;
}

#problem-spaces .skill-cards-container .row {
    counter-reset: problem-space;
}

#problem-spaces .skill-cards-container .row > div {
    counter-increment: problem-space;
}

#problem-spaces .skill-cards-container .row > div:nth-child(4n + 1) .my-skill-card {
    padding-left: 0 !important;
}

#problem-spaces .skill-cards-container .row > div:nth-child(4n) .my-skill-card {
    padding-right: 0 !important;
}

#problem-spaces .my-skill-card .card-title,
#problem-spaces .my-skill-card .card-title p {
    width: 100%;
    text-align: left;
}

#problem-spaces .my-skill-card .main-title {
    margin-bottom: 8px !important;
    font-size: clamp(1.12rem, 1.5vw, 1.35rem) !important;
    line-height: 1.35 !important;
}

@media (min-width: 992px) {
    #problem-spaces .my-skill-card .main-title {
        font-size: clamp(1.45rem, 1.8vw, 1.7rem) !important;
        font-weight: 700;
        line-height: 1.25 !important;
    }
}

#problem-spaces .my-skill-card p {
    margin: 0;
    line-height: 1.6;
}

#execution-approach .execution-chapter-head .title {
    margin-bottom: 0;
}

#execution-approach .execution-chapter-head {
    margin-bottom: 32px;
}

#execution-approach.tmp-skill-area {
    padding-bottom: clamp(50px, 6vw, 80px);
}

/* Let the two editorial chapters read as one continuous section. */
#execution-approach.lp-cinematic-scene::before {
    display: none;
}

/* Preserve the approved labels outside the middle chapter sequence. */
.impact-scene .section-sub-title .subtitle,
#portfolio .section-sub-title .subtitle,
.testimonial .section-sub-title .subtitle {
    color: #ff9800 !important;
    font-size: 18px !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Keep the middle chapters visually continuous without separator rules. */
#problem-spaces.lp-cinematic-scene::before,
#portfolio.lp-cinematic-scene::before,
.testimonial.lp-cinematic-scene::before {
    display: none;
}

#execution-approach .execution-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(28px, 5vw, 72px);
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin: 0;
}

#execution-approach .execution-grid > .col-lg-6 {
    display: contents;
}

#execution-approach .execution-grid .content {
    display: contents;
}

#execution-approach .progress-charts,
#execution-approach .progress-charts:hover {
    margin-top: 0 !important;
    padding: 22px 0 24px;
    border: 0;
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
    transform: none;
}

#execution-approach .progress-charts .heading {
    margin: 0 0 7px;
    color: var(--color-heading);
    font-size: clamp(1.12rem, 1.5vw, 1.35rem);
    line-height: 1.35;
}

@media (min-width: 992px) {
    #execution-approach .progress-charts .heading {
        font-size: clamp(1.45rem, 1.8vw, 1.7rem);
        font-weight: 700;
        line-height: 1.25;
    }
}

#execution-approach .progress-charts p {
    max-width: 30rem;
    margin: 0;
    font-style: normal !important;
    line-height: 1.6;
}

#execution-approach .progress-charts .progress {
    max-width: 150px;
    height: 2px !important;
    margin-top: 18px;
}

@media (max-width: 991px) {
    #impact .year-of-expariance-wrapper {
        padding: 0 0 28px;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .16) !important;
    }

    #problem-spaces .skill-cards-container .row > div:not(:nth-child(4n)) {
        border-right: 0;
    }

    #problem-spaces .skill-cards-container .row > div:not(:nth-child(2n)) {
        border-right: 1px solid rgba(255, 255, 255, .12);
    }

    #problem-spaces .skill-cards-container .row > div:nth-child(2n + 1) .my-skill-card {
        padding-left: 0 !important;
    }

    #problem-spaces .skill-cards-container .row > div:nth-child(2n) .my-skill-card {
        padding-right: 0 !important;
    }
}

@media (max-width: 767px) {
    #service #card-container > div:not(:nth-child(3n)) {
        border-right: 0;
    }

    #service #card-container > div:not(:nth-child(2n)) {
        border-right: 1px solid rgba(255, 255, 255, .12);
    }

    #service .service-card-v1 .service-title {
        font-size: clamp(1.45rem, 4vw, 1.8rem) !important;
        line-height: 1.25;
    }

    #service .service-card-v1 .service-para {
        font-size: clamp(1.02rem, 3.4vw, 1.18rem);
        line-height: 1.55;
    }

    #problem-spaces .skill-cards-container .row > div {
        border-right: 0 !important;
    }

    #problem-spaces .my-skill-card {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    #problem-spaces .my-skill-card .main-title {
        font-size: clamp(1.45rem, 4.2vw, 1.9rem) !important;
        line-height: 1.25 !important;
    }

    #problem-spaces .my-skill-card p {
        font-size: clamp(1.18rem, 4vw, 1.42rem);
        line-height: 1.58;
    }

    #execution-approach .execution-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    #execution-approach .progress-charts .heading {
        font-size: clamp(1.45rem, 4vw, 1.8rem);
        line-height: 1.25;
    }

    #execution-approach .progress-charts p {
        font-size: clamp(1.18rem, 4vw, 1.42rem);
        line-height: 1.58;
    }

    #execution-approach .progress-charts:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 575px) {
    #impact .counter-area-right-content .col-lg-6:nth-child(odd) .counter-card {
        border-right: 0 !important;
    }

    #impact .counter-area-right-content .col-lg-6:nth-child(n) .counter-card::after {
        right: var(--metric-inset);
        left: var(--metric-inset);
    }

    #impact .counter-area-right-content .col-lg-6:nth-child(3) .counter-card::after {
        content: "";
    }

    #service #card-container > div {
        width: 100%;
        border-right: 0 !important;
    }

    #problem-spaces .skill-cards-container .row > div {
        width: 100%;
        border-right: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-swiper .support-company-logo img {
        transition: none;
    }
}

/* The floating animated up control already handles page navigation. */
.lp-footer-v28__bottom {
    grid-template-columns: 1fr auto !important;
}

/* Quiet social proof: static cards, readable quotes and separate attribution. */
#testimonials.testimonial {
    padding-top: clamp(64px, 6vw, 104px);
    padding-bottom: 24px;
}

#testimonials .section-head {
    padding-inline: 0;
}

#testimonials .testimonial-grid > .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin: 0;
}

#testimonials .testimonial-grid > .row > div {
    margin: 0;
    display: flex;
    width: 100%;
    padding: 0;
}

@media (min-width: 992px) {
    #testimonials .testimonial-grid > .row > div:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: 70%;
        justify-self: center;
    }
}

#testimonials .testimonial-placeholder-label {
    padding-top: 10px;
    color: rgba(255, 152, 0, .7);
    font-size: 10px;
    letter-spacing: .1em;
}

#testimonials .testimonial-card {
    width: 100%;
    margin: 0;
}

#testimonials .card-content-wrap {
    margin: 0;
    display: flex;
    width: 100%;
    flex-direction: column;
}

#testimonials .testimonial-quote {
    max-width: calc(var(--lp-copy-max) * .9);
    min-width: 0;
    margin: 0;
    color: #e4e5e8;
    font-size: clamp(16px, calc(.8vw + 6px), 18px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.65;
}

#testimonials .testimonial-quote strong {
    font-weight: 600;
}

#testimonials .testimonial-attribution {
    position: relative;
    margin-top: auto;
    padding-top: 24px;
    padding-right: 64px;
}

#testimonials .testimonial-attribution p {
    margin: 0;
    font-style: normal;
    line-height: 1.5;
}

#testimonials .testimonial-author-name {
    color: var(--color-heading);
    font-size: 15px;
    font-weight: 700;
}

#testimonials .testimonial-author-role {
    padding-top: 4px;
    color: #b5b7bd;
    font-size: 14px;
}

#testimonials .testimonial-author-context {
    padding-top: 2px;
    color: #999da6;
    font-size: 13px;
}

#testimonials .testimonital-icon {
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 48px;
    height: 41px;
    margin: 0;
    pointer-events: none;
    opacity: .28;
}

#testimonials .testimonital-icon img {
    display: block;
    width: 48px;
    height: 41px;
}

@media (max-width: 991px) {
    #testimonials .testimonial-grid > .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    #testimonials.testimonial {
        padding-top: 60px;
        padding-bottom: 16px;
    }

    #testimonials .testimonial-attribution {
        padding-top: 20px;
        padding-right: 52px;
    }

    #testimonials .testimonital-icon,
    #testimonials .testimonital-icon img {
        width: 32px;
        height: 27px;
    }
}

/* Horizontal composition only; chapter timing, spacing and testimonials stay
   unchanged. Cards gain room while their descriptions retain a compact measure. */
@media(min-width:1600px) {
 #service .service-para,
 #problem-spaces .my-skill-card p { max-width:42ch; }
}
