.bae-widget {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	isolation: isolate;
}

.bae-media {
	position: relative;
	width: 100%;
	min-height: 220px;
	overflow: hidden;
	background: #eee;
}

.bae-layer,
.bae-layer img,
.bae-side__item img {
	width: 100%;
	height: 100%;
	display: block;
}

.bae-layer {
	position: absolute;
	inset: 0;
}

.bae-layer img,
.bae-side__item img {
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
}

.bae-before { z-index: 1; }
.bae-after { z-index: 2; }

.bae-mode-reveal .bae-after { clip-path: inset(0 0 0 50%); }
.bae-mode-hero .bae-after { filter: none; }
.bae-hero-divider-stroke {
	position: absolute;
	inset: 0;
	z-index: 4;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}
.bae-hero-divider-stroke-path {
	fill: none;
	stroke: rgba(255,255,255,.98);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,.28));
}
.bae-hero-pool-fill { fill: #fff; }

/* Hero comparison layout: image-led copy and an organic reveal grip. */
.bae-mode-hero .bae-media { min-height: 420px; height: min(70vh, 760px); }
.bae-mode-hero .bae-layer::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}
.bae-mode-hero .bae-before::after { background: linear-gradient(-135deg, rgba(255,255,255,.5), transparent 62%); }
.bae-mode-hero .bae-after::after { background: linear-gradient(135deg, rgba(42,45,78,.48), transparent 62%); }
.bae-mode-hero .bae-hero-copy {
	position: absolute;
	z-index: 2;
	top: 2rem;
	left: 4rem;
	width: min(50%, 700px);
	color: #fff;
	text-shadow: 0 2px 16px rgba(0,0,0,.32);
	pointer-events: none;
}
.bae-mode-hero .bae-hero-copy-before { left: 4rem; right: auto; text-align: left; }
.bae-mode-hero .bae-hero-copy-after { left: auto; right: 4rem; text-align: right; }
.bae-mode-hero .bae-hero-copy-before { color: #111; text-shadow: 0 2px 16px rgba(255,255,255,.38); }
.bae-mode-hero .bae-label-before { left: 10px; right: auto; }
.bae-mode-hero .bae-label-after { right: 10px; left: auto; }
.bae-mode-hero .bae-hero-copy h2 {
	margin: 0 0 .5em;
	color: inherit;
	font-size: clamp(2rem, 4vw, 4rem);
	line-height: 1.02;
}
.bae-mode-hero .bae-hero-copy p {
	margin: 0;
	color: inherit;
	font-size: clamp(14px, 1.35vw, 19px);
	line-height: 1.55;
}
.bae-mode-hero .bae-hero-copy > * {
	opacity: 0;
	transform: translate3d(0, 2rem, 0);
	transition: opacity 1s ease, transform 1s ease;
}
.bae-mode-hero.bae-hero-show-before .bae-hero-copy-before > *,
.bae-mode-hero.bae-hero-show-after .bae-hero-copy-after > * {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}
.bae-mode-hero .bae-reveal__handle {
	top: 0;
	bottom: 0;
	width: 44px;
	height: auto;
	transform: translateX(-50%);
	align-items: flex-end;
	justify-content: center;
}
.bae-mode-hero .bae-reveal__handle::before { display: none; }
.bae-mode-hero .bae-reveal__handle-inner {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: min(100vw, 760px);
	height: auto;
	min-width: 0;
	min-height: 0;
	flex-basis: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transform: translateX(-50%);
	transition: filter .16s ease;
}
.bae-mode-hero .bae-reveal__handle:hover .bae-reveal__handle-inner,
.bae-mode-hero .bae-reveal__handle:focus-visible .bae-reveal__handle-inner { transform: translateX(-50%); filter: drop-shadow(0 2px 4px rgba(0,0,0,.22)); box-shadow: none; }
.bae-hero-handle-arrows {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 40px;
	height: 40px;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	border: 2px solid rgba(255,255,255,.92);
	border-radius: 50%;
	background: #172d3b;
	color: #fff;
	box-shadow: 0 3px 12px rgba(0,0,0,.24);
	pointer-events: none;
}

.bae-mode-reveal {
	--bae-divider-width: 2px;
	--bae-divider-color: rgba(255,255,255,.96);
}

.bae-reveal__handle {
	position: absolute;
	z-index: 5;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 0;
	transform: translateX(-50%);
	cursor: ew-resize;
	touch-action: none;
	display: flex;
	justify-content: center;
	align-items: center;
}

.bae-reveal__handle::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: var(--bae-divider-width);
	transform: translateX(-50%);
	background: var(--bae-divider-color);
	box-shadow: 0 0 0 1px rgba(0,0,0,.06);
	pointer-events: none;
}

