:root {
	--vhs-ink: #101113;
	--vhs-paper: #f3f0e9;
	--vhs-signal: #c93b31;
	--vhs-rule: rgba(243, 240, 233, 0.38);
}

.vhs-slider {
	position: relative;
	max-width: 1400px;
	margin: 0 auto 4.5rem;
	color: var(--vhs-paper);
	background: var(--vhs-ink);
	overflow: hidden;
	isolation: isolate;
}

.vhs-slider__track {
	position: relative;
	min-height: clamp(500px, 59vw, 780px);
}

.vhs-slide,
.vhs-slide__media,
.vhs-slide__media img,
.vhs-slide__fallback,
.vhs-slide__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.vhs-slide {
	opacity: 0;
	pointer-events: none;
	transform: scale(1.025);
	transition: opacity 500ms ease, transform 1000ms cubic-bezier(.2, .65, .2, 1);
}

.vhs-slide.is-active {
	z-index: 1;
	opacity: 1;
	pointer-events: auto;
	transform: scale(1);
}

.vhs-slide__media img {
	object-fit: cover;
	object-position: center;
	filter: saturate(.82) contrast(1.06);
}

.vhs-slide__fallback {
	background:
		radial-gradient(circle at 78% 18%, rgba(201, 59, 49, .32), transparent 25%),
		linear-gradient(135deg, #292b2d 0%, #101113 66%);
}

.vhs-slide__overlay {
	background:
		linear-gradient(90deg, rgba(10, 11, 12, .92) 0%, rgba(10, 11, 12, .63) 39%, rgba(10, 11, 12, .12) 72%, rgba(10, 11, 12, .27) 100%),
		linear-gradient(0deg, rgba(10, 11, 12, .48), transparent 52%);
}

.vhs-slide__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	min-height: clamp(500px, 59vw, 780px);
	width: min(91%, 760px);
	padding: clamp(2rem, 5vw, 5rem);
}

.vhs-slide__meta {
	display: flex;
	align-items: center;
	gap: .9rem;
	margin-bottom: 1.3rem;
	font-family: Arial, sans-serif;
	font-size: .71rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.vhs-slide__eyebrow,
.vhs-slide__date {
	margin: 0;
}

.vhs-slide__eyebrow {
	padding: .52rem .7rem;
	background: var(--vhs-signal);
	color: #fff;
}

.vhs-slide__date {
	color: rgba(243, 240, 233, .74);
}

.vhs-slide__title {
	max-width: 12ch;
	margin: 0;
	color: #fff !important;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(3rem, 6vw, 6.5rem);
	font-weight: 700;
	line-height: .88;
	letter-spacing: -.055em;
	text-wrap: balance;
}

.vhs-slide__excerpt {
	max-width: 54ch;
	margin: 1.5rem 0 0;
	font-family: Arial, sans-serif;
	font-size: clamp(.94rem, 1.25vw, 1.1rem);
	line-height: 1.65;
	color: rgba(243, 240, 233, .86);
}

.vhs-slide__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 2rem;
	padding: .95rem 1.4rem;
	border: 1px solid var(--vhs-paper);
	border-radius: 0;
	background: var(--vhs-paper);
	color: var(--vhs-ink);
	font-family: Arial, sans-serif;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .15em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.vhs-slide__button:hover,
.vhs-slide__button:focus-visible {
	background: transparent;
	color: var(--vhs-paper);
	transform: translateY(-2px);
}

.vhs-slider__controls {
	position: absolute;
	right: clamp(1.5rem, 4vw, 4rem);
	bottom: clamp(1.5rem, 4vw, 3.5rem);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.vhs-slider__arrow {
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 1px solid var(--vhs-rule);
	border-radius: 0;
	background: transparent;
	color: var(--vhs-paper);
	cursor: pointer;
	font-size: 1.2rem;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.vhs-slider__arrow:hover,
.vhs-slider__arrow:focus-visible {
	border-color: var(--vhs-paper);
	background: rgba(243, 240, 233, .13);
}

.vhs-slider__dots {
	display: flex;
	gap: .45rem;
	padding: 0 .2rem;
}

.vhs-slider__dot {
	width: 2rem;
	height: 2px;
	padding: 0;
	border: 0;
	background: rgba(243, 240, 233, .38);
	cursor: pointer;
	transition: background-color 180ms ease, transform 180ms ease;
}

.vhs-slider__dot.is-active {
	background: var(--vhs-signal);
	transform: scaleY(1.6);
}

@media (max-width: 760px) {
	.vhs-slider { margin-bottom: 3rem; }
	.vhs-slider__track,
	.vhs-slide__content { min-height: 580px; }
	.vhs-slide__overlay {
		background: linear-gradient(0deg, rgba(10, 11, 12, .93) 0%, rgba(10, 11, 12, .54) 58%, rgba(10, 11, 12, .16) 100%);
	}
	.vhs-slide__content { width: 100%; padding: 1.6rem 1.35rem 7rem; }
	.vhs-slide__title { max-width: 10ch; font-size: clamp(2.8rem, 13vw, 4.4rem); }
	.vhs-slide__excerpt { margin-top: 1rem; }
	.vhs-slide__date { display: none; }
	.vhs-slider__controls { right: 1.35rem; bottom: 1.5rem; left: 1.35rem; justify-content: space-between; }
	.vhs-slider__dots { flex: 1; justify-content: center; }
	.vhs-slider__dot { max-width: 2.5rem; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.vhs-slide,
	.vhs-slide__button,
	.vhs-slider__arrow,
	.vhs-slider__dot { transition: none; }
}
