/**
 * Neumiu Services Showcase
 * Isolated, progressively enhanced component styles.
 */

/*
 * Zeyna clips the page with overflow:hidden on .site-main. That value creates
 * a non-scrolling container and prevents descendant sticky elements from
 * tracking the viewport. The component adds this class before enhancement;
 * clip preserves Zeyna's visual clipping without changing sticky containment.
 */
.site-main.nm-services-showcase-page {
	overflow: visible;
}

@supports (overflow: clip) {
	.site-main.nm-services-showcase-page {
		overflow: clip;
	}
}

.nm-services-showcase {
	--nm-background: #f9f8f6;
	--nm-title: #141414;
	--nm-body: #656565;
	--nm-tag-text: #141414;
	--nm-accent: #ff1717;
	--nm-progress-line: rgba(20, 20, 20, 0.1);
	--nm-inactive: rgba(20, 20, 20, 0.32);
	--nm-image-size: 600px;
	--nm-wheel-size: clamp(620px, 85.5svh, 800px);
	--nm-media-opacity: 1;
	--nm-media-scale: 1;
	background: var(--nm-background);
	color: var(--nm-title);
	isolation: isolate;
	position: relative;
	width: 100%;
	overflow: clip;
}

.nm-services-showcase,
.nm-services-showcase *,
.nm-services-showcase *::before,
.nm-services-showcase *::after {
	box-sizing: border-box;
}

.nm-services-showcase__track,
.nm-services-showcase__scene,
.nm-services-showcase__grid,
.nm-services-showcase__slides {
	position: relative;
	width: 100%;
}

.nm-services-showcase__scene {
	min-height: 100svh;
}

.nm-services-showcase__grid {
	display: block;
	margin-inline: auto;
	max-width: 1560px;
	padding: 80px 64px;
}

.nm-services-showcase__wheel-wrap {
	display: none;
}

.nm-services-showcase__slides {
	display: flex;
	flex-direction: column;
}

.nm-services-showcase__slide {
	align-items: center;
	display: grid;
	flex: none;
	gap: 12px;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	min-height: 100svh;
	position: relative;
	width: 100%;
}

.nm-services-showcase:not(.is-enhanced) .nm-services-showcase__slide {
	content-visibility: auto;
	contain-intrinsic-size: auto 100svh;
}

.nm-services-showcase__copy {
	align-self: center;
	grid-column: 5 / span 6;
	justify-self: stretch;
	max-width: 540px;
	transform: translate3d(0, 0, 0);
	width: 100%;
}

.nm-services-showcase__copy-link {
	color: inherit;
	display: block;
	text-decoration: none;
}

.nm-services-showcase__copy-link:focus-visible {
	border-radius: 4px;
	outline: 2px solid var(--nm-accent);
	outline-offset: 8px;
}

.nm-services-showcase__title {
	color: var(--nm-title);
	font-family: "Fraunces Variable", Fraunces, "Iowan Old Style", Baskerville, Georgia, serif;
	font-size: clamp(48px, 4.7vw, 64px);
	font-style: normal;
	font-weight: 400;
	letter-spacing: -0.04em;
	line-height: 1.0625;
	margin: 0;
	padding: 0;
	text-wrap: balance;
}

.nm-services-showcase__description {
	color: var(--nm-body);
	font-family: Inter, "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.5;
	margin: 16px 0 0;
	max-width: 540px;
	padding: 0;
}

.nm-services-showcase__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
}

.nm-services-showcase__tag {
	background: #fff;
	border-radius: 100px;
	box-shadow:
		rgba(0, 0, 0, 0.04) 0 0 0 1px,
		rgba(0, 0, 0, 0.08) 0 1px 2px,
		rgba(0, 0, 0, 0.04) 0 4px 6px,
		rgba(0, 0, 0, 0.08) 0 24px 40px -16px;
	color: var(--nm-tag-text);
	font-family: Inter, "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 20px;
	padding: 6px 12px;
	white-space: nowrap;
}

.nm-services-showcase__media {
	align-self: center;
	grid-column: 11 / span 2;
	height: var(--nm-image-size);
	justify-self: end;
	margin: 0;
	position: relative;
	width: 1px;
}

.nm-services-showcase__media-motion {
	height: var(--nm-image-size);
	left: 50%;
	opacity: var(--nm-media-opacity);
	position: absolute;
	top: 50%;
	transform: translate3d(-50%, -50%, 0) scale(var(--nm-media-scale));
	transform-origin: 50% 50%;
	width: var(--nm-image-size);
}

.nm-services-showcase__image {
	display: block;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: center;
	user-select: none;
	width: 100%;
}

