/* ========================================
   TAQNIUM STUDIO — SERVICES HERO
======================================== */

.ts-services-hero {
    padding: 24px 0 38px;
    background: #040b17;
    color: #f4f7ff;
}

.ts-services-hero-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: calc(100% - 48px);
    max-width: 1600px;
    min-height: 460px;
    margin: 0 auto;
    border: 1px solid rgba(58, 117, 255, .65);
    border-radius: 25px;
    background:
        radial-gradient(ellipse at 76% 45%, rgba(0, 91, 255, .23), transparent 42%),
        radial-gradient(ellipse at 15% 0%, rgba(38, 54, 177, .27), transparent 50%),
        linear-gradient(110deg, #07132b, #03152a 56%, #101747);
}

.ts-services-hero-grid {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: .58;
    background-image:
        linear-gradient(rgba(34, 132, 255, .16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 132, 255, .16) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, #000, #000 85%, transparent);
}

.ts-services-hero-glow {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 3%;
    width: 55%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(
        ellipse,
        rgba(0, 119, 255, .25),
        rgba(25, 48, 255, .12) 42%,
        transparent 72%
    );
    filter: blur(20px);
}

.ts-services-hero-content {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 20px;
    width: min(100% - 72px, 1450px);
    min-height: 458px;
    margin: 0 auto;
    padding: 52px 0 68px;
}

.ts-services-hero-copy {
    position: relative;
    z-index: 3;
}

.ts-services-eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 24px;
    color: #00d9f5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

.ts-services-eyebrow > span,
.ts-artwork-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #00dcf5;
    box-shadow: 0 0 15px rgba(0, 220, 245, .9);
}

