:root {
	--orane-project-text: #161616;
	--orane-project-muted: #686868;
	--orane-project-surface: #fff;
	--orane-project-border: rgba(0, 0, 0, 0.1);
	--orane-project-accent: #111;
	--orane-project-radius: 18px;
}

.orane-projects,
.orane-projects * {
	box-sizing: border-box;
}

.orane-projects {
	width: 100%;
	color: var(--orane-project-text);
}

.orane-projects-count {
	margin: 0 0 14px;
	color: var(--orane-project-muted);
	font-size: 14px;
}

.orane-projects-count [data-project-count] {
	color: var(--orane-project-text);
	font-weight: 700;
}

.orane-project-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 24px;
}

.orane-project-filter {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 38px;
	padding: 8px 13px;
	border: 1px solid var(--orane-project-border);
	border-radius: 999px;
	background: var(--orane-project-surface);
	color: var(--orane-project-text);
	font: inherit;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.orane-project-filter:hover,
.orane-project-filter.is-active {
	border-color: var(--orane-project-accent);
	background: var(--orane-project-accent);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.orane-project-filter:focus-visible {
	outline: 3px solid rgba(17, 17, 17, 0.25);
	outline-offset: 3px;
}

.orane-project-filter-count {
	display: inline-grid;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	place-items: center;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	font-size: 11px;
}

.orane-project-filter:hover .orane-project-filter-count,
.orane-project-filter.is-active .orane-project-filter-count {
	background: rgba(255, 255, 255, 0.17);
}

.orane-project-feedback {
	min-height: 0;
	color: #a01919;
	font-size: 14px;
}

.orane-project-feedback:not(:empty) {
	margin: 0 0 16px;
}

.orane-projects-grid {
	display: grid;
	gap: 18px;
	width: 100%;
	margin: 0;
	transition: opacity 0.18s ease;
}

.orane-projects-grid.cols-1 {
	grid-template-columns: 1fr;
}

.orane-projects-grid.cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.orane-projects-grid.cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.orane-projects-grid.cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.orane-projects.is-loading .orane-projects-grid {
	opacity: 0.48;
	pointer-events: none;
}

.orane-project-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--orane-project-border);
	border-radius: var(--orane-project-radius);
	background: var(--orane-project-surface);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.orane-project-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 42px rgba(0, 0, 0, 0.09);
}

.orane-project-link {
	display: flex;
	height: 100%;
	flex-direction: column;
	color: inherit !important;
	text-decoration: none !important;
}

.orane-project-link:focus-visible {
	outline: 3px solid rgba(17, 17, 17, 0.32);
	outline-offset: -3px;
}

.orane-project-thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f2f2f2;
}

.orane-project-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.orane-project-card:hover .orane-project-thumb img {
	transform: scale(1.025);
}

.orane-project-thumb.is-placeholder {
	display: grid;
	place-items: center;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent),
		#ededed;
	color: #969696;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.orane-project-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 15px 15px 17px;
}

.orane-project-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 11px;
}

.orane-project-cat {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border: 1px solid var(--orane-project-border);
	border-radius: 999px;
	background: var(--orane-project-surface);
	color: var(--orane-project-muted);
	font-size: 12px;
	line-height: 1.15;
}

.orane-project-title {
	margin: 0 0 8px !important;
	padding: 0;
	color: var(--orane-project-text);
	font-size: clamp(17px, 1.4vw, 19px);
	font-weight: 700;
	line-height: 1.3;
}

.orane-project-excerpt {
	margin: 0 0 14px;
	color: var(--orane-project-muted);
	font-size: 14px;
	line-height: 1.55;
}

.orane-project-cta {
	display: inline-block;
	margin-top: auto;
	color: var(--orane-project-text);
	font-size: 14px;
	font-weight: 600;
}

.orane-project-empty {
	grid-column: 1 / -1;
	margin: 10px 0;
	color: var(--orane-project-muted);
}

.orane-projects-archive {
	width: min(1240px, calc(100% - 40px));
	margin: 0 auto;
	padding: clamp(44px, 7vw, 96px) 0;
}

.orane-projects-archive-header {
	max-width: 760px;
	margin: 0 0 clamp(30px, 5vw, 56px);
}

.orane-projects-archive-title {
	margin: 0 0 12px;
	font-size: clamp(34px, 5vw, 64px);
	line-height: 1.06;
}

.orane-projects-archive-description {
	color: var(--orane-project-muted);
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.6;
}

.orane-projects-archive-description > :last-child {
	margin-bottom: 0;
}

@media (max-width: 980px) {
	.orane-projects-grid.cols-3,
	.orane-projects-grid.cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.orane-projects-grid {
		grid-template-columns: 1fr !important;
	}

	.orane-projects-archive {
		width: min(100% - 28px, 1240px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.orane-project-filter,
	.orane-projects-grid,
	.orane-project-card,
	.orane-project-thumb img {
		transition: none;
	}
}
