/* ================================================================
   rConnect — hero-slider.css
   Home hero carousel · "Glowing Orange Network Globe"
   Slides are stacked and cross-faded (no track translation) so each
   slide can have its own composition. Works with any slide count.
   Driven by scripts/hero-slider.js
   ================================================================ */

.hs-root {
    --hs-dur: 7000ms;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: #050b1e;
    background-image: radial-gradient(120% 90% at 85% 15%, #13306e 0%, #0b1b3f 40%, #050b1e 100%);
    min-height: clamp(620px, 92vh, 860px);
    display: flex;
    flex-direction: column;
}

    /* star-field / network dots texture */
    .hs-root::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background-image: radial-gradient(rgba(255,181,71,.35) 1px, transparent 1.4px), radial-gradient(rgba(143,176,255,.25) 1px, transparent 1.4px);
        background-size: 46px 46px, 73px 73px;
        background-position: 0 0, 23px 31px;
        -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
        mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
        opacity: .6;
    }

    /* bottom fade into page */
    .hs-root::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 120px;
        background: linear-gradient(180deg, rgba(5,11,30,0) 0%, rgba(5,11,30,.85) 100%);
        pointer-events: none;
        z-index: 1;
    }

.hs-stage {
    position: relative;
    flex: 1;
    display: grid;
}

/* ── Slide ─────────────────────────────────────────────────────── */
.hs-slide {
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s var(--rc-ease-out), visibility 0s linear .9s;
}

    .hs-slide.hs-active {
        opacity: 1;
        visibility: visible;
        transition: opacity .9s var(--rc-ease-out), visibility 0s;
        z-index: 1;
    }

.hs-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--rc-content-w);
    margin: 0 auto;
    padding: 4.5rem var(--rc-pad) 8rem;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3rem;
    align-items: center;
}

.hs-content-split {
    grid-template-columns: 1fr 1fr;
}

.hs-content-reverse > .hs-photo {
    order: 0;
}

.hs-copy {
    max-width: 620px;
}

.hs-copy-wide {
    max-width: 700px;
}

/* Staggered entrance for copy elements on the active slide */
.hs-copy > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--rc-ease-out), transform .7s var(--rc-ease-out);
}

.hs-active .hs-copy > * {
    opacity: 1;
    transform: none;
}

    .hs-active .hs-copy > *:nth-child(1) { transition-delay: .15s; }
    .hs-active .hs-copy > *:nth-child(2) { transition-delay: .25s; }
    .hs-active .hs-copy > *:nth-child(3) { transition-delay: .35s; }
    .hs-active .hs-copy > *:nth-child(4) { transition-delay: .45s; }
    .hs-active .hs-copy > *:nth-child(5) { transition-delay: .55s; }

/* ── Typography ────────────────────────────────────────────────── */
.hs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--rc-font-h);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--rc-accent);
    margin-bottom: 1.25rem;
}

    .hs-eyebrow .fa {
        color: var(--rc-primary);
    }

.hs-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rc-primary);
    box-shadow: 0 0 0 0 rgba(244,123,32,.7);
    animation: hs-ping 2.2s infinite;
}

.hs-h1 {
    font-family: var(--rc-font-h);
    font-weight: 700;
    font-size: clamp(2.3rem, 5.4vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -.035em;
    color: #fff;
    margin-bottom: 1.25rem;
}

.hs-hl {
    background: linear-gradient(100deg, #ffc066 0%, #ff8a2e 45%, #f47b20 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hs-h1-stack {
    font-size: clamp(2.1rem, 4.6vw, 3.8rem);
}

    .hs-h1-stack .hs-line {
        display: block;
    }

.hs-line-blue {
    color: #7fa3ff;
    -webkit-text-fill-color: #7fa3ff;
}

.hs-lead {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.7;
    color: rgba(231,236,248,.78);
    max-width: 560px;
    margin-bottom: 1.6rem;
}

    .hs-lead strong {
        color: #fff;
        font-weight: 600;
    }

/* Pills (Connect · Collaborate · Create · Grow) */
.hs-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 0 0 2rem;
    padding: 0;
}

    .hs-pills li {
        font-family: var(--rc-font-h);
        font-size: .8rem;
        font-weight: 500;
        padding: .45rem 1.05rem;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,.22);
        background: rgba(255,255,255,.06);
        color: #fff;
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

        .hs-pills li.hs-pill-hot {
            background: var(--rc-grad-ember);
            border-color: transparent;
            box-shadow: 0 0 18px rgba(244,123,32,.55);
        }

.hs-checks {
    list-style: none;
    margin: 0 0 1.8rem;
    padding: 0;
    display: grid;
    gap: .55rem;
}

    .hs-checks li {
        display: flex;
        align-items: center;
        gap: .65rem;
        color: rgba(231,236,248,.9);
    }

        .hs-checks li .fa {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: .7rem;
            background: rgba(244,123,32,.18);
            color: var(--rc-accent);
        }

/* ── CTAs ──────────────────────────────────────────────────────── */
.hs-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.hs-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .95rem 1.6rem;
    border-radius: 999px;
    font-family: var(--rc-font-h);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .25s var(--rc-ease-out), box-shadow .25s, background .25s, color .25s, border-color .25s;
    will-change: transform;
}

    .hs-btn:hover {
        transform: translateY(-2px);
    }

