/* ═══════════════════════════════════════════════════════════════════════════
   IronNest — before / after showcase
   ---------------------------------------------------------------------------
   Mobile first: the slider is full width with the commentary underneath, and
   only splits into two columns when there is room for both to be legible.
   ═══════════════════════════════════════════════════════════════════════════ */

.in-bax { padding: 56px 0; }

.in-bax__grid {
	display: grid;
	gap: 22px;
	grid-template-columns: 1fr;
	margin-top: 30px;
	align-items: start;
}

/* ── The slider ─────────────────────────────────────────────────────────── */

.in-bax__slider { margin: 0; }

.in-bax__stage {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--clr-gray-1);
	box-shadow: 0 16px 44px rgba(13, 38, 59, .14);
	/* The range input sits on top; without this the browser shows a text
	   caret over the photograph while dragging. */
	user-select: none;
	touch-action: pan-y;
}

.in-bax__after,
.in-bax__before {
	position: absolute;
	inset: 0;
}

.in-bax__before {
	/* Painted by the script. The default keeps the left half visible so the
	   section still reads correctly with JavaScript off. */
	clip-path: inset(0 50% 0 0);
}

.in-bax__stage picture,
.in-bax__stage img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.in-bax__tag {
	position: absolute;
	top: 14px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: var(--fw-7);
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #fff;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.in-bax__tag--before { left: 14px;  background: rgba(27, 35, 43, .76); }
.in-bax__tag--after  { right: 14px; background: rgba(0, 108, 181, .88); }
.in-bax__tag--during { left: 14px;  background: rgba(27, 35, 43, .76); }

.in-bax__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	margin-left: -1px;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 0 0 1px rgba(13, 38, 59, .18);
	pointer-events: none;
}

.in-bax__grip {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: var(--clr-blue);
	box-shadow: 0 6px 20px rgba(13, 38, 59, .3);
}

/* The control itself: full-bleed and invisible, so the whole photograph is
   draggable and the thumb is wherever the finger is. */
.in-bax__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
}

.in-bax__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 56px;
	height: 100%;
	cursor: ew-resize;
}

.in-bax__range::-moz-range-thumb {
	width: 56px;
	height: 100%;
	border: 0;
	cursor: ew-resize;
}

/* Keyboard users get a visible ring round the stage, since the input is
   transparent. */
.in-bax__range:focus-visible {
	outline: none;
}

.in-bax__stage:has(.in-bax__range:focus-visible) {
	box-shadow: 0 0 0 3px var(--clr-blue), 0 16px 44px rgba(13, 38, 59, .14);
}

.in-bax__cap {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin-top: 14px;
	font-size: 14px;
	color: var(--clr-gray-5);
}

.in-bax__cap strong {
	font-size: 15.5px;
	font-weight: var(--fw-7);
	color: var(--clr-text);
}

/* ── Commentary side ────────────────────────────────────────────────────── */

.in-bax__demo {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--clr-gray-1);
}

.in-bax__demo picture,
.in-bax__demo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.in-bax__h3 {
	margin: 20px 0 8px;
	font-family: var(--font-serif);
	font-size: 23px;
	font-weight: var(--fw-6);
	line-height: 1.25;
	color: var(--clr-text);
}

.in-bax__body {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--clr-gray-7);
}

.in-bax__cta {
	margin-top: 18px;
}

.in-bax__cta .in-btn {
	width: 100%;
	justify-content: center;
}

.in-bax__tel {
	display: block;
	margin-top: 11px;
	text-align: center;
	font-size: 14.5px;
	font-weight: var(--fw-6);
	color: var(--clr-blue);
	text-decoration: none;
}

.in-bax__tel:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Wider screens ──────────────────────────────────────────────────────── */

@media (min-width: 900px) {
	.in-bax { padding: 76px 0; }

	.in-bax__grid {
		grid-template-columns: 1.25fr 1fr;
		gap: 34px;
	}

	.in-bax__cta .in-btn { width: auto; }
	.in-bax__tel { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	.in-bax__before { transition: none; }
}

/* The case-study link that follows the slider wherever the slider appears. */
.in-cs-readmore {
	margin-top: -26px;
	margin-bottom: 44px;
	text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   Video walkthrough (inc/video-tour.php)
   A vertical clip, so on a phone it sits full width like a story and on a
   desktop it stands beside the copy instead of towering over it.
   ═══════════════════════════════════════════════════════════════════════ */
.in-vtour { padding: 8px 0 64px; }

.in-vtour__grid {
	display: grid;
	gap: 28px;
	grid-template-columns: 1fr;
	align-items: center;
}

.in-vtour__frame {
	position: relative;
	width: 100%;
	max-width: 380px;
	margin: 0 auto;
	aspect-ratio: 720 / 1272;
	overflow: hidden;
	border-radius: 22px;
	background: var(--clr-gray-1);
	box-shadow: 0 24px 60px rgba(13, 38, 59, .18);
}

.in-vtour__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.in-vtour__toggle {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(27, 35, 43, .62);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.in-vtour__toggle .in-vtour__i-play { display: none; }
.in-vtour__frame.is-paused .in-vtour__i-play { display: block; }
.in-vtour__frame.is-paused .in-vtour__i-pause { display: none; }
.in-vtour__toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.in-vtour__list {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.in-vtour__list li {
	position: relative;
	padding-left: 24px;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--clr-gray-7);
}

.in-vtour__list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #b8913a;      /* the brushed gold in the clip */
}

.in-vtour__cta { margin-top: 24px; }
.in-vtour__cta .in-btn { width: 100%; justify-content: center; }
.in-vtour__tel {
	display: block;
	margin-top: 11px;
	text-align: center;
	font-size: 14.5px;
	font-weight: var(--fw-6);
	color: var(--clr-blue);
	text-decoration: none;
}

@media (min-width: 900px) {
	.in-vtour { padding: 16px 0 84px; }
	.in-vtour__grid { grid-template-columns: 380px 1fr; gap: 64px; }
	.in-vtour__frame { margin: 0; }
	.in-vtour__cta .in-btn { width: auto; }
	.in-vtour__tel { text-align: left; }
}
