/* Colourtex Hero Slider v1.1.0 (Decode Digital) */
.ctx-hero {
	--s: 1;
	--ease4: cubic-bezier(0.77, 0, 0.175, 1);
	--ease2: cubic-bezier(0.455, 0.03, 0.515, 0.955);
	/* One layout for every slide (desktop values, scaled by --s below 1240px) */
	--col-left: 450;     /* text column starts this far left of centre */
	--col-width: 980;    /* text column width */
	--gap-sub: 20;       /* title to subtitle */
	--gap-btn: 36;       /* text to button */
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 480px;
	overflow: hidden;
	background: #111;
	font-family: Roboto, Arial, sans-serif;
	color: #fff;
	-webkit-font-smoothing: antialiased;
}
.ctx-hero__track,
.ctx-hero__slide {
	position: absolute;
	inset: 0;
}
.ctx-hero__slide {
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	will-change: opacity, transform;
}
.ctx-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 3;
}
.ctx-hero__slide.is-entering {
	animation: ctxHeroIn 2000ms var(--ease4) both;
}
.ctx-hero__slide.is-leaving {
	visibility: visible;
	z-index: 2;
	animation: ctxHeroOut 2000ms var(--ease4) both;
}
@keyframes ctxHeroIn {
	from { opacity: 0; transform: scale(1.6); }
	to { opacity: 1; transform: scale(1); }
}
@keyframes ctxHeroOut {
	from { opacity: 1; transform: scale(1); }
	to { opacity: 0; transform: scale(0.6); }
}

.ctx-hero .ctx-hero__slide img.ctx-hero__bg {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center center;
}
.ctx-hero__shade {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
}
.ctx-hero__slide.is-in .ctx-hero__shade {
	animation: ctxHeroFade 1500ms linear 750ms both;
}
.ctx-hero__slide.is-static .ctx-hero__shade { opacity: 1; animation: none; }
@keyframes ctxHeroFade { from { opacity: 0; } to { opacity: 1; } }

/* Text column: same start point and spacing on every slide, vertically centred
   in the space between the header and the slide dots. */
.ctx-hero__stack {
	position: absolute;
	z-index: 2;
	top: 0;
	bottom: 0;
	left: calc(50% - var(--col-left) * var(--s) * 1px);
	width: min(calc(var(--col-width) * var(--s) * 1px), calc(50% + var(--col-left) * var(--s) * 1px - 40px));
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	text-align: left;
	padding: 110px 0 100px;
	box-sizing: border-box;
}
.ctx-hero__layer {
	max-width: 100%;
}
.ctx-hero__content { margin-top: calc(var(--gap-sub) * var(--s) * 1px); }
.ctx-hero__button { margin-top: calc(var(--gap-btn) * var(--s) * 1px); }

.ctx-hero__mask {
	position: relative;
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	vertical-align: top;
}
.ctx-hero__text {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
	opacity: 0;
}
.ctx-hero .ctx-hero__title .ctx-hero__text {
	max-width: calc(860px * var(--s));
	font-size: calc(60px * var(--s));
	line-height: calc(70px * var(--s));
	font-weight: 700;
	color: #fff;
	transform-origin: 0 50%;
}
.ctx-hero .ctx-hero__content .ctx-hero__text {
	font-size: calc(24px * var(--s));
	line-height: calc(32px * var(--s));
	font-weight: 700;
	letter-spacing: calc(4px * var(--s));
	color: #de1b22;
}

/* White block wipe ("block to right" reveal) */
.ctx-hero__block {
	position: absolute;
	inset: 0;
	background: #fff;
	transform: scaleX(0);
	transform-origin: 0 50%;
	pointer-events: none;
}
.ctx-hero__slide.is-in .ctx-hero__title .ctx-hero__block {
	animation: ctxHeroBlock 1500ms var(--ease4) 1000ms both;
}
.ctx-hero__slide.is-in .ctx-hero__title .ctx-hero__text {
	animation: ctxHeroTitleIn 1500ms var(--ease4) 1000ms both;
}
.ctx-hero__slide.is-in .ctx-hero__content .ctx-hero__block {
	animation: ctxHeroBlock 1800ms var(--ease4) 1150ms both;
}
.ctx-hero__slide.is-in .ctx-hero__content .ctx-hero__text {
	animation: ctxHeroReveal 1800ms steps(1, end) 1150ms both;
}
@keyframes ctxHeroBlock {
	0% { transform: scaleX(0); transform-origin: 0 50%; }
	50% { transform: scaleX(1); transform-origin: 0 50%; }
	50.01% { transform: scaleX(1); transform-origin: 100% 50%; }
	100% { transform: scaleX(0); transform-origin: 100% 50%; }
}
@keyframes ctxHeroTitleIn {
	0% { opacity: 0; transform: scale(1.5); }
	49.99% { opacity: 0; transform: scale(1.5); }
	50% { opacity: 1; transform: scale(1.25); }
	100% { opacity: 1; transform: scale(1); }
}
@keyframes ctxHeroReveal {
	0% { opacity: 0; }
	50% { opacity: 1; }
	100% { opacity: 1; }
}

