/* Hero slider -------------------------------------------------------------- */

.sb-hero {
	--sb-duration: 7000ms;
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 640px;
	max-height: 1120px;
	overflow: hidden;
	background: var(--sb-deep);
	color: #fff;
}

.sb-hero--tall {
	height: 86vh;
	height: 86svh;
}

.sb-hero--medium {
	height: 72vh;
	height: 72svh;
	min-height: 560px;
}

.sb-hero__track {
	position: absolute;
	inset: 0;
	touch-action: pan-y;
}

.sb-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.5s var(--sb-ease), visibility 1.5s;
}

.sb-hero__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
}

.sb-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.sb-hero__media .sb-ph {
	background: var(--sb-grad-rose);
	color: rgba(255, 249, 245, 0.18);
}

.sb-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--sb-focus-x, 50%) 50%;
	transform: scale(1.04);
}

.sb-hero__slide.is-active .sb-hero__img {
	animation: sb-kenburns 10s var(--sb-ease-out) both;
}

@keyframes sb-kenburns {
	from {
		transform: scale(1.14);
	}
	to {
		transform: scale(1.02);
	}
}

/* Overlays */

.sb-hero__overlay {
	position: absolute;
	inset: 0;
	opacity: min(1, calc(var(--sb-overlay, 0.45) * 1.7));
	background:
		linear-gradient(90deg, rgba(36, 25, 29, 0.9) 0%, rgba(36, 25, 29, 0.55) 42%, rgba(36, 25, 29, 0.12) 78%),
		linear-gradient(0deg, rgba(36, 25, 29, 0.55) 0%, transparent 38%);
}

.sb-hero__slide--right .sb-hero__overlay {
	background:
		linear-gradient(270deg, rgba(36, 25, 29, 0.9) 0%, rgba(36, 25, 29, 0.55) 42%, rgba(36, 25, 29, 0.12) 78%),
		linear-gradient(0deg, rgba(36, 25, 29, 0.55) 0%, transparent 38%);
}

.sb-hero__slide--center .sb-hero__overlay {
	background:
		radial-gradient(70% 70% at 50% 55%, rgba(36, 25, 29, 0.75) 0%, rgba(36, 25, 29, 0.35) 70%, rgba(36, 25, 29, 0.25) 100%),
		linear-gradient(0deg, rgba(36, 25, 29, 0.6) 0%, transparent 40%);
}

.sb-hero__slide--dark .sb-hero__overlay {
	background: linear-gradient(90deg, rgba(255, 249, 245, 0.96) 0%, rgba(255, 249, 245, 0.7) 45%, rgba(255, 249, 245, 0.1) 80%);
}

.sb-hero__slide--dark.sb-hero__slide--right .sb-hero__overlay {
	background: linear-gradient(270deg, rgba(255, 249, 245, 0.96) 0%, rgba(255, 249, 245, 0.7) 45%, rgba(255, 249, 245, 0.1) 80%);
}

.sb-hero__slide--dark.sb-hero__slide--center .sb-hero__overlay {
	background: radial-gradient(70% 70% at 50% 55%, rgba(255, 249, 245, 0.92), rgba(255, 249, 245, 0.45));
}

/* Content */

.sb-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	height: 100%;
	padding-top: var(--sb-header-h);
	padding-bottom: 120px;
}

.sb-hero__inner {
	max-width: 720px;
}

.sb-hero__slide--center .sb-hero__content {
	justify-content: center;
	text-align: center;
}

.sb-hero__slide--center .sb-hero__inner {
	max-width: 880px;
}

.sb-hero__slide--right .sb-hero__content {
	justify-content: flex-end;
	text-align: right;
}

.sb-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 26px;
	color: #F2D9B8;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.38em;
	text-transform: uppercase;
}

