/*
 * Novus DNA – redesigned homepage (template-parts/front/).
 *
 * Tokens, type and buttons are in nv-base.css, which loads first.
 */

/* ---------------------------------------------------------------
 * Top banner carousel
 * ------------------------------------------------------------- */
.nv-intro {
	background: #34312e;
	color: #fff;
}

.nv-hero {
	position: relative;
	touch-action: pan-y;
}

.nv-hero__slides {
	display: grid;
}

/* Slides are stacked in one grid cell and cross-fade; the tallest sets the height. */
.nv-hero__slide {
	position: relative;
	display: flex;
	flex-direction: column;
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}

.nv-hero__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.7s ease;
}

.nv-hero__slide--full,
.nv-hero__slide--stacked {
	background: radial-gradient(120% 70% at 50% 0%, #54524e 0%, #3e3a37 55%, #34312e 100%);
	color: #fff;
}

.nv-hero__slide--split {
	background: var(--nv-paper);
	color: var(--nv-text);
}

.nv-hero__media {
	position: relative;
	overflow: hidden;
}

.nv-hero__media picture {
	display: block;
	block-size: 100%;
}

.nv .nv-hero__image,
.nv-hero__video {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.nv-hero__content {
	position: relative;
	z-index: 1;
	padding: clamp(2rem, 1.5rem + 3vw, 3rem) var(--nv-gutter) clamp(2rem, 1.5rem + 3vw, 3rem);
}

.nv-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	max-inline-size: 38rem;
}

.nv-hero__heading {
	margin: 0;
	color: inherit;
	font-family: var(--nv-heading);
	font-size: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.07;
	text-wrap: balance;
}

.nv-hero__slide--split .nv-hero__heading {
	color: var(--nv-ink);
}

.nv-hero__text {
	max-inline-size: 34rem;
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	text-wrap: pretty;
}

.nv-hero__slide--full .nv-hero__text,
.nv-hero__slide--stacked .nv-hero__text {
	color: rgba(255, 255, 255, 0.82);
}

.nv-hero__slide--split .nv-hero__text {
	color: var(--nv-muted);
}

.nv-hero__slide--full .nv-eyebrow,
.nv-hero__slide--stacked .nv-eyebrow {
	color: rgba(255, 255, 255, 0.85);
}

.nv-hero__inner .nv-button {
	margin-block-start: 0.5rem;
}

.nv-hero__badge {
	padding: 0.3rem 0.7rem;
	border: 1px dashed #c0392b;
	border-radius: 999px;
	background: #fff6f5;
	color: #8a1f12;
	font-size: 0.75rem;
	font-weight: 600;
}

/* Mobile: full slides put the text above the picture, split slides below it. */
@media (max-width: 63.99em) {
	.nv-hero__slide--full .nv-hero__content,
	.nv-hero__slide--stacked .nv-hero__content {
		order: 1;
		text-align: center;
	}

	.nv-hero__slide--full .nv-hero__inner,
	.nv-hero__slide--stacked .nv-hero__inner {
		align-items: center;
		margin-inline: auto;
	}

	.nv-hero__slide--full .nv-eyebrow--spectrum::before,
	.nv-hero__slide--stacked .nv-eyebrow--spectrum::before {
		margin-inline: auto;
	}

	.nv-hero__slide--full .nv-hero__media,
	.nv-hero__slide--stacked .nv-hero__media {
		flex: 1 0 auto;
		order: 2;
		min-block-size: 15rem;
		margin-block-start: -1.5rem;
		-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
		mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
	}

	.nv-hero__slide--full .nv-hero__media > *,
	.nv-hero__slide--stacked .nv-hero__media > * {
		position: absolute;
		inset: 0;
	}

	.nv-hero__slide--full .nv-hero__image,
	.nv-hero__slide--stacked .nv-hero__image,
	.nv-hero__slide--full .nv-hero__video,
	.nv-hero__slide--stacked .nv-hero__video {
		object-position: 55% 100%;
	}

	.nv-hero__slide--split .nv-hero__media {
		aspect-ratio: 4 / 3;
		flex: none;
	}

	.nv-hero__slide--split .nv-hero__content {
		flex: 1 0 auto;
	}

	/* Leave room for the controls, which sit at the bottom of every slide. */
	.nv-hero__content {
		padding-block-end: 2rem;
	}

	.nv-hero__slide--split .nv-hero__content {
		padding-block-end: 5rem;
	}

	.nv-hero__slide--full .nv-hero__media,
	.nv-hero__slide--stacked .nv-hero__media {
		min-block-size: 18rem;
	}
}

@media (min-width: 48em) and (max-width: 63.99em) {
	.nv-hero__slide--split .nv-hero__media {
		aspect-ratio: 16 / 10;
	}
}

@media (min-width: 64em) {
	.nv-hero__slide {
		min-block-size: clamp(34rem, 24rem + 22vw, 46rem);
	}

	/* Full-width: media fills the slide; a scrim keeps the text legible. */
	.nv-hero__slide--full .nv-hero__media {
		position: absolute;
		inset: 0;
	}

	.nv-hero__slide--full .nv-hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		pointer-events: none;
	}

	.nv-hero__slide--full.nv-hero__slide--align-left .nv-hero__media::after {
		background: linear-gradient(90deg, rgba(24, 21, 19, 0.82) 0%, rgba(24, 21, 19, 0.55) 38%, rgba(24, 21, 19, 0) 68%);
	}

	.nv-hero__slide--full.nv-hero__slide--align-center .nv-hero__media::after {
		background: linear-gradient(180deg, rgba(40, 37, 35, 0.75) 0%, rgba(40, 37, 35, 0.35) 38%, rgba(40, 37, 35, 0) 58%);
	}

	.nv-hero__slide--full .nv-hero__image,
	.nv-hero__slide--full .nv-hero__video {
		object-position: 50% 100%;
	}

	.nv-hero__slide--full .nv-hero__content {
		display: flex;
		flex: 1;
		inline-size: 100%;
		max-inline-size: calc(84rem + var(--nv-gutter) * 2);
		margin-inline: auto;
		padding: 4rem var(--nv-gutter) 6rem;
	}

	.nv-hero__slide--full.nv-hero__slide--align-left .nv-hero__content {
		align-items: center;
	}

	.nv-hero__slide--full.nv-hero__slide--align-center .nv-hero__content {
		justify-content: center;
		padding-block-start: clamp(2.5rem, 1rem + 3vw, 4rem);
		text-align: center;
	}

	.nv-hero__slide--full.nv-hero__slide--align-center .nv-hero__inner {
		align-items: center;
		max-inline-size: 52rem;
	}

	.nv-hero__slide--full.nv-hero__slide--align-center .nv-hero__text {
		max-inline-size: 40rem;
	}

	.nv-hero__slide--full.nv-hero__slide--align-center .nv-eyebrow--spectrum::before {
		margin-inline: auto;
	}

	/* Stacked: centred text at the top; the media fills the rest and fades up behind it. */
	.nv-hero__slide--stacked .nv-hero__content {
		order: 1;
		padding: clamp(2.5rem, 1rem + 2.5vw, 3.5rem) var(--nv-gutter) 0;
		text-align: center;
	}

	.nv-hero__slide--stacked .nv-hero__inner {
		align-items: center;
		max-inline-size: 52rem;
		margin-inline: auto;
	}

	.nv-hero__slide--stacked .nv-hero__text {
		max-inline-size: 40rem;
	}

	.nv-hero__slide--stacked .nv-eyebrow--spectrum::before {
		margin-inline: auto;
	}

	.nv-hero__slide--stacked .nv-hero__media {
		order: 2;
		flex: 1 1 0;
		min-block-size: 16rem;
		margin-block-start: -6rem;
		-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 32%), linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
		-webkit-mask-composite: source-in;
		mask-image: linear-gradient(to bottom, transparent 0%, #000 32%), linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
		mask-composite: intersect;
	}

	.nv-hero__slide--stacked .nv-hero__media > * {
		position: absolute;
		inset: 0;
	}

	.nv-hero__slide--stacked .nv-hero__image,
	.nv-hero__slide--stacked .nv-hero__video {
		object-position: 50% 100%;
	}

	/* Split: text panel on the left, media on the right. */
	.nv-hero__slide--split {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.nv-hero__slide--split .nv-hero__media {
		grid-column: 2;
		grid-row: 1;
	}

	.nv-hero__slide--split .nv-hero__media > * {
		position: absolute;
		inset: 0;
	}

	.nv-hero__slide--split .nv-hero__content {
		display: flex;
		grid-column: 1;
		grid-row: 1;
		align-items: center;
		justify-content: flex-end;
		padding: 4rem clamp(2rem, 1rem + 4vw, 6rem) 6rem var(--nv-gutter);
	}

	.nv-hero__slide--split .nv-hero__inner {
		inline-size: 100%;
		max-inline-size: 34rem;
	}
}

/* Per-slide options (0.10.0): text colour, shading and the brand panel. */
.nv-hero__slide--full.nv-hero__slide--text-dark,
.nv-hero__slide--stacked.nv-hero__slide--text-dark {
	background: var(--nv-paper);
	color: var(--nv-ink);
}

.nv-hero__slide--text-dark .nv-hero__heading,
.nv-hero__slide--text-dark .nv-eyebrow {
	color: var(--nv-ink) !important;
}

.nv-hero__slide--text-dark .nv-hero__text {
	color: var(--nv-muted) !important;
}

.nv-hero__slide--split.nv-hero__slide--text-light {
	background: #17143a;
	color: #fff;
}

.nv-hero__slide--split.nv-hero__slide--text-light .nv-hero__heading,
.nv-hero__slide--split.nv-hero__slide--text-light .nv-eyebrow {
	color: #fff;
}

.nv-hero__slide--split.nv-hero__slide--text-light .nv-hero__text {
	color: rgba(255, 255, 255, 0.8);
}

/* Brand panel: a slide whose image has not arrived yet. */
.nv-hero__slide--panel {
	background: #17143a;
	color: #fff;
}

.nv-hero__slide--panel .nv-hero__media {
	position: absolute;
	inset: 0;
}

.nv-hero__panel {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 80% at 85% 20%, rgba(0, 181, 203, 0.28) 0%, transparent 60%),
		radial-gradient(55% 75% at 75% 95%, rgba(230, 0, 126, 0.22) 0%, transparent 60%),
		radial-gradient(70% 90% at 100% 60%, rgba(78, 37, 131, 0.55) 0%, transparent 70%);
}

