/* =============================================================
   SERVICES-FULL.CSS
   Orbit/scroll-pin style services section.
============================================================= */

.services-label {
    position: absolute;
    top: 10px;
    left: 36px;
    z-index: 100;
    background: transparent;
    color: #888888;
    font-family: var(--font-primary);
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.services-section {
    position: relative;
    height: 260vh;
    background: #050505;
    margin-top: 0;
    padding-top: 0 !important;
}

.services-pin {
    position: sticky;
    top: var(--nav-height);
    height: calc(100dvh - var(--nav-height));
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
}

.services-content {
    position: relative;
    background: #050505;
    width: 50%;
    flex-shrink: 0;
    height: 100%;
    left: 0;
    padding-left: 7vw;
    padding-right: 20px;
}

.service-item {
    position: absolute;
    left: 4vw;
    top: 20%;
    width: 100%;
    max-height: calc(100dvh - var(--nav-height) - 48px);
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: opacity, transform;
    overflow-y: auto;
    padding-right: 20px;
}

.service-item.active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.service-item h2 {
    font-family: var(--font-display);
    font-size: clamp(38px, 4.2vw, 76px);
    line-height: 1;
    font-weight: 300;
    margin-bottom: 18px;
    max-width: 760px;
    margin-left: 0;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}

.service-description {
    max-width: 720px;
}

.service-description p {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.15vw, 19px);
    line-height: 1.65;
    margin: 0 0 12px;
    text-align: justify;
    text-align-last: left;
    color: #d3d4d7;
    letter-spacing: 0.01em;
    overflow-wrap: normal;
    word-break: normal;
}

.service-description p:last-child {
    margin-bottom: 0;
}

.orbit-container {
    position: relative;
    width: 45%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 80px;
    overflow: hidden;
}

.orbit-system {
    position: relative;
    transform: translateX(80px);
    width: min(600px, 52vw);
    aspect-ratio: 1;
    height: auto;
    isolation: isolate;
    will-change: transform;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
}

.orbit-ring-1 {
    width: 92%;
    height: 92%;
    border: 1px solid rgba(199, 200, 204, .2);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring-2 {
    width: 63%;
    height: 63%;
    border: 1px solid rgba(199, 200, 204, .08);
    left: 50%;
    top: 50%;
    background: radial-gradient(circle at center, #34363a 0%, #1a1a1a 60%, #111111 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(199, 200, 204, .08), inset 0 0 35px rgba(255, 255, 255, .04);
    transform: translate(-50%, -50%);
}

.reveries-logo {
    width: 70%;
    height: auto;
    object-fit: contain;
    opacity: .95;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, .08));
    pointer-events: none;
}

.orbit-node {
    position: absolute;
    width: 54px;
    height: 54px;
    left: 50%;
    top: 50%;
    transform: none;
    transition: opacity .8s ease;
    will-change: transform, opacity;
}

.orbit-node.active-node {
    z-index: 20;
}

.orbit-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 35% 25%, #ffffff 0%, #c7c8cc 32%, #5a5d63 68%, #191919 100%);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 0 28px rgba(199, 200, 204, .14);
}

.orbit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
    transform: translateZ(0);
    image-rendering: auto;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: #c7c8cc;
}

.particle-1 { width: 12px; height: 12px; left: 14%; top: 18%; opacity: .6; }
.particle-2 { width: 8px; height: 8px; right: 12%; top: 30%; opacity: .4; }
.particle-3 { width: 16px; height: 16px; left: 22%; bottom: 16%; opacity: .25; }
.particle-4 { width: 10px; height: 10px; right: 18%; bottom: 20%; opacity: .5; }

.orbit-node:hover {
    z-index: 100;
}

@media(max-width: 1200px) {
    .orbit-system {
        width: min(620px, 48vw);
    }

    .orbit-node {
        width: clamp(38px, 4vw, 48px);
        height: clamp(38px, 4vw, 48px);
    }
}

