.page-services {
	overflow-x: clip;
	background: var(--color-bg);
	color: var(--color-text);
}

.services-shell {
	width: min(100% - 3rem, var(--container));
	max-width: var(--container);
	margin-inline: auto;
}

.services-kicker {
	font: 800 0.66rem/1 "Inter", sans-serif;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 1rem;
}

.center-text {
	text-align: center;
}

.section-title {
	display: grid;
	gap: 0.75rem;
	margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-title.center {
	justify-items: center;
	text-align: center;
}

.section-title h2,
.services-hero-content h1,
.service-panel-copy h2,
.technical-copy h2,
.services-cta-panel h2 {
	font-size: clamp(2rem, 7vw, 5.8rem);
	font-weight: 900;
	line-height: 0.9;
	text-transform: uppercase;
	letter-spacing: -0.04em;
}

.services-hero-content h1 {
	font-weight: 300;
}

.section-title h2 span,
.technical-copy h2 span,
.section-title span {
	color: var(--color-primary);
	font-weight: 300;
}

.services-hero-content h1 span {
	display: block;
	color: var(--color-primary);
	font-weight: 900;
}

.services-cta-panel h2 {
	color: var(--color-primary);
}

.mini-bar {
	width: 6rem;
	height: 0.2rem;
	background: var(--color-primary);
}

.services-hero {
	position: relative;
	min-height: clamp(35rem, 90vh, 46rem);
	display: grid;
	align-items: center;
	padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.services-hero-media,
.service-panel-media,
.technical-media,
.services-cta-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.services-hero-media img,
.service-panel-media img,
.technical-media img,
.services-cta-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.services-hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, color-mix(in srgb, var(--color-bg) 95%, transparent), color-mix(in srgb, var(--color-bg) 70%, transparent) 38%, transparent);
}

.services-hero-content {
	position: relative;
	z-index: 1;
	max-width: 56rem;
}

.services-hero-content p {
	font-size: clamp(1rem, 2.2vw, 1.2rem);
	line-height: 1.7;
	max-width: 40ch;
	color: color-mix(in srgb, var(--color-text-muted) 85%, var(--color-text));
	margin-bottom: 1.8rem;
}

.services-showcase {
	background: var(--color-surface-lowest);
}

.service-panel {
	position: relative;
	min-height: clamp(28rem, 85vh, 51rem);
	display: grid;
	align-items: center;
	overflow: hidden;
	border: 1px solid transparent;
	transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-panel:hover {
	transform: translateY(-0.25rem);
	border-color: rgba(255, 255, 255, 0.15);
	box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.08);
}

.service-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, color-mix(in srgb, var(--color-bg) 92%, transparent), color-mix(in srgb, var(--color-bg) 76%, transparent) 35%, transparent);
}

.service-panel.is-right::before {
	background: linear-gradient(270deg, color-mix(in srgb, var(--color-bg) 92%, transparent), color-mix(in srgb, var(--color-bg) 76%, transparent) 35%, transparent);
}

.service-panel-inner {
	position: relative;
	z-index: 2;
	padding-block: clamp(4rem, 10vw, 7.5rem);
	display: flex;
	justify-content: flex-start;
}

.service-panel-inner.align-right {
	justify-content: flex-end;
}

.service-panel-copy {
	max-width: 40rem;
}

.service-panel-copy span {
	display: inline-block;
	font: 900 1.3rem/1 "Epilogue", sans-serif;
	color: var(--color-primary);
	margin-bottom: 0.7rem;
}

.service-panel-copy h2 {
	font-size: clamp(2rem, 7vw, 5.1rem);
	margin-bottom: 1rem;
}

.service-panel-copy p {
	font-size: clamp(1.05rem, 2.2vw, 1.6rem);
	line-height: 1.5;
	color: color-mix(in srgb, var(--color-text-muted) 82%, var(--color-text));
	margin-bottom: 1.8rem;
	max-width: 30ch;
}

.workflow,
.faq,
.testimonials {
	padding: clamp(4rem, 8vw, 7rem) 0;
}

.workflow {
	background: var(--color-surface-lowest);
}

