/* Matrix Our Projects — frontend styles are intentionally scoped to mop- classes. */
.mop-projects,
.mop-archive,
.mop-single {
	--mop-green: var(--mop-accent, #19b63e);
	--mop-dark-green: #087a27;
	--mop-charcoal: #0b0d0c;
	--mop-white: #fff;
	--mop-silver: #b8bfba;
	--mop-light: #f1f3f2;
	--mop-border: #dce1de;
	--mop-muted: #58625c;
	box-sizing: border-box;
	color: var(--mop-charcoal);
}

.mop-projects *,
.mop-archive *,
.mop-single * {
	box-sizing: border-box;
}

.mop-container {
	width: min(1380px, calc(100% - clamp(32px, 7vw, 108px)));
	margin-inline: auto;
}

.mop-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.mop-archive {
	position: relative;
	width: 100vw;
	max-width: none;
	background: var(--mop-light);
	min-height: 70vh;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
	overflow: hidden;
}

/* Remove Astra's content constraint while this complete plugin template is active. */
body.mop-project-page.post-type-archive-matrix_project .site-content > .ast-container,
body.mop-project-page.tax-mop_project_category .site-content > .ast-container {
	width: 100%;
	max-width: none;
	padding-right: 0;
	padding-left: 0;
}

body.mop-project-page.post-type-archive-matrix_project .site-content > .ast-container .mop-archive,
body.mop-project-page.tax-mop_project_category .site-content > .ast-container .mop-archive {
	width: 100%;
	margin-right: 0;
	margin-left: 0;
}

.mop-archive__hero {
	position: relative;
	isolation: isolate;
	padding: clamp(70px, 8vw, 118px) 0 clamp(42px, 5vw, 70px);
	color: var(--mop-white);
	background:
		radial-gradient(circle at 82% 18%, rgba(53, 217, 92, .18), transparent 28%),
		linear-gradient(112deg, #07140d 0%, #073f20 56%, #087a27 100%);
	border-bottom: 4px solid var(--mop-green);
}

.mop-archive__hero::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 48px 48px;
	content: "";
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 60%, #000);
	mask-image: linear-gradient(90deg, transparent, #000 60%, #000);
}

.mop-kicker {
	margin: 0 0 14px;
	color: #78e890;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.mop-archive__hero h1,
.mop-single__header h1 {
	margin: 0;
	max-width: 900px;
	font-size: clamp(40px, 6vw, 72px);
	line-height: 1.05;
	letter-spacing: -.04em;
}

.mop-archive .mop-archive__hero h1 {
	color: var(--mop-white);
	text-wrap: balance;
}

.mop-archive__intro {
	max-width: 720px;
	margin: 20px 0 0;
	color: #e3ece7;
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.7;
}

.mop-archive__content {
	padding-block: clamp(42px, 6vw, 82px);
}

.mop-projects {
	width: 100%;
}

.mop-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 0 0 clamp(28px, 3vw, 38px);
	padding-bottom: 20px;
	border-bottom: 1px solid var(--mop-border);
}

.mop-filter-group {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.mop-filter,
.mop-category-filter select,
.mop-filter-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 1px solid var(--mop-border);
	border-radius: 5px;
	background: var(--mop-white);
	color: var(--mop-charcoal);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.mop-filter {
	padding: 11px 18px;
}

.mop-filter:hover,
.mop-filter.is-active {
	border-color: var(--mop-green);
	background: var(--mop-green);
	color: var(--mop-white);
}

.mop-category-filter select {
	min-width: 190px;
	padding: 8px 38px 8px 13px;
}

.mop-filter-submit {
	padding: 10px 16px;
	background: var(--mop-charcoal);
	color: var(--mop-white);
}

.js .mop-filter-submit {
	display: none;
}

.mop-grid {
	display: grid;
	grid-template-columns: repeat(var(--mop-columns, 3), minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 28px);
}

.mop-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--mop-border);
	border-radius: 6px;
	background: var(--mop-white);
	box-shadow: 0 12px 32px rgba(11, 13, 12, .07);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mop-card:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--mop-green) 55%, var(--mop-border));
	box-shadow: 0 20px 42px rgba(11, 13, 12, .12);
}