@media(max-width: 991px) {
    .services-section {
        height: 320dvh;
        min-height: 320dvh;
    }

    .services-pin {
        position: sticky;
        top: var(--nav-height);
        height: calc(100vh - var(--nav-height));
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: clamp(20px, 4vh, 40px) 5vw clamp(36px, 7vh, 60px);
        gap: clamp(14px, 3vh, 28px);
        overflow: hidden;
    }

    .services-label {
        position: absolute;
        top: calc(var(--nav-height) + 14px);
        left: 5vw;
        font-size: clamp(13px, 2.8vw, 20px);
        letter-spacing: 0.3em;
    }

    .orbit-container {
        order: 1;
        position: relative;
        width: 100%;
        padding-left: 0;
        display: flex;
        justify-content: center;
        overflow: visible;
        z-index: 2;
    }

    .orbit-system {
        width: min(72vw, 460px);
        transform: none;
    }

    .orbit-node {
        width: clamp(32px, 7vw, 48px);
        height: clamp(32px, 7vw, 48px);
    }

    .services-content {
        order: 2;
        position: relative;
        width: 100%;
        height: clamp(260px, 42vh, 430px);
        padding: 0 4vw;
        text-align: center;
        z-index: 1;
        overflow-y: auto;
    }

    .service-item {
        position: absolute;
        inset: 0;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-height: none;
        padding: 0 2vw;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        overflow-y: visible;
    }

    .service-item.active {
        position: relative;
    }

    .service-item h2 {
        font-size: clamp(30px, 8vw, 54px);
        line-height: 1.05;
        max-width: min(100%, 720px);
        margin: 0 auto 14px;
        text-align: center;
        white-space: normal;
    }

    .service-description {
        max-width: min(92vw, 640px);
    }

    .service-description p {
        font-size: clamp(12px, 3.2vw, 15px);
        line-height: 1.55;
        margin-bottom: 10px;
        text-align: left;
        text-align-last: left;
        overflow-wrap: normal;
        word-break: normal;
    }
}

@media(max-width: 600px) {
    .services-pin {
        padding: clamp(20px, 5vh, 42px) 5vw clamp(40px, 8vh, 60px);
        gap: clamp(18px, 4vh, 32px);
    }

    .orbit-system {
        width: min(78vw, 340px);
    }

    .orbit-node {
        width: clamp(26px, 8vw, 38px);
        height: clamp(26px, 8vw, 38px);
    }

    .services-content {
        height: clamp(310px, 48vh, 470px);
        transform: translateY(10px);
    }

    .service-item h2 {
        font-size: clamp(24px, 8.4vw, 40px);
    }

    .service-description p {
        font-size: clamp(11px, 3.25vw, 14px);
        line-height: 1.5;
    }
}

@media(max-width: 380px) {
    .orbit-system {
        width: min(82vw, 300px);
    }

    .orbit-node {
        width: clamp(22px, 7vw, 32px);
        height: clamp(22px, 7vw, 32px);
    }

    .service-item h2 {
        font-size: clamp(20px, 7.8vw, 32px);
    }
}

@media(max-width: 991px) and (orientation: landscape) {
    .services-pin {
        padding: clamp(12px, 4vh, 24px) 5vw clamp(24px, 6vh, 40px);
        gap: clamp(14px, 3vh, 24px);
    }

    .services-label {
        top: 8px;
        font-size: clamp(11px, 2.4vh, 16px);
    }

    .orbit-system {
        width: min(46vh, 70vw, 360px);
    }

    .orbit-node {
        width: clamp(24px, 5vh, 40px);
        height: clamp(24px, 5vh, 40px);
    }

    .services-content {
        height: clamp(120px, 26vh, 220px);
    }

    .service-item h2 {
        font-size: clamp(20px, 5vh, 36px);
        margin-bottom: 8px;
    }

    .service-description {
        max-width: min(90vw, 560px);
    }

    .service-description p {
        font-size: clamp(12px, 2.8vh, 15px);
        line-height: 1.45;
        margin-bottom: 7px;
        text-align: left;
        text-align-last: left;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .services-label {
        top: 24px;
        left: 36px;
        font-size: 25px;
        letter-spacing: 0.2em;
    }
}

@media (max-width: 768px) {
    .services-label {
        top: 24px;
        left: 18px;
        font-size: 16px;
        letter-spacing: 0.15em;
    }
}