@charset "UTF-8";

.home-services {
	--brand: #3e0093;
	--line: rgba(0, 0, 0, 0.14);
	--muted: rgba(0, 0, 0, 0.55);
	padding: clamp(72px, 8rem, 120px) 0 clamp(40px, 3.5rem, 56px);
	background: #fff;
	color: #000;
	overflow-x: clip;
}

.home-services__inner {
	width: 100%;
	margin: 0;
}

.home-services__head {
	max-width: 40em;
	margin: 0 var(--side-padding) clamp(36px, 3.5rem, 56px);
}

.home-services__eyebrow {
	margin: 0 0 clamp(12px, 1rem, 16px);
	font-size: clamp(14px, 1.125rem, 18px);
	font-weight: 300;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.home-services__eyebrow::before {
	content: '/ ';
}

.home-services__title {
	margin: 0 0 clamp(16px, 1.25rem, 20px);
	font-size: clamp(44px, 6.25rem, 100px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.03em;
}

.home-services__title span {
	font-weight: 700;
	color: var(--brand);
}

.home-services__lead {
	margin: 0;
	max-width: 28em;
	font-size: clamp(15px, 1.25rem, 20px);
	line-height: 1.5;
	color: var(--muted);
}

/* Editorial stacked rows — no cards */
.home-services__grid {
	display: flex;
	flex-direction: column;
	width: 100%;
	border-top: 1px solid var(--line);
}

.home-services__row {
	position: relative;
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(20px, 2.5rem, 48px);
	padding: clamp(28px, 3.25rem, 52px) var(--side-padding);
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid var(--line);
	overflow: hidden;
	isolation: isolate;
	transition: background-color 0.35s ease;
}

.home-services__row::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: var(--brand);
	transform: scaleY(1);
	transform-origin: center;
	transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1), width 0.35s ease;
	z-index: 2;
}

.home-services__row:hover::before,
.home-services__row:focus-visible::before {
	width: 5px;
}

.home-services__row::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.03) 0%,
		transparent 55%
	);
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 0;
	pointer-events: none;
}

.home-services__row:hover,
.home-services__row:focus-visible {
	background: rgba(0, 0, 0, 0.03);
}

.home-services__row:hover::before,
.home-services__row:focus-visible::before {
	transform: scaleY(1);
}

.home-services__row:hover::after,
.home-services__row:focus-visible::after {
	opacity: 1;
}

