/**
 * Homepage "Our Work" section.
 */

.ca-fp,
.ca-fp * {
	box-sizing: border-box;
}

.ca-fp {
	background: var(--ca-paper, #f4f1ea);
	color: var(--ca-ink, #1c1c1c);
	padding: 88px 20px 104px;
}

.ca-fp__inner {
	width: 100%;
	margin-inline: auto;
}

.ca-fp h2,
.ca-fp h3,
.ca-fp p {
	margin: 0;
}

.ca-fp a {
	text-decoration: none;
}

.ca-fp img {
	display: block;
	max-width: 100%;
}

.ca-fp__head {
	margin-bottom: 48px;
}

.ca-fp__title {
	color: var(--ca-ink, #1c1c1c);
	font-size: 34px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.ca-fp__title::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-inline-end: 10px;
	background: var(--ca-gold, #f5b400);
	vertical-align: 3px;
}

/* Cards */
.ca-fp__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 44px 28px;
}

.ca-fp__card {
	min-width: 0;
}

.ca-fp__link {
	display: block;
	height: 100%;
	color: inherit;
}

.ca-fp__media {
	position: relative;
	display: block;
}

.ca-fp__frame {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e6e0d4;
}

.ca-fp__frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ca-fp__frame::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 2;
	height: 5px;
	background: var(--ca-gold, #f5b400);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.45s ease;
}

[dir="rtl"] .ca-fp__frame::after {
	transform-origin: right center;
}

.ca-fp__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		repeating-linear-gradient(135deg, rgba(28, 28, 28, 0.05) 0 2px, transparent 2px 14px),
		#e6e0d4;
}

.ca-fp__frame .ca-fp__placeholder img {
	position: static;
	width: 56px;
	height: 56px;
	object-fit: contain;
	opacity: 0.35;
	transition: none;
}

.ca-fp__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	padding: 22px;
	background: linear-gradient(to top, rgba(21, 21, 19, 0.72) 0%, rgba(21, 21, 19, 0.2) 55%, rgba(21, 21, 19, 0) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.ca-fp__view {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 16px;
	background: var(--ca-gold, #f5b400);
	color: var(--ca-ink, #1c1c1c);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
	transform: translateY(12px);
	transition: transform 0.4s ease;
}

.ca-fp__link:hover .ca-fp__frame img,
.ca-fp__link:focus-visible .ca-fp__frame img {
	transform: scale(1.06);
}

.ca-fp__link:hover .ca-fp__overlay,
.ca-fp__link:focus-visible .ca-fp__overlay {
	opacity: 1;
}

.ca-fp__link:hover .ca-fp__view,
.ca-fp__link:focus-visible .ca-fp__view {
	transform: none;
}

.ca-fp__link:hover .ca-fp__frame::after,
.ca-fp__link:focus-visible .ca-fp__frame::after {
	transform: scaleX(1);
}

.ca-fp__link:focus-visible {
	outline: 2px solid var(--ca-gold, #f5b400);
	outline-offset: 10px;
}

.ca-fp__body {
	display: block;
	padding-top: 20px;
}

.ca-fp__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-bottom: 10px;
	color: #a6842a;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.35;
	text-transform: uppercase;
}

.ca-fp__location {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: #6f6a62;
	letter-spacing: 0.08em;
}

.ca-fp__category + .ca-fp__location::before {
	content: "";
	width: 5px;
	height: 5px;
	background: currentColor;
	opacity: 0.6;
}

.ca-fp__name {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.2;
	transition: color 0.25s ease;
}

.ca-fp__link:hover .ca-fp__name,
.ca-fp__link:focus-visible .ca-fp__name {
	color: #9a7200;
}

/* View all: same gold button and corner ticks as Services "Read More". */
.ca-fp__actions {
	display: flex;
	justify-content: center;
	margin-top: 56px;
}

.ca-fp a.ca-fp__all {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 50px;
	padding: 0 24px;
	background-color: var(--ca-gold, #f5b400);
	color: #151513;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.ca-fp a.ca-fp__all::before {
	content: "";
	position: absolute;
	inset: -10px;
	pointer-events: none;
	background:
		linear-gradient(var(--ca-gold, #f5b400), var(--ca-gold, #f5b400)) left 0 top 10px / 10px 1px no-repeat,
		linear-gradient(var(--ca-gold, #f5b400), var(--ca-gold, #f5b400)) left 10px top 0 / 1px 10px no-repeat,
		linear-gradient(var(--ca-gold, #f5b400), var(--ca-gold, #f5b400)) right 0 top 10px / 10px 1px no-repeat,
		linear-gradient(var(--ca-gold, #f5b400), var(--ca-gold, #f5b400)) right 10px top 0 / 1px 10px no-repeat,
		linear-gradient(var(--ca-gold, #f5b400), var(--ca-gold, #f5b400)) left 0 bottom 10px / 10px 1px no-repeat,
		linear-gradient(var(--ca-gold, #f5b400), var(--ca-gold, #f5b400)) left 10px bottom 0 / 1px 10px no-repeat,
		linear-gradient(var(--ca-gold, #f5b400), var(--ca-gold, #f5b400)) right 0 bottom 10px / 10px 1px no-repeat,
		linear-gradient(var(--ca-gold, #f5b400), var(--ca-gold, #f5b400)) right 10px bottom 0 / 1px 10px no-repeat;
	transition: inset 0.3s ease;
}

.ca-fp a.ca-fp__all svg {
	display: block;
	flex: none;
	width: 18px;
	height: 10px;
	transition: transform 0.3s ease;
}

.ca-fp a.ca-fp__all:hover,
.ca-fp a.ca-fp__all:focus-visible {
	background-color: var(--ca-ink, #1c1c1c);
	color: var(--ca-white, #fff);
}

.ca-fp a.ca-fp__all:hover::before,
.ca-fp a.ca-fp__all:focus-visible::before {
	inset: -6px;
}

.ca-fp a.ca-fp__all:hover svg,
.ca-fp a.ca-fp__all:focus-visible svg {
	transform: translateX(4px);
}

.ca-fp a.ca-fp__all:focus-visible {
	outline: 2px solid var(--ca-white, #fff);
	outline-offset: 4px;
}

[dir="rtl"] .ca-fp a.ca-fp__all svg {
	transform: scaleX(-1);
}

[dir="rtl"] .ca-fp a.ca-fp__all:hover svg,
[dir="rtl"] .ca-fp a.ca-fp__all:focus-visible svg {
	transform: scaleX(-1) translateX(4px);
}

.ca-fp__arrow {
	flex: 0 0 auto;
	transition: transform 0.25s ease;
}

[dir="rtl"] .ca-fp__arrow {
	transform: scaleX(-1);
}

/* Reveal: classes are added by home-projects.js, so content shows without JavaScript. */
.ca-fp .ca-fp-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.75s ease, transform 0.75s ease;
}

.ca-fp .ca-fp-reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (max-width: 1024px) {
	.ca-fp {
		padding-top: 72px;
		padding-bottom: 88px;
	}

	.ca-fp__head {
		margin-bottom: 36px;
	}

	.ca-fp__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 24px;
	}
}

@media (max-width: 640px) {
	.ca-fp {
		padding-top: 56px;
		padding-bottom: 72px;
	}

	.ca-fp__title {
		font-size: 28px;
	}

	.ca-fp__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.ca-fp__name {
		font-size: 20px;
	}

	.ca-fp__actions {
		justify-content: stretch;
		margin-top: 44px;
		padding: 0 10px;
	}

	.ca-fp a.ca-fp__all {
		justify-content: center;
		width: 100%;
	}
}

@media (hover: none) {
	.ca-fp__overlay {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ca-fp__frame img,
	.ca-fp__frame::after,
	.ca-fp__overlay,
	.ca-fp__view,
	.ca-fp__arrow,
	.ca-fp a.ca-fp__all,
	.ca-fp a.ca-fp__all::before,
	.ca-fp a.ca-fp__all svg {
		transition: none;
	}

	.ca-fp .ca-fp-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
