/* 49X Hero Slider */
.x49h {
	--x49h-gold: #d4ae5f;
	--x49h-gold-light: #f4dc9b;
	--x49h-white: #f7f4ee;
	--x49h-muted: rgba(247, 244, 238, 0.78);
	--x49h-gutter: clamp(16px, 5.4vw, 80px);
	--x49h-top: clamp(104px, 8.4vw, 150px);
	--x49h-models-scale: 1;
	--x49h-models-shift: 0%;
	--x49h-font: "Jost", "Futura", "Century Gothic", Arial, sans-serif;

	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: clamp(660px, 47vw, 960px);
	padding: clamp(150px, 13vw, 210px) var(--x49h-gutter) 70px;
	overflow: hidden;
	color: var(--x49h-white);
	font-family: var(--x49h-font);
	background:
		radial-gradient(48% 70% at 56% 46%, rgba(128, 98, 52, 0.28) 0%, rgba(128, 98, 52, 0) 70%),
		radial-gradient(120% 100% at 70% 40%, #241f17 0%, #0f0d0a 55%, #050404 100%);
}

.x49h *,
.x49h *::before,
.x49h *::after {
	box-sizing: border-box;
}

/* Concrete-like grain */
.x49h::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.22;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	pointer-events: none;
}

/* Backdrop ---------------------------------------------------------------- */
.x49h__decor {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.x49h__panel,
.x49h__beam,
.x49h__numeral {
	position: absolute;
}

/* Urban editorial backdrop; retain the existing foreground models and copy. */
.x49h__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.x49h__decor--urban::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(5, 4, 4, 0.5), rgba(5, 4, 4, 0.08) 70%);
}

.x49h__decor--urban .x49h__panel,
.x49h__decor--urban .x49h__beam,
.x49h__decor--urban .x49h__numeral {
	display: none;
}

.x49h__panel--a {
	inset: 0 0 0 52%;
	background: linear-gradient(115deg, rgba(0, 0, 0, 0) 0 30%, rgba(0, 0, 0, 0.38) 30% 100%);
}

.x49h__panel--b {
	inset: 0 0 0 30%;
	background: linear-gradient(64deg, rgba(0, 0, 0, 0) 0 56%, rgba(255, 255, 255, 0.025) 56% 70%, rgba(0, 0, 0, 0) 70%);
}

.x49h__beam {
	height: 2px;
	background: linear-gradient(90deg, rgba(244, 220, 155, 0), var(--x49h-gold-light) 45%, rgba(244, 220, 155, 0));
	box-shadow: 0 0 14px 1px rgba(244, 220, 155, 0.35);
	transform-origin: left center;
}

.x49h__beam--a {
	left: 30%;
	bottom: 6%;
	width: 36%;
	transform: rotate(-33deg);
	opacity: 0.75;
}

.x49h__beam--b {
	left: 84%;
	top: 26%;
	width: 26%;
	transform: rotate(35deg);
	opacity: 0.9;
}

.x49h__numeral {
	left: 34%;
	top: 50%;
	width: auto;
	height: clamp(250px, 29vw, 560px);
	overflow: visible;
	transform: translateY(-50%);
	filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
	opacity: 0.96;
}

/* Slides ------------------------------------------------------------------ */
.x49h__slides {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.x49h__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.1s ease, visibility 1.1s;
}

.x49h__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.x49h__media {
	position: absolute;
	top: var(--x49h-top);
	right: calc(0% - var(--x49h-models-shift));
	bottom: 0;
	width: 60%;
	transform: scale(var(--x49h-models-scale));
	transform-origin: 82% bottom;
}

.x49h__media .x49h__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	padding-right: 9%;
	object-fit: contain;
	object-position: 82% bottom;
	filter: drop-shadow(-24px 10px 40px rgba(0, 0, 0, 0.6)) contrast(1.04);
}

/* Full-photo slides fill the whole hero, darkened behind the text */
.x49h__slide--full .x49h__media {
	inset: 0;
	width: 100%;
	transform: none;
}

.x49h__slide--full .x49h__media .x49h__img {
	padding: 0;
	object-fit: cover;
	object-position: center 30%;
	filter: none;
}

.x49h__slide--full .x49h__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(7, 6, 5, 0.92) 0%, rgba(7, 6, 5, 0.6) 40%, rgba(7, 6, 5, 0.1) 75%),
		linear-gradient(180deg, rgba(7, 6, 5, 0.65) 0%, rgba(7, 6, 5, 0) 30%);
}

/* Copy -------------------------------------------------------------------- */
.x49h__content {
	position: relative;
	z-index: 2;
	width: min(560px, 46%);
}

/* When each slide has its own text, the text sits inside the slide */
.x49h__slide .x49h__content {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--x49h-gutter);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding-top: clamp(80px, 8vw, 140px);
}

