/*
 * Hero slider.
 * Loaded after global-colors.css, which forces link, heading, paragraph and button
 * colors with !important, so the slider's own text and button colors do the same
 * with higher specificity.
 */
.sc-hero-wrap {
	padding-top: clamp(.75rem, 2vw, 1.5rem);
}

.sc-hero {
	--sc-hero-radius: clamp(1rem, 2.4vw, 1.5rem);
	--sc-hero-pad: clamp(1.25rem, 5vw, 4rem);
	--sc-hero-min: 26rem;
	--sc-hero-alpha: .55;
	position: relative;
	overflow: hidden;
	border-radius: var(--sc-hero-radius);
	background: color-mix(in srgb, var(--sc-color-accent) 22%, #14111b);
	box-shadow: 0 1rem 2.5rem rgba(20, 17, 27, .12);
	isolation: isolate;
}

.sc-hero--inline {
	margin-block: 1.5rem;
}

.sc-hero [hidden] {
	display: none !important;
}

.sc-hero--compact { --sc-hero-min: 20rem; }
.sc-hero--standard { --sc-hero-min: 26rem; }
.sc-hero--tall { --sc-hero-min: 32rem; }
.sc-hero--overlay-light { --sc-hero-alpha: .35; }
.sc-hero--overlay-medium { --sc-hero-alpha: .55; }
.sc-hero--overlay-strong { --sc-hero-alpha: .75; }

/* Track: native scroll-snap, so swiping works with no JavaScript. */
.sc-hero__track {
	display: flex;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.sc-hero__track::-webkit-scrollbar {
	display: none;
}

.sc-hero__slide {
	--sc-hero-fg: #fff;
	--sc-hero-fg-soft: rgba(255, 255, 255, .88);
	--sc-hero-scrim: 14, 11, 24;
	position: relative;
	display: grid;
	flex: 0 0 100%;
	min-width: 0;
	min-height: calc(var(--sc-hero-min) + 3rem);
	align-content: end;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	color: var(--sc-hero-fg);
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--sc-color-accent) 88%, #000) 0%, color-mix(in srgb, var(--sc-color-accent) 52%, #140f24) 100%);
}

.sc-hero__slide[data-tone="dark"] {
	--sc-hero-fg: #14111b;
	--sc-hero-fg-soft: rgba(20, 17, 27, .82);
	--sc-hero-scrim: 255, 255, 255;
}

.sc-hero__slide.no-image[data-tone="dark"] {
	background: linear-gradient(135deg, color-mix(in srgb, var(--sc-color-accent) 12%, var(--sc-color-surface)) 0%, color-mix(in srgb, var(--sc-color-accent) 26%, var(--sc-color-surface)) 100%);
}

.sc-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.sc-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Scrim keeps text legible on any photo. It runs from the text edge on wide screens and from the bottom on phones. */
.sc-hero__slide.has-image::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(var(--sc-hero-scrim), var(--sc-hero-alpha)) 0%, rgba(var(--sc-hero-scrim), calc(var(--sc-hero-alpha) * .72)) 55%, rgba(var(--sc-hero-scrim), calc(var(--sc-hero-alpha) * .2)) 100%);
	content: "";
	pointer-events: none;
}

.sc-hero__content {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 1.1rem;
	justify-items: start;
	max-width: 40rem;
	padding: var(--sc-hero-pad);
	padding-block-end: calc(var(--sc-hero-pad) + 2.75rem);
}

.sc-hero .sc-hero__title {
	max-width: 22ch;
	margin: 0;
	color: var(--sc-hero-fg) !important;
	font-size: clamp(1.9rem, 5.2vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: 1.04;
	text-wrap: balance;
}

.sc-hero .sc-hero__text {
	max-width: 46ch;
	margin: 0;
	color: var(--sc-hero-fg-soft) !important;
	font-size: clamp(1rem, 1.6vw, 1.175rem);
	line-height: 1.6;
	text-wrap: pretty;
}

.sc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: .5rem;
}