.nv-hero__slide--panel .nv-hero__content {
	display: flex;
	flex: 1;
	align-items: center;
	inline-size: 100%;
	max-inline-size: calc(84rem + var(--nv-gutter) * 2);
	margin-inline: auto;
	padding-block: clamp(4rem, 3rem + 4vw, 6rem);
}

.nv-hero__slide--panel .nv-hero__heading,
.nv-hero__slide--panel .nv-eyebrow {
	color: #fff;
}

.nv-hero__slide--panel .nv-hero__text {
	color: rgba(255, 255, 255, 0.8);
}

.nv-hero__slide--panel .nv-hero__inner {
	max-inline-size: 44rem;
}

@media (min-width: 64em) {
	.nv-hero__slide--overlay-none .nv-hero__media::after {
		background: none !important;
	}

	.nv-hero__slide--full.nv-hero__slide--align-left.nv-hero__slide--overlay-strong .nv-hero__media::after {
		background: linear-gradient(90deg, rgba(20, 18, 40, 0.9) 0%, rgba(20, 18, 40, 0.7) 45%, rgba(20, 18, 40, 0.15) 80%);
	}

	.nv-hero__slide--full.nv-hero__slide--align-center.nv-hero__slide--overlay-strong .nv-hero__media::after {
		background: rgba(20, 18, 40, 0.55);
	}

	.nv-hero__slide--full.nv-hero__slide--text-dark.nv-hero__slide--align-left .nv-hero__media::after {
		background: linear-gradient(90deg, rgba(245, 242, 238, 0.92) 0%, rgba(245, 242, 238, 0.6) 38%, rgba(245, 242, 238, 0) 68%);
	}

	.nv-hero__slide--full.nv-hero__slide--text-dark.nv-hero__slide--align-center .nv-hero__media::after {
		background: linear-gradient(180deg, rgba(245, 242, 238, 0.9) 0%, rgba(245, 242, 238, 0.4) 38%, rgba(245, 242, 238, 0) 58%);
	}
}

/*
 * Finished artwork (0.10.0): slides whose wording is part of the image.
 * The artwork is never cropped, so the whole banner takes its proportions
 * (--nv-hero-ratio, and --nv-hero-ratio-m on phones, set from the uploaded
 * images); other slides fill the same frame. Only the button is added.
 */
.nv-hero--artwork {
	max-inline-size: 120rem;
	margin-inline: auto;
}

.nv-hero--artwork .nv-hero__slide {
	background: #101114;
	color: #fff;
}

.nv-hero--artwork .nv-hero__slide--full .nv-hero__media,
.nv-hero__slide--artwork .nv-hero__media {
	flex: none;
	order: 1;
	aspect-ratio: var(--nv-hero-ratio-m);
	min-block-size: 0;
	margin: 0;
	-webkit-mask-image: none;
	mask-image: none;
}

