/**
 * Sybrix Services page — premium editorial presentation
 * Scoped to body.sybrix-services-page
 */

body.sybrix-services-page .sybrix-services-main {
	background: var(--sybrix-bg);
}

body.sybrix-services-page .sybrix-section {
	padding-block: var(--sybrix-section-y);
}

/* -------------------------------------------------------------------------- */
/* Media slots — neutral placeholders for bespoke graphics                    */
/* -------------------------------------------------------------------------- */

body.sybrix-services-page .sybrix-svc-slot {
	width: 100%;
	border: 1px solid var(--sybrix-line);
	border-radius: var(--sybrix-radius-sm);
	background:
		linear-gradient(135deg, rgba(15, 118, 110, 0.04) 0%, transparent 55%),
		repeating-linear-gradient(
			-45deg,
			transparent,
			transparent 11px,
			rgba(20, 20, 20, 0.018) 11px,
			rgba(20, 20, 20, 0.018) 12px
		),
		var(--sybrix-surface);
	overflow: hidden;
	transition: transform var(--sybrix-duration) var(--sybrix-ease);
}

body.sybrix-services-page .sybrix-svc-slot--4-3 {
	aspect-ratio: 4 / 3;
}

body.sybrix-services-page .sybrix-svc-slot--1-1 {
	aspect-ratio: 1 / 1;
}

body.sybrix-services-page .sybrix-svc-slot img {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

body.sybrix-services-page .sybrix-svc-slot--filled {
	border: 0;
	background: transparent;
	aspect-ratio: auto;
	overflow: visible;
}

body.sybrix-services-page .sybrix-svc-slot--filled img {
	border-radius: var(--sybrix-radius-sm);
}

@media (prefers-reduced-motion: no-preference) {
	body.sybrix-services-page .sybrix-svc-detail:hover .sybrix-svc-slot,
	body.sybrix-services-page .sybrix-svc-hero__media:hover .sybrix-svc-slot,
	body.sybrix-services-page .sybrix-svc-architecture__media:hover .sybrix-svc-slot {
		transform: scale(1.008);
	}
}

/* -------------------------------------------------------------------------- */
/* 01 Hero                                                                    */
/* -------------------------------------------------------------------------- */

body.sybrix-services-page .sybrix-svc-hero {
	padding-top: clamp(2.5rem, 6vw, 4.5rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
	background: var(--sybrix-surface);
	border-bottom: 1px solid var(--sybrix-line);
}

body.sybrix-services-page .sybrix-svc-hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
}

@media (min-width: 1024px) {
	body.sybrix-services-page .sybrix-svc-hero__grid {
		grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
		gap: clamp(2.5rem, 4.5vw, 4.5rem);
	}
}

body.sybrix-services-page .sybrix-svc-hero__title {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(2.35rem, 5.5vw, 4rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.035em;
	color: var(--sybrix-ink);
	margin: 0 0 1.35rem;
	max-width: 11ch;
}

body.sybrix-services-page .sybrix-svc-hero__title-line {
	display: block;
}

body.sybrix-services-page .sybrix-svc-hero__lead {
	font-size: var(--sybrix-lead);
	line-height: 1.65;
	color: var(--sybrix-muted);
	margin: 0 0 1.85rem;
	max-width: 36rem;
}

body.sybrix-services-page .sybrix-svc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1.25rem;
	align-items: center;
}

/* -------------------------------------------------------------------------- */
/* 02 Capabilities                                                            */
/* -------------------------------------------------------------------------- */

body.sybrix-services-page .sybrix-svc-capabilities {
	background: var(--sybrix-bg);
}

body.sybrix-services-page .sybrix-svc-capabilities__head {
	margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
	max-width: 36rem;
}

body.sybrix-services-page .sybrix-svc-capabilities__title {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(1.85rem, 3.8vw, 2.75rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.028em;
	margin: 0;
}

body.sybrix-services-page .sybrix-svc-capabilities__title-line {
	display: block;
}

body.sybrix-services-page .sybrix-svc-capabilities__list {
	border-top: 1px solid var(--sybrix-line);
}

body.sybrix-services-page .sybrix-svc-capability {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 1rem 1.25rem;
	align-items: start;
	padding: clamp(1.35rem, 3vw, 2rem) 0;
	border-bottom: 1px solid var(--sybrix-line);
	transition: background var(--sybrix-duration) var(--sybrix-ease);
}

@media (min-width: 768px) {
	body.sybrix-services-page .sybrix-svc-capability {
		grid-template-columns: 4.5rem 1fr auto;
		gap: 1.5rem 2rem;
		align-items: center;
		padding: clamp(1.5rem, 2.5vw, 2.25rem) 0;
	}
}

@media (prefers-reduced-motion: no-preference) {
	body.sybrix-services-page .sybrix-svc-capability:hover {
		background: rgba(255, 255, 255, 0.45);
	}
}

body.sybrix-services-page .sybrix-svc-capability__num {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--sybrix-line);
}

body.sybrix-services-page .sybrix-svc-capability__title {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(1.25rem, 2.2vw, 1.65rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0 0 0.45rem;
}

body.sybrix-services-page .sybrix-svc-capability__title a {
	text-decoration: none;
	color: inherit;
}

body.sybrix-services-page .sybrix-svc-capability__title a:hover {
	color: var(--sybrix-accent);
}

body.sybrix-services-page .sybrix-svc-capability__text {
	font-size: var(--sybrix-body);
	line-height: 1.65;
	color: var(--sybrix-muted);
	margin: 0;
	max-width: 42rem;
}

body.sybrix-services-page .sybrix-svc-capability__link {
	font-size: 1.35rem;
	line-height: 1;
	color: var(--sybrix-muted);
	text-decoration: none;
	padding: 0.35rem;
	transition: transform var(--sybrix-duration) var(--sybrix-ease), color var(--sybrix-duration) var(--sybrix-ease);
}

@media (prefers-reduced-motion: no-preference) {
	body.sybrix-services-page .sybrix-svc-capability:hover .sybrix-svc-capability__link {
		transform: translateX(3px);
		color: var(--sybrix-accent);
	}
}

/* -------------------------------------------------------------------------- */
/* 03 Architecture                                                            */
/* -------------------------------------------------------------------------- */

body.sybrix-services-page .sybrix-svc-architecture {
	background: var(--sybrix-surface);
	border-block: 1px solid var(--sybrix-line);
}

body.sybrix-services-page .sybrix-svc-architecture__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
}

@media (min-width: 1024px) {
	body.sybrix-services-page .sybrix-svc-architecture__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
		gap: clamp(2.5rem, 4vw, 4.5rem);
	}
}

