/* Natige — factory band, factory story, customer reviews. */

/* Scroll reveal: js/reveal.js adds .reveal + .is-inview; without JS nothing
   is hidden because the base class never lands. */
.reveal {
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.7s cubic-bezier(0.35, 0, 0.14, 1) var(--reveal-delay, 0ms),
		transform 0.7s cubic-bezier(0.35, 0, 0.14, 1) var(--reveal-delay, 0ms);
}

.reveal.is-inview {
	opacity: 1;
	transform: none;
}

.factory-band {
	--factory-blue: #3A78BA;
	--factory-lime: #C6E260;
	padding: 64px 0 72px;
	background: #fff;
	color: #1c2430;
}

.factory-band__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: 32px;
}

.factory-band__copy {
	max-width: 34em;
}

.factory-band__eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--factory-lime);
}

.factory-band__title {
	margin: 0 0 12px;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.12;
	color: var(--factory-blue);
}

.factory-band__lead {
	margin: 0;
	font-size: 17px;
	line-height: 1.5;
	color: #5a6168;
}

.factory-band__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--factory-blue);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: color 160ms ease;
}

.factory-band__link:hover,
.factory-band__link:focus-visible {
	color: var(--factory-lime);
	text-decoration: none;
}

.factory-band__link:focus-visible {
	outline: 2px solid var(--factory-lime);
	outline-offset: 4px;
}

.factory-band__shots {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	min-height: 420px;
}

.factory-band__shots li:first-child {
	grid-row: 1 / 3;
}

.factory-band__shots li {
	min-height: 0;
}

.factory-band__shot {
	display: block;
	height: 100%;
	overflow: hidden;
	border-radius: 16px;
	background: #d9e3ea;
}

.factory-band__shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.35, 0, 0.14, 1);
}

.factory-band__shot:hover img,
.factory-band__shot:focus-visible img {
	transform: scale(1.06);
}

.factory-band__shot:focus-visible {
	outline: 2px solid var(--factory-lime);
	outline-offset: 3px;
}

.story-mission {
	background: #ffffff;
	padding: 32px 0 64px;
}

.story-mission__head {
	margin: 0 0 32px;
	text-align: center;
}

.story-mission__title {
	margin: 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.12;
	color: #3A78BA;
}

.factory-story {
	--factory-blue: #3A78BA;
	--factory-lime: #C6E260;
	--factory-ink: #243040;
	padding: 0;
	background: none;
}

.factory-story .section-1400 {
	background: #ffffff;
	border-radius: 32px;
	padding: 40px 40px 40px 48px;
	box-shadow: 0 16px 40px rgba(36, 48, 64, 0.10);
}

.factory-story__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 8px 24px 8px 0;
}

.factory-story__title {
	margin: 0 0 12px;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.12;
	color: var(--factory-ink);
}

.factory-story__lead {
	margin: 0 0 28px;
	max-width: 36em;
	font-size: 16px;
	line-height: 1.55;
	color: #3a4250;
}

.factory-story__steps {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.factory-story__item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 0 0 20px;
}

.factory-story__item:last-child {
	padding-bottom: 0;
}

.factory-story__mark {
	position: relative;
	z-index: 1;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #3A78BA;
	color: #fff;
	overflow: visible;
}

.factory-story__mark svg {
	display: block;
	width: 34px;
	height: 34px;
}

.factory-story__body {
	padding-top: 2px;
	min-width: 0;
}

.factory-story__heading {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--factory-ink);
}

.factory-story__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #3a4250;
	max-width: 36em;
}

.factory-story__visual {
	display: flex;
}

.factory-story__media {
	position: relative;
	flex: 1;
	margin: 0;
	overflow: hidden;
	border-radius: 24px;
	min-height: 360px;
	background: #d9e3ea;
}

.factory-story__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.reviews {
	--rev-blue: #3A78BA;
	--rev-lime: #C6E260;
	--rev-ink: #243040;
	--rev-mute: #6b7380;
	--rev-paper: #ffffff;
	padding: 64px 0;
	background: var(--rev-paper);
}

.reviews__head {
	display: flex;
	justify-content: center;
	margin: 0 0 24px;
	text-align: center;
}

.reviews__title {
	margin: 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.12;
	color: var(--rev-blue);
}

