/**
 * Homepage manifesto section — Figma node 1:2 (1661 artboard).
 * Stack: intro (right) → gap → label (inset) → full-bleed heading track.
 */

.sp-manifesto-scroll {
	position: relative;
}

.sp-manifesto-scroll[data-manifesto-pinned] {
	height: var(--sp-manifesto-scroll-height, auto);
}

.sp-manifesto {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: var(--sp-manifesto-pad-top) 0 var(--sp-manifesto-heading-bottom);
	background-color: var(--spaciefy-white);
	color: var(--spaciefy-black);
	overflow-x: clip;
	overflow-y: visible;
}

.sp-manifesto__inner {
	display: flex;
	flex-direction: column;
	width: var(--spaciefy-container-width);
	max-width: var(--sp-manifesto-container-max, var(--spaciefy-container));
	margin-left: auto;
	margin-right: auto;
}

.sp-manifesto__intro-wrap {
	display: flex;
	flex-shrink: 0;
	justify-content: flex-end;
	width: 100%;
}

.sp-manifesto__intro {
	flex: 0 1 var(--sp-manifesto-intro-max);
	width: 100%;
	max-width: var(--sp-manifesto-intro-max);
	margin: 0;
	font-family: var(--spaciefy-font-helvetica);
	font-size: var(--sp-manifesto-intro-size);
	font-style: normal;
	font-weight: 300;
	line-height: var(--sp-manifesto-intro-lh, 1.43);
	color: var(--spaciefy-black);
}

.sp-manifesto__statement {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-top: var(--sp-manifesto-intro-label-gap);
	padding-left: var(--sp-manifesto-statement-left);
	overflow: visible;
}

.sp-manifesto__label {
	flex-shrink: 0;
	margin: 0;
	font-family: var(--spaciefy-font-helvetica);
	font-size: var(--sp-manifesto-label-size);
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	letter-spacing: var(--sp-manifesto-label-tracking);
	text-transform: uppercase;
	color: var(--spaciefy-black);
	opacity: 0.4;
}

.sp-manifesto__heading-track {
	position: relative;
	flex-shrink: 0;
	width: 100%;
	max-width: 100%;
	margin: 0;
	overflow-x: visible;
	overflow-y: visible;
	padding: 0;
}

.sp-manifesto__heading {
	margin: 0;
	padding: 0;
	width: auto;
	max-width: 100%;
	font-family: var(--spaciefy-font-helvetica);
	font-size: var(--sp-manifesto-heading-size);
	font-style: normal;
	font-weight: 400;
	line-height: var(--sp-manifesto-heading-lh, 1.43);
	letter-spacing: var(--sp-manifesto-heading-tracking);
	color: var(--sp-manifesto-heading-color, #232325);
	white-space: normal;
	text-wrap: balance;
	display: block;
	overflow: visible;
	transform: none;
	will-change: auto;
}

/* Desktop — full-bleed parallax track breaks out of the page container */
@media (min-width: 769px) {
	.sp-manifesto__heading-track {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		overflow-x: clip;
		padding-bottom: 0.12em;
	}

	.sp-manifesto__heading {
		width: max-content;
		max-width: none;
		white-space: nowrap;
		transform: translate3d(0, 0, 0);
		will-change: transform;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sp-manifesto__heading {
		transform: none;
		will-change: auto;
	}
}

/* Mobile — intro stacks left at 767px and below */
@media (max-width: 768px) {
	.sp-manifesto {
		--sp-manifesto-statement-left: 0px;
		position: static;
	}

	.sp-manifesto__inner {
		padding-left: 0;
		padding-right: 0;
	}

	.sp-manifesto__intro-wrap {
		justify-content: flex-start;
	}

	.sp-manifesto__intro {
		flex-basis: auto;
		max-width: 100%;
	}

	.sp-manifesto__statement {
		padding-left: 0;
	}

	.sp-manifesto__label {
		text-align: left;
	}

	.sp-manifesto__heading-track,
	.sp-manifesto__heading {
		padding: 0;
		margin-left: 0;
		margin-right: 0;
	}

	.sp-manifesto__heading {
		transform: none !important;
		will-change: auto;
	}
}
