/* YNBX /work/ — capability chapters. Hero (.ynbx-page-intro--work) is locked. */

.ynbx-work-chapter,
.ynbx-work-chapter.kb-row-layout-wrap,
.ynbx-work-chapter.wp-block-kadence-rowlayout {
	position: relative;
	margin: 0 !important;
	padding: 0;
	background: transparent !important;
	min-height: 100svh;
	min-height: 100dvh;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ynbx-work-chapter > .kt-row-column-wrap {
	margin: 0 !important;
	padding: 0 !important;
	min-height: 100svh;
	min-height: 100dvh;
}

.ynbx-work-chapter .wp-block-kadence-column {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	background: transparent !important;
}

.ynbx-work-chapter-inner > .kt-inside-inner-col {
	box-sizing: border-box;
	min-height: 100svh;
	min-height: 100dvh;
	display: flex !important;
	flex-direction: column;
	padding-top: 88px !important;
	padding-bottom: clamp(48px, 9vh, 104px) !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	background: transparent !important;
}

.ynbx-work-title,
.ynbx-work-title.wp-block-kadence-advancedheading,
h2.ynbx-work-title {
	font-family: Inter, system-ui, sans-serif;
	font-weight: 500 !important;
	font-size: clamp(2.6rem, 8vw, 6rem) !important;
	line-height: 0.86 !important;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff !important;
	margin: 0 !important;
	max-width: 11ch;
}

.ynbx-work-title .ynbx-title-line {
	display: block;
}

.ynbx-work-title .ynbx-font-pixel,
.ynbx-work-title--pixel {
	font-family: "basis33", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-weight: 400;
	-webkit-font-smoothing: none;
	-moz-osx-font-smoothing: unset;
	font-smooth: never;
	letter-spacing: 0.02em;
}

.ynbx-work-lede,
.ynbx-work-lede.wp-block-kadence-advancedheading {
	margin-top: 22px !important;
}

.ynbx-work-link,
.ynbx-work-link.wp-block-kadence-advancedheading {
	margin: 28px 0 0 !important;
	font-family: Inter, system-ui, sans-serif;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1;
	color: #fff !important;
}

.ynbx-work-link a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.28);
	padding-bottom: 7px;
	transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ynbx-work-link a:hover {
	opacity: 0.7;
}

/* 02 WEB — centered, left, vertical hairline */
.ynbx-work-chapter--web .ynbx-work-chapter-inner > .kt-inside-inner-col {
	justify-content: center;
	padding-left: 48px !important;
	position: relative;
}

.ynbx-work-chapter--web .ynbx-work-chapter-inner > .kt-inside-inner-col::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 22%;
	bottom: 22%;
	width: 1px;
	background: rgba(255, 255, 255, 0.16);
	pointer-events: none;
}

.ynbx-work-chapter--web .ynbx-work-title {
	max-width: 12ch;
}

/* 03 COMMERCE — bottom right, ledger line */
.ynbx-work-chapter--commerce .ynbx-work-chapter-inner > .kt-inside-inner-col {
	justify-content: flex-end;
	align-items: flex-end;
	text-align: right;
}

.ynbx-work-chapter--commerce .ynbx-work-title {
	max-width: none;
	font-size: clamp(2.2rem, 7.2vw, 5.6rem) !important;
	position: relative;
	padding-top: 28px;
}

.ynbx-work-chapter--commerce .ynbx-work-title::before {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	width: min(72vw, 920px);
	height: 1px;
	background: rgba(255, 255, 255, 0.16);
}

.ynbx-work-chapter--commerce .ynbx-work-lede {
	max-width: none;
}

/* 04 MOTION — stacked left, low in the frame (not the WEB center lockup) */
.ynbx-work-chapter--motion .ynbx-work-chapter-inner > .kt-inside-inner-col {
	justify-content: flex-end;
}

.ynbx-work-chapter--motion .ynbx-work-title {
	max-width: 14ch;
}

/* 05 GROWTH — title left; kicker stays high-right; lede sits under the title */
.ynbx-work-chapter--growth .ynbx-work-chapter-inner > .kt-inside-inner-col {
	justify-content: center;
}