/* Button */
.ctx-hero__button .ctx-hero__mask { padding: 1px; margin: -1px; }
.ctx-hero .ctx-hero__btn {
	display: inline-block;
	padding: 12px 30px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	line-height: 14px;
	font-weight: 500;
	letter-spacing: 3px;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
	background: transparent;
	opacity: 0;
	transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.ctx-hero a.ctx-hero__btn:hover,
.ctx-hero a.ctx-hero__btn:focus-visible {
	color: #de1b22;
	border-color: #de1b22;
	text-decoration: none;
}
.ctx-hero__slide.is-in .ctx-hero__btn {
	animation: ctxHeroUp 1500ms var(--ease4) 1300ms both;
}
@keyframes ctxHeroUp {
	from { opacity: 0; transform: translateY(50px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Exit: text drops down out of its mask */
.ctx-hero__slide.is-out .ctx-hero__text,
.ctx-hero__slide.is-out .ctx-hero__btn {
	opacity: 1;
	animation: ctxHeroDown 1000ms var(--ease2) both;
}
.ctx-hero__slide.is-out .ctx-hero__btn { animation-name: ctxHeroDownBtn; }
.ctx-hero__slide.is-out .ctx-hero__block { animation: none; transform: scaleX(0); }
@keyframes ctxHeroDown { from { transform: translateY(0); } to { transform: translateY(105%); } }
@keyframes ctxHeroDownBtn { from { transform: translateY(0); opacity: 1; } to { transform: translateY(175%); opacity: 1; } }

.ctx-hero__slide.is-static .ctx-hero__text,
.ctx-hero__slide.is-static .ctx-hero__btn { opacity: 1; animation: none; transform: none; }

/* Slide dots: bottom of the slider, lined up with the text column */
.ctx-hero__bullets {
	position: absolute;
	left: calc(50% - var(--col-left) * var(--s) * 1px);
	bottom: 44px;
	z-index: 5;
	display: flex;
	gap: 10px;
	line-height: 0;
}
.ctx-hero .ctx-hero__bullet {
	width: 12px;
	height: 12px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
	box-shadow: none;
	min-height: 0;
}
.ctx-hero .ctx-hero__bullet:hover,
.ctx-hero .ctx-hero__bullet:focus-visible {
	background: #fff;
}
.ctx-hero .ctx-hero__bullet.is-active {
	background: #de1b22;
	transform: scale(1.15);
}
.ctx-hero .ctx-hero__bullet:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Mobile and small tablets: everything centred */
.ctx-hero.is-m .ctx-hero__stack {
	left: 24px;
	right: 24px;
	width: auto;
	align-items: center;
	text-align: center;
	padding: 90px 0 80px;
}
.ctx-hero.is-m .ctx-hero__title .ctx-hero__text {
	max-width: none;
	font-size: calc(36px * var(--s));
	line-height: calc(45px * var(--s));
	transform-origin: 50% 50%;
}
.ctx-hero.is-m .ctx-hero__content .ctx-hero__text {
	font-size: calc(15px * var(--s));
	line-height: calc(22px * var(--s));
	letter-spacing: calc(2px * var(--s));
}
.ctx-hero.is-m .ctx-hero__content { margin-top: calc(14px * var(--s)); }
.ctx-hero.is-m .ctx-hero__button { margin-top: calc(28px * var(--s)); }
.ctx-hero.is-m .ctx-hero__bullets {
	left: 50%;
	bottom: 32px;
	transform: translateX(-50%);
}

@media (prefers-reduced-motion: reduce) {
	.ctx-hero__slide.is-entering { animation-name: ctxHeroFade; animation-duration: 600ms; }
	.ctx-hero__slide.is-leaving { animation: none; opacity: 0; }
}
