/* Projects page — editorial timeline */

.projects-page {
	--gm-ink: #0c2516;
	--gm-ink-soft: #1a3d28;
	--gm-mist: #f3f6f3;
	--gm-leaf: #3d7a56;
	--gm-line: rgba(12, 37, 22, 0.12);
	--gm-ease: cubic-bezier(0.22, 1, 0.36, 1);
	color: var(--gm-ink);
	background:
		radial-gradient(ellipse 70% 45% at 0% 0%, rgba(61, 122, 86, 0.1), transparent 55%),
		radial-gradient(ellipse 50% 40% at 100% 20%, rgba(12, 37, 22, 0.05), transparent 50%),
		linear-gradient(180deg, #f8faf8 0%, var(--gm-mist) 40%, #eef3ef 100%);
}

.projects-page .cd-main-content {
	overflow-x: hidden;
}

.projects-shell {
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* —— Intro band —— */
.projects-intro {
	padding: 7.5rem 0 3.5rem;
}

.projects-kicker {
	display: inline-block;
	margin: 0 0 1rem;
	font-family: "Lato", sans-serif;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gm-leaf);
	opacity: 0;
	animation: gmProjectsFadeUp 0.8s var(--gm-ease) 0.1s forwards;
}

.projects-intro h1 {
	margin: 0 0 1.25rem;
	max-width: 16ch;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	line-height: 1.15;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gm-ink);
	opacity: 0;
	animation: gmProjectsFadeUp 0.9s var(--gm-ease) 0.2s forwards;
}

.projects-lede {
	margin: 0;
	max-width: 42rem;
	font-family: "Lato", sans-serif;
	font-size: 1.05rem;
	line-height: 1.75;
	color: rgba(12, 37, 22, 0.72);
	opacity: 0;
	animation: gmProjectsFadeUp 0.9s var(--gm-ease) 0.35s forwards;
}

.projects-lede + .projects-lede {
	margin-top: 1.15rem;
}

/* —— Section —— */
.projects-list-section {
	padding: 1rem 0 5.5rem;
}

.projects-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--gm-line);
}

.projects-section-head h2 {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gm-ink-soft);
}

.projects-count {
	font-family: "Lato", sans-serif;
	font-size: 0.8rem;
	color: rgba(12, 37, 22, 0.45);
}

/* —— Timeline —— */
.projects-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.projects-timeline::before {
	content: "";
	position: absolute;
	top: 0.4rem;
	bottom: 0.4rem;
	left: 0.35rem;
	width: 1px;
	background: linear-gradient(
		180deg,
		transparent,
		rgba(61, 122, 86, 0.45) 8%,
		rgba(12, 37, 22, 0.18) 92%,
		transparent
	);
}

.project-entry {
	position: relative;
	padding: 0 0 2.75rem 2.25rem;
	opacity: 0;
	transform: translateY(18px);
	animation: gmProjectsFadeUp 0.85s var(--gm-ease) forwards;
}

.project-entry:nth-child(1) { animation-delay: 0.15s; }
.project-entry:nth-child(2) { animation-delay: 0.28s; }
.project-entry:nth-child(3) { animation-delay: 0.41s; }
.project-entry:nth-child(4) { animation-delay: 0.54s; }
.project-entry:nth-child(5) { animation-delay: 0.67s; }
.project-entry:nth-child(n+6) { animation-delay: 0.75s; }

.project-entry:last-child {
	padding-bottom: 0;
}

.project-entry::before {
	content: "";
	position: absolute;
	top: 0.45rem;
	left: 0.1rem;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--gm-leaf);
	box-shadow: 0 0 0 4px rgba(61, 122, 86, 0.18);
	transition: transform 0.35s var(--gm-ease), box-shadow 0.35s var(--gm-ease);
}

.project-entry:hover::before {
	transform: scale(1.2);
	box-shadow: 0 0 0 6px rgba(61, 122, 86, 0.22);
}

.project-duration {
	display: inline-block;
	margin: 0 0 0.65rem;
	font-family: "Playball", Georgia, serif;
	font-size: 1.35rem;
	line-height: 1;
	color: var(--gm-leaf);
	letter-spacing: 0.02em;
}

.project-title {
	margin: 0 0 1.1rem;
	font-family: "Montserrat", sans-serif;
	font-size: clamp(0.95rem, 1.8vw, 1.15rem);
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--gm-ink);
}

.project-meta {
	display: grid;
	gap: 0.65rem;
	margin: 0;
}

.project-meta div {
	display: grid;
	grid-template-columns: 7.5rem 1fr;
	gap: 0.75rem;
	align-items: baseline;
	padding-top: 0.65rem;
	border-top: 1px solid var(--gm-line);
}

.project-meta dt {
	margin: 0;
	font-family: "Lato", sans-serif;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(12, 37, 22, 0.42);
}

.project-meta dd {
	margin: 0;
	font-family: "Lato", sans-serif;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--gm-ink-soft);
}

.project-details {
	margin: 1.15rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--gm-line);
	font-family: "Lato", sans-serif;
	font-size: 0.95rem;
	line-height: 1.7;
	color: rgba(12, 37, 22, 0.68);
}

.projects-empty {
	padding: 2.5rem 0;
	font-family: "Lato", sans-serif;
	font-size: 1rem;
	color: rgba(12, 37, 22, 0.55);
}

@keyframes gmProjectsFadeUp {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 640px) {
	.projects-intro {
		padding: 6.5rem 0 2.5rem;
	}

	.projects-intro h1 {
		max-width: none;
	}

	.project-meta div {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.projects-kicker,
	.projects-intro h1,
	.projects-lede,
	.project-entry {
		animation: none;
		opacity: 1;
		transform: none;
	}
}
