/**
 * Portfolio archive (S5a) — page CSS only.
 */

/* Home page-bg Y coords do not fit A0–A6. Local glow on A1/A5. */
.bhm-template-portfolio .bhm-page-bg {
	display: none;
}

.bhm-pf {
	--bhm-pf-glow: color-mix(in srgb, var(--bhm-accent) 22%, transparent);
	background: transparent;
	color: var(--bhm-ink);
	overflow-x: clip;
}

.bhm-pf__crumbs {
	background: var(--bhm-paper);
	border-bottom: 1px solid var(--bhm-border);
	padding: 8px 0;
}

.bhm-pf__crumbs-inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px;
	min-height: 31px;
	overflow-x: auto;
	scrollbar-width: none;
	font-size: var(--bhm-text-kicker);
	line-height: 1.3;
}

.bhm-pf__crumbs-inner::-webkit-scrollbar {
	display: none;
}

.bhm-pf__crumbs a {
	color: var(--bhm-muted);
	text-decoration: none;
	white-space: nowrap;
}

.bhm-pf__crumbs a:hover {
	color: var(--bhm-accent);
}

.bhm-pf__crumbs-sep {
	color: var(--bhm-muted);
}

.bhm-pf__crumbs-current {
	color: var(--bhm-ink);
	font-weight: var(--bhm-fw-semibold);
	white-space: nowrap;
}

.bhm-pf__crumbs-current--d {
	display: none;
}

.bhm-pf__hero {
	position: relative;
	overflow: hidden;
	padding-top: var(--bhm-space-6, 24px);
	padding-bottom: var(--bhm-space-6, 24px);
	background: transparent;
}

.bhm-pf__hero::before {
	content: "";
	position: absolute;
	z-index: 0;
	left: -28%;
	top: -40%;
	width: min(110%, 640px);
	height: min(140%, 560px);
	pointer-events: none;
	background:
		url("../img/bg/bg-glow.svg") no-repeat center / contain,
		radial-gradient(ellipse at 40% 45%, var(--bhm-pf-glow), transparent 68%);
	opacity: 0.85;
}

.bhm-pf__hero-main {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-6, 24px);
}

.bhm-pf__hero-title {
	margin: 0 0 var(--bhm-space-4, 16px);
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: var(--bhm-fw-extrabold);
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.bhm-pf__hero-title-d {
	display: none;
}

.bhm-pf__hero-lead {
	margin: 0 0 var(--bhm-space-5, 20px);
	color: var(--bhm-muted);
	font-size: var(--bhm-text-body);
	line-height: 1.5;
}

.bhm-pf__hero-lead--d {
	display: none;
}

.bhm-pf__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bhm-pf__stat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}

.bhm-pf__stat img {
	display: block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.bhm-pf__stat img.bhm-pf__stat-ic-d,
.bhm-pf__stat img.bhm-pf__stat-ic-m {
	display: none;
}

.bhm-pf__stat span {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.bhm-pf__stat strong {
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-bold);
	line-height: 1.25;
	color: var(--bhm-ink);
}

.bhm-pf__stat small {
	font-size: var(--bhm-text-kicker);
	line-height: 1.3;
	color: var(--bhm-muted);
}

.bhm-pf__stat-d {
	display: none;
}

.bhm-pf__hero-media {
	position: relative;
	width: 100%;
	max-width: 100%;
	border-radius: var(--bhm-radius-md);
	overflow: hidden;
	background: var(--bhm-surface-muted);
	isolation: isolate;
}

/* Hero slider SSOT: assets/css/bhm-hero-slider.css (W48 PERF-css; was twin of bhm-services) */

/* Filters — A2: tabs / location / chips as named regions (Figma 1:2951 / 1:2590) */
.bhm-pf__filters-wrap {
	background: transparent;
	padding: var(--bhm-space-5, 20px) 0;
}

.bhm-pf__filters {
	container-type: inline-size;
	container-name: bhm-pf-filters;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bhm-pf__tabs {
	display: flex;
	gap: 8px;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.bhm-pf__tabs::-webkit-scrollbar {
	display: none;
}

.bhm-pf__tab {
	flex: 0 0 auto;
	padding: 8px 12px;
	border-radius: var(--bhm-radius);
	color: var(--bhm-muted);
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-bold);
	text-decoration: none;
	white-space: nowrap;
	background: var(--bhm-paper);
	border: 1px solid var(--bhm-border);
}

.bhm-pf__tab:hover {
	color: var(--bhm-ink);
	background: var(--bhm-surface-muted);
}

.bhm-pf__tab.is-active {
	color: var(--bhm-paper);
	background: var(--bhm-accent);
}

.bhm-pf__sub {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: 12px;
	min-width: 0;
}

.bhm-pf__location {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
}

.bhm-pf__location-field {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-width: 0;
	min-height: 35px;
	padding: 6px 12px;
	background: var(--bhm-paper);
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius);
}

.bhm-pf__location-field > img {
	display: block;
	flex-shrink: 0;
}

.bhm-pf__location select {
	flex: 1 1 auto;
	min-width: 0;
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--bhm-ink);
	font: inherit;
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-semibold);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bhm-pf__location-chev {
	display: block;
	flex-shrink: 0;
	pointer-events: none;
	opacity: 0.7;
}