.sb-hero__eyebrow::before {
	content: "";
	width: 48px;
	height: 1px;
	background: linear-gradient(90deg, transparent, #F2D9B8);
}

.sb-hero__slide--center .sb-hero__eyebrow::after {
	content: "";
	width: 48px;
	height: 1px;
	background: linear-gradient(90deg, #F2D9B8, transparent);
}

.sb-hero__slide--right .sb-hero__eyebrow {
	flex-direction: row-reverse;
}

.sb-hero__title {
	color: #fff;
	font-size: clamp(3rem, 1.4rem + 5.8vw, 6.8rem);
	font-weight: 300;
	line-height: 0.98;
	letter-spacing: -0.015em;
}

.sb-hero__title .sb-script {
	color: #F7CDD5;
	font-size: 1.22em;
}

.sb-hero__text {
	max-width: 560px;
	margin-top: 28px;
	color: rgba(255, 255, 255, 0.86);
	font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
	line-height: 1.7;
}

.sb-hero__slide--center .sb-hero__text {
	margin-inline: auto;
}

.sb-hero__slide--right .sb-hero__text {
	margin-left: auto;
}

.sb-hero__actions {
	margin-top: 40px;
}

.sb-hero__slide--center .sb-hero__actions {
	justify-content: center;
}

.sb-hero__slide--right .sb-hero__actions {
	justify-content: flex-end;
}

/* Dark text variant */

.sb-hero__slide--dark {
	color: var(--sb-text);
}

.sb-hero__slide--dark .sb-hero__title {
	color: var(--sb-text);
}

.sb-hero__slide--dark .sb-hero__title .sb-script {
	color: var(--sb-rose);
}

.sb-hero__slide--dark .sb-hero__text {
	color: var(--sb-muted);
}

.sb-hero__slide--dark .sb-hero__eyebrow {
	color: var(--sb-ink);
}

/* Staggered entrance */

.sb-hero__slide.is-active .sb-hero__inner > * {
	animation: sb-hero-rise 1.2s var(--sb-ease-out) both;
}

.sb-hero__slide.is-active .sb-hero__inner > :nth-child(1) { animation-delay: 0.25s; }
.sb-hero__slide.is-active .sb-hero__inner > :nth-child(2) { animation-delay: 0.4s; }
.sb-hero__slide.is-active .sb-hero__inner > :nth-child(3) { animation-delay: 0.55s; }
.sb-hero__slide.is-active .sb-hero__inner > :nth-child(4) { animation-delay: 0.7s; }

@keyframes sb-hero-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 30px, 0);
	}
}

/* Controls */

.sb-hero__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: clamp(24px, 4vw, 46px);
	z-index: 3;
}

.sb-hero__controls-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.sb-hero__dots {
	display: flex;
	align-items: center;
	gap: 22px;
}

.sb-hero__dot {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.6);
	font-family: var(--sb-font-serif);
	font-size: 1.15rem;
	font-style: italic;
	transition: color 0.4s var(--sb-ease);
}

.sb-hero__dot:hover,
.sb-hero__dot.is-active {
	color: #fff;
}

.sb-hero__dot-bar {
	position: relative;
	width: 28px;
	height: 1px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.35);
	transition: width 0.5s var(--sb-ease);
}

.sb-hero__dot.is-active .sb-hero__dot-bar {
	width: 64px;
}

.sb-hero__dot-bar span {
	position: absolute;
	inset: 0;
	background: #fff;
	transform: scaleX(0);
	transform-origin: left center;
}

.sb-hero__dot.is-active .sb-hero__dot-bar span {
	transform: scaleX(1);
}

.sb-hero.is-playing .sb-hero__dot.is-active .sb-hero__dot-bar span {
	animation: sb-progress var(--sb-duration) linear both;
}

