:root {
	--service-process-indent: 4rem;
}

#painting {
	width: 100%;
	height: 100vh;
	height: 100dvh;
	aspect-ratio: 3160 / 2000;
	background-color: transparent;
	padding: 0;
	margin: 0;
	position: absolute;
	top: 0;
	left: 0;
	overflow-x: clip;
	z-index: -1;
	pointer-events: none; /* Decorative backdrop only; never intercept clicks. */

	img {
		position: absolute;
		top: 0;
		left: 0;
		height: 100%;
		width: 100%;
		object-fit: cover;
		object-position: center bottom;
		animation: painting-fade-in 0.8s ease-out both;
	}
}

/* On mobile the body fills the viewport, so the scaled painting would push the page width out. Clip horizontally at the painting box; keep vertical overflow visible. */
@media (max-width: 768px) {
	#painting {
		overflow-x: clip;
		overflow-y: visible;
	}
}

@keyframes painting-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	#painting img {
		animation: none;
	}
}

#services {
	margin-bottom: 4rem;
	padding: 0rem 1rem 1rem 1rem;
	background-color: var(--color-blueprint);
}

.service {
	width: 100%;
	height: auto;
	position: relative;
	border-bottom: 0.75px solid var(--color-blueprint--darker);
	padding-bottom: 3rem;
	margin-bottom: 3rem;

	&:last-of-type, &:only-of-type {
		border-bottom: none;
		margin-bottom: 0;
		padding-bottom: 0;
	}

	.service__logo {
		grid-area: serviceLogo;
		align-self: stretch;
		width: fit-content;
		display: flex;
		align-items: center;
		justify-content: center;
		border-right: 0.75px solid var(--color-blueprint--darker);

		img {
			width: 16vh;
			object-fit: contain;
		}
	}

	.service__logo--burvo {
		background-color: var(--color-blueprint);
	}

	.service__title {
		grid-area: serviceTitle;
		width: 100%;
		font-size: 2rem;
		font-weight: 400;
		text-transform: none;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		padding: 0 1rem;
	}
}

.service__cta {
	margin: 1rem 0 0 var(--service-process-indent);
}

.service__intro {
	margin: 0 0 1rem 0;
	font-size: clamp(var(--font-size-base), 6vw, 1.6rem);
}

/*
	Full-width YouTube demo embed. Lives inside .service-process__details,
	so it deliberately skips the --service-process-indent used by the text
	content and spans the whole step. aspect-ratio keeps the 16:9 frame
	responsive; the iframe fills the box absolutely.
*/
.service__intro--video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin: 1rem 0 0 0;

	iframe {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
	}
}

.service-process + .button {
	margin-top: 2rem;
}

.service-process {
	margin-top: 2rem;

	.service-process__label {
		font-size: 1rem;
		margin: 3rem 0 2rem 0;

	}

	.service-process__label--turnaround {
		display: block;
		margin: 2rem 0 0 var(--service-process-indent);
	}

	.service-process__list {
		margin: 0;
	}

	.service-process__step {
		border-bottom: none;
		padding-bottom: 1rem;
	}

	.service-process__step--last-one {
		padding-bottom: 0;
	}

	.service-process__term {
		align-items: center;
		display: grid;
		font-family: "Oswald", sans-serif;
		grid-template-columns: var(--service-process-indent) 1fr;
		margin: 0;
	}

	.service-process__number {
		color: var(--color-burnt-sienna);
		font-size: 2rem;
		font-weight: 400;
		letter-spacing: 15%;
	}

	.service-process__title {
		font-size: 2rem;
		font-weight: 400;
	}

	.service-process__details {
		margin: 0;
	}

	.service-process__price {
		display: block;
		color: var(--color-jasmine);
		font-family: "Oswald", sans-serif;
		font-weight: 400;
		font-size: 1.5rem;
		margin: 0.35rem 0 0.25rem var(--service-process-indent);
	}

	.service-process__price--note {
		background-color: var(--color-jasmine);
	}

	.service-process__description {
		display: block;
		margin: 1rem 0 0 var(--service-process-indent);
	}

}

