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

.twin-orbit {
    --to-outer: 30rem;
    --to-inner: 18rem;
    --to-bottom: 3.5rem;
    --to-b-outer: 3rem;
    --to-b-inner: 2.25rem;
    --to-spread: 0.85;
    padding-bottom: 14rem !important;
}

.twin-orbit__glow {
    width: 64rem;
    height: 40rem;
    transform: translate(-50%, -30%);
    filter: blur(90px);
}

.twin-orbit__eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
}

.twin-orbit__title {
    letter-spacing: -0.03em;
    text-wrap: balance;
}

/* --- concentric rings, both anchored to the section bottom --- */
.twin-orbit__ring {
    left: 50%;
    top: auto !important;
    box-sizing: border-box;
    z-index: 0;
}

/* only the ring line fades out towards the top; bubbles stay unmasked */
.twin-orbit__line {
    box-sizing: border-box;
    -webkit-mask-image: linear-gradient(to bottom, transparent 10%, black 45%);
    mask-image: linear-gradient(to bottom, transparent 10%, black 45%);
}

.twin-orbit__line--dashed {
    border-style: dashed !important;
}

.twin-orbit__ring--outer {
    --to-d: var(--to-outer);
    --to-size: var(--to-b-outer);
    width: var(--to-outer);
    height: var(--to-outer);
    margin-left: calc(var(--to-outer) / -2);
    bottom: var(--to-bottom) !important;
    animation: twin-orbit-sway-cw 14s ease-in-out infinite alternate;
}

.twin-orbit__ring--inner {
    --to-d: var(--to-inner);
    --to-size: var(--to-b-inner);
    width: var(--to-inner);
    height: var(--to-inner);
    margin-left: calc(var(--to-inner) / -2);
    bottom: calc(var(--to-bottom) + (var(--to-outer) - var(--to-inner)) / 2) !important;
    animation: twin-orbit-sway-ccw 11s ease-in-out infinite alternate;
}

/* bubble sits on the ring: rotate to its angle, push out by the radius, rotate back upright */
.twin-orbit__bubble {
    --to-a: 90deg;
    width: var(--to-size);
    height: var(--to-size);
    margin-top: calc(var(--to-size) / -2);
    margin-left: calc(var(--to-size) / -2);
    transform:
        rotate(calc(90deg + (var(--to-a) - 90deg) * var(--to-spread)))
        translateX(calc(var(--to-d) / 2))
        rotate(calc(-90deg - (var(--to-a) - 90deg) * var(--to-spread)));
}

.twin-orbit__bubble--n6-1 { --to-a: 20deg; }
.twin-orbit__bubble--n6-2 { --to-a: 48deg; }
.twin-orbit__bubble--n6-3 { --to-a: 76deg; }
.twin-orbit__bubble--n6-4 { --to-a: 104deg; }
.twin-orbit__bubble--n6-5 { --to-a: 132deg; }
.twin-orbit__bubble--n6-6 { --to-a: 160deg; }
.twin-orbit__bubble--n7-1 { --to-a: 18deg; }
.twin-orbit__bubble--n7-2 { --to-a: 42deg; }
.twin-orbit__bubble--n7-3 { --to-a: 66deg; }
.twin-orbit__bubble--n7-4 { --to-a: 90deg; }
.twin-orbit__bubble--n7-5 { --to-a: 114deg; }
.twin-orbit__bubble--n7-6 { --to-a: 138deg; }
.twin-orbit__bubble--n7-7 { --to-a: 162deg; }
.twin-orbit__bubble--n8-1 { --to-a: 16deg; }
.twin-orbit__bubble--n8-2 { --to-a: 37deg; }
.twin-orbit__bubble--n8-3 { --to-a: 58deg; }
.twin-orbit__bubble--n8-4 { --to-a: 79deg; }
.twin-orbit__bubble--n8-5 { --to-a: 101deg; }
.twin-orbit__bubble--n8-6 { --to-a: 122deg; }
.twin-orbit__bubble--n8-7 { --to-a: 143deg; }
.twin-orbit__bubble--n8-8 { --to-a: 164deg; }
.twin-orbit__bubble--m4-1 { --to-a: 26deg; }
.twin-orbit__bubble--m4-2 { --to-a: 62deg; }
.twin-orbit__bubble--m4-3 { --to-a: 118deg; }
.twin-orbit__bubble--m4-4 { --to-a: 154deg; }
.twin-orbit__bubble--m5-1 { --to-a: 22deg; }
.twin-orbit__bubble--m5-2 { --to-a: 56deg; }
.twin-orbit__bubble--m5-3 { --to-a: 90deg; }
.twin-orbit__bubble--m5-4 { --to-a: 124deg; }
.twin-orbit__bubble--m5-5 { --to-a: 158deg; }
.twin-orbit__bubble--m6-1 { --to-a: 20deg; }
.twin-orbit__bubble--m6-2 { --to-a: 47deg; }
.twin-orbit__bubble--m6-3 { --to-a: 74deg; }
.twin-orbit__bubble--m6-4 { --to-a: 106deg; }
.twin-orbit__bubble--m6-5 { --to-a: 133deg; }
.twin-orbit__bubble--m6-6 { --to-a: 160deg; }

