/* ═══════════════════════════════════════════════════════════════
   D11 — Celestial Service Orrery
   Integrated visual from design-variants/D11-agent-orbit.html.
   The FAQ copy/accordion remains the site's existing accessible content;
   this file replaces only the old Eclipse Portal visual with a responsive,
   single-speed orbit whose eight satellites keep fixed angular spacing.
   ═══════════════════════════════════════════════════════════════ */

.our-faqs .orrery-visual {
    --orrery-gold: #c9a255;
    --orrery-bright: #f1d58d;
    --orrery-pale: #fff2c9;
    position: relative;
    width: 100%;
    min-height: clamp(390px, 43vw, 540px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    overflow: visible;
    isolation: isolate;
}

.our-faqs .orrery-instrument {
    position: relative;
    width: min(100%, 560px);
    aspect-ratio: 1;
    margin-inline: auto;
    perspective: 1100px;
    isolation: isolate;
}

.our-faqs .orrery-rig {
    --rig-x: -5deg;
    --rig-y: 0deg;
    position: absolute;
    inset: 6%;
    transform: rotateX(var(--rig-x)) rotateY(var(--rig-y));
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 120ms linear;
    will-change: transform;
}

/* Machined orbit rails, kept in the Orrery's own stacking context. */
.our-faqs .orrery-rig::before,
.our-faqs .orrery-rig::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    aspect-ratio: 1.68;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-10deg) scaleY(0.66);
}

.our-faqs .orrery-rig::before {
    z-index: 0;
    border: 2px solid rgba(201, 162, 85, 0.48);
    box-shadow:
        0 0 0 5px rgba(201, 162, 85, 0.08),
        0 0 28px rgba(201, 162, 85, 0.12),
        inset 0 0 0 1px rgba(255, 242, 201, 0.22);
}

.our-faqs .orrery-rig::after {
    z-index: 1;
    width: 88%;
    border: 1px solid rgba(241, 213, 141, 0.25);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.12);
}

.our-faqs .orrery-satellite {
    --sat-x: 0px;
    --sat-y: 0px;
    --sat-z: 0px;
    --sat-scale: 1;
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    width: clamp(66px, 14%, 96px);
    aspect-ratio: 1;
    transform: translate3d(calc(-50% + var(--sat-x)), calc(-50% + var(--sat-y)), var(--sat-z)) scale(var(--sat-scale));
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform, opacity;
    pointer-events: none;
}

.our-faqs .orrery-satellite img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.62));
    user-select: none;
    -webkit-user-drag: none;
}

.our-faqs .orrery-core {
    position: absolute;
    z-index: 10;
    left: 50%;
    top: 50%;
    width: 48%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: var(--white);
    text-decoration: none;
    outline: none;
    transform: translate(-50%, -50%) translateZ(60px);
}

.our-faqs .core-crown,
.our-faqs .core-crown::before,
.our-faqs .core-crown::after {
    position: absolute;
    border-radius: 50%;
}

.our-faqs .core-crown {
    inset: 0;
    background: conic-gradient(from 18deg, #5d4218, #f2d98f 10%, #98702a 20%, #f8e5aa 29%, #614719 39%, #d2a950 51%, #4a3514 61%, #ffe8a2 74%, #896421 84%, #5d4218);
    box-shadow: 0 24px 38px rgba(0, 0, 0, 0.65), 0 5px 0 #392a11;
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.our-faqs .core-crown::before {
    content: '';
    inset: 5px;
    background: #090908;
    box-shadow: inset 0 0 0 1px rgba(255, 242, 201, 0.25), inset 0 16px 26px rgba(255, 255, 255, 0.025);
}

.our-faqs .core-crown::after {
    content: '';
    inset: 8%;
    border: 1px solid rgba(201, 162, 85, 0.28);
}

.our-faqs .orrery-core:hover .core-crown,
.our-faqs .orrery-core:focus-visible .core-crown {
    transform: rotate(7deg) scale(1.035);
}

.our-faqs .orrery-core:focus-visible .core-crown {
    outline: 3px solid var(--orrery-pale);
    outline-offset: 7px;
}

.our-faqs .core-image {
    position: relative;
    z-index: 2;
    width: 88%;
    height: 88%;
    object-fit: contain;
    filter: contrast(1.06) saturate(0.96);
    pointer-events: none;
    user-select: none;
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms ease;
}

.our-faqs .orrery-core:hover .core-image,
.our-faqs .orrery-core:focus-visible .core-image {
    transform: translateY(-3px) scale(1.025);
    filter: contrast(1.1) saturate(1.06);
}

.our-faqs .core-cta {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: -9%;
    min-width: 172px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 242, 201, 0.62);
    border-radius: 999px;
    background: var(--orrery-gold);
    color: #0a0907;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.48);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateX(-50%);
}

@media (max-width: 991.98px) {
    .our-faqs .orrery-visual {
        min-height: clamp(360px, 58vw, 520px);
    }

    .our-faqs .orrery-instrument {
        width: min(100%, 520px);
    }

    .our-faqs .orrery-satellite {
        width: clamp(60px, 15%, 88px);
    }
}

@media (max-width: 575.98px) {
    .our-faqs .orrery-visual {
        min-height: 330px;
    }

    .our-faqs .orrery-instrument {
        width: min(108%, 410px);
        margin-inline: -4%;
    }

    .our-faqs .orrery-satellite {
        width: clamp(54px, 16%, 76px);
    }

    .our-faqs .core-cta {
        min-width: 150px;
        padding: 8px 12px;
        font-size: 0.62rem;
    }
}

@media (pointer: coarse) {
    .our-faqs .orrery-rig {
        transition-duration: 350ms;
    }

    .our-faqs .orrery-core:hover .core-crown,
    .our-faqs .orrery-core:hover .core-image {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .our-faqs .orrery-rig,
    .our-faqs .core-crown,
    .our-faqs .core-image {
        transition: none !important;
    }
}
