/* 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;
    }
}

.channel-orbit-float__halo-primary {
    top: 5rem;
    left: 2.5rem;
    width: 8rem;
    height: 8rem;
}

.channel-orbit-float__halo-secondary {
    top: 10rem;
    right: 5rem;
    width: 6rem;
    height: 6rem;
    animation-delay: 1s;
}

.channel-orbit-float__halo-tertiary {
    bottom: 5rem;
    left: 25%;
    width: 5rem;
    height: 5rem;
    animation-delay: 2s;
}

.channel-orbit-float__tile-glow {
    width: 5rem;
    height: 5rem;
    transform: translate(2.5rem, -2.5rem);
}

.channel-orbit-float__icon-slab {
    width: 3rem;
    height: 3rem;
}

.channel-orbit-float__stage-disk-lg {
    width: 10rem;
    height: 10rem;
    top: 2.5rem;
    left: 2.5rem;
}

.channel-orbit-float__stage-disk-sm {
    width: 8rem;
    height: 8rem;
    bottom: 2.5rem;
    right: 2.5rem;
}

.channel-orbit-float__picker-bead {
    width: 0.5rem;
    height: 0.5rem;
}

.contact-us-flex__min {
    min-width: 0;
}

.contact-us-media__cover {
    object-fit: cover;
}

@keyframes contact-us-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes contact-us-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.5rem); }
}
.channel-orbit-float__halo-primary,
.channel-orbit-float__halo-tertiary {
    animation: contact-us-pulse 2s ease-in-out infinite;
}
.channel-orbit-float__halo-secondary {
    animation: contact-us-bounce 2s ease-in-out infinite;
}
[data-channel-orbit-tile][data-celebrate="true"] {
    animation: contact-us-bounce 0.6s ease;
}
[data-channel-orbit-picker][data-request-error="true"] {
    animation: contact-us-pulse 1.5s ease-in-out infinite;
}