.ts-services-hero-copy h1 {
    margin: 0 0 22px;
    color: #f5f7ff;
    font-size: clamp(36px, 3.8vw, 60px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -2px;
}

.ts-services-gradient {
    color: #00d9f5;
    background: linear-gradient(100deg, #00d9f5 8%, #328aff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ts-services-description {
    max-width: 650px;
    margin: 0 0 31px;
    color: #bdc9df;
    font-size: 15px;
    line-height: 1.85;
}

.ts-services-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.ts-services-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 56px;
    padding: 0 25px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.ts-services-btn:hover {
    transform: translateY(-3px);
}

.ts-services-btn-primary {
    color: #03101c;
    background: linear-gradient(105deg, #00def4, #3988ff);
    box-shadow: 0 7px 30px rgba(0, 153, 255, .18);
}

.ts-services-btn-primary:hover {
    color: #03101c;
    box-shadow: 0 9px 34px rgba(0, 183, 255, .38);
}

.ts-services-btn-outline {
    color: #edf3ff;
    border-color: #2877db;
    background: rgba(3, 14, 31, .7);
}

.ts-services-btn-outline:hover {
    color: #fff;
    border-color: #00d9f5;
}

/* ========================================
   DIGITAL CUBE ARTWORK
======================================== */

.ts-services-artwork {
    position: relative;
    width: 100%;
    max-width: 590px;
    height: 345px;
    justify-self: end;
    perspective: 900px;
}

.ts-cube-scene {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 210px;
    height: 210px;
    transform: translate(-50%, -50%) rotate(-30deg) skewY(5deg);
    animation: ts-cube-hover 6s ease-in-out infinite;
    filter: drop-shadow(0 0 28px rgba(0, 123, 255, .38));
}

.ts-cube {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;
    padding: 5px;
    border: 1px solid rgba(57, 194, 255, .8);
    background: linear-gradient(135deg, rgba(0, 199, 255, .23), rgba(52, 45, 255, .23));
    box-shadow:
        inset 0 0 22px rgba(0, 190, 255, .3),
        0 0 22px rgba(0, 125, 255, .28);
    transform-style: preserve-3d;
}

.ts-cube span {
    border: 1px solid rgba(117, 220, 255, .72);
    background: linear-gradient(135deg, rgba(38, 193, 255, .65), rgba(28, 54, 194, .3));
    box-shadow: inset 0 0 10px rgba(0, 220, 255, .32);
}

.ts-cube-main {
    z-index: 4;
    width: 150px;
    height: 150px;
    top: 35px;
    left: 38px;
    transform: rotate(30deg) skewY(-5deg);
}

.ts-cube-main span:nth-child(2),
.ts-cube-main span:nth-child(5) {
    background: linear-gradient(135deg, rgba(0, 224, 255, .95), rgba(32, 94, 255, .55));
    box-shadow: 0 0 17px rgba(0, 216, 255, .6);
}

.ts-cube-left {
    z-index: 2;
    width: 112px;
    height: 112px;
    top: 4px;
    left: -9px;
    transform: rotate(30deg) skewY(-5deg);
    opacity: .85;
}

.ts-cube-right {
    z-index: 3;
    width: 120px;
    height: 120px;
    top: 86px;
    right: -7px;
    transform: rotate(30deg) skewY(-5deg);
    border-color: rgba(155, 110, 255, .9);
    background: linear-gradient(135deg, rgba(98, 51, 255, .45), rgba(0, 120, 255, .25));
}

.ts-cube-right span {
    border-color: rgba(178, 153, 255, .75);
    background: linear-gradient(135deg, rgba(110, 76, 255, .7), rgba(26, 90, 255, .35));
}

.ts-cube-back {
    z-index: 1;
    width: 125px;
    height: 125px;
    top: -26px;
    right: 4px;
    transform: rotate(30deg) skewY(-5deg);
    opacity: .65;
}

.ts-cube-small {
    z-index: 5;
    width: 63px;
    height: 63px;
    bottom: -8px;
    left: 7px;
    transform: rotate(30deg) skewY(-5deg);
}

.ts-cube-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    height: 205px;
    border: 1px solid rgba(0, 177, 255, .42);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    pointer-events: none;
}

.ts-cube-orbit-one {
    animation: ts-cube-orbit-one 18s linear infinite;
}

.ts-cube-orbit-two {
    width: 390px;
    height: 225px;
    border-color: rgba(83, 109, 255, .5);
    transform: translate(-50%, -50%) rotate(48deg);
    animation: ts-cube-orbit-two 23s linear infinite;
}

.ts-cube-orbit-three {
    width: 270px;
    height: 310px;
    border-color: rgba(0, 220, 245, .25);
    transform: translate(-50%, -50%) rotate(65deg);
    animation: ts-cube-orbit-one 27s linear infinite reverse;
}

/* Floating labels */

.ts-artwork-label {
    position: absolute;
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 18px;
    border: 1px solid rgba(0, 206, 255, .55);
    border-radius: 13px;
    color: #f1f5ff;
    background: linear-gradient(120deg, rgba(69, 60, 255, .96), rgba(45, 147, 255, .96));
    box-shadow: 0 8px 30px rgba(0, 94, 255, .25);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    animation: ts-artwork-float 6s ease-in-out infinite;
}

.ts-artwork-label-top {
    top: 18px;
    left: 1%;
}

.ts-artwork-label-bottom {
    right: 0;
    bottom: 40px;
    animation-delay: -2.8s;
}

.ts-artwork-arrow {
    margin-left: 5px;
    font-size: 17px;
}

.ts-artwork-bars {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 23px;
    margin-left: 3px;
}

.ts-artwork-bars i {
    display: block;
    width: 4px;
    border-radius: 2px;
    background: #fff;
}

.ts-artwork-bars i:nth-child(1) { height: 8px; }
.ts-artwork-bars i:nth-child(2) { height: 13px; }
.ts-artwork-bars i:nth-child(3) { height: 18px; }
.ts-artwork-bars i:nth-child(4) { height: 23px; }

.ts-artwork-spark {
    position: absolute;
    z-index: 6;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00eaff;
    box-shadow: 0 0 18px #00bfff;
    animation: ts-artwork-spark 3s ease-in-out infinite;
}

.ts-spark-one { top: 18%; right: 26%; }
.ts-spark-two { bottom: 24%; left: 12%; animation-delay: -1s; }
.ts-spark-three { top: 52%; right: 10%; animation-delay: -2s; }

@keyframes ts-cube-hover {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

@keyframes ts-cube-orbit-one {
    from { rotate: 0deg; }
    to { rotate: 360deg; }
}

@keyframes ts-cube-orbit-two {
    from { rotate: 360deg; }
    to { rotate: 0deg; }
}

@keyframes ts-artwork-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -9px; }
}

@keyframes ts-artwork-spark {
    0%, 100% { opacity: .35; scale: .7; }
    50% { opacity: 1; scale: 1.3; }
}

/* Breadcrumb notch */

.ts-services-breadcrumb {
    position: absolute;
    z-index: 8;
    right: 13%;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px 0;
    min-height: 43px;
    color: #00d9f5;
    border: 1px solid rgba(0, 174, 255, .48);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #041326;
    font-size: 13px;
}

.ts-services-breadcrumb a {
    color: #dbe7fb;
    text-decoration: none;
}

.ts-services-breadcrumb a:hover {
    color: #00d9f5;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1000px) {
    .ts-services-hero-content {
        grid-template-columns: 1fr .8fr;
        width: calc(100% - 48px);
    }

    .ts-services-hero-copy h1 {
        font-size: clamp(35px, 4.4vw, 48px);
    }

    .ts-services-artwork {
        transform: scale(.88);
        transform-origin: center right;
    }

    .ts-services-description {
        font-size: 14px;
    }

    .ts-cube-scene {
        scale: .85;
    }
}

@media (max-width: 700px) {
    .ts-services-hero {
        padding: 14px 0 28px;
    }

    .ts-services-hero-panel {
        width: calc(100% - 24px);
        min-height: 0;
        border-radius: 18px;
    }

    .ts-services-hero-content {
        grid-template-columns: 1fr;
        gap: 0;
        width: calc(100% - 36px);
        padding: 38px 0 68px;
    }

    .ts-services-eyebrow {
        margin-bottom: 17px;
        font-size: 10px;
    }

    .ts-services-hero-copy h1 {
        font-size: clamp(33px, 8.6vw, 46px);
        line-height: 1.14;
        letter-spacing: -1.4px;
    }

    .ts-services-description {
        font-size: 13px;
        line-height: 1.75;
    }

    .ts-services-actions {
        gap: 10px;
    }

    .ts-services-btn {
        min-height: 47px;
        padding: 0 14px;
        gap: 10px;
        border-radius: 10px;
        font-size: 11px;
    }

    .ts-services-artwork {
        width: 100%;
        max-width: 410px;
        height: 290px;
        margin: 18px auto 0;
        justify-self: center;
        transform: none;
    }

    .ts-cube-scene {
        scale: .78;
    }

    .ts-cube-orbit-one {
        width: 260px;
        height: 165px;
    }

    .ts-cube-orbit-two {
        width: 290px;
        height: 180px;
    }

    .ts-cube-orbit-three {
        width: 220px;
        height: 240px;
    }

    .ts-artwork-label {
        padding: 10px 11px;
        gap: 7px;
        font-size: 10px;
    }

    .ts-artwork-label-top {
        top: 5px;
        left: 0;
    }

    .ts-artwork-label-bottom {
        right: 0;
        bottom: 12px;
    }

    .ts-services-breadcrumb {
        right: 15px;
        padding: 12px 18px 0;
        min-height: 35px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ts-cube-scene,
    .ts-cube-orbit,
    .ts-artwork-label,
    .ts-artwork-spark {
        animation: none !important;
    }

    .ts-services-btn {
        transition: none;
    }
}

/* Services hero — spacing and stacking fix */
.ts-services-hero {
    position: relative;
    z-index: 1;
    display: flow-root;
    width: 100%;
    margin: 0;
    padding: 24px 0 38px;
    clear: both;
}

.ts-services-hero-panel {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1600px;
    margin: 0 auto;
}

.ts-services-hero-content {
    position: relative;
    padding-top: 52px;
}

/* Keep hero content below the site's header layer */
.ts-services-hero-copy,
.ts-services-artwork {
    min-width: 0;
}

@media (max-width: 700px) {
    .ts-services-hero {
        padding: 16px 0 28px;
    }

    .ts-services-hero-panel {
        width: calc(100% - 24px);
    }

    .ts-services-hero-content {
        padding-top: 34px;
    }
}

/* SERVICES HERO V2 — isolated layout */
.ts-services-hero-v2 {
    display: flow-root;
    position: relative;
    z-index: 1;
    clear: both;
    margin: 0;
    padding: 24px 0 38px;
}

.ts-services-hero-v2 .ts-services-hero-panel {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1600px;
    min-height: 460px;
    margin: 0 auto;
    overflow: hidden;
}

.ts-services-hero-v2 .ts-services-hero-content {
    position: relative;
    z-index: 2;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    min-height: 458px;
    padding: 52px 0 68px;
}

.ts-services-hero-v2 .ts-services-hero-copy {
    position: relative;
    z-index: 2;
}

.ts-services-hero-v2 .ts-services-artwork {
    position: relative;
    z-index: 1;
    justify-self: end;
}

.ts-services-hero-v2 .ts-services-breadcrumb {
    z-index: 3;
}

@media (max-width: 700px) {
    .ts-services-hero-v2 {
        padding: 16px 0 28px;
    }

    .ts-services-hero-v2 .ts-services-hero-panel {
        width: calc(100% - 24px);
        min-height: 0;
    }

    .ts-services-hero-v2 .ts-services-hero-content {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
        padding: 36px 0 58px;
    }

    .ts-services-hero-v2 .ts-services-artwork {
        justify-self: center;
        margin: 24px auto 0;
    }
}


/* =========================================
   SERVICES GRID — TAQNIUM STUDIO
========================================= */

.ts-service-grid-section {
    position: relative;
    isolation: isolate;
    padding: 76px 24px 90px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 5%, rgba(0, 111, 210, .10), transparent 55%),
        #040d19;
    color: #f3f7ff;
}

.ts-service-grid-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(22, 113, 194, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 113, 194, .045) 1px, transparent 1px);
    background-size: 42px 42px;
}

