.vp-wheel {
    --vp-bg: #06111f;
    --vp-glow: rgba(41, 121, 255, .10);
    --vp-fg: #f7f9fc;
    --vp-muted: rgba(247, 249, 252, .56);
    --vp-line: rgba(247, 249, 252, .15);
    --vp-card-w: 430px;
    --vp-axis-y: 585px;
    --vp-radius-y: 425px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(24px, 3vw, 52px);
    border: 1px solid var(--vp-line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 43%, var(--vp-glow), transparent 34%),
        var(--vp-bg);
    color: var(--vp-fg);
    outline: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.vp-wheel.is-dragging { cursor: grabbing; }

.vp-wheel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .30;
    background-image:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.vp-wheel__stage {
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    width: 100%;
    height: auto !important;
    min-height: 790px;
    padding-top: 330px;
    overflow: visible;
    perspective: 1200px;
}

.vp-wheel__orbit {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.vp-wheel__halo {
    position: absolute;
    left: 50%;
    top: var(--vp-axis-y);
    z-index: 1;
    width: min(1120px, 84vw);
    aspect-ratio: 1 / .56;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.vp-wheel__halo::before,
.vp-wheel__halo::after {
    content: "";
    position: absolute;
    inset: 8%;
    border: 1px solid rgba(255,255,255,.04);
    border-radius: inherit;
}

.vp-wheel__halo::after { inset: 17%; }

.vp-wheel__axis {
    position: absolute;
    left: 50%;
    top: var(--vp-axis-y);
    z-index: 2;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.56);
    box-shadow: 0 0 0 10px rgba(255,255,255,.035);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.vp-project {
    --vp-x: 0px;
    --vp-y: -420px;
    --vp-scale: 1;
    --vp-rotate: 0deg;
    --vp-opacity: 1;
    --vp-blur: 0px;
    position: absolute;
    left: 50%;
    top: var(--vp-axis-y);
    z-index: 1;
    width: var(--vp-card-w);
    opacity: var(--vp-opacity);
    filter: blur(var(--vp-blur));
    transform:
        translate3d(
            calc(-50% + var(--vp-x)),
            calc(-50% + var(--vp-y)),
            0
        )
        rotate(var(--vp-rotate))
        scale(var(--vp-scale));
    transform-origin: center center;
    transition: opacity .18s linear, filter .18s linear;
    will-change: transform, opacity, filter;
}

.vp-project__card {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    transform: translateZ(0);
    -webkit-user-drag: none;
}

.vp-project__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    box-shadow: 0 24px 80px rgba(0,0,0,.24);
    transition: border-color .35s ease, box-shadow .35s ease;
}

.vp-project.is-active .vp-project__media {
    border-color: rgba(255,255,255,.26);
    box-shadow: 0 34px 100px rgba(0,0,0,.40), 0 0 0 1px rgba(63,142,255,.08);
}

.vp-project__image,
.vp-project__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.vp-project__image {
    object-fit: contain;
    object-position: center;
    -webkit-user-drag: none;
}

.vp-project__placeholder {
    background:
        radial-gradient(circle at 30% 25%, rgba(54,130,255,.18), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}

.vp-project__caption {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    overflow: hidden;
}

.vp-project__caption-title {
    display: block;
    max-width: 92%;
    overflow: hidden;
    color: rgba(255,255,255,.50);
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: .09em;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.vp-project.is-active .vp-project__caption-title { color: rgba(255,255,255,.94); }

.vp-wheel__center {
    position: relative;
    left: auto;
    top: auto !important;
    z-index: 140;
    width: calc(100% - 40px);
    max-width: 760px;
    margin: 0 auto;
    transform: none;
    text-align: center;
    pointer-events: none;
}

.vp-wheel__nav,
.vp-wheel__counter,
.vp-wheel__details {
    pointer-events: auto;
}

.vp-wheel__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.vp-wheel__nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.03);
    color: #fff;
    font: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    --vp-nav-hover-y: -2px;
    transition: transform .2s ease, color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.vp-wheel__nav-button:hover { transform: translateY(var(--vp-nav-hover-y)); }
.vp-wheel__nav-button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.vp-wheel__nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.vp-wheel__nav-icon i,
.vp-wheel__nav-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.vp-wheel__counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 12px;
    color: rgba(247,249,252,.55);
    font-size: 10px;
    line-height: 1;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

.vp-wheel__counter-separator { opacity: .45; }

.vp-wheel__details {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 330px;
}

.vp-wheel__detail {
    --vp-detail-gap: 12px;
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--vp-detail-gap);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .28s ease, transform .36s cubic-bezier(.2,.8,.2,1), visibility 0s linear .36s;
}

.vp-wheel__detail.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: .05s, .05s, 0s;
}

.vp-wheel__client {
    color: var(--vp-muted);
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.vp-wheel__title {
    margin: 0;
    color: var(--vp-fg);
    font-size: clamp(26px, 2.5vw, 44px);
    font-weight: 560;
    line-height: 1;
    letter-spacing: -.035em;
}

.vp-wheel__title a {
    color: inherit;
    text-decoration: none;
}

.vp-wheel__intro {
    max-width: 680px;
    color: rgba(247,249,252,.68);
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.55;
}

.vp-wheel__intro p { margin: 0; }

.vp-wheel__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.vp-wheel__tag {
    padding: 7px 10px 6px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    background: transparent;
    color: rgba(255,255,255,.55);
    font-size: 9px;
    line-height: 1;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.vp-wheel__tags--sector .vp-wheel__tag {
    border-color: rgba(94,157,255,.25);
    color: rgba(166,202,255,.82);
}

.vp-wheel__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 2px;
    padding: 12px 20px;
    border: 1px solid #1677ff;
    border-radius: 999px;
    background: #1677ff;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.vp-wheel__button:hover { transform: translateY(-2px); }
.vp-wheel__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
    transition: transform .2s ease;
}
.vp-wheel__button-icon i { line-height: 1; }
.vp-wheel__button-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}
.vp-wheel__button:hover .vp-wheel__button-icon--after { transform: translateX(2px); }
.vp-wheel__button:hover .vp-wheel__button-icon--before { transform: translateX(-2px); }

.vp-wheel__empty {
    padding: 24px;
    border: 1px dashed #bbb;
}

@media (max-width: 1024px) {
    .vp-wheel {
        --vp-card-w: min(42vw, 390px);
        --vp-axis-y: 525px;
        --vp-radius-y: 360px;
    }

    .vp-wheel__stage {
        min-height: 760px;
        padding-top: 315px;
    }

    .vp-wheel__center { max-width: 680px; }
}

@media (max-width: 767px) {
    .vp-wheel {
        --vp-card-w: min(82vw, 330px);
        --vp-axis-y: 410px;
        --vp-radius-y: 285px;
        padding: 20px 14px;
        border-radius: 22px;
    }

    .vp-wheel__stage {
        min-height: 720px;
        padding-top: 250px;
    }

    .vp-wheel__halo { width: 760px; }

    .vp-wheel__center {
        width: calc(100% - 20px);
        max-width: 520px;
    }

    .vp-wheel__details { min-height: 0; }
    .vp-wheel__title { font-size: clamp(26px, 8.5vw, 40px); }
    .vp-wheel__intro { font-size: 13px; }
    .vp-wheel__tag { padding: 6px 8px 5px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .vp-project,
    .vp-wheel__detail,
    .vp-project__media,
    .vp-wheel__nav-button,
    .vp-wheel__button,
    .vp-wheel__button-icon {
        transition: none !important;
    }
}
