/* Works Timeline Gantt */

.works-timeline {
	margin: 8px 0 36px;
}

.works-timeline-card {
	position: relative;
	padding: 28px 28px 18px;
	border-radius: 20px;
	background:
		radial-gradient(120% 80% at 0% 0%, rgba(135, 80, 247, 0.18), transparent 55%),
		radial-gradient(90% 70% at 100% 100%, rgba(88, 166, 255, 0.08), transparent 50%),
		#12101a;
	border: 1px solid rgba(135, 80, 247, 0.35);
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
	overflow: hidden;
}

.works-timeline-card::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(183, 148, 246, 0.55), transparent);
	pointer-events: none;
}

.works-timeline-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.works-timeline-eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #b794f6;
}

.works-timeline-head h3 {
	margin: 0 0 8px;
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 700;
	color: #f0f6fc;
	letter-spacing: -0.02em;
}

.works-timeline-head p {
	margin: 0;
	max-width: 520px;
	font-size: 14px;
	line-height: 1.55;
	color: #9aa4b2;
}

.works-timeline-legend {
	display: flex;
	gap: 16px;
	align-items: center;
	font-size: 12px;
	color: #8b949e;
}

.works-timeline-legend span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.legend-bar {
	display: inline-block;
	width: 28px;
	height: 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, #8750f7, #58a6ff);
}

.legend-diamond {
	display: inline-block;
	width: 10px;
	height: 10px;
	background: #3fb950;
	transform: rotate(45deg);
	border-radius: 2px;
}

.works-timeline-range {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	margin: 0 0 14px;
}

.works-range-pills {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(135, 80, 247, 0.22);
}

.works-range-pill,
.works-range-step {
	appearance: none;
	border: 0;
	cursor: pointer;
	font-family: Sora, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.works-range-pill {
	padding: 8px 12px;
	border-radius: 999px;
	color: #8b949e;
	background: transparent;
}

.works-range-pill:hover {
	color: #e6edf3;
	background: rgba(135, 80, 247, 0.14);
}

.works-range-pill.is-active {
	color: #fff;
	background: linear-gradient(135deg, #8750f7, #6a3fd4);
	box-shadow: 0 6px 18px rgba(135, 80, 247, 0.28);
}

.works-range-step {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	color: #c9d1d9;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(135, 80, 247, 0.28);
}

.works-range-step:hover:not(:disabled) {
	color: #fff;
	border-color: rgba(183, 148, 246, 0.55);
	background: rgba(135, 80, 247, 0.18);
}

.works-range-step:disabled {
	opacity: 0.35;
	cursor: default;
}

.works-range-label {
	font-size: 12px;
	color: #8b949e;
	letter-spacing: 0.02em;
}

.works-range-reset {
	appearance: none;
	border: 1px solid rgba(135, 80, 247, 0.28);
	background: rgba(255, 255, 255, 0.04);
	color: #c9d1d9;
	border-radius: 999px;
	padding: 8px 12px;
	font-family: Sora, sans-serif;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.works-range-reset:hover {
	color: #fff;
	border-color: rgba(183, 148, 246, 0.55);
	background: rgba(135, 80, 247, 0.18);
}

.works-gantt-hint {
	margin: 0 0 12px;
	font-size: 12px;
	line-height: 1.45;
	color: #6e7681;
}

.works-gantt-status {
	display: none;
	padding: 28px 12px 36px;
	text-align: center;
	font-size: 14px;
	color: #8b949e;
}

.works-gantt-status.is-visible {
	display: block;
}

.works-gantt-status.is-error {
	color: #f85149;
}

.works-gantt-host {
	width: 100%;
	min-height: 360px;
	max-height: min(72vh, 720px);
	overflow: auto;
	overscroll-behavior: contain;
	touch-action: pan-x pan-y;
	-webkit-overflow-scrolling: touch;
	border-radius: 12px;
}

.works-gantt-host .highcharts-background {
	fill: transparent;
}

.works-gantt-host .highcharts-scrollbar {
	cursor: grab;
}

.works-gantt-host .highcharts-navigator,
.works-gantt-host .highcharts-navigator-handle,
.works-gantt-host .highcharts-navigator-mask-inside {
	cursor: ew-resize;
}

.portfolio-item.works-gantt-flash {
	outline: 2px solid rgba(135, 80, 247, 0.85);
	outline-offset: 4px;
	transition: outline-color 0.3s ease;
}

@media (max-width: 767px) {
	.works-timeline-card {
		padding: 22px 14px 12px;
		border-radius: 16px;
	}

	.works-timeline-head {
		align-items: flex-start;
		margin-bottom: 14px;
	}

	.works-timeline-head p {
		max-width: none;
		font-size: 13px;
	}

	.works-timeline-range {
		gap: 8px;
	}

	.works-range-pills {
		width: 100%;
		justify-content: space-between;
		border-radius: 14px;
	}

	.works-range-pill {
		flex: 1 1 auto;
		text-align: center;
		padding: 9px 8px;
		font-size: 11px;
	}

	.works-range-label,
	.works-gantt-hint {
		width: 100%;
	}

	.works-gantt-hint {
		font-size: 11px;
	}

	.works-gantt-host {
		min-height: 300px;
		max-height: min(68vh, 560px);
	}
}

@media (hover: none) and (max-width: 767px) {
	.works-gantt-hint {
		font-size: 11px;
	}
}