.bhm-pf__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.bhm-pf__chip {
	text-decoration: none;
	border-radius: var(--bhm-radius);
}

.bhm-pf__chip--static {
	opacity: 0.55;
	cursor: default;
	pointer-events: none;
	border-style: dashed;
	color: var(--bhm-muted);
}

@container bhm-pf-filters (min-width: 56rem) {
	.bhm-pf__sub {
		grid-template-columns: 15rem minmax(0, 1fr);
		align-items: center;
		gap: 16px;
	}

	.bhm-pf__location {
		width: 15rem;
	}

	.bhm-pf__location-field {
		min-height: 52px;
		padding: 10px 16px;
	}
}

/* Grid + cards (filters → projects; A2.5 estimate rail removed) */
.bhm-pf__grid-section {
	padding-top: var(--bhm-space-6, 24px);
	padding-bottom: var(--bhm-space-8, 40px);
	background: transparent;
}

.bhm-pf__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: 16px;
}

/* Figma Project-Card 1:2628 / 1:2648 — vertical AL, hug height, fill width */
.bhm-pf-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	align-self: start;
	width: 100%;
	height: auto;
	background: var(--bhm-paper);
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius);
	overflow: hidden;
	box-shadow: var(--bhm-shadow-sm);
	transition:
		border-color var(--bhm-duration) var(--bhm-ease),
		box-shadow var(--bhm-duration) var(--bhm-ease),
		transform var(--bhm-duration) var(--bhm-ease),
		border-radius var(--bhm-duration) var(--bhm-ease);
}

@media (hover: hover) {
	.bhm-pf-card:hover {
		border-color: var(--bhm-accent);
		box-shadow: var(--bhm-shadow);
		transform: translateY(var(--bhm-lift));
	}
}

@media (min-width: 768px) {
	.bhm-pf-card.is-mid-hover {
		border-color: var(--bhm-accent);
		box-shadow: var(--bhm-shadow);
		transform: translateY(var(--bhm-lift));
	}
}

@media (max-width: 767px) {
	.bhm-pf-card.is-mid-hover {
		border-color: var(--bhm-border);
		box-shadow: var(--bhm-shadow-sm);
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bhm-pf-card:hover,
	.bhm-pf-card.is-mid-hover {
		transform: none;
	}
}

.bhm-pf-card:has(.bhm-pf-card__link:focus-visible) {
	border-color: var(--bhm-accent);
	box-shadow: var(--bhm-focus-ring);
}

.bhm-pf-card__link {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.bhm-pf-card__link:focus,
.bhm-pf-card__link:focus-visible {
	outline: none;
}

.bhm-pf-card__media {
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: 41 / 22;
	background: var(--bhm-border);
	overflow: hidden;
}

.bhm-pf-card__img,
.bhm-pf-card__media-ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bhm-pf-card__overlays {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 6px;
	max-width: calc(100% - 24px);
}

.bhm-pf-card__pin {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	border-radius: var(--bhm-radius-sm);
	background: var(--bhm-paper);
	color: var(--bhm-ink);
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-bold);
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06);
}

