.sfc-section-hero {
	--sfc-hero-mask-color: rgba(17, 17, 17, .78);
	--sfc-hero-text-color: #fff;
	position: relative;
	height: clamp(480px, 68svh, 760px);
	min-height: 480px;
	padding: 0;
	overflow: hidden;
	background: #111;
}

.sfc-hero-slider,
.sfc-hero-slides,
.sfc-hero-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.sfc-hero-slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}

.sfc-hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity 1.2s ease;
}

.sfc-hero-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
}

.sfc-hero-mask {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: clamp(420px, 54vw, 900px);
	z-index: 1;
	background: var(--sfc-hero-mask-color);
	clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.sfc-hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	height: 100%;
	min-height: 0;
	color: var(--sfc-hero-text-color);
}

.sfc-hero-copy {
	/* Keep the complete text block inside the usable part of the trapezoid mask. */
	width: min(500px, 38vw);
	max-width: 100%;
	padding: 60px 0;
	box-sizing: border-box;
	text-align: left;
	overflow-wrap: break-word;
}

.sfc-hero-title {
	margin: 0;
	font-size: clamp(28px, 4vw, 56px);
	font-weight: 700;
	line-height: 1.08;
	text-wrap: balance;
}

.sfc-hero-description {
	margin-top: 18px;
	font-size: clamp(16px, 1.55vw, 22px);
	font-weight: 400;
	line-height: 1.5;
	text-wrap: balance;
}

.sfc-hero-title p,
.sfc-hero-description p { margin: 0 0 .75em; }
.sfc-hero-title p:last-child,
.sfc-hero-description p:last-child { margin-bottom: 0; }

.sfc-hero-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 28px;
	padding: 12px 26px;
	border: 2px solid transparent;
	border-radius: 2px;
	background: var(--sfc-button-bg);
	color: var(--sfc-button-text);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.sfc-hero-button:hover,
.sfc-hero-button:focus-visible { background: var(--sfc-button-hover-bg); color: var(--sfc-button-hover-text); border-color: var(--sfc-button-hover-bg); }
.sfc-hero-button:hover { transform: translateY(-1px); }

.sfc-hero-controls { position: absolute; right: 24px; bottom: 24px; z-index: 3; display: flex; gap: 8px; }
.sfc-hero-control { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(0,0,0,.28); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; backdrop-filter: blur(3px); }
.sfc-hero-control:hover,
.sfc-hero-control:focus-visible { background: rgba(0,0,0,.55); }
.sfc-hero-control:focus-visible,
.sfc-hero-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 1100px) {
	.sfc-section-hero { height: clamp(460px, 62svh, 680px); min-height: 460px; }
	.sfc-hero-mask { width: 72vw; clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
	.sfc-hero-copy { width: min(500px, 56vw); padding: 52px 0; }
	.sfc-hero-title { font-size: clamp(30px, 5vw, 48px); }
	.sfc-hero-description { font-size: clamp(15px, 2vw, 20px); }
}

@media (max-width: 900px) {
	.sfc-section-hero { height: clamp(440px, 60svh, 620px); min-height: 440px; }
	.sfc-hero-mask { width: 82vw; clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
	.sfc-hero-copy { width: min(520px, 58vw); max-width: 100%; padding: 44px 0; }
	.sfc-hero-title { font-size: clamp(28px, 5.8vw, 44px); }
	.sfc-hero-description { font-size: clamp(15px, 2.6vw, 19px); }
}

@media (max-width: 600px) {
	.sfc-section-hero { height: clamp(420px, 68svh, 560px); min-height: 420px; }
	.sfc-hero-image { object-position: 50% center; }
	.sfc-hero-mask { width: 94vw; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
	.sfc-hero-copy { width: 78vw; max-width: none; padding: 36px 0 72px; }
	.sfc-hero-title { font-size: clamp(26px, 8vw, 38px); }
	.sfc-hero-description { font-size: clamp(15px, 4vw, 18px); margin-top: 14px; }
	.sfc-hero-controls { right: 16px; bottom: 16px; }
}

@media (max-width: 380px) {
	.sfc-section-hero { height: 460px; min-height: 460px; }
	.sfc-hero-mask { width: 96vw; }
	.sfc-hero-copy { width: 82vw; }
}

@media (prefers-reduced-motion: reduce) {
	.sfc-hero-slide, .sfc-hero-slide.is-active, .sfc-hero-button { transition: none; }
}
