/**
 * NexGen home page sections (patterns/home-*.php).
 *
 * Child-owned composition styles. Every value reads a Pepti token first and
 * keeps the Figma value only as a fallback. Section anatomy is scoped to the
 * nx-* classes saved by the nexgen patterns, so no parent component changes.
 */

/* ---------------------------------------------------------------- base -- */

.nx-section {
	--nx-gutter: var(--pepti-size-spacing-primitive-xl, 100px);
	--nx-accent: var(--pepti-color-global-border-accent, #05f4f9);
	--nx-title-size: var(--pepti-type-heading-h1-tablet-semi-bold-font-size, 50px);
	position: relative;
	box-sizing: border-box;
	margin-block: 0;
	overflow-x: clip;
	color: var(--pepti-color-global-content-primary, #fff);
}

.wp-block-post-content > .nx-section + .nx-section {
	margin-block-start: 0;
}

.pepti-template-front-page:has(.nx-hero) {
	background-color: var(--pepti-color-global-surface-subtle, #081017);
}

.nx-container {
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: 1728px;
	margin-inline: auto;
	padding-inline: var(--nx-gutter);
}

.nx-section :where(.nx-heading) {
	display: flex;
	flex-direction: column;
	gap: var(--pepti-size-spacing-primitive-xxs, 10px);
}

.nx-section :where(.nx-heading) > * {
	margin: 0;
}

.nx-heading--center {
	align-items: center;
	text-align: center;
}

.nx-title {
	margin: 0;
	font-family: var(--pepti-type-heading-h1-tablet-semi-bold-font-family, "Space Grotesk", sans-serif);
	font-size: var(--nx-title-size);
	font-weight: var(--pepti-type-heading-h1-tablet-semi-bold-font-weight, 600);
	line-height: 1;
	color: var(--pepti-color-global-content-primary, #fff);
}

/* Eyebrow: uppercase label led by the Figma arrow. */
.nx-eyebrow {
	position: relative;
	margin: 0;
	font-family: var(--pepti-type-home-hero-desktop-eyebrow-font-family, "Space Grotesk", sans-serif);
	font-size: var(--pepti-type-home-hero-desktop-eyebrow-font-size, 14px);
	font-weight: var(--pepti-type-home-hero-desktop-eyebrow-font-weight, 500);
	line-height: 1.4;
	letter-spacing: 0.28px;
	text-transform: uppercase;
	color: var(--pepti-color-global-content-primary, #fff);
}

.nx-eyebrow:not(.nx-eyebrow--center)::before {
	content: "";
	position: absolute;
	inset-block-start: calc(50% - 5.7735px);
	inset-inline-start: -140px;
	inline-size: 125.774px;
	block-size: 11.547px;
	background: url("../images/home/eyebrow-arrow.svg") no-repeat 0 0 / 100% 100%;
	pointer-events: none;
}

.nx-eyebrow--short:not(.nx-eyebrow--center)::before {
	inset-inline-start: -120px;
	inline-size: 105.774px;
	background-image: url("../images/home/eyebrow-arrow-short.svg");
}

/* Centered eyebrow: Figma lines run from the text to the viewport edges. */
.nx-eyebrow--center {
	display: flex;
	align-items: center;
	gap: 20px;
	inline-size: 100vw;
	margin-inline: calc(50% - 50vw);
	text-align: center;
	white-space: nowrap;
}

.nx-eyebrow--center::before,
.nx-eyebrow--center::after {
	content: "";
	flex: 1 1 0;
	min-inline-size: 0;
	block-size: 11.547px;
	background-repeat: no-repeat;
	background-size: 779.773px 11.547px;
}

.nx-eyebrow--center::before {
	background-image: url("../images/home/eyebrow-line-left.svg");
	background-position: right center;
}

.nx-eyebrow--center::after {
	background-image: url("../images/home/eyebrow-line-right.svg");
	background-position: left center;
}

.nx-eyebrow--wide::before {
	background-image: url("../images/home/eyebrow-line-left-wide.svg");
}

.nx-eyebrow--wide::after {
	background-image: url("../images/home/eyebrow-line-right-wide.svg");
}

/* Layout children: the nx-* grids own their gaps, not WordPress flow margins. */
.nx-section.nx-section > *,
.nx-section.nx-section > .nx-container > *,
.nx-section :where(.nx-hero__benefits, .nx-ops__grid, .nx-ops__card, .nx-benefit, .nx-about__content, .nx-partner__inner, .nx-hero__intro, .nx-how__inner, .nx-ops__inner, .nx-how__stage) > * {
	margin-block: 0;
}

/*
 * Secondary button with the Figma arrow-right icon. The mask is set on the
 * pseudo-element itself: a relative url() inside --pepti-button-icon-mask would
 * resolve against the parent stylesheet that consumes the variable.
 */
.wp-block-button.nx-button--arrow-right > .wp-block-button__link::before {
	-webkit-mask-image: url("../images/home/icon-arrow-right.svg");
	mask-image: url("../images/home/icon-arrow-right.svg");
}

/* ---------------------------------------------------------------- hero -- */

.nx-hero {
	--nx-header-space: 120px;
	display: flex;
	flex-direction: column;
	padding-block-start: var(--nx-header-space);
	background-color: var(--pepti-color-global-surface-base, #00080f);
	background-image:
		linear-gradient(90deg, rgba(0, 10, 16, 0.8) 0%, rgba(0, 8, 13, 0.5) 35%, rgba(0, 0, 0, 0) 50%),
		url("../images/home/hero-bg.jpg");
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover;
}

.nx-hero__intro {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--pepti-size-spacing-primitive-md, 40px);
	min-block-size: 560px;
	padding-block: var(--pepti-size-spacing-primitive-xl, 100px);
}

.nx-hero__title,
.nx-hero__text {
	max-inline-size: 700px;
	margin: 0;
}

.nx-hero__title {
	font-family: var(--pepti-type-home-hero-desktop-title-font-family, "Space Grotesk", sans-serif);
	font-size: var(--pepti-type-home-hero-desktop-title-font-size, 60px);
	font-weight: var(--pepti-type-home-hero-desktop-title-font-weight, 600);
	line-height: 1;
	color: var(--pepti-color-global-content-primary, #fff);
}

.nx-hero__text {
	margin-block-start: calc(var(--pepti-size-spacing-primitive-sm, 30px) - var(--pepti-size-spacing-primitive-md, 40px));
	font-family: var(--pepti-type-home-hero-desktop-body-font-family, "Poppins", sans-serif);
	font-size: var(--pepti-type-home-hero-desktop-body-font-size, 16px);
	line-height: 1.4;
	color: var(--pepti-color-global-content-base, #e6e7e7);
}

.nx-hero__actions,
.nx-partner__actions,
.nx-collection__actions {
	gap: var(--pepti-size-spacing-primitive-xs, 20px);
	margin: 0;
}

.nx-hero__benefits {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--pepti-size-spacing-primitive-xs, 20px);
	padding-block: var(--pepti-size-spacing-primitive-md, 40px);
}

.nx-benefit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--pepti-size-spacing-primitive-xxs, 10px);
	padding: var(--pepti-size-spacing-primitive-xs, 20px);
	border: 1px solid var(--pepti-color-global-border-base, #041e42);
	border-radius: 20px;
	background-color: var(--pepti-color-global-surface-base, #00080f);
	text-align: center;
}

.nx-benefit > * {
	margin: 0;
}

.nx-benefit__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 64px;
	block-size: 64px;
	box-sizing: border-box;
	border: 1px solid var(--pepti-color-global-border-accent-low, #00adbc);
	border-radius: 32px;
}

.nx-benefit__icon img {
	inline-size: 28px;
	block-size: 28px;
}

.nx-benefit__label {
	font-family: var(--pepti-type-form-label-desktop-medium-font-family, "Poppins", sans-serif);
	font-size: var(--pepti-type-form-label-desktop-medium-font-size, 16px);
	font-weight: var(--pepti-type-form-label-desktop-medium-font-weight, 500);
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--pepti-color-global-content-accent-high, #a0fffe);
}

/* ---------------------------------------------------------- collection -- */

.nx-collection {
	display: flex;
	flex-direction: column;
	gap: var(--pepti-size-spacing-primitive-md, 40px);
	padding-block: var(--pepti-size-spacing-primitive-lg, 60px);
	border-end-start-radius: var(--pepti-size-spacing-primitive-xl, 100px);
	border-end-end-radius: var(--pepti-size-spacing-primitive-xl, 100px);
	background-color: var(--pepti-color-global-surface-base, #00080f);
}

.nx-collection > .nx-container:first-child {
	margin-block-end: calc(-1 * var(--pepti-size-spacing-primitive-md, 40px));
}

.nx-collection .c-product-carousel {
	margin: 0;
	padding: 0;
	background: none;
}

.nx-collection .c-product-carousel > .l-container {
	max-inline-size: 1728px;
	padding-inline: var(--nx-gutter);
}

.nx-collection .c-product-carousel .l-section__inner {
	max-inline-size: none;
	padding-block: 0;
}

/* Figma carousel controls: 44px outline circles with arrow icons. */
.nx-collection .c-product-carousel__buttons {
	gap: var(--pepti-size-spacing-primitive-xxs, 10px);
}

.nx-collection .c-product-carousel__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 44px;
	block-size: 44px;
	padding: 0;
	border: 1px solid var(--pepti-color-component-button-secondary-border-default, #fff);
	border-radius: var(--pepti-size-radius-primitive-pill, 100px);
	background: transparent;
	color: var(--pepti-color-component-button-secondary-content-default, #fff);
	cursor: pointer;
}

.nx-collection .c-product-carousel__button:disabled {
	border-color: var(--pepti-color-component-button-secondary-border-disabled, #999c9f);
	color: var(--pepti-color-component-button-secondary-border-disabled, #999c9f);
	cursor: default;
}

.nx-collection .c-product-carousel__button > .c-icon {
	inline-size: 24px;
	block-size: 24px;
	transform: none;
	background-color: currentcolor;
	-webkit-mask: url("../images/home/icon-arrow-right.svg") no-repeat center / contain;
	mask: url("../images/home/icon-arrow-right.svg") no-repeat center / contain;
}

.nx-collection .c-product-carousel__button--previous > .c-icon {
	-webkit-mask-image: url("../images/home/icon-arrow-left.svg");
	mask-image: url("../images/home/icon-arrow-left.svg");
}

/* ------------------------------------------------------- product card -- */

.nx-product-card {
	border: 1px solid var(--pepti-color-component-product-card-border-default, #041e42);
	border-radius: 20px;
}

.nx-product-card > .c-product-card__media {
	border-radius: 0;
}

.nx-product-card .wc-block-components-product-image {
	aspect-ratio: 367 / 300;
}

/* Figma: the media is a fixed 300px band (367px home card and 349px shop card). */
@media (min-width: 768px) {
	.nx-product-card .wc-block-components-product-image {
		aspect-ratio: auto;
		block-size: 300px;
	}

	.nx-product-card .wc-block-components-product-image img {
		block-size: 100%;
	}

	/* Figma card is 564px tall; the description area absorbs the spare space. */
	.nx-product-card {
		display: flex;
		flex-direction: column;
		min-block-size: 564px;
	}

	.nx-product-card > .c-product-card__body {
		flex: 1 1 auto;
	}
}

.nx-product-card .c-product-card__body {
	gap: var(--pepti-size-spacing-primitive-xs, 20px);
	padding: var(--pepti-size-spacing-primitive-xs, 20px);
	border-block-start: 1px solid var(--pepti-color-component-product-card-border-default, #041e42);
	border-radius: 0;
}

.nx-product-card .c-product-card__summary {
	gap: 10px;
}

.nx-product-card .c-product-card__category {
	color: var(--pepti-color-global-content-accent, #05f4f9);
}

.nx-product-card .nx-product-card__excerpt {
	margin-block-start: 10px;
}

.nx-product-card .nx-product-card__excerpt p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	font-family: var(--pepti-type-body-small-desktop-regular-font-family, "Poppins", sans-serif);
	font-size: var(--pepti-type-body-small-desktop-regular-font-size, 14px);
	line-height: 1.4;
	color: var(--pepti-color-global-content-base, #e6e7e7);
}

.nx-product-card .c-product-card__commerce {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.nx-product-card .c-product-card__price {
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: baseline;
	column-gap: 8px;
	max-inline-size: none;
}

/* row-reverse puts the highest order first: keep "from" before the amount. */
.nx-product-card .c-product-card__price-prefix {
	order: 1;
}

.nx-product-card .c-product-card__price :where(del, ins) {
	display: inline;
}

/* Purchasable cards use the compact 56px cart circle from Figma. */
.nx-product-card .c-product-card__action {
	inline-size: auto;
	flex: none;
}

/* Variable products ("Select options") use the same cart circle as simple ones. */
.nx-product-card .c-product-card__action.product_type_variable {
	--pepti-button-icon-mask: var(--pepti-icon-mask-cart);
	--pepti-button-icon-render-size: var(--pepti-button-icon-size);
}

.nx-product-card .c-product-card__action.product_type_variable::before {
	display: block;
}

.nx-product-card .c-product-card__action:is(.c-button--type-text-icon, .product_type_variable) {
	--pepti-button-segment-size: 0px;
	inline-size: 56px;
	block-size: 56px;
	min-inline-size: 0;
	padding: 16px;
	gap: 0;
	justify-content: center;
}

.nx-product-card .c-product-card__action:is(.c-button--type-text-icon, .product_type_variable) .c-button__label {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.nx-collection .c-product-carousel__header {
	align-items: flex-end;
	margin-block-end: var(--pepti-size-spacing-primitive-md, 40px);
	padding-block-start: var(--pepti-size-spacing-primitive-xxs, 10px);
}

.nx-collection .c-product-carousel__heading {
	margin: 0;
	font-family: var(--pepti-type-heading-h1-tablet-semi-bold-font-family, "Space Grotesk", sans-serif);
	font-size: var(--nx-title-size);
	font-weight: var(--pepti-type-heading-h1-tablet-semi-bold-font-weight, 600);
	line-height: 1;
}

/* ------------------------------------------------------- how it works -- */

.nx-how {
	padding-block: var(--pepti-size-spacing-primitive-lg, 60px);
	background-color: var(--pepti-color-global-surface-subtle, #081017);
}

.nx-how__inner {
	display: flex;
	flex-direction: column;
	gap: var(--pepti-size-spacing-primitive-md, 40px);
}

.nx-how__stage {
	position: relative;
	container-type: inline-size;
	aspect-ratio: 1528 / 740;
	margin: 0;
}

/* Orbits sit over the vial exactly as the Figma "Line" layer. */
.nx-how__stage::after {
	content: "";
	position: absolute;
	inset-inline-start: 10.3403cqw;
	inset-block-start: 11.191cqw;
	inline-size: 81.8063cqw;
	block-size: 31.4136cqw;
	background: url("../images/home/how-orbits.svg") no-repeat 0 0 / 100% 100%;
	pointer-events: none;
}

.nx-how__vial {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 32.4607cqw;
	inline-size: 35.1398cqw;
	block-size: 48.4620cqw;
	margin: 0;
	overflow: hidden;
	-webkit-mask: url("../images/home/how-vial-mask.svg") no-repeat -32.4607cqw 0 / 100cqw 48.4293cqw;
	mask: url("../images/home/how-vial-mask.svg") no-repeat -32.4607cqw 0 / 100cqw 48.4293cqw;
}

.nx-how__vial img {
	position: absolute;
	inset-block-start: 0.04%;
	inset-inline-start: -4.07%;
	inline-size: 109.8%;
	max-inline-size: none;
	block-size: 106.16%;
	object-fit: cover;
}

.nx-how__steps {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: nx-step;
}

.nx-how__steps > li {
	--nx-x: 0;
	--nx-y: 0;
	--nx-w: 260;
	--nx-badge: 0;
	position: absolute;
	z-index: 1;
	inset-block-start: calc(var(--nx-y) / 15.28 * 1cqw);
	inset-inline-start: calc((var(--nx-x) - var(--nx-w) / 2) / 15.28 * 1cqw);
	inline-size: calc(var(--nx-w) / 15.28 * 1cqw);
	margin: 0;
	transform: translateY(-50%);
	counter-increment: nx-step;
	font-family: var(--pepti-type-caption-desktop-semi-bold-font-family, "Space Grotesk", sans-serif);
	font-size: var(--pepti-type-caption-desktop-semi-bold-font-size, 14px);
	font-weight: var(--pepti-type-caption-desktop-semi-bold-font-weight, 600);
	line-height: 1.4;
	letter-spacing: 0.28px;
	text-align: center;
	text-transform: uppercase;
	color: var(--pepti-color-global-content-primary, #fff);
}

.nx-how__steps > li::before {
	content: counter(nx-step);
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: calc((var(--nx-badge) - var(--nx-x) + var(--nx-w) / 2) / 15.28 * 1cqw);
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 40px;
	block-size: 40px;
	box-sizing: border-box;
	transform: translate(-50%, -50%);
	border: 1px solid var(--nx-accent);
	border-radius: 100px;
	background-color: var(--pepti-color-global-surface-subtle, #081017);
	filter: drop-shadow(0 0 8px rgba(5, 244, 249, 0.3));
	font-family: var(--pepti-type-heading-h5-mobile-semi-bold-font-family, "Space Grotesk", sans-serif);
	font-size: var(--pepti-type-heading-h5-mobile-semi-bold-font-size, 18px);
	font-weight: var(--pepti-type-heading-h5-mobile-semi-bold-font-weight, 600);
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--nx-accent);
}

.nx-how__steps a {
	color: var(--pepti-color-global-content-accent, #05f4f9);
	text-decoration: underline;
}

.nx-how__vial--mobile {
	display: none;
}

/* Centers measured on the 1528 × 740 Figma stage. */
.nx-how__steps > li:nth-child(1) { --nx-x: 1158; --nx-y: 211; --nx-w: 260; --nx-badge: 318; }
.nx-how__steps > li:nth-child(2) { --nx-x: 1123; --nx-y: 311; --nx-w: 290; --nx-badge: 278; }
.nx-how__steps > li:nth-child(3) { --nx-x: 1054; --nx-y: 411; --nx-w: 388; --nx-badge: 238; }
.nx-how__steps > li:nth-child(4) { --nx-x: 1083; --nx-y: 511; --nx-w: 290; --nx-badge: 198; }
.nx-how__steps > li:nth-child(5) { --nx-x: 926; --nx-y: 611; --nx-w: 564; --nx-badge: 158; }

/* -------------------------------------------------- operational cards -- */

.nx-ops {
	padding-block: var(--pepti-size-spacing-primitive-lg, 60px);
	background-color: var(--pepti-color-global-surface-subtle, #081017);
}

.nx-ops__inner {
	display: flex;
	flex-direction: column;
	gap: var(--pepti-size-spacing-primitive-md, 40px);
}

.nx-ops__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--pepti-size-spacing-primitive-xs, 20px);
}

.nx-ops__card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: var(--pepti-size-spacing-primitive-xxs, 10px);
	padding: var(--pepti-size-spacing-primitive-md, 40px);
	overflow: hidden;
	border: 1px solid var(--pepti-color-global-border-base, #041e42);
	border-radius: 20px;
	background-color: var(--pepti-color-global-surface-subtle, #081017);
}

.nx-ops__card > :not(.nx-ops__decor) {
	position: relative;
	z-index: 1;
	margin: 0;
}

.nx-ops__title {
	font-family: var(--pepti-type-heading-h4-desktop-semi-bold-font-family, "Space Grotesk", sans-serif);
	font-size: var(--pepti-type-heading-h4-desktop-semi-bold-font-size, 22px);
	font-weight: var(--pepti-type-heading-h4-desktop-semi-bold-font-weight, 600);
	line-height: 1.2;
	color: var(--pepti-color-global-content-primary, #fff);
}

.nx-ops__text,
.nx-ops__why {
	font-family: var(--pepti-type-body-default-desktop-regular-font-family, "Poppins", sans-serif);
	font-size: var(--pepti-type-body-default-desktop-regular-font-size, 16px);
	line-height: 1.4;
}

.nx-ops__text {
	color: var(--pepti-color-global-content-base, #e6e7e7);
}

.nx-ops__why-title {
	margin-block-start: var(--pepti-size-spacing-primitive-xxs, 10px) !important;
	font-family: var(--pepti-type-heading-h6-desktop-semi-bold-font-family, "Space Grotesk", sans-serif);
	font-size: var(--pepti-type-heading-h6-desktop-semi-bold-font-size, 18px);
	font-weight: var(--pepti-type-heading-h6-desktop-semi-bold-font-weight, 600);
	line-height: 1.2;
	color: var(--pepti-color-global-content-secondary, #cccecf);
}

.nx-ops__why {
	color: var(--pepti-color-global-content-secondary, #cccecf);
}

/* Decorative Figma "Gradients" groups, 465px box at 20% opacity. */
.nx-ops__decor {
	--nx-cx: 0px;
	--nx-cy: 0px;
	--nx-rot: -165deg;
	position: absolute;
	z-index: 0;
	inset-block-start: calc(50% + var(--nx-cy) - 232.5px);
	inset-inline-start: calc(50% + var(--nx-cx) - 232.5px);
	inline-size: 465px;
	block-size: 465px;
	overflow: hidden;
	opacity: 0.2;
	transform: rotate(var(--nx-rot)) scaleY(-1);
	pointer-events: none;
}

.nx-ops__decor > span {
	position: absolute;
	display: block;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

.nx-ops__card:nth-child(1) .nx-ops__decor { --nx-cx: 243.75px; --nx-cy: -0.5px; }
.nx-ops__card:nth-child(1) .nx-ops__decor > span { inset: 6.67% 22% 6.69% 22%; background-image: url("../images/home/ops-1-a.svg"); }
.nx-ops__card:nth-child(1) .nx-ops__decor > span + span { inset: 6.67% 22%; background-image: url("../images/home/ops-1-b.svg"); }

.nx-ops__card:nth-child(2) .nx-ops__decor { --nx-cx: 281.8px; --nx-cy: -30.2px; --nx-rot: -135deg; }
.nx-ops__card:nth-child(2) .nx-ops__decor > span:nth-child(1) { inset: 35.11% 9.33% 18.44% -10.32%; background-image: url("../images/home/ops-2-a.svg"); }
.nx-ops__card:nth-child(2) .nx-ops__decor > span:nth-child(2) { inset: 14.22% 9.78% 39.33% -10.67%; background-image: url("../images/home/ops-2-b.svg"); }
.nx-ops__card:nth-child(2) .nx-ops__decor > span:nth-child(3) { inset: 50.44% 9.13% 9.28% 32.67%; background-image: url("../images/home/ops-2-c.svg"); }

.nx-ops__card:nth-child(3) .nx-ops__decor { --nx-cx: 175.75px; --nx-cy: 65.75px; }
.nx-ops__card:nth-child(3) .nx-ops__decor > span {
	inline-size: 263.409px;
	block-size: 121.809px;
	-webkit-mask-image: url("../images/home/ops-3-mask.svg");
	mask-image: url("../images/home/ops-3-mask.svg");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 359.484px 220.229px;
	mask-size: 359.484px 220.229px;
}
.nx-ops__card:nth-child(3) .nx-ops__decor > span:nth-child(1) {
	inset-inline-start: 155.83px;
	inset-block-start: 131.24px;
	transform: scaleY(-1) rotate(180deg);
	background-image: url("../images/home/ops-3-a.svg");
	-webkit-mask-position: 5.955px 36.032px;
	mask-position: 5.955px 36.032px;
}
.nx-ops__card:nth-child(3) .nx-ops__decor > span:nth-child(2) {
	inset-inline-start: 45.76px;
	inset-block-start: 211.96px;
	transform: scaleY(-1);
	background-image: url("../images/home/ops-3-b.svg");
	-webkit-mask-position: -79.479px -70.429px;
	mask-position: -79.479px -70.429px;
}

/* ---------------------------------------------------------------- about -- */

.nx-about {
	padding-block: var(--pepti-size-spacing-primitive-lg, 60px);
	border-start-start-radius: var(--pepti-size-spacing-primitive-xl, 100px);
	border-start-end-radius: var(--pepti-size-spacing-primitive-xl, 100px);
	background-color: var(--pepti-color-global-surface-base, #00080f);
}

.nx-about__inner {
	display: grid;
	grid-template-columns: minmax(0, 828fr) minmax(0, 640fr);
	gap: var(--pepti-size-spacing-primitive-lg, 60px);
	align-items: start;
}

.nx-about__content {
	display: flex;
	flex-direction: column;
	gap: var(--pepti-size-spacing-primitive-sm, 30px);
}

.nx-about__content > * {
	margin: 0;
}

.nx-about__content > .nx-heading {
	margin-block-end: calc(var(--pepti-size-spacing-primitive-xs, 20px) - var(--pepti-size-spacing-primitive-sm, 30px));
}

.nx-about__text {
	font-family: var(--pepti-type-body-default-desktop-regular-font-family, "Poppins", sans-serif);
	font-size: var(--pepti-type-body-default-desktop-regular-font-size, 16px);
	line-height: 1.4;
	color: var(--pepti-color-global-content-base, #e6e7e7);
}

.nx-about__features {
	display: flex;
	flex-direction: column;
	gap: var(--pepti-size-spacing-primitive-xs, 20px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nx-about__features > li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 18px 24px;
	border-inline-start: 1px solid var(--nx-accent);
	background: url("../images/home/about-feature-bg.png") no-repeat center / cover;
	font-family: var(--pepti-type-body-default-desktop-regular-font-family, "Poppins", sans-serif);
	font-size: var(--pepti-type-body-default-desktop-regular-font-size, 16px);
	line-height: 1.4;
	color: var(--pepti-color-global-content-secondary, #cccecf);
}

.nx-about__features > li::before {
	content: "";
	flex: none;
	inline-size: 24px;
	block-size: 24px;
	background: url("../images/home/icon-bolt.svg") no-repeat center / contain;
}

.nx-about__media {
	position: relative;
	block-size: 440px;
	margin: 0;
	overflow: hidden;
	border-radius: 16px;
}

.nx-about__media img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	border-radius: 16px;
}

.nx-about__media::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 16px;
	background: radial-gradient(50% 50% at 50% 50%, rgba(0, 8, 15, 0) 0%, rgba(0, 8, 15, 0.4) 100%);
	pointer-events: none;
}

/* ---------------------------------------------------------- partnership -- */

.nx-partner {
	background-color: var(--pepti-color-global-surface-base, #00080f);
}

.nx-partner__inner {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--pepti-size-spacing-primitive-sm, 30px);
	box-sizing: border-box;
	min-block-size: 600px;
	padding: var(--pepti-size-spacing-primitive-lg, 60px) var(--pepti-size-spacing-primitive-md, 40px);
	overflow: hidden;
	border-start-start-radius: var(--pepti-size-spacing-primitive-xl, 100px);
	border-start-end-radius: var(--pepti-size-spacing-primitive-xl, 100px);
	background-color: var(--pepti-color-global-surface-base, #00080f);
	text-align: center;
}

.nx-partner__inner::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: url("../images/home/partnership-bg.jpg") no-repeat center / cover;
	opacity: 0.5;
}

.nx-partner__inner > * {
	margin: 0;
}

.nx-partner__title {
	max-inline-size: 700px;
}

.nx-partner__text {
	max-inline-size: 720px;
	font-family: var(--pepti-type-body-default-desktop-regular-font-family, "Poppins", sans-serif);
	font-size: var(--pepti-type-body-default-desktop-regular-font-size, 16px);
	line-height: 1.4;
	color: var(--pepti-color-global-content-base, #e6e7e7);
}

.nx-partner__actions {
	justify-content: center;
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 1199px) {
	.nx-section {
		--nx-title-size: var(--pepti-type-heading-h1-mobile-semi-bold-font-size, 40px);
	}

	.nx-hero__benefits,
	.nx-ops__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nx-about__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.nx-about__media {
		block-size: auto;
		aspect-ratio: 640 / 440;
	}

	/* The orbit composition needs the full stage; tablets get a stacked list. */
	.nx-how__stage {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: var(--pepti-size-spacing-primitive-md, 40px);
		aspect-ratio: auto;
	}

	.nx-how__stage::after {
		content: none;
	}

	.nx-how__vial {
		position: relative;
		inset: auto;
		inline-size: min(100%, 360px);
		block-size: auto;
		aspect-ratio: 536.94 / 740.5;
		-webkit-mask: linear-gradient(to bottom, #000 40%, transparent 75%);
		mask: linear-gradient(to bottom, #000 40%, transparent 75%);
	}

	.nx-how__steps {
		position: relative;
		inset: auto;
		display: flex;
		flex-direction: column;
		gap: var(--pepti-size-spacing-primitive-xs, 20px);
		inline-size: min(100%, 640px);
		margin-block-start: -120px;
	}

	.nx-how__steps > li {
		position: relative;
		inset: auto;
		inline-size: auto;
		min-block-size: 40px;
		padding-inline-start: 60px;
		transform: none;
		text-align: start;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.nx-how__steps > li::before {
		inset-block-start: 20px;
		inset-inline-start: 20px;
	}
}

/* ------------------------------------------------ mobile (Figma 393) -- */

@media (max-width: 767px) {
	.nx-section {
		--nx-gutter: var(--pepti-size-spacing-primitive-sm, 20px);
		--nx-title-size: var(--pepti-type-heading-h2-mobile-semi-bold-font-size, 30px);
		--nx-radius: var(--pepti-size-spacing-primitive-xl, 40px);
	}

	.nx-eyebrow:not(.nx-eyebrow--center)::before {
		inset-inline-start: -130px;
	}

	.nx-eyebrow--short:not(.nx-eyebrow--center)::before {
		inset-inline-start: -110px;
	}

	/* Figma 116px lines either side of the centred eyebrow. */
	.nx-eyebrow--center::before,
	.nx-eyebrow--center::after {
		flex: none;
		inline-size: 116px;
		background-size: 121.773px 11.547px;
	}

	.nx-eyebrow--center::before {
		background-image: url("../images/home/eyebrow-line-left-mobile.svg");
	}

	.nx-eyebrow--center::after {
		background-image: url("../images/home/eyebrow-line-right-mobile.svg");
	}

	.nx-eyebrow--center {
		justify-content: center;
		gap: 10px;
		inline-size: auto;
		margin-inline: -20px;
	}

	/* Hero: centred copy, own mobile crop of the background. */
	.nx-hero {
		--nx-header-space: 96px;
		isolation: isolate;
		overflow: hidden;
		background-image: none;
	}

	.nx-hero::before,
	.nx-hero::after {
		content: "";
		position: absolute;
		z-index: -1;
		pointer-events: none;
	}

	.nx-hero::before {
		inset-block-start: -3.85%;
		inset-inline-start: -186.42%;
		inline-size: 333.87%;
		block-size: 103.82%;
		background: url("../images/home/hero-bg-mobile.jpg") no-repeat 0 0 / 100% 100%;
	}

	.nx-hero::after {
		inset: 0;
		background: linear-gradient(180deg, #000a10 0%, rgba(0, 8, 13, 0.8) 28.247%, rgba(0, 0, 0, 0) 39.638%);
	}

	.nx-hero__intro {
		justify-content: flex-start;
		gap: var(--pepti-size-spacing-primitive-md, 24px);
		min-block-size: 646px;
		padding-block: var(--pepti-size-spacing-primitive-xxl, 60px);
		text-align: center;
	}

	.nx-hero__title,
	.nx-hero__text {
		max-inline-size: none;
	}

	.nx-hero__title {
		font-family: var(--pepti-type-heading-h2-mobile-semi-bold-font-family, "Space Grotesk", sans-serif);
		font-size: var(--pepti-type-heading-h2-mobile-semi-bold-font-size, 30px);
	}

	.nx-hero__text {
		margin-block-start: calc(var(--pepti-size-spacing-primitive-sm, 20px) - var(--pepti-size-spacing-primitive-md, 24px));
		font-family: var(--pepti-type-body-small-mobile-regular-font-family, "Poppins", sans-serif);
		font-size: var(--pepti-type-body-small-mobile-regular-font-size, 14px);
	}

	.nx-hero__actions {
		flex-direction: column;
		align-items: center;
		gap: var(--pepti-size-spacing-primitive-xs, 16px);
	}

	.nx-hero__actions .wp-block-button__link {
		padding-inline: var(--pepti-size-spacing-primitive-sm, 20px);
	}

	.nx-hero__benefits {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--pepti-size-spacing-primitive-xs, 16px);
		padding-block: var(--pepti-size-spacing-primitive-sm, 20px);
	}

	.nx-benefit {
		padding: var(--pepti-size-spacing-primitive-xs, 16px);
		border-radius: 16px;
	}

	.nx-benefit__label {
		font-size: var(--pepti-type-form-label-desktop-medium-font-size, 16px);
	}

	/* Collection. */
	.nx-collection {
		gap: var(--pepti-size-spacing-primitive-md, 24px);
		padding-block: var(--pepti-size-spacing-primitive-xl, 40px);
		border-end-start-radius: var(--nx-radius);
		border-end-end-radius: var(--nx-radius);
	}

	.nx-collection > .nx-container:first-child {
		margin-block-end: calc(-1 * var(--pepti-size-spacing-primitive-md, 24px));
	}

	.nx-collection .c-product-carousel__header {
		gap: var(--pepti-size-spacing-primitive-xs, 16px);
		margin-block-end: var(--pepti-size-spacing-primitive-md, 24px);
	}

	.nx-collection .c-product-carousel__heading {
		flex: 1 1 0;
		min-inline-size: 0;
	}

	/* How it works: Figma mobile orbit stage (353 × 540). */
	.nx-how {
		padding-block: var(--pepti-size-spacing-primitive-xl, 40px);
	}

	.nx-how__inner {
		gap: var(--pepti-size-spacing-primitive-md, 24px);
	}

	.nx-how__stage {
		display: block;
		block-size: 540px;
		aspect-ratio: auto;
	}

	.nx-how__stage::after {
		content: "";
		inset-inline-start: 20px;
		inset-block-start: 0;
		inline-size: 333px;
		block-size: 540px;
		background-image: url("../images/home/how-orbits-mobile.svg");
	}

	.nx-how__vial {
		position: absolute;
		inset-block-start: 0;
		inset-inline-start: calc(50% - 0.5px);
		inline-size: 391.554px;
		block-size: 540px;
		aspect-ratio: auto;
		-webkit-mask: url("../images/home/how-vial-mask-mobile.svg") no-repeat -196px 0 / 393px 540px;
		mask: url("../images/home/how-vial-mask-mobile.svg") no-repeat -196px 0 / 393px 540px;
	}

	.nx-how__vial:not(.nx-how__vial--mobile) {
		display: none;
	}

	.nx-how__vial--mobile {
		display: block;
	}

	.nx-how__vial--mobile img {
		inset: 0;
		inline-size: 100%;
		block-size: 100%;
		object-fit: cover;
	}

	.nx-how__steps {
		position: absolute;
		inset: 0;
		display: block;
		inline-size: auto;
		margin: 0;
	}

	.nx-how__steps > li {
		position: absolute;
		inset-block-start: var(--nx-my);
		inset-inline-start: 56px;
		display: block;
		inline-size: 220px;
		min-block-size: 0;
		padding: 0;
		transform: translateY(-50%);
		font-family: var(--pepti-type-caption-mobile-semi-bold-font-family, "Space Grotesk", sans-serif);
		font-size: var(--pepti-type-caption-mobile-semi-bold-font-size, 12px);
		font-weight: var(--pepti-type-caption-mobile-semi-bold-font-weight, 600);
		letter-spacing: 0;
		text-align: start;
	}

	.nx-how__steps > li::before {
		inset-block-start: 50%;
		inset-inline-start: -36px;
		font-family: var(--pepti-type-heading-h6-mobile-semi-bold-font-family, "Space Grotesk", sans-serif);
		font-size: var(--pepti-type-heading-h6-mobile-semi-bold-font-size, 16px);
	}

	.nx-how__steps br {
		display: none;
	}

	.nx-how__steps > li:nth-child(1) { --nx-my: 40px; }
	.nx-how__steps > li:nth-child(2) { --nx-my: 140px; }
	.nx-how__steps > li:nth-child(3) { --nx-my: 250px; }
	.nx-how__steps > li:nth-child(4) { --nx-my: 360px; }
	.nx-how__steps > li:nth-child(5) { --nx-my: 480px; }

	/* Operational cards. */
	.nx-ops {
		padding-block: var(--pepti-size-spacing-primitive-xl, 40px);
	}

	.nx-ops__inner {
		gap: var(--pepti-size-spacing-primitive-sm, 20px);
	}

	.nx-ops__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--pepti-size-spacing-primitive-xs, 16px);
	}

	.nx-ops__card {
		padding: var(--pepti-size-spacing-primitive-md, 24px);
	}

	.nx-ops__title {
		font-family: var(--pepti-type-heading-h4-mobile-semi-bold-font-family, "Space Grotesk", sans-serif);
		font-size: var(--pepti-type-heading-h4-mobile-semi-bold-font-size, 20px);
	}

	.nx-ops__text,
	.nx-ops__why {
		font-family: var(--pepti-type-body-small-mobile-regular-font-family, "Poppins", sans-serif);
		font-size: var(--pepti-type-body-small-mobile-regular-font-size, 14px);
	}

	.nx-ops__why-title {
		margin-block-start: 6px !important;
		font-family: var(--pepti-type-heading-h6-mobile-semi-bold-font-family, "Space Grotesk", sans-serif);
		font-size: var(--pepti-type-heading-h6-mobile-semi-bold-font-size, 16px);
	}

	/* About. */
	.nx-about {
		padding-block: var(--pepti-size-spacing-primitive-xxl, 60px);
		border-start-start-radius: var(--nx-radius);
		border-start-end-radius: var(--nx-radius);
	}

	.nx-about__inner {
		gap: var(--pepti-size-spacing-primitive-sm, 30px);
	}

	.nx-about__content {
		gap: var(--pepti-size-spacing-primitive-sm, 20px);
	}

	.nx-about__content > .nx-heading {
		margin-block-end: calc(16px - var(--pepti-size-spacing-primitive-sm, 20px));
	}

	.nx-about__text,
	.nx-about__features > li {
		font-family: var(--pepti-type-body-small-mobile-regular-font-family, "Poppins", sans-serif);
		font-size: var(--pepti-type-body-small-mobile-regular-font-size, 14px);
	}

	.nx-about__features {
		gap: var(--pepti-size-spacing-primitive-xs, 16px);
	}

	.nx-about__media {
		aspect-ratio: 353 / 242;
	}

	/* Partnership. */
	.nx-partner__inner {
		min-block-size: 420px;
		padding: var(--pepti-size-spacing-primitive-xl, 40px) var(--nx-gutter);
		gap: var(--pepti-size-spacing-primitive-md, 24px);
		border-start-start-radius: var(--nx-radius);
		border-start-end-radius: var(--nx-radius);
	}

	.nx-partner__text {
		font-family: var(--pepti-type-body-small-mobile-regular-font-family, "Poppins", sans-serif);
		font-size: var(--pepti-type-body-small-mobile-regular-font-size, 14px);
	}
}