.bhm-pf-card__pin img {
	display: block;
	width: 10px;
	height: 10px;
	flex: 0 0 10px;
}

.bhm-pf-card__badge {
	flex: 0 0 auto;
	padding: 4px 8px;
	border-radius: var(--bhm-radius-sm);
	background: var(--bhm-success-soft);
	color: var(--bhm-success-ink);
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-extrabold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bhm-pf-card__body {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
	padding: 20px;
	gap: 16px;
}

.bhm-pf-card__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.bhm-pf-card__city {
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-semibold);
	color: var(--bhm-slate);
	line-height: 1.35;
}

.bhm-pf-card__title {
	margin: 0;
	width: 100%;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	font-size: var(--bhm-text-body);
	font-weight: var(--bhm-fw-bold);
	line-height: 1.3;
	color: var(--bhm-navy);
}

.bhm-pf-card__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 6px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bhm-pf-card__tag {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	padding: 4px 8px;
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius-sm);
	background: var(--bhm-surface);
	color: var(--bhm-slate);
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-semibold);
	line-height: 1.2;
}

.bhm-pf-card__foot {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	width: 100%;
	padding-top: 16px;
	border-top: 1px solid var(--bhm-border);
}

.bhm-pf-card__cta.bhm-btn {
	align-self: stretch;
	min-height: 44px;
	padding: 6px 12px;
	border-width: 1.5px;
	border-radius: var(--bhm-radius);
	font-size: var(--bhm-text-kicker);
	pointer-events: none;
	cursor: inherit;
}

.bhm-pf-card__cta.bhm-btn--outline,
.bhm-pf-card__cta.bhm-btn--outline:hover,
.bhm-pf-card:hover .bhm-pf-card__cta.bhm-btn--outline,
.bhm-pf-card.is-mid-hover .bhm-pf-card__cta.bhm-btn--outline {
	background: transparent;
	border-color: var(--bhm-accent);
	color: var(--bhm-accent);
	transform: none;
}

.bhm-pf-card--compact .bhm-pf-card__body {
	gap: 0;
}

.bhm-pf-card--compact .bhm-pf-card__title {
	font-size: var(--bhm-text-small);
}

.bhm-pf__more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: var(--bhm-space-6, 24px);
	text-align: center;
}

.bhm-pf__more-btn {
	min-width: min(100%, 280px);
}

.bhm-pf__more-count {
	margin: 0;
	color: var(--bhm-muted);
	font-size: var(--bhm-text-small);
}

.bhm-pf__empty {
	padding: var(--bhm-space-8, 40px) var(--bhm-space-4, 16px);
	text-align: center;
	background: var(--bhm-paper);
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius-md);
}

.bhm-pf__empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 16px;
}

.bhm-pf .bhm-map {
	border-top: 1px solid var(--bhm-border);
}

/* Page-bg glow for A5 — keep here so quote-embed stays page-bg-agnostic. */
.bhm-pf .bhm-quote-embed {
	position: relative;
	overflow: hidden;
}

.bhm-pf .bhm-quote-embed::before {
	content: "";
	position: absolute;
	z-index: 0;
	right: -18%;
	bottom: -45%;
	width: min(90%, 900px);
	height: min(140%, 720px);
	pointer-events: none;
	background:
		url("../img/bg/bg-glow.svg") no-repeat center / contain,
		radial-gradient(ellipse at 60% 50%, var(--bhm-pf-glow), transparent 70%);
	opacity: 0.7;
}

.bhm-pf .bhm-quote-embed__inner {
	position: relative;
	z-index: 1;
}

@media (prefers-reduced-transparency: reduce) {
	.bhm-pf__hero::before,
	.bhm-pf .bhm-quote-embed::before {
		display: none;
	}
}

