/* Homepage — materials library / commercial editorial */

.bm-main--home {
	padding-bottom: 4rem;
}

.bm-home-stage {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
	background:
		radial-gradient(900px 380px at 8% -20%, var(--bm-brand-soft), transparent 55%),
		linear-gradient(180deg, #efeae3 0%, var(--bm-canvas) 72%);
}

.bm-home-stage--visual::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(105deg, rgba(244, 242, 238, 0.94) 0%, rgba(244, 242, 238, 0.78) 42%, rgba(244, 242, 238, 0.35) 100%),
		var(--bm-stage-image) right center / cover no-repeat;
	pointer-events: none;
}

.bm-home-stage__veil {
	position: absolute;
	inset: auto 0 0;
	height: 3rem;
	z-index: 1;
	background: linear-gradient(180deg, transparent, var(--bm-canvas));
	pointer-events: none;
}

.bm-home-stage__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

.bm-home-stage__copy {
	position: relative;
	z-index: 2;
	max-width: 36rem;
	animation: bm-rise 0.75s var(--bm-ease) both;
}

.bm-home-stage__brand {
	margin: 0 0 0.85rem;
	font-family: var(--bm-font-heading);
	font-size: clamp(2rem, 4.2vw, 3.1rem);
	font-weight: 750;
	letter-spacing: -0.045em;
	line-height: 0.98;
	color: var(--bm-ink);
}

.bm-home-stage__title {
	margin: 0;
	font-size: clamp(1.2rem, 2.2vw, 1.55rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.025em;
	color: var(--bm-ink);
}

.bm-home-stage__lead {
	margin: 1rem 0 0;
	max-width: 34rem;
	color: var(--bm-muted);
	font-size: 1.05rem;
	line-height: 1.55;
}

.bm-home-stage__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.6rem;
}

.bm-home-stage__note {
	margin: 1rem 0 0;
	color: var(--bm-muted);
	font-size: 0.84rem;
	letter-spacing: 0.01em;
}

.bm-home-stage__media {
	margin: 0;
	border: 1px solid var(--bm-line);
	border-radius: calc(var(--bm-radius) + 2px);
	overflow: hidden;
	background: #ebe6df;
	box-shadow: var(--bm-shadow);
	animation: bm-rise 0.85s var(--bm-ease) 0.08s both;
}

.bm-home-stage__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: clamp(14rem, 28vw, 22rem);
	object-fit: cover;
	object-position: center;
}

.bm-trust {
	padding: 0.25rem 0 0.15rem;
	border-bottom: 1px solid var(--bm-line);
	background: var(--bm-surface);
}

.bm-trust__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	padding: 1.15rem 0;
}

.bm-trust__item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	min-width: 0;
}

.bm-trust__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: var(--bm-brand-soft);
	color: var(--bm-brand);
}

.bm-trust__icon svg {
	width: 1.1rem;
	height: 1.1rem;
}

.bm-trust__item strong {
	display: block;
	font-size: 0.92rem;
	font-weight: 750;
	letter-spacing: -0.01em;
	color: var(--bm-ink);
}

.bm-trust__item span {
	display: block;
	margin-top: 0.15rem;
	color: var(--bm-muted);
	font-size: 0.84rem;
	line-height: 1.4;
}

.bm-feature {
	padding: clamp(1.5rem, 4vw, 2.5rem) 0 0.35rem;
}

.bm-feature__plane {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(16rem, 34vw, 24rem);
	padding: clamp(1.5rem, 3vw, 2.35rem);
	overflow: hidden;
	border: 1px solid var(--bm-line);
	border-radius: calc(var(--bm-radius) + 2px);
	color: var(--bm-white);
	text-decoration: none;
	background:
		linear-gradient(180deg, rgba(28, 25, 23, 0.05), rgba(28, 25, 23, 0.72)),
		var(--bm-feature-image) center / cover no-repeat;
	transition: transform 0.35s var(--bm-ease), box-shadow 0.35s var(--bm-ease);
}

