/**
 * Site-wide responsive polish — loads last.
 * Breakpoints: 480 / 640 / 760 / 900 / 1023 / 1200
 */

/* —— Large laptop (≤1400) —— */
@media (max-width: 1400px) {
	:root {
		--bm-container: 1180px;
	}

	.bm-collage-hero__title {
		font-size: clamp(1.2rem, 2.1vw, 1.65rem);
	}
}

/* —— Global safety —— */
html {
	overflow-x: clip;
}

body {
	overflow-x: clip;
	min-width: 0;
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
}

iframe {
	border: 0;
}

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

.bm-section {
	padding-block: clamp(1.6rem, 3.5vw, 3rem);
}

.bm-section-head {
	margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
	padding-inline: 0.15rem;
}

.bm-lede {
	text-wrap: pretty;
	padding-inline: 0.15rem;
}

/* Prevent sticky header covering in-page anchors */
:target {
	scroll-margin-top: calc(var(--bm-header-h) + 5.5rem);
}

.bm-subnav {
	top: calc(var(--bm-header-h) + env(safe-area-inset-top, 0px));
}

.bm-subnav__list {
	mask-image: linear-gradient(90deg, #000 88%, transparent);
	-webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
	padding-right: 1.25rem;
}

.bm-subnav--service .bm-subnav__list {
	mask-image: none;
	-webkit-mask-image: none;
	padding-right: 0;
}

@media (max-width: 900px) {
	/*
	 * Compound selector beats later .bm-subnav padding shorthand (equal
	 * specificity on .bm-subnav--service alone was losing at ≤760px).
	 * Sit close under the hanging logo tip; center pills scroll past it.
	 */
	.bm-subnav.bm-subnav--service {
		--bm-subnav-notch: 48px;
		--bm-subnav-notch-d: 14px;
		/* Sit near logo tip (~110–130px bar); center pills scroll past tip */
		padding-top: clamp(5.4rem, 17.5vw, 6.9rem);
		padding-bottom: 0.5rem;
	}

	.bm-subnav--service .bm-subnav__list {
		justify-content: flex-start;
		flex-wrap: nowrap;
		max-width: none;
		/* Lead-in / end room so pills can scroll clear of the logo column */
		padding-inline: 0.5rem 1.75rem;
		scroll-padding-inline: clamp(2.75rem, 14vw, 4.5rem);
		/* Fade only the trailing edge — left fade was eating labels */
		mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.35rem), transparent);
		-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1.35rem), transparent);
	}
}

@media (max-width: 760px) {
	.bm-subnav {
		padding: 0.45rem 0;
	}

	/* Re-assert after the shorthand above (same file, equal base specificity) */
	.bm-subnav.bm-subnav--service {
		padding-top: clamp(5.25rem, 16.5vw, 6.4rem);
		padding-bottom: 0.5rem;
	}

	.bm-subnav a {
		padding: 0.5rem 0.8rem;
		font-size: 0.75rem;
	}

	.bm-subnav--service .bm-subnav__list > li:last-child a:not(.is-active) {
		margin-left: 0.15rem;
	}
}

/* Buttons wrap cleanly */
.bm-btn {
	max-width: 100%;
}

/* —— Tablet (≤1200) —— */
@media (max-width: 1200px) {
	.bm-collage-hero__center {
		width: min(62%, 28rem);
	}

	.bm-collage-hero__title {
		font-size: clamp(1.15rem, 2.1vw, 1.55rem);
	}
}

/* —— Laptop / large tablet (≤1023) —— */
@media (max-width: 1023px) {
	.bm-footer__grid {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 1.35rem 1.25rem;
	}

	.bm-footer__brand {
		grid-column: 1 / -1;
	}

	.bm-cta-band__sides {
		display: none;
	}

	.bm-cta-band .bm-btn {
		margin: 0.25rem;
	}

	.bm-service-hero__content {
		max-width: min(100%, 34rem);
	}

	.bm-service-detail__float {
		width: clamp(72px, 16%, 110px);
		right: 0.35rem;
		bottom: -0.65rem;
	}

	.bm-photo-row {
		grid-template-columns: 1fr 1fr;
	}
}

