.milestones {
    position: relative;
    width: 100%;
}
.milestones::after {
    content: "";
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
    opacity: 0.3;
    right: 0;
}
/* @media (min-width: 1501px) and (max-width: 1750px) {
.milestones::after {
    width: 40vw;
    height: 50vh;
    right: -20vw;
}
}
@media (min-width: 993px) and (max-width: 1500px) {
.milestones::after {
    width: 60vw;
    height: 75vh;
    right: -20vw;
}
}
@media (max-width: 992px) {
.milestones::after {
    width: 50vw;
    height: 50vh;
    right: -17vw;
    top: -70%;
}
} */
.milestones_video_bg {
    display: block;
    width: 80%;
    height: auto;
    object-fit: cover;
    margin-inline: auto;;
}
@media (min-width: 1300px) {
.milestones_video_bg {
    display: block;
    width: 80%;
    border: 1px solid var(--white);
    max-width: 1300px;
    aspect-ratio: 16 / 9;
}
}
.milestones .inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.milestones .h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    text-align: center;
    font-family: var(--font);
    font-size: var(--size-48);
    font-style: normal;
    font-weight: 200;
    line-height: 140%;
    letter-spacing: 2.4px;
    width: 100%;
    max-width: 720px;
    margin: 0;
}

.milestones .block {
    position: relative;
    width: 315px;
    height: 200px;
    padding: var(--space-32);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.10) 100%);
    background-blend-mode: normal, overlay;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    isolation: isolate;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    animation-name: float;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 5.5s;
    animation-delay: 0s;
}
.milestones .block-1 {
    top: 10%;
    left: 10%;
}
/* .milestones .block-2 {
    top: 40%;
    left: 72%;
} */
.milestones .block-3 {
    top: 68%;
    left: 22%;
}
.milestones .block p.big {
    color: var(--white);
    font-family: var(--font);
    font-size: var(--size-80);
    font-style: normal;
    font-weight: 200;
    line-height: 60px;
    margin: 0 0 var(--space-2xs) 0;
}
.milestones .block p {
    color: var(--white);
    font-family: var(--font);
    font-size: var(--size-24);
    font-style: normal;
    font-weight: 200;
    line-height: 130%;
    margin: 0;
}
.milestones .block p strong {
    font-weight: 700;
}
.milestones .block p.big sup {
    color: var(--white);
    font-family: var(--font);
    font-size: 44px;
    font-style: normal;
    font-weight: 200;
    line-height: 40px; 
}
@keyframes float {
    0% {
        transform: translateY(0px) rotate(var(--img-rotate, 0deg));
    }
    50% {
        transform: translateY(-14px) rotate(calc(var(--img-rotate, 0deg) + 1deg));
    }
    100% {
        transform: translateY(0px) rotate(var(--img-rotate, 0deg));
    }
}

.milestones .block-move {
    position: absolute;
    transform: translate3d(var(--ix, 0), var(--iy, 0), 0);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.milestones .block-move-1 { 
    top: 10%; 
    left: 10%; 
    --ix: -60px; 
    --iy:  40px; 
}
.milestones .block-move-2 { 
    top: 40%; 
    left: 72%; 
    --ix:  55px; 
    --iy: -35px; 
}
.milestones .block-move-3 { 
    top: 68%; 
    left: 22%; 
    --ix: -45px; 
    --iy:  45px; 
}
.milestones .block-move.in-view {
    --ix: 0px;
    --iy: 0px;
}

.milestones .title.mobile {
    display: none;
}

@media (min-width: 993px) and (max-width: 1600px) {
.milestones .h3 {
    line-height: 1;
    max-width: 550px;
}
.milestones .block {
    width: 270px;
    height: 180px;
}
}

@media (max-width: 1200px) {
.milestones {
    min-height: auto;
    padding: 0;
    position: relative;
    z-index: 1;
    background: var(--black);
}

.milestones_video_bg {
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 75%;
    object-fit: cover;
    z-index: 0;
}
.milestones .inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    height: auto;
    padding-inline: 25px;
}

.milestones .h3 {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 500px;
    margin: auto;
    font-size: 30px;
    line-height: normal;
    /* display: none; */
}

.milestones .block {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 400px;
    height: auto;
    padding: var(--space-24) 70px var(--space-24) var(--space-24);
    border-radius: 12.571px;
    background: rgba(0, 0, 0, 0.30);
    /* mix-blend-mode: hard-light; */
    backdrop-filter: blur(10px);
}
.milestones .block-move {
    position: relative;
    top: auto;
    left: auto;
    width: fit-content;
    max-width: 400px;
    transform: none !important;
    transition: none !important;
}
.milestones .block-move-1 {
    margin: 0 auto auto 0;
}
.milestones .block-move-2 {
    margin: -3rem 0 auto auto;
}
.milestones .block-move-3 {
    margin: -3rem auto 0 3rem;
}
/* .milestones .title.mobile {
    display: block;
} */
}

@media (max-width: 620px) {
.milestones svg {
    width: 100%;
}
.milestones .block-move-3 {
    margin: -3rem auto 0 1rem;
}
.milestones .h3 {
    font-size: 24px;
}
.milestones .block p.big {
    font-size: 41px;
    line-height: 1;
    margin: 0;
}
.milestones .block {
    padding: var(--space-sm);
    width: 100%;
    margin: auto;
}
.milestones .block p {
    font-size: 14px;
}
.milestones_video_bg {
    top: 0%;
    height: 100%;
}
}

@media (min-width: 668px) and (max-width: 1199px) {
.milestones_video_bg {
    top: 0%;
    height: 100%;
}
}