/* Landing-only orientation extract — clusters, tethers, spring drag, scripted connect */

.showcase-orient {
    --so-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --so-ink: #15282f;
    --so-ink-soft: rgba(21, 40, 47, 0.62);
    --so-line: rgba(21, 40, 47, 0.14);
    --so-surface: #fffdf8;
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid color-mix(in srgb, var(--cl-ink, #1c1814) 12%, transparent);
    background:
        radial-gradient(80% 70% at 12% 8%, rgba(79, 135, 148, 0.14), transparent 55%),
        radial-gradient(70% 55% at 92% 88%, rgba(196, 137, 90, 0.12), transparent 52%),
        linear-gradient(165deg, #f6f2eb 0%, #f1ebe3 48%, #ebe4d8 100%);
    box-shadow: 0 18px 40px rgba(28, 24, 20, 0.1);
    color: var(--so-ink);
    aspect-ratio: 16 / 11;
    min-height: 22rem;
    max-height: 36rem;
    touch-action: none;
    user-select: none;
}

.showcase-orient__stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: default;
}

.showcase-orient__stage.is-dragging {
    cursor: grabbing;
}

.showcase-orient__stage.is-dim-out .showcase-orient__world {
    opacity: 0;
    transition: opacity 0.28s ease;
}

.showcase-orient__stage.is-dim-in .showcase-orient__world {
    opacity: 0;
    transition: none;
}

.showcase-orient__world {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    transform-origin: 0 0;
    will-change: transform;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.showcase-orient__tethers {
    position: absolute;
    left: 0;
    top: 0;
    overflow: visible;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.showcase-orient__tether {
    stroke: rgba(21, 40, 47, 0.22);
    stroke-width: 1.7;
    stroke-linecap: round;
    fill: none;
    pointer-events: none;
    transition: stroke 0.2s ease, stroke-width 0.2s ease;
}

.showcase-orient__stage.is-dragging .showcase-orient__tether.is-active {
    stroke: rgba(21, 40, 47, 0.42);
    stroke-width: 2;
}

.showcase-orient__tether.is-new {
    stroke: rgba(61, 142, 196, 0.55);
    stroke-width: 2.1;
}

.showcase-orient__node {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: grab;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--so-face, 104px);
    color: var(--so-ink);
    font: inherit;
    transform-origin: center top;
    -webkit-user-drag: none;
    appearance: none;
}

.showcase-orient__node--sat {
    z-index: 2;
}

.showcase-orient__node.is-handle {
    z-index: 5;
    cursor: grabbing;
}

.showcase-orient__node.is-drop {
    z-index: 4;
}

.showcase-orient__node.is-drop .showcase-orient__face {
    box-shadow:
        0 0 0 3px var(--so-surface),
        0 0 0 7px rgba(61, 142, 196, 0.45),
        0 14px 28px rgba(21, 40, 47, 0.14);
}

.showcase-orient__face {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: var(--so-face, 104px);
    height: var(--so-face, 104px);
    border-radius: 50%;
    overflow: hidden;
    background: var(--so-badge, #5b8fd4);
    border: 1px solid var(--so-line);
    box-shadow: 0 12px 28px rgba(21, 40, 47, 0.1);
    color: #fff;
    font-weight: 700;
    font-size: calc(var(--so-face, 104px) * 0.28);
    letter-spacing: 0.02em;
    pointer-events: none;
}

.showcase-orient__node--groups .showcase-orient__face {
    border-radius: 1rem;
}

.showcase-orient__face--icon {
    font-size: calc(var(--so-face, 104px) * 0.36);
    font-weight: 400;
    letter-spacing: 0;
}

.showcase-orient__face--icon i {
    line-height: 1;
}

.showcase-orient__node--priorities .showcase-orient__face {
    background: linear-gradient(145deg, #5a6f8a, #3e5168);
    color: #f4f1ea;
}

.showcase-orient__node--things .showcase-orient__face {
    background: oklch(62% 0.22 340);
    color: #fff;
}

.showcase-orient__node--nuggets .showcase-orient__face {
    background: #7b5ea7;
    color: #fff;
}

.showcase-orient__node--nugget-signal .showcase-orient__face {
    background: #c4785b;
}

.showcase-orient__node--nugget-stat .showcase-orient__face {
    background: #7b5ea7;
}

.showcase-orient__node--tasks .showcase-orient__face {
    background: linear-gradient(145deg, #6f9e8f, #3f6b5e);
    color: #f4f1ea;
}

.showcase-orient__face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.showcase-orient__label {
    margin: 0.35rem 0 0;
    max-width: 7.5rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.82);
    border: 1px solid rgba(21, 40, 47, 0.08);
    color: var(--so-ink-soft);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    opacity: 0.92;
}

.showcase-orient__node--sat .showcase-orient__label {
    font-size: 0.62rem;
    max-width: 5.5rem;
}

.showcase-orient__hint {
    position: absolute;
    z-index: 3;
    left: 0.85rem;
    top: 0.85rem;
    margin: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.82);
    border: 1px solid rgba(21, 40, 47, 0.1);
    color: var(--so-ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s var(--so-ease);
}

.showcase-orient.is-active .showcase-orient__hint {
    opacity: 1;
}

.showcase-orient.is-playing .showcase-orient__hint {
    opacity: 0;
}

.showcase-orient__replay {
    position: absolute;
    z-index: 4;
    right: 0.85rem;
    top: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(21, 40, 47, 0.14);
    background: rgba(255, 253, 248, 0.92);
    color: var(--so-ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    cursor: pointer;
    appearance: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.15rem);
    transition:
        opacity 0.35s var(--so-ease),
        transform 0.35s var(--so-ease),
        background 0.2s var(--so-ease),
        border-color 0.2s var(--so-ease);
}

.showcase-orient__replay i {
    font-size: 0.95rem;
    line-height: 1;
}

.showcase-orient.is-active:not(.is-playing) .showcase-orient__replay {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.showcase-orient__replay:hover,
.showcase-orient__replay:focus-visible {
    background: #fff;
    border-color: rgba(61, 142, 196, 0.45);
    outline: none;
}

.showcase-orient__replay:focus-visible {
    box-shadow: 0 0 0 3px rgba(61, 142, 196, 0.28);
}

.showcase-orient__lens {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 0.85rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--so-ease);
}

.showcase-orient.is-active .showcase-orient__lens {
    opacity: 1;
    pointer-events: auto;
}

.showcase-orient.is-playing .showcase-orient__lens {
    opacity: 0.7;
}

.showcase-orient__lens-menu {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border-radius: 0.95rem;
    border: 1px solid rgba(21, 40, 47, 0.12);
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 14px 28px rgba(21, 40, 47, 0.12);
    min-width: 12.5rem;
    max-height: min(18rem, 52vh);
    overflow: auto;
}

.showcase-orient__lens-menu[hidden] {
    display: none;
}

.showcase-orient__lens-option {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0.7rem;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: var(--so-ink);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.showcase-orient__lens-option:hover,
.showcase-orient__lens-option:focus-visible {
    background: rgba(21, 40, 47, 0.06);
    outline: none;
}

.showcase-orient__lens-option.is-active {
    background: rgba(61, 142, 196, 0.14);
}

.showcase-orient__lens-option i {
    width: 1rem;
    font-size: 0.95rem;
    line-height: 1;
    color: #3f6fc2;
}

.showcase-orient__lens-option[data-lens="groups"] i {
    color: #2f5f6b;
}

.showcase-orient__lens-option[data-lens="priorities"] i {
    color: #5a6f8a;
}

.showcase-orient__lens-option[data-lens="things"] i {
    color: oklch(58% 0.22 340);
}

.showcase-orient__lens-option[data-lens="nuggets"] i {
    color: #a67c52;
}

.showcase-orient__lens-option[data-lens="tasks"] i {
    color: #3f6b5e;
}

.showcase-orient__lens-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(21, 40, 47, 0.14);
    background: rgba(255, 253, 248, 0.92);
    color: var(--so-ink);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 650;
    cursor: pointer;
    appearance: none;
    box-shadow: 0 10px 24px rgba(21, 40, 47, 0.08);
}

.showcase-orient__lens-trigger:hover,
.showcase-orient__lens-trigger:focus-visible,
.showcase-orient__lens.is-open .showcase-orient__lens-trigger {
    background: #fff;
    border-color: rgba(21, 40, 47, 0.22);
    outline: none;
}

.showcase-orient__lens-trigger i:first-child {
    color: #3f6fc2;
}

.showcase-orient__lens-trigger[data-lens="groups"] i:first-child {
    color: #2f5f6b;
}

.showcase-orient__lens-trigger[data-lens="priorities"] i:first-child {
    color: #5a6f8a;
}

.showcase-orient__lens-trigger[data-lens="things"] i:first-child {
    color: oklch(58% 0.22 340);
}

.showcase-orient__lens-trigger[data-lens="nuggets"] i:first-child {
    color: #a67c52;
}

.showcase-orient__lens-trigger[data-lens="tasks"] i:first-child {
    color: #3f6b5e;
}

.showcase-orient__lens-chevron {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: transform 0.2s var(--so-ease);
}

.showcase-orient__lens.is-open .showcase-orient__lens-chevron {
    transform: rotate(180deg);
}

.showcase-orient__lens.is-pulse .showcase-orient__lens-trigger {
    box-shadow:
        0 0 0 3px rgba(255, 253, 248, 0.95),
        0 0 0 7px rgba(63, 111, 194, 0.4),
        0 10px 24px rgba(21, 40, 47, 0.08);
}

.showcase-orient__tray {
    position: absolute;
    z-index: 5;
    left: 0.75rem;
    bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: min(11.25rem, 36%);
    max-height: calc(100% - 4.75rem);
    padding: 0.65rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 252, 247, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 28px rgba(28, 36, 51, 0.1);
}

.showcase-orient__tray-title {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3d8ec4;
}

.showcase-orient__tray-lead {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--so-ink-soft);
}

.showcase-orient__tray-list {
    list-style: none;
    margin: 0.1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
    overflow: auto;
}

.showcase-orient__chip {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0.28rem 0.4rem 0.28rem 0.28rem;
    border: 1px solid rgba(21, 40, 47, 0.1);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.76);
    color: var(--so-ink);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 650;
    text-align: left;
    cursor: grab;
    appearance: none;
}

.showcase-orient__chip:hover,
.showcase-orient__chip:focus-visible {
    background: #fff;
    border-color: rgba(61, 142, 196, 0.4);
    outline: none;
}

.showcase-orient__chip.is-dragging {
    opacity: 0.35;
}

.showcase-orient__chip.is-used {
    opacity: 0.4;
    pointer-events: none;
}

.showcase-orient__chip-face {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    overflow: hidden;
    background: var(--so-badge, #5b8fd4);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.showcase-orient__chip-face .bi {
    font-family: bootstrap-icons;
    font-style: normal;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1;
}

.showcase-orient__chip-face--person {
    border-radius: 50%;
}

.showcase-orient__chip-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.showcase-orient__chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showcase-orient__ghost {
    position: fixed;
    z-index: 80;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.4rem;
    align-items: center;
    min-width: 8rem;
    max-width: 11rem;
    padding: 0.3rem 0.5rem 0.3rem 0.3rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(61, 142, 196, 0.35);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 32px rgba(28, 36, 51, 0.18);
    pointer-events: none;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--so-ink, #15282f);
    transform: translate(-50%, -50%);
}

@media (max-width: 575.98px) {
    .showcase-orient {
        aspect-ratio: 1 / 1.05;
        min-height: 20rem;
    }

    .showcase-orient__replay span {
        display: none;
    }

    .showcase-orient__label {
        display: none;
    }

    .showcase-orient__lens-menu {
        min-width: 10.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-orient__world {
        transition: none !important;
    }
}
