@charset "UTF-8";
/* ==========================================================================
   CLOUD PARTNERS — MOTION LAYER
   Choreography that sits on top of the Aurora design system.
   Every effect degrades gracefully and respects prefers-reduced-motion.

   01. Page enter / preloader
   02. Scroll reveals
   03. Kinetic type (line & word masks)
   04. Magnetic & pointer-reactive elements
   05. Custom cursor
   06. Tilt cards
   07. Parallax & scroll-linked
   08. Marquee helpers
   09. Counters & number roll
   10. Image reveal masks
   11. Scroll progress
   12. Micro-interactions
   13. Reduced motion
   ========================================================================== */

/* ==========================================================================
   01. PAGE ENTER / PRELOADER
   ========================================================================== */
.cp-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    background: #fbfbfd;
    background: var(--canvas, #fbfbfd);
    transition: opacity .5s var(--ease-out), visibility .5s;
}

[data-theme="dark"] .cp-loader {
    background: #070a12;
    background: var(--canvas, #070a12);
}

.cp-loader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cp-loader-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.cp-loader-mark img {
    width: 200px;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
    will-change: opacity;
    animation: loaderPulse 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

[data-theme="dark"] .cp-loader-mark img {
    filter: brightness(0) invert(1);
}

@keyframes loaderPulse {
    0%, 100% {
        opacity: .5;
    }
    50% {
        opacity: 1;
    }
}

.cp-loader-bar {
    width: 140px;
    height: 3px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    background: var(--line, rgba(0, 0, 0, 0.08));
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

[data-theme="dark"] .cp-loader-bar {
    background: rgba(255, 255, 255, 0.12);
}

.cp-loader-bar i {
    display: block;
    height: 100%;
    width: 45%;
    border-radius: 999px;
    background: linear-gradient(102deg, #4d86ff 0%, #a78bfa 46%, #22d3ee 100%);
    background: var(--grad-aurora, linear-gradient(102deg, #4d86ff 0%, #a78bfa 46%, #22d3ee 100%));
    animation: loaderSlide 1.2s cubic-bezier(.65, 0, .35, 1) infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes loaderSlide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

/* First paint choreography — hero elements rise in sequence */
.cp-enter {
    opacity: 0;
    transform: translateY(26px);
}

body.cp-ready .cp-enter {
    animation: enterUp .95s var(--ease-out) forwards;
    animation-delay: var(--cp-enter-delay, 0s);
}

@keyframes enterUp {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   02. SCROLL REVEALS
   ========================================================================== */
.cp-reveal {
    opacity: 0;
    transform: translateY(38px);
    transition:
        opacity .9s var(--ease-out),
        transform .9s var(--ease-out),
        filter .9s var(--ease-out);
    transition-delay: var(--cp-delay, 0s);
    will-change: opacity, transform;
}

.cp-reveal.cp-blur { filter: blur(10px); }
.cp-reveal.cp-left { transform: translateX(-52px); }
.cp-reveal.cp-right { transform: translateX(52px); }
.cp-reveal.cp-zoom { transform: scale(.9); }
.cp-reveal.cp-rise-lg { transform: translateY(70px); }

.cp-reveal.cp-flip {
    transform: perspective(1400px) rotateX(-14deg) translateY(40px);
    transform-origin: center top;
}

.cp-reveal.cp-in {
    opacity: 1;
    filter: none;
    transform: translate3d(0, 0, 0) scale(1) rotateX(0);
}

/* Clip-path wipe reveal for media */
.cp-wipe {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.15s var(--ease-out);
    transition-delay: var(--cp-delay, 0s);
}

.cp-wipe.cp-in {
    clip-path: inset(0 0 0 0);
}

/* Section header underline draw */
.section-head h2,
.section-header h2 {
    position: relative;
}

.section-head.cp-in h2::after,
.section-header.cp-in h2::after {
    width: 56px;
}

.section-head h2::after,
.section-header h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    height: 3px;
    width: 0;
    border-radius: 3px;
    background: var(--grad-aurora);
    translate: -50% 0;
    transition: width .9s var(--ease-out) .28s;
}

.section-head-left h2::after {
    left: 0;
    translate: 0;
}

/* ==========================================================================
   03. KINETIC TYPE — line & word masks
   ========================================================================== */
.cp-split {
    display: block;
}

.cp-line {
    display: block;
    overflow: hidden;
}

.cp-line>span {
    display: block;
    transform: translateY(105%);
    transition: transform 1.05s var(--ease-out);
    transition-delay: calc(var(--cp-line-i, 0) * .085s + var(--cp-delay, 0s));
    will-change: transform;
}

.cp-split.cp-in .cp-line>span {
    transform: translateY(0);
}

/* Word-level stagger (used for lede text) */
.cp-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: calc(var(--cp-word-i, 0) * .026s + var(--cp-delay, 0s));
}

.cp-split-words.cp-in .cp-word {
    opacity: 1;
    transform: none;
}

/* Character shimmer for the headline gradient */
.cp-shimmer {
    position: relative;
    background-size: 200% auto;
}

/* ==========================================================================
   04. MAGNETIC & POINTER-REACTIVE
   ========================================================================== */
.cp-magnet {
    transition: transform .45s var(--ease-out);
    will-change: transform;
}

.cp-magnet.cp-magnet-active {
    transition: transform .18s cubic-bezier(.2, .8, .3, 1);
}

.cp-magnet>* {
    display: inline-flex;
    align-items: center;
    gap: inherit;
    transition: transform .35s var(--ease-out);
}

/* Spotlight that follows the pointer inside a surface */
.cp-spotlight {
    position: relative;
    isolation: isolate;
}

.cp-spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
            color-mix(in srgb, var(--brand) 12%, transparent), transparent 62%);
    opacity: 0;
    transition: opacity .45s var(--ease-out);
    pointer-events: none;
}

.cp-spotlight:hover::after {
    opacity: 1;
}

/* ==========================================================================
   05. CUSTOM CURSOR
   ========================================================================== */
.cp-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 4000;
    pointer-events: none;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity .3s var(--ease-out);
}

.cp-cursor.ready {
    opacity: 1;
}

.cp-cursor-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    translate: -50% -50%;
}

.cp-cursor-ring {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .65);
    translate: -50% -50%;
    transition: width .35s var(--ease-spring), height .35s var(--ease-spring),
        background-color .3s var(--ease-out), border-color .3s var(--ease-out), opacity .3s;
}

.cp-cursor.hot .cp-cursor-ring {
    width: 62px;
    height: 62px;
    background: rgba(255, 255, 255, .16);
    border-color: transparent;
}

.cp-cursor.hot .cp-cursor-dot {
    opacity: 0;
}

.cp-cursor.press .cp-cursor-ring {
    width: 26px;
    height: 26px;
}

/* Only hide the native cursor when the custom one is live */
body.cp-cursor-on,
body.cp-cursor-on a,
body.cp-cursor-on button,
body.cp-cursor-on .chip,
body.cp-cursor-on .ai-pill {
    cursor: none;
}

/* ==========================================================================
   06. TILT CARDS
   ========================================================================== */
.cp-tilt {
    transform-style: preserve-3d;
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
    will-change: transform;
}

.cp-tilt.cp-tilting {
    transition: box-shadow .4s var(--ease-out);
    z-index: 3;
}

.cp-tilt-inner {
    transform: translateZ(28px);
    transition: transform .5s var(--ease-out);
}

/* Glare sheen following the pointer */
.cp-glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%),
            rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 58%);
    transition: opacity .35s var(--ease-out);
}

