/* ==========================================================================
   Case study: hero + results, gallery, video, testimonial, case cards.
   ========================================================================== */

/* ---------- Hero ---------------------------------------------------- */

.bc-page .bc-chero {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px var(--bc-gutter) 0;
}

.bc-page .bc-chero > * {
	position: relative;
}

.bc-page .bc-chero > .bc-deco {
	position: absolute;
}

.bc-page .bc-crumbs--muted {
	color: var(--bc-on-dark);
}

.bc-page .bc-chero__grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bc-page .bc-chero__main {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bc-page .bc-chero__tags {
	display: flex;
	gap: 6px;
	margin: 0 calc(var(--bc-gutter) * -1) 0 0;
	padding: 0 var(--bc-gutter) 0 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.bc-page .bc-chero__tags li {
	flex-shrink: 0;
	padding: 6px 11px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: var(--bc-on-dark-2);
	font-size: 12px;
	font-weight: 600;
}

.bc-page .bc-chero__title {
	font-family: var(--bc-font-head);
	font-size: clamp(30px, calc(30px + 28 * var(--bc-vw)), 58px);
	line-height: 1.12;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.bc-page .bc-chero__facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 14px;
	margin: 0;
	font-size: 13px;
}

.bc-page .bc-chero__facts dt {
	padding-top: 2px;
	font-family: var(--bc-font-head);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bc-mint-text);
}

.bc-page .bc-chero__facts dd {
	margin: 0;
	font-weight: 600;
}

.bc-page .bc-chero__facts a {
	color: #fff;
	text-decoration: underline;
}

.bc-page .bc-chero__image {
	display: flex;
	align-items: flex-end;
	height: 270px;
	margin: 4px calc(var(--bc-gutter) * -1) 0;
	padding: 12px;
	overflow: hidden;
	background: linear-gradient(160deg, #1d4a4b, #2e6f6e);
	color: var(--bc-on-dark);
	font-size: 11px;
	line-height: 1.4;
}

.bc-page .bc-chero__image .bc-img {
	position: absolute;
	inset: 0;
}

.bc-page .bc-chero__image figcaption {
	position: relative;
}

/* Results at a glance */
.bc-page .bc-results {
	padding: 0 var(--bc-gutter) 36px;
}

.bc-page .bc-results__card {
	padding: 18px;
	border-radius: 0 0 20px 20px;
	background: #fff;
	border: 1px solid var(--bc-line);
	border-top: 0;
	box-shadow: 0 20px 40px rgba(13, 34, 36, 0.08);
}

.bc-page .bc-results__title {
	margin: 0 0 6px;
	font-family: var(--bc-font-head);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bc-teal);
}

.bc-page .bc-results__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
}

.bc-page .bc-results__item {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 2px;
	padding: 14px 4px;
	border-top: 1px solid #e3ecea;
}

.bc-page .bc-results__item:nth-child(-n + 2) {
	border-top: 0;
}

.bc-page .bc-results__item dt {
	font-size: 12px;
	line-height: 1.35;
	color: var(--bc-text-2);
}

.bc-page .bc-results__item dd {
	margin: 0;
	font-family: var(--bc-font-head);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--bc-ink);
}

.bc-page .bc-results__item dd.is-teal {
	color: var(--bc-teal);
}

