/* r32 owner: themes-atlas. Exact source range retained from the r31 structural core; route scope is declared by data/css-ownership.json. */
/* Theme orbit and atlas
   ========================================================================== */

.section--orbit {
    overflow: hidden;
}

.theme-orbit {
    position: relative;
    width: min(69rem, 89vw);
    aspect-ratio: 1;
    margin: 2rem auto;
}

.theme-orbit__rings,
.theme-orbit__rings::before,
.theme-orbit__rings::after {
    position: absolute;
    inset: 50% auto auto 50%;
    border: 1px solid var(--line);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.theme-orbit__rings {
    width: 67%;
    aspect-ratio: 1;
}

.theme-orbit__rings::before,
.theme-orbit__rings::after {
    content: "";
}

.theme-orbit__rings::before {
    width: 67%;
    aspect-ratio: 1;
}

.theme-orbit__rings::after {
    width: 135%;
    aspect-ratio: 1;
    border-style: dashed;
    border-color: rgba(var(--signal-rgb), 0.25);
    animation: slow-spin 32s linear infinite;
}

.theme-orbit__rings i {
    position: absolute;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 1.2rem rgba(var(--signal-rgb), 0.9);
}

.theme-orbit__rings i:first-child {
    top: 7%;
    left: 23%;
}

.theme-orbit__rings i:nth-child(2) {
    right: -18%;
    bottom: 20%;
    background: var(--dawn);
}

.theme-orbit__rings i:nth-child(3) {
    bottom: -17%;
    left: 22%;
    background: var(--violet);
}

.theme-orbit__core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 29%;
    aspect-ratio: 1;
    padding: 1rem;
    place-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    text-align: center;
    background:
        radial-gradient(circle, rgba(var(--signal-rgb), 0.16), transparent 65%),
        var(--surface);
    box-shadow:
        inset 0 0 5rem rgba(var(--signal-rgb), 0.08),
        0 0 6rem rgba(var(--signal-rgb), 0.1);
    transform: translate(-50%, -50%);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.theme-orbit__core span {
    margin-bottom: 0.7rem;
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: clamp(0.52rem, 0.9vw, 0.72rem);
    font-weight: 900;
    letter-spacing: 0.13em;
}

.theme-orbit__core strong {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 3.1rem);
    letter-spacing: -0.04em;
    line-height: 0.9;
}

.theme-orbit__core.is-active {
    border-color: var(--signal);
    box-shadow:
        inset 0 0 5rem rgba(var(--signal-rgb), 0.13),
        0 0 7rem rgba(var(--signal-rgb), 0.17);
}

.theme-orbit__node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: grid;
    width: clamp(6.8rem, 11.5vw, 11rem);
    min-height: clamp(5rem, 8vw, 7.8rem);
    padding: 0.85rem;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text);
    background: rgba(12, 12, 18, 0.82);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    text-align: center;
    transform: translate(-50%, -50%) scale(1);
    transition:
        transform 0.35s var(--ease),
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
    backdrop-filter: blur(0.8rem);
}

html[data-theme="dawn"] .theme-orbit__node {
    background: rgba(247, 242, 232, 0.85);
}

.theme-orbit__node:hover,
.theme-orbit__node.is-active {
    z-index: 3;
    border-color: var(--signal);
    background: var(--surface);
    box-shadow: 0 1.3rem 4rem rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%) scale(1.07);
}

.theme-orbit__node span {
    margin-bottom: 0.35rem;
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 900;
}

.theme-orbit__node strong {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.5vw, 1.4rem);
    letter-spacing: -0.025em;
    line-height: 0.95;
    text-transform: uppercase;
}

.theme-orbit__node--1 { --x: 50%; --y: 2%; }
.theme-orbit__node--2 { --x: 76%; --y: 9%; }
.theme-orbit__node--3 { --x: 93%; --y: 28%; }
.theme-orbit__node--4 { --x: 97%; --y: 54%; }
.theme-orbit__node--5 { --x: 84%; --y: 82%; }
.theme-orbit__node--6 { --x: 60%; --y: 97%; }
.theme-orbit__node--7 { --x: 33%; --y: 94%; }
.theme-orbit__node--8 { --x: 10%; --y: 78%; }
.theme-orbit__node--9 { --x: 3%; --y: 50%; }
.theme-orbit__node--10 { --x: 12%; --y: 20%; }
.theme-orbit__node--11 { --x: 29%; --y: 5%; }

.filter-count {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.73rem;
    text-transform: uppercase;
}

.filter-count span {
    color: var(--signal);
    font-size: 1.4rem;
    font-weight: 900;
}

.filter-bar {
    display: flex;
    margin-bottom: 2rem;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.filter-bar button {
    min-height: 2.8rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--muted);
    background: transparent;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.filter-bar button:hover,
.filter-bar button.is-active {
    color: var(--white);
    border-color: var(--signal);
    background: var(--signal);
}

.theme-atlas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.theme-atlas-card {
    position: relative;
    display: flex;
    min-height: 32rem;
    padding: clamp(1.6rem, 4vw, 3rem);
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(var(--signal-rgb), 0.035), transparent 50%),
        var(--surface);
    transition:
        border-color 0.35s ease,
        transform 0.35s var(--ease),
        box-shadow 0.35s ease;
}

.theme-atlas-card::after {
    position: absolute;
    right: -6rem;
    bottom: -6rem;
    width: 13rem;
    height: 13rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    content: "";
}

.theme-atlas-card:hover {
    border-color: rgba(var(--signal-rgb), 0.55);
    box-shadow: var(--shadow);
    transform: translateY(-0.35rem);
}

.theme-atlas-card h3 {
    max-width: 12ch;
    margin-bottom: 1.35rem;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 5rem);
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.theme-atlas-card > p:not(.eyebrow) {
    max-width: 39rem;
    color: var(--muted);
}

.signal-tags {
    display: flex;
    padding: 0;
    margin: 1.4rem 0 2.2rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
}

.signal-tags li {
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.61rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.theme-atlas-card .card-link {
    width: max-content;
    margin-top: auto;
    padding: 0;
    color: var(--text);
    background: transparent;
    font-size: 0.85rem;
}