.mop-card[hidden] {
	display: none !important;
}

.mop-card__image {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #dbe1dd;
}

.mop-card__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.mop-card:hover .mop-card__photo {
	transform: scale(1.025);
}

.mop-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, .4) 49%, transparent 51%),
		linear-gradient(145deg, #dce2de, #b8bfba);
}

.mop-badge {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 7px 11px;
	border-radius: 3px;
	color: var(--mop-white);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .035em;
	line-height: 1.2;
	text-transform: uppercase;
}

.mop-card__image .mop-badge {
	position: absolute;
	top: 14px;
	left: 14px;
}

.mop-badge--ongoing {
	background: var(--mop-green);
}

.mop-badge--completed {
	background: #174523;
}

.mop-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(20px, 3vw, 27px);
}

.mop-card__eyebrow {
	margin: 0 0 9px;
	color: var(--mop-dark-green);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.mop-card__title {
	margin: 0 0 11px;
	font-size: clamp(20px, 2vw, 25px);
	line-height: 1.2;
}

.mop-card__title a {
	color: var(--mop-charcoal);
	text-decoration: none;
}

.mop-card__location,
.mop-card__completion {
	margin: 0 0 14px;
	color: var(--mop-muted);
	font-size: 14px;
}

.mop-card__location span {
	color: var(--mop-green);
	font-size: 9px;
}

.mop-card__excerpt {
	margin-bottom: 20px;
	color: var(--mop-muted);
	font-size: 15px;
	line-height: 1.65;
}

.mop-card__excerpt p {
	margin: 0;
}

.mop-progress {
	margin: 5px 0 20px;
}

.mop-progress__meta {
	display: flex;
	justify-content: space-between;
	margin-bottom: 7px;
	color: var(--mop-muted);
	font-size: 13px;
}

.mop-progress__track {
	height: 8px;
	overflow: hidden;
	border-radius: 99px;
	background: #dfe5e1;
}

.mop-progress__track span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--mop-green);
}

.mop-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 11px 19px;
	border: 2px solid var(--mop-green);
	border-radius: 4px;
	background: var(--mop-green);
	color: var(--mop-white);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.mop-button:hover {
	border-color: var(--mop-dark-green);
	background: var(--mop-dark-green);
	color: var(--mop-white);
}

.mop-button--card {
	align-self: flex-start;
	margin-top: auto;
}

.mop-button--outline {
	border-color: rgba(255, 255, 255, .62);
	background: transparent;
}

.mop-button--outline:hover {
	border-color: var(--mop-white);
	background: var(--mop-white);
	color: var(--mop-charcoal);
}

.mop-projects a:focus-visible,
.mop-projects button:focus-visible,
.mop-projects select:focus-visible,
.mop-single a:focus-visible {
	outline: 3px solid #f3c300;
	outline-offset: 3px;
}

.mop-empty {
	padding: clamp(40px, 8vw, 80px) 24px;
	border: 1px dashed var(--mop-silver);
	background: var(--mop-white);
	text-align: center;
}

.mop-empty h2,
.mop-empty h3 {
	margin: 0 0 8px;
}

.mop-empty p {
	margin: 0;
	color: var(--mop-muted);
}

.mop-pagination,
.mop-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 34px;
}

.mop-pagination .page-numbers {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border: 1px solid var(--mop-border);
	border-radius: 3px;
	background: var(--mop-white);
	color: var(--mop-charcoal);
	text-decoration: none;
}

.mop-pagination .current,
.mop-pagination a:hover {
	border-color: var(--mop-green);
	background: var(--mop-green);
	color: var(--mop-white);
}