@media (min-width: 1024px) {
	.bc-page .bc-chero {
		gap: 32px;
		padding: 32px var(--bc-gutter) 0;
	}

	.bc-page .bc-chero__grid {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: 24px;
		align-items: end;
	}

	.bc-page .bc-chero__main {
		grid-column: span 8;
		gap: 20px;
	}

	.bc-page .bc-chero__tags {
		flex-wrap: wrap;
		gap: 8px;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.bc-page .bc-chero__tags li {
		padding: 7px 13px;
		font-size: 13px;
	}

	.bc-page .bc-chero__title {
		line-height: 1.06;
		letter-spacing: -0.03em;
	}

	.bc-page .bc-chero__facts {
		grid-column: 10 / span 3;
		gap: 10px 16px;
		font-size: 14px;
	}

	.bc-page .bc-chero__facts dt {
		padding-top: 3px;
		font-size: 11px;
		letter-spacing: 0.14em;
	}

	.bc-page .bc-chero__image {
		height: clamp(380px, calc(200px + 360 * var(--bc-vw)), 560px);
		margin: 0;
		padding: 18px;
		border-radius: 28px 28px 0 0;
		font-size: 13px;
		line-height: 1.45;
	}

	.bc-page .bc-results {
		padding: 0 var(--bc-gutter) clamp(64px, calc(36px + 60 * var(--bc-vw)), 96px);
	}

	.bc-page .bc-results__card {
		padding: 28px 16px 8px;
		border-radius: 0 0 28px 28px;
		box-shadow: 0 30px 60px rgba(13, 34, 36, 0.08);
	}

	.bc-page .bc-results__title {
		margin: 0 24px 4px;
		font-size: 12px;
		letter-spacing: 0.16em;
	}

	.bc-page .bc-results__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.bc-page .bc-results__item,
	.bc-page .bc-results__item:nth-child(-n + 2) {
		gap: 6px;
		padding: 28px 24px;
		border-top: 0;
		border-left: 1px solid var(--bc-line);
	}

	.bc-page .bc-results__item:first-child {
		border-left: 0;
	}

	.bc-page .bc-results__item dt {
		font-size: 14px;
		line-height: 1.4;
	}

	.bc-page .bc-results__item dd {
		font-size: clamp(30px, calc(20px + 20 * var(--bc-vw)), 40px);
	}
}

/* ---------- Gallery ------------------------------------------------- */

.bc-page .bc-gallery {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bc-page .bc-gallery__head {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bc-page .bc-gallery__note {
	font-size: 12px;
	color: var(--bc-on-dark);
}

.bc-page .bc-gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.bc-page .bc-gallery__item {
	height: 160px;
	overflow: hidden;
	border-radius: 18px;
}

.bc-page .bc-gallery__item a {
	display: block;
	height: 100%;
}

.bc-page .bc-gallery__item--1 {
	grid-column: span 2;
	height: 240px;
}

.bc-page .bc-gallery__item--4,
.bc-page .bc-gallery__item--5 {
	height: 200px;
}

.bc-page .bc-gallery__item--6 {
	grid-column: span 2;
	height: 220px;
}

.bc-page .bc-gallery__item .bc-ph {
	padding: 12px;
	font-size: 11px;
}

.bc-page .bc-gallery__item--2 .bc-ph,
.bc-page .bc-gallery__item--5 .bc-ph {
	background: linear-gradient(160deg, #1a4550, #2a6e7c);
}

.bc-page .bc-gallery__item--3 .bc-ph,
.bc-page .bc-gallery__item--6 .bc-ph {
	background: linear-gradient(160deg, #1f4a40, #3a7e6c);
}

.bc-page .bc-gallery__item--4 .bc-ph {
	background: linear-gradient(160deg, #23504e, #2e6f6e);
}

.bc-page .bc-gallery__item .bc-img {
	transition: transform 0.4s ease;
}

.bc-page .bc-gallery__item a:hover .bc-img {
	transform: scale(1.03);
}

@media (min-width: 1024px) {
	.bc-page .bc-gallery {
		gap: 32px;
	}

	.bc-page .bc-gallery__head {
		flex-direction: row;
		justify-content: space-between;
		align-items: baseline;
	}

	.bc-page .bc-gallery__note {
		font-size: 14px;
	}

	.bc-page .bc-gallery__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-template-rows: 300px 300px 420px;
		gap: 16px;
		margin: 0;
	}

	.bc-page .bc-gallery__item,
	.bc-page .bc-gallery__item--4,
	.bc-page .bc-gallery__item--5,
	.bc-page .bc-gallery__item--6 {
		grid-column: span 4;
		height: auto;
		border-radius: 24px;
	}

	.bc-page .bc-gallery__item--1 {
		grid-column: span 7;
		grid-row: span 2;
		height: auto;
	}

	.bc-page .bc-gallery__item--2,
	.bc-page .bc-gallery__item--3 {
		grid-column: span 5;
	}

	.bc-page .bc-gallery__item .bc-ph {
		padding: 18px;
		font-size: 13px;
	}
}

.bc-lightbox {
	max-width: min(92vw, 1400px);
	max-height: 92vh;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #000;
}

.bc-lightbox::backdrop {
	background: rgba(13, 34, 36, 0.85);
}

.bc-lightbox img {
	display: block;
	max-width: 100%;
	max-height: 92vh;
}

.bc-lightbox__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	font-size: 22px;
	cursor: pointer;
}

/* ---------- Video --------------------------------------------------- */

.bc-page .bc-video {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bc-page .bc-video__player {
	position: relative;
	margin-top: 8px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 18px;
	background: linear-gradient(120deg, #163a3c, #1f5f63);
}

.bc-page .bc-video__inner {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bc-on-dark-2);
	font: inherit;
}

button.bc-video__inner {
	cursor: pointer;
}

.bc-page .bc-video__inner .bc-img {
	position: absolute;
	inset: 0;
}

.bc-page .bc-video__play {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: var(--bc-saffron);
	color: var(--bc-ink);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease;
}

.bc-page button.bc-video__inner:hover .bc-video__play {
	transform: scale(1.06);
}

.bc-page .bc-video__play .bc-icon {
	width: 22px;
	height: 22px;
}

.bc-page .bc-video__caption {
	position: absolute;
	left: 14px;
	right: 90px;
	bottom: 12px;
	font-size: 11px;
	text-align: left;
}

.bc-page .bc-video__time {
	position: absolute;
	right: 14px;
	bottom: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(13, 34, 36, 0.5);
	color: #fff;
	font-family: var(--bc-font-head);
	font-size: 11px;
}

.bc-page .bc-video iframe,
.bc-page .bc-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.bc-page .bc-video__clips {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bc-page .bc-video__clip {
	display: block;
	width: 100%;
	height: 90px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 14px;
	background: none;
}

.bc-page .bc-video__clip .bc-ph {
	padding: 12px;
	font-size: 11px;
}

@media (min-width: 1024px) {
	.bc-page .bc-video {
		gap: 0;
	}

	.bc-page .bc-video .bc-head {
		margin-bottom: 32px;
	}

	.bc-page .bc-video__player {
		margin: 0;
		border-radius: 28px;
	}

	.bc-page .bc-video__play {
		width: 96px;
		height: 96px;
	}

	.bc-page .bc-video__play .bc-icon {
		width: 32px;
		height: 32px;
	}

	.bc-page .bc-video__caption {
		left: 28px;
		bottom: 24px;
		font-size: 14px;
	}

	.bc-page .bc-video__time {
		right: 28px;
		bottom: 24px;
		padding: 6px 12px;
		font-size: 13px;
	}

	.bc-page .bc-video__clips {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 12px;
		margin-top: 16px;
	}

	.bc-page .bc-video__clip {
		height: 120px;
		border-radius: 16px;
	}

	.bc-page .bc-video__clip .bc-ph {
		padding: 18px;
		font-size: 13px;
	}
}

/* ---------- Testimonial --------------------------------------------- */

.bc-page .bc-testi {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bc-page .bc-testi__head {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bc-page .bc-testi__tabs {
	display: flex;
	align-self: flex-start;
	gap: 6px;
	padding: 5px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--bc-line);
}

.bc-page .bc-testi__tabs button {
	height: 36px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--bc-ink);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.bc-page .bc-testi__tabs button[aria-selected="true"] {
	background: var(--bc-ink);
	color: #fff;
}

.bc-page .bc-testi__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 8px 0 0;
	padding: 22px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--bc-line);
}

.bc-page .bc-testi__card[hidden],
.bc-page .bc-testi__video[hidden] {
	display: none;
}

.bc-page .bc-testi__mark {
	font-family: var(--bc-font-head);
	font-size: 72px;
	line-height: 0.8;
	color: var(--bc-mint);
}

.bc-page .bc-testi__body {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.bc-page .bc-testi__quote {
	margin: 0;
	font-family: var(--bc-font-head);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

.bc-page .bc-testi__by {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bc-page .bc-testi__by > span:last-child {
	display: flex;
	flex-direction: column;
	font-size: 13px;
	color: var(--bc-text-2);
}

.bc-page .bc-testi__by b {
	font-size: 15px;
	color: var(--bc-ink);
}

.bc-page .bc-testi__avatar {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 999px;
	background: #cfe3df;
}

@media (min-width: 1024px) {
	.bc-page .bc-testi {
		gap: 32px;
	}

	.bc-page .bc-testi__head {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-end;
	}

	.bc-page .bc-testi__tabs {
		align-self: auto;
		padding: 6px;
	}

	.bc-page .bc-testi__tabs button {
		height: 40px;
		padding: 0 18px;
		font-size: 14px;
	}

	.bc-page .bc-testi__card {
		display: grid;
		grid-template-columns: 120px 1fr;
		gap: 32px;
		align-items: start;
		margin: 0;
		padding: 56px;
		border-radius: 28px;
	}

	.bc-page .bc-testi__mark {
		font-size: 140px;
	}

	.bc-page .bc-testi__body {
		gap: 28px;
	}

	.bc-page .bc-testi__quote {
		font-size: clamp(24px, calc(18px + 12 * var(--bc-vw)), 30px);
	}

	.bc-page .bc-testi__by {
		gap: 16px;
	}

	.bc-page .bc-testi__by > span:last-child {
		font-size: 14px;
	}

	.bc-page .bc-testi__by b {
		font-size: 16px;
	}

	.bc-page .bc-testi__avatar {
		width: 56px;
		height: 56px;
	}
}

/* ---------- Case study cards ----------------------------------------- */

.bc-page .bc-ccards {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 8px;
}

.bc-page .bc-ccards__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding-top: 28px;
	border-top: 1px solid var(--bc-line);
}

.bc-page .bc-ccards__title {
	font-family: var(--bc-font-head);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.bc-page .bc-ccards__grid {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bc-page .bc-ccard {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--bc-ink);
}

.bc-page .bc-ccard__media {
	display: block;
	flex-shrink: 0;
	width: 96px;
	height: 96px;
	overflow: hidden;
	border-radius: 16px;
}

.bc-page .bc-ccard__media .bc-ph__label {
	display: none;
}

.bc-page .bc-ccard--tint-1 .bc-ph--light {
	background: #bfdde3;
}

.bc-page .bc-ccard--tint-2 .bc-ph--light {
	background: #d6eae3;
}

.bc-page .bc-ccard__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bc-page .bc-ccard__eyebrow {
	font-family: var(--bc-font-head);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bc-teal);
}

.bc-page .bc-ccard__title {
	font-family: var(--bc-font-head);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.bc-page .bc-ccard__more {
	display: none;
	font-weight: 700;
	color: var(--bc-deep);
}

.bc-page .bc-ccard:hover .bc-ccard__title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (min-width: 1024px) {
	.bc-page .bc-ccards {
		gap: 32px;
		padding-top: 0;
	}

	.bc-page .bc-ccards__head {
		padding-top: 64px;
	}

	.bc-page .bc-ccards__title {
		font-size: 32px;
	}

	.bc-page .bc-ccards__grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
	}

	.bc-page .bc-ccard {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.bc-page .bc-ccard__media {
		width: 100%;
		height: 220px;
		border-radius: 20px;
	}

	.bc-page .bc-ccard__media .bc-ph {
		padding: 14px;
		font-size: 12px;
	}

	.bc-page .bc-ccard__media .bc-ph__label {
		display: inline;
	}

	.bc-page .bc-ccard__body {
		gap: 14px;
	}

	.bc-page .bc-ccard__eyebrow {
		font-size: 11px;
	}

	.bc-page .bc-ccard__title {
		font-size: 19px;
		line-height: 1.3;
	}

	.bc-page .bc-ccard__more {
		display: block;
	}
}

/* ---------- Case studies archive (templates/archive-case-study.php) ------ */

.bc-page .bc-carch__hero {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px var(--bc-gutter) 36px;
}

.bc-page .bc-carch__hero > :not(.bc-deco) {
	position: relative;
}

.bc-page .bc-carch__title {
	max-width: 880px;
	font-family: var(--bc-font-head);
	font-size: clamp(36px, calc(36px + 28 * var(--bc-vw)), 64px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.bc-page .bc-carch__sub {
	max-width: 640px;
	font-size: clamp(16px, calc(16px + 4 * var(--bc-vw)), 20px);
	line-height: 1.6;
	color: var(--bc-on-dark);
}

.bc-page .bc-carch__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.bc-page .bc-carch__chips {
	display: flex;
	gap: 8px;
	margin-right: calc(-1 * var(--bc-gutter));
	padding-right: var(--bc-gutter);
	overflow-x: auto;
	scrollbar-width: none;
}

.bc-page .bc-carch__chip {
	flex-shrink: 0;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--bc-line-2);
	background: #fff;
	color: var(--bc-deep);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.bc-page .bc-carch__chip[aria-pressed="true"] {
	background: var(--bc-ink);
	border-color: var(--bc-ink);
	color: #fff;
}

.bc-page .bc-carch__list .bc-ccards__grid > li[hidden] {
	display: none;
}

.bc-page .bc-carch__metric {
	font-size: 14px;
	color: var(--bc-text-2);
}

.bc-page .bc-carch__metric strong {
	font-family: var(--bc-font-head);
	color: var(--bc-teal);
}

.bc-page .bc-carch__pages .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.bc-page .bc-carch__pages .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--bc-line);
	background: #fff;
	color: var(--bc-deep);
	font-weight: 700;
}

.bc-page .bc-carch__pages .page-numbers.current {
	background: var(--bc-ink);
	border-color: var(--bc-ink);
	color: #fff;
}

.bc-page .bc-carch__empty {
	font-size: 16px;
	color: var(--bc-text);
}

@media (min-width: 1024px) {
	.bc-page .bc-carch__hero {
		gap: 22px;
		padding: 32px var(--bc-gutter) 72px;
	}

	.bc-page .bc-carch__list {
		gap: 32px;
	}

	.bc-page .bc-carch__chips {
		flex-wrap: wrap;
		margin-right: 0;
		padding-right: 0;
	}
}