.ynbx-work-chapter--growth .ynbx-work-title {
	max-width: 8ch;
}

/* 06 PROJECTS — bookend, bottom left */
.ynbx-work-chapter--projects .ynbx-work-chapter-inner > .kt-inside-inner-col {
	justify-content: flex-end;
}

.ynbx-work-chapter--projects .ynbx-work-title {
	max-width: 8ch;
}

/* Scroll reveal — chapters only, never the hero.
   Only hide while JS has armed motion, so content stays visible if the script fails. */
.ynbx-work-motion .ynbx-work-reveal .ynbx-work-kicker,
.ynbx-work-motion .ynbx-work-reveal .ynbx-work-title,
.ynbx-work-motion .ynbx-work-reveal .ynbx-work-lede,
.ynbx-work-motion .ynbx-work-reveal .ynbx-work-link {
	opacity: 0;
	transform: translate3d(0, 18px, 0);
	transition:
		opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
		transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ynbx-work-reveal.is-visible .ynbx-work-kicker,
.ynbx-work-reveal.is-visible .ynbx-work-title,
.ynbx-work-reveal.is-visible .ynbx-work-lede,
.ynbx-work-reveal.is-visible .ynbx-work-link {
	opacity: 1;
	transform: none;
}

.ynbx-work-reveal.is-visible .ynbx-work-title {
	transition-delay: 70ms;
}

.ynbx-work-reveal.is-visible .ynbx-work-lede,
.ynbx-work-reveal.is-visible .ynbx-work-link {
	transition-delay: 140ms;
}

@media (min-width: 640px) {
	.ynbx-work-chapter-inner > .kt-inside-inner-col {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}

	.ynbx-work-chapter--web .ynbx-work-chapter-inner > .kt-inside-inner-col {
		padding-left: 56px !important;
	}

	.ynbx-work-chapter--web .ynbx-work-chapter-inner > .kt-inside-inner-col::before {
		left: 24px;
	}
}

@media (min-width: 768px) {
	.ynbx-work-chapter-inner > .kt-inside-inner-col {
		padding-left: 40px !important;
		padding-right: 40px !important;
	}

	.ynbx-work-chapter--web .ynbx-work-chapter-inner > .kt-inside-inner-col {
		padding-left: 72px !important;
	}

	.ynbx-work-chapter--web .ynbx-work-chapter-inner > .kt-inside-inner-col::before {
		left: 40px;
	}

	.ynbx-work-chapter--growth .ynbx-work-chapter-inner > .kt-inside-inner-col {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) minmax(12rem, 34%);
		grid-template-rows: 1fr auto auto 1fr;
		align-items: start;
		align-content: stretch;
		column-gap: 48px;
		padding-top: 18vh !important;
		padding-bottom: 16vh !important;
		min-height: 100svh;
		min-height: 100dvh;
	}

	.ynbx-work-chapter--growth .ynbx-work-kicker {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		align-self: start;
		text-align: right;
		margin-bottom: 0 !important;
	}

	.ynbx-work-chapter--growth .ynbx-work-title {
		grid-column: 1;
		grid-row: 2;
		height: auto !important;
	}

	.ynbx-work-chapter--growth .ynbx-work-lede {
		grid-column: 1;
		grid-row: 3;
		justify-self: start;
		text-align: left;
		margin-top: 22px !important;
		height: auto !important;
	}
}

@media (min-width: 1280px) {
	.ynbx-work-chapter-inner > .kt-inside-inner-col {
		padding-left: 56px !important;
		padding-right: 56px !important;
	}

	.ynbx-work-chapter--web .ynbx-work-chapter-inner > .kt-inside-inner-col {
		padding-left: 88px !important;
	}

	.ynbx-work-chapter--web .ynbx-work-chapter-inner > .kt-inside-inner-col::before {
		left: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ynbx-work-reveal .ynbx-work-kicker,
	.ynbx-work-reveal .ynbx-work-title,
	.ynbx-work-reveal .ynbx-work-lede,
	.ynbx-work-reveal .ynbx-work-link {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