@keyframes sb-progress {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

.sb-hero__nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sb-hero__btn {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: all 0.35s var(--sb-ease);
}

.sb-hero__btn:hover,
.sb-hero__btn:focus-visible {
	border-color: #fff;
	background: #fff;
	color: var(--sb-text);
}

.sb-hero__pause {
	width: 44px;
	height: 44px;
}

.sb-hero__play-icon {
	display: none;
}

.sb-hero.is-user-paused .sb-hero__pause-icon {
	display: none;
}

.sb-hero.is-user-paused .sb-hero__play-icon {
	display: block;
}

.sb-hero__pause-icon,
.sb-hero__play-icon {
	line-height: 0;
}

/* Controls over a light (dark-text) slide */

.sb-hero.is-tone-dark .sb-hero__dot {
	color: rgba(61, 48, 52, 0.55);
}

.sb-hero.is-tone-dark .sb-hero__dot.is-active {
	color: var(--sb-text);
}

.sb-hero.is-tone-dark .sb-hero__dot-bar {
	background: rgba(61, 48, 52, 0.25);
}

.sb-hero.is-tone-dark .sb-hero__dot-bar span {
	background: var(--sb-text);
}

.sb-hero.is-tone-dark .sb-hero__btn,
.sb-hero.is-tone-dark .sb-hero__scroll {
	border-color: rgba(61, 48, 52, 0.35);
	color: var(--sb-text);
}

/* Scroll cue */

.sb-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: clamp(24px, 4vw, 46px);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.66rem;
	letter-spacing: 0.3em;
	text-decoration: none;
	text-transform: uppercase;
	transform: translateX(-50%);
}

.sb-hero__scroll:hover {
	color: #fff;
}

.sb-hero__scroll-line {
	position: relative;
	width: 1px;
	height: 46px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.3);
}

.sb-hero__scroll-line::after {
	content: "";
	position: absolute;
	left: 0;
	top: -50%;
	width: 1px;
	height: 50%;
	background: #fff;
	animation: sb-scroll-cue 2.2s var(--sb-ease) infinite;
}

@keyframes sb-scroll-cue {
	to {
		top: 110%;
	}
}

/* Responsive */

@media (max-width: 1023px) {
	.sb-hero__scroll {
		display: none;
	}
}

@media (max-width: 767px) {
	.sb-hero {
		min-height: 620px;
	}

	.sb-hero__content {
		align-items: flex-end;
		padding-bottom: 128px;
	}

	.sb-hero__slide--right .sb-hero__content {
		justify-content: flex-start;
		text-align: left;
	}

	.sb-hero__slide--right .sb-hero__eyebrow {
		flex-direction: row;
	}

	.sb-hero__slide--right .sb-hero__text {
		margin-left: 0;
	}

	.sb-hero__slide--right .sb-hero__actions {
		justify-content: flex-start;
	}

	.sb-hero__slide--light .sb-hero__overlay,
	.sb-hero__slide--light.sb-hero__slide--right .sb-hero__overlay,
	.sb-hero__slide--light.sb-hero__slide--center .sb-hero__overlay {
		opacity: min(1, calc(var(--sb-overlay, 0.45) * 1.9));
		background: linear-gradient(0deg, rgba(36, 25, 29, 0.92) 0%, rgba(36, 25, 29, 0.6) 48%, rgba(36, 25, 29, 0.3) 100%);
	}

	.sb-hero__slide--dark .sb-hero__overlay,
	.sb-hero__slide--dark.sb-hero__slide--right .sb-hero__overlay,
	.sb-hero__slide--dark.sb-hero__slide--center .sb-hero__overlay {
		background: linear-gradient(0deg, rgba(255, 249, 245, 0.97) 0%, rgba(255, 249, 245, 0.7) 55%, rgba(255, 249, 245, 0.25) 100%);
	}

	.sb-hero__eyebrow {
		margin-bottom: 18px;
		font-size: 0.68rem;
		letter-spacing: 0.3em;
	}

	.sb-hero__eyebrow::before,
	.sb-hero__eyebrow::after {
		width: 28px !important;
	}

	.sb-hero__title {
		font-size: clamp(2.5rem, 9.5vw, 3.6rem);
	}

	.sb-hero__text {
		margin-top: 18px;
		font-size: 1rem;
	}

	.sb-hero__actions {
		margin-top: 28px;
	}

	.sb-hero__dots {
		gap: 14px;
	}

	.sb-hero__dot {
		font-size: 1rem;
	}

	.sb-hero__dot-bar {
		width: 16px;
	}

	.sb-hero__dot.is-active .sb-hero__dot-bar {
		width: 36px;
	}

	.sb-hero__btn {
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 379px) {
	.sb-hero__dot-num {
		display: none;
	}
}