[data-theme="dark"] .cp-glare {
    background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%),
            rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 58%);
}

.cp-tilt.cp-tilting .cp-glare {
    opacity: 1;
}

/* ==========================================================================
   07. PARALLAX & SCROLL-LINKED
   ========================================================================== */
.cp-parallax {
    will-change: transform;
}

/* Sticky media column in split sections */
.cp-sticky {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
}

/* Hero content fades as you scroll past */
.cp-hero-fade {
    will-change: opacity, transform;
}

/* Horizontal line that draws itself on scroll */
.cp-draw-line {
    position: relative;
    height: 1px;
    background: var(--line);
    overflow: hidden;
}

.cp-draw-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-aurora);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.3s var(--ease-out);
}

.cp-draw-line.cp-in::after {
    transform: scaleX(1);
}

/* ==========================================================================
   08. MARQUEE HELPERS
   ========================================================================== */
.marquee-reverse .marquee-track {
    animation-direction: reverse;
}

.marquee-slow .marquee-track {
    animation-duration: 68s;
}

/* ==========================================================================
   09. COUNTERS
   ========================================================================== */
.cp-count {
    font-variant-numeric: tabular-nums;
    display: inline-block;
}

/* ==========================================================================
   10. IMAGE REVEAL MASKS
   ========================================================================== */
.cp-img-mask {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}