/* Tablet */
@media (min-width: 768px) {
	.bhm-pf__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.bhm-pf__stats {
		gap: 20px;
	}

	.bhm-pf__stat {
		flex-direction: row;
		align-items: flex-start;
		gap: 10px;
	}


}

/* Desktop */
@media (min-width: 1100px) {
	.bhm-pf__crumbs-current--d {
		display: inline;
	}

	.bhm-pf__crumbs-current--m {
		display: none;
	}

	.bhm-pf__hero {
		padding-top: 32px;
		padding-bottom: 40px;
	}

	.bhm-pf__hero-main {
		flex-direction: row;
		align-items: center;
		gap: clamp(24px, 3vw, 80px);
	}

	.bhm-pf__hero::before {
		left: -8%;
		top: -32%;
		width: min(56%, 980px);
		height: 130%;
	}

	.bhm-pf__hero-copy {
		flex: 1 1 0;
		min-width: 0;
	}

	.bhm-pf__hero-title-d {
		display: inline;
	}

	.bhm-pf__hero-title-m {
		display: none;
	}

	.bhm-pf__hero-lead--d {
		display: block;
	}

	.bhm-pf__hero-lead--m {
		display: none;
	}

	.bhm-pf__stat-d {
		display: inline;
	}

	.bhm-pf__stat-m {
		display: none;
	}

	.bhm-pf__stat img.bhm-pf__stat-ic-d {
		display: block;
	}

	.bhm-pf__stat img.bhm-pf__stat-ic-m {
		display: none;
	}

	.bhm-pf__stats {
		display: flex;
		flex-wrap: wrap;
		gap: 20px 40px;
	}

	.bhm-pf__stat strong {
		font-size: var(--bhm-text-small);
	}

	.bhm-pf__stat small {
		font-size: var(--bhm-text-small);
	}

	.bhm-pf__hero-media {
		flex: 0 1 600px;
		width: min(600px, 100%);
	}

	.bhm-pf__slider-viewport {
		aspect-ratio: 600 / 400;
	}

	.bhm-pf__crumbs {
		padding: 12px 0;
	}

	.bhm-pf__crumbs-inner {
		min-height: 39px;
	}

	.bhm-pf__filters {
		gap: 16px;
	}

	.bhm-pf__tabs {
		display: flex;
		padding: 6px;
		background: var(--bhm-paper);
		border: 1px solid var(--bhm-border);
		border-radius: var(--bhm-radius-sm);
	}

	.bhm-pf__tabs .bhm-pf__tab {
		flex: 1 1 0;
		min-width: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 10px 20px;
		border: 0;
		background: transparent;
		text-align: center;
	}

	.bhm-pf__tabs .bhm-pf__tab.is-active {
		background: var(--bhm-accent);
		color: var(--bhm-paper);
	}

	.bhm-pf__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
	}

}

/* ==========================================================================
   Case study single (S5b) — .bhm-cs*
   ========================================================================== */

.bhm-cs {
	background: var(--bhm-surface-muted);
	color: var(--bhm-ink);
}

.bhm-cs__crumbs {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px;
	padding-top: 12px;
	padding-bottom: 12px;
	overflow-x: auto;
	scrollbar-width: none;
	font-size: var(--bhm-text-kicker);
	line-height: 1.3;
	border-bottom: 1px solid var(--bhm-border);
	background: var(--bhm-paper);
}

.bhm-cs__crumbs::-webkit-scrollbar {
	display: none;
}

.bhm-cs__crumbs a,
.bhm-cs__crumbs-part {
	color: var(--bhm-muted);
	text-decoration: none;
	white-space: nowrap;
}

.bhm-cs__crumbs a:hover {
	color: var(--bhm-accent);
}

.bhm-cs__crumbs-sep {
	color: var(--bhm-muted);
}

.bhm-cs__crumbs-current {
	color: var(--bhm-ink);
	font-weight: var(--bhm-fw-semibold);
	white-space: nowrap;
}

.bhm-cs__hero {
	padding: var(--bhm-space-6, 24px) 0 var(--bhm-space-4, 16px);
	background: var(--bhm-paper);
}

