/* halo-drift — layout, sizes, motion only (colours live in the template) */

.halo-drift {
    padding-bottom: 20rem;
}

.halo-drift__glow {
    width: 64rem;
    height: 40rem;
    transform: translate(-50%, -30%);
    filter: blur(100px);
    pointer-events: none;
}

.halo-drift__kicker {
    letter-spacing: 0.2em;
}

.halo-drift__title {
    letter-spacing: -0.03em;
    text-wrap: balance;
}

/* --- orbit geometry: --rc circle radius, --ro bubble path radius, --b bubble size, --gap circle bottom above section bottom --- */
.halo-drift__viewport {
    --rc: 14rem;
    --ro: 16rem;
    --b: 3.5rem;
    --gap: 5.5rem;
    height: 20rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 30%);
    mask-image: linear-gradient(to bottom, transparent 0, black 30%);
}

.halo-drift__stage {
    left: 50%;
    bottom: calc(var(--gap) + var(--rc));
    width: 0;
    height: 0;
}

.halo-drift__line {
    width: calc(var(--rc) * 2);
    height: calc(var(--rc) * 2);
    left: calc(var(--rc) * -1);
    top: calc(var(--rc) * -1);
}

.halo-drift__ring {
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    --step: 30deg;
    animation: halo-drift-spin 160s linear infinite;
}

.halo-drift__ring--n8  { --step: 45deg; }
.halo-drift__ring--n9  { --step: 40deg; }
.halo-drift__ring--n10 { --step: 36deg; }
.halo-drift__ring--n11 { --step: 32.7273deg; }
.halo-drift__ring--n12 { --step: 30deg; }

.halo-drift__spoke {
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    --i: 0;
    transform: rotate(calc(var(--i) * var(--step)));
}

.halo-drift__spoke--i0  { --i: 0; }
.halo-drift__spoke--i1  { --i: 1; }
.halo-drift__spoke--i2  { --i: 2; }
.halo-drift__spoke--i3  { --i: 3; }
.halo-drift__spoke--i4  { --i: 4; }
.halo-drift__spoke--i5  { --i: 5; }
.halo-drift__spoke--i6  { --i: 6; }
.halo-drift__spoke--i7  { --i: 7; }
.halo-drift__spoke--i8  { --i: 8; }
.halo-drift__spoke--i9  { --i: 9; }
.halo-drift__spoke--i10 { --i: 10; }
.halo-drift__spoke--i11 { --i: 11; }

.halo-drift__bubble {
    position: absolute;
    width: var(--b);
    height: var(--b);
    left: calc(var(--b) / -2);
    top: calc(var(--ro) - var(--b) / 2);
    transform: rotate(calc(var(--i) * var(--step) * -1));
    animation: halo-drift-counter 160s linear infinite;
}

.halo-drift__glyph {
    font-size: calc(var(--b) * 0.36);
}

@keyframes halo-drift-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes halo-drift-counter {
    from { transform: rotate(calc(var(--i) * var(--step) * -1)); }
    to   { transform: rotate(calc(var(--i) * var(--step) * -1 - 360deg)); }
}

@media (min-width: 768px) {
    .halo-drift {
        padding-bottom: 18rem;
    }

    .halo-drift__viewport {
        --rc: 28rem;
        --ro: 31rem;
        --b: 5rem;
        --gap: 6rem;
        height: 100%;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 20%);
        mask-image: linear-gradient(to bottom, transparent 0, black 20%);
    }
}

@media (min-width: 1024px) {
    .halo-drift {
        padding-bottom: 17rem;
    }

    .halo-drift__viewport {
        --rc: 40rem;
        --ro: 44rem;
        --b: 6rem;
        --gap: 9rem;
    }
}