.bae-reveal__handle-inner {
	position: relative;
	z-index: 2;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	flex: 0 0 44px;
	aspect-ratio: 1 / 1;
	box-sizing: border-box;
	border-radius: 50%;
	display: grid;
	place-items: center;
	padding: 0;
	margin: 0;
	background: #fff;
	color: #111;
	border: 2px solid rgba(255,255,255,.96);
	box-shadow: 0 2px 5px rgba(0,0,0,.16), 0 6px 16px rgba(0,0,0,.16);
	line-height: 0;
	transition: transform .16s ease, box-shadow .16s ease;
}

.bae-reveal__handle:hover .bae-reveal__handle-inner,
.bae-reveal__handle:focus-visible .bae-reveal__handle-inner {
	transform: scale(1.06);
	box-shadow: 0 3px 7px rgba(0,0,0,.18), 0 8px 20px rgba(0,0,0,.18);
}

.bae-reveal__modern-arrows {
	width: 20px;
	height: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	line-height: 0;
}

.bae-arrow {
	display: block;
	width: 7px;
	height: 7px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	box-sizing: border-box;
}

.bae-arrow-prev { transform: rotate(-135deg); }
.bae-arrow-next { transform: rotate(45deg); }

.bae-reveal__custom-icon {
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	line-height: 0;
}

.bae-reveal__custom-icon i,
.bae-reveal__custom-icon svg {
	display: block;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	fill: currentColor;
	color: currentColor;
}

.bae-reveal-vertical .bae-reveal__handle {
	left: 0;
	right: 0;
	top: 50%;
	bottom: auto;
	width: 100%;
	height: 0;
	transform: translateY(-50%);
	cursor: ns-resize;
}

.bae-reveal-vertical .bae-reveal__handle::before {
	left: 0;
	right: 0;
	top: 50%;
	bottom: auto;
	width: 100%;
	height: var(--bae-divider-width);
	transform: translateY(-50%);
}

.bae-reveal-vertical .bae-reveal__modern-arrows {
	width: 14px;
	height: 20px;
	flex-direction: column;
	gap: 4px;
}

.bae-reveal-vertical .bae-arrow-prev { transform: rotate(-45deg); }
.bae-reveal-vertical .bae-arrow-next { transform: rotate(135deg); }

.bae-label {
	position: absolute;
	z-index: 7;
	top: 16px;
	padding: 7px 11px;
	background: rgba(0,0,0,.58);
	color: #fff;
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: .06em;
	border-radius: 4px;
	pointer-events: none;
}

.bae-label-before { left: 16px; }
.bae-label-after { right: 16px; }

.bae-side {
	--bae-side-divider-color: rgba(255,255,255,.96);
	--bae-side-divider-width: 2px;
	--bae-side-divider-style: solid;
	position: relative;
	display: flex;
	width: 100%;
	align-items: stretch;
	flex-direction: row;
	gap: 0;
	overflow: hidden;
}

.bae-side__item {
	position: relative;
	flex: 1 1 0;
	width: 50%;
	min-width: 0;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.bae-side__item img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.bae-side__divider {
	position: absolute;
	z-index: 5;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 0;
	transform: translateX(-50%);
	pointer-events: none;
}

.bae-side__divider::before {
	content: '';
	position: absolute;
	z-index: 0;
	top: 0;
	bottom: 0;
	left: 50%;
	width: var(--bae-side-divider-width);
	transform: translateX(-50%);
	border-left: var(--bae-side-divider-width) var(--bae-side-divider-style) var(--bae-side-divider-color);
	box-sizing: border-box;
}

.bae-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 220px;
	background: #eee;
	color: #777;
}

.bae-toggle {
	position: absolute;
	z-index: 10;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: stretch;
	padding: 4px;
	border-radius: 999px;
	background: rgba(0,0,0,.55);
	backdrop-filter: blur(5px);
}

.bae-toggle__button {
	appearance: none;
	border: 0;
	padding: 10px 18px;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease;
}