.bm-feature__plane:hover {
	transform: translateY(-2px);
	box-shadow: var(--bm-shadow);
}

.bm-feature__copy {
	position: relative;
	z-index: 1;
	max-width: 28rem;
}

.bm-feature__title {
	margin: 0;
	font-size: clamp(1.55rem, 2.8vw, 2.25rem);
	font-weight: 750;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.bm-feature__text {
	margin: 0.65rem 0 0;
	max-width: 24rem;
	font-size: 0.98rem;
	line-height: 1.5;
	opacity: 0.92;
}

.bm-feature__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin-top: 1.15rem;
	padding: 0.7rem 1.15rem;
	border-radius: var(--bm-radius-sm);
	background: var(--bm-white);
	color: var(--bm-ink);
	font-size: 0.9rem;
	font-weight: 750;
}

.bm-feature__cta svg {
	width: 1rem;
	height: 1rem;
}

.bm-catalog-empty {
	padding: clamp(2rem, 6vw, 4rem) 0;
}

.bm-catalog-empty__inner {
	max-width: 36rem;
	padding: 1.5rem 1.25rem;
	border: 1px solid var(--bm-line);
	border-radius: var(--bm-radius);
	background: var(--bm-surface);
}

.bm-catalog-empty__title {
	margin: 0;
	font-size: clamp(1.25rem, 2.5vw, 1.65rem);
	letter-spacing: -0.02em;
}

.bm-catalog-empty__text {
	margin: 0.65rem 0 0;
	color: var(--bm-muted);
	line-height: 1.55;
}

.bm-home-faq {
	padding: clamp(2rem, 5vw, 3rem) 0 1rem;
}

.bm-home-faq .bm-section-title {
	margin: 0 0 1rem;
	font-size: clamp(1.2rem, 2vw, 1.45rem);
	letter-spacing: -0.02em;
}

.bm-home-faq__list {
	display: grid;
	gap: 0.75rem;
	max-width: 46rem;
}

.bm-home-faq__item {
	padding: 1rem 1.1rem;
	background: var(--bm-surface);
	border: 1px solid var(--bm-line);
	border-radius: var(--bm-radius);
}

.bm-home-faq__item h3 {
	margin: 0 0 0.4rem;
	font-size: 1rem;
	letter-spacing: -0.01em;
}

.bm-home-faq__item p {
	margin: 0;
	color: var(--bm-muted);
	font-size: 0.92rem;
	line-height: 1.5;
}

@keyframes bm-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Legacy dual-banner class kept for old CSS caches / blocks */
.bm-hero {
	padding: 1.25rem 0 0.5rem;
}

.bm-showcases {
	padding: 0.35rem 0 2.5rem;
}

.bm-showcase {
	padding: clamp(1.5rem, 3.5vw, 2.35rem) 0 0.15rem;
}

.bm-showcase + .bm-showcase {
	border-top: 1px solid color-mix(in srgb, var(--bm-line) 80%, transparent);
	margin-top: 0.35rem;
}

.bm-showcase__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.15rem;
}

.bm-showcase__intro {
	min-width: 0;
}