.home-services__index {
	position: relative;
	z-index: 1;
	width: 5.5rem;
	font-size: clamp(40px, 5rem, 80px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
	color: rgba(0, 0, 0, 0.18);
	transition:
		color 0.35s ease,
		transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.home-services__row:hover .home-services__index,
.home-services__row:focus-visible .home-services__index {
	color: var(--brand);
	transform: translateY(-4px);
}

.home-services__main {
	position: relative;
	z-index: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(10px, 0.875rem, 14px);
}

.home-services__name {
	margin: 0;
	font-size: clamp(28px, 3.5rem, 56px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--brand);
	transition: color 0.3s ease;
}

.home-services__row:hover .home-services__name,
.home-services__row:focus-visible .home-services__name {
	color: #000;
}

.home-services__desc {
	margin: 0;
	max-width: 36em;
	font-size: clamp(14px, 1.0625rem, 17px);
	line-height: 1.55;
	color: var(--muted);
}

.home-services__tags {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(8px, 0.75rem, 14px) clamp(14px, 1.25rem, 22px);
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
}

.home-services__tags li {
	position: relative;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: rgba(0, 0, 0, 0.65);
	font-size: clamp(12px, 0.8125rem, 13px);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: color 0.25s ease;
}

.home-services__tags li:not(:last-child)::after {
	content: '·';
	position: absolute;
	right: calc(-0.65em - 2px);
	color: rgba(0, 0, 0, 0.28);
}

.home-services__row:hover .home-services__tags li,
.home-services__row:focus-visible .home-services__tags li {
	color: rgba(0, 0, 0, 0.85);
}

.home-services__cta {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	white-space: nowrap;
	font-size: clamp(13px, 0.9375rem, 15px);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(0, 0, 0, 0.65);
	transition: color 0.3s ease;
}

.home-services__cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 50%;
	transition:
		background-color 0.3s ease,
		border-color 0.3s ease,
		color 0.3s ease,
		transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.home-services__cta-icon svg,
.home-services__cta-arrow {
	display: block;
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.home-services__row:hover .home-services__cta,
.home-services__row:focus-visible .home-services__cta {
	color: #000;
}

.home-services__row:hover .home-services__cta-icon,
.home-services__row:focus-visible .home-services__cta-icon {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
	transform: translateX(6px);
}

.home-services__footer {
	display: flex;
	justify-content: flex-start;
	margin: clamp(36px, 3rem, 48px) var(--side-padding) 0;
}

.home-services__all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: 52px;
	padding: 0 clamp(24px, 2rem, 32px);
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 0;
	background: transparent;
	color: #000 !important;
	font-size: clamp(14px, 1rem, 16px);
	font-weight: 600;
	text-decoration: none;
	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease;
}

.home-services__all:hover {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff !important;
	transform: translateY(-2px);
}

/* Scroll reveal */
.home-services.js_detect-scroll .home-services__head,
.home-services.js_detect-scroll .home-services__row,
.home-services.js_detect-scroll .home-services__footer {
	backface-visibility: hidden;
	transition-property: transform, opacity;
	transition-duration: 0.9s, 0.6s;
	transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.home-services.js_detect-scroll:not(.visible) .home-services__head,
.home-services.js_detect-scroll:not(.visible) .home-services__row,
.home-services.js_detect-scroll:not(.visible) .home-services__footer {
	opacity: 0;
	pointer-events: none;
	transform: translate3d(0, var(--distance, 40px), 0);
}

.home-services.js_detect-scroll.visible .home-services__head {
	transition-delay: calc(var(--delay, 0.1s) * 0);
}

.home-services.js_detect-scroll.visible .home-services__row:nth-child(1) {
	transition-delay: calc(var(--delay, 0.1s) * 1);
}

.home-services.js_detect-scroll.visible .home-services__row:nth-child(2) {
	transition-delay: calc(var(--delay, 0.1s) * 2);
}

.home-services.js_detect-scroll.visible .home-services__row:nth-child(3) {
	transition-delay: calc(var(--delay, 0.1s) * 3);
}

.home-services.js_detect-scroll.visible .home-services__footer {
	transition-delay: calc(var(--delay, 0.1s) * 4);
}

@media (max-width: 899px) {
	.home-services__row {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas:
			"index main"
			"cta cta";
		gap: 16px 20px;
		padding-top: clamp(24px, 2rem, 32px);
		padding-bottom: clamp(24px, 2rem, 32px);
	}

	.home-services__index {
		grid-area: index;
		align-self: start;
		width: auto;
		font-size: clamp(28px, 8vw, 40px);
		padding-top: 4px;
	}

	.home-services__main {
		grid-area: main;
	}

	.home-services__cta {
		grid-area: cta;
		justify-self: start;
		padding-left: 0;
	}

	.home-services__name {
		font-size: clamp(26px, 8vw, 36px);
	}

	.home-services__title {
		font-size: clamp(40px, 12vw, 64px);
	}
}

@media (max-width: 480px) {
	.home-services__cta-text {
		display: none;
	}

	/* Reserve space so wrapped text can't sit under the fixed floating chat button */
	.home-services__desc,
	.home-services__tags {
		padding-right: 64px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-services.js_detect-scroll .home-services__head,
	.home-services.js_detect-scroll .home-services__row,
	.home-services.js_detect-scroll .home-services__footer,
	.home-services__row,
	.home-services__row::before,
	.home-services__row::after,
	.home-services__index,
	.home-services__cta-icon,
	.home-services__all {
		transition: none !important;
		animation: none !important;
		transform: none !important;
		opacity: 1 !important;
	}
}