.bhm-cs__title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	line-height: 1.2;
	font-weight: var(--bhm-fw-extrabold);
	color: var(--bhm-navy);
	max-width: 56rem;
}

.bhm-cs__lead {
	margin: 0 0 16px;
	font-size: var(--bhm-text-body);
	line-height: 1.55;
	color: var(--bhm-muted);
	max-width: 48rem;
}

.bhm-cs__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bhm-cs__pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: var(--bhm-radius-sm);
	background: var(--bhm-surface-accent);
	color: var(--bhm-accent);
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-semibold);
	line-height: 1.2;
}

.bhm-cs__ba-wrap {
	padding: 8px 0 32px;
	background: var(--bhm-paper);
}

.bhm-cs__ba {
	margin: 0;
	position: relative;
}

.bhm-cs__ba-frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--bhm-radius);
	aspect-ratio: 361 / 300;
	background: var(--bhm-border);
}

.bhm-cs__ba-after,
.bhm-cs__ba-ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bhm-cs__ba-before {
	position: absolute;
	inset: 0 auto 0 0;
	background-size: cover;
	background-position: left center;
	border-right: 2px solid var(--bhm-paper);
}

.bhm-cs__ba-label {
	position: absolute;
	top: 12px;
	z-index: 2;
	padding: 4px 8px;
	border-radius: var(--bhm-radius-sm);
	color: var(--bhm-paper);
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-bold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
}

.bhm-cs__ba-label--before {
	left: 12px;
	background: var(--bhm-glass-bg-dark);
	border: 1px solid var(--bhm-glass-border-dark);
}

.bhm-cs__ba-label--after {
	right: 12px;
	background: var(--bhm-glass-bg-accent);
	border: 0.5px solid var(--bhm-accent);
}

.bhm-cs__ba-range {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	z-index: 3;
	width: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}

.bhm-cs__ba-chip {
	position: absolute;
	left: 50%;
	bottom: 14px;
	z-index: 4;
	transform: translateX(-50%);
	padding: 8px 14px;
	border-radius: var(--bhm-radius-pill);
	background: var(--bhm-glass-bg-strong);
	-webkit-backdrop-filter: var(--bhm-glass-filter-chip);
	backdrop-filter: var(--bhm-glass-filter-chip);
	border: 1px solid var(--bhm-glass-border);
	box-shadow: var(--bhm-glass-rim);
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-bold);
	color: var(--bhm-navy);
	white-space: nowrap;
	pointer-events: none;
}

.bhm-cs__mid {
	display: grid;
	gap: 24px;
	padding: 8px 0 40px;
	background: var(--bhm-paper);
}

.bhm-cs__specs,
.bhm-cs__story {
	padding: 20px;
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius);
	background: var(--bhm-paper);
}

.bhm-cs__specs-title,
.bhm-cs__section-title {
	margin: 0 0 16px;
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	font-weight: var(--bhm-fw-extrabold);
	color: var(--bhm-navy);
	line-height: 1.25;
}

.bhm-cs__specs-table {
	margin: 0;
}

.bhm-cs__specs-row {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--bhm-border);
	font-size: var(--bhm-text-small);
}

.bhm-cs__specs-row:first-child {
	border-top: 0;
	padding-top: 0;
}

.bhm-cs__specs-row dt {
	margin: 0;
	color: var(--bhm-muted);
	font-weight: var(--bhm-fw-semibold);
}

.bhm-cs__specs-row dd {
	margin: 0;
	color: var(--bhm-ink);
	font-weight: var(--bhm-fw-semibold);
}

.bhm-cs__master {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 16px;
}

.bhm-cs__master-photo {
	width: 56px;
	height: 56px;
	border-radius: var(--bhm-radius-circle);
	object-fit: cover;
}

.bhm-cs__master-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.bhm-cs__master-name {
	font-size: var(--bhm-text-small);
	color: var(--bhm-navy);
}

.bhm-cs__master-role,
.bhm-cs__master-stats {
	font-size: var(--bhm-text-small);
	color: var(--bhm-muted);
}

