/* ==========================================================================
   SERVICES PAGE — MIXED ANIMATION PATTERNS
   ========================================================================== */

html:has(body.svc-page),
body.svc-page {
    background: #ffffff;
    color: #111827;
    overflow-x: clip;
    scroll-behavior: auto !important;
}

/* ---------- SHARED ---------- */
.svc-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: #E05A2B;
}

/* ====================================================================
   BANNER
==================================================================== */
.svc-banner {
    position: relative;
    z-index: 20;
    width: 100%;
    margin-top: 80px;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    padding: 60px 60px 40px;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.svc-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    transform: scale(1.05);
}

.svc-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
}

.svc-banner-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.svc-banner-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 300;
    color: #fff;
    margin: 0;
    line-height: 1.1;
}

.svc-banner-crumbs {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.svc-banner-crumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.svc-banner-crumbs a:hover {
    color: #fff;
}

.svc-crumb-active {
    color: #E05A2B;
}

@media (max-width: 900px) {
    .svc-banner {
        margin-top: 60px;
        min-height: 200px;
        padding: 40px 20px 30px;
    }
}

/* ====================================================================
   INTRO
==================================================================== */
.svc-intro-block {
    padding: 90px 60px 60px;
    background: #fff;
}

.svc-intro-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
    align-items: end;
}

.svc-intro-title {
    font-size: clamp(30px, 3.8vw, 54px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    color: #0a0a0a;
}

.svc-intro-title span {
    color: #E05A2B;
}

.svc-intro-right p {
    font-size: 15.5px;
    line-height: 1.8;
    color: #374151;
    margin: 0;
}

@media (max-width: 900px) {
    .svc-intro-block {
        padding: 55px 20px 25px;
    }

    .svc-intro-inner {
        grid-template-columns: 1fr;
        gap: 22px;
        align-items: start;
    }
}

/* ---------- Shared title / list ---------- */
.svc-h-title {
    font-size: clamp(30px, 3.6vw, 50px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    color: #0a0a0a;
}

.svc-h-title span {
    color: #E05A2B;
}

.svc-h-lead {
    font-size: 15.5px;
    line-height: 1.75;
    max-width: 620px;
    margin: 18px 0 0;
}

.svc-h-num {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #E05A2B;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.svc-h-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 24px;
    row-gap: 6px;
}

.svc-h-list li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.55;
}

.svc-h-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E05A2B;
}

.svc-h-list li strong {
    font-weight: 600;
}