.mop-single {
	position: relative;
	width: 100vw;
	max-width: none;
	padding: clamp(30px, 5vw, 72px) 0;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
	overflow: hidden;
	background: linear-gradient(180deg, #f4f8f5 0, var(--mop-white) 540px);
}

body.mop-project-page.single-matrix_project .site-content > .ast-container {
	width: 100%;
	max-width: none;
	padding-right: 0;
	padding-left: 0;
}

body.mop-project-page.single-matrix_project .site-content > .ast-container .mop-single {
	width: 100%;
	margin-right: 0;
	margin-left: 0;
}

.mop-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: clamp(30px, 4vw, 52px);
	color: var(--mop-muted);
	font-size: 14px;
}

.mop-breadcrumbs a,
.mop-text-link {
	color: var(--mop-dark-green);
}

.mop-single__header {
	max-width: 1020px;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.mop-single .mop-single__header h1 {
	color: #102118;
	text-wrap: balance;
}

.mop-single__header .mop-badge {
	margin-bottom: 17px;
}

.mop-single__summary {
	max-width: 760px;
	margin: 20px 0 0;
	color: var(--mop-muted);
	font-size: clamp(17px, 2vw, 21px);
	line-height: 1.65;
}

.mop-single__featured {
	overflow: hidden;
	margin: 0 0 clamp(36px, 6vw, 72px);
	border: 1px solid rgba(11, 13, 12, .08);
	border-radius: 7px;
	aspect-ratio: 16 / 8;
	background: var(--mop-light);
	box-shadow: 0 20px 55px rgba(11, 13, 12, .12);
}

.mop-single__featured img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mop-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
	gap: clamp(30px, 6vw, 72px);
	align-items: start;
}

.mop-single__main {
	min-width: 0;
}

.mop-section {
	margin-bottom: clamp(38px, 5vw, 62px);
}

.mop-section h2,
.mop-project-facts h2,
.mop-testimonial h2,
.mop-cta h2 {
	margin: 0 0 20px;
	color: #102118;
	font-size: clamp(25px, 3vw, 34px);
	line-height: 1.2;
}

.mop-project-content {
	color: #303732;
	line-height: 1.75;
}

.mop-project-content > *:first-child {
	margin-top: 0;
}

.mop-project-content img,
.mop-project-content iframe {
	max-width: 100%;
}