.sc-hero a.sc-hero__btn {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: .75rem 1.5rem;
	border: 2px solid transparent;
	border-radius: var(--sc-radius-control, .625rem);
	font-size: 1rem;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.sc-hero a.sc-hero__btn--primary {
	border-color: var(--sc-color-button-background, var(--sc-color-accent));
	background: var(--sc-color-button-background, var(--sc-color-accent));
	color: var(--sc-color-button-text, #fff) !important;
	box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .22);
}

.sc-hero a.sc-hero__btn--primary:hover,
.sc-hero a.sc-hero__btn--primary:focus-visible {
	border-color: var(--sc-color-button-hover-background, var(--sc-color-accent));
	background: var(--sc-color-button-hover-background, var(--sc-color-accent));
	color: var(--sc-color-button-hover-text, #fff) !important;
	transform: translateY(-2px);
}

.sc-hero a.sc-hero__btn--secondary {
	border-color: currentColor;
	background: rgba(var(--sc-hero-scrim), .14);
	color: var(--sc-hero-fg) !important;
	backdrop-filter: blur(6px);
}

.sc-hero a.sc-hero__btn--secondary:hover,
.sc-hero a.sc-hero__btn--secondary:focus-visible {
	background: var(--sc-hero-fg);
	color: rgb(var(--sc-hero-scrim)) !important;
	transform: translateY(-2px);
}

.sc-hero a.sc-hero__btn:focus-visible {
	outline: 3px solid var(--sc-hero-fg);
	outline-offset: 3px;
}

/* Controls sit on a dark chip so they stay legible on any slide. */
.sc-hero__controls {
	position: absolute;
	z-index: 4;
	inset-block-end: clamp(.75rem, 2vw, 1.25rem);
	inset-inline-start: var(--sc-hero-pad);
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	padding: .2rem .5rem .2rem .25rem;
	border-radius: 999px;
	background: rgba(20, 17, 27, .62);
	backdrop-filter: blur(8px);
}

.sc-hero--align-center .sc-hero__controls {
	inset-inline-start: 50%;
	transform: translateX(-50%);
}

.sc-hero:dir(rtl).sc-hero--align-center .sc-hero__controls {
	transform: translateX(50%);
}

.sc-hero__dots {
	display: flex;
	align-items: center;
}

.sc-hero button.sc-hero__dot,
.sc-hero button.sc-hero__pause,
.sc-hero button.sc-hero__nav {
	display: grid;
	place-items: center;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	color: #fff !important;
	box-shadow: none !important;
	cursor: pointer;
}

.sc-hero button.sc-hero__dot {
	width: 1.75rem;
	min-width: 0;
	height: 1.75rem;
	min-height: 0;
	border-radius: 999px;
}

.sc-hero button.sc-hero__dot::before {
	width: .5rem;
	height: .5rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .55);
	content: "";
	transition: width .25s ease, background-color .25s ease;
}

.sc-hero button.sc-hero__dot[aria-current="true"]::before {
	width: 1.4rem;
	background: #fff;
}

.sc-hero button.sc-hero__dot:hover::before {
	background: #fff;
}

.sc-hero button.sc-hero__pause {
	width: 1.75rem;
	min-width: 0;
	height: 1.75rem;
	min-height: 0;
	border-radius: 999px;
	font-size: .7rem;
}

.sc-hero button.sc-hero__pause:hover,
.sc-hero button.sc-hero__nav:hover {
	background: rgba(255, 255, 255, .22) !important;
}

.sc-hero button.sc-hero__dot:focus-visible,
.sc-hero button.sc-hero__pause:focus-visible,
.sc-hero button.sc-hero__nav:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 1px;
}

/* Arrows: pointer devices only; touch users swipe. */
.sc-hero button.sc-hero__nav {
	position: absolute;
	z-index: 4;
	top: 50%;
	width: 3rem;
	min-width: 0;
	height: 3rem;
	min-height: 0;
	border-radius: 50%;
	background: rgba(20, 17, 27, .5) !important;
	backdrop-filter: blur(8px);
	font-size: 1rem;
	transform: translateY(-50%);
	transition: background-color .16s ease, opacity .16s ease;
}

.sc-hero button.sc-hero__nav:hover {
	background: rgba(20, 17, 27, .75) !important;
}

.sc-hero__nav--prev { inset-inline-start: 1rem; }
.sc-hero__nav--next { inset-inline-end: 1rem; }

.sc-hero:dir(rtl) .sc-hero__nav i {
	transform: scaleX(-1);
}

@media (hover: none), (max-width: 47.99rem) {
	.sc-hero button.sc-hero__nav {
		display: none;
	}
}

/* Wide screens: text sits beside the subject, scrim runs from the text edge. */
@media (min-width: 48rem) {
	.sc-hero__slide {
		min-height: var(--sc-hero-min);
		align-content: center;
	}

	.sc-hero__slide.has-image::after {
		background: linear-gradient(to right, rgba(var(--sc-hero-scrim), var(--sc-hero-alpha)) 0%, rgba(var(--sc-hero-scrim), calc(var(--sc-hero-alpha) * .72)) 38%, rgba(var(--sc-hero-scrim), 0) 78%);
	}

	.sc-hero:dir(rtl) .sc-hero__slide.has-image::after {
		background: linear-gradient(to left, rgba(var(--sc-hero-scrim), var(--sc-hero-alpha)) 0%, rgba(var(--sc-hero-scrim), calc(var(--sc-hero-alpha) * .72)) 38%, rgba(var(--sc-hero-scrim), 0) 78%);
	}

	.sc-hero--tall .sc-hero__slide {
		min-height: 36rem;
	}

	.sc-hero--compact .sc-hero__slide {
		min-height: 22rem;
	}

	.sc-hero--standard .sc-hero__slide {
		min-height: clamp(26rem, 38vw, 31rem);
	}
}

/* Centered layout. */
.sc-hero--align-center .sc-hero__content {
	justify-items: center;
	margin-inline: auto;
	text-align: center;
}

.sc-hero--align-center .sc-hero__title,
.sc-hero--align-center .sc-hero__text {
	margin-inline: auto;
}

.sc-hero--align-center .sc-hero__actions {
	justify-content: center;
}

@media (min-width: 48rem) {
	.sc-hero--align-center .sc-hero__slide.has-image::after,
	.sc-hero--align-center:dir(rtl) .sc-hero__slide.has-image::after {
		background: rgba(var(--sc-hero-scrim), calc(var(--sc-hero-alpha) * .8));
	}
}

/* Enhanced: one calm reveal when a slide becomes active. */
.sc-hero.is-enhanced .sc-hero__slide:not(.is-active) .sc-hero__content {
	opacity: 0;
	transform: translateY(.9rem);
}

.sc-hero.is-enhanced .sc-hero__slide .sc-hero__content {
	transition: opacity .55s ease .12s, transform .55s cubic-bezier(.2, .75, .25, 1) .12s;
}

@media (prefers-reduced-motion: reduce) {
	.sc-hero.is-enhanced .sc-hero__slide:not(.is-active) .sc-hero__content {
		opacity: 1;
		transform: none;
	}

	.sc-hero.is-enhanced .sc-hero__slide .sc-hero__content,
	.sc-hero button.sc-hero__dot::before,
	.sc-hero a.sc-hero__btn {
		transition: none;
	}
}

@media (max-width: 29.99rem) {
	.sc-hero__actions {
		width: 100%;
	}

	.sc-hero a.sc-hero__btn {
		flex: 1 1 auto;
	}
}
