/* ===== Comply4HR Hero Animation Component ===== */
.heroBanner .sliderPnl .item {
    align-items: stretch;
}

.heroBanner .sliderPnl .item .imgPnl {
    display: flex;
    flex-direction: column;
    min-height: 640px;
}

.c4hr-anim {
    container-type: inline-size;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    background: #23226a;
    color: #fff;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Neutralize global landing.css * { color: #000; line-height: 1.5em; text-align: left; } */
.c4hr-anim,
.c4hr-anim * {
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    line-height: normal;
}

.c4hr-sky,
.c4hr-stars,
.c4hr-fo {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.c4hr-sky {
    background: radial-gradient(circle at 93% 80%, rgba(255, 226, 140, .55), transparent 30%), radial-gradient(circle at 90% 96%, rgba(255, 176, 103, .95), transparent 62%);
    opacity: 0;
    will-change: opacity;
}

.c4hr-stars {
    background-image: radial-gradient(circle, #fff 0 1.2px, transparent 1.6px);
    background-size: 61px 47px;
    opacity: .5;
    will-change: opacity;
}

.c4hr-fo {
    background: #23226a;
    opacity: 0;
    z-index: 5;
}

.c4hr-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    margin: 0;
    padding: 0;
}

/* story-style progress bar + controls */
.c4hr-top {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 2cqw;
    padding: 1.2cqw 6cqw 0;
    height: 5.6cqw;
    min-height: 36px;
}

.c4hr-segs {
    flex: 1;
    display: flex;
    gap: .8cqw;
}

.c4hr-seg {
    position: relative;
    height: 3cqw;
    min-height: 14px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.c4hr-seg::before,
.c4hr-seg i {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: max(.9cqw, 4px);
    margin-top: calc(max(.9cqw, 4px) / -2);
    border-radius: 1cqw;
}

.c4hr-seg::before {
    background: rgba(255, 255, 255, .25);
}

.c4hr-seg i {
    background: #f58a33;
    transform-origin: left;
    transform: scaleX(0);
}

.c4hr-ctl {
    display: flex;
    gap: 1cqw;
}

.c4hr-ctl button {
    width: 5.2cqw;
    height: 5.2cqw;
    min-width: 28px;
    min-height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border: .3cqw solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.c4hr-ctl button:hover {
    background: rgba(255, 255, 255, .25);
    border-color: #fff;
}

.c4hr-ctl svg {
    width: 58%;
    height: 58%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.c4hr-ctl .pl {
    display: none;
}

.c4hr-anim.is-paused .c4hr-ctl .pl {
    display: block;
}

.c4hr-anim.is-paused .c4hr-ctl .pa {
    display: none;
}

.c4hr-anim button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* stage: one page per beat. Everything shares the same left/right edges (6cqw) */
.c4hr-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 350px;
    overflow: hidden;
}

.c4hr-scene {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1.4cqw;
    padding: 0.8cqw 6cqw 1.2cqw;
}

.c4hr-scene.on {
    display: flex;
}

.c4hr-rib {
    display: flex;
    align-items: center;
    gap: 1.6cqw;
    align-self: flex-start;
    max-width: 100%;
    padding: 0.8cqw 3cqw 0.8cqw 1.2cqw;
    background: #f58a33;
    color: #1c1b4d !important;
    font-weight: 800;
    font-size: max(13.5px, 3.4cqw);
    line-height: 1.15 !important;
    border-radius: 5cqw;
    box-shadow: 0 .6cqw 0 rgba(0, 0, 0, .25);
    transform-origin: left;
    animation: c4hr-rib .55s cubic-bezier(.2, 1.3, .4, 1) both;
}

.c4hr-rib em {
    flex: none;
    width: max(24px, 5.8cqw);
    height: max(24px, 5.8cqw);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
}

.c4hr-rib svg {
    width: 62%;
    height: 62%;
    fill: none;
    stroke: #1c1b4d;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* intro page */
.c4hr-ttl {
    align-self: center;
    max-width: 92cqw;
    text-align: center !important;
    text-wrap: balance;
    font-weight: 800;
    font-size: max(20px, 5.2cqw);
    line-height: 1.2 !important;
    color: #ffffff !important;
    margin: 0 auto;
}

.c4hr-ttl .tw {
    display: inline-block;
    color: #ffffff !important;
    font-weight: 700;
    font-size: max(17px, 4.4cqw);
    line-height: 1.25 !important;
    text-align: center !important;
    letter-spacing: -0.01em;
    animation: c4hr-tw .5s calc(var(--i) * .08s) cubic-bezier(.3, 1.5, .5, 1) both;
}

.c4hr-ttl .n {
    display: block;
    color: #f58a33 !important;
    font-size: max(56px, 14cqw);
    line-height: .95 !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.6cqw;
    text-shadow: 0 4px 20px rgba(245, 138, 51, 0.4);
}

.c4hr-stats {
    display: flex;
    gap: 2cqw;
    width: 100%;
    max-width: 90cqw;
    align-self: center;
    margin-top: 1cqw;
}

.c4hr-st {
    flex: 1;
    padding: 1.6cqw 1cqw;
    background: #ffffff;
    color: #27266e !important;
    border-radius: 2cqw;
    text-align: center !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    animation: c4hr-rise .5s calc(0.9s + var(--i) * .12s) cubic-bezier(.2, 1.2, .4, 1) both;
}

.c4hr-st b,
.c4hr-st .c4hr-cnt {
    display: block;
    font-size: max(26px, 7.5cqw) !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    color: #f58a33 !important;
    text-align: center !important;
}

.c4hr-st small {
    display: block;
    margin-top: .6cqw;
    font-size: max(11px, 2.4cqw) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #27266e !important;
    text-align: center !important;
}

/* action pages: icon medal + short label + number chips, on white cards */
.c4hr-list {
    display: flex;
    flex-direction: column;
    gap: 1cqw;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c4hr-li {
    display: flex;
    align-items: center;
    gap: 1.8cqw;
    padding: 0.85cqw 2cqw 0.85cqw 1cqw;
    background: #fff;
    color: #1c1b4d !important;
    border-radius: 5cqw;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    animation: c4hr-rise .5s calc(.1s + var(--r) * .16s) cubic-bezier(.2, 1.2, .4, 1) both;
}

.c4hr-md {
    flex: none;
    width: max(30px, 7.5cqw);
    height: max(30px, 7.5cqw);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #5b5ac0, #34338f);
    border: max(2px, .5cqw) solid #f58a33;
    animation: c4hr-pop .6s calc(.1s + var(--r) * .16s) cubic-bezier(.3, 1.6, .5, 1) both;
}

.c4hr-md svg {
    width: 58%;
    height: 58%;
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.c4hr-tx {
    flex: 1;
    min-width: 0;
}

.c4hr-t {
    font-size: max(13px, 3.2cqw);
    line-height: 1.15 !important;
    font-weight: 800;
    color: #1c1b4d !important;
}

.c4hr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6cqw;
    margin-top: .4cqw;
}

.c4hr-chip {
    display: inline-flex;
    align-items: baseline;
    gap: .5cqw;
    padding: .25cqw 1.1cqw;
    border-radius: 4cqw;
    background: #ffe9d6;
    color: #4b4aa8 !important;
    font-size: max(10.5px, 2.2cqw);
    font-weight: 700;
    line-height: 1.2 !important;
    animation: c4hr-drop .5s calc(.5s + var(--r) * .16s + var(--c) * .1s) cubic-bezier(.3, 1.6, .5, 1) both;
}

.c4hr-chip span {
    color: #4b4aa8 !important;
}

.c4hr-chip b {
    font-size: max(12px, 2.8cqw);
    font-weight: 800;
    color: #a8470a !important;
    line-height: 1.15 !important;
}

.c4hr-chip.u {
    background: #d93f2b;
    color: #fff !important;
}

.c4hr-chip.u span,
.c4hr-chip.u b {
    color: #fff !important;
}

.c4hr-list.big {
    gap: 1.4cqw;
}

.c4hr-list.big .c4hr-li {
    padding: 1cqw 2.2cqw 1cqw 1.1cqw;
}

.c4hr-list.big .c4hr-md {
    width: max(36px, 9cqw);
    height: max(36px, 9cqw);
}

.c4hr-list.big .c4hr-t {
    font-size: max(14px, 3.5cqw);
}

.c4hr-list.big .c4hr-chip {
    font-size: max(11px, 2.4cqw);
    padding: .3cqw 1.2cqw;
}

.c4hr-list.big .c4hr-chip b {
    font-size: max(13px, 3.1cqw);
}

/* the hero speaks: words darken one by one */
.c4hr-say {
    position: relative;
    z-index: 2;
    margin: 0.6cqw 6cqw 0.6cqw;
    padding: 1.2cqw 3cqw;
    min-height: max(46px, 10cqw);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #27266e !important;
    border-radius: 2.6cqw;
    font-size: max(12px, 2.7cqw);
    line-height: 1.35 !important;
    font-weight: 600;
    text-align: center !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.c4hr-say::after {
    content: "";
    position: absolute;
    bottom: -1.8cqw;
    left: var(--tx, 10%);
    margin-left: -1.6cqw;
    border: 1.6cqw solid transparent;
    border-top: 2cqw solid #fff;
    border-bottom: 0;
}

.c4hr-sp {
    display: block;
    max-width: 100%;
    text-align: center !important;
}

.c4hr-w {
    animation: c4hr-w .01s calc(.5s + var(--i) * var(--g, .26s)) both;
}

/* trail */
.c4hr-trail {
    display: block;
    flex: none;
    width: 100%;
    height: auto;
    margin-top: -4cqw;
}

.c4hr-bd {
    fill: #e6e8fb;
}

.c4hr-ic {
    stroke: #8d90d6;
}

.c4hr-stop.done .c4hr-bd {
    fill: #38c172;
}

.c4hr-stop.done .c4hr-ic {
    stroke: #fff;
}

.c4hr-stop.done .c4hr-badge {
    animation: c4hr-blip .5s;
}

.flash .c4hr-badge {
    animation: c4hr-blip .6s calc(var(--i) * .15s) both;
}

.c4hr-badge,
.c4hr-fl,
.c4hr-sm,
.c4hr-cape {
    transform-box: fill-box;
    transform-origin: center;
}

.c4hr-cape {
    transform-origin: 100% 0;
    animation: c4hr-flap .35s ease-in-out infinite alternate;
}

.c4hr-fac .c4hr-w2 {
    fill: #4b4aa8;
}

.c4hr-fac .c4hr-fl {
    fill: #6a6db8;
}

.c4hr-fac .c4hr-sm {
    opacity: 0;
}

.c4hr-fac.lit .c4hr-w2 {
    fill: #ffc83d;
}

.c4hr-fac.lit .c4hr-fl {
    fill: #38c172;
    animation: c4hr-wave .6s ease-in-out infinite alternate;
}

.c4hr-fac.lit .c4hr-sm {
    animation: c4hr-smoke 3.5s ease-out infinite;
}

.c4hr-rays {
    transform-box: view-box;
    transform-origin: 745px 64px;
}

.c4hr-halo {
    transform-box: fill-box;
    transform-origin: center;
}

.c4hr-sun.on .c4hr-rays {
    animation: c4hr-spin 16s linear infinite;
}

.c4hr-sun.on .c4hr-halo {
    animation: c4hr-pulse 2.2s ease-in-out infinite alternate;
}

.c4hr-anim.is-held * {
    animation-play-state: paused !important;
}

@keyframes c4hr-rib {
    from {
        opacity: 0;
        transform: translateY(-6cqw) scaleX(.6);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes c4hr-rise {
    from {
        opacity: 0;
        transform: translateY(4cqw);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes c4hr-pop {
    from {
        opacity: 0;
        transform: scale(0) rotate(-90deg);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes c4hr-drop {
    from {
        opacity: 0;
        transform: translateY(-6cqw) scale(.6);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes c4hr-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes c4hr-pulse {
    from {
        transform: scale(.9);
        opacity: .8;
    }
    to {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes c4hr-tw {
    from {
        opacity: 0;
        transform: translateY(5cqw) rotate(4deg);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes c4hr-w {
    from {
        color: #6f6ea8;
    }
    to {
        color: #27266e;
    }
}

@keyframes c4hr-blip {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.45);
    }
}

@keyframes c4hr-flap {
    from {
        transform: rotate(-7deg);
    }
    to {
        transform: rotate(9deg);
    }
}

@keyframes c4hr-wave {
    from {
        transform: scaleX(.8) skewY(-6deg);
    }
    to {
        transform: scaleX(1) skewY(6deg);
    }
}

@keyframes c4hr-smoke {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(.6);
    }
    20% {
        opacity: .55;
    }
    100% {
        opacity: 0;
        transform: translate(14px, -60px) scale(2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .c4hr-anim * {
        animation: none !important;
    }
}

@media (max-width: 900px) {
    .heroBanner .sliderPnl .item .imgPnl,
    .c4hr-anim {
        min-height: 560px;
    }

    .c4hr-stage {
        min-height: 310px;
    }
}

@media (max-width: 600px) {
    .heroBanner .sliderPnl .item .imgPnl,
    .c4hr-anim {
        min-height: 520px;
    }

    .c4hr-stage {
        min-height: 290px;
    }

    .c4hr-top {
        padding: 1.5cqw 4cqw 0;
    }

    .c4hr-scene {
        padding: 0.8cqw 4cqw 1cqw;
    }

    .c4hr-ttl .n {
        font-size: max(42px, 13cqw);
    }

    .c4hr-ttl .tw {
        font-size: max(15px, 4cqw);
    }

    .c4hr-stats {
        max-width: 96cqw;
        gap: 1.5cqw;
    }

    .c4hr-st {
        padding: 1.6cqw 0.6cqw;
        min-width: 0;
    }

    .c4hr-st b,
    .c4hr-st .c4hr-cnt {
        font-size: max(22px, 7cqw) !important;
    }

    .c4hr-st small {
        font-size: max(10px, 2.3cqw) !important;
    }

    .c4hr-say {
        margin: 0.6cqw 4cqw 0.6cqw;
        padding: 1cqw 2.5cqw;
        font-size: max(11px, 2.5cqw);
    }
}