.ts-service-grid-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.ts-service-grid-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 28px;
}

.ts-service-grid-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: #00d8f4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.ts-service-grid-eyebrow span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d8f4;
    box-shadow: 0 0 14px rgba(0, 216, 244, .65);
}

.ts-service-grid-heading h2 {
    max-width: 850px;
    margin: 0;
    color: #f4f7ff;
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.14;
    font-weight: 750;
    letter-spacing: -1.4px;
}

.ts-service-grid-heading h2 span {
    background: linear-gradient(90deg, #00d9ef, #3291ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ts-service-explore-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 24px;
    margin-bottom: 5px;
    border: 1px solid rgba(0, 216, 244, .3);
    border-radius: 999px;
    background: linear-gradient(110deg, #00d9ee, #318dff);
    color: #03101d;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.ts-service-explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 172, 255, .22);
    color: #03101d;
}

.ts-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.ts-service-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid rgba(0, 164, 224, .42);
    border-radius: 17px;
    background: linear-gradient(
        145deg,
        rgba(8, 29, 49, .96),
        rgba(3, 15, 29, .98)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    transition: border-color .25s ease, transform .25s ease,
                box-shadow .25s ease;
}

.ts-service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 216, 244, .8);
    box-shadow: 0 14px 34px rgba(0, 125, 255, .09);
}