/* Enhanced scroll scene. The page continues to use native scrolling. */
.nm-services-showcase.is-enhanced {
	padding-block: 80px;
}

.nm-services-showcase.is-enhanced .nm-services-showcase__track {
	height: calc(var(--nm-count) * 100svh);
}

.nm-services-showcase.is-enhanced .nm-services-showcase__scene {
	height: 100svh;
	min-height: 0;
	position: sticky;
	top: 0;
}

.nm-services-showcase.is-enhanced .nm-services-showcase__grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	height: 100%;
	max-width: 1560px;
	padding: 0 64px;
}

.nm-services-showcase.is-enhanced .nm-services-showcase__wheel-wrap {
	align-items: center;
	display: flex;
	grid-column: 1 / span 2;
	height: 100%;
	justify-content: flex-end;
	min-width: 0;
	position: relative;
	z-index: 2;
}

.nm-services-showcase__wheel-positioner {
	flex: none;
	height: var(--nm-wheel-size);
	position: relative;
	width: var(--nm-wheel-size);
}

.nm-services-showcase__wheel-disc {
	border: 1px solid var(--nm-progress-line);
	border-radius: 50%;
	height: 100%;
	position: relative;
	transform: rotate(0deg);
	transform-origin: 50% 50%;
	width: 100%;
	will-change: transform;
}

.nm-services-showcase__point {
	height: 0;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: rotate(var(--nm-angle)) translateX(calc(var(--nm-wheel-size) / 2));
	transform-origin: 0 0;
	width: 0;
}

.nm-services-showcase__point-content {
	display: block;
	height: 0;
	left: 0;
	position: absolute;
	top: 0;
	width: 0;
}

.nm-services-showcase__dot {
	background: var(--nm-inactive);
	border-radius: 50%;
	height: 2px;
	left: 0;
	position: absolute;
	top: 0;
	transform: translate(-50%, -50%);
	transition: background-color 280ms ease, height 280ms ease, width 280ms ease;
	width: 2px;
}

.nm-services-showcase__dot::before {
	background: rgba(255, 23, 23, 0.16);
	background: color-mix(in srgb, var(--nm-accent) 16%, transparent);
	border-radius: inherit;
	content: "";
	inset: -4px;
	opacity: 0;
	position: absolute;
	transition: opacity 280ms ease;
}

.nm-services-showcase__number {
	color: var(--nm-inactive);
	font-family: "Fraunces Variable", Fraunces, Georgia, serif;
	font-size: 30px;
	font-weight: 400;
	left: 12px;
	letter-spacing: -0.04em;
	line-height: 36px;
	position: absolute;
	top: 0;
	transform: translateY(-50%);
	transition: color 280ms ease;
	white-space: nowrap;
}

.nm-services-showcase__point.is-active .nm-services-showcase__dot {
	background: var(--nm-accent);
	height: 10px;
	width: 10px;
}

.nm-services-showcase__point.is-active .nm-services-showcase__dot::before {
	opacity: 1;
}

.nm-services-showcase__point.is-active .nm-services-showcase__number {
	color: var(--nm-title);
}

.nm-services-showcase.is-enhanced .nm-services-showcase__slides {
	inset: 0;
	position: absolute;
}

.nm-services-showcase.is-enhanced .nm-services-showcase__slide {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	inset: 0;
	min-height: 0;
	opacity: 0;
	padding: 0 64px;
	pointer-events: none;
	position: absolute;
	visibility: hidden;
}

.nm-services-showcase.is-enhanced .nm-services-showcase__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
	z-index: 1;
}

.nm-services-showcase.is-enhanced .nm-services-showcase__slide.is-near {
	will-change: opacity;
}

.nm-services-showcase.is-enhanced .nm-services-showcase__slide.is-near .nm-services-showcase__copy {
	will-change: filter, opacity, transform;
}

.nm-services-showcase.is-enhanced .nm-services-showcase__slide.is-near .nm-services-showcase__media-motion {
	will-change: opacity, transform;
}

@supports not (height: 100svh) {
	.nm-services-showcase__scene,
	.nm-services-showcase__slide {
		min-height: 100vh;
	}

	.nm-services-showcase.is-enhanced .nm-services-showcase__track {
		height: calc(var(--nm-count) * 100vh);
	}

	.nm-services-showcase.is-enhanced .nm-services-showcase__scene {
		height: 100vh;
	}
}