.workflow-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.workflow-grid article {
	background: var(--color-surface);
	padding: 1.2rem;
	border: 1px solid color-mix(in srgb, var(--color-outline-variant) 25%, transparent);
	transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.workflow-grid article:hover {
	transform: translateY(-0.15rem);
	border-color: color-mix(in srgb, var(--color-outline-variant) 45%, transparent);
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.06);
}

.workflow-grid span {
	display: inline-grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 999px;
	font: 800 0.8rem/1 "Epilogue", sans-serif;
	background: var(--color-primary);
	color: #fff;
	margin-bottom: 0.85rem;
}

.workflow-grid h3 {
	font-size: 1.2rem;
	text-transform: uppercase;
	margin-bottom: 0.4rem;
}

.workflow-grid p {
	font-size: 0.88rem;
	color: var(--color-text-muted);
}

.recent-work {
	padding-block: clamp(4rem, 9vw, 7rem);
}

.masonry-grid {
	column-count: 1;
	column-gap: 1rem;
}

.masonry-card {
	break-inside: avoid;
	margin-bottom: 1rem;
	position: relative;
	overflow: hidden;
	border-radius: 0.5rem;
	border: 1px solid transparent;
	transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.masonry-card:hover {
	transform: translateY(-0.15rem);
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
}

.masonry-card img {
	width: 100%;
	height: auto;
	display: block;
	filter: saturate(0.78);
	transition: transform 0.5s ease, filter 0.4s ease;
}

.masonry-card .overlay {
	position: absolute;
	inset: 0;
	padding: 1.2rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--color-bg) 92%, transparent));
	opacity: 0;
	transition: opacity 0.3s ease;
}

.masonry-card:hover img {
	transform: scale(1.05);
	filter: saturate(1);
}

.masonry-card:hover .overlay {
	opacity: 1;
}

.masonry-card .overlay span {
	font: 700 0.65rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--color-primary);
	margin-bottom: 0.45rem;
}

.project-media-fallback {
	min-height: 16rem;
	display: grid;
	place-items: center;
	text-align: center;
	padding: 1.6rem 1.2rem;
	background: var(--color-surface-lowest);
	color: var(--color-text-muted);
	font: 700 0.9rem/1.4 "Inter", sans-serif;
}

.project-media-fallback .fallback-label {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 0.45rem;
}

.project-media-fallback p {
	margin: 0;
}

.masonry-card .overlay h4 {
	font-size: 1.18rem;
	text-transform: uppercase;
}

.faq {
	background: var(--color-surface-lowest);
}

.faq .slim {
	max-width: 56rem;
}

.faq-list {
	display: grid;
	gap: 0.6rem;
}

.faq-list details {
	border: 1px solid color-mix(in srgb, var(--color-outline-variant) 30%, transparent);
	background: var(--color-surface-low);
}

.faq-list summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	padding: 1rem 1.1rem;
	cursor: pointer;
}

.faq-list summary h4 {
	font-size: 1.1rem;
	text-transform: uppercase;
}

.faq-list details[open] summary .material-symbols-outlined {
	transform: rotate(180deg);
}

.faq-list summary .material-symbols-outlined {
	transition: transform 0.3s ease;
}

.faq-list details p {
	padding: 0 1.1rem 1rem;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--color-text-muted);
	border-top: 1px solid color-mix(in srgb, var(--color-outline-variant) 22%, transparent);
}

.technical {
	background: var(--color-bg);
	padding-block: clamp(2.5rem, 6vw, 5rem);
}

.technical-grid {
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
}

.technical-copy {
	background: var(--color-surface-lowest);
	padding: clamp(2rem, 5vw, 4rem);
}

.technical-copy h2 {
	font-size: clamp(2rem, 6.2vw, 4.4rem);
	margin-bottom: 1.6rem;
}

.spec-list {
	display: grid;
	gap: 0.65rem;
}

.spec-list div {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid color-mix(in srgb, var(--color-outline-variant) 30%, transparent);
}

.spec-list span {
	font: 700 0.7rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	color: var(--color-text-muted);
}

.spec-list strong {
	font: 700 0.95rem/1.5 "Inter", sans-serif;
}

.technical-media {
	position: relative;
	min-height: 20rem;
}

