.jtoz-project-archive {
	--jtoz-project-archive-bg: #303030;
	--jtoz-project-archive-text: #f4f4f2;
	--jtoz-project-archive-muted: #b8b8b3;
	--jtoz-project-archive-line: rgba(255, 255, 255, 0.18);
	--jtoz-project-archive-orange: #ffba12;
	background: var(--jtoz-project-archive-bg);
	color: var(--jtoz-project-archive-text);
	min-height: 70vh;
	overflow: hidden;
}

.jtoz-project-archive,
.jtoz-project-archive * {
	box-sizing: border-box;
}

.jtoz-project-archive__inner {
	width: min(100% - 96px, 1320px);
	margin-inline: auto;
}

.jtoz-project-archive__header {
	padding: clamp(120px, 14vw, 190px) 0 clamp(64px, 8vw, 104px);
	border-bottom: 1px solid var(--jtoz-project-archive-line);
}

.jtoz-project-archive__title {
	margin: 0;
	padding: 0;
	color: var(--jtoz-project-archive-text);
	font-size: var(--jtoz-page-title-size);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.92;
	text-align: left;
}

.jtoz-project-archive__title span {
	color: var(--jtoz-project-archive-orange);
	font-weight: 300;
}

.jtoz-project-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 12px clamp(24px, 3vw, 48px);
	margin-top: clamp(42px, 6vw, 72px);
}

.jtoz-project-filter__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 0 7px;
	border-bottom: 1px solid transparent;
	color: var(--jtoz-project-archive-muted);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.11em;
	line-height: 1.4;
	text-decoration: none;
	transition: color 180ms ease, border-color 180ms ease;
}

.jtoz-project-filter__link:hover,
.jtoz-project-filter__link:focus-visible,
.jtoz-project-filter__link.is-active {
	border-color: var(--jtoz-project-archive-orange);
	color: var(--jtoz-project-archive-text);
	text-decoration: none;
}

.jtoz-project-filter__link:focus-visible,
.jtoz-project-card__link:focus-visible,
.jtoz-project-pagination .page-numbers:focus-visible {
	outline: 2px solid var(--jtoz-project-archive-orange);
	outline-offset: 5px;
}

.jtoz-project-archive__content {
	padding-block: clamp(72px, 9vw, 128px);
}

.jtoz-project-archive__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(28px, 4vw, 64px);
	row-gap: clamp(72px, 10vw, 144px);
}

.jtoz-project-card {
	grid-column: span 5;
	min-width: 0;
	margin: 0;
}

.jtoz-project-card:nth-child(4n + 1),
.jtoz-project-card:nth-child(4n + 4) {
	grid-column: span 7;
}

.jtoz-project-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.jtoz-project-card__link:hover,
.jtoz-project-card__link:focus-visible {
	color: inherit;
	text-decoration: none;
}

.jtoz-project-card__visual {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #242424;
	overflow: hidden;
}

.jtoz-project-card:nth-child(4n + 1) .jtoz-project-card__visual,
.jtoz-project-card:nth-child(4n + 4) .jtoz-project-card__visual {
	aspect-ratio: 16 / 10;
}

.jtoz-project-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 240ms ease;
}

.jtoz-project-card__link:hover .jtoz-project-card__image,
.jtoz-project-card__link:focus-visible .jtoz-project-card__image {
	filter: brightness(0.78);
}

.jtoz-project-card__placeholder {
	color: rgba(255, 255, 255, 0.28);
	font-size: clamp(1rem, 2vw, 1.4rem);
	letter-spacing: 0.2em;
}

.jtoz-project-card__content {
	padding-top: clamp(22px, 2.5vw, 34px);
	border-top: 1px solid transparent;
}

.jtoz-project-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0 0 14px;
	color: var(--jtoz-project-archive-orange);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.55;
	text-transform: uppercase;
}

.jtoz-project-card__title {
	margin: 0;
	color: var(--jtoz-project-archive-text);
	font-size: clamp(1.55rem, 2.6vw, 2.75rem);
	font-weight: 400;
	letter-spacing: -0.025em;
	line-height: 1.2;
	overflow-wrap: anywhere;
	transition: color 180ms ease;
}