.cp-img-mask::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--canvas);
    transform-origin: right;
    transition: transform 1.1s var(--ease-out);
    transition-delay: var(--cp-delay, 0s);
    z-index: 2;
}

.cp-img-mask.cp-in::after {
    transform: scaleX(0);
}

.cp-img-mask img {
    transform: scale(1.14);
    transition: transform 1.5s var(--ease-out);
    transition-delay: var(--cp-delay, 0s);
}

.cp-img-mask.cp-in img {
    transform: scale(1);
}

/* ==========================================================================
   11. SCROLL PROGRESS
   ========================================================================== */
#cp-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 950;
    background: var(--grad-aurora);
    border-radius: 0 3px 3px 0;
    pointer-events: none;
    transition: width .1s linear, opacity .3s;
}

/* ==========================================================================
   12. MICRO-INTERACTIONS
   ========================================================================== */
/* Arrow nudge on any hover target containing .nudge */
.nudge {
    transition: transform .35s var(--ease-out);
}

a:hover>.nudge,
button:hover>.nudge,
.btn:hover .nudge {
    transform: translateX(4px);
}

/* Underline sweep for nav-like links */
.sweep {
    position: relative;
}

.sweep::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s var(--ease-out);
}

.sweep:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Ripple on press (JS adds the span) */
.cp-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    transform: scale(0);
    animation: rippleOut .65s var(--ease-out) forwards;
    pointer-events: none;
    z-index: 0;
}

.btn-ghost .cp-ripple,
.chip .cp-ripple {
    background: color-mix(in srgb, var(--brand) 24%, transparent);
}

@keyframes rippleOut {
    to {
        transform: scale(2.6);
        opacity: 0;
    }
}

/* Toast notifications */
.cp-toasts {
    position: fixed;
    left: 50%;
    bottom: 28px;
    translate: -50% 0;
    z-index: 3200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: min(420px, calc(100vw - 32px));
}

.cp-toast {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 18px;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--ink);
    pointer-events: auto;
    animation: toastIn .5s var(--ease-spring) forwards;
}

.cp-toast.out {
    animation: toastOut .35s var(--ease-in-out) forwards;
}

.cp-toast .material-symbols-rounded {
    font-size: 20px;
    flex-shrink: 0;
}

.cp-toast.ok .material-symbols-rounded { color: var(--ok); }
.cp-toast.err .material-symbols-rounded { color: var(--danger); }
.cp-toast.info .material-symbols-rounded { color: var(--brand); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(18px) scale(.96); }
    to { opacity: 1; transform: none; }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateY(10px) scale(.97); }
}

/* Skeleton shimmer for async content */
.cp-skeleton {
    position: relative;
    overflow: hidden;
    background: var(--surface-inset);
    border-radius: var(--r-sm);
    color: transparent !important;
}

.cp-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 80%, transparent), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    to {
        transform: translateX(100%);
    }
}

/* Focus ring polish on interactive surfaces */
.card:focus-within,
.blog-card:focus-visible,
.portal-card:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* ==========================================================================
   13. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

    .cp-reveal,
    .cp-reveal.cp-left,
    .cp-reveal.cp-right,
    .cp-reveal.cp-zoom,
    .cp-reveal.cp-flip,
    .cp-reveal.cp-blur,
    .cp-reveal.cp-rise-lg,
    .cp-enter,
    .cp-word {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
        animation: none !important;
    }

    .cp-line>span {
        transform: none !important;
        transition: none !important;
    }

    .cp-wipe,
    .cp-img-mask::after {
        clip-path: none !important;
        transform: scaleX(0) !important;
        transition: none !important;
    }

    .cp-img-mask img {
        transform: none !important;
    }

    .cp-tilt,
    .cp-tilt.cp-tilting,
    .cp-tilt-inner,
    .cp-magnet,
    .cp-parallax {
        transform: none !important;
        transition: none !important;
    }

    .cp-cursor {
        display: none !important;
    }

    body.cp-cursor-on,
    body.cp-cursor-on a,
    body.cp-cursor-on button {
        cursor: auto;
    }

    .cp-draw-line::after {
        transform: scaleX(1) !important;
    }

    .cp-loader {
        display: none !important;
    }
}

/* Touch devices: no cursor, no tilt */
@media (hover: none) {
    .cp-cursor {
        display: none !important;
    }

    body.cp-cursor-on,
    body.cp-cursor-on a,
    body.cp-cursor-on button {
        cursor: auto;
    }
}