/* —— Tablet collage orbit (761–900) —— */
@media (max-width: 900px) and (min-width: 761px) {
	.bm-c--usb,
	.bm-c--pen,
	.bm-c--flags {
		display: none;
	}

	.bm-c--devices { top: 12%; left: 50%; width: clamp(120px, 18vw, 170px); }
	.bm-c--textile { top: 14%; left: 80%; width: clamp(112px, 17vw, 160px); }
	.bm-c--b { top: 74%; left: 80%; width: clamp(88px, 14vw, 130px); }
	.bm-c--letter { top: 80%; left: 26%; width: clamp(96px, 15vw, 140px); }
	.bm-c--rollup { top: 68%; left: 12%; width: clamp(76px, 12vw, 116px); }
	.bm-c--lightbox { top: 48%; left: 12%; width: clamp(88px, 14vw, 130px); }
	.bm-c--booth { top: 24%; left: 14%; width: clamp(96px, 15vw, 140px); }
	.bm-c--van { top: 14%; left: 24%; width: clamp(120px, 18vw, 176px); }

	.bm-collage-hero__stage {
		min-height: clamp(520px, 72svh, 700px);
		height: clamp(520px, 72svh, 700px);
	}

	.bm-collage-hero__center {
		width: min(78%, 24rem);
		top: 46%;
	}
}

@media (max-width: 900px) {
	.bm-dienst-card__list {
		grid-template-columns: 1fr;
	}

	.bm-wizard__nav {
		flex-direction: column;
	}

	.bm-wizard__nav .bm-btn {
		width: 100%;
	}
}