.jtoz-project-card__link:hover .jtoz-project-card__title,
.jtoz-project-card__link:focus-visible .jtoz-project-card__title {
	color: var(--jtoz-project-archive-orange);
}

.jtoz-project-card__description {
	max-width: 44em;
	margin: 18px 0 0;
	color: var(--jtoz-project-archive-muted);
	font-size: clamp(0.88rem, 1.05vw, 1rem);
	line-height: 1.85;
}

.jtoz-project-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	padding-bottom: 7px;
	border-bottom: 1px solid var(--jtoz-project-archive-orange);
	color: var(--jtoz-project-archive-text);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.4;
}

.jtoz-project-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 24px;
	margin-top: clamp(80px, 12vw, 160px);
	padding-top: 36px;
	border-top: 1px solid var(--jtoz-project-archive-line);
}

.jtoz-project-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	min-height: 40px;
	padding: 6px;
	border-bottom: 1px solid transparent;
	color: var(--jtoz-project-archive-muted);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.jtoz-project-pagination a.page-numbers:hover,
.jtoz-project-pagination a.page-numbers:focus-visible,
.jtoz-project-pagination .page-numbers.current {
	border-color: var(--jtoz-project-archive-orange);
	color: var(--jtoz-project-archive-text);
	text-decoration: none;
}

.jtoz-project-archive__empty {
	margin: 0;
	padding-block: clamp(60px, 10vw, 140px);
	border-top: 1px solid var(--jtoz-project-archive-line);
	color: var(--jtoz-project-archive-muted);
	font-size: 1rem;
	line-height: 1.8;
}

@media (max-width: 1024px) {
	.jtoz-project-archive__inner {
		width: min(100% - 64px, 960px);
	}

	.jtoz-project-archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 28px;
		row-gap: 80px;
	}

	.jtoz-project-card,
	.jtoz-project-card:nth-child(4n + 1),
	.jtoz-project-card:nth-child(4n + 4) {
		grid-column: auto;
	}

	.jtoz-project-card__visual,
	.jtoz-project-card:nth-child(4n + 1) .jtoz-project-card__visual,
	.jtoz-project-card:nth-child(4n + 4) .jtoz-project-card__visual {
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 767px) {
	.jtoz-project-archive__inner {
		width: calc(100% - 48px);
	}

	.jtoz-project-archive__header {
		padding-block: 104px 52px;
	}

	.jtoz-project-archive__title {
		font-size: var(--jtoz-page-title-size);
	}

	.jtoz-project-filter {
		gap: 8px 22px;
		margin-top: 38px;
	}

	.jtoz-project-filter__link {
		min-height: 44px;
		font-size: 0.72rem;
	}

	.jtoz-project-archive__content {
		padding-block: 64px 88px;
	}

	.jtoz-project-archive__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 72px;
	}

	.jtoz-project-card,
	.jtoz-project-card:nth-child(4n + 1),
	.jtoz-project-card:nth-child(4n + 4) {
		grid-column: 1;
	}

	.jtoz-project-card__visual,
	.jtoz-project-card:nth-child(4n + 1) .jtoz-project-card__visual,
	.jtoz-project-card:nth-child(4n + 4) .jtoz-project-card__visual {
		aspect-ratio: 4 / 3;
	}

	.jtoz-project-card__content {
		padding-top: 22px;
	}

	.jtoz-project-card__title {
		font-size: clamp(1.55rem, 7.2vw, 2rem);
	}

	.jtoz-project-card__description {
		font-size: 0.9rem;
		line-height: 1.8;
	}

	.jtoz-project-card__cta {
		min-height: 44px;
		margin-top: 18px;
	}

	.jtoz-project-pagination {
		gap: 8px 14px;
		margin-top: 88px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jtoz-project-filter__link,
	.jtoz-project-card__image,
	.jtoz-project-card__title {
		transition: none;
	}
}