/* icons counter-rotate so glyphs stay upright while the ring sways */
.twin-orbit__face {
    line-height: 1;
}

.twin-orbit__face--outer {
    animation: twin-orbit-sway-ccw 14s ease-in-out infinite alternate;
}

.twin-orbit__face--inner {
    animation: twin-orbit-sway-cw 11s ease-in-out infinite alternate;
}

@keyframes twin-orbit-sway-cw {
    from { transform: rotate(-5deg); }
    to   { transform: rotate(5deg); }
}

@keyframes twin-orbit-sway-ccw {
    from { transform: rotate(5deg); }
    to   { transform: rotate(-5deg); }
}

/* axis dot + pulse */
.twin-orbit__dot {
    width: 0.75rem;
    height: 0.75rem;
}

.twin-orbit__pulse {
    animation: twin-orbit-pulse 2.4s ease-out infinite;
}

@keyframes twin-orbit-pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(3.5); opacity: 0; }
}

/* mobile: drop the outermost bubbles that would fall off-screen */
@media (max-width: 767.98px) {
    .twin-orbit__bubble--edge {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .twin-orbit {
        --to-outer: 58rem;
        --to-inner: 44rem;
        --to-bottom: 5rem;
        --to-b-outer: 5rem;
        --to-b-inner: 3.5rem;
        --to-spread: 0.92;
        padding-bottom: 18rem !important;
    }
}

@media (min-width: 1024px) {
    .twin-orbit {
        --to-outer: 90rem;
        --to-inner: 70rem;
        --to-bottom: 6.5rem;
        --to-b-outer: 6.5rem;
        --to-b-inner: 4.5rem;
        --to-spread: 1;
        padding-bottom: 21rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .twin-orbit__ring,
    .twin-orbit__face,
    .twin-orbit__pulse {
        animation: none !important;
    }
}

.perks-aside-visual__blob--tr {
    position: absolute;
    width: 24rem;
    height: 24rem;
    top: 0;
    right: 0;
    filter: blur(64px);
}

.perks-aside-visual__blob--bl {
    position: absolute;
    width: 20rem;
    height: 20rem;
    bottom: 0;
    left: 0;
    filter: blur(64px);
}

/* orbit-bento — gradient board with phone tile + 2×2 service cards */
.orbit-bento__eyebrow {
    letter-spacing: 0.14em;
}

.orbit-bento__heading {
    letter-spacing: -0.03em;
}

.orbit-bento__board {
    padding: 1.25rem;
}

.orbit-bento__cloud {
    width: 16rem;
    height: 12rem;
    filter: blur(40px);
}

.orbit-bento__cloud--a {
    transform: translate(-18%, -30%);
}

.orbit-bento__cloud--b {
    width: 20rem;
    height: 14rem;
    transform: translate(55%, 75%);
}

.orbit-bento__phone {
    width: 100%;
    max-width: 16rem;
    aspect-ratio: 9 / 19;
    padding: 0.5rem;
    border-radius: 2.5rem;
    margin: 0 auto;
}

.orbit-bento__screen {
    border-radius: 2.05rem;
}

.orbit-bento__notch {
    width: 5rem;
    height: 1.2rem;
}

.orbit-bento__status {
    font-size: 0.7rem;
}

.orbit-bento__status i {
    margin-left: 0.15rem;
    font-size: 0.58rem;
}

.orbit-bento__coin {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.6rem;
}

.orbit-bento__micro {
    font-size: 0.62rem;
    line-height: 1.15;
}

.orbit-bento__chart {
    min-height: 5.5rem;
    overflow: visible;
}

.orbit-bento__chart-svg {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 5.5rem;
    overflow: visible;
}

.orbit-bento__chart-fill {
    transform-origin: center bottom;
    animation: orbit-bento-chart-fill 4.2s ease-in-out infinite;
}

.orbit-bento__chart-line {
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    animation: orbit-bento-chart-draw 4.2s ease-in-out infinite;
}

.orbit-bento__chart-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: orbit-bento-chart-dot 4.2s ease-in-out infinite;
}

@keyframes orbit-bento-chart-fill {
    0%, 12% { opacity: 0; transform: scaleY(0.55); }
    40%, 72% { opacity: 1; transform: scaleY(1); }
    88%, 100% { opacity: 0; transform: scaleY(0.55); }
}

@keyframes orbit-bento-chart-draw {
    0% { stroke-dashoffset: 360; opacity: 0.35; }
    38% { stroke-dashoffset: 0; opacity: 1; }
    72% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 360; opacity: 0.35; }
}