.bm-showcase__title {
	margin: 0 0 0.45rem;
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.bm-showcase__title a {
	color: inherit;
	text-decoration: none;
}

.bm-showcase__title a:hover {
	color: var(--bm-brand);
}

.bm-showcase__subcats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bm-showcase__subcats a {
	color: var(--bm-muted);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.bm-showcase__subcats a:hover {
	color: var(--bm-ink);
	border-bottom-color: color-mix(in srgb, var(--bm-ink) 25%, transparent);
}

.bm-showcase__more {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	flex-shrink: 0;
	margin-bottom: 0.15rem;
	color: var(--bm-ink);
	font-size: 0.9rem;
	font-weight: 750;
	white-space: nowrap;
	text-decoration: none;
}

.bm-showcase__more:hover {
	color: var(--bm-brand);
}

.bm-showcase__more svg {
	width: 1rem;
	height: 1rem;
}

.bm-showcase--picker {
	padding: 1.35rem 0 0.25rem;
}

.bm-showcase__head--inline {
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

.bm-showcase__head--inline .bm-showcase__title {
	margin-bottom: 0;
	flex-shrink: 0;
}

.bm-showcase__head--inline .bm-showcase__subcats {
	flex: 1 1 auto;
	min-width: 0;
}

.bm-showcase__empty {
	margin: 0;
	padding: 1rem 0;
	color: var(--bm-muted);
	font-size: 0.9rem;
}

@media (max-width: 900px) {
	.bm-trust__row {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.bm-home-stage__grid {
		grid-template-columns: 1fr;
	}

	.bm-home-stage__media {
		order: -1;
	}

	.bm-home-stage__media img {
		min-height: 13rem;
	}
}

@media (max-width: 768px) {
	.bm-home-stage {
		padding-top: 1.75rem;
	}

	.bm-home-stage__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.bm-feature__plane {
		min-height: 15rem;
	}

	.bm-showcase__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.bm-showcase__head--inline {
		flex-direction: column;
		align-items: flex-start;
	}
}


/* Blog grid (Home — Blog block + Journal archive) */

.bm-blog {
	padding: 1.35rem 0 2rem;
}

.bm-blog__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.bm-blog__intro {
	min-width: 0;
}

.bm-blog__sub {
	margin: 0.35rem 0 0;
	color: var(--bm-muted);
	font-size: 0.92rem;
	line-height: 1.45;
}

.bm-blog__more {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	flex-shrink: 0;
	margin-top: 0.15rem;
	color: var(--bm-ink);
	font-size: 0.88rem;
	font-weight: 800;
	white-space: nowrap;
}

.bm-blog__more svg {
	width: 1rem;
	height: 1rem;
}

.bm-blog__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.bm-blog__grid--archive {
	margin-top: 1rem;
}

.bm-blog-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--bm-white);
}

.bm-blog-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f3f3;
}

.bm-blog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bm-blog-card__media--placeholder {
	background: linear-gradient(135deg, #f5f5f5, #ececec);
}

.bm-blog-card__body {
	padding: 0.85rem 0.15rem 0.35rem;
}

.bm-blog-card__date {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--bm-muted);
	font-size: 0.78rem;
	font-weight: 600;
}

.bm-blog-card__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.bm-blog-card__title a {
	color: var(--bm-ink);
}

.bm-blog-card__title a:hover {
	color: var(--bm-orange);
}

.bm-blog-card__excerpt {
	margin-top: 0.45rem;
	color: var(--bm-muted);
	font-size: 0.86rem;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-clamp: 3;
	overflow: hidden;
}

.bm-blog__empty {
	margin: 0;
	padding: 1rem 0;
	color: var(--bm-muted);
	font-size: 0.9rem;
}

@media (max-width: 992px) {
	.bm-blog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.bm-blog__head {
		flex-direction: column;
	}

	.bm-blog__grid {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}
}

/* Brand logos strip */

.bm-brands {
	padding: 1.25rem 0 2rem;
}

.bm-brands__title {
	margin-bottom: 1rem;
}

.bm-brands__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1.25rem 1.5rem;
	align-items: center;
}

.bm-brand-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.5rem;
	padding: 0.65rem 0.85rem;
	border: 1px solid #ececec;
	background: #fafafa;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bm-brand-logo:hover {
	border-color: #ddd;
	background: #fff;
}

.bm-brand-logo img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 2.25rem;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.82;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.bm-brand-logo:hover img {
	filter: grayscale(0);
	opacity: 1;
}

.bm-brand-logo__text {
	color: var(--bm-muted);
	font-size: 0.92rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	line-height: 1.2;
}

.bm-brand-logo:hover .bm-brand-logo__text {
	color: var(--bm-ink);
}

@media (max-width: 992px) {
	.bm-brands__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.bm-brands__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}
}