.x49h .x49h__eyebrow {
	margin: 0 0 26px;
	color: var(--x49h-muted);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.x49h__eyebrow span {
	margin: 0 14px;
}

.x49h .x49h__title {
	margin: 0 0 26px;
	padding: 0;
	color: var(--x49h-white);
	font-family: var(--x49h-font);
	font-size: clamp(46px, 5.6vw, 96px);
	font-weight: 300;
	line-height: 0.98;
	letter-spacing: -0.005em;
	text-transform: uppercase;
}

.x49h__thin,
.x49h__gold {
	display: block;
}

.x49h__thin {
	font-weight: 300;
}

.x49h__gold {
	font-size: 1.04em;
	font-weight: 600;
	background: linear-gradient(180deg, #f8e6ad 0%, #dcb768 42%, #a87f34 78%, #e4c47c 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.x49h .x49h__text {
	margin: 0 0 40px;
	color: var(--x49h-muted);
	font-size: clamp(15px, 1.25vw, 18px);
	font-weight: 400;
	line-height: 1.5;
}

.x49h .x49h__btn {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 14px 26px;
	border: 1.5px solid var(--x49h-gold);
	color: var(--x49h-gold);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.3s, color 0.3s;
}

.x49h__btn svg {
	width: 16px;
	height: 16px;
	transition: transform 0.3s;
}

.x49h .x49h__btn:hover,
.x49h .x49h__btn:focus-visible {
	background: var(--x49h-gold);
	color: #0a0907;
}

.x49h__btn:hover svg,
.x49h__btn:focus-visible svg {
	transform: translateX(4px);
}

/* Pager + scroll ---------------------------------------------------------- */
.x49h__pager {
	position: absolute;
	top: 41%;
	right: 2.6%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	font-weight: 500;
}

.x49h__count {
	letter-spacing: 0.06em;
}

.x49h__track {
	width: 1px;
	height: 44px;
	background: rgba(247, 244, 238, 0.7);
}

.x49h__dots {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 22px;
}

.x49h .x49h__dot {
	display: block;
	width: 19px;
	height: 19px;
	padding: 6px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.x49h__dot::before {
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(247, 244, 238, 0.5);
	transition: background-color 0.3s, transform 0.3s;
}

.x49h .x49h__dot:hover,
.x49h .x49h__dot:focus {
	background: transparent;
}

.x49h__dot:hover::before {
	background: var(--x49h-white);
}

.x49h__dot.is-active::before {
	background: var(--x49h-gold);
	transform: scale(1.3);
}

.x49h .x49h__scroll {
	position: absolute;
	right: var(--x49h-gutter);
	bottom: 30px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--x49h-white);
	font-size: 13px;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
}

.x49h .x49h__scroll:hover {
	color: var(--x49h-gold);
}

.x49h__mouse {
	position: relative;
	width: 22px;
	height: 34px;
	border: 1.5px solid currentColor;
	border-radius: 11px;
}

.x49h__mouse span {
	position: absolute;
	top: 7px;
	left: 50%;
	width: 2px;
	height: 7px;
	margin-left: -1px;
	border-radius: 1px;
	background: currentColor;
	animation: x49h-scroll 1.8s ease-in-out infinite;
}

@keyframes x49h-scroll {
	0% { transform: translateY(0); opacity: 1; }
	70% { transform: translateY(10px); opacity: 0; }
	100% { transform: translateY(0); opacity: 0; }
}

.x49h a:focus-visible,
.x49h button:focus-visible {
	outline: 2px solid var(--x49h-gold);
	outline-offset: 3px;
}

/* Tablet ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.x49h__content {
		width: 54%;
	}

	.x49h__media {
		width: 70%;
	}
}

/* Mobile ------------------------------------------------------------------ */
/* One screen: photo behind, copy + button pinned to the bottom over a fade */
@media (max-width: 767px) {
	.x49h {
		--x49h-head: 112px; /* floating header height */
		flex-direction: column;
		justify-content: flex-end;
		align-items: stretch;
		--x49h-bottom: max(20px, env(safe-area-inset-bottom, 0px));
		min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
		min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
		padding: var(--x49h-head) var(--x49h-gutter) var(--x49h-bottom);
	}

	.x49h__numeral {
		left: 50%;
		top: 38%;
		height: 64vw;
		transform: translate(-50%, -50%);
	}

	.x49h__beam--a {
		left: 8%;
		bottom: 44%;
		width: 50%;
	}

	.x49h__beam--b {
		top: 20%;
	}

	.x49h__media {
		top: var(--x49h-head);
		right: 0;
		bottom: auto;
		width: 100%;
		height: calc(100% - var(--x49h-head) - 150px);
		transform: none;
	}

	.x49h__media .x49h__img {
		padding: 0;
		object-position: center top; /* wide group shots stay clear of the copy */
		filter: none; /* big blurred shadows delay first paint on phones */
	}

	/* Box hugs the photo so the fade lands on its real bottom edge */
	.x49h__slide--cutout .x49h__media .x49h__img {
		height: auto;
		max-height: 100%;
		-webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
	}

	.x49h__slide--full .x49h__media {
		inset: 0;
		height: auto;
	}

	.x49h__slide--full .x49h__media .x49h__img {
		object-position: center 20%;
	}

	.x49h__slide--full .x49h__media::after {
		background: linear-gradient(180deg, rgba(7, 6, 5, 0.55) 0%, rgba(7, 6, 5, 0) 25%);
	}

	/* Fade the lower half so the copy always reads */
	.x49h__slides::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
		background: linear-gradient(180deg, rgba(7, 6, 5, 0) 48%, rgba(7, 6, 5, 0.85) 70%, #070605 88%);
		pointer-events: none;
	}

	.x49h__content {
		width: 100%;
	}

	.x49h__slide .x49h__content {
		top: auto;
		right: var(--x49h-gutter);
		bottom: var(--x49h-bottom);
		width: calc(100% - 2 * var(--x49h-gutter));
		z-index: 2;
		justify-content: flex-end;
		padding: 0;
	}

	.x49h .x49h__eyebrow {
		margin-bottom: 10px;
		font-size: clamp(9px, 2.6vw, 11px);
		letter-spacing: 0.1em;
		line-height: 1.4;
	}

	.x49h .x49h__eyebrow span {
		margin: 0 5px;
	}

	.x49h .x49h__title {
		margin-bottom: 12px;
		font-size: clamp(30px, 9vw, 42px);
		line-height: 1;
	}

	.x49h .x49h__text {
		max-width: 34ch;
		margin-bottom: 16px;
		font-size: 13px;
		line-height: 1.45;
	}

	.x49h .x49h__btn {
		min-height: 44px;
		padding: 13px 22px;
		font-size: 12px;
	}

	.x49h__pager,
	.x49h .x49h__scroll {
		display: none;
	}
}

/* Portrait campaign photography stays separate from the headline. */
.x49h--campaign .x49h__slide--full .x49h__media {
	left: 44%;
	width: 56%;
}
.x49h--campaign .x49h__slide--full .x49h__img {
	object-position: center 35%;
}
.x49h--campaign .x49h__slide--full .x49h__media::after {
	background: linear-gradient(90deg, #100e0b, transparent 18%), linear-gradient(180deg, rgba(7,6,5,.25), transparent 30%);
}
.x49h--campaign .x49h__decor::after {
	background: linear-gradient(90deg, rgba(7,6,5,.94) 0%, rgba(7,6,5,.85) 45%, transparent 70%);
}
.x49h--campaign .x49h__content { width: 40%; }
@media (max-width: 767px) {
	/* One continuous campaign photo, including behind the floating header. */
	.x49h--campaign .x49h__decor {
		display: none;
	}
	.x49h--campaign .x49h__slide--full .x49h__media {
		inset: 0;
		width: 100%;
		height: 100%;
	}
	.x49h--campaign .x49h__slide--full .x49h__img { object-position: center 25%; }
	.x49h--campaign .x49h__slide--full .x49h__media::after {
		background: linear-gradient(180deg, rgba(7, 6, 5, 0.65), transparent 28%, rgba(7, 6, 5, 0.35) 48%, rgba(7, 6, 5, 0.94) 78%, #070605);
	}
	.x49h--campaign .x49h__slides::after {
		display: none;
	}
	.x49h--campaign .x49h__content { width: 100%; }
	.x49h--campaign .x49h__slide .x49h__content {
		width: calc(100% - 2 * var(--x49h-gutter));
	}
}

/* Keep the complete message above the fold on compact phones/landscape. */
@media (max-width: 767px) and (max-height: 700px) {
	.x49h { --x49h-head: 88px; --x49h-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
	.x49h .x49h__title { font-size: clamp(27px, 8vw, 34px); margin-bottom: 8px; }
	.x49h .x49h__eyebrow { margin-bottom: 6px; }
	.x49h .x49h__text { margin-bottom: 10px; font-size: 12px; }
}
@media (max-width: 767px) and (max-height: 480px) {
	.x49h .x49h__title { font-size: 24px; }
	.x49h .x49h__title > span { display: inline; }
	.x49h .x49h__title > span + span::before { content: " "; }
	.x49h .x49h__text br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.x49h__slide,
	.x49h__btn svg,
	.x49h__dot::before {
		transition: none;
	}

	.x49h__mouse span {
		animation: none;
	}
}