body.sybrix-services-page .sybrix-svc-architecture__title {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(1.85rem, 3.6vw, 2.65rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.028em;
	margin: 0 0 1.15rem;
	max-width: 14ch;
}

body.sybrix-services-page .sybrix-svc-architecture__title-line {
	display: block;
}

body.sybrix-services-page .sybrix-svc-architecture__lead {
	font-size: var(--sybrix-lead);
	line-height: 1.65;
	color: var(--sybrix-muted);
	margin: 0 0 1.75rem;
	max-width: 36rem;
}

body.sybrix-services-page .sybrix-svc-architecture__layers {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--sybrix-line);
	border-radius: var(--sybrix-radius-sm);
	background: var(--sybrix-bg);
	overflow: hidden;
	max-width: 22rem;
}

body.sybrix-services-page .sybrix-svc-architecture__layers li {
	position: relative;
	padding: 0.75rem 1rem 0.75rem 2.25rem;
	font-family: var(--sybrix-font-mono);
	font-size: var(--sybrix-small);
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--sybrix-ink);
	border-bottom: 1px solid var(--sybrix-line);
}

body.sybrix-services-page .sybrix-svc-architecture__layers li:last-child {
	border-bottom: 0;
}

body.sybrix-services-page .sybrix-svc-architecture__layers li::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 50%;
	width: 0.35rem;
	height: 0.35rem;
	margin-top: -0.175rem;
	border-radius: 50%;
	background: var(--sybrix-accent);
	opacity: 0.75;
}

@media (prefers-reduced-motion: no-preference) {
	body.sybrix-services-page .sybrix-svc-architecture__layers li {
		opacity: 0;
		transform: translateY(6px);
		animation: sybrix-svc-layer-in 500ms var(--sybrix-ease) forwards;
	}

	body.sybrix-services-page .sybrix-svc-architecture__layers li:nth-child(1) { animation-delay: 80ms; }
	body.sybrix-services-page .sybrix-svc-architecture__layers li:nth-child(2) { animation-delay: 160ms; }
	body.sybrix-services-page .sybrix-svc-architecture__layers li:nth-child(3) { animation-delay: 240ms; }
	body.sybrix-services-page .sybrix-svc-architecture__layers li:nth-child(4) { animation-delay: 320ms; }
	body.sybrix-services-page .sybrix-svc-architecture__layers li:nth-child(5) { animation-delay: 400ms; }
}

@keyframes sybrix-svc-layer-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* -------------------------------------------------------------------------- */
/* 04 Detail sections                                                         */
/* -------------------------------------------------------------------------- */

body.sybrix-services-page .sybrix-svc-details {
	background: var(--sybrix-bg);
}

body.sybrix-services-page .sybrix-svc-details__stack {
	display: flex;
	flex-direction: column;
	gap: clamp(3.5rem, 8vw, 6rem);
}