.nv-hero--artwork .nv-hero__slide--full .nv-hero__media > *,
.nv-hero__slide--artwork .nv-hero__media > * {
	position: absolute;
	inset: 0;
}

.nv .nv-hero__slide--artwork .nv-hero__image {
	object-fit: contain;
}

.nv-hero--artwork .nv-hero__slide--full .nv-hero__image,
.nv-hero--artwork .nv-hero__slide--full .nv-hero__video {
	object-position: 50% 35%;
}

/* The artwork's wording, as text: read by screen readers, not shown over the image. */
.nv-hero__slide--artwork .nv-hero__words,
.nv-hero__slide--mobile-art .nv-hero__words {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Phones: the media on top, then the words and button underneath. */
@media (max-width: 47.99em) {
	.nv-hero--artwork .nv-hero__slide .nv-hero__content {
		display: flex;
		flex: 1 0 auto;
		align-items: center;
		justify-content: center;
		order: 2;
		padding: 1.5rem var(--nv-gutter) 5rem;
		text-align: center;
	}

	.nv-hero--artwork .nv-hero__inner {
		align-items: center;
		margin-inline: auto;
	}

	.nv-hero--artwork .nv-hero__heading {
		font-size: clamp(1.5rem, 1.2rem + 1.5vw, 1.875rem);
	}

	.nv-hero--artwork .nv-hero__text {
		font-size: 0.9375rem;
	}

	.nv-hero--artwork .nv-hero__slide--full .nv-hero__text {
		display: none;
	}

	.nv-hero--artwork .nv-eyebrow--spectrum::before {
		margin-inline: auto;
	}

	/* Until a mobile version is uploaded, the artwork's wording is too small
	   to read on a phone, so it is repeated under the image. */
	.nv-hero__slide--artwork:not(.nv-hero__slide--mobile-art) .nv-hero__words {
		position: static;
		inline-size: auto;
		block-size: auto;
		overflow: visible;
		clip-path: none;
		white-space: normal;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.75rem;
	}

	.nv-hero__slide--artwork .nv-hero__heading {
		color: #fff;
	}

	.nv-hero__slide--artwork .nv-hero__text {
		color: rgba(255, 255, 255, 0.82);
	}

	.nv-hero__slide--artwork .nv-eyebrow {
		color: rgba(255, 255, 255, 0.85);
	}
}

/* Tablets and desktops: one frame in the artwork's proportions. */
@media (min-width: 48em) {
	.nv-hero--artwork .nv-hero__slide {
		min-block-size: 0;
		aspect-ratio: var(--nv-hero-ratio);
	}

	.nv-hero--artwork .nv-hero__slide--full .nv-hero__media,
	.nv-hero__slide--artwork .nv-hero__media {
		position: absolute;
		inset: 0;
		aspect-ratio: auto;
	}

	/* Full-width slides (e.g. the video): text over the media, on the left. */
	.nv-hero--artwork .nv-hero__slide--full .nv-hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, rgba(16, 17, 20, 0.72) 0%, rgba(16, 17, 20, 0.4) 40%, rgba(16, 17, 20, 0) 68%);
		pointer-events: none;
	}

	.nv-hero--artwork .nv-hero__slide--full.nv-hero__slide--overlay-none .nv-hero__media::after {
		content: none;
	}

	.nv-hero--artwork .nv-hero__slide--full .nv-hero__content {
		display: flex;
		flex: 1;
		align-items: center;
		inline-size: 100%;
		max-inline-size: calc(84rem + var(--nv-gutter) * 2);
		margin-inline: auto;
		padding: 2.5rem var(--nv-gutter) 4.5rem;
		text-align: start;
	}

	.nv-hero--artwork .nv-hero__slide--full .nv-hero__inner {
		align-items: flex-start;
		margin-inline: 0;
		max-inline-size: min(36rem, 52%);
	}

	.nv-hero--artwork .nv-hero__slide--full .nv-eyebrow--spectrum::before {
		margin-inline: 0;
	}

	.nv-hero--artwork .nv-hero__heading {
		font-size: clamp(1.75rem, 0.9rem + 2.4vw, 3.25rem);
	}

	/* Artwork: only the button, placed where the artwork leaves room for it. */
	.nv-hero__slide--artwork .nv-hero__content {
		position: absolute;
		inset: 0;
		padding: 0;
		pointer-events: none;
	}

	.nv-hero__slide--artwork .nv-hero__inner {
		position: static;
	}

	.nv-hero__slide--artwork .nv-hero__inner .nv-button {
		position: absolute;
		inset-block-start: var(--nv-button-y, 80%);
		inset-inline-start: var(--nv-button-x, 5%);
		margin: 0;
		pointer-events: auto;
	}
}

@media (min-width: 48em) and (max-width: 63.99em) {
	.nv-hero--artwork .nv-hero__controls {
		inset-inline-start: auto;
		inset-inline-end: var(--nv-gutter);
		transform: none;
	}

	.nv-hero__slide--artwork .nv-hero__inner .nv-button {
		min-block-size: 2.5rem;
		padding-block: 0.5rem;
		font-size: 0.875rem;
	}

	.nv-hero--artwork .nv-hero__slide--full .nv-hero__text {
		display: none;
	}
}

@media (min-width: 92rem) {
	.nv-hero__slide--split .nv-hero__content {
		padding-inline-start: calc((100vw - 84rem) / 2);
	}
}

/* ---------------------------------------------------------------
 * Slide changes without overlapping text (0.13.1).
 * The slides cross-fade, so mid-fade two slides were part-visible and
 * their headings and buttons showed through each other. Now the
 * outgoing slide's words and button go first (0.2s), and the incoming
 * slide's arrive after the pictures have crossed (0.3s delay). The video
 * fades with its slide only: fading the video element itself stopped
 * Safari playing it (0.13.4).
 * ------------------------------------------------------------- */
.nv-hero__slide :is(.nv-eyebrow, .nv-hero__heading, .nv-hero__text, .nv-button) {
	transition: opacity 0.2s ease;
}

.nv-hero__slide:not(.is-active) :is(.nv-eyebrow, .nv-hero__heading, .nv-hero__text, .nv-button) {
	opacity: 0;
}

.nv-hero__slide.is-active :is(.nv-eyebrow, .nv-hero__heading, .nv-hero__text, .nv-button) {
	opacity: 1;
	transition: opacity 0.45s ease 0.3s;
}

/* Buttons carry the theme's own colour transitions (refine.css), so theirs
   are restated here with the same timing as the words. */