.ts-service-card-top {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}

.ts-service-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 190, 255, .7);
    border-radius: 13px;
    background: linear-gradient(
        135deg,
        rgba(0, 205, 245, .12),
        rgba(83, 77, 255, .15)
    );
    box-shadow: inset 0 0 18px rgba(0, 142, 255, .08);
}

.ts-service-icon svg {
    width: 29px;
    height: 29px;
    stroke: #25d9ff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ts-service-card-title h3 {
    margin: 4px 0 10px;
    color: #f4f7ff;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 750;
}

.ts-service-card-title p {
    margin: 0;
    color: #b5c7dc;
    font-size: 14px;
    line-height: 1.65;
}

.ts-service-features {
    display: grid;
    gap: 7px;
    list-style: none;
    margin: 19px 0 20px;
    padding: 0 0 0 3px;
}

.ts-service-features li {
    position: relative;
    padding-left: 27px;
    color: #c0cee0;
    font-size: 14px;
    line-height: 1.45;
}

.ts-service-features li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #00d8f4;
    border-radius: 50%;
    color: #00d8f4;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.ts-service-image-link {
    position: relative;
    display: block;
    width: 100%;
    height: 150px;
    margin-top: auto;
    overflow: hidden;
    border: 1px solid rgba(31, 144, 219, .45);
    border-radius: 12px;
    background: #061426;
    text-decoration: none;
}

