/* ==========================================================================
   Hero: background slider + static copy.
   Values mirrored from the approved static build (.hero* rules).
   ========================================================================== */

.sb-hero {
	position: relative;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	overflow: hidden;
	isolation: isolate;
	/* reference closes the hero with a 12px .blade-edge div in flow; ours is a
	   pseudo-element, so reserve its height here */
	padding: 0 0 12px;
}

/* The hero sits at the very top of the content zone: no block-gap above it, and
   none on its children either — a margin on an absolutely positioned scrim or
   media layer would slide it out of registration with the section. */
.wp-site-blocks > main {
	margin-block-start: 0;
}

.sb-hero > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* ---------- background layer ---------- */

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

.sb-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--sb-duration, 1400ms) ease;
}

.sb-hero__slide.is-active {
	opacity: 1;
}

.sb-hero__media img {
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	object-fit: cover;
	/* §12.3: slight S-curve, warm the cool shop light so UHMW doesn't read grey */
	filter: contrast(1.04) saturate(0.95) brightness(1.09);
}

.sb-hero__slide:nth-child(1) img {
	object-position: 62% 46%;
	transform-origin: 66% 50%;
}

.sb-hero__slide:nth-child(2) img {
	object-position: 60% 48%;
	transform-origin: 64% 50%;
}

.sb-hero__slide:nth-child(3) img {
	object-position: 58% 58%;
	transform-origin: 60% 58%;
}

.sb-hero__media[data-kenburns="1"] .sb-hero__slide.is-active img {
	animation: sbKenburns 9s ease-out both;
}

@keyframes sbKenburns {
	from {
		transform: scale(1.06);
	}
	to {
		transform: scale(1);
	}
}

/* Two-part scrim: a tight protection ramp over the copy column (which ends ~50%),
   then a light overall tone, so the photography stays bright on the right. */
.sb-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
			96deg,
			rgba(10, 12, 16, 0.95) 0%,
			rgba(10, 12, 16, 0.92) 40%,
			rgba(10, 12, 16, 0.7) 52%,
			rgba(10, 12, 16, 0.18) 66%,
			rgba(10, 12, 16, 0) 80%
		),
		linear-gradient(96deg, rgba(10, 12, 16, 0.3) 0%, rgba(10, 12, 16, 0.08) 100%),
		linear-gradient(to top, rgba(10, 12, 16, 0.5) 0%, transparent 26%),
		linear-gradient(to bottom, rgba(10, 12, 16, 0.48) 0%, transparent 20%),
		linear-gradient(to top, rgba(12, 24, 48, 0.28) 0%, transparent 50%);
}

/* ---------- dots + dwell progress ---------- */

.sb-hero__dots {
	position: absolute;
	z-index: 6;
	left: 50%;
	transform: translateX(-50%);
	bottom: 46px;
	display: flex;
	gap: 10px;
}

.sb-hero__dots button {
	position: relative;
	width: 30px;
	height: 4px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.32);
	cursor: pointer;
	overflow: hidden;
	transition: background-color 200ms cubic-bezier(0.2, 0.7, 0.3, 1),
		width 200ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.sb-hero__dots button:hover {
	background: rgba(255, 255, 255, 0.6);
}

.sb-hero__dots button[aria-selected="true"] {
	width: 58px;
	background: rgba(255, 255, 255, 0.26);
}

.sb-hero__dots button::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 0;
	border-radius: 2px;
	background: var(--wp--preset--color--red);
}

.sb-hero__dots button[aria-selected="true"]::after {
	animation: sbDotProgress var(--sb-dwell, 7000ms) linear forwards;
}

.sb-hero__dots.is-paused button::after {
	animation-play-state: paused;
}

@keyframes sbDotProgress {
	from {
		width: 0;
	}
	to {
		width: 100%;
	}
}

/* 48px touch target without a 48px-tall visual dot */
.sb-hero__dots button::before {
	content: "";
	position: absolute;
	inset: -22px -7px;
	z-index: 2;
}

/* ---------- static copy ---------- */

.sb-hero__inner {
	position: relative;
	z-index: 4;
	width: 100%;
	max-width: var(--wp--style--global--content-size, 1440px);
	margin-inline: auto;
	padding-inline: clamp(20px, 4vw, 32px);
	padding-block: clamp(64px, 9vw, 132px);
}

.sb-hero__copy {
	max-width: 44rem;
}

.sb-hero h1 {
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.02;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--white);
	margin: 0;
}

.sb-hero h1 em {
	font-style: normal;
	color: var(--wp--preset--color--red-lt);
}

.sb-hero__tagline {
	margin: 26px 0 0;
	padding-top: 20px;
	border-top: 3px solid var(--wp--preset--color--red);
	display: block;
	max-width: 34ch;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--red-lt);
}

.sb-hero__lede {
	margin: 24px 0 0;
	font-size: var(--wp--preset--font-size--lede);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
	max-width: 52ch;
}

.sb-hero__actions {
	margin-top: 34px;
	gap: 14px;
}

.sb-hero__pills {
	margin-top: 30px;
	gap: 10px;
}

/* blade silhouette watermark, bottom-right */
.sb-hero__watermark {
	position: absolute;
	right: -8%;
	bottom: -14%;
	z-index: 2;
	width: min(760px, 78%);
	height: auto;
	color: #fff;
	opacity: 0.05;
	pointer-events: none;
}

/* bevelled blade edge closing the hero (pseudo-element: no Custom HTML block).
   Uses ::before because .grain owns ::after on the same element. */
.sb-hero::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	height: 12px;
	background: linear-gradient(
		to bottom,
		#b9bec6 0,
		#9298a1 34%,
		#5d646e 58%,
		#262b33 84%,
		var(--wp--preset--color--ink) 100%
	);
}

/* ---------- reduced motion: one static frame, no controls ---------- */

@media (prefers-reduced-motion: reduce) {
	.sb-hero__slide {
		transition: none;
	}

	.sb-hero__media[data-kenburns="1"] .sb-hero__slide.is-active img {
		animation: none;
		transform: none;
	}

	.sb-hero__dots {
		display: none;
	}
}

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