.nv-hero .nv-hero__slide .nv-hero__inner .nv-button {
	transition: opacity 0.2s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nv-hero .nv-hero__slide.is-active .nv-hero__inner .nv-button {
	transition: opacity 0.45s ease 0.3s, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/*
 * Phones (0.13.1): each slide is its picture plus one slim row for its
 * button, so all three are the same height and nothing is repeated.
 * The artwork carries its own wording (kept for screen readers); the
 * video's heading sits over the foot of the video, as on desktop.
 */
@media (max-width: 47.99em) {
	.nv-hero--artwork {
		background: #101114;
	}

	.nv-hero--artwork .nv-hero__slide {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 1fr auto auto auto;
	}

	.nv-hero--artwork .nv-hero__slide .nv-hero__media {
		grid-row: 1 / 4;
		grid-column: 1;
		position: relative;
		order: 0;
		aspect-ratio: var(--nv-hero-ratio-m);
		min-block-size: 0;
		margin: 0;
	}

	.nv-hero--artwork .nv-hero__slide .nv-hero__content,
	.nv-hero--artwork .nv-hero__slide .nv-hero__inner {
		display: contents;
	}

	/* Artwork wording: shown in the picture, so hidden as text (still read out). */
	.nv-hero--artwork .nv-hero__slide--artwork .nv-hero__words {
		position: absolute;
		inline-size: 1px;
		block-size: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	/* The video's words over the foot of the video, on a soft shade. */
	.nv-hero--artwork .nv-hero__slide--full .nv-hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(to top, rgba(16, 17, 20, 0.88) 0%, rgba(16, 17, 20, 0.45) 45%, rgba(16, 17, 20, 0) 78%);
		pointer-events: none;
	}

	.nv-hero--artwork .nv-hero__slide--full .nv-eyebrow,
	.nv-hero--artwork .nv-hero__slide--full .nv-hero__heading {
		position: relative;
		z-index: 2;
		grid-column: 1;
		justify-self: stretch;
		margin: 0;
		padding-inline: var(--nv-gutter);
		text-align: start;
	}

	.nv-hero--artwork .nv-hero__slide--full .nv-eyebrow {
		grid-row: 2;
		margin-block-end: 0.35rem;
		font-size: 0.6875rem;
	}

	.nv-hero--artwork .nv-hero__slide--full .nv-eyebrow--spectrum::before {
		margin-inline: 0;
	}

	.nv-hero--artwork .nv-hero__slide--full .nv-hero__heading {
		grid-row: 3;
		padding-block-end: 0.9rem;
		font-size: clamp(1.25rem, 0.85rem + 2.4vw, 1.5rem);
		line-height: 1.12;
	}

	.nv-hero--artwork .nv-hero__slide--full .nv-hero__text {
		display: none;
	}

	/* Every slide's button: one slim row under the picture, above the controls. */
	.nv-hero--artwork .nv-hero__slide .nv-hero__inner .nv-button {
		position: static;
		grid-row: 4;
		grid-column: 1;
		justify-self: center;
		align-self: start;
		min-block-size: 2.75rem;
		margin: 0.85rem 0 3.6rem;
		padding: 0.55rem 1.4rem;
		font-size: 0.9375rem;
		pointer-events: auto;
	}

	.nv-hero--artwork .nv-hero__badge {
		position: relative;
		z-index: 2;
		grid-row: 1;
		grid-column: 1;
		align-self: start;
		justify-self: start;
		margin: 0.5rem;
	}

	.nv-hero--artwork .nv-hero__controls {
		inset-block-end: 0.45rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nv-hero__slide :is(.nv-eyebrow, .nv-hero__heading, .nv-hero__text, .nv-button),
	.nv-hero__slide.is-active :is(.nv-eyebrow, .nv-hero__heading, .nv-hero__text, .nv-button),
	.nv-hero .nv-hero__slide .nv-hero__inner .nv-button,
	.nv-hero .nv-hero__slide.is-active .nv-hero__inner .nv-button {
		transition: none;
	}
}

/* Controls: one translucent bar at the bottom of the banner. */
.nv-hero__controls {
	position: absolute;
	inset-block-end: 1rem;
	inset-inline-start: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem;
	border-radius: 999px;
	background: rgba(20, 18, 16, 0.55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #fff;
	transform: translateX(-50%);
}

.nv-hero__controls[hidden] {
	display: none;
}

@media (min-width: 64em) {
	.nv-hero__controls {
		inset-block-end: 1.5rem;
		inset-inline-start: auto;
		inset-inline-end: max(var(--nv-gutter), calc((100vw - 84rem) / 2));
		transform: none;
	}
}

.nv-hero__control {
	display: inline-grid;
	place-items: center;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.nv-hero__control:hover {
	background: rgba(255, 255, 255, 0.16);
}

.nv-hero__control:focus-visible,
.nv-hero__dot:focus-visible {
	outline: 2px solid #5fd6e4;
	outline-offset: 2px;
}

.nv-hero__icon {
	inline-size: 1rem;
	block-size: 1rem;
}

.nv-hero__pause .nv-hero__icon--play,
.nv-hero__pause[aria-pressed="true"] .nv-hero__icon--pause {
	display: none;
}

.nv-hero__pause[aria-pressed="true"] .nv-hero__icon--play {
	display: block;
}

.nv-hero__arrows {
	display: flex;
}

.nv-hero__dots {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	padding-inline: 0.25rem;
}

/* 24px hit area around an 8px dot; the active dot stretches and fills with progress. */
.nv-hero__dot {
	position: relative;
	display: grid;
	place-items: center;
	min-inline-size: 1.5rem;
	block-size: 2.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.nv-hero__dot::before {
	content: "";
	inline-size: 0.5rem;
	block-size: 0.5rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.5);
	transition: inline-size 0.3s ease, background-color 0.3s ease;
}

.nv-hero__dot:hover::before {
	background: rgba(255, 255, 255, 0.85);
}

.nv-hero__dot[aria-current="true"] {
	min-inline-size: 2.5rem;
}

.nv-hero__dot[aria-current="true"]::before {
	inline-size: 2rem;
	background: rgba(255, 255, 255, 0.35);
}

.nv-hero__dot-fill {
	position: absolute;
	inset-block-start: calc(50% - 0.25rem);
	inset-inline-start: calc(50% - 1rem);
	inline-size: 2rem;
	block-size: 0.5rem;
	border-radius: 999px;
	background: #fff;
	transform: scaleX(var(--progress, 0));
	transform-origin: left center;
	opacity: 0;
}

.nv-hero__dot[aria-current="true"] .nv-hero__dot-fill {
	opacity: 1;
}

.nv-hero__notes {
	padding-block: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
	.nv-hero__slide,
	.nv-hero__slide.is-active {
		transition: none;
	}
}

/* Wraps onto more lines on narrow screens (no hidden sideways scrolling). */
.nv-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 2.5rem;
	margin: 0;
	padding: 1rem var(--nv-gutter);
	border-block-start: 1px solid rgba(255, 255, 255, 0.12);
	background: #2b2826;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.8125rem;
	scrollbar-width: none;
}

.nv-trust::-webkit-scrollbar {
	display: none;
}

.nv-trust__item {
	display: inline-flex;
	flex: 0 1 auto;
	align-items: center;
	gap: 0.5rem;
	text-align: center;
}

.nv-trust__icon {
	inline-size: 1.125rem;
	block-size: 1.125rem;
	color: #5fd6e4;
}

/* Trustpilot TrustBox in the facts row (use a TrustBox with the dark theme here). */
.nv-trust__item--tp {
	min-inline-size: 15rem;
}

.nv-trust__item--tp .nv-tp {
	inline-size: 100%;
}

.nv-trust .nv-tp__label {
	color: rgba(255, 255, 255, 0.7);
}

/* Trustpilot text rating in the facts row (light on dark). */
.nv .nv-trust .nv-tp-text {
	color: rgba(255, 255, 255, 0.88);
	font-size: inherit;
	white-space: nowrap;
	flex-wrap: nowrap;
}

.nv-trust .nv-tp-text__score,
.nv-trust .nv-tp-text__sep {
	color: rgba(255, 255, 255, 0.7);
}

.nv-trust .nv-tp-text__score strong {
	color: #fff;
	font-size: 0.9375rem;
}

.nv-trust .nv-tp-text__icon {
	color: #5fd6e4;
	opacity: 1;
}

/* Phones (0.13.5): a slim two-by-two grid instead of four stacked lines. */
@media (max-width: 47.99em) {
	.nv-trust {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: center;
		gap: 0.55rem 0.9rem;
		padding: 0.7rem var(--nv-gutter);
		font-size: 0.75rem;
		line-height: 1.3;
	}

	.nv-trust__item {
		justify-content: flex-start;
		gap: 0.4rem;
		min-inline-size: 0;
		text-align: start;
	}

	.nv-trust__icon {
		flex: none;
		inline-size: 0.95rem;
		block-size: 0.95rem;
	}

	.nv .nv-trust .nv-tp-text {
		flex-wrap: wrap;
		gap: 0 0.25rem;
		white-space: normal;
	}

	.nv-trust .nv-tp-text__score strong {
		font-size: 0.8125rem;
	}

	.nv-trust__item--tp {
		min-inline-size: 0;
	}
}

/* The black branding banner keeps its 140px height inside .nv. */
.nv .image-strip__media {
	block-size: 140px;
}

/* Sliders reuse the theme's [data-slider]; only spacing changes here. */
.nv-slider {
	--slider-gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
}

.nv-slider .slider__slide {
	display: flex;
}

.nv-slider .slider__slide > * {
	flex: 1;
}

.nv .slider__progress-bar {
	background: var(--nv-ink);
}

/* Trustpilot TrustBox above the testimonials */
.nv-reviews__tp {
	margin-block-end: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
	padding: clamp(1rem, 0.75rem + 1vw, 1.75rem);
	border-radius: var(--nv-radius);
	background: #fff;
	box-shadow: 0 18px 40px -30px rgba(43, 37, 94, 0.45);
}

@media (min-width: 48em) and (max-width: 63.99em) {
	.nv-bestsellers .slider {
		--columns: 2.6;
	}

	.nv-reviews .slider {
		--columns: 2.2;
	}
}

/* ---------------------------------------------------------------
 * Shop by goal (refined 0.13.0: icons, each goal's own colour,
 * a four-product layout)
 * ------------------------------------------------------------- */
.nv-goals {
	background:
		radial-gradient(40rem 22rem at 100% 0%, rgba(78, 37, 131, 0.06), transparent 70%),
		var(--nv-paper);
}

.nv-tabs {
	display: flex;
	gap: 0.5rem;
	margin: 0 calc(var(--nv-gutter) * -1) clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	padding: 0.35rem var(--nv-gutter);
	overflow-x: auto;
	scrollbar-width: none;
}

.nv-tabs::-webkit-scrollbar {
	display: none;
}

.nv-tabs[hidden] {
	display: none;
}

.nv-tab {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 1.1rem 0.55rem 0.6rem;
	border: 1px solid var(--nv-line);
	border-radius: 999px;
	background: #fff;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(27, 23, 64, 0.04);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nv-tab__icon {
	display: inline-grid;
	place-items: center;
	inline-size: 1.85rem;
	block-size: 1.85rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--accent) 12%, #fff);
	color: var(--accent);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.nv-tab__icon .icon {
	inline-size: 1rem;
	block-size: 1rem;
}

.nv-tab:hover {
	border-color: var(--accent);
	box-shadow: 0 0.6rem 1.2rem -0.9rem rgba(27, 23, 64, 0.45);
	transform: translateY(-1px);
}

.nv-tab[aria-selected="true"] {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
	box-shadow: 0 0.75rem 1.5rem -1rem color-mix(in srgb, var(--accent) 80%, #000);
}

.nv-tab[aria-selected="true"] .nv-tab__icon {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.nv-goal {
	display: grid;
	gap: 1.25rem;
}

.nv-goal + .nv-goal {
	margin-block-start: 3rem;
}

.nv-goals.is-tabbed .nv-goal + .nv-goal {
	margin-block-start: 0;
}

.nv-goal[hidden] {
	display: none;
}

.nv-goals.is-tabbed .nv-goal:not([hidden]) {
	animation: nv-goal-in 0.35s ease both;
}

@keyframes nv-goal-in {
	from {
		opacity: 0;
		translate: 0 0.5rem;
	}
	to {
		opacity: 1;
		translate: 0 0;
	}
}

.nv-goal__intro {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
	border-radius: var(--nv-radius);
	background:
		radial-gradient(18rem 14rem at 100% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
		linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, #fff) 0%, #fff 70%);
}

.nv-goal__intro::before {
	position: absolute;
	inset: 0 auto 0 0;
	inline-size: 4px;
	background: var(--accent);
	content: "";
}

.nv-goal__icon {
	display: inline-grid;
	place-items: center;
	inline-size: 3rem;
	block-size: 3rem;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	box-shadow: 0 0.75rem 1.5rem -1rem var(--accent);
}

.nv-goal__icon .icon {
	inline-size: 1.4rem;
	block-size: 1.4rem;
}

.nv-goal__words {
	display: grid;
	gap: 0.4rem;
}

.nv-goal__label {
	color: var(--accent);
}

.nv-goal__text {
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-wrap: balance;
}

.nv-goal__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-block-start: auto;
}

.nv .nv-goal__shop {
	gap: 0.45rem;
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.nv .nv-goal__shop:hover {
	border-color: color-mix(in srgb, var(--accent) 80%, #000);
	background: color-mix(in srgb, var(--accent) 80%, #000);
	color: #fff;
}

.nv-goal__quiz {
	font-size: 0.875rem;
}

.nv-goal__products {
	display: grid;
	grid-auto-columns: minmax(15rem, 72%);
	grid-auto-flow: column;
	gap: 0.875rem;
	margin: 0 calc(var(--nv-gutter) * -1);
	padding: 0 var(--nv-gutter) 0.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--nv-gutter);
	scrollbar-width: none;
}

.nv-goal__products::-webkit-scrollbar {
	display: none;
}

.nv-goal__products > li {
	scroll-snap-align: start;
}

.nv-goal__products .nv-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nv-goal__products .nv-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 1.25rem 2.5rem -1.75rem rgba(27, 23, 64, 0.45);
}

.nv-goal .nv-card__label::before {
	content: "";
	inline-size: 0.45rem;
	block-size: 0.45rem;
	border-radius: 50%;
	background: var(--accent);
}

@media (min-width: 64em) {
	/* Up to three products: the intro beside them. */
	.nv-goal {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		align-items: stretch;
	}

	.nv-goal--2 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.nv-goal--1 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nv-goal--2 .nv-card__media,
	.nv-goal--1 .nv-card__media {
		aspect-ratio: 4 / 3;
	}

	.nv-goal--2 .nv-card__media img,
	.nv-goal--1 .nv-card__media img {
		object-fit: contain;
	}

	.nv-goal__products {
		grid-column: span 3;
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.nv-goal--2 .nv-goal__products {
		grid-column: span 2;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nv-goal--1 .nv-goal__products {
		grid-column: span 1;
		grid-template-columns: minmax(0, 1fr);
	}

	/* Four products: the intro becomes a band across the top. */
	.nv-goal--4 .nv-goal__intro {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
		gap: 1.25rem 1.75rem;
	}

	.nv-goal--4 .nv-goal__words {
		flex: 1;
	}

	.nv-goal--4 .nv-goal__actions {
		margin-block-start: 0;
	}

	.nv-goal--4 .nv-goal__products {
		grid-column: 1 / -1;
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.nv-goals.is-tabbed .nv-goal:not([hidden]) {
		animation: none;
	}

	.nv-tab,
	.nv-tab:hover,
	.nv-goal__products .nv-card,
	.nv-goal__products .nv-card:hover {
		transition: none;
		transform: none;
	}
}

/* ---------------------------------------------------------------
 * Stacks
 * ------------------------------------------------------------- */
.nv-stack {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	background: var(--nv-card);
}

.nv-stack__media {
	display: block;
	flex-shrink: 0;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--nv-paper);
}

.nv-stack__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.nv-stack:hover .nv-stack__media img {
	transform: scale(1.035);
}

.nv-stack__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.1rem 1.15rem 1.2rem;
}

.nv-stack__title {
	margin: 0;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.nv-stack__title a {
	text-decoration: none;
}

.nv-stack__subtitle {
	color: var(--nv-muted);
	font-size: 0.875rem;
	line-height: 1.45;
}

.nv-stack__includes {
	margin-block-start: 0.5rem !important;
	color: var(--nv-muted);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nv-stack__parts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
}

.nv-stack__parts a {
	display: inline-block;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: var(--nv-paper);
	color: var(--nv-ink);
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
}

.nv-stack__parts a:hover {
	background: #e8e3f3;
}

/* Smaller cards list their contents rather than using pills. */
.nv-stacks__row .nv-stack__parts {
	flex-direction: column;
	gap: 0.2rem;
}

.nv-stacks__row .nv-stack__parts a {
	position: relative;
	padding: 0 0 0 0.9rem;
	border-radius: 0;
	background: none;
	font-size: 0.875rem;
	line-height: 1.4;
}

.nv-stacks__row .nv-stack__parts a::before {
	content: "";
	position: absolute;
	inset-block-start: 0.5em;
	inset-inline-start: 0;
	inline-size: 0.35rem;
	block-size: 0.35rem;
	border-radius: 50%;
	background: var(--nv-spectrum);
}

.nv-stacks__row .nv-stack__parts a:hover {
	background: none;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.nv-stack__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	margin-block-start: auto;
	padding-block-start: 0.9rem;
}

/* Featured stack */
.nv-stack--featured {
	position: relative;
	border: 0;
	background: linear-gradient(135deg, var(--nv-ink) 0%, var(--nv-ink-deep) 100%);
	color: #fff;
}

.nv-stack--featured::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	block-size: 4px;
	background: var(--nv-spectrum);
}

.nv-stack--featured .nv-stack__body {
	gap: 0.6rem;
	padding: 1.75rem 1.5rem 2rem;
}

.nv-stack--featured .nv-eyebrow {
	color: rgba(255, 255, 255, 0.8);
}

.nv-stack--featured .nv-stack__title {
	color: #fff;
	font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.5rem);
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.nv-stack--featured .nv-stack__subtitle {
	color: rgba(255, 255, 255, 0.78);
	font-size: 1.0625rem;
}

.nv-stack--featured .nv-stack__includes {
	color: rgba(255, 255, 255, 0.65);
}

.nv-stack--featured .nv-stack__parts a {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.nv-stack--featured .nv-stack__parts a:hover {
	background: rgba(255, 255, 255, 0.2);
}

.nv-stack--featured .nv-stack__price {
	color: #fff;
	font-size: 1.5rem;
}

.nv-stack--featured .nv-stack__price del {
	color: rgba(255, 255, 255, 0.65);
}

.nv-stack--featured .nv-stack__footer {
	padding-block-start: 1.5rem;
}

.nv-stack--featured .nv-stack__media {
	aspect-ratio: 4 / 3;
}

.nv-stacks__row {
	display: grid;
	grid-auto-columns: minmax(14.5rem, 72%);
	grid-auto-flow: column;
	gap: 0.875rem;
	margin: 1rem calc(var(--nv-gutter) * -1) 0;
	padding: 0 var(--nv-gutter) 0.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--nv-gutter);
	scrollbar-width: none;
}

.nv-stacks__row::-webkit-scrollbar {
	display: none;
}

.nv-stacks__row > li {
	scroll-snap-align: start;
}

@media (min-width: 48em) {
	.nv-stacks__row {
		grid-auto-columns: minmax(14.5rem, 40%);
	}
}

@media (min-width: 64em) {
	.nv-stack--featured {
		display: grid;
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		align-items: stretch;
	}

	.nv-stack--featured .nv-stack__media {
		aspect-ratio: auto;
		min-block-size: 26rem;
	}

	.nv-stack--featured .nv-stack__body {
		justify-content: center;
		padding: clamp(2rem, 1rem + 3vw, 4rem);
	}

	.nv-stack--featured .nv-stack__footer {
		justify-content: flex-start;
		gap: 1.5rem;
		margin-block-start: 0;
	}

	.nv-stacks__row {
		grid-auto-flow: row;
		grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
		gap: 1rem;
		margin: 1rem 0 0;
		padding: 0;
		overflow: visible;
	}
}

/* ---------------------------------------------------------------
 * Quality and testing
 * ------------------------------------------------------------- */
.nv-quality {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(40rem 26rem at 8% 0%, rgba(0, 181, 203, 0.18), transparent 70%),
		radial-gradient(36rem 26rem at 100% 100%, rgba(230, 0, 126, 0.14), transparent 70%),
		var(--nv-ink-deep);
	color: #fff;
}

.nv-quality__grid {
	display: grid;
	gap: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.nv-quality .nv-eyebrow {
	color: rgba(255, 255, 255, 0.8);
}

.nv-quality__statement {
	margin-block-start: 1.25rem !important;
	color: #fff;
	font-family: var(--nv-heading);
	font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.625rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.15;
	text-wrap: balance;
}

.nv-quality__more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-block-start: 1.5rem;
	color: #fff;
	font-family: var(--nv-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.4);
	text-underline-offset: 0.3em;
}

.nv-quality__more:hover {
	text-decoration-color: #fff;
}

.nv-quality__points {
	display: grid;
	gap: 0;
	margin: 2rem 0 0;
}

.nv-quality__points li {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding-block: 1rem;
	border-block-start: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 1rem;
}

.nv-quality__points li:last-child {
	border-block-end: 1px solid rgba(255, 255, 255, 0.14);
}

.nv-quality__icon {
	flex: 0 0 auto;
	inline-size: 1.4rem;
	block-size: 1.4rem;
	color: #5fd6e4;
}

.nv-quality__subheading {
	margin: 0 0 1.25rem;
	color: rgba(255, 255, 255, 0.8);
	font-family: var(--nv-heading);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.nv-formulas {
	display: grid;
	gap: 0.75rem;
	margin: 0;
}

.nv-formula {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.25rem 1.25rem 1.3rem 1.5rem;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--nv-radius-s);
	background: rgba(255, 255, 255, 0.045);
}

.nv-formula::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	inline-size: 4px;
	background: var(--accent);
}

.nv-formula__name {
	color: #fff;
	font-family: var(--nv-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	text-decoration: none;
}

.nv-formula__name:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.nv-formula__text {
	color: rgba(255, 255, 255, 0.74);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.nv-formula__pdf {
	margin-block-start: 0.25rem;
	color: #5fd6e4 !important;
	font-size: 0.875rem;
	font-weight: 500;
}

@media (min-width: 48em) {
	.nv-formulas {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.nv-quality__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
	}

	.nv-quality__lead {
		position: sticky;
		inset-block-start: 8rem;
	}
}

/* ---------------------------------------------------------------
 * Start Here quiz
 * ------------------------------------------------------------- */
.nv-quiz__card {
	display: grid;
	gap: 2rem;
	padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
	border: 1.5px solid transparent;
	border-radius: calc(var(--nv-radius) * 1.4);
	background:
		linear-gradient(#fff, #fff) padding-box,
		var(--nv-spectrum) border-box;
}

.nv-quiz__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	align-self: center;
}

.nv-quiz__copy .nv-heading {
	margin-block-start: 0.5rem;
}

.nv-quiz__copy .nv-section__intro {
	margin-block-end: 1.25rem !important;
}

.nv-quiz__preview {
	padding: clamp(1.25rem, 1rem + 1vw, 2rem);
	border-radius: var(--nv-radius);
	background: var(--nv-paper);
}

.nv-quiz__progress {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--nv-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nv-quiz__bar {
	position: relative;
	flex: 1;
	block-size: 4px;
	overflow: hidden;
	border-radius: 4px;
	background: rgba(43, 37, 94, 0.12);
}

.nv-quiz__bar span {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	inline-size: 16.67%;
	border-radius: 4px;
	background: var(--nv-spectrum);
}

.nv-quiz__question {
	margin-block: 1rem !important;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	font-weight: 600;
	letter-spacing: -0.01em;
}

.nv-quiz__options {
	display: grid;
	gap: 0.5rem;
	margin: 0;
}

.nv-quiz__options li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 1rem;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius-s);
	background: #fff;
	color: var(--nv-text);
	font-size: 0.9375rem;
}

.nv-quiz__options li::before {
	content: "";
	flex: 0 0 auto;
	inline-size: 1rem;
	block-size: 1rem;
	border: 1.5px solid rgba(43, 37, 94, 0.35);
	border-radius: 50%;
}

@media (min-width: 64em) {
	.nv-quiz__card {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 4rem;
	}

	.nv-quiz__options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------------------------------------------------------------
 * Reviews
 * ------------------------------------------------------------- */
.nv-review {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	block-size: 100%;
	margin: 0;
	padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
	border-radius: var(--nv-radius);
	background: #fff;
}

.nv-review .product-rating {
	display: flex;
	justify-content: flex-start;
}

.nv-review .product-rating__value {
	display: flex;
	gap: 0.15rem;
	color: var(--nv-star);
}

.nv-review__quote {
	flex: 1;
	margin: 0;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 1.0625rem;
	font-weight: 500;
	letter-spacing: -0.005em;
	line-height: 1.5;
}

.nv-review__author {
	color: var(--nv-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

/* ---------------------------------------------------------------
 * Team
 * ------------------------------------------------------------- */
.nv-team__grid {
	display: grid;
	gap: 1.25rem;
}

.nv-person {
	display: grid;
	overflow: hidden;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	background: #fff;
}

.nv-person__media {
	background: var(--nv-paper);
}

.nv-person__media img {
	inline-size: 100%;
	block-size: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 25%;
}

.nv-person__body {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.nv-person__body .nv-eyebrow {
	color: #8a2f9e;
}

.nv-person__name {
	margin: 0;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.nv-person__bio {
	color: var(--nv-muted);
	font-size: 1rem;
	line-height: 1.7;
	max-inline-size: 40rem;
}

@media (max-width: 47.99em) {
	.nv-person__media img {
		aspect-ratio: 1;
	}
}

@media (min-width: 48em) {
	.nv-team__grid--1 .nv-person {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		align-items: center;
	}

	.nv-team__grid--1 .nv-person__media img {
		aspect-ratio: 1;
	}

	.nv-team__grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.nv *,
	.nv *::before,
	.nv *::after {
		transition: none !important;
	}
}

/* ---------------------------------------------------------------
 * Offer and quality panels under the banner
 * (template-parts/front/promos.php, redesigned 0.13.1): two compact
 * panels side by side; on phones two short rows.
 * ------------------------------------------------------------- */
.nv-promos {
	padding-block: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem);
	background: linear-gradient(180deg, #f6f3fa 0%, var(--nv-paper) 100%);
}

.nv-promos__grid {
	display: grid;
	gap: clamp(0.6rem, 0.4rem + 0.6vw, 1rem);
}

@media (min-width: 60em) {
	.nv-promos:not(.nv-promos--single) .nv-promos__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.nv-promo {
	--promo-accent: #4e2583;
	--promo-tint: #f1ecf7;
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.4rem 1.1rem;
	padding: 1rem 1.25rem;
	overflow: hidden;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 1px 2px rgba(27, 23, 64, 0.05), 0 0.75rem 1.75rem -1.25rem rgba(27, 23, 64, 0.28);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nv-promo--testing {
	--promo-accent: #0e7490;
	--promo-tint: #e6f3f5;
}

/* A faint wash of the panel's colour in the far corner. */
.nv-promo::after {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	inline-size: 40%;
	background: radial-gradient(70% 90% at 100% 50%, var(--promo-tint), transparent 70%);
	content: "";
	pointer-events: none;
}

.nv-promo > * {
	position: relative;
	z-index: 1;
}

.nv-promo:hover {
	box-shadow: 0 1px 2px rgba(27, 23, 64, 0.05), 0 1rem 2.25rem -1.25rem rgba(27, 23, 64, 0.38);
	transform: translateY(-1px);
}

.nv-promo__icon {
	display: inline-grid;
	place-items: center;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	border-radius: 999px;
	background: var(--promo-tint);
	color: var(--promo-accent);
}

.nv-promo__icon .icon {
	inline-size: 1.15rem;
	block-size: 1.15rem;
}

.nv-promo__body {
	display: grid;
	gap: 0.2rem;
	min-inline-size: 0;
}

.nv-promo__tag {
	margin: 0 !important;
	color: var(--promo-accent);
	font-family: var(--nv-heading);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.nv .nv-promo__heading {
	margin: 0;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: clamp(0.9375rem, 0.88rem + 0.2vw, 1.0625rem);
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.25;
	text-transform: uppercase;
	text-wrap: balance;
}

.nv-promo__text {
	margin: 0.1rem 0 0 !important;
	color: var(--nv-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.nv-promo__note {
	color: var(--nv-text);
}

/* Qualifying products: a quiet expandable list. */
.nv-promo__more {
	margin-block-start: 0.15rem;
	font-size: 0.75rem;
}

.nv-promo__more summary {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--nv-ink);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.nv-promo__more summary::-webkit-details-marker {
	display: none;
}

.nv-promo__more summary:hover {
	color: var(--promo-accent);
}

.nv-promo__caret {
	inline-size: 0.85rem;
	block-size: 0.85rem;
	transition: transform 0.2s ease;
}

.nv-promo__more[open] .nv-promo__caret {
	transform: rotate(180deg);
}

.nv-promo__products {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin: 0.45rem 0 0;
}

.nv .nv-promo__products a {
	display: inline-flex;
	padding: 0.2rem 0.6rem;
	border: 1px solid rgba(43, 37, 94, 0.16);
	border-radius: 999px;
	color: var(--nv-ink);
	font-size: 0.75rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nv .nv-promo__products a:hover {
	border-color: var(--promo-accent);
	background: var(--promo-tint);
}

.nv .nv-promo__cta {
	display: inline-flex;
	align-items: center;
	justify-self: end;
	gap: 0.4rem;
	min-block-size: 2.5rem;
	padding: 0.5rem 1.05rem;
	border-radius: 999px;
	background: var(--nv-ink);
	color: #fff;
	font-family: var(--nv-heading);
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.nv .nv-promo__cta:hover {
	background: #4e2583;
	color: #fff;
}

.nv-promo__cta .icon {
	inline-size: 0.85rem;
	block-size: 0.85rem;
	transition: transform 0.2s ease;
}

.nv-promo__cta:hover .icon {
	transform: translateX(2px);
}

.nv .nv-promos a:focus-visible,
.nv .nv-promo__more summary:focus-visible {
	outline: 2px solid #00b5cb;
	outline-offset: 2px;
}

.nv-promo--preview {
	outline: 1px dashed #c0392b;
	outline-offset: -3px;
}

.nv-promo__badge {
	justify-self: start;
	padding: 0.1rem 0.55rem;
	border: 1px dashed #c0392b;
	border-radius: 999px;
	background: #fff6f5;
	color: #8a1f12;
	font-size: 0.6875rem;
	font-weight: 600;
}

/* Phones: no icon column; the button sits beside "Qualifying products". */
@media (max-width: 47.99em) {
	/* Explicit rows: label, heading, text, then the products link and button. */
	.nv-promos {
		padding-block: 0.6rem;
	}

	.nv-promos__grid {
		gap: 0.5rem;
	}

	.nv-promo {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0.15rem 0.75rem;
		padding: 0.7rem 0.9rem;
		border-radius: 0.75rem;
	}

	.nv-promo__icon {
		display: none;
	}

	.nv-promo__body {
		display: contents;
	}

	.nv-promo__badge {
		grid-row: 1;
		grid-column: 1 / -1;
	}

	.nv-promo__tag {
		grid-row: 2;
		grid-column: 1 / -1;
	}

	.nv .nv-promo__heading {
		grid-row: 3;
		grid-column: 1 / -1;
	}

	.nv-promo__text {
		grid-row: 4;
		grid-column: 1 / -1;
	}

	.nv-promo__more {
		grid-row: 5;
		grid-column: 1;
		align-self: center;
		margin: 0.3rem 0 0;
	}

	.nv-promo__more[open] {
		grid-column: 1 / -1;
	}

	.nv .nv-promo__cta {
		grid-row: 5;
		grid-column: 2;
		align-self: center;
		margin-block-start: 0.3rem;
		min-block-size: 2.25rem;
		padding: 0.35rem 0.9rem;
		font-size: 0.78125rem;
	}

	.nv .nv-promo:has(.nv-promo__more[open]) .nv-promo__cta {
		grid-row: 6;
		justify-self: start;
	}

	.nv-promo--testing .nv-promo__cta {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.nv-promo__tag {
		font-size: 0.625rem;
		letter-spacing: 0.16em;
	}

	.nv .nv-promo__heading {
		font-size: 0.875rem;
		letter-spacing: 0.04em;
	}

	.nv-promo__text {
		font-size: 0.78125rem;
		line-height: 1.45;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nv-promo,
	.nv-promo:hover,
	.nv-promo__cta .icon,
	.nv-promo__caret {
		transition: none;
		transform: none;
	}
}