.ts-service-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.ts-service-card:hover .ts-service-image-link img {
    transform: scale(1.045);
}

.ts-service-arrow {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: linear-gradient(135deg, #5648ff, #159fff);
    box-shadow: 0 0 20px rgba(36, 122, 255, .4);
    color: white;
    font-size: 24px;
    line-height: 1;
    transition: transform .25s ease;
}

.ts-service-image-link:hover .ts-service-arrow {
    transform: translate(2px, -2px);
}

@media (max-width: 1100px) {
    .ts-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ts-service-grid-heading h2 {
        font-size: clamp(29px, 4vw, 40px);
    }
}

@media (max-width: 680px) {
    .ts-service-grid-section {
        padding: 54px 16px 64px;
    }

    .ts-service-grid-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .ts-service-grid-heading h2 {
        font-size: clamp(28px, 8vw, 36px);
        letter-spacing: -.8px;
    }

    .ts-service-explore-btn {
        padding: 13px 19px;
    }

    .ts-service-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ts-service-card {
        padding: 17px;
    }

    .ts-service-card-title h3 {
        font-size: 17px;
    }

    .ts-service-card-title p,
    .ts-service-features li {
        font-size: 13px;
    }

    .ts-service-image-link {
        height: 170px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ts-service-card,
    .ts-service-image-link img,
    .ts-service-arrow,
    .ts-service-explore-btn {
        transition: none;
    }

    .ts-service-card:hover,
    .ts-service-card:hover .ts-service-image-link img {
        transform: none;
    }
}

/* Services cards: increase image height */
.ts-service-image-link {
    height: 190px;
    min-height: 190px;
    overflow: hidden;
}

.ts-service-image-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Give cards a little more breathing room */
.ts-service-card {
    padding: 20px;
}

.ts-service-features {
    margin-bottom: 24px;
}

/* Desktop: taller service images */
@media (min-width: 1101px) {
    .ts-service-image-link {
        height: 200px;
        min-height: 200px;
    }
}

/* Tablet */
@media (max-width: 1100px) {
    .ts-service-image-link {
        height: 210px;
        min-height: 210px;
    }
}

/* Mobile */
@media (max-width: 680px) {
    .ts-service-image-link {
        height: 220px;
        min-height: 220px;
    }
}

/* =========================================
   SERVICES — LARGE CARD LAYOUT
   ========================================= */

.ts-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.ts-service-card {
    box-sizing: border-box;
    min-width: 0;
    min-height: 600px;
    padding: 28px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    transition:
        transform 0.5s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.ts-service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.65);
    box-shadow: 0 18px 50px rgba(0, 150, 255, 0.12);
}

/* Card heading and description */
.ts-service-card h3 {
    font-size: 22px;
    line-height: 1.35;
}

.ts-service-card p {
    font-size: 15px;
    line-height: 1.7;
}

/* Service features */
.ts-service-features {
    margin-top: 20px;
    margin-bottom: 28px;
    gap: 12px;
}

/* Larger image area at bottom */
.ts-service-image-link {
    position: relative;
    display: block;
    width: 100%;
    height: 290px;
    min-height: 290px;
    margin-top: auto;
    overflow: hidden;
    border-radius: 15px;
    flex-shrink: 0;
}

.ts-service-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.ts-service-card:hover .ts-service-image-link img {
    transform: scale(1.04);
}

/* Tablet */
@media (max-width: 1100px) {
    .ts-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .ts-service-card {
        min-height: 660px;
        padding: 24px;
    }

    .ts-service-image-link {
        height: 260px;
        min-height: 260px;
    }
}

/* Mobile */
@media (max-width: 680px) {
    .ts-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ts-service-card {
        min-height: 0;
        padding: 22px;
    }

    .ts-service-image-link {
        height: 240px;
        min-height: 240px;
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ts-service-card,
    .ts-service-image-link img {
        transition: none;
    }
}

/* =====================================
   SERVICES — PROCESS OVERVIEW
   ===================================== */

.ts-process-overview {
    position: relative;
    padding: 64px 0;
    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(0, 177, 255, 0.055),
            transparent 65%
        ),
        #050d1b;
    border-top: 1px solid rgba(0, 201, 255, 0.08);
    border-bottom: 1px solid rgba(0, 201, 255, 0.08);
}

.ts-process-overview-inner {
    width: min(100% - 48px, 1450px);
    margin-inline: auto;
}

.ts-process-overview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.ts-process-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: #00d9f5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.ts-process-eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00d9f5;
    box-shadow: 0 0 12px rgba(0, 217, 245, 0.55);
}

