/**
 * Hero slider.
 */

.ss-hero {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 640px;
	max-height: 1180px;
	overflow: hidden;
	background: var(--ss-ink);
	isolation: isolate;
}

.ss-hero--large {
	height: 88vh;
	height: 88svh;
}

@media (max-width: 640px) {
	.ss-hero {
		min-height: 600px;
	}
}

.ss-hero__slides {
	position: absolute;
	inset: 0;
}

/* Slides ---------------------------------------------------------------------- */

.ss-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.3s var(--ss-ease-in-out), visibility 0s linear 1.3s;
}

.ss-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 1.3s var(--ss-ease-in-out), visibility 0s linear 0s;
}

.ss-slide.is-leaving {
	visibility: visible;
}

.ss-slide__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: var(--ss-graphite);
}

.ss-slide__media .ss-slide__img,
.ss-slide__media .ss-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: 60% 50%;
}

.ss-hero--kenburns .ss-slide__img {
	transform: scale(1.1);
}

.ss-hero--kenburns .ss-slide.is-active .ss-slide__img,
.ss-hero--kenburns .ss-slide.is-leaving .ss-slide__img {
	animation: ss-kenburns calc(var(--ss-interval, 7000ms) + 2600ms) linear both;
}

@keyframes ss-kenburns {
	from {
		transform: scale(1.1);
	}

	to {
		transform: scale(1);
	}
}

.ss-slide__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(10, 10, 9, calc(var(--ss-overlay) + .18)) 0%, rgba(10, 10, 9, var(--ss-overlay)) 48%, rgba(10, 10, 9, calc(var(--ss-overlay) * .55)) 100%),
		linear-gradient(0deg, rgba(10, 10, 9, .6) 0%, rgba(10, 10, 9, 0) 42%);
}

.ss-slide--center .ss-slide__shade {
	background:
		radial-gradient(80% 70% at 50% 55%, rgba(10, 10, 9, calc(var(--ss-overlay) + .12)), rgba(10, 10, 9, calc(var(--ss-overlay) * .75))),
		linear-gradient(0deg, rgba(10, 10, 9, .6) 0%, rgba(10, 10, 9, 0) 42%);
}

.ss-slide--right .ss-slide__shade {
	background:
		linear-gradient(270deg, rgba(10, 10, 9, calc(var(--ss-overlay) + .18)) 0%, rgba(10, 10, 9, var(--ss-overlay)) 48%, rgba(10, 10, 9, calc(var(--ss-overlay) * .55)) 100%),
		linear-gradient(0deg, rgba(10, 10, 9, .6) 0%, rgba(10, 10, 9, 0) 42%);
}

.ss-slide__content {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	padding-top: var(--ss-header-h);
	padding-bottom: clamp(7rem, 5rem + 6vh, 10rem);
}

.ss-slide__inner {
	max-width: 62rem;
}

.ss-slide--center .ss-slide__inner {
	margin-inline: auto;
	text-align: center;
}

.ss-slide--right .ss-slide__inner {
	margin-left: auto;
	text-align: right;
}

.ss-slide--center .ss-slide__actions {
	justify-content: center;
}

.ss-slide--right .ss-slide__actions {
	justify-content: flex-end;
}

.ss-slide--center .ss-slide__heading::after {
	content: "";
	flex: none;
	width: 2.25rem;
	height: 1px;
	background: currentColor;
	opacity: .8;
}

.ss-slide--right .ss-slide__heading {
	flex-direction: row-reverse;
}

.ss-slide__heading {
	margin-bottom: 1.75rem;
}

.ss-slide__title {
	max-width: 17ch;
	font-size: var(--ss-fs-hero);
	line-height: .96;
	letter-spacing: -.02em;
	color: #fff;
}

.ss-slide--center .ss-slide__title {
	margin-inline: auto;
}

.ss-slide--right .ss-slide__title {
	margin-left: auto;
}

.ss-slide__text {
	max-width: 36rem;
	margin: 1.9rem 0 0;
	font-size: var(--ss-fs-lead);
	line-height: 1.65;
	color: rgba(244, 239, 230, .84);
}

.ss-slide--center .ss-slide__text {
	margin-inline: auto;
}

.ss-slide--right .ss-slide__text {
	margin-left: auto;
}

.ss-slide__actions {
	margin-top: 2.5rem;
}

/* Staggered entrance of slide content. */
.ss-slide__heading,
.ss-slide__title,
.ss-slide__text,
.ss-slide__actions {
	opacity: 0;
	transform: translate3d(0, 26px, 0);
	transition: opacity .5s ease, transform .6s var(--ss-ease);
}

.ss-slide.is-active .ss-slide__heading,
.ss-slide.is-active .ss-slide__title,
.ss-slide.is-active .ss-slide__text,
.ss-slide.is-active .ss-slide__actions {
	opacity: 1;
	transform: none;
	transition: opacity 1s var(--ss-ease), transform 1.2s var(--ss-ease);
}