/* —— Mobile hero / pages (≤760) —— */
@media (max-width: 760px) {
	.bm-is-front .bm-collage-hero {
		min-height: calc(100svh - var(--bm-chrome-bar-h, 56px));
		height: calc(100svh - var(--bm-chrome-bar-h, 56px));
		max-height: calc(100svh - var(--bm-chrome-bar-h, 56px));
		padding-top: clamp(5.75rem, 16vw, 7.25rem);
		padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
		justify-content: stretch;
		overflow: hidden;
	}

	.bm-collage-hero__stage {
		position: relative;
		display: block;
		flex: 1 1 auto;
		width: 100%;
		min-height: 0 !important;
		height: 100% !important;
		overflow: visible;
	}

	.bm-c--usb,
	.bm-c--pen,
	.bm-c--flags,
	.bm-c--rollup,
	.bm-c--booth {
		display: none;
	}

	.bm-c--devices { top: 14%; left: 50%; width: clamp(64px, 20vw, 88px); }
	.bm-c--van { top: 19%; left: 14%; width: clamp(70px, 22vw, 94px); }
	.bm-c--textile { top: 19%; left: 86%; width: clamp(64px, 20vw, 88px); }
	.bm-c--lightbox { top: 79%; left: 16%; width: clamp(58px, 18vw, 78px); }
	.bm-c--letter { top: 79%; left: 84%; width: clamp(60px, 19vw, 82px); }
	.bm-c--b { top: 88%; left: 50%; width: clamp(52px, 16vw, 70px); }

	.bm-collage-hero__center {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		width: min(84%, 18rem);
		max-width: none;
		z-index: 8;
	}

	.bm-collage-hero__eyebrow {
		font-size: 0.58rem;
		letter-spacing: 0.14em;
	}

	.bm-footer__grid {
		grid-template-columns: 1fr;
		gap: 1.15rem;
		justify-items: center;
		text-align: center;
	}

	.bm-footer__brand {
		grid-column: auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		text-align: center;
	}

	/* Pyramid tip already shows the brand mark on mobile */
	.bm-footer__brand > .bm-logo {
		display: none;
	}

	.bm-footer__eyebrow,
	.bm-footer__lede {
		margin-inline: auto;
		text-align: center;
	}

	.bm-footer__lede {
		max-width: 22rem;
	}

	.bm-footer__brand-actions {
		justify-content: center;
		width: 100%;
	}

	.bm-footer__brand-social {
		justify-content: center;
		width: 100%;
	}

	.bm-footer__col {
		width: min(100%, 22rem);
		text-align: center;
	}

	.bm-footer__col h2 {
		text-align: center;
	}

	.bm-footer__links {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.bm-footer__links a:hover,
	.bm-footer__links a:focus-visible {
		transform: none;
	}

	.bm-footer__contact-list {
		align-items: center;
		width: 100%;
	}

	.bm-footer__contact-list > li {
		grid-template-columns: 1rem minmax(0, auto);
		justify-content: center;
		text-align: left;
		width: fit-content;
		max-width: 100%;
		margin-inline: auto;
	}

	.bm-footer__bottom-inner {
		grid-template-columns: 1fr;
		gap: 1rem;
		justify-items: center;
		text-align: center;
	}

	.bm-footer__legal-list {
		justify-content: center;
		flex-wrap: wrap;
	}

	.bm-footer__bottom-social {
		justify-self: center;
	}

	.bm-footer__copy {
		text-align: center;
	}

	.bm-service-hero {
		min-height: clamp(14rem, 58vw, 18rem);
		align-items: flex-end;
	}

	.bm-service-hero__content {
		max-width: 100%;
		padding-right: 0.15rem;
	}

	.bm-service-hero__product {
		width: clamp(72px, 22vw, 100px);
		right: 0.65rem;
		bottom: 0.75rem;
		opacity: 0.92;
	}

	.bm-service-hero__title {
		font-size: clamp(1.05rem, 4.8vw, 1.25rem);
		overflow-wrap: anywhere;
	}

	.bm-service-hero__actions {
		width: 100%;
		flex-direction: column;
	}

	.bm-service-hero__actions .bm-btn {
		width: 100%;
		justify-content: center;
	}

	.bm-service-intro__visual img {
		aspect-ratio: auto;
		width: 100%;
		height: auto;
		max-height: 22rem;
		object-fit: contain;
	}

	.bm-service-pills {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.55rem 0.35rem;
	}

	.bm-service-pill {
		gap: 0.55rem;
		padding: 0.35rem 0.1rem 0.5rem;
	}

	.bm-service-pill__media {
		width: min(100%, 104px);
		height: 104px;
	}

	.bm-service-pill__label {
		font-size: 0.7rem;
		font-weight: 650;
		letter-spacing: 0.01em;
		min-height: 2em;
	}

	.bm-service-detail__float {
		display: none;
	}

	.bm-service-detail__media > img,
	.bm-service-detail__lottie {
		aspect-ratio: 1 / 1;
		width: 100%;
		max-width: 100%;
		margin-inline: auto;
	}

	.bm-dienst-card__cover {
		aspect-ratio: 5 / 4;
	}

	.bm-dienst-card__cover > img:first-child {
		width: 90%;
		height: 90%;
	}

	.bm-dienst-card__body {
		align-items: center;
		text-align: center;
		padding-inline: 0.5rem;
	}

	.bm-dienst-card__body .bm-btn {
		align-self: center;
	}

	.bm-cta-band {
		padding: clamp(1.35rem, 6vw, 2rem) 0;
	}

	.bm-cta-band__inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.35rem;
		padding-inline: 0.25rem;
	}

	.bm-cta-band__actions {
		width: 100%;
		flex-direction: column;
	}

	.bm-cta-band .bm-btn {
		width: min(100%, 20rem);
		margin: 0.3rem 0 0;
		justify-content: center;
	}

	.bm-cta-band__phone,
	.bm-cta-band__whatsapp,
	.bm-cta-band__contact {
		margin-left: 0 !important;
	}

	.bm-page-hero {
		padding-inline: 0.15rem;
	}

	.bm-page-hero h1 {
		font-size: clamp(1.05rem, 4.6vw, 1.25rem);
	}

	.bm-sticky-cta__offerte {
		font-size: 0.66rem;
		padding: 0.48rem 0.6rem;
	}

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

	.bm-overlay__nav > a {
		font-size: clamp(1rem, 4.5vw, 1.15rem);
		padding: 0.4rem 0.1rem;
	}

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

	.bm-photo-row {
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem;
	}

	.bm-process {
		gap: 0.95rem;
	}

	.bm-process__num {
		width: 2.35rem;
		height: 2.35rem;
		font-size: 0.64rem;
	}

	.bm-features {
		gap: 1rem;
	}

	.bm-feature__media {
		width: 3.75rem;
		height: 3.75rem;
	}

	.bm-contact-shell {
		gap: 1.15rem;
	}

	.bm-offerte-layout,
	.bm-offerte-shell {
		display: grid;
		gap: 1.15rem;
	}
}

