/* ==========================================================================
   BBC Timeline — Design Tokens & Reset
   ========================================================================== */

.bbc-timeline,
.bbc-timeline *,
.bbc-timeline *::before,
.bbc-timeline *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}


/* ==========================================================================
   Section Container
   ========================================================================== */

.bbc-timeline {
	max-width: 1060px;
	margin-inline: auto;
	background-color: transparent;
	overflow-x: hidden;
}


/* ==========================================================================
   Track — the main vertical container with centre line
   ========================================================================== */

.bbc-timeline__track {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Vertical connector line running through the centre */
.bbc-timeline__track::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 1px;
	background: linear-gradient(to bottom,
			transparent 0%,
			rgba(212, 175, 55, 0.18) 5%,
			rgba(212, 175, 55, 0.18) 95%,
			transparent 100%);
	z-index: 0;
}


/* ==========================================================================
   Step — each row is a 2-column grid
   ========================================================================== */

.bbc-timeline__step {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	position: relative;
	z-index: 1;
	margin-bottom: 20px;
}

.bbc-timeline__step--last {
	margin-bottom: 0;
}


/* ==========================================================================
   Card
   ========================================================================== */

.bbc-timeline__card {
	padding: 30px;
	position: relative;
	transition: border-color 300ms ease, box-shadow 300ms ease;

	border-radius: 10px;
	border: 1px solid #2F2F2F;
	background: #000;
}

.bbc-timeline__card:hover {
	border-color: rgba(212, 175, 55, 0.25);
	box-shadow: 0 4px 30px rgba(212, 175, 55, 0.06);
}

/* Card header — number + badge on same row */
.bbc-timeline__card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}


/* ==========================================================================
   Step Number (large display number: "01", "02"…)
   ========================================================================== */

.bbc-timeline__number {
	color: #2F2F2F;

	/* H3 */
	font-family: Mirella;
	font-size: clamp(1.75rem, 1.5983rem + 0.6472vw, 2.375rem);
	font-weight: 400;
	line-height: 1.1;
}


/* ==========================================================================
   Duration Badge ("2 min", "5 min"…)
   ========================================================================== */

.bbc-timeline__badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	color: #E2B967;
	white-space: nowrap;

	border-radius: 100px;
	border: 1px solid #2F2F2F;
	background: rgba(212, 175, 55, 0.08);

	/* Number Text */
	font-family: "JetBrains Mono";
	font-size: 14px;
	font-weight: 400;
	line-height: 1.28;
}


/* ==========================================================================
   Title
   ========================================================================== */

.bbc-timeline__title {
	margin-bottom: 6px;
	color: #BFBFBF;

	/* H5 */
	font-family: Mirella;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.1;
}


/* ==========================================================================
   Description
   ========================================================================== */

.bbc-timeline__desc {
	color: #7C7C7C;

	/* Small Text */
	font-family: "Inter Display";
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
}


/* ==========================================================================
   Node — numbered circle connector
   ========================================================================== */

.bbc-timeline__node-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
}

.bbc-timeline__node {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 100%;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	transition: box-shadow 300ms ease;
	border: 1px solid transparent;
	background: 
		linear-gradient(#000, #000) padding-box,
		linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #D4AD5F 50%, rgba(0, 0, 0, 0) 100%) border-box;
	box-shadow: 0 0 32px 0 rgba(212, 175, 55, 0.15);
}

.bbc-timeline__node:hover {
	box-shadow: 0 0 16px rgba(212, 175, 55, 0.12);
}

.bbc-timeline__node-num {
	color: #E2B967;


	/* H5 */
	font-family: Mirella;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.1;
}





/* ==========================================================================
   Responsive — Single column stacked layout
   ========================================================================== */

@media (max-width: 768px) {

	.bbc-timeline {
		padding: 0 16px;
	}

	/* Hide the vertical centre line */
	.bbc-timeline__track::before {
		left: 24px;
		transform: none;
	}

	/* Single column */
	.bbc-timeline__step {
		display: flex;
		flex-direction: row;
		gap: 16px;
		margin-bottom: 40px;
	}

	.bbc-timeline__node-wrapper {
		justify-content: flex-start;
		padding-left: 10px;
		padding-top: 14px;
		/* Align node nicely with card content */
	}

	/* Node sizing */
	.bbc-timeline__node {
		width: 40px;
		height: 40px;
		min-width: 40px;
	}

	.bbc-timeline__node-num {
		font-size: 14px;
	}

	/* Card fills remaining space */
	.bbc-timeline__card {
		width: 100%;
		padding: 24px 20px 20px;
	}

	/* Reorder for right-side steps so node is always on the left */
	.bbc-timeline__step--right .bbc-timeline__node-wrapper {
		order: -1;
	}

	.bbc-timeline__step--right .bbc-timeline__card {
		order: 1;
	}

	.bbc-timeline__title {
		font-size: 16px;
	}

	.bbc-timeline__desc {
		font-size: 13px;
	}
}

@media (max-width: 480px) {

	.bbc-timeline {
		padding: 0 10px;
	}

	.bbc-timeline__card {
		padding: 20px 16px 18px;
	}

	.bbc-timeline__badge {
		font-size: 11px;
		padding: 3px 10px;
	}

	.bbc-timeline__title {
		font-size: 15px;
	}

	.bbc-timeline__desc {
		font-size: 12.5px;
		line-height: 1.55;
	}

	.bbc-timeline__node {
		width: 36px;
		height: 36px;
		min-width: 36px;
	}

	.bbc-timeline__node-num {
		font-size: 13px;
	}
}

/* ==========================================================================
   Animations — Viewport Entry
   ========================================================================== */

/* Initial hidden state */
.bbc-timeline__node {
	opacity: 0;
	transform: scale(0.5);
	transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 400ms ease;
}

.bbc-timeline__card {
	opacity: 0;
	transition: opacity 1.2s ease 0.3s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, border-color 400ms ease, box-shadow 400ms ease;
}

/* Desktop directions */
@media (min-width: 769px) {
	.bbc-timeline__step--left .bbc-timeline__card {
		transform: translateX(-40px);
	}
	.bbc-timeline__step--right .bbc-timeline__card {
		transform: translateX(40px);
	}
}

/* Mobile direction */
@media (max-width: 768px) {
	.bbc-timeline__card {
		transform: translateY(30px);
	}
}

/* In-view active state */
.bbc-timeline__step--in-view .bbc-timeline__node {
	opacity: 1;
	transform: scale(1);
}

.bbc-timeline__step--in-view .bbc-timeline__card {
	opacity: 1;
	transform: translate(0);
}