@keyframes orbit-bento-chart-dot {
    0%, 28% { opacity: 0; transform: translateY(5px) scale(0.6); }
    42%, 72% { opacity: 1; transform: translateY(0) scale(1); }
    88%, 100% { opacity: 0; transform: translateY(5px) scale(0.6); }
}

.orbit-bento__tile {
    padding: 1.15rem;
    min-height: 100%;
}

@media (min-width: 1024px) {
    .orbit-bento__board {
        padding: 1.75rem;
    }

    .orbit-bento__phone {
        max-width: 17rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-bento__chart-fill,
    .orbit-bento__chart-line,
    .orbit-bento__chart-dot {
        animation: none;
        opacity: 1;
        transform: none;
        stroke-dashoffset: 0;
    }
}

/* time-range chips inside the phone mock: never spill out of the frame; extra chips scroll sideways */
ul:has(> li.orbit-bento__micro) { overflow-x: auto; scrollbar-width: none; }
ul:has(> li.orbit-bento__micro)::-webkit-scrollbar { display: none; }
li.orbit-bento__micro { flex-shrink: 0; white-space: nowrap; }

/* process editor — brand mark sizing */
.process-editor__brand {
    letter-spacing: 0.04em;
}

/* process editor — hero bar between mega words */
.process-editor__hero-bar {
    flex: 1 1 6rem;
    height: 0.65rem;
    min-width: 3rem;
    max-width: 100%;
    align-self: flex-end;
    margin-bottom: 0.35em;
}

/* process editor — oversized condensed display type */
.process-editor__mega {
    letter-spacing: -0.06em;
    line-height: 0.82;
}

.process-editor__mega--lead {
    font-size: clamp(3.5rem, 16vw, 11rem);
}


.process-editor__mega--stack {
    font-size: clamp(3rem, 13vw, 9rem);
    margin-top: -0.08em;
}

/* process editor — italic accent word in kicker */
.process-editor__kicker {
    font-size: clamp(1.75rem, 4.5vw, 3.75rem);
}

.process-editor__kicker-accent {
    display: inline-block;
    font-size: clamp(2.25rem, 6vw, 5rem);
    line-height: 0.95;
    vertical-align: baseline;
    margin-inline: 0.15em;
}

/* process editor — vertical step nav */
.process-editor__nav-btn {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
    outline-offset: -2px;
    transition: opacity 200ms ease, transform 200ms ease;
}

.process-editor__nav-btn.is-active {
    transform: translateX(0.25rem);
}

.process-editor__nav-btn.is-active .process-editor__nav-label {
    color: var(--tw-primary-900, var(--bs-primary));
    font-weight: 700;
}

.process-editor__nav-btn:not(.is-active) .process-editor__nav-label {
    opacity: 0.72;
}

.process-editor__panel {
    animation: process-editor-panel-in 280ms ease;
}

@keyframes process-editor-panel-in {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1023px) {
    .process-editor__hero-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .process-editor__hero-bar {
        width: 70%;
        flex: none;
        margin-bottom: 0;
    }

    .process-editor__kicker {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-editor__nav-btn,
    .process-editor__panel {
        animation: none;
        transition: none;
    }

    .process-editor__nav-btn.is-active {
        transform: none;
    }
}

.rail-three-quote-split__portrait {
    width: 4rem;
    height: 4rem;
}

.rail-three-quote-split__col {
    padding-bottom: 1.5rem;
}

.rail-three-quote-split__col:last-child {
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .rail-three-quote-split__col {
        padding-bottom: 0;
    }
}

