/* =========================================================
   RASA INVESTMENT ALI STORY V1.2
   Compact cinematic investee story
   ========================================================= */

.riv32-case,
.riv32-case * {
    box-sizing: border-box;
}

.riv32-case {
    position: relative;
    overflow: hidden;

    margin-top: 54px;
    padding: clamp(20px,3vw,32px);

    border: 1px solid rgba(7,88,97,.10);
    border-radius: 28px;

    background:
        radial-gradient(circle at 94% 3%, rgba(17,191,190,.13), transparent 23%),
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,249,247,.95));

    box-shadow:
        0 22px 58px rgba(5,54,62,.065);
}

.riv32-case__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.riv32-case__head > div:first-child {
    max-width: 790px;
}

.riv32-case__head h2 {
    margin: 6px 0 0;

    color: #073b4c;
    font-size: clamp(22px,2.8vw,34px);
    font-weight: 950;
    line-height: 1.58;
}

.riv32-case__head p {
    margin: 8px 0 0;

    color: #6f898f;
    font-size: 10.5px;
    line-height: 2.05;
}

.riv32-case__badge {
    flex: 0 0 auto;

    min-width: 138px;
    padding: 12px 15px;

    border: 1px solid rgba(11,150,153,.10);
    border-radius: 17px;

    background: rgba(255,255,255,.78);
}

.riv32-case__badge span,
.riv32-case__badge strong {
    display: block;
}

.riv32-case__badge span {
    color: #7e9699;
    font-size: 8px;
}

.riv32-case__badge strong {
    margin-top: 2px;
    color: #0a858a;
    font-size: 13px;
    font-weight: 950;
}

.riv32-case__body {
    display: grid;
    grid-template-columns: minmax(0,.92fr) minmax(410px,1.08fr);
    gap: 18px;

    margin-top: 20px;
}

.riv32-case__timeline {
    position: relative;

    display: grid;
    align-content: start;
    gap: 7px;
}

.riv32-step {
    appearance: none;
    -webkit-appearance: none;

    width: 100%;

    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;

    padding: 11px 12px;

    border: 1px solid rgba(6,82,91,.07);
    border-radius: 15px;

    direction: rtl;
    text-align: right;

    color: inherit;
    background: rgba(255,255,255,.66);

    cursor: pointer;

    transition:
        transform .22s ease,
        opacity .22s ease,
        border-color .22s ease,
        background .22s ease;
}

.riv32-step:hover,
.riv32-step.is-active {
    transform: translateX(-3px);
    border-color: rgba(11,160,163,.18);
    background: rgba(255,255,255,.96);
}

.riv32-step:not(.is-active) {
    opacity: .64;
}

.riv32-step__num {
    width: 36px;
    height: 36px;

    display: grid;
    place-content: center;

    border-radius: 12px;

    color: #0a858a;
    background: #e9f8f6;

    font-size: 9px;
    font-weight: 950;
}

