:root {
    color-scheme: dark;
    /* Trust-forward palette: calm navy + slate, restrained accent */
    --bg: #0a1220;
    --card: rgba(14, 24, 41, 0.78);
    --card-border: rgba(148, 163, 184, 0.18);
    --text: #eef2f7;
    --muted: rgba(226, 232, 240, 0.72);
    --accent: #60a5fa;
    --accent-two: #93c5fd;
    --service-size: clamp(4.6rem, 13vw, 6.25rem);
    --profile-size: clamp(8.5rem, 26vw, 11rem);
    --orbit-size: min(82vw, 34rem);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100svh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 12%, rgba(96, 165, 250, 0.14), transparent 34rem),
        radial-gradient(circle at 86% 82%, rgba(147, 197, 253, 0.09), transparent 36rem),
        linear-gradient(180deg, #0b1629 0%, var(--bg) 58%, #070d18 100%);
}

body::before {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
    opacity: 0.7;
}

.shell {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.orbit-card {
    position: relative;
    width: min(100%, 48rem);
    min-height: min(92svh, 44rem);
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        var(--card);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(10px);
}

.ambient {
    position: absolute;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    filter: blur(54px);
    opacity: 0.22;
}

.ambient-one {
    top: -5rem;
    right: -4rem;
    background: var(--accent);
}

.ambient-two {
    left: -6rem;
    bottom: -5rem;
    background: var(--accent-two);
}

.orbit {
    position: relative;
    width: var(--orbit-size);
    height: var(--orbit-size);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
}

.orbit::before,
.orbit::after {
    position: absolute;
    inset: 12%;
    content: "";
    border: 1px dashed rgba(148, 163, 184, 0.16);
    border-radius: inherit;
}

.orbit::after {
    inset: 24%;
}

.profile {
    position: absolute;
    z-index: 2;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem;
}

.profile img {
    width: var(--profile-size);
    height: var(--profile-size);
    object-fit: contain;
    border-radius: 2rem;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.38));
}

.profile h1 {
    margin: 0;
    font-size: clamp(2rem, 7vw, 4rem);
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.profile p {
    max-width: 24rem;
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.6;
}

.service {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: var(--service-size);
    min-height: var(--service-size);
    display: grid;
    place-items: center;
    gap: 0.45rem;
    padding: 0.75rem;
    color: var(--text);
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1.35rem;
    background: rgba(10, 18, 32, 0.72);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--radius) * -1)) rotate(calc(var(--angle) * -1));
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.service:hover,
.service:focus-visible {
    border-color: rgba(96, 165, 250, 0.74);
    background: rgba(12, 22, 40, 0.9);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--radius) * -1)) rotate(calc(var(--angle) * -1)) scale(1.06);
    outline: none;
}

.service img {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
}

.service span {
    width: 100%;
    overflow: hidden;
    color: rgba(226, 232, 240, 0.76);
    font-size: 0.78rem;
    font-weight: 650;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-js {
    position: fixed;
    inset-inline: 1rem;
    bottom: 1rem;
    z-index: 10;
    padding: 1rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 1rem;
    color: #fef3c7;
    background: rgba(120, 53, 15, 0.92);
}

@media (max-width: 640px) {
    :root {
        --orbit-size: min(92vw, 30rem);
        --service-size: clamp(4rem, 18vw, 5rem);
        --profile-size: clamp(7.25rem, 30vw, 9rem);
    }

    .shell {
        padding: 0.75rem;
    }

    .orbit-card {
        min-height: 92svh;
        border-radius: 1.5rem;
    }

    .service span {
        font-size: 0.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
