/* Customer stories, 1.3.2 (GTM-643, in the style of clay.com/customers and the clay.com home bento).
   Type and colours follow the webhavva theme: Murs Gothic, ink #121212, page #f4f2ee, cream #f1eae0,
   yellow #f4bd38, violet #5f6bde. */

/* ── [generect_case_studies]: the customers page ─────────────────────────── */

.gxcs {
	padding: 72px 0 120px;
}

.gxcs__inner {
	max-width: 1180px;
	margin: 0 auto;
}

.gxcs-head {
	margin-bottom: 64px;
	text-align: center;
}

.gxcs-chip {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 6px;
	background: #e8e4dc;
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.gxcs-head__title {
	max-width: 900px;
	margin: 22px auto 0;
	font-size: clamp(38px, 5.2vw, 76px);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-transform: none;
	color: #121212;
}

.gxcs-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px;
}

/* "Generect × client": the header every story's cards sit under (1.2.0) */
.gxcs-lockup {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
	padding-top: 32px;
	border-top: 1.5px solid #121212;
	color: #121212;
	scroll-margin-top: 120px;
}

.gxcs-lockup ~ .gxcs-lockup {
	margin-top: 48px;
}

.gxcs-lockup__pair {
	display: flex;
	align-items: center;
	gap: 22px;
	min-width: 0;
}

.gxcs-lockup__gx {
	display: block;
	width: auto;
	height: 56px;
}

.gxcs-lockup__x {
	font-size: 40px;
	font-weight: 300;
	line-height: 1;
}

.gxcs-lockup__client {
	display: block;
	color: inherit;
}

.gxcs-lockup__logo {
	display: block;
	width: auto;
	height: 44px;
	max-width: 240px;
	object-fit: contain;
}

.gxcs-lockup__name {
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
}

.gxcs-lockup__meta {
	max-width: 460px;
}

.gxcs-lockup__line {
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
	color: #4a4740;
}

.gxcs-lockup__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 12px 0 0;
}

.gxcs-lockup__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 500;
	color: #121212;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

.gxcs-lockup__link:hover {
	color: #5f6bde;
}

.gxcs-c {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 420px;
	padding: 28px;
	border-radius: 20px;
	overflow: hidden;
	background: #ebe7df;
	background-size: cover;
	background-position: center;
	color: #121212;
	scroll-margin-top: 120px;
}

.gxcs-c--wide {
	grid-column: span 2;
}

/* 1.3.0: the odd card out spans the row; long numbers at a size that fits a narrow card */
.gxcs-c--full {
	grid-column: 1 / -1;
}

.gxcs-c__value.gxcs-c__value--long {
	font-size: clamp(44px, 4.4vw, 68px);
	white-space: normal;
}

/* second picture: a screen of the client's workflow, framed so the interface reads */
.gxcs-c.gxcs-c--shot {
	background: #f1eae0;
	color: #121212;
}

.gxcs-c--shot:hover .gxcs-c__more {
	background: #121212;
	border-color: #121212;
	color: #fff;
}

.gxcs-c__shot {
	display: block;
	flex: none;
	width: 100%;
	height: auto;
	margin: 20px 0 18px;
	border: 1px solid rgba(18, 18, 18, 0.08);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(18, 18, 18, 0.12);
	background: #fff;
}

.gxcs-c--shot .gxcs-c__title {
	padding-right: 64px;
	color: #121212;
}