.ts-process-overview-heading h2 {
    margin: 0;
    color: #f3f6ff;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -1.2px;
}

.ts-process-overview-heading h2 span {
    color: #08cbed;
    background: linear-gradient(100deg, #00d9ed, #398dff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ts-process-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-shrink: 0;
    padding: 15px 22px;
    border: 1px solid rgba(0, 209, 245, 0.25);
    border-radius: 40px;
    color: #04101c;
    background: linear-gradient(110deg, #00d9ed, #368cff);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ts-process-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 174, 255, 0.2);
}

.ts-process-steps {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) 20px
        minmax(0, 1fr) 20px
        minmax(0, 1fr) 20px
        minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.ts-process-card {
    min-width: 0;
    min-height: 150px;
    padding: 17px;
    border: 1px solid #123653;
    border-radius: 15px;
    background: linear-gradient(
        145deg,
        rgba(10, 28, 47, 0.96),
        rgba(5, 15, 29, 0.98)
    );
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.ts-process-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 210, 245, 0.65);
}

.ts-process-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}

.ts-process-number {
    color: #00d9f5;
    font-size: 14px;
    font-weight: 800;
}

.ts-process-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #244b99;
    border-radius: 10px;
    color: #5c8dff;
    background: rgba(40, 66, 140, 0.2);
    font-size: 23px;
}

.ts-process-card h3 {
    margin: 0 0 9px;
    color: #f3f6ff;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
}

.ts-process-card p {
    margin: 0;
    color: #aebed2;
    font-size: 12px;
    line-height: 1.7;
}

.ts-process-arrow {
    color: #00d9f5;
    font-size: 23px;
    font-weight: 500;
    text-align: center;
}

/* Tablet */
@media (max-width: 1050px) {
    .ts-process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .ts-process-arrow {
        display: none;
    }

    .ts-process-card {
        min-height: 155px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .ts-process-overview {
        padding: 46px 0;
    }

    .ts-process-overview-inner {
        width: min(100% - 32px, 1450px);
    }

    .ts-process-overview-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .ts-process-overview-heading h2 {
        font-size: 28px;
    }

    .ts-process-steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ts-process-card {
        min-height: auto;
        padding: 20px;
    }
}

/* ==========================================
   FINAL CTA — TAQNIUM STUDIO
========================================== */

.ts-final-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 110px 24px 76px;
    background: #050d1b;
    color: #f4f7ff;
    border-top: 1px solid rgba(68, 205, 255, 0.12);
    border-bottom: 1px solid rgba(68, 205, 255, 0.12);
}

.ts-final-cta-inner {
    position: relative;
    z-index: 3;
    width: min(100%, 1050px);
    margin: 0 auto;
    text-align: center;
}

/* Subtle technical grid */
.ts-final-cta-grid {
    position: absolute;
    z-index: -2;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(103, 151, 205, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 151, 205, .12) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(
        to bottom,
        transparent,
        #000 18%,
        #000 82%,
        transparent
    );
}