.hs-btn-primary {
    background: var(--rc-grad-ember);
    color: #fff;
    box-shadow: 0 10px 30px rgba(244,123,32,.45), inset 0 1px 0 rgba(255,255,255,.25);
}

    .hs-btn-primary:hover {
        color: #fff;
        box-shadow: 0 14px 40px rgba(244,123,32,.6), inset 0 1px 0 rgba(255,255,255,.25);
    }

.hs-btn-ghost {
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.04);
}

    .hs-btn-ghost:hover {
        color: var(--rc-navy);
        background: #fff;
        border-color: #fff;
    }

/* ── Slide 1: glowing globe ────────────────────────────────────── */
.hs-net {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 74% 48%, rgba(244,123,32,.38) 0%, rgba(244,123,32,0) 34%);
    pointer-events: none;
}

.hs-vis-globe {
    position: relative;
    aspect-ratio: 1 / 1;
    width: min(100%, 560px);
    justify-self: center;
    display: grid;
    place-items: center;
}

.hs-globe {
    position: relative;
    z-index: 1;
    width: 86%;
    height: auto;
    filter: drop-shadow(0 0 60px rgba(244,123,32,.55));
    animation: hs-float 9s ease-in-out infinite;
}

.hs-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,181,71,.25);
    pointer-events: none;
}

.hs-orbit-1 {
    inset: 2%;
    border-style: dashed;
    animation: hs-spin 60s linear infinite;
}

.hs-orbit-2 {
    inset: -7%;
    border-color: rgba(127,163,255,.18);
    animation: hs-spin 90s linear infinite reverse;
}

    .hs-orbit-1::after,
    .hs-orbit-2::after {
        content: '';
        position: absolute;
        top: 50%;
        left: -5px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ffc066;
        box-shadow: 0 0 14px 4px rgba(255,181,71,.8);
    }

    .hs-orbit-2::after {
        left: auto;
        right: 12%;
        top: 8%;
        background: #8fb0ff;
        box-shadow: 0 0 14px 4px rgba(91,140,255,.7);
    }

.hs-float {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .95rem;
    border-radius: 14px;
    font-family: var(--rc-font-h);
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    background: rgba(11,27,63,.72);
    border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    animation: hs-float 7s ease-in-out infinite;
}

    .hs-float .fa {
        color: var(--rc-accent);
    }

.hs-float-a { top: 12%; left: -4%; animation-delay: -1s; }
.hs-float-b { bottom: 18%; left: -8%; animation-delay: -3s; }
.hs-float-c { top: 30%; right: -6%; animation-delay: -5s; }

/* ── Slide 2: puzzle image + quote ─────────────────────────────── */
.hs-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% center;
    opacity: .55;
    transform: scale(1.08);
    transition: transform 9s linear;
}

.hs-active .hs-bg-img {
    transform: scale(1);
}

.hs-slide-puzzle::before,
.hs-slide-orbit::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(5,11,30,.97) 0%, rgba(5,11,30,.86) 42%, rgba(5,11,30,.3) 100%);
}

.hs-quote {
    position: relative;
    margin: 0;
    padding: 2.2rem 2.2rem 1.8rem;
    border-radius: 24px;
    background: rgba(11,27,63,.6);
    border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .8s .35s var(--rc-ease-out), transform .8s .35s var(--rc-ease-out);
}

.hs-active .hs-quote {
    opacity: 1;
    transform: none;
}

.hs-quote-mark {
    font-size: 2rem;
    color: var(--rc-primary);
    margin-bottom: .6rem;
}

.hs-quote p {
    font-family: var(--rc-font-h);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 1.4rem;
}

.hs-quote footer {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.12);
}

    .hs-quote footer span {
        font-size: .68rem;
        letter-spacing: .26em;
        text-transform: uppercase;
        color: rgba(231,236,248,.55);
    }

    .hs-quote footer strong {
        font-family: var(--rc-font-h);
        font-size: 1.3rem;
        color: var(--rc-primary-lt);
    }

/* ── Slide 3: orbit photo on the right ─────────────────────────── */
.hs-bg-right {
    left: auto;
    width: 55%;
    object-position: center;
    opacity: .8;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}

.hs-slide-orbit::before {
    background: linear-gradient(90deg, rgba(5,11,30,.95) 0%, rgba(5,11,30,.75) 50%, rgba(5,11,30,0) 100%);
}