.technical-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, color-mix(in srgb, var(--color-surface-lowest) 95%, transparent), transparent 45%);
}

.grade-preview {
	padding-block: clamp(4rem, 8vw, 7rem);
}

.preview-head {
	display: grid;
	gap: 1rem;
	margin-bottom: 2rem;
}

.preview-head h2 {
	font-size: clamp(2rem, 4.6vw, 3.4rem);
	text-transform: uppercase;
	margin-bottom: 0.35rem;
}

.preview-head p {
	max-width: 52ch;
	color: var(--color-text-muted);
}

.preview-head a {
	font: 800 0.75rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--color-primary);
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.preview-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.6rem;
}

.preview-grid article img {
	aspect-ratio: 16 / 9;
	border-radius: 0.45rem;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.6);
	transition: filter 0.4s ease;
}

.preview-grid article:hover img {
	filter: saturate(1);
}

.preview-grid h5 {
	font-size: 1.1rem;
	margin-top: 0.75rem;
}

.preview-grid p {
	font: 700 0.66rem/1 "Inter", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-outline);
	margin-top: 0.35rem;
}

.testimonials {
	padding-top: clamp(4rem, 8vw, 7rem);
	padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.testimonial-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 92%;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 0.8rem;
	scrollbar-width: none;
}

.testimonial-track::-webkit-scrollbar {
	display: none;
}

.testimonial-card {
	scroll-snap-align: center;
	background: var(--color-surface-low);
	border: 1px solid color-mix(in srgb, var(--color-outline-variant) 25%, transparent);
	padding: 1.3rem;
	display: grid;
	gap: 1rem;
}

.testimonial-card .quote {
	font-size: 2.1rem;
	color: var(--color-primary);
}

.testimonial-card p {
	font-style: italic;
	font-size: 1.02rem;
	line-height: 1.7;
	color: var(--color-text-muted);
}

.author {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.author img {
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 999px;
	object-fit: cover;
	filter: grayscale(1);
}

.author h6 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.author p {
	font: 700 0.62rem/1 "Inter", sans-serif;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-outline);
	margin-top: 0.2rem;
}

.track-dots {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.9rem;
}

.track-dots button {
	width: 2.8rem;
	height: 0.24rem;
	border: 0;
	padding: 0;
	background: color-mix(in srgb, var(--color-text-muted) 35%, transparent);
}

.track-dots button.is-active {
	background: var(--color-primary);
}

.services-cta {
	padding-bottom: clamp(4rem, 8vw, 7rem);
}

.services-cta-panel {
	position: relative;
	overflow: hidden;
	background: var(--color-surface-low);
	padding: clamp(3rem, 8vw, 8rem) clamp(1.5rem, 4vw, 4rem);
	display: grid;
	justify-items: center;
	text-align: center;
	isolation: isolate;
}

.services-cta-bg {
	opacity: 0.12;
}

.services-cta-panel h2 {
	position: relative;
	z-index: 1;
	font-size: clamp(2.1rem, 8vw, 6rem);
	color: var(--color-text);
	margin-bottom: 1rem;
}

.services-cta-panel p {
	position: relative;
	z-index: 1;
	max-width: 40ch;
	margin-bottom: 1.8rem;
	color: var(--color-text-muted);
}

.services-cta-panel .btn {
	position: relative;
	z-index: 1;
}

[data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (min-width: 780px) {
	.workflow-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.spec-list div {
		grid-template-columns: 1fr 1fr;
	}

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

	.preview-grid .offset {
		padding-top: 4rem;
	}

	.testimonial-track {
		grid-auto-columns: 70%;
	}
}

@media (min-width: 1100px) {
	.workflow-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.masonry-grid {
		column-count: 3;
		column-gap: 1.2rem;
	}

	.technical-grid {
		grid-template-columns: 1fr 1fr;
		min-height: 42rem;
	}

	.technical-copy {
		display: grid;
		align-content: center;
	}

	.testimonial-track {
		grid-auto-columns: 45%;
	}
}

@media (max-width: 850px) {
	.services-hero {
		min-height: 32rem;
	}

	.service-panel-copy p {
		max-width: 38ch;
	}
}