/* Cyan and blue atmospheric glow */
.ts-final-cta-glow {
    position: absolute;
    z-index: -1;
    top: -300px;
    left: 50%;
    width: min(1000px, 100vw);
    height: 700px;
    transform: translateX(-50%);
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at 50% 35%,
            rgba(65, 92, 255, .34) 0%,
            rgba(0, 198, 232, .13) 34%,
            rgba(5, 13, 27, 0) 72%
        );
    filter: blur(18px);
    animation: tsCtaGlow 8s ease-in-out infinite alternate;
}

.ts-final-cta-stars {
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: .45;
    background-image:
        radial-gradient(circle, #8beaff 1px, transparent 1.6px),
        radial-gradient(circle, #6f91ff 1px, transparent 1.5px);
    background-size: 127px 113px, 181px 157px;
    background-position: 20px 15px, 75px 55px;
    animation: tsCtaStars 24s linear infinite;
}

.ts-final-cta-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 25px;
    color: #00d8ef;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ts-final-cta-eyebrow span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #00d8ef;
    box-shadow: 0 0 14px rgba(0, 216, 239, .85);
}

.ts-final-cta h2 {
    max-width: 900px;
    margin: 0 auto 22px;
    color: #f5f7ff;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -2px;
}

.ts-final-cta h2 span {
    display: block;
    color: transparent;
    background: linear-gradient(100deg, #00d7ed 5%, #3195ff 90%);
    -webkit-background-clip: text;
    background-clip: text;
}

.ts-final-cta-description {
    max-width: 660px;
    margin: 0 auto;
    color: #b9c7dc;
    font-size: 15px;
    line-height: 1.9;
}

.ts-final-cta-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px 36px;
    margin: 30px 0 0;
}

.ts-final-cta-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #c7d3e7;
    font-size: 14px;
}

.ts-final-cta-benefits i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: rgba(89, 113, 255, .22);
    color: #fff;
    font-size: 12px;
    font-style: normal;
}

.ts-final-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 44px;
}

.ts-final-cta-actions a {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 25px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.ts-final-cta-primary {
    color: #04101b;
    background: linear-gradient(105deg, #00d7ed, #398cff);
    box-shadow: 0 8px 28px rgba(0, 183, 255, .13);
}

.ts-final-cta-secondary {
    color: #edf5ff;
    background: rgba(16, 29, 52, .75);
    border: 1px solid rgba(100, 157, 220, .28);
}

.ts-final-cta-actions a:hover {
    transform: translateY(-3px);
}

.ts-final-cta-primary:hover {
    box-shadow: 0 12px 34px rgba(0, 183, 255, .25);
}

.ts-final-cta-secondary:hover {
    border-color: rgba(0, 215, 239, .65);
}

.ts-final-cta-footer-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 58px;
    padding-top: 26px;
    border-top: 1px solid rgba(130, 164, 207, .14);
    color: #9aabc4;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.ts-final-cta-footer-line span {
    color: #00cfe9;
}

@keyframes tsCtaGlow {
    from {
        opacity: .7;
        transform: translateX(-50%) scale(.94);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1.06);
    }
}

@keyframes tsCtaStars {
    from { background-position: 20px 15px, 75px 55px; }
    to { background-position: 147px 128px, -106px 212px; }
}

@media (max-width: 640px) {
    .ts-final-cta {
        padding: 78px 20px 45px;
    }

    .ts-final-cta h2 {
        font-size: clamp(34px, 9vw, 46px);
        letter-spacing: -1.2px;
    }

    .ts-final-cta-description {
        font-size: 14px;
    }

    .ts-final-cta-benefits {
        flex-direction: column;
        align-items: flex-start;
        width: fit-content;
        margin: 28px auto 0;
        gap: 14px;
    }

    .ts-final-cta-actions {
        flex-direction: column;
        margin-top: 34px;
    }

    .ts-final-cta-actions a {
        width: 100%;
        box-sizing: border-box;
    }

    .ts-final-cta-footer-line {
        gap: 8px;
        margin-top: 40px;
        font-size: 8px;
        letter-spacing: 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ts-final-cta-glow,
    .ts-final-cta-stars {
        animation: none;
    }

    .ts-final-cta-actions a {
        transition: none;
    }
}