@media (min-width: 1280px) {
    .halo-drift__viewport {
        --rc: 46rem;
        --ro: 50.5rem;
        --b: 6.5rem;
        --gap: 11rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .halo-drift__ring,
    .halo-drift__bubble {
        animation: none;
    }
}

/* Лише layout / рух; кольори теми — у Blade */
.socialproof-card-hover {
    transition:
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.socialproof__stat-value,
.socialproof__stat-label {
    transition: transform 0.3s ease, color 0.2s ease;
}

@media (hover: hover) {
    .socialproof-card-hover:hover {
        box-shadow: 0 22px 44px -18px rgba(15, 23, 42, 0.2);
    }

    .dark .socialproof-card-hover:hover {
        box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.5);
    }

    .socialproof-card-hover:hover .socialproof__stat-value {
        transform: scale(1.08);
    }
}

@media (hover: hover) and (min-width: 640px) {
    .socialproof-card-hover--lift:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .socialproof-card-hover,
    .socialproof__stat-value,
    .socialproof__stat-label {
        transition: none;
    }

    .socialproof-card-hover:hover,
    .socialproof-card-hover:hover .socialproof__stat-value,
    .socialproof-card-hover--lift:hover {
        transform: none;
    }
}

/* Затримки анімацій частинок (без inline style) */
.socialproof__particle:nth-child(1) {
    animation-delay: 0.5s;
}

.socialproof__particle:nth-child(2) {
    animation-delay: 1s;
}

.socialproof__particle:nth-child(3) {
    animation-delay: 1.5s;
}

.socialproof__particle:nth-child(4) {
    animation-delay: 2s;
}

.socialproof__blob-soft:nth-child(1) {
    animation-delay: 1.2s;
}

.socialproof__blob-soft:nth-child(2) {
    animation-delay: 2.5s;
}

.socialproof__orbs-grid > .socialproof__orb-col:nth-child(1) .socialproof__orb-card {
    animation-delay: 0s;
}

.socialproof__orbs-grid > .socialproof__orb-col:nth-child(2) .socialproof__orb-card {
    animation-delay: 0.1s;
}

.socialproof__orbs-grid > .socialproof__orb-col:nth-child(3) .socialproof__orb-card {
    animation-delay: 0.2s;
}

.socialproof__orbs-grid > .socialproof__orb-col:nth-child(4) .socialproof__orb-card {
    animation-delay: 0.3s;
}

.socialproof__orbs-grid > .socialproof__orb-col:nth-child(5) .socialproof__orb-card {
    animation-delay: 0.4s;
}

.socialproof__orbs-grid > .socialproof__orb-col:nth-child(6) .socialproof__orb-card {
    animation-delay: 0.5s;
}

.socialproof__min-shrink {
    min-width: 0;
}

@keyframes socialproof-pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes socialproof-bounce {
    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes socialproof-ping {
    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.socialproof__particle--pulse,
.socialproof__blob-soft--pulse {
    animation: socialproof-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.socialproof__particle--bounce,
.socialproof__blob-soft--bounce {
    animation: socialproof-bounce 1s infinite;
}

.socialproof__particle--ping {
    animation: socialproof-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
    .socialproof__particle--pulse,
    .socialproof__particle--bounce,
    .socialproof__particle--ping,
    .socialproof__blob-soft--pulse,
    .socialproof__blob-soft--bounce {
        animation: none;
    }
}


.calendar-summit__cover { height: 12rem; }
.calendar-summit__icon-wrap { width: 2rem; height: 2rem; }

.calendar-summit__piece--shift:hover { transform: scale(1.05); transition: transform .2s ease; }

.calendar-summit__photo--shift:hover { transform: scale(1.05); transition: transform .2s ease; }

/* testimonials — twin belt: dual same-direction marquees + pause */
.twin-belt__eyebrow {
    letter-spacing: 0.2em;
}

.twin-belt__title {
    letter-spacing: -0.02em;
}

.twin-belt__dots {
    height: 0;
    border-top-style: dotted !important;
    width: 8rem;
}

.twin-belt__row {
    width: 100%;
}

.twin-belt__track {
    width: max-content;
    animation: twin-belt-left 80s linear infinite;
    will-change: transform;
}

.twin-belt__track--fast {
    animation-duration: 55s;
}

.twin-belt.is-paused .twin-belt__track {
    animation-play-state: paused;
}

.twin-belt__row:hover .twin-belt__track,
.twin-belt__row:focus-within .twin-belt__track {
    animation-play-state: paused;
}

.twin-belt__list {
    gap: 1.25rem;
    padding-right: 1.25rem;
}

.twin-belt__card {
    width: 20rem;
    min-height: 16rem;
}

.twin-belt__avatar {
    width: 3.25rem;
    height: 3.25rem;
    object-fit: cover;
}

@media (min-width: 768px) {
    .twin-belt__card {
        width: 30rem;
        min-height: 18rem;
    }

    .twin-belt__avatar {
        width: 4.5rem;
        height: 4.5rem;
    }
}

@keyframes twin-belt-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .twin-belt__track {
        animation: none;
        transform: none;
    }

    .twin-belt__row {
        overflow-x: auto;
    }
}