.mop-services {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mop-services li {
	position: relative;
	padding: 15px 16px 15px 40px;
	border: 1px solid var(--mop-border);
	border-left: 3px solid var(--mop-green);
	background: #f7f9f8;
	line-height: 1.55;
}

.mop-services li::before {
	position: absolute;
	top: 14px;
	left: 14px;
	color: var(--mop-green);
	content: "✓";
	font-weight: 900;
}

.mop-project-facts {
	position: sticky;
	top: 30px;
	padding: clamp(25px, 3vw, 34px);
	border: 1px solid var(--mop-border);
	border-top: 4px solid var(--mop-green);
	border-radius: 5px;
	background: var(--mop-white);
	box-shadow: 0 16px 40px rgba(11, 13, 12, .09);
}

.mop-project-facts h2 {
	font-size: 24px;
}

.mop-project-facts dl,
.mop-project-facts dd {
	margin: 0;
}

.mop-project-facts dl > div {
	padding: 13px 0;
	border-bottom: 1px solid var(--mop-border);
}

.mop-project-facts dt {
	margin-bottom: 3px;
	color: var(--mop-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.mop-project-facts dd {
	font-weight: 700;
}

.mop-project-facts .mop-progress,
.mop-project-facts .mop-text-link {
	display: block;
	margin-top: 22px;
}

.mop-before-after,
.mop-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
}

.mop-before-after figure,
.mop-gallery a {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 0;
	aspect-ratio: 4 / 3;
	background: var(--mop-light);
}

.mop-before-after img,
.mop-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mop-before-after figcaption {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 6px 10px;
	background: var(--mop-charcoal);
	color: var(--mop-white);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.mop-gallery {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.mop-gallery a:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.mop-gallery a {
	border-radius: 4px;
	outline-offset: 3px;
}

.mop-gallery img {
	transition: transform .28s ease, filter .28s ease;
}

.mop-gallery a:hover img,
.mop-gallery a:focus-visible img {
	filter: brightness(.78);
	transform: scale(1.035);
}

.mop-gallery__zoom {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	width: 48px;
	height: 48px;
	align-items: center;
	justify-items: center;
	border: 1px solid rgba(255, 255, 255, .75);
	border-radius: 50%;
	background: rgba(11, 13, 12, .72);
	color: var(--mop-white);
	opacity: 0;
	transform: translate(-50%, -42%);
	transition: opacity .2s ease, transform .2s ease;
}

.mop-gallery__zoom svg {
	width: 23px;
	height: 23px;
	fill: currentColor;
}

.mop-gallery a:hover .mop-gallery__zoom,
.mop-gallery a:focus-visible .mop-gallery__zoom {
	opacity: 1;
	transform: translate(-50%, -50%);
}

.mop-video {
	position: relative;
	overflow: hidden;
	padding-top: 56.25%;
	background: var(--mop-charcoal);
}

.mop-video iframe,
.mop-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.mop-testimonial {
	margin-bottom: clamp(38px, 5vw, 62px);
	padding: clamp(25px, 4vw, 42px);
	border-left: 5px solid var(--mop-green);
	background: #f4f8f5;
}

.mop-testimonial blockquote,
.mop-testimonial p {
	margin: 0;
}

.mop-testimonial p {
	font-size: clamp(19px, 2vw, 24px);
	font-style: italic;
	line-height: 1.6;
}

.mop-project-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-block: clamp(40px, 6vw, 72px);
	padding-block: 20px;
	border-block: 1px solid var(--mop-border);
}

.mop-project-nav div:last-child {
	text-align: right;
}

.mop-project-nav a {
	color: var(--mop-charcoal);
	font-weight: 800;
	text-decoration: none;
}

.mop-cta {
	position: relative;
	display: flex;
	overflow: hidden;
	gap: 30px;
	align-items: center;
	justify-content: space-between;
	padding: clamp(30px, 5vw, 56px);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 6px;
	background:
		radial-gradient(circle at 85% 15%, rgba(25, 182, 62, .2), transparent 34%),
		linear-gradient(120deg, #07100b, #0b1f12);
	color: var(--mop-white);
	box-shadow: 0 18px 45px rgba(11, 13, 12, .14);
}

.mop-cta h2,
.mop-cta p {
	margin-top: 0;
}

.mop-cta h2 {
	margin-bottom: 10px;
	color: var(--mop-white);
}

.mop-cta p {
	max-width: 650px;
	margin-bottom: 0;
	color: #d5dbd7;
}

.mop-cta__actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 10px;
}

.mop-lightbox[hidden] {
	display: none;
}

.mop-lightbox {
	position: fixed;
	z-index: 2147483000;
	inset: 0;
	display: grid;
	align-items: center;
	justify-items: center;
	padding: clamp(56px, 7vw, 86px) clamp(58px, 8vw, 110px);
	background: rgba(3, 8, 5, .96);
	backdrop-filter: blur(8px);
}

.mop-lightbox-open {
	overflow: hidden;
}

.mop-lightbox__figure {
	display: grid;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	grid-template-rows: minmax(0, 1fr) auto;
}

.mop-lightbox__image {
	display: block;
	max-width: min(1180px, 100%);
	max-height: calc(100vh - 150px);
	margin: auto;
	border-radius: 4px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
	object-fit: contain;
}

.mop-lightbox__caption {
	display: flex;
	gap: 24px;
	justify-content: space-between;
	min-height: 32px;
	padding-top: 12px;
	color: #dbe5df;
	font-size: 14px;
}

.mop-lightbox__caption [data-mop-lightbox-counter] {
	margin-left: auto;
	white-space: nowrap;
}

.mop-lightbox__button {
	position: absolute;
	display: grid;
	width: 50px;
	height: 50px;
	align-items: center;
	justify-items: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .38);
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: var(--mop-white);
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.mop-lightbox__button:hover {
	border-color: var(--mop-green);
	background: var(--mop-green);
}

.mop-lightbox__button:focus-visible {
	outline: 3px solid #f3c300;
	outline-offset: 3px;
}

.mop-lightbox__button svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
}

.mop-lightbox__close {
	top: 22px;
	right: 22px;
}

.mop-lightbox__previous {
	top: 50%;
	left: 22px;
	transform: translateY(-50%);
}

.mop-lightbox__next {
	top: 50%;
	right: 22px;
	transform: translateY(-50%);
}

.mop-lightbox__previous:hover,
.mop-lightbox__next:hover {
	transform: translateY(-50%) scale(1.04);
}

@media (max-width: 960px) {
	.mop-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mop-single__layout {
		grid-template-columns: 1fr;
	}

	.mop-project-facts {
		position: static;
	}

	.mop-cta {
		align-items: flex-start;
		flex-direction: column;
	}

	.mop-lightbox {
		padding-inline: 70px;
	}
}

@media (max-width: 620px) {
	.mop-container {
		width: min(100% - 28px, 1380px);
	}

	.mop-archive__hero {
		padding-block: 58px 48px;
	}

	.mop-archive__hero h1 {
		font-size: clamp(38px, 13vw, 54px);
	}

	.mop-archive__intro {
		font-size: 16px;
	}

	.mop-grid,
	.mop-services,
	.mop-before-after {
		grid-template-columns: 1fr;
	}

	.mop-filters,
	.mop-filter-group {
		align-items: stretch;
		flex-direction: column;
	}

	.mop-filter,
	.mop-category-filter,
	.mop-category-filter select,
	.mop-filter-submit {
		width: 100%;
	}

	.mop-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mop-gallery a:first-child {
		grid-column: auto;
		grid-row: auto;
	}

	.mop-single__featured {
		aspect-ratio: 4 / 3;
	}

	.mop-single {
		padding-top: 28px;
		background: linear-gradient(180deg, #f4f8f5 0, var(--mop-white) 430px);
	}

	.mop-single .mop-single__header h1 {
		font-size: clamp(38px, 12vw, 54px);
	}

	.mop-project-nav {
		grid-template-columns: 1fr;
	}

	.mop-project-nav div:last-child {
		text-align: left;
	}

	.mop-cta__actions,
	.mop-cta__actions .mop-button {
		width: 100%;
	}

	.mop-lightbox {
		align-items: center;
		padding: 76px 14px 92px;
	}

	.mop-lightbox__image {
		max-height: calc(100vh - 190px);
	}

	.mop-lightbox__caption {
		flex-direction: column;
		gap: 3px;
		padding-inline: 4px;
	}

	.mop-lightbox__caption [data-mop-lightbox-counter] {
		margin-left: 0;
	}

	.mop-lightbox__close {
		top: 14px;
		right: 14px;
	}

	.mop-lightbox__previous,
	.mop-lightbox__next {
		top: auto;
		bottom: 20px;
		transform: none;
	}

	.mop-lightbox__previous {
		left: calc(50% - 62px);
	}

	.mop-lightbox__next {
		right: calc(50% - 62px);
	}

	.mop-lightbox__previous:hover,
	.mop-lightbox__next:hover {
		transform: scale(1.04);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mop-card,
	.mop-card__photo,
	.mop-gallery img,
	.mop-gallery__zoom,
	.mop-lightbox__button {
		transition: none;
	}
}