/* ── Slide 4: framed photo ─────────────────────────────────────── */
.hs-photo {
    position: relative;
    margin: 0;
    border-radius: 28px;
    overflow: visible;
    opacity: 0;
    transform: scale(.94);
    transition: opacity .8s .2s var(--rc-ease-out), transform .8s .2s var(--rc-ease-out);
}

.hs-active .hs-photo {
    opacity: 1;
    transform: none;
}

.hs-photo img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.hs-photo::before {
    content: '';
    position: absolute;
    inset: -14px 14px 14px -14px;
    border-radius: 32px;
    border: 1px solid rgba(244,123,32,.55);
    z-index: -1;
}

.hs-photo-badge {
    position: absolute;
    right: -18px;
    bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .9rem 1.2rem;
    border-radius: 16px;
    background: var(--rc-grad-ember);
    color: #fff;
    font-size: .75rem;
    box-shadow: 0 14px 40px rgba(244,123,32,.5);
}

    .hs-photo-badge strong {
        font-family: var(--rc-font-h);
        font-size: 1.25rem;
    }

/* ── Controls ──────────────────────────────────────────────────── */
.hs-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.6rem;
    z-index: 5;
    max-width: var(--rc-content-w);
    margin: 0 auto;
    padding: 0 var(--rc-pad);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.hs-tabs {
    display: flex;
    gap: .4rem;
    flex: 1;
    max-width: 720px;
}

.hs-tab {
    position: relative;
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: .55rem;
    padding: .9rem 0 .7rem;
    background: none;
    border: 0;
    cursor: pointer;
    color: rgba(231,236,248,.5);
    font-family: var(--rc-font-h);
    text-align: left;
    transition: color .25s;
}

    .hs-tab::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 2px;
        background: rgba(255,255,255,.16);
        border-radius: 2px;
    }

    .hs-tab:hover,
    .hs-tab-active {
        color: #fff;
    }

.hs-tab-num {
    font-size: .7rem;
    font-weight: 600;
    color: var(--rc-accent);
}

.hs-tab-lbl {
    font-size: .82rem;
    font-weight: 500;
}

.hs-tab-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--rc-grad-ember);
    box-shadow: 0 0 10px rgba(244,123,32,.8);
    transform: scaleX(0);
    transform-origin: left;
}

.hs-tab-active .hs-tab-progress {
    animation: hs-progress var(--hs-dur) linear forwards;
}

.hs-root.hs-paused .hs-tab-active .hs-tab-progress,
.hs-root.hs-hold .hs-tab-active .hs-tab-progress {
    animation-play-state: paused;
}

.hs-root.hs-static .hs-tab-active .hs-tab-progress {
    animation: none;
    transform: scaleX(1);
}

.hs-arrows {
    display: flex;
    gap: .5rem;
}

.hs-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.05);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, border-color .25s, transform .25s;
}

    .hs-arrow:hover {
        background: var(--rc-primary);
        border-color: var(--rc-primary);
        transform: translateY(-2px);
    }

/* ── Keyframes ─────────────────────────────────────────────────── */
@keyframes hs-progress {
    to { transform: scaleX(1); }
}

@keyframes hs-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes hs-spin {
    to { transform: rotate(360deg); }
}

@keyframes hs-ping {
    0% { box-shadow: 0 0 0 0 rgba(244,123,32,.7); }
    80%, 100% { box-shadow: 0 0 0 12px rgba(244,123,32,0); }
}

/* ── Light theme: hero stays a dark brand stage, just softer edge ─ */
:root:not([data-theme="dark"]) .hs-root::after {
    background: linear-gradient(180deg, rgba(5,11,30,0) 0%, rgba(5,11,30,.6) 100%);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .hs-float-b { left: 0; }
    .hs-float-c { right: 0; }
}

@media (max-width: 900px) {
    .hs-root {
        min-height: 0;
    }

    .hs-content,
    .hs-content-split {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem var(--rc-pad) 7.5rem;
        text-align: left;
    }

    .hs-vis-globe {
        width: min(78vw, 380px);
        order: -1;
    }

    .hs-content-reverse > .hs-photo {
        order: 1;
    }

    .hs-photo img {
        max-height: 300px;
    }

    .hs-photo-badge {
        right: 12px;
        bottom: -18px;
    }

    .hs-quote {
        padding: 1.6rem;
    }

    .hs-bg-right {
        width: 100%;
        opacity: .35;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hs-tab-lbl {
        display: none;
    }

    .hs-tab {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hs-float {
        font-size: .68rem;
        padding: .4rem .7rem;
    }

    .hs-float-a { left: -2%; top: 4%; }

    .hs-btn {
        width: 100%;
        justify-content: center;
    }

    .hs-arrow {
        width: 40px;
        height: 40px;
    }

    .hs-controls {
        bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hs-globe,
    .hs-float,
    .hs-orbit,
    .hs-eyebrow-dot {
        animation: none;
    }

    .hs-bg-img {
        transform: none;
        transition: none;
    }
}