/* Tablet and compact desktop. */
@media (min-width: 810px) and (max-width: 1199.98px) {
	.nm-services-showcase {
		--nm-wheel-size: clamp(600px, 85.5svh, 720px);
		--nm-image-size: 480px;
	}

	.nm-services-showcase__grid,
	.nm-services-showcase.is-enhanced .nm-services-showcase__grid,
	.nm-services-showcase.is-enhanced .nm-services-showcase__slide {
		padding-inline: 24px;
	}

	.nm-services-showcase.is-enhanced .nm-services-showcase__grid,
	.nm-services-showcase.is-enhanced .nm-services-showcase__slide,
	.nm-services-showcase__slide {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}

	.nm-services-showcase.is-enhanced .nm-services-showcase__wheel-wrap {
		grid-column: 1 / span 2;
	}

	.nm-services-showcase__copy {
		grid-column: 3 / span 4;
	}

	.nm-services-showcase__media {
		grid-column: 7 / span 2;
	}

	.nm-services-showcase__title {
		font-size: clamp(44px, 5vw, 54px);
	}
}

/* Mobile: wheel arc, centered copy, and illustration stacked below. */
@media (max-width: 809.98px) {
	.nm-services-showcase {
		--nm-image-size: min(76vw, 330px);
		--nm-wheel-size: clamp(700px, 195vw, 800px);
	}

	.nm-services-showcase.is-enhanced {
		padding-block: 0;
	}

	.nm-services-showcase__grid,
	.nm-services-showcase.is-enhanced .nm-services-showcase__grid {
		display: block;
		max-width: none;
		padding: 0;
	}

	.nm-services-showcase.is-enhanced .nm-services-showcase__wheel-wrap {
		display: block;
		height: 142px;
		left: 0;
		position: absolute;
		top: 0;
		width: 100%;
	}

	.nm-services-showcase__wheel-positioner {
		left: 50%;
		position: absolute;
		top: calc(96px - var(--nm-wheel-size));
		transform: translateX(-50%);
	}

	.nm-services-showcase__point {
		transform: rotate(var(--nm-mobile-angle)) translateX(calc(var(--nm-wheel-size) / 2));
	}

	.nm-services-showcase__point-content {
		transform: rotate(-90deg);
		transform-origin: 0 0;
	}

	.nm-services-showcase__number {
		font-size: 31px;
		left: 0;
		line-height: 34px;
		top: 17px;
		transform: translateX(-50%);
	}

	.nm-services-showcase.is-enhanced .nm-services-showcase__slide {
		display: block;
		padding: 0 16px;
	}

	.nm-services-showcase__copy,
	.nm-services-showcase.is-enhanced .nm-services-showcase__copy {
		grid-column: auto;
		left: 16px;
		margin-inline: auto;
		max-width: 390px;
		position: absolute;
		right: 16px;
		text-align: center;
		top: clamp(166px, 22.5svh, 194px);
		width: auto;
	}

	.nm-services-showcase__title {
		font-size: clamp(38px, 10.25vw, 43px);
		line-height: 1.075;
	}

	.nm-services-showcase__description {
		font-size: 16px;
		line-height: 1.45;
		margin-top: 28px;
		max-width: 380px;
		text-wrap: pretty;
	}

	.nm-services-showcase__tags {
		justify-content: center;
		margin-top: 28px;
	}

	.nm-services-showcase__tag {
		font-size: 14px;
	}

	.nm-services-showcase__media,
	.nm-services-showcase.is-enhanced .nm-services-showcase__media {
		bottom: calc(var(--nm-image-size) / 2 - 32px);
		grid-column: auto;
		height: 1px;
		left: 50%;
		position: absolute;
		width: 1px;
	}

	/* Accessible no-JS and reduced-motion layout. */
	.nm-services-showcase:not(.is-enhanced) .nm-services-showcase__grid {
		padding: 56px 20px;
	}

	.nm-services-showcase:not(.is-enhanced) .nm-services-showcase__slide {
		display: flex;
		flex-direction: column;
		gap: 44px;
		min-height: 0;
		padding: 56px 0;
	}

	.nm-services-showcase:not(.is-enhanced) .nm-services-showcase__copy {
		left: auto;
		position: relative;
		right: auto;
		top: auto;
	}

	.nm-services-showcase:not(.is-enhanced) .nm-services-showcase__media {
		bottom: auto;
		height: var(--nm-image-size);
		left: auto;
		margin-inline: auto;
		position: relative;
	}
}

@media (max-width: 380px) {
	.nm-services-showcase {
		--nm-wheel-size: 700px;
	}

	.nm-services-showcase__copy,
	.nm-services-showcase.is-enhanced .nm-services-showcase__copy {
		left: 14px;
		right: 14px;
	}

	.nm-services-showcase__title {
		font-size: 37px;
	}

	.nm-services-showcase__tag {
		font-size: 13px;
		padding-inline: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nm-services-showcase *,
	.nm-services-showcase *::before,
	.nm-services-showcase *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