/* —— Small phones (≤480) —— */
@media (max-width: 480px) {
	:root {
		--bm-gutter: 0.75rem;
	}

	.bm-chrome__social a {
		width: 34px;
		height: 34px;
	}

	.bm-chrome__social svg {
		width: 13px;
		height: 13px;
	}

	.bm-c--devices { top: 13%; left: 50%; width: clamp(58px, 18vw, 78px); }
	.bm-c--van { left: 13%; top: 18%; width: clamp(64px, 20vw, 84px); }
	.bm-c--textile { left: 87%; top: 18%; width: clamp(58px, 18vw, 78px); }
	.bm-c--lightbox { left: 14%; top: 80%; width: clamp(52px, 16vw, 70px); }
	.bm-c--letter { left: 86%; top: 80%; width: clamp(54px, 17vw, 74px); }
	.bm-c--b { top: 89%; left: 50%; width: clamp(48px, 15vw, 64px); }

	.bm-collage-hero__center {
		width: min(86%, 17.5rem);
		top: 50%;
		padding: 0.2rem 0.35rem;
	}

	.bm-service-pills {
		grid-template-columns: 1fr 1fr;
	}

	.bm-dienst-card__body {
		padding: 0.85rem 0.85rem 1rem;
	}

	.bm-sticky-cta {
		gap: 0.28rem;
		padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
	}

	.bm-sticky-cta__icon {
		min-width: 2.45rem;
		height: 2.5rem;
	}

	.bm-sticky-cta__offerte {
		min-height: 2.5rem;
		font-size: 0.62rem;
		letter-spacing: 0.03em;
	}

	.bm-photo-row {
		grid-template-columns: 1fr;
	}
}

/* —— Landscape phones —— */
@media (max-height: 480px) and (orientation: landscape) {
	.bm-is-front .bm-collage-hero {
		min-height: 100svh;
		height: 100svh;
		padding-top: 4.5rem;
		padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
	}

	.bm-c--lightbox,
	.bm-c--letter,
	.bm-c--b {
		display: none;
	}

	.bm-collage-hero__center {
		top: 52%;
		padding: 0.7rem 0.8rem;
	}

	.bm-service-hero {
		min-height: 16rem;
	}

	.bm-overlay {
		padding-block: 0.75rem;
	}
}

/* —— Wide desktop —— */
@media (min-width: 1400px) {
	.bm-collage-hero__stage {
		min-height: clamp(700px, calc(100svh - 9rem), 900px);
		height: clamp(700px, calc(100svh - 9rem), 900px);
	}

	.bm-collage-hero__center {
		width: min(50%, 32rem);
	}
}

/* Touch: slightly larger tap targets */
@media (hover: none) and (pointer: coarse) {
	.bm-chrome__nav a,
	.bm-subnav a,
	.bm-overlay__services a,
	.bm-dienst-card__body .bm-btn,
	.bm-service-pill {
		min-height: 44px;
	}

	.bm-c:hover {
		transform: translate(-50%, -50%) scale(1);
	}

	.bm-c.is-active {
		transform: translate(-50%, -50%) scale(1.06);
	}
}