body.sybrix-services-page .sybrix-svc-detail {
	scroll-margin-top: calc(var(--sybrix-header-h) + 1rem);
}

body.sybrix-services-page .sybrix-svc-detail__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.75rem, 4vw, 2.5rem);
	align-items: center;
}

@media (min-width: 1024px) {
	body.sybrix-services-page .sybrix-svc-detail__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
		gap: clamp(2.5rem, 4vw, 4rem);
	}

	body.sybrix-services-page .sybrix-svc-detail--reverse .sybrix-svc-detail__copy {
		order: 2;
	}

	body.sybrix-services-page .sybrix-svc-detail--reverse .sybrix-svc-detail__media {
		order: 1;
	}

	body.sybrix-services-page .sybrix-svc-detail:not(.sybrix-svc-detail--has-media) .sybrix-svc-detail__grid {
		grid-template-columns: 1fr;
		max-width: 42rem;
	}
}

body.sybrix-services-page .sybrix-svc-detail__num {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--sybrix-line);
	margin: 0 0 0.75rem;
}

body.sybrix-services-page .sybrix-svc-detail__title {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(1.65rem, 3vw, 2.35rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.025em;
	margin: 0 0 1rem;
	max-width: 16ch;
}

body.sybrix-services-page .sybrix-svc-detail__text {
	font-size: var(--sybrix-lead);
	line-height: 1.65;
	color: var(--sybrix-muted);
	margin: 0 0 1.25rem;
	max-width: 38rem;
}

body.sybrix-services-page .sybrix-svc-detail__areas {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.65rem;
}

body.sybrix-services-page .sybrix-svc-detail__areas li {
	font-size: var(--sybrix-small);
	font-weight: 550;
	color: var(--sybrix-ink);
	padding: 0.35rem 0.65rem;
	border: 1px solid var(--sybrix-line);
	border-radius: var(--sybrix-radius-sm);
	background: var(--sybrix-surface);
}

/* -------------------------------------------------------------------------- */
/* 05 Process                                                                 */
/* -------------------------------------------------------------------------- */

body.sybrix-services-page .sybrix-svc-process {
	background: var(--sybrix-surface);
	border-block: 1px solid var(--sybrix-line);
}

body.sybrix-services-page .sybrix-svc-process__head {
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
	max-width: 28rem;
}

body.sybrix-services-page .sybrix-svc-process__title {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(1.85rem, 3.6vw, 2.65rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.028em;
	margin: 0;
}

body.sybrix-services-page .sybrix-svc-process__title-line {
	display: block;
}

body.sybrix-services-page .sybrix-svc-process__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	border-top: 1px solid var(--sybrix-line);
}

@media (min-width: 768px) {
	body.sybrix-services-page .sybrix-svc-process__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.sybrix-services-page .sybrix-svc-process-step:nth-child(odd) {
		border-right: 1px solid var(--sybrix-line);
	}
}

@media (min-width: 1280px) {
	body.sybrix-services-page .sybrix-svc-process__steps {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	body.sybrix-services-page .sybrix-svc-process-step {
		border-right: 1px solid var(--sybrix-line);
	}

	body.sybrix-services-page .sybrix-svc-process-step:last-child {
		border-right: 0;
	}

	body.sybrix-services-page .sybrix-svc-process-step:nth-child(odd) {
		border-right: 1px solid var(--sybrix-line);
	}
}

body.sybrix-services-page .sybrix-svc-process-step {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border-bottom: 1px solid var(--sybrix-line);
	min-height: 100%;
}

@media (min-width: 1280px) {
	body.sybrix-services-page .sybrix-svc-process-step {
		border-bottom: 0;
		padding: 1.5rem 1.35rem;
	}

	body.sybrix-services-page .sybrix-svc-process-step:first-child {
		padding-left: 0;
	}

	body.sybrix-services-page .sybrix-svc-process-step:last-child {
		padding-right: 0;
	}
}

body.sybrix-services-page .sybrix-svc-process-step__num {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--sybrix-accent);
}

body.sybrix-services-page .sybrix-svc-process-step__title {
	font-family: var(--sybrix-font-ui);
	font-size: var(--sybrix-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0;
	color: var(--sybrix-ink);
}

body.sybrix-services-page .sybrix-svc-process-step__text {
	font-size: var(--sybrix-body);
	line-height: 1.6;
	color: var(--sybrix-muted);
	margin: 0;
}

body.sybrix-services-page .sybrix-svc-process__note {
	margin: clamp(2rem, 4vw, 2.75rem) 0 0;
	font-size: var(--sybrix-small);
	line-height: 1.65;
	color: var(--sybrix-muted);
	max-width: 40rem;
}

body.sybrix-services-page .sybrix-svc-process__note a {
	color: var(--sybrix-accent);
	font-weight: 550;
	text-decoration: none;
}

body.sybrix-services-page .sybrix-svc-process__note a:hover {
	text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* 06 Production thinking (dark)                                              */
/* -------------------------------------------------------------------------- */

body.sybrix-services-page .sybrix-svc-production {
	color: #ffffff;
	background:
		radial-gradient(ellipse 80% 60% at 100% 0%, rgba(15, 118, 110, 0.12) 0%, transparent 55%),
		var(--sybrix-dark);
}

body.sybrix-services-page .sybrix-svc-production .sybrix-eyebrow--light {
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.14em;
}

body.sybrix-services-page .sybrix-svc-production__head {
	margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
	max-width: 36rem;
}

body.sybrix-services-page .sybrix-svc-production__title {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(1.85rem, 3.8vw, 2.75rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.028em;
	color: var(--sybrix-dark-heading);
	margin: 0 0 1rem;
}

body.sybrix-services-page .sybrix-svc-production__title-line {
	display: block;
}

body.sybrix-services-page .sybrix-svc-production__lead {
	font-size: var(--sybrix-lead);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
	margin: 0;
	max-width: 34rem;
}

body.sybrix-services-page .sybrix-svc-production__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 3vw, 2rem);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: clamp(2rem, 4vw, 2.75rem);
}

@media (min-width: 640px) {
	body.sybrix-services-page .sybrix-svc-production__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(1.75rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem);
	}
}

@media (min-width: 1280px) {
	body.sybrix-services-page .sybrix-svc-production__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

body.sybrix-services-page .sybrix-svc-production-item__title {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(1.35rem, 2.2vw, 1.625rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #ffffff;
	margin: 0 0 0.65rem;
	opacity: 1;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.sybrix-services-page .sybrix-svc-production-item__text {
	font-size: var(--sybrix-body);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
	margin: 0;
	opacity: 1;
}

body.sybrix-services-page .sybrix-svc-production-item {
	padding-block: 0.25rem;
}

body.sybrix-services-page .sybrix-svc-production h3.sybrix-svc-production-item__title {
	color: #ffffff !important;
	opacity: 1 !important;
	font-family: var(--sybrix-font-serif) !important;
	font-weight: 700 !important;
}

body.sybrix-services-page .sybrix-svc-production p.sybrix-svc-production-item__text {
	color: rgba(255, 255, 255, 0.92) !important;
	opacity: 1 !important;
}

/* -------------------------------------------------------------------------- */
/* 07 Selected work                                                           */
/* -------------------------------------------------------------------------- */

body.sybrix-services-page .sybrix-svc-work {
	background: var(--sybrix-bg);
}

body.sybrix-services-page .sybrix-svc-work__head {
	margin-bottom: clamp(2rem, 4vw, 2.75rem);
	max-width: 32rem;
}

body.sybrix-services-page .sybrix-svc-work__title {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(1.85rem, 3.6vw, 2.65rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.028em;
	margin: 0;
}

body.sybrix-services-page .sybrix-svc-work__title-line {
	display: block;
}

body.sybrix-services-page .sybrix-svc-work .sybrix-work-grid--catalogue {
	gap: 1.25rem;
}

@media (min-width: 768px) {
	body.sybrix-services-page .sybrix-svc-work .sybrix-work-grid--catalogue {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	body.sybrix-services-page .sybrix-svc-work .sybrix-work-grid--catalogue {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

body.sybrix-services-page .sybrix-svc-work__foot {
	margin: clamp(2rem, 4vw, 2.75rem) 0 0;
}

/* -------------------------------------------------------------------------- */
/* 08 CTA                                                                     */
/* -------------------------------------------------------------------------- */

body.sybrix-services-page .sybrix-svc-cta {
	background: var(--sybrix-surface);
	border-top: 1px solid var(--sybrix-line);
}

body.sybrix-services-page .sybrix-svc-cta__inner {
	max-width: 40rem;
}

body.sybrix-services-page .sybrix-svc-cta__title {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(1.85rem, 3.8vw, 2.75rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.028em;
	margin: 0 0 1.15rem;
}

body.sybrix-services-page .sybrix-svc-cta__title-line {
	display: block;
}

body.sybrix-services-page .sybrix-svc-cta__lead {
	font-size: var(--sybrix-lead);
	line-height: 1.65;
	color: var(--sybrix-muted);
	margin: 0 0 1.85rem;
	max-width: 36rem;
}

body.sybrix-services-page .sybrix-svc-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1.25rem;
	align-items: center;
}

/* -------------------------------------------------------------------------- */
/* Reduced motion overrides                                                   */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	body.sybrix-services-page .sybrix-svc-architecture__layers li {
		opacity: 1;
		transform: none;
		animation: none;
	}

	body.sybrix-services-page .sybrix-svc-slot,
	body.sybrix-services-page .sybrix-svc-capability__link {
		transition: none;
	}
}