.riv32-step.is-active .riv32-step__num {
    color: #fff;
    background:
        linear-gradient(145deg, #16c4c2, #087d85);
}

.riv32-step small,
.riv32-step strong,
.riv32-step em {
    display: block;
    font-style: normal;
}

.riv32-step small {
    color: #14918f;
    font-size: 7.5px;
    font-weight: 900;
}

.riv32-step strong {
    margin-top: 1px;

    color: #164c57;
    font-size: 11px;
    font-weight: 950;
}

.riv32-step em {
    max-height: 0;
    overflow: hidden;

    margin-top: 0;

    color: #718b90;
    font-size: 8.7px;
    line-height: 1.85;

    opacity: 0;

    transition:
        max-height .28s ease,
        opacity .25s ease,
        margin .25s ease;
}

.riv32-step.is-active em {
    max-height: 68px;
    margin-top: 4px;
    opacity: 1;
}

.riv32-progress {
    height: 5px;
    margin: 4px 3px 0;

    overflow: hidden;
    border-radius: 999px;

    background: rgba(8,130,137,.08);
}

.riv32-progress span {
    display: block;
    width: 25%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(90deg, #18c7c4, #087c84);

    transition:
        transform .42s cubic-bezier(.2,.8,.2,1);
}

.riv32-case__disclaimer {
    margin: 5px 2px 0;

    color: #8a9b9e;
    font-size: 7.8px;
    line-height: 1.8;
}

.riv32-film {
    position: relative;
    overflow: hidden;

    min-height: 390px;

    border: 1px solid rgba(8,101,109,.08);
    border-radius: 22px;

    background: rgba(255,255,255,.84);

    box-shadow:
        0 14px 38px rgba(5,53,60,.045);
}

.riv32-film__top {
    height: 50px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;

    padding: 0 14px;

    border-bottom: 1px solid rgba(8,101,109,.07);
}

.riv32-live-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #16b986;
    box-shadow:
        0 0 0 5px rgba(22,185,134,.08);
}

.riv32-film__top strong {
    font-size: 9.5px;
    font-weight: 950;
}

.riv32-film__top small {
    color: #819599;
    font-size: 8px;
    font-weight: 900;
}

.riv32-stage {
    position: relative;
    overflow: hidden;

    height: 292px;

    background:
        linear-gradient(180deg, #eaf7f7 0 56%, #d9c39f 56% 100%);
}

.riv32-sky {
    position: absolute;
    inset: 0 0 auto 0;
    height: 57%;
}

.riv32-sky i {
    position: absolute;

    width: 36px;
    height: 12px;

    border-radius: 999px;

    background: rgba(255,255,255,.68);

    animation:
        riv32Cloud 11s linear infinite;
}

.riv32-sky i:nth-child(1) {
    top: 36px;
    left: 8%;
}

.riv32-sky i:nth-child(2) {
    top: 71px;
    left: 42%;
    transform: scale(.72);
    animation-duration: 14s;
}

.riv32-sky i:nth-child(3) {
    top: 28px;
    left: 74%;
    transform: scale(.55);
    animation-duration: 17s;
}

.riv32-mountain {
    position: absolute;
    bottom: 43%;
    z-index: 1;

    width: 190px;
    height: 90px;

    clip-path:
        polygon(50% 0,100% 100%,0 100%);

    background: #c2dfda;
}

.riv32-mountain--one {
    right: -35px;
}

.riv32-mountain--two {
    right: 95px;

    width: 145px;
    height: 67px;

    background: #d2e9e4;
}

.riv32-ground {
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -20px;
    z-index: 2;

    height: 46%;

    border-radius: 50% 50% 0 0;

    background:
        radial-gradient(circle at 21% 25%, rgba(83,131,87,.18), transparent 8%),
        radial-gradient(circle at 77% 36%, rgba(83,131,87,.17), transparent 7%),
        linear-gradient(180deg, #dac59f, #caaa77);
}

.riv32-character {
    position: absolute;
    right: 48px;
    bottom: 37px;
    z-index: 12;

    width: 68px;
    height: 137px;

    transition:
        right .65s cubic-bezier(.2,.8,.2,1),
        transform .65s cubic-bezier(.2,.8,.2,1),
        opacity .4s ease;
}

.riv32-character__head {
    position: absolute;
    top: 4px;
    right: 17px;

    width: 38px;
    height: 43px;

    border-radius: 46% 46% 44% 44%;

    background: #e8b689;
}

.riv32-character__hair {
    position: absolute;
    top: 2px;
    right: 14px;

    width: 43px;
    height: 19px;

    border-radius: 50% 50% 28% 30%;

    background: #3d3028;
}

.riv32-character__body {
    position: absolute;
    top: 43px;
    right: 7px;

    width: 56px;
    height: 82px;

    border-radius: 25px 25px 9px 9px;

    background:
        linear-gradient(160deg, #176874, #073f4d);
}

.riv32-character__arm {
    position: absolute;
    top: 64px;
    left: 1px;

    width: 32px;
    height: 12px;

    border-radius: 999px;

    background: #e8b689;

    transform:
        rotate(-18deg);
    transform-origin:
        right center;

    animation:
        riv32Wave 1.5s ease-in-out infinite alternate;
}

.riv32-idea {
    position: absolute;
    right: 122px;
    top: 34px;
    z-index: 13;

    min-width: 132px;
    padding: 11px 12px;

    border: 1px solid rgba(8,104,112,.08);
    border-radius: 17px 17px 5px 17px;

    background: rgba(255,255,255,.94);

    box-shadow:
        0 13px 30px rgba(5,54,62,.08);

    transition:
        opacity .4s ease,
        transform .45s ease;
}

.riv32-idea span {
    display: inline-grid;
    place-content: center;

    width: 28px;
    height: 28px;

    border-radius: 10px;

    color: #a17427;
    background: #fff2d5;
}

.riv32-idea strong {
    display: block;

    margin-top: 4px;

    color: #6e572f;
    font-size: 9px;
}

.riv32-rasa-card {
    position: absolute;
    left: 47%;
    top: 58px;
    z-index: 14;

    width: 128px;
    padding: 12px;

    border-radius: 17px;

    color: #fff;

    background:
        linear-gradient(145deg, #16bdbb, #087c85);

    box-shadow:
        0 16px 32px rgba(8,118,126,.18);

    opacity: 0;
    transform:
        translate(-50%,15px)
        scale(.8);

    transition:
        opacity .45s ease,
        transform .5s ease;
}

.riv32-rasa-card small,
.riv32-rasa-card strong {
    display: block;
}

.riv32-rasa-card small {
    opacity: .75;
    font-size: 7px;
}

.riv32-rasa-card strong {
    margin-top: 2px;
    font-size: 10px;
}

.riv32-rasa-card span {
    display: block;

    width: 72%;
    height: 3px;
    margin-top: 7px;

    border-radius: 999px;

    background: rgba(255,255,255,.5);
}

.riv32-capital-pack {
    position: absolute;
    left: 36%;
    top: 142px;
    z-index: 15;

    width: 102px;
    height: 63px;

    display: grid;
    place-content: center;

    border-radius: 16px;

    color: #fff;
    text-align: center;

    background:
        linear-gradient(145deg, #22bc7d, #0a9461);

    box-shadow:
        0 15px 30px rgba(10,148,97,.17);

    opacity: 0;
    transform:
        translateY(-25px)
        scale(.78);

    transition:
        opacity .45s ease,
        transform .55s ease;
}

.riv32-capital-pack span {
    font-size: 7px;
}

.riv32-capital-pack i {
    margin-top: 2px;

    font-size: 16px;
    font-style: normal;
    font-weight: 950;
}

.riv32-build-dust {
    position: absolute;
    left: 32%;
    bottom: 62px;
    z-index: 7;

    width: 120px;
    height: 60px;

    opacity: 0;
}

.riv32-build-dust i {
    position: absolute;
    bottom: 0;

    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: rgba(199,173,131,.55);

    animation:
        riv32Dust 1.3s ease-in-out infinite;
}

.riv32-build-dust i:nth-child(1) {
    left: 10px;
}

.riv32-build-dust i:nth-child(2) {
    left: 37px;
    animation-delay: .2s;
}

.riv32-build-dust i:nth-child(3) {
    left: 67px;
    animation-delay: .45s;
}

.riv32-build-dust i:nth-child(4) {
    left: 94px;
    animation-delay: .65s;
}

.riv32-lodge {
    position: absolute;
    left: 54px;
    bottom: 34px;
    z-index: 10;

    width: 175px;
    height: 122px;

    opacity: 0;
    transform:
        translateY(55px)
        scale(.78);

    transition:
        opacity .5s ease,
        transform .65s cubic-bezier(.2,.8,.2,1);
}

.riv32-lodge__roof {
    width: 185px;
    height: 39px;
    margin-right: -5px;

    clip-path:
        polygon(50% 0,100% 100%,0 100%);

    background:
        linear-gradient(145deg, #9c6e43, #765033);
}

.riv32-lodge__body {
    position: relative;

    height: 84px;

    border-radius: 3px 3px 11px 11px;

    background:
        linear-gradient(180deg, #f0d8b6, #d8b585);

    box-shadow:
        0 15px 25px rgba(80,57,35,.15);
}

.riv32-window {
    position: absolute;
    top: 20px;

    width: 32px;
    height: 28px;

    border: 4px solid #8d6542;
    border-radius: 4px;

    background: #8ac8cd;
}

.riv32-window:nth-child(1) {
    right: 20px;
}

.riv32-window:nth-child(2) {
    left: 20px;
}

.riv32-door {
    position: absolute;
    left: 50%;
    bottom: 0;

    width: 34px;
    height: 51px;

    border-radius: 5px 5px 0 0;

    background: #714b2e;

    transform:
        translateX(-50%);
}

.riv32-sign {
    position: absolute;
    left: 50%;
    bottom: -14px;

    min-width: 92px;
    padding: 5px 8px;

    border-radius: 8px;

    color: #fff;
    background: #126b72;

    font-size: 7px;
    font-weight: 900;
    text-align: center;

    transform:
        translateX(-50%);
}

.riv32-guests {
    position: absolute;
    left: 55px;
    bottom: 27px;
    z-index: 12;

    display: flex;
    gap: 7px;

    opacity: 0;

    transition:
        opacity .4s ease .15s;
}

.riv32-guests i {
    position: relative;

    width: 16px;
    height: 30px;

    border-radius: 8px 8px 3px 3px;

    background: #1d6d77;
}

.riv32-guests i::before {
    content: "";

    position: absolute;
    left: 2px;
    top: -9px;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #e4b287;
}

.riv32-calendar {
    position: absolute;
    right: 25px;
    top: 31px;
    z-index: 14;

    width: 88px;
    padding: 10px;

    border: 1px solid rgba(8,102,110,.09);
    border-radius: 14px;

    text-align: center;

    background: rgba(255,255,255,.94);

    box-shadow:
        0 13px 28px rgba(5,54,62,.07);

    opacity: 0;
    transform:
        translateY(-15px);

    transition:
        opacity .4s ease,
        transform .45s ease;
}

.riv32-calendar small,
.riv32-calendar strong {
    display: block;
}

.riv32-calendar small {
    color: #7d9498;
    font-size: 7px;
}

.riv32-calendar strong {
    margin-top: 2px;
    color: #0d858a;
    font-size: 13px;
    font-weight: 950;
}

.riv32-revenue {
    position: absolute;
    right: 25px;
    bottom: 26px;
    z-index: 14;

    width: 136px;
    padding: 11px;

    border: 1px solid rgba(8,102,110,.09);
    border-radius: 16px;

    background: rgba(255,255,255,.95);

    box-shadow:
        0 14px 30px rgba(5,54,62,.08);

    opacity: 0;
    transform:
        translateX(22px);

    transition:
        opacity .45s ease,
        transform .5s ease;
}

.riv32-revenue small {
    color: #7a9296;
    font-size: 7px;
}

.riv32-revenue > div {
    height: 48px;

    display: flex;
    align-items: end;
    gap: 4px;

    margin-top: 5px;
}

.riv32-revenue > div i {
    flex: 1;

    min-height: 7px;

    border-radius: 4px 4px 2px 2px;

    background:
        linear-gradient(180deg, #17c0ba, #0b8289);

    transform:
        scaleY(.1);
    transform-origin:
        bottom;

    transition:
        transform .8s cubic-bezier(.2,.8,.2,1);
}

.riv32-revenue strong {
    display: block;

    margin-top: 4px;

    color: #178166;
    font-size: 9px;
}

.riv32-expansion {
    position: absolute;
    left: 39%;
    top: 34px;
    z-index: 16;

    min-width: 138px;
    padding: 12px;

    border-radius: 17px;

    color: #fff;
    text-align: center;

    background:
        linear-gradient(145deg, #0d7982, #073e4d);

    box-shadow:
        0 16px 34px rgba(5,62,70,.18);

    opacity: 0;
    transform:
        translate(-50%,-18px)
        scale(.8);

    transition:
        opacity .45s ease,
        transform .55s ease;
}

.riv32-expansion span,
.riv32-expansion strong,
.riv32-expansion i {
    display: block;
}

.riv32-expansion span {
    opacity: .65;
    font-size: 7px;
}

.riv32-expansion strong {
    margin-top: 2px;
    font-size: 10px;
}

.riv32-expansion i {
    margin-top: 5px;

    color: #91f0df;
    font-size: 18px;
    font-style: normal;
}

.riv32-lodge--second {
    left: 213px;

    transform:
        translateY(58px)
        scale(.68);
}

.riv32-route {
    position: absolute;
    inset: 0;
    z-index: 6;

    width: 100%;
    height: 100%;

    pointer-events: none;
}

.riv32-route path {
    fill: none;
    stroke: rgba(255,255,255,.60);
    stroke-width: 4;
    stroke-dasharray: .035 .025;
    stroke-linecap: round;
}

.riv32-film__footer {
    min-height: 47px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 8px 13px;

    border-top: 1px solid rgba(8,101,109,.07);
}

.riv32-film__footer > div {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #779094;
    font-size: 7px;
}

.riv32-film__footer > div span {
    width: 16px;
    height: 1px;
    background: rgba(8,130,137,.18);
}

.riv32-film__footer button {
    appearance: none;

    min-height: 31px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 9px;

    border: 0;
    border-radius: 10px;

    color: #0a747a;
    background: #eaf8f6;

    font: inherit;
    font-size: 8px;
    font-weight: 950;

    cursor: pointer;
}

/* scene 2 */
.riv32-case[data-riv32-stage="2"] .riv32-idea {
    opacity: .16;
    transform:
        translateY(-14px)
        scale(.86);
}

.riv32-case[data-riv32-stage="2"] .riv32-rasa-card {
    opacity: 1;
    transform:
        translate(-50%,0)
        scale(1);
}

.riv32-case[data-riv32-stage="2"] .riv32-capital-pack {
    opacity: 1;
    transform:
        translateY(0)
        scale(1);
}

.riv32-case[data-riv32-stage="2"] .riv32-build-dust {
    opacity: 1;
}

.riv32-case[data-riv32-stage="2"] .riv32-lodge {
    opacity: .72;
    transform:
        translateY(22px)
        scale(.86);
}

/* scene 3 */
.riv32-case[data-riv32-stage="3"] .riv32-character {
    right: 77px;
    transform:
        scale(.82);
}

.riv32-case[data-riv32-stage="3"] .riv32-idea,
.riv32-case[data-riv32-stage="3"] .riv32-rasa-card,
.riv32-case[data-riv32-stage="3"] .riv32-capital-pack {
    opacity: 0;
}

.riv32-case[data-riv32-stage="3"] .riv32-lodge {
    opacity: 1;
    transform:
        translateY(0)
        scale(1);
}

.riv32-case[data-riv32-stage="3"] .riv32-guests,
.riv32-case[data-riv32-stage="3"] .riv32-calendar,
.riv32-case[data-riv32-stage="3"] .riv32-revenue {
    opacity: 1;
    transform:
        none;
}

.riv32-case[data-riv32-stage="3"] .riv32-revenue > div i {
    transform:
        scaleY(1);
}

/* scene 4 */
.riv32-case[data-riv32-stage="4"] .riv32-character {
    right: 32px;
    transform:
        scale(.78);
}

.riv32-case[data-riv32-stage="4"] .riv32-idea,
.riv32-case[data-riv32-stage="4"] .riv32-rasa-card,
.riv32-case[data-riv32-stage="4"] .riv32-capital-pack,
.riv32-case[data-riv32-stage="4"] .riv32-calendar {
    opacity: 0;
}

.riv32-case[data-riv32-stage="4"] .riv32-lodge {
    opacity: 1;
    transform:
        translateY(0)
        scale(.9);
}

.riv32-case[data-riv32-stage="4"] .riv32-lodge--second {
    opacity: 1;
    transform:
        translateY(0)
        scale(.82);
}

.riv32-case[data-riv32-stage="4"] .riv32-guests,
.riv32-case[data-riv32-stage="4"] .riv32-revenue {
    opacity: 1;
    transform:
        none;
}

.riv32-case[data-riv32-stage="4"] .riv32-revenue {
    right: 18px;
    bottom: 20px;

    transform:
        scale(.88);
    transform-origin:
        bottom right;
}

.riv32-case[data-riv32-stage="4"] .riv32-revenue > div i {
    transform:
        scaleY(1);
}

.riv32-case[data-riv32-stage="4"] .riv32-expansion {
    opacity: 1;
    transform:
        translate(-50%,0)
        scale(1);
}

@keyframes riv32Cloud {
    from {
        transform:
            translateX(-30px);
    }

    to {
        transform:
            translateX(75px);
    }
}

@keyframes riv32Wave {
    from {
        transform:
            rotate(-12deg);
    }

    to {
        transform:
            rotate(-32deg);
    }
}

@keyframes riv32Dust {
    0%,
    100% {
        opacity: 0;
        transform:
            translateY(0)
            scale(.5);
    }

    50% {
        opacity: .65;
        transform:
            translateY(-24px)
            scale(1);
    }
}

@media (max-width: 1000px) {
    .riv32-case__body {
        grid-template-columns: 1fr;
    }

    .riv32-case__timeline {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .riv32-progress,
    .riv32-case__disclaimer {
        grid-column:
            1 / -1;
    }
}

@media (max-width: 650px) {
    .riv32-case {
        margin-top: 38px;
        padding: 16px 12px;
        border-radius: 22px;
    }

    .riv32-case__head {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .riv32-case__badge {
        min-width: 0;
        width: fit-content;
    }

    .riv32-case__timeline {
        grid-template-columns: 1fr;
    }

    .riv32-step {
        grid-template-columns: 36px 1fr;
    }

    .riv32-film {
        min-height: 365px;
    }

    .riv32-stage {
        height: 276px;
    }

    .riv32-character {
        right: 20px;
        transform:
            scale(.82);
        transform-origin:
            bottom center;
    }

    .riv32-idea {
        right: 81px;
    }

    .riv32-lodge {
        left: 20px;
        transform-origin:
            bottom left;
    }

    .riv32-lodge--second {
        left: 148px;
    }

    .riv32-film__footer > div {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .riv32-case *,
    .riv32-case *::before,
    .riv32-case *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}

/* /RASA INVESTMENT ALI STORY V1.2 */