.reviews__stage {
	--reviews-per: 3;
	--reviews-gap: 20px;
	position: relative;
	padding: 0;
}

.reviews__viewport {
	overflow: hidden;
	transition: opacity 180ms ease;
}

.reviews__viewport.is-swap {
	opacity: 0;
}

.reviews__slides {
	display: grid;
	grid-template-columns: repeat(var(--reviews-per), minmax(0, 1fr));
	align-items: stretch;
	gap: var(--reviews-gap);
	width: 100%;
}

.reviews__slide {
	display: none;
	flex-direction: column;
	min-width: 0;
	padding: 28px 32px;
	border: 1px solid #e6eaee;
	border-radius: 28px;
	background: #fff;
	text-align: left;
}

.reviews__slide.is-on {
	display: flex;
}

.reviews__who {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid #e6eaee;
}

.reviews__who-copy {
	min-width: 0;
}

.reviews__slide cite {
	display: block;
	font-style: normal;
	font-family: var(--font-display, "Work Sans", sans-serif);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--rev-ink);
}

.reviews__role {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--rev-mute);
}

.reviews__source {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	background: #FCB43C;
	color: #243040;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.reviews__avatar {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #d9dee4;
	color: var(--rev-blue);
	font-family: var(--font-display, "Work Sans", sans-serif);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.reviews__slide blockquote {
	display: flex;
	flex-direction: column;
	flex: 1;
	margin: 0;
	min-height: 0;
}

.reviews__quote {
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.55;
	color: #4a5260;
}

.reviews__quote::before,
.reviews__quote::after {
	color: var(--rev-lime);
	font-weight: 700;
}

.reviews__quote::before {
	content: '«';
	margin-right: 4px;
}

.reviews__quote::after {
	content: '»';
	margin-left: 4px;
}

.reviews__frame {
	position: relative;
	padding: 0 56px;
}

.reviews__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 2px solid rgba(58, 120, 186, 0.2);
	border-radius: 50%;
	background: #fff;
	color: var(--rev-blue);
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(58, 120, 186, 0.14);
	transition: border-color 160ms ease, background 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

.reviews__arrow--prev {
	left: 0;
}

.reviews__arrow--next {
	right: 0;
}

.reviews__arrow i {
	font-size: 22px;
	line-height: 1;
}

.reviews__arrow:hover,
.reviews__arrow:focus-visible {
	border-color: var(--rev-blue);
	background: var(--rev-blue);
	color: #fff;
}

.reviews__arrow:active {
	transform: scale(0.96);
}

.reviews__arrow:focus-visible {
	outline: 2px solid #FCB43C;
	outline-offset: 3px;
}

.reviews__progress {
	height: 3px;
	margin-top: 24px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(58, 120, 186, 0.12);
}

.reviews__progress span {
	display: block;
	height: 100%;
	width: 100%;
	transform: scaleX(0);
	transform-origin: left center;
	background: var(--rev-lime);
}

@media (max-width: 991.98px) {
	.reviews__stage {
		--reviews-per: 2;
		padding: 0;
	}
	.reviews__slide {
		padding: 20px;
	}
	.reviews__title {
		font-size: 28px;
	}
}

@media (max-width: 575.98px) {
	.reviews__stage {
		--reviews-per: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.reviews__arrow {
		transition: none;
	}
	.reviews__viewport,
	.reviews__slides {
		transition: none;
	}
	.reviews__progress,
	.reviews__progress span {
		display: none;
	}
}

.brands {
	--brand-blue: #3A78BA;
	--brand-lime: #C6E260;
	padding: 64px 0;
	background: #fff;
}

.brands__head {
	max-width: 36em;
	margin: 0 auto 32px;
	text-align: center;
}

.brands__title {
	margin: 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.12;
	color: var(--brand-blue);
}

.brands__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.brands__list li {
	display: block;
	min-width: 0;
}

.brands__card {
	height: 168px;
	perspective: 1200px;
	cursor: pointer;
}

.brands__inner {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.5s cubic-bezier(0, 0, 0.4, 1);
}

@media (hover: hover) and (pointer: fine) {
	.brands__card:hover .brands__inner {
		transform: rotateY(180deg);
	}
}

.brands__card.is-flipped .brands__inner {
	transform: rotateY(180deg);
}

.brands__face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px 20px;
	border-radius: 16px;
	border: 1px solid rgba(58, 120, 186, 0.12);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.brands__face--front {
	background: #fff;
	padding: 12px 16px;
}

.brands__face--front img {
	display: block;
	width: auto;
	height: auto;
	max-width: 92%;
	max-height: 124px;
	object-fit: contain;
	filter: drop-shadow(0 10px 14px rgba(12, 32, 56, 0.18));
}

.brands__face--back {
	background: #ffffff;
	color: var(--brand-blue);
	transform: rotateY(180deg);
	gap: 8px;
	padding: 16px 18px;
	text-align: center;
}

.brands__mark {
	display: block;
	max-width: 72%;
	max-height: 44px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.brands__text {
	margin: 0;
	max-width: 28em;
	font-size: 14px;
	line-height: 1.4;
	color: #343a40;
}

.brands__card:focus-visible {
	outline: 2px solid var(--brand-lime);
	outline-offset: 3px;
}

@media (max-width: 991.98px) {
	.story-mission,
	.brands,
	.reviews {
		padding: 48px 0;
	}
	.brands__head,
	.reviews__head {
		margin-bottom: 24px;
	}
	.factory-story {
		padding-bottom: 0;
	}
	.factory-story .section-1400 {
		padding: 24px;
		border-radius: 24px;
	}
	.factory-story__copy {
		padding: 0 0 20px;
	}
	.factory-band__title,
	.factory-story__title,
	.story-mission__title,
	.reviews__title,
	.brands__title {
		font-size: 28px;
	}
	.factory-band__shots {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: none;
		min-height: 0;
	}
	.factory-band__shots li:first-child {
		grid-column: 1 / -1;
		grid-row: auto;
		min-height: 240px;
	}
	.factory-band__shots li {
		min-height: 160px;
	}
	.factory-story__media {
		min-height: 280px;
		margin-bottom: 8px;
	}
	.reviews__frame {
		padding: 0 0 56px;
	}
	.reviews__arrow {
		top: auto;
		bottom: 0;
		margin-top: 0;
	}
	.reviews__arrow--prev {
		left: 0;
	}
	.reviews__arrow--next {
		right: 0;
	}
	.brands__rail {
		overflow: hidden;
		margin-inline: -15px;
	}
	.brands__list {
		display: flex;
		grid-template-columns: none;
		flex-wrap: nowrap;
		gap: 0;
		width: max-content;
		overflow: visible;
		margin: 0;
		padding-inline: 15px;
	}
	.brands__set {
		display: flex;
		flex-shrink: 0;
		gap: 12px;
		padding-inline-end: 12px;
	}
	.brands__list.is-marquee {
		animation: brandsMarquee var(--brand-marquee-s, 28s) linear infinite;
	}
	.brands__list.is-marquee:hover,
	.brands__list.is-marquee:focus-within,
	.brands__list.is-marquee.is-paused {
		animation-play-state: paused;
	}
	.brands__list.is-marquee .reveal {
		opacity: 1;
		transform: none;
	}
	.brands__list li {
		flex: 0 0 200px;
		width: 200px;
	}
	.brands__card {
		height: 136px;
		overflow: hidden;
		perspective: none;
		cursor: default;
	}
	.brands__inner,
	.brands__card.is-flipped .brands__inner,
	.brands__card:hover .brands__inner {
		transform: none !important;
		transform-style: flat;
		transition: none;
	}
	.brands__face {
		position: relative;
		backface-visibility: visible;
		-webkit-backface-visibility: visible;
	}
	.brands__face--front {
		position: absolute;
		inset: 0;
	}
	.brands__face--back {
		display: none;
	}
}

@media (max-width: 575.98px) {
	.factory-band__shots {
		grid-template-columns: 1fr 1fr;
	}
	.brands__list li {
		flex-basis: 180px;
		width: 180px;
	}
	.brands__card {
		height: 124px;
	}
	.brands__face--front img {
		max-height: 88px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.factory-band__shot img,
	.brands__inner {
		transition: none;
	}
	.brands__card {
		perspective: none;
	}
	.brands__inner {
		transform: none !important;
	}
	.brands__face--back {
		display: none;
	}
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.brands__list,
	.brands__list.is-marquee {
		animation: none;
		width: auto;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
}

@keyframes brandsMarquee {
	to { transform: translateX(-50%); }
}