/* —— Mobile compact type & UI (match hero density; desktop unchanged) —— */
@media (max-width: 760px) {
	:root {
		--bm-fs-hero: clamp(1.05rem, 4.6vw, 1.25rem);
		--bm-fs-2xl: clamp(0.95rem, 3.6vw, 1.1rem);
		--bm-fs-xl: clamp(0.9rem, 3vw, 1.02rem);
		--bm-fs-lg: 0.88rem;
		--bm-fs-base: 0.8rem;
		--bm-gutter: 0.8rem;
	}

	body {
		font-size: var(--bm-fs-base);
		line-height: 1.5;
	}

	.bm-section {
		padding-block: clamp(1.1rem, 4.2vw, 1.75rem);
	}

	.bm-section-head {
		margin-bottom: clamp(0.85rem, 3vw, 1.25rem);
	}

	.bm-section-head h2,
	.bm-section-title {
		font-size: clamp(0.95rem, 3.8vw, 1.1rem);
		line-height: 1.25;
	}

	.bm-section-head .bm-lede {
		font-size: 0.78rem;
		line-height: 1.4;
		margin-top: 0.35rem;
	}

	.bm-btn {
		font-size: 0.78rem;
		padding: 0.48rem 0.85rem;
		gap: 0.3rem;
	}

	.bm-btn--pill {
		padding: 0.48rem 0.95rem;
		font-size: 0.74rem;
	}

	.bm-btn--light {
		font-size: 0.72rem;
	}

	.bm-lede,
	.bm-page-hero .bm-lede {
		font-size: 0.8rem;
		line-height: 1.4;
	}

	.bm-eyebrow {
		font-size: 0.58rem;
		letter-spacing: 0.12em;
	}

	.bm-page-hero {
		padding: clamp(0.85rem, 2.5vw, 1.25rem) 0 clamp(0.75rem, 2vw, 1.1rem);
	}

	.bm-page-hero h1 {
		font-size: clamp(1.05rem, 4.6vw, 1.25rem);
		line-height: 1.2;
	}

	.bm-service-hero__title {
		font-size: clamp(1.05rem, 4.8vw, 1.25rem);
	}

	.bm-cta-band {
		padding: clamp(1.35rem, 5.5vw, 1.9rem) 0;
	}

	.bm-cta-band h2,
	.bm-cta-band__title {
		font-size: clamp(1.05rem, 4.8vw, 1.2rem);
		line-height: 1.2;
	}

	.bm-cta-band p,
	.bm-cta-band__text,
	.bm-cta-band__eyebrow {
		font-size: 0.78rem;
	}

	.bm-cta-band p {
		margin-bottom: 0.95rem;
	}

	.bm-cta-band__actions {
		gap: 0.4rem;
	}

	.bm-feature h3,
	.bm-feature__title,
	.bm-dienst-card h3,
	.bm-split__copy h2,
	.bm-process__item h3 {
		font-size: 0.95rem;
		line-height: 1.25;
	}

	.bm-feature p,
	.bm-feature__text,
	.bm-dienst-card__body p,
	.bm-split__copy p,
	.bm-process__item p {
		font-size: 0.78rem;
		line-height: 1.4;
	}

	.bm-feature {
		padding: 0.85rem 0.85rem 1rem;
	}

	.bm-dienst-card__body {
		padding: 0.9rem 0.9rem 1.05rem;
	}

	.bm-dienst-card__body .bm-btn {
		font-size: 0.74rem;
		padding: 0.45rem 0.8rem;
	}

	.bm-service-pill {
		gap: 0.4rem;
		padding: 0.25rem 0.05rem 0.35rem;
	}

	.bm-service-pill__media {
		width: min(100%, 100px);
		height: 100px;
	}

	.bm-service-pill__label {
		font-size: 0.7rem;
	}

	.bm-process__num {
		width: 2.25rem;
		height: 2.25rem;
		font-size: 0.62rem;
	}

	.bm-sticky-cta {
		gap: 0.3rem;
		padding: 0.4rem 0.45rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
	}

	.bm-sticky-cta__icon {
		min-width: 2.55rem;
		height: 2.6rem;
	}

	.bm-sticky-cta__icon span {
		font-size: 0.52rem;
	}

	.bm-sticky-cta__offerte {
		min-height: 2.6rem;
		font-size: 0.64rem;
		padding: 0.45rem 0.55rem;
		letter-spacing: 0.03em;
	}

	.bm-overlay__nav > a {
		font-size: clamp(1rem, 4.5vw, 1.15rem);
		padding: 0.4rem 0.1rem;
	}

	.bm-subnav a {
		padding: 0.4rem 0.7rem;
		font-size: 0.7rem;
	}

	.bm-wizard__head h2 {
		font-size: 1.05rem;
	}

	.bm-wizard__head p,
	.bm-wizard__service-hint {
		font-size: 0.76rem;
	}

	.bm-wizard__service-label {
		font-size: 0.84rem;
	}

	.bm-wizard__progress li {
		font-size: 0.7rem;
	}

	.bm-field label,
	.bm-field--check label {
		font-size: 0.78rem;
	}

	.bm-field input,
	.bm-field textarea,
	.bm-field select {
		font-size: 0.84rem;
	}

	.bm-footer__eyebrow {
		font-size: 0.58rem;
	}

	.bm-footer__lede,
	.bm-footer__links a,
	.bm-footer__contact-list a,
	.bm-footer__contact-list span:not(.bm-footer__contact-label):not(.bm-footer__contact-icon),
	.bm-footer__copy,
	.bm-footer__legal a {
		font-size: 0.76rem;
	}

	.bm-footer__col h2 {
		font-size: 0.82rem;
	}

	.bm-review__quote,
	.bm-reviews__quote {
		font-size: 0.84rem;
	}

	.bm-review__author,
	.bm-reviews__meta {
		font-size: 0.68rem;
	}

	.bm-home-project__title,
	.bm-project-card__title {
		font-size: 0.92rem;
	}

	.bm-home-project__meta,
	.bm-project-card__meta,
	.bm-home-project__text {
		font-size: 0.74rem;
	}

	.bm-contact-card h3,
	.bm-contact-aside h2 {
		font-size: 0.95rem;
	}

	.bm-contact-card p,
	.bm-contact-aside p {
		font-size: 0.78rem;
	}
}
