
      

            /* =====================================
           TRIGGER BUTTON
        ===================================== */

            .trigger-btn {
                background: var(--navy);
                color: var(--pale);
                border: none;
                padding: 16px 32px;
                font-size: 17px;
                font-weight: 600;
                border-radius: 50px;
                cursor: pointer;
                box-shadow: 0 10px 20px rgba(38, 59, 67, .2);
                transition: .3s ease;

                display: flex;
                align-items: center;
                gap: 10px;
            }

            .trigger-btn ion-icon {
                font-size: 23px;
            }

            .trigger-btn:hover {
                background: var(--navy-dark);
                transform: translateY(-3px);
                box-shadow: 0 15px 25px rgba(38, 59, 67, .3);
            }

            /* =====================================
           MODAL
        ===================================== */

            .modal-overlay {
                position: relative;
                /* inset: 0; */
                width: 100%;
                height: 100%;
                /* background: rgba(25, 45, 53, .7);
                backdrop-filter: blur(8px);
                -webkit-backdrop-filter: blur(8px); */

                /* display: none; */
                justify-content: center;
                align-items: center;

                /* z-index: 9999; */
                /* padding: 20px; */

                /* opacity: 0; */
                transition: opacity .3s ease;
                padding: 0;
            }

            .modal-overlay.active {
                display: flex;
            }

            .modal-overlay.show {
                opacity: 1;
            }

            .modal-content {
                position: relative;
                width: 100%;
                min-height: 400px;
                /* max-height: 95vh; */
                background: var(--bg);
                /* border: 1px solid var(--line); */
                border-radius: 25px;

                /* box-shadow: 0 25px 50px rgba(0, 0, 0, .2); */

                /* padding: 30px; */

                display: flex;
                flex-wrap: wrap;
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
                /* align-items: stretch; */
                gap: 40px;

                /* overflow: auto; */

                transform: scale(.9);
                transition: transform .35s cubic-bezier(.175, .885, .32, 1.275);
            }

            .modal-overlay.show .modal-content {
                transform: scale(1);
            }

            /* =====================================
           CLOSE BUTTON
        ===================================== */

            .close-btn {
                position: absolute;
                top: 18px;
                right: 18px;

                width: 42px;
                height: 42px;

                background: var(--bg);
                color: var(--navy);

                border: 1px solid var(--line);
                border-radius: 50%;

                display: none;
                justify-content: center;
                align-items: center;

                cursor: pointer;
                font-size: 25px;

                z-index: 100;

                transition: .3s ease;
            }

            .close-btn:hover {
                background: var(--navy);
                color: white;
                transform: rotate(90deg);
            }

            /* =====================================
           DIAGRAM
        ===================================== */

            .services-rot .card-img {
                overflow: hidden;
                background-image:
                    linear-gradient(rgba(25, 45, 53, .58), rgba(25, 45, 53, .72)),
                    var(--image-servicesOrbit);

                border-radius: 18px;
                padding: 10px;
                background-position: center;
                background-size: cover;
                border: 1px solid rgba(255, 255, 255, .35);
                box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
                display: flex;
                justify-content: center;
                align-items: stretch;
               flex: 1;
               min-width: 300px;
               height: 440px;
            }

            .diagram-container {
                position: relative;
                width: auto;
                height: auto;
                aspect-ratio: 1;
                transform: scale(0.8);
                /* max-height: 360px; 
                /* overflow: hidden; */
            }

            /* Rotating services only */
            .services-orbit {
                position: absolute;
                inset: 0;
                transform: rotate(var(--rotation, 0deg));
                transition: transform .8s cubic-bezier(.2, .8, .2, 1);
            }

            /* =====================================
           CENTER LOGO
        ===================================== */

            .center-node {
                position: absolute;
                width: 115px;
                height: 115px;

                left: 50%;
                top: 50%;

                transform: translate(-50%, -50%);

                background: rgba(255, 253, 248, .96);
                border: 2px solid var(--navy);
                border-radius: 50%;

                display: flex;
                align-items: center;
                justify-content: center;

                padding: 20px;

                box-shadow: 0 10px 30px rgba(38, 59, 67, .12);

                z-index: 10;

                animation: logoPop .8s ease both;
            }

            .center-logo {
                width: 85%;
                height: auto;
                object-fit: contain;
                display: block;
            }

            .center-node::after {
                content: "";
                position: absolute;
                inset: -3px;

                border: 2px solid var(--gold);
                border-radius: 50%;

                animation: pulse 2.5s infinite;
                pointer-events: none;
            }

            @keyframes logoPop {
                from {
                    opacity: 0;
                    scale: .6;
                }

                to {
                    opacity: 1;
                    scale: 1;
                }
            }

            @keyframes pulse {
                0% {
                    transform: scale(1);
                    opacity: .6;
                }

                100% {
                    transform: scale(1.2);
                    opacity: 0;
                }
            }

            /* =====================================
           SERVICE BUTTONS
        ===================================== */

            .pill {
                position: absolute;

                left: var(--x);
                top: var(--y);

                /* width: 62px;
                min-height: 62px; */

                padding: 1px;

                border: 1px solid var(--line);
                border-radius: 50px;

                background: var(--bg);

                display: flex;
                align-items: center;
                justify-content: left;
                gap: 12px;

                transform: translate(-50%, -50%);

                box-shadow: 0 5px 18px rgba(38, 59, 67, .06);

                cursor: pointer;

                z-index: 5;

                transition:
                    left .7s ease,
                    top .7s ease,
                    transform .7s ease,
                    background .3s ease,
                    border-color .3s ease,
                    box-shadow .3s ease;
                transform:
                    translate(-50%, -50%) rotate(calc(-1 * var(--rotation, 0deg)));
            }

            .pill:hover {
                border-color: var(--gold);
                box-shadow: 0 10px 25px rgba(38, 59, 67, .12);
            }

            .pill span {
                color: var(--ink);
                font-size: 13px;
                font-weight: 600;
                line-height: 1.4;
                text-align: center;
                text-transform: capitalize;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                display: none;
            }

            .icon-box {
                width: 60px;
                height: 60px;
                min-width: 60px;

                background: var(--navy);
                color: var(--gold);

                border-radius: 50%;

                display: flex;
                align-items: center;
                justify-content: center;

                box-shadow: 0 3px 8px rgba(38, 59, 67, .15);
            }

            .icon-box ion-icon {
                font-size: 25px;
            }

            /* Selected desktop service */
            .pill.selected {
                background: #fffaf0;
                border-color: var(--gold);
                box-shadow: 0 10px 25px rgba(199, 166, 106, .25);
                z-index: 8;
            }

            .pill.selected .icon-box {
                background: var(--gold);
                color: var(--navy);
            }

            .service-details-panel {
                width: 100%;
                min-width: 300px;
                margin: 0;
                padding: 0px;
                /* border: 1px solid rgba(232, 226, 215, .9); */
                /* border-radius: 18px; */
                /* background: #fffaf0; */
                color: var(--ink);
                font-size: 13px;
                line-height: 1.55;
                flex: 2;
                text-overflow: ellipsis;

            }

            .service-details-empty {
                margin: 0;
                color: #68777b;
                text-align: center;
            }

            .service-details-heading {
                display: flex;
                align-items: center;
                gap: 12px;
                margin-bottom: 10px;
            }

            .service-details-heading>ion-icon {
                flex-shrink: 0;
                color: var(--gold);
                font-size: 28px;
            }

            .service-details-kicker {
                margin: 0;
                color: var(--gold);
                font-size: 11px;
                font-weight: 700;
                text-transform: uppercase;
            }

            .service-details-panel h3 {
                margin: 0;
                color: var(--navy);
                font-size: 18px;
                line-height: 1.25;
            }

            .service-details-panel p {
                margin: 0 0 8px;
            }

            .service-details-panel section {
                margin-top: 12px;
                padding-top: 10px;
                border-top: 1px solid var(--line);
            }

            .service-details-panel h4 {
                margin: 0 0 5px;
                color: var(--navy);
                font-size: 13px;
            }

            .service-details-link {
                display: inline-flex;
                align-items: center;
                gap: 7px;
                margin-top: 8px;
                color: var(--navy);
                font-weight: 700;
                text-decoration: underline;
            }

            /* =====================================
           MOBILE
        ===================================== */

            @media (max-width: 768px) {

                .modal-overlay {
                    /* padding: 10px; */
                }

                .modal-content {
                    width: 100%;
                    min-height: 520px;
                    /* max-height: 95vh; */
                    /* padding: 10px 10px 25px; */
                    border-radius: 20px;
                    grid-template-columns: 1fr;
                    gap: 16px;
                }

                .service-details-panel {
                    /* max-height: 220px; */
                    padding: 15px;
                }

                .diagram-container {
                    /* width: 80%;
                    max-width: 400px;
                    aspect-ratio: 0.7;*/
                }

                .center-node {
                    width: 115px;
                    height: 115px;
                    padding: 12px;
                }

                /* Circular icon-only buttons */
                .pill {
                    width: var(--mobile-size, 60px);
                    height: var(--mobile-size, 60px);
                    min-height: 0;

                    padding: 0;

                    border-radius: 50%;

                    background: var(--navy);
                    border: 2px solid var(--bg);

                    display: flex;
                    align-items: center;
                    justify-content: center;

                    transform:
                        translate(-50%, -50%) rotate(calc(-1 * var(--rotation, 0deg)));
                }

                /* Hide labels only on mobile */
                .pill span {
                    display: none;
                }

                .pill .icon-box {
                    width: 100%;
                    height: 100%;
                    min-width: 0;

                    background: transparent;
                    color: var(--gold);

                    box-shadow: none;
                }

                .pill .icon-box ion-icon {
                    font-size: 25px;
                }

                /* Selected circle */
                .pill.selected {
                    background: var(--gold);
                    border-color: var(--bg);
                    box-shadow: 0 10px 25px rgba(199, 166, 106, .25);
                    z-index: 8;
                }

                .pill.selected span {
                    /* display: flex; */
                }

                .pill.selected .icon-box {
                    /* background: transparent;
                color: var(--navy); */
                    min-width: 54px;
                    width: auto;
                }

            }

            @media (max-width: 380px) {
                .diagram-container {
                    /* min-height: 360px; */
                }

                .center-node {
                    width: 100px;
                    height: 100px;
                }
            }

            @media (prefers-reduced-motion: reduce) {

                *,
                *::before,
                *::after {
                    animation-duration: .01ms !important;
                    transition-duration: .01ms !important;
                }
            }
        