.ss-slide.is-active .ss-slide__heading { transition-delay: .35s; }
.ss-slide.is-active .ss-slide__title { transition-delay: .5s; }
.ss-slide.is-active .ss-slide__text { transition-delay: .68s; }
.ss-slide.is-active .ss-slide__actions { transition-delay: .82s; }

/* Interface ------------------------------------------------------------------- */

.ss-hero__ui {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

.ss-hero__ui-inner {
	display: flex;
	align-items: center;
	gap: 1.25rem 2rem;
}

.ss-hero__counter {
	display: flex;
	flex: none;
	align-items: center;
	gap: .85rem;
	margin: 0;
	font-family: var(--ss-font-display);
	font-size: 1.375rem;
	line-height: 1;
	color: rgba(244, 239, 230, .7);
}

.ss-hero__counter [data-slider-current] {
	color: #fff;
}

.ss-hero__counter-line {
	width: 2.5rem;
	height: 1px;
	background: rgba(244, 239, 230, .45);
}

.ss-hero__dots {
	display: flex;
	flex: 1;
	gap: .5rem;
	max-width: 24rem;
}

.ss-hero__dot {
	position: relative;
	flex: 1;
	height: 1.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.ss-hero__dot::before,
.ss-hero__dot-fill {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 2px;
	margin-top: -1px;
	background: rgba(244, 239, 230, .25);
}

.ss-hero__dot-fill {
	right: auto;
	width: 0;
	background: var(--ss-champagne);
}

.ss-hero__dot:hover::before {
	background: rgba(244, 239, 230, .5);
}

.ss-hero__dot.is-active .ss-hero__dot-fill {
	width: 100%;
}

.ss-hero.is-autoplay .ss-hero__dot.is-active .ss-hero__dot-fill {
	width: 0;
	animation: ss-hero-progress var(--ss-interval, 7000ms) linear forwards;
}

.ss-hero.is-paused .ss-hero__dot.is-active .ss-hero__dot-fill {
	animation-play-state: paused;
}

@keyframes ss-hero-progress {
	to {
		width: 100%;
	}
}

.ss-hero__controls {
	display: flex;
	flex: none;
	gap: .5rem;
	margin-left: auto;
}

.ss-hero__btn {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	padding: 0;
	border: 1px solid var(--ss-line-light-strong);
	border-radius: 50%;
	background: rgba(17, 17, 16, .18);
	color: var(--ss-text-light);
	cursor: pointer;
	transition: background-color .35s var(--ss-ease), color .35s var(--ss-ease), border-color .35s var(--ss-ease);
}

.ss-hero__btn:hover,
.ss-hero__btn:focus-visible {
	background: var(--ss-champagne);
	border-color: var(--ss-champagne);
	color: var(--ss-ink);
}

.ss-hero__play-icon,
.ss-hero.is-user-paused .ss-hero__pause-icon {
	display: none;
}

.ss-hero.is-user-paused .ss-hero__play-icon,
.ss-hero__pause-icon {
	display: inline-flex;
}

/* Scroll cue ---------------------------------------------------------------- */

.ss-hero__scroll {
	position: absolute;
	right: calc(var(--ss-gutter) * .5);
	top: 50%;
	z-index: 3;
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	font-size: .65rem;
	font-weight: 600;
	letter-spacing: .3em;
	text-transform: uppercase;
	text-decoration: none;
	color: rgba(244, 239, 230, .7);
	writing-mode: vertical-rl;
	transform: translateY(-50%);
}

.ss-hero__scroll-line {
	position: relative;
	width: 1px;
	height: 4.5rem;
	overflow: hidden;
	background: rgba(244, 239, 230, .25);
}

.ss-hero__scroll-line::after {
	content: "";
	position: absolute;
	left: 0;
	top: -100%;
	width: 1px;
	height: 100%;
	background: var(--ss-champagne);
	animation: ss-scroll-cue 2.4s var(--ss-ease-in-out) infinite;
}

@keyframes ss-scroll-cue {
	to {
		top: 100%;
	}
}

@media (min-width: 1100px) {
	.ss-hero__scroll {
		display: flex;
	}
}

@media (max-width: 767px) {
	.ss-hero__counter {
		display: none;
	}

	.ss-hero__btn {
		width: 2.9rem;
		height: 2.9rem;
	}

	.ss-slide__actions {
		margin-top: 2rem;
	}

	.ss-slide__text {
		margin-top: 1.4rem;
	}
}

@media (max-width: 480px) {
	.ss-slide__content {
		align-items: flex-end;
		padding-bottom: 6.75rem;
	}

	.ss-hero__dots {
		max-width: none;
	}
}

.ss-hero {
	touch-action: pan-y;
}