.bae-toggle__button.is-active {
	background: #fff;
	color: #111;
	box-shadow: inset 0 2px 4px rgba(0,0,0,.14), 0 1px 2px rgba(0,0,0,.1);
	transform: translateY(1px);
}

.bae-mode-toggle .bae-after {
	opacity: 0;
	transition-property: opacity, transform, filter;
	transition-duration: var(--bae-toggle-duration, 600ms);
	transition-timing-function: ease-in-out;
}

.bae-mode-toggle[data-transition="slide-left"] .bae-after {
	transform: translateX(12%);
}

.bae-mode-toggle[data-transition="slide-right"] .bae-after {
	transform: translateX(-12%);
}

.bae-mode-toggle[data-transition="zoom"] .bae-after {
	transform: scale(1.06);
	filter: blur(2px);
}

.bae-mode-toggle.is-after .bae-after {
	opacity: 1;
	transform: none;
	filter: none;
}

.bae-mode-toggle.is-after .bae-before {
	opacity: 0;
}

.bae-mode-toggle .bae-before {
	transition: opacity 600ms ease-in-out;
}


@media (max-width: 767px) {
	.bae-mode-hero .bae-media { min-height: 360px; height: 65vh; }
	.bae-mode-hero .bae-hero-copy { top: 1.25rem; left: 5%; bottom: auto; width: 42%; }
	.bae-mode-hero .bae-hero-copy-before { left: 5%; right: auto; }
	.bae-mode-hero .bae-hero-copy-after { left: auto; right: 5%; }
	.bae-mode-hero .bae-hero-copy h2 { font-size: clamp(1.1rem, 5vw, 2rem); }
	.bae-mode-hero .bae-hero-copy p { font-size: 12px; line-height: 1.4; }
	.bae-mode-hero .bae-reveal__handle-inner { width: min(100vw, 560px); }
	.bae-hero-handle-arrows { width: 34px; height: 34px; }
	.bae-label {
		top: 10px;
		padding: 6px 8px;
		font-size: 10px;
	}
	.bae-label-before { left: 10px; }
	.bae-label-after { right: 10px; }

	.bae-toggle {
		bottom: 12px;
	}

	.bae-toggle__button {
		padding: 9px 13px;
		font-size: 12px;
	}
}

.bae-mode-reveal[data-reveal-orientation="vertical"] .bae-reveal__handle {
	left: 0;
	right: 0;
	top: 50%;
	bottom: auto;
	width: 100%;
	height: 2px;
	transform: translateY(-50%);
	cursor: ns-resize;
	flex-direction: row;
}

.bae-mode-reveal[data-reveal-orientation="vertical"] .bae-reveal__handle-inner {
	transform: rotate(90deg);
}



@media (max-width: 767px) {
	.bae-mode-side .bae-side {
		flex-direction: column;
	}

	.bae-mode-side .bae-side__item {
		width: 100%;
		flex: 0 0 auto;
		aspect-ratio: 16 / 9;
	}

	.bae-mode-side .bae-side__divider {
		top: 50%;
		bottom: auto;
		left: 0;
		right: 0;
		width: 100%;
		height: 0;
		transform: translateY(-50%);
	}

	.bae-mode-side .bae-side__divider::before {
		top: 50%;
		bottom: auto;
		left: 0;
		right: 0;
		width: 100%;
		height: var(--bae-side-divider-width);
		transform: translateY(-50%);
		border-left: 0;
		border-top: var(--bae-side-divider-width) var(--bae-side-divider-style) var(--bae-side-divider-color);
	}


}

@media (prefers-reduced-motion: reduce) {
	.bae-mode-toggle .bae-before,
	.bae-mode-toggle .bae-after,
	.bae-toggle__button {
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
	}
}

/* Vertical comparisons retain chronological order: Before above, After below. */
.bae-reveal-vertical .bae-label-before{left:10px;right:auto;top:10px;bottom:auto}.bae-reveal-vertical .bae-label-after{right:10px;left:auto;top:auto;bottom:10px}

/* Paint the outline behind the glyph fill instead of covering its inner edge. */
.bae-mode-hero .bae-hero-copy h2,
.bae-mode-hero .bae-hero-copy p {
  paint-order: stroke fill;
  -webkit-text-fill-color: currentColor;
  text-decoration: none;
}