@import url('/css/enterprise-premium.css');
@import url('/css/enterprise-editorial.css');
@import url('/css/enterprise-site-pass.css');
@import url('/css/enterprise-site-final.css');
@import url('/css/enterprise-responsive.css');
@import url('/css/enterprise-home-mobile.css');

/* HumanoSys public-site performance safeguards.
   Content remains readable even if JavaScript, fonts or animation observers are late. */

[data-reveal],
[data-reveal].is-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Stable header contrast: public pages may begin on light or dark editorial surfaces. */
.hs-header {
    background: rgba(18,29,33,.94);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
}
.hs-header.is-scrolled {
    background: rgba(12,19,23,.96);
    border-bottom-color: rgba(255,255,255,.1);
}

.hs-progress {
    opacity: .85;
    transition: width .18s ease, opacity .2s ease;
}

.hs-progress.is-route-loading {
    width: 72% !important;
    opacity: 1;
}

/* Give users visible feedback while a normal MVC navigation is waiting on the server. */
body::after {
    content: attr(data-route-label);
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 5000;
    min-width: 190px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 13px 16px 13px 38px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(10,12,16,.94);
    color: #f3f0e8;
    box-shadow: 0 20px 60px rgba(0,0,0,.32);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

body::before {
    content: "";
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 5001;
    width: 3px;
    height: 0;
    background: #f4c62f;
    box-shadow: 0 0 16px rgba(244,198,47,.45);
    pointer-events: none;
    transition: height .35s cubic-bezier(.2,.8,.2,1);
}

body.hs-route-leaving::after {
    opacity: 1;
    transform: translateY(0);
}

body.hs-route-leaving::before {
    height: 44px;
}

.hs-page-visual__frame,
.hs-command-media,
.hs-detail-image,
.hs-resource-card__media,
.hs-module-entry__media {
    background: #11151b;
}

.hs-demo-form select,
.hs-form select,
.hs-career-filter select {
    color-scheme: dark;
}

@media (max-width: 900px) {
    .hs-ambient,
    .hs-page-visual__glow,
    .hs-command-stage__wash,
    .hs-constellation-glow {
        filter: none !important;
    }

    body::after { right: 16px; bottom: 16px; }
    body::before { right: 16px; bottom: 16px; }
}

/* Homepage mobile reflow: remove desktop absolute-positioning and scale tricks. */
@media (max-width: 760px) {
    .hs-studio-home .hs-stack-section,
    .hs-studio-home .hs-flow-section,
    .hs-studio-home .hs-scope-section {
        padding: 58px 0 !important;
    }

    .hs-studio-home .hs-stack-grid,
    .hs-studio-home .hs-scope-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        align-items: stretch !important;
    }

    .hs-studio-home .hs-stack-copy h2,
    .hs-studio-home .hs-flow-head h2,
    .hs-studio-home .hs-scope-copy h2 {
        font-size: clamp(2.15rem, 10vw, 3rem) !important;
        line-height: 1 !important;
    }

    .hs-studio-home .hs-stack-tabs {
        margin-top: 24px !important;
    }

    .hs-studio-home .hs-stack-tab {
        min-height: 50px !important;
    }

    .hs-studio-home .hs-stack-stage {
        min-height: 0 !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 20px !important;
        margin: 0 !important;
        padding: 8px 0 0 !important;
        transform: none !important;
        overflow: visible !important;
    }

    .hs-studio-home .hs-stack-shadow {
        display: none !important;
    }

    .hs-studio-home .hs-stack-tower {
        position: relative !important;
        width: min(100%, 320px) !important;
        height: 365px !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    .hs-studio-home .hs-stack-layer {
        left: 50% !important;
        width: min(calc(100% - 26px), 286px) !important;
        height: 72px !important;
        padding: 12px 14px 10px !important;
        transform: translateX(-50%) translateY(calc(var(--n) * 68px)) skewY(-4deg) !important;
    }

    .hs-studio-home .hs-stack-layer::before {
        width: 18px !important;
        left: -18px !important;
    }

    .hs-studio-home .hs-stack-layer.is-active {
        transform: translateX(-50%) translateY(calc(var(--n) * 68px - 4px)) skewY(-4deg) scale(1.015) !important;
    }

    .hs-studio-home .hs-stack-layer__name,
    .hs-studio-home .hs-stack-layer__detail {
        transform: skewY(4deg) !important;
    }

    .hs-studio-home .hs-stack-layer__detail {
        margin-top: 5px !important;
        white-space: normal !important;
        font-size: .5rem !important;
    }

    .hs-studio-home .hs-stack-panel {
        position: static !important;
        inset: auto !important;
        width: min(100%, 320px) !important;
        margin: 0 auto !important;
        padding: 16px 17px !important;
        transform: none !important;
    }

    .hs-studio-home .hs-flow-head {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 24px !important;
    }

    .hs-studio-home .hs-flow-workbench {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
    }

    .hs-studio-home .hs-flow-stage-card,
    .hs-studio-home .hs-flow-stage-card img {
        min-height: 320px !important;
    }

    .hs-studio-home .hs-flow-steps {
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
    }

    .hs-studio-home .hs-flow-step {
        min-height: 72px !important;
        grid-template-columns: 34px 1fr !important;
        padding: 13px 16px !important;
        text-align: left !important;
        transform: none !important;
    }

    .hs-studio-home .hs-flow-step::before,
    .hs-studio-home .hs-flow-steps::before {
        display: none !important;
    }

    .hs-studio-home .hs-flow-step span {
        padding: 0 !important;
    }

    .hs-studio-home .hs-scope-orbit {
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    .hs-studio-home .hs-scope-orbit__disc,
    .hs-studio-home .hs-scope-orbit::after {
        display: none !important;
    }

    .hs-studio-home .hs-scope-core,
    .hs-studio-home .hs-scope-card,
    .hs-studio-home .hs-scope-card:hover,
    .hs-studio-home .hs-scope-card.is-active {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        transform: none !important;
    }

    .hs-studio-home .hs-scope-core {
        order: -1 !important;
        text-align: left !important;
        padding: 18px !important;
    }
}

@media (max-width: 480px) {
    .hs-studio-home .hs-stack-section,
    .hs-studio-home .hs-flow-section,
    .hs-studio-home .hs-scope-section {
        padding: 48px 0 !important;
    }

    .hs-studio-home .hs-stack-tower {
        width: min(100%, 292px) !important;
        height: 342px !important;
    }

    .hs-studio-home .hs-stack-layer {
        width: min(calc(100% - 20px), 260px) !important;
        height: 68px !important;
        transform: translateX(-50%) translateY(calc(var(--n) * 64px)) skewY(-3deg) !important;
    }

    .hs-studio-home .hs-stack-layer.is-active {
        transform: translateX(-50%) translateY(calc(var(--n) * 64px - 3px)) skewY(-3deg) scale(1.01) !important;
    }

    .hs-studio-home .hs-stack-panel {
        width: 100% !important;
    }

    .hs-studio-home .hs-flow-stage-copy {
        left: 18px !important;
        right: 18px !important;
        bottom: 18px !important;
    }

    .hs-studio-home .hs-flow-stage-copy h3 {
        font-size: 1.55rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hs-progress,
    body::after,
    body::before { transition: none; }
}