.gxcs-c--yellow { background-color: #f4bd38; }
.gxcs-c--cream { background-color: #f1eae0; }
.gxcs-c--orange { background-color: #f6a77f; }
.gxcs-c--sage { background-color: #cddcbf; }
.gxcs-c--sky { background-color: #bcdcf3; }

.gxcs-c--violet {
	background-color: #5f6bde;
	color: #fff;
}

.gxcs-c__top {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	min-height: 32px;
}

.gxcs-c__logo {
	display: block;
	width: auto;
	height: 30px;
	max-width: 190px;
}

.gxcs-c--violet .gxcs-c__logo,
.gxcs-c__logo--light {
	filter: brightness(0) invert(1);
}

.gxcs-c__name {
	font-size: 22px;
	font-weight: 700;
}

/* numbers: under the logo on a narrow card, at the bottom on a wide one */
.gxcs-c__stat {
	margin-top: 36px;
	padding-right: 56px;
}

.gxcs-c--wide .gxcs-c__stat {
	margin-top: auto;
}

.gxcs-c__value {
	display: block;
	max-width: 360px;
	padding-bottom: 18px;
	border-bottom: 1.5px dotted currentColor;
	font-size: clamp(64px, 6.4vw, 104px);
	font-weight: 300;
	line-height: 0.95;
	letter-spacing: -0.035em;
	white-space: nowrap;
}

.gxcs-c__label {
	display: block;
	max-width: 320px;
	margin-top: 14px;
	font-size: 17px;
	line-height: 1.35;
}

.gxcs-c__quote {
	margin: 32px 0 0;
	padding: 0;
	border: 0;
	font-size: clamp(22px, 1.9vw, 27px);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.gxcs-c__person {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding-top: 28px;
	padding-right: 64px;
}

.gxcs-c__avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
}

.gxcs-c__by {
	display: block;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
}

.gxcs-c__role {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}

.gxcs-c__title {
	position: relative;
	z-index: 1;
	display: block;
	max-width: 520px;
	margin-top: auto;
	padding-right: 64px;
	font-size: clamp(22px, 1.9vw, 28px);
	font-weight: 500;
	line-height: 1.2;
	text-align: left;
}

.gxcs-c--photo {
	color: #fff;
}

.gxcs-c__shade,
.gxcs-video__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.2) 45%, rgba(10, 10, 10, 0) 65%),
		linear-gradient(to bottom, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0) 25%);
	pointer-events: none;
}

/* the arrow: a small square in the corner; on every card but the video the whole card is its click area */
.gxcs-c__more {
	position: absolute;
	right: 24px;
	bottom: 24px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1.5px solid currentColor;
	border-radius: 9px;
	color: inherit;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.gxcs-c__more--light {
	color: #fff;
}

.gxcs-c:not(.gxcs-c--video) .gxcs-c__more::before {
	content: "";
	position: absolute;
	inset: -2000px;
}

.gxcs-c:hover .gxcs-c__more,
.gxcs-c__more:focus-visible {
	background: #121212;
	border-color: #121212;
	color: #fff;
}

.gxcs-c--violet:hover .gxcs-c__more,
.gxcs-c--photo:hover .gxcs-c__more,
.gxcs-c--video .gxcs-c__more:hover {
	background: #fff;
	border-color: #fff;
	color: #121212;
}

.gxcs-c__more:focus-visible {
	outline: 3px solid #5f6bde;
	outline-offset: 2px;
}

.gxcs-arrow {
	display: inline-flex;
}

/* video card: the poster is a button that turns into the player */
.gxcs-c--video {
	padding: 0;
	background: #121212;
	color: #fff;
}

.gxcs-video {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 28px;
	border: 0;
	background-color: #121212;
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: left;
	cursor: pointer;
}

.gxcs-c--video video,
.gxcs-c--video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #121212;
	object-fit: contain;
}

.gxcs-video__top {
	position: relative;
	z-index: 1;
}

.gxcs-video__play {
	position: absolute;
	left: 26%;
	top: 46%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	margin: -42px 0 0 -42px;
	border: 2px solid #121212;
	border-radius: 50%;
	background: #f4bd38;
	color: #121212;
	transition: transform 0.2s ease;
}

.gxcs-video:hover .gxcs-video__play,
.gxcs-video:focus-visible .gxcs-video__play {
	transform: scale(1.08);
}

.gxcs-video:focus-visible {
	outline: 3px solid #f4bd38;
	outline-offset: -3px;
}

.gxcs-video__bottom {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	gap: 16px;
	margin-top: auto;
}

.gxcs-video__bottom .gxcs-c__title {
	margin-top: 0;
}

.gxcs-video__length {
	flex: none;
	margin-right: 64px;
	padding: 2px 10px;
	border-radius: 4px;
	background: rgba(18, 18, 18, 0.85);
	font-size: 14px;
	font-weight: 500;
	line-height: 24px;
}

.gxcs-c--video .gxcs-c__more {
	z-index: 3;
}

/* the logo wall */
.gxcs-trusted {
	margin-top: 120px;
}

.gxcs-trusted__title {
	margin: 0 0 40px;
	font-size: clamp(30px, 3.4vw, 46px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-align: center;
	text-transform: none;
}

.gxcs-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gxcs-logos__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc((100% - 64px) / 5);
	height: 92px;
	margin: 0;
	border-radius: 14px;
	background: #ebe7df;
}

.gxcs-logos__tile img {
	display: block;
	width: auto;
	max-width: 62%;
	height: auto;
	max-height: 34px;
	filter: grayscale(1);
	opacity: 0.85;
}

@media (max-width: 1199px) {
	.gxcs-grid {
		gap: 24px;
	}

	.gxcs-c {
		min-height: 360px;
	}
}

@media (max-width: 991px) {
	.gxcs-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gxcs-c--wide {
		grid-column: auto;
	}

	.gxcs-c--video,
	.gxcs-c--photo {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}

	.gxcs-c--photo.gxcs-c--shot {
		aspect-ratio: auto;
	}

	.gxcs-logos__tile {
		width: calc((100% - 32px) / 3);
	}
}

@media (max-width: 575px) {
	.gxcs {
		padding: 48px 0 80px;
	}

	.gxcs-head {
		margin-bottom: 40px;
	}

	.gxcs-c {
		min-height: 320px;
		padding: 22px;
	}

	.gxcs-video {
		padding: 22px;
	}

	.gxcs-c--video,
	.gxcs-c--photo {
		aspect-ratio: 4 / 5;
	}

	.gxcs-c--photo.gxcs-c--shot {
		aspect-ratio: auto;
	}

	.gxcs-c__more {
		right: 18px;
		bottom: 18px;
	}

	.gxcs-video__play {
		left: 50%;
		top: 40%;
		width: 64px;
		height: 64px;
		margin: -32px 0 0 -32px;
	}

	.gxcs-video__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.gxcs-video__bottom .gxcs-c__title {
		padding-right: 56px;
		font-size: 21px;
	}

	.gxcs-video__length {
		margin-right: 0;
	}

	.gxcs-trusted {
		margin-top: 80px;
	}

	.gxcs-lockup {
		padding-top: 24px;
	}

	.gxcs-lockup__pair {
		gap: 14px;
	}

	.gxcs-lockup__gx {
		height: 36px;
	}

	.gxcs-lockup__x {
		font-size: 28px;
	}

	.gxcs-lockup__logo {
		height: 30px;
		max-width: 160px;
	}

	.gxcs-lockup__name {
		font-size: 24px;
	}

	.gxcs-lockup__line {
		font-size: 16px;
	}

	.gxcs-logos {
		gap: 10px;
	}

	.gxcs-logos__tile {
		width: calc((100% - 10px) / 2);
		height: 76px;
	}
}

/* ── [generect_customers_bento]: the home page ───────────────────────────── */

.gxcs-bento {
	padding: 40px 0 80px;
}

.gxcs-bento__panel {
	padding: 64px 0 72px;
	border-radius: 40px;
	background: #ebe7df;
	overflow: hidden;
}

.gxcs-bento__title {
	max-width: 820px;
	text-wrap: balance;
	margin: 0 auto 48px;
	padding: 0 24px;
	font-size: clamp(22px, 2.2vw, 30px);
	font-weight: 300;
	line-height: 1.3;
	text-align: center;
	color: #121212;
}

.gxcs-bento__title b {
	font-weight: 500;
}

/* 7 x 3: the story tile 3 x 2, a number tile, a wide number tile; logos fill the other 12 cells in order */
.gxcs-bento__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	grid-auto-rows: 124px;
	gap: 16px;
	padding: 0 16px;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.gxcs-b {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 18px 22px;
	border-radius: 20px;
	background: #faf9f6;
	color: #121212;
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.gxcs-b:hover {
	color: #121212;
	box-shadow: 0 10px 30px rgba(18, 18, 18, 0.08);
	transform: translateY(-2px);
}

a.gxcs-b:focus-visible {
	outline: 3px solid #5f6bde;
	outline-offset: 2px;
}

.gxcs-b .gxcs-arrow {
	position: absolute;
	top: 16px;
	right: 16px;
	color: rgba(18, 18, 18, 0.45);
}

.gxcs-b--logo img {
	display: block;
	width: auto;
	max-width: 72%;
	height: auto;
	max-height: 34px;
	filter: grayscale(1);
	opacity: 0.85;
}

.gxcs-b__logo {
	display: block;
	width: auto;
	height: 26px;
	max-width: 170px;
}

.gxcs-b__name {
	font-size: 20px;
	font-weight: 700;
}

.gxcs-b__cap {
	display: block;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.gxcs-b--story {
	grid-column: 3 / span 3;
	grid-row: 1 / span 2;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 26px 30px;
}

.gxcs-b__big {
	display: block;
	margin-top: 22px;
	font-size: 58px;
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.03em;
}

.gxcs-b--story .gxcs-b__cap {
	max-width: 340px;
	margin-top: 8px;
}

.gxcs-b__quote {
	display: block;
	margin-top: auto;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.35;
	color: rgba(18, 18, 18, 0.82);
}

.gxcs-b--stat {
	grid-column: 6;
	grid-row: 2;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
}

.gxcs-b--stat .gxcs-b__logo {
	height: 18px;
}

.gxcs-b__num {
	display: block;
	white-space: nowrap;
	font-size: 36px;
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.03em;
}

.gxcs-b--stat .gxcs-b__cap {
	margin-top: 6px;
	font-size: 10px;
}

.gxcs-b--wide {
	grid-column: 3 / span 2;
	grid-row: 3;
	justify-content: space-between;
	gap: 16px;
}

.gxcs-b__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-right: 18px;
}

.gxcs-b--wide .gxcs-b__cap {
	max-width: 170px;
}

@media (max-width: 1199px) {
	.gxcs-bento__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		-webkit-mask-image: none;
		mask-image: none;
	}

	.gxcs-b--story {
		grid-column: 1 / span 3;
		grid-row: 1 / span 2;
	}

	.gxcs-b--stat {
		grid-column: 4;
		grid-row: 1 / span 2;
	}

	.gxcs-b--wide {
		grid-column: 1 / span 2;
		grid-row: 3;
	}
}

@media (max-width: 767px) {
	.gxcs-bento {
		padding: 24px 0 56px;
	}

	.gxcs-bento__panel {
		padding: 40px 0 44px;
		border-radius: 28px;
	}

	.gxcs-bento__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: minmax(96px, auto);
		gap: 10px;
		padding: 0 10px;
	}

	.gxcs-b {
		padding: 14px 16px;
		border-radius: 16px;
	}

	.gxcs-b--story {
		grid-column: 1 / span 2;
		grid-row: auto;
		gap: 0;
		padding: 22px;
	}

	.gxcs-b__quote {
		margin-top: 18px;
	}

	.gxcs-b__big {
		font-size: 48px;
	}

	.gxcs-b__quote {
		font-size: 15px;
	}

	.gxcs-b--stat {
		grid-column: 1 / span 2;
		grid-row: auto;
		gap: 10px;
	}

	.gxcs-b--wide {
		grid-column: 1 / span 2;
		grid-row: auto;
	}
}
