/* ==========================================================================
   Projects Archive
   ========================================================================== */

/* Projects Hero (same pattern as About / Contact hero)
--------------------------------------------- */
.projects-hero {
	background: #fff;
	padding: 70px 0;
	border-bottom: 1px solid rgba(76, 70, 69, 0.2);
}

.projects-hero__grid {
	display: grid;
	grid-template-columns: 1fr 3fr;
	gap: 2rem;
	align-items: flex-start;
}

.projects-hero__label {
	font-family: "Geist", sans-serif;
	font-size: clamp(1rem, 1.5vw, 1.375rem);
	font-weight: 300;
	color: #4c4645;
	border: 1px solid #4c4645;
	border-radius: 100px;
	padding: 8px 20px;
	white-space: nowrap;
	justify-self: start;
	margin-top: 0.35em; /* optically align with heading cap-height */
}

.projects-hero__content {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.projects-hero__heading {
	font-family: "Geist", sans-serif;
	font-size: clamp(2.25rem, 5.5vw, 5rem);
	font-weight: 300;
	color: #4c4645;
	line-height: 1.1;
	margin: 0;
}

.projects-hero__desc {
	font-family: "Geist", sans-serif;
	font-size: clamp(0.9375rem, 1.5vw, 1.25rem);
	font-weight: 300;
	color: #4c4645;
	line-height: 1.65;
	max-width: 680px;
	margin: 0;
}

@media (max-width: 768px) {
	.projects-hero__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.projects-hero__label {
		margin-top: 0;
	}
}

/* Projects List
--------------------------------------------- */
.projects-list {
	background: #fff;
	gap: 60px;
	display: flex;
	flex-direction: column;
	margin-bottom: 100px;
}

.project-card {

}

/* Image */
.project-card__image-wrap {
	display: block;
	width: 100%;
	background: #fff;
}

.project-card__image {
	width: 100%;
	height: 90vh;
	max-height: 950px;
	object-fit: cover;
	display: block;
	clip-path: inset(0 0% 0 0%);
	transition: clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card__image {
	clip-path: inset(0 2.5% 0 2.5%);
}

/* Meta row */
.project-card__meta {
	display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 60px;
    padding: 28px 0;
}

.project-card__title {
	font-family: "Geist", sans-serif;
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	font-weight: 400;
	color: #4c4645;
	margin: 0;
	flex: 1;
}

.project-card__title a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.project-card__title a:hover {
	opacity: 0.65;
}

.project-card__detail {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex-shrink: 0;
}

.project-card__label {
	font-family: "Geist", sans-serif;
	font-size: 0.8125rem;
	font-weight: 300;
	color: #897d7c;
	white-space: nowrap;
}

.project-card__value {
	font-family: "Geist", sans-serif;
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	font-weight: 400;
	color: #4c4645;
	white-space: nowrap;
}

.project-card__location {
	font-family: "Geist", sans-serif;
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	font-weight: 400;
	color: #4c4645;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Empty state */
.projects-list__empty {
	font-family: "Geist", sans-serif;
	font-size: 1rem;
	color: #4c4645;
	padding: 4rem 0;
	margin: 0;
}

@media (max-width: 768px) {
	.project-card__image {
		height: 55vw;
		max-height: none;
	}

	.project-card:hover .project-card__image {
		transform: scale(0.97);
	}

	.project-card__meta {
		flex-wrap: wrap;
		gap: 1.25rem;
		padding: 20px 0;
	}

	.project-card__title {
		width: 100%;
		flex: none;
	}
}

@media (max-width: 600px) {
	/* Hero */
	.projects-hero {
		padding: 34px 0 40px;
	}

	.projects-hero__heading {
		font-size: 35px;
	}

	.projects-hero__desc {
		font-size: 20px;
	}

	/* Project list */
	.projects-list {
		gap: 0;
		margin-bottom: 60px;
	}

	/* Card image: portrait crop matching Figma */
	.project-card__image {
		height: 420px;
	}

	/* Disable clip-path hover on touch */
	.project-card:hover .project-card__image {
		clip-path: inset(0 0% 0 0%);
	}

	/* Meta: single unwrapped row, all items space-between, 12px */
	.project-card__meta {
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: flex-start;
		gap: 8px;
		padding: 14px 0 20px;
	}

	.project-card__title {
		font-size: 12px;
		width: auto;
		flex: 1;
		min-width: 0;
	}

	.project-card__label {
		font-size: 11px;
	}

	.project-card__value {
		font-size: 12px;
	}

	.project-card__location {
		font-size: 12px;
	}
}