.bhm-cs__story-kicker {
	margin: 0 0 8px;
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-extrabold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bhm-accent);
}

.bhm-cs__story-text {
	margin: 0;
	font-size: var(--bhm-text-small);
	line-height: 1.55;
	color: var(--bhm-ink);
}

.bhm-cs__process,
.bhm-cs__reviews,
.bhm-cs__nearby {
	padding: 40px 0;
}

.bhm-cs__kicker {
	margin: 0 0 8px;
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-extrabold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bhm-accent);
}

.bhm-cs__process-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.bhm-cs__process-card {
	position: relative;
	padding: 20px;
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius);
	background: var(--bhm-paper);
}

.bhm-cs__process-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-bottom: 10px;
	border-radius: var(--bhm-radius-circle);
	background: var(--bhm-surface-accent);
	color: var(--bhm-accent);
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-extrabold);
}

.bhm-cs__process-title {
	margin: 0 0 8px;
	font-size: var(--bhm-text-body);
	font-weight: var(--bhm-fw-extrabold);
	color: var(--bhm-navy);
}

.bhm-cs__process-desc {
	margin: 0;
	font-size: var(--bhm-text-small);
	line-height: 1.5;
	color: var(--bhm-muted);
}

.bhm-cs__reviews-track {
	display: grid;
	gap: 16px;
}

.bhm-cs__review {
	padding: 18px;
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius);
	background: var(--bhm-paper);
}

.bhm-cs__review-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.bhm-cs__review-name {
	color: var(--bhm-navy);
	font-weight: var(--bhm-fw-bold);
}

.bhm-cs__review-stars {
	color: var(--bhm-amber);
	letter-spacing: 1px;
	font-size: var(--bhm-text-small);
}

.bhm-cs__review-text {
	margin: 0;
	font-size: var(--bhm-text-small);
	line-height: 1.5;
	color: var(--bhm-ink);
}

.bhm-cs__cta {
	padding: 32px 0;
	background: var(--bhm-accent);
	color: var(--bhm-paper);
}

.bhm-cs__cta-inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.bhm-cs__cta-title {
	margin: 0 0 10px;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: var(--bhm-fw-extrabold);
	line-height: 1.25;
	color: var(--bhm-paper);
}

.bhm-cs__cta-lead {
	margin: 0 0 12px;
	font-size: var(--bhm-text-small);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
	max-width: 40rem;
}

.bhm-cs__cta-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 12px;
	margin: 0;
}

.bhm-cs__cta-price-value {
	font-size: 1.5rem;
	font-weight: var(--bhm-fw-extrabold);
}

.bhm-cs__cta-price-note {
	font-size: var(--bhm-text-small);
	opacity: 0.9;
}

.bhm-cs__cta-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bhm-cs__cta-primary {
	background: var(--bhm-paper) !important;
	color: var(--bhm-accent) !important;
	border-color: var(--bhm-paper) !important;
}

.bhm-cs__cta-secondary {
	background: transparent !important;
	color: var(--bhm-paper) !important;
	border-color: rgba(255, 255, 255, 0.7) !important;
}

.bhm-cs__nearby-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.bhm-cs__nearby-nav {
	display: none;
	gap: 8px;
}

.bhm-cs__nearby-nav:not([hidden]) {
	display: flex;
}

.bhm-cs__nearby-btn {
	width: 40px;
	height: 40px;
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius-circle);
	background: var(--bhm-paper);
	color: var(--bhm-navy);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.bhm-cs__nearby-viewport {
	--bhm-cs-nearby-shadow-room: 1.75rem;
	--bhm-cs-nearby-card-w: min(17.5rem, 86vw);
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: clip;
	overflow-y: visible;
	padding-bottom: var(--bhm-cs-nearby-shadow-room);
	box-sizing: border-box;
}

@supports not (overflow-x: clip) {
	.bhm-cs__nearby-viewport {
		overflow-x: hidden;
	}
}