.service-where p {
	padding: 0.5rem 0 0 0.5rem;
}

/*
Pricing tariff table: one solid frame with internal hairline rules for a
Constructivist ledger look. The featured block gets a black title bar and
larger prices. --pricing-color lets a product modifier recolor the prices.
*/
.pricing {
	--pricing-color: var(--color-jasmine);
	--pricing-price-size: 1.25rem;
	border: 0.75px solid var(--color-porcelain);
	margin: 2rem 0;

	/* Label chip matches the service-process and footer label patterns. */
	.pricing__label {
		background-color: var(--color-blueprint);
		background-image: url("/assets/images/noise.svg");
		background-repeat: repeat;
		color: var(--color-porcelain);
		font-family: "Oswald", sans-serif;
		font-size: 1rem;
		font-weight: 600;
		letter-spacing: 0.1em;
		margin: 0 0 0.8rem;
		padding: 0.35rem 0.7rem;
		text-transform: uppercase;
		width: fit-content;
	}

	.pricing__block + .pricing__block {
		border-top: 0.75px solid var(--color-blueprint--darker);
	}

	/* Featured block: black title bar anchors the per-project fees. */
	.pricing__block--projects {
		--pricing-price-size: 1.6rem;

		.pricing__block-title {
			background-color: var(--color-blueprint);
			background-image: url("/assets/images/noise.svg");
			background-repeat: repeat;
			color: var(--color-porcelain);
			font-size: 0.9rem;
			font-weight: 600;
			letter-spacing: 0.1em;
			margin: 0;
			padding: 0.4rem 1rem;
		}
	}

	.pricing__list {
		margin: 0;
	}

	.pricing__row {
		align-items: baseline;
		display: flex;
		gap: 1rem;
		justify-content: space-between;
		padding: 0.7rem 1rem;

		& + .pricing__row {
			border-top: 0.75px solid var(--color-porcelain);
		}

		dt {
			font-weight: 500;
		}

		dd {
			color: var(--pricing-color);
			font-family: "Oswald", sans-serif;
			font-size: var(--pricing-price-size);
			margin: 0;
			text-align: right;
			white-space: nowrap;
		}
	}

	.pricing__unit {
		color: color-mix(in oklch, var(--color-blueprint) 60%, transparent);
		display: block;
		font-size: 0.65rem;
		font-weight: 400;
		letter-spacing: 0.1em;
		text-transform: uppercase;
	}

	/* Fine print lives inside the frame under a hairline rule. */
	.pricing__note {
		border-top: 0.75px solid var(--color-blueprint--darker);
		color: color-mix(in oklch, var(--color-blueprint) 70%, transparent);
		font-size: 0.9rem;
		margin: 0;
		padding: 0.6rem 1rem;

		& + .pricing__note {
			border-top: none;
			padding-top: 0.2rem;
		}
	}
}

/* See below @supports for how we're doing the headline's noise effect. */
#headline {
	position: relative;
	text-align: left;
	font-family: "Oswald", sans-serif;
	font-optical-sizing: auto; /* Use the optically aligned version */
	font-size: clamp(4.7rem, 14vw, 12rem);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 2rem;
	margin-top: 2rem;
	padding: 0;
	color: var(--color-blueprint--darker);
	-webkit-text-stroke: 3px var(--color-porcelain);
	z-index: 2;
}

#hello {
	font-size: clamp(var(--font-size-base), 6vw, 1.6rem);
	width: 100%;
	margin-top: 0rem;
	padding: 1rem 0rem 1rem 0rem;
	z-index: 2;

	.hello__intro {
		background-color: var(--color-porcelain);
		box-decoration-break: clone;
		-webkit-box-decoration-break: clone;
		color: var(--color-blueprint--darker);
		line-height: 1.9;
		padding: 0.1em 0.35em;
	}

	.live-bar {
		margin: 2rem 0 1rem 0;
	}
}
