.countup.timeline {
	overflow: hidden;
}
.countup .card {
    padding: 0 0 25px 0;
}
.countup .card__inner h3 {
    font-size: 28px;
}
@media (min-width: 768px) {
    .countup .card {
        padding: 0px 50px 25px 0px;
    }
    .countup .card__inner h3 {
        font-size: 36px;
        margin-bottom: 0px;
    }
}
@media (min-width: 992px) {
    .countup .card {
        width: 90%;
    }
}

.timeline-event.card__text :is(h1, h2, h3, h4, h5, h6) {
	margin-bottom: 15px;
}

.timeline {
    container: timeline-container / inline-size;
    padding-block: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 768px) {
	.timeline {
    	padding-block: 4rem;
	}	
}
.timeline-group {
    display: grid;
    grid-template-areas:
        "point date"
        "point event";
}
@media (max-width: 767px) {
	.timeline-group {
    	margin-bottom: 20px;
	}
}
@media (min-width: 768px) {
	.timeline-group {
    	margin-inline: 1rem;
		gap: 1rem;
	}	
}

@container timeline-container (min-width: 80ch) {
    .timeline-group {
        grid-template-areas: "date point event";
        grid-template-columns: 8fr 1fr 8fr;
        place-content: center;
    }

    .timeline-group:nth-child(even) {
        grid-template-areas: "event point date";
    }

    .timeline-group:nth-child(even) .timeline-date {
        --translation: -100px;
        justify-content: flex-start;
    }

    .timeline-group:nth-child(even) .timeline-event {
        --translation: -100px;
        margin-inline-start: auto;
    }
}

.timeline-event {
    --border-radius: 6px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --easing: cubic-bezier(0.34, 1.56, 0.64, 1);
    --range-start: contain 10%;
    --range-end: contain 30%;
    --translation: 100px;
    grid-area: event;
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.3rem 1rem;
}
@media (min-width: 768px) {
	.timeline-event {
		padding: 1.5rem;
	}
}
/* @container timeline-container (min-width: 80ch) {
    .timeline-event {
        margin-block: 2rem;
        width: min(100% - 1rem, 30cqw);
        position: relative;
    }
} */

/* @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view(block)) {
        .timeline-event {
            opacity: 0;
            animation: slide-in var(--easing) both;
			animation-play-state: paused;
            transform-origin: center center;
            transform: translateX(var(--translation));
			animation-iteration-count: 1;
        }
    }
} */

.timeline-event .value-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(#333333);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.timeline-event .value-description {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    font-weight: 400;
    color: var(#666666);
    line-height: 1.7;
}

.timeline-point {
    display: grid;
    grid-area: point;
    place-content: center;
    position: relative;
    width: 100%;
}

.timeline-point span {
    --point-size: 0px;
    --easing: cubic-bezier(0.34, 1.56, 0.64, 1);
    --range-start: contain 20%;
    --range-end: contain 40%;
    align-items: center;
    aspect-ratio: 1;
    height: var(--point-size);
    background: var(#1a1a1a);
    border-radius: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view(block)) {
        .timeline-point span {
            animation: scale-up var(--easing) both;
			animation-play-state: paused;
            transform-origin: center center;
			animation-iteration-count: 1;
        }
    }
} */
@media (min-width: 768px) {
	.timeline-point::after {
		background: #d4d4d4;
		content: "";
		display: block;
		height: 100%;
		position: absolute;
		left: calc(50% - (6px / 2));
		margin-inline: auto;
		width: 1px;
		top: 0;
		z-index: 0;
	}
}

/* Remove line after last circle */
.timeline-group:last-child .timeline-point::after {
    /* display: none; */
}
@media (max-width: 767px) {
	.timeline-date {
		margin-bottom: 20px;
	}
}
.timeline-date {
    --range-start: contain -20%;
    --range-end: contain 0%;
    --translation: -100px;
    grid-area: date;
}

@container timeline-container (min-width: 80ch) {
    .timeline-date {
        --translation: -100px;
        align-items: center;
        display: flex;
        justify-content: flex-end;
    }
}

/* @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view(block)) {
        .timeline-date {
            animation: fade-in linear both;
			animation-play-state: paused;
            opacity: 0;
            transform: translateY(var(--translation));
			animation-iteration-count: 1;
        }
    }
} */

.timeline-date p {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(#333333);
    line-height: 1.2;
}

@keyframes slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-up {
    0% {
        scale: 1;
    }
    75% {
        scale: 1.15;
    }
    100% {
        scale: 1;
    }
}

@keyframes fade-in {
    75% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}