.bhm-cs__nearby-marquee {
	position: relative;
	width: 100%;
	overflow: visible;
	mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 1.25rem,
		#000 calc(100% - 1.25rem),
		transparent
	);
	-webkit-mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 1.25rem,
		#000 calc(100% - 1.25rem),
		transparent
	);
}

.bhm-cs__nearby-marquee.is-static {
	mask-image: none;
	-webkit-mask-image: none;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.bhm-cs__nearby-marquee.is-static::-webkit-scrollbar {
	display: none;
}

.bhm-cs__nearby-track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--bhm-space-4, 1rem);
	width: max-content;
	max-width: none;
	margin: 0;
	padding: 0.15rem 0 0;
	overflow: visible;
	scroll-snap-type: none;
}

.bhm-cs__nearby-marquee.is-ready:not(.is-static) .bhm-cs__nearby-track {
	animation-name: bhm-cs-nearby-marquee;
	animation-duration: var(--bhm-cs-nearby-ms, 48s);
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.bhm-cs__nearby-marquee.is-paused .bhm-cs__nearby-track,
.bhm-cs__nearby-marquee:hover .bhm-cs__nearby-track,
.bhm-cs__nearby-marquee:focus-within .bhm-cs__nearby-track,
.bhm-cs__nearby-marquee:has(.bhm-cs__nearby-track > *:hover) .bhm-cs__nearby-track {
	animation-play-state: paused;
}

@keyframes bhm-cs-nearby-marquee {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(calc(-1 * var(--bhm-cs-nearby-shift, 50%)), 0, 0);
	}
}

.bhm-cs__nearby-item {
	flex: 0 0 var(--bhm-cs-nearby-card-w);
	width: var(--bhm-cs-nearby-card-w);
	min-width: 0;
	scroll-snap-align: unset;
}

.bhm-cs__nearby-item .bhm-pf-card {
	height: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.bhm-cs__nearby-marquee.is-ready .bhm-cs__nearby-track,
	.bhm-cs__nearby-marquee.is-ready:not(.is-static) .bhm-cs__nearby-track {
		animation: none;
	}
}


.bhm-sticky-bar--cs {
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bhm-sticky-bar--cs .bhm-sticky-bar__copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.bhm-sticky-bar--cs .bhm-sticky-bar__label {
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-bold);
	color: var(--bhm-muted);
	text-transform: uppercase;
}

.bhm-sticky-bar--cs .bhm-sticky-bar__price {
	font-size: var(--bhm-text-body);
	font-weight: var(--bhm-fw-extrabold);
	color: var(--bhm-navy);
}

.bhm-sticky-bar--cs .bhm-sticky-bar__actions {
	display: flex;
	gap: 8px;
	flex: 1 1 auto;
	justify-content: flex-end;
}

.bhm-sticky-bar--cs .bhm-btn {
	flex: 0 1 auto;
	white-space: nowrap;
	padding-inline: 14px;
}

@media (max-width: 781px) {
	.bhm-sticky-bar--cs {
		display: flex;
	}

	.bhm-has-cs-sticky {
		padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
	}

	.bhm-has-cs-sticky .bhm-bottom-nav {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.bhm-cs__ba-frame {
		aspect-ratio: 1280 / 500;
	}

	.bhm-cs__process-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.bhm-cs__reviews-track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bhm-cs__cta-actions {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.bhm-cs__nearby-viewport {
		--bhm-cs-nearby-card-w: 20rem;
	}
}

@media (min-width: 1100px) {
	.bhm-cs__hero {
		padding-top: 32px;
	}

	.bhm-cs__mid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 24px;
		align-items: start;
		padding-bottom: 48px;
	}

	.bhm-cs__process-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.bhm-cs__reviews-track {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bhm-cs__cta-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 32px;
	}

	.bhm-cs__cta-actions {
		flex: 0 0 auto;
		flex-direction: column;
		min-width: 260px;
	}

	.bhm-cs__nearby-viewport {
		--bhm-cs-nearby-card-w: 22.5rem;
		--bhm-cs-nearby-shadow-room: 2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bhm-cs__nearby-marquee.is-static .bhm-cs__nearby-track {
		scroll-behavior: auto;
	}
}
