:where(.memaar-project-grid, .memaar-updates-grid, .memaar-form-grid) {
	--memaar-navy: #12222f;
	--memaar-sand: #e8ae76;
	--memaar-cream: #f8f5f1;
	--memaar-line: rgba(18, 34, 47, 0.14);
}

.memaar-project-grid,
.memaar-updates-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 34px);
}

.memaar-project-filters {
	display: flex;
	align-items: end;
	gap: 14px;
	flex-wrap: wrap;
	margin-block-end: clamp(22px, 3vw, 38px);
}

.memaar-project-filters label {
	display: grid;
	gap: 6px;
	min-width: min(190px, 100%);
}

.memaar-project-filters select {
	min-height: 46px;
	border: 1px solid rgba(18, 34, 47, 0.24);
	background: #fff;
	color: #12222f;
	padding-inline: 12px 32px;
	font: inherit;
}

.memaar-project-filters__reset {
	align-self: center;
	color: inherit;
	text-underline-offset: 5px;
}

.memaar-projects-empty {
	padding: 24px;
	background: #f8f5f1;
}

.memaar-project-card,
.memaar-update-card {
	background: #fff;
	color: #12222f;
	border: 1px solid rgba(18, 34, 47, 0.12);
	overflow: hidden;
}

.memaar-project-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: #f3eee9;
	overflow: hidden;
}

.memaar-project-card__media img,
.memaar-update-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms ease;
}

.memaar-project-card:hover .memaar-project-card__media img {
	transform: scale(1.025);
}

.memaar-project-card__body,
.memaar-update-card > div {
	padding: clamp(18px, 2vw, 28px);
}

.memaar-project-card h3,
.memaar-update-card h3 {
	margin: 8px 0;
}

.memaar-project-card a,
.memaar-update-card a,
.memaar-company-contact a {
	color: inherit;
}

.memaar-project-card__status {
	display: inline-flex;
	padding: 5px 10px;
	background: rgba(232, 174, 118, 0.22);
	font-size: 0.78rem;
}

.memaar-project-card__meta,
.memaar-update-card time {
	color: rgba(18, 34, 47, 0.7);
	font-size: 0.86rem;
}

.memaar-text-link,
.memaar-map-link {
	font-weight: 700;
	text-underline-offset: 5px;
}

.memaar-project-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: rgba(18, 34, 47, 0.12);
	border: 1px solid rgba(18, 34, 47, 0.12);
}

.memaar-fact {
	background: #fff;
	padding: clamp(16px, 2vw, 26px);
}

.memaar-fact dt {
	color: rgba(18, 34, 47, 0.68);
	font-size: 0.82rem;
}

.memaar-fact dd {
	margin: 7px 0 0;
	font-weight: 700;
}

.memaar-project-copy {
	margin-block-start: 28px;
}

.memaar-project-gallery {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 12px;
}

.memaar-project-gallery__item {
	grid-column: span 4;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.memaar-project-gallery__item:nth-child(5n + 1) {
	grid-column: span 8;
}

.memaar-project-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.memaar-map iframe {
	display: block;
	width: 100%;
	min-height: 430px;
	border: 0;
}

.memaar-map-link {
	display: inline-flex;
	margin-block-start: 12px;
}

.memaar-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.memaar-timeline::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 18px;
	width: 1px;
	background: rgba(18, 34, 47, 0.22);
}

.memaar-timeline__item {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 20px;
	padding-block-end: 36px;
	position: relative;
}

.memaar-timeline__marker,
.memaar-timeline__year {
	position: relative;
	z-index: 1;
	background: #e8ae76;
	color: #12222f;
}

.memaar-timeline__marker {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	margin: 8px 13px;
}

.memaar-timeline__year {
	display: grid;
	place-items: center;
	width: 58px;
	height: 34px;
	font-weight: 800;
}

.memaar-timeline__item--origin {
	grid-template-columns: 64px 1fr;
}

.memaar-lead-card {
	background: #f8f5f1;
	color: #12222f;
	padding: clamp(24px, 4vw, 54px);
	border-block-start: 4px solid #e8ae76;
}

.memaar-lead-card h2 {
	margin-block-start: 0;
}

.memaar-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-block: 24px 18px;
}

.memaar-form-grid label,
.memaar-consent {
	display: grid;
	gap: 7px;
}

.memaar-form-grid input,
.memaar-form-grid select,
.memaar-form-grid textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid rgba(18, 34, 47, 0.3);
	background: #fff;
	color: #12222f;
	font: inherit;
}

.memaar-form-wide {
	grid-column: 1 / -1;
}

.memaar-consent {
	grid-template-columns: auto 1fr;
	align-items: start;
	font-size: 0.88rem;
}

.memaar-form-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-block-start: 20px;
	flex-wrap: wrap;
}

.memaar-button {
	border: 0;
	background: #12222f;
	color: #fff;
	padding: 13px 24px;
	min-height: 48px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.memaar-button:disabled {
	opacity: 0.65;
	cursor: wait;
}

.memaar-form-status {
	font-size: 0.9rem;
}

.memaar-honeypot {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}

.memaar-company-contact,
.memaar-company-contact__details,
.memaar-company-contact__social {
	display: flex;
	gap: 14px 24px;
	flex-wrap: wrap;
}

.memaar-company-contact {
	justify-content: space-between;
}

@media (max-width: 840px) {
	.memaar-project-grid,
	.memaar-updates-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.memaar-project-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.memaar-project-gallery__item,
	.memaar-project-gallery__item:nth-child(5n + 1) {
		grid-column: span 6;
	}
}

@media (max-width: 560px) {
	.memaar-project-grid,
	.memaar-updates-grid,
	.memaar-project-facts,
	.memaar-form-grid {
		grid-template-columns: 1fr;
	}

	.memaar-form-wide {
		grid-column: auto;
	}

	.memaar-project-gallery__item,
	.memaar-project-gallery__item:nth-child(5n + 1) {
		grid-column: 1 / -1;
	}

	.memaar-map iframe {
		min-height: 320px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.memaar-project-card__media img {
		transition: none;
	}
}