.svc-h-list--single {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

/* ====================================================================
   SERVICE 01 — HORIZONTAL PINNED SCROLL
==================================================================== */

.svc-h-section2 {
    position: relative;
    z-index: 10;
    background-image: url(../img/industries/bg.png);
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.svc-h-section {
    position: relative;
    width: 100%;
    min-height: 70vh;
    overflow: hidden;
    padding: 10px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.new-svc-h-sec .svc-h-section {
    min-height: 60vh;
}

.svc-h-intro {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto 35px;
    padding: 0 60px;
}

.svc-h-viewport {
    width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.svc-h-track {
    display: flex;
    gap: 32px;
    width: max-content;
    padding: 0 60px;
    will-change: transform;
}

.svc-h-card {
    flex: 0 0 auto;
    width: 100vw;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    align-items: stretch;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.service-page-svc-h-sec .svc-h-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.new-svc-h-sec .svc-h-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #ededed;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.svc-h-media {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 10px;
}

.svc-h-media-image .svc-h-media img {
    aspect-ratio: 9 / 6;
    object-fit: cover;
}

.service-page-svc-h-sec .svc-h-card {
    min-height: 460px;
    height: auto;
    max-height: 520px;
    overflow: hidden;
}

.service-page-svc-h-sec .svc-h-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 6px;
}

.service-page-svc-h-sec .svc-h-media img {
    position: absolute;
    inset: 0;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    object-fit: cover;
    display: block;
    filter: brightness(1) contrast(1.05) saturate(1.05);
    will-change: transform, opacity;
    transition: transform 1.2s ease;
    border-radius: 10px;
}

.svc-h-card:hover .svc-h-media img {
    transform: scale(1.02);
}

.svc-h-media-tag {
    position: absolute;
    top: 22px;
    left: 22px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    padding: 8px 14px;
    border-radius: 6px;
    z-index: 2;
}

.svc-h-body {
    padding: 20px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-page-svc-h-sec .svc-h-body {
    padding: 24px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.service-page-svc-h-sec .svc-h-body::-webkit-scrollbar {
    display: none;
}

.svc-h-body h3 {
    font-size: clamp(24px, 2.4vw, 40px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #0a0a0a;
    margin: 0 0 12px;
}

.svc-h-body h3 span {
    color: #E05A2B;
}

.svc-h-body>p {
    font-size: 15px;
    line-height: 1.75;
    margin: 0 0 10px;
    max-width: 520px;
}

.svc-h-progress {
    max-width: 1280px;
    width: 100%;
    margin: 40px auto 0;
    padding: 0 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.svc-h-progress-track {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.svc-h-progress-fill {
    position: absolute;
    inset: 0;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #E05A2B, #ff9055);
    transition: transform 0.15s linear;
    box-shadow: 0 0 12px rgba(224, 90, 43, 0.5);
}

.svc-h-progress-label {
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 0.2em;
    flex-shrink: 0;
}

.svc-h-progress-label [data-count] {
    color: #E05A2B;
    font-weight: 600;
}

@media (max-width: 899px) {
    .service-page-svc-h-sec .svc-h-card {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .service-page-svc-h-sec .svc-h-body {
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 28px 22px;
        transform: none !important;
    }
}

@media (max-width: 1280px) {
    .svc-h-body h3 {
        font-size: 22px;
    }

    .svc-h-body {
        padding: 20px 35px;
    }
}

@media (max-width: 1100px) {
    .svc-h-intro {
        padding: 0 30px;
        margin-bottom: 35px;
    }

    .svc-h-track {
        padding: 0 30px;
        gap: 24px;
    }

    .svc-h-progress {
        padding: 0 30px;
    }

    .svc-h-card {
        padding: 15px !important;
        width: 86vw;
    }

    .svc-h-media {
        min-height: 440px;
    }

    .svc-h-body {
        padding: 40px;
    }
}

@media (max-width: 899px) {
    .svc-h-section {
        min-height: auto;
        padding: 55px 0 40px;
    }

    .svc-h-intro {
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .svc-h-viewport {
        overflow: visible;
    }

    .svc-h-track {
        flex-direction: column;
        width: 100% !important;
        padding: 0 20px;
        gap: 26px;
        transform: none !important;
    }

    .svc-h-card {
        width: 100%;
        max-width: none;
        grid-template-columns: 1fr;
    }

    .svc-h-media {
        min-height: 240px;
        height: 240px;
    }

    .svc-h-body {
        padding: 28px 22px;
    }

    .svc-h-list {
        grid-template-columns: 1fr;
    }

    .svc-h-progress {
        display: none;
    }

    #industrial-design {
        padding: 55px 5px 5px;
    }
}

@media (min-width: 900px) and (max-width: 1200px) {
    .svc-h-section {
        min-height: 80vh;
        height: auto;
        padding: 40px 0;
    }

    .svc-h-card {
        height: auto;
        max-height: 520px;
    }

    .svc-h-body {
        padding: 30px 40px;
    }

    .svc-h-progress {
        margin: 20px auto 0;
    }
}

/* ====================================================================
   SERVICE 02 — ZIGZAG ROWS
==================================================================== */
.svc-zigzag-section {
    padding: 60px 30px !important;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    background-image: url(../img/industries/bg2.png);
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.svc-zigzag-head {
    max-width: 1280px;
    margin: 0 auto 40px;
}

.svc-zigzag-row {
    padding: 30px;
    background-color: #fff;
    max-width: 1280px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    perspective: 1500px;
}

.svc-zigzag-row:last-child {
    margin-bottom: 0;
}

.svc-zigzag-row--rev {
    direction: rtl;
}

.svc-zigzag-row--rev>* {
    direction: ltr;
}

.svc-zigzag-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    will-change: transform, opacity;
    background: #f3f4f6;
}

.svc-zigzag-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(1) contrast(1.05) saturate(1.05);
    will-change: transform, opacity;
}

.svc-zigzag-body {
    display: flex;
    flex-direction: column;
    color: #111827;
}

.svc-zigzag-body h3 {
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #0a0a0a;
    margin: 0 0 12px;
}

.svc-zigzag-body h3 span {
    color: #e05a2b;
}

.svc-zigzag-body p {
    font-size: 15.5px;
    line-height: 1.75;
    margin: 0;
    max-width: 520px;
}

@media (max-width: 900px) {
    .svc-zigzag-section {
        padding: 70px 20px 30px;
    }

    .svc-zigzag-head {
        margin-bottom: 40px;
    }

    .svc-zigzag-row,
    .svc-zigzag-row--rev {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 60px;
        direction: ltr;
    }

    .svc-zigzag-row--rev .svc-zigzag-media {
        order: 1;
    }

    .svc-zigzag-row--rev .svc-zigzag-body {
        order: 2;
    }

    .svc-h-list {
        grid-template-columns: 1fr;
    }
}

/* ====================================================================
    SERVICE 03 — ADVANCE ENGINEERING
    Left 50% content | Right 50% sticky image (slide-over-image)
    ==================================================================== */
.team-scroll-section {
    position: relative;
    background-color: #fafafa;
    padding-bottom: 55px !important;
    overflow: visible;
}

.team-scroll-container {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 0;
    position: relative;
    align-items: stretch;
}

.team-content-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-content: flex-end;
    flex-wrap: wrap;
    padding-left: 2rem;
    background-image: url(../img/industries/bg3.png);
    background-position: left;
    background-attachment: fixed;
    background-size: contain;
    background-repeat: no-repeat;
}

.adv-sticky-head {
    padding-top: 80px;
    margin-bottom: 20px;
}

.team-leader-block {
    max-width: 620px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-content-box {
    padding: 0.5rem;
    border-radius: 20px;
}

.leader-content-box h3.leader-name {
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 400;
    line-height: 1.25;
    color: #0a0a0a;
    margin: 10px 0 12px;
}

.color-t span {
    color: #E05A2B;
}

.team-media-col {
    height: 100%;
    min-height: 100%;
    position: relative;
    align-self: stretch;
}

.sticky-media-wrapper {
    position: sticky;
    top: 180px;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.leader-image-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    clip-path: inset(100% 0 0 0);
    -webkit-clip-path: inset(100% 0 0 0);
    will-change: clip-path;
}

.leader-image-card.card-0 {
    clip-path: inset(0% 0 0 0);
    -webkit-clip-path: inset(0% 0 0 0);
    z-index: 1;
}

.leader-image-card.card-1 {
    z-index: 2;
}

.leader-image-card.card-2 {
    z-index: 3;
}

.leader-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.leader-image-card:hover img {
    filter: grayscale(0%);
}

.designation-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    letter-spacing: 0.03em;
}

.m-block {
    display: none;
}

/* RESPONSIVE LAYOUT FOR MOBILE / TABLETS */
@media (max-width: 992px) {
    .team-scroll-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-content-col {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .team-leader-block {
        height: auto;
        padding: 2rem 0;
    }

    .sticky-media-wrapper {
        display: none;
    }

    .m-block {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
}

/* ====================================================================
   SERVICE 04 — IMAGE SHRINK-TO-STICKY
==================================================================== */
.svc-shrink-section {
    padding: 60px 30px;
    position: relative;
    background: #fefefe;
    border-bottom: 1px solid #e5e7eb;
    background-image: url(../img/industries/bg.png);
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.svc-shrink-container {
    position: sticky;
    top: 0;
    max-width: 1280px;
    margin: auto;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    overflow: hidden;
    padding: 30px !important;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.svc-shrink-media {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-shrink-imgwrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    border-radius: 20px;
    align-items: center;
}

.svc-shrink-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 6 / 4;
    will-change: transform, border-radius;
    border-radius: 20px !important;
}

.svc-shrink-content {
    padding: 0 4rem;
}

.svc-shrink-block {
    max-width: 560px;
    padding: 0px 0;
}

.svc-shrink-block p {
    font-size: 15.5px;
    line-height: 1.8;
    margin: 12px 0 0;
}

@media (max-width: 992px) {
    .svc-shrink-section {
        min-height: auto;
        padding: 60px 20px 40px;
    }

    .svc-shrink-container {
        position: static;
        height: auto;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .svc-shrink-media {
        width: 100%;
        height: auto;
    }

    .svc-shrink-content {
        padding: 0;
    }

    .svc-shrink-block {
        padding: 0;
    }

    .svc-shrink-imgwrap {
        border-radius: 16px;
        overflow: hidden;
    }
}

/* ====================================================================
   SERVICE 05 — STACKED CARDS
==================================================================== */
.svc-stack-section {
    position: relative;
    padding: 130px 60px 120px;
    background: #fafafa;
}

.svc-shrink-section--rev {
    padding: 60px 0;
}

.svc-stack-head {
    max-width: 900px;
    margin: 0 auto 70px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.svc-stack-container {
    max-width: 940px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.svc-stack-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 24px;
    padding: 50px;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 15vh;
    will-change: transform, opacity;
}

.svc-stack-num {
    font-family: monospace;
    font-size: 26px;
    font-weight: 400;
    color: #171717;
    background: #f4f4f5;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.svc-stack-body h3 {
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 500;
    color: #0a0a0a;
    margin: 0 0 14px;
    line-height: 1.25;
}

.svc-stack-body p {
    font-size: 15.5px;
    line-height: 1.75;
    color: #4b5563;
    margin: 0;
    max-width: 620px;
}

@media (max-width: 900px) {
    .svc-stack-section {
        padding: 70px 20px 60px;
    }

    .svc-stack-head {
        margin-bottom: 40px;
        text-align: left;
        align-items: flex-start;
    }

    .svc-stack-card {
        grid-template-columns: 1fr;
        padding: 30px 24px;
        position: static;
        gap: 20px;
    }

    .svc-stack-num {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .svc-h-list {
        grid-template-columns: 1fr !important;
    }
}

/* ====================================================================
   CTA
==================================================================== */
.svc-cta-section {
    padding: 130px 60px;
    background: #0a0a0a;
    color: #fff;
}

.svc-cta-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.svc-cta-title {
    font-size: clamp(28px, 3.6vw, 48px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff;
}

.svc-cta-title span {
    color: #E05A2B;
}

.svc-cta-inner p {
    font-size: 15.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.62);
    max-width: 500px;
    margin: 0;
}

.svc-cta-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 14px 34px;
    border-radius: 999px;
    background: #E05A2B;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.svc-cta-btn:hover {
    background: #c8491f;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(224, 90, 43, 0.6);
}

@media (max-width: 900px) {
    .svc-cta-section {
        padding: 80px 20px;
    }
}

/* ====================================================================
   PILL NAV
==================================================================== */
.pillnav-wrap {
    position: sticky;
    top: 80px;
    z-index: 29;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pillnav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 48px;
    scrollbar-width: none;
}

.pillnav::-webkit-scrollbar {
    display: none;
}

.pillnav a {
    flex: 0 0 auto;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #6b7280;
    border-radius: 999px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.pillnav a.active {
    color: #fff;
    background: #0a0a0a;
    border-color: #0a0a0a;
}

@media (max-width: 767px) {
    .pillnav-wrap {
        top: 60px;
    }

    .pillnav {
        padding: 12px 18px;
    }
}

/* ====================================================================
   SERVICE 05 — MECHATRONICS (mirrored shrink section)
   Image on RIGHT, content on LEFT (desktop)
==================================================================== */
@media (min-width: 993px) {
    .svc-shrink-section--rev .svc-shrink-container {
        grid-template-columns: 1fr 1fr;
        /* keep 2 cols */
    }

    .svc-shrink-section--rev .svc-shrink-media {
        order: 2;
    }

    .svc-shrink-section--rev .svc-shrink-content {
        order: 1;
    }
}