/* ==========================================================================
   pruoc/hero-slider — loaded only on pages that contain the block.
   ========================================================================== */
.pruoc-hero {
	--hero-h: clamp(460px, 76vh, 780px);
	--hero-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--hero-wrap: min(1240px, 100% - 2 * clamp(1rem, 4vw, 2rem));
	position: relative;
	display: grid;
	min-height: var(--hero-h);
	overflow: hidden;
	background: #1a1a1a;
	color: #fff;
	isolation: isolate;
}
.pruoc-hero[data-height="sm"] { --hero-h: clamp(300px, 42vh, 440px); }
.pruoc-hero[data-height="md"] { --hero-h: clamp(380px, 58vh, 600px); }
.pruoc-hero[data-height="screen"] { --hero-h: calc(100svh - 140px); }

/* --- Slides: stacked, crossfading ------------------------------------------ */
.pruoc-hero__media { position: absolute; inset: 0; z-index: 0; touch-action: pan-y; }
.pruoc-hero__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}
.pruoc-hero__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 1.2s ease, visibility 0s;
}
.pruoc-hero__slide a { display: block; height: 100%; }
.pruoc-hero__slide img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transform: scale(1.02);
	transform-origin: 60% 40%;
}
/* Slow push-in while a slide is on screen. */
.pruoc-hero__slide.is-active img { animation: pruoc-hero-kb calc(var(--hero-interval, 7000ms) + 1500ms) linear both; }
@keyframes pruoc-hero-kb { from { transform: scale(1.02); } to { transform: scale(1.09); } }
.pruoc-hero.is-paused .pruoc-hero__slide.is-active img { animation-play-state: paused; }

.pruoc-hero__slide figcaption {
	position: absolute;
	z-index: 2;
	right: max(1rem, (100% - 1240px) / 2);
	top: 1rem;
	max-width: min(52ch, 60%);
	padding: .3rem .7rem;
	border-radius: 999px;
	background: rgba(15, 15, 15, .5);
	font-size: .8125rem;
	backdrop-filter: blur(6px);
}

/* --- Scrim: legible copy on any photo --------------------------------------- */
.pruoc-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(10, 10, 10, .35) 0%, rgba(10, 10, 10, 0) 22%),
		linear-gradient(0deg, rgba(10, 10, 10, .75) 0%, rgba(10, 10, 10, .2) 38%, rgba(10, 10, 10, 0) 60%);
}
.pruoc-hero.has-copy .pruoc-hero__scrim {
	background:
		linear-gradient(90deg, rgba(20, 4, 4, .82) 0%, rgba(20, 4, 4, .55) 38%, rgba(20, 4, 4, 0) 72%),
		linear-gradient(0deg, rgba(10, 10, 10, .7) 0%, rgba(10, 10, 10, 0) 35%);
}

/* --- Copy -------------------------------------------------------------------- */
.pruoc-hero__inner { width: var(--hero-wrap); margin-inline: auto; }
.pruoc-hero__content {
	position: relative;
	z-index: 2;
	align-self: center;
	padding-block: clamp(3rem, 8vw, 6rem) clamp(6rem, 12vw, 8rem);
}
.pruoc-hero__content .pruoc-hero__inner > * { max-width: 40rem; }
.pruoc-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	margin: 0 0 1.1rem;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .85);
}
.pruoc-hero__eyebrow::before { content: ""; width: 2.25rem; height: 2px; background: #fff; opacity: .9; }
.pruoc-hero .pruoc-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(2.4rem, 5.2vw, 4.5rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.pruoc-hero__text {
	margin: 1.25rem 0 0;
	color: rgba(255, 255, 255, .88);
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	line-height: 1.6;
}
.pruoc-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Copy entrance */
.pruoc-hero__content .pruoc-hero__inner > * { animation: pruoc-hero-in .9s var(--hero-ease) both; }
.pruoc-hero__content .pruoc-hero__inner > :nth-child(2) { animation-delay: .08s; }
.pruoc-hero__content .pruoc-hero__inner > :nth-child(3) { animation-delay: .16s; }
.pruoc-hero__content .pruoc-hero__inner > :nth-child(4) { animation-delay: .24s; }
@keyframes pruoc-hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --- Control bar ---------------------------------------------------------------- */
.pruoc-hero__bar {
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	bottom: 0;
	padding-block: 1.25rem 1.5rem;
}
.pruoc-hero__bar-inner { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); }
.pruoc-hero__count {
	margin: 0;
	font-size: .9rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	letter-spacing: .04em;
	color: rgba(255, 255, 255, .7);
}
.pruoc-hero__current { color: #fff; }
.pruoc-hero__sep { margin-inline: .35rem; opacity: .6; }

.pruoc-hero__progress { display: flex; flex: 1; gap: 6px; max-width: 520px; }
.pruoc-hero__seg {
	position: relative;
	flex: 1;
	height: 22px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.pruoc-hero__seg::before,
.pruoc-hero__seg span {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 3px;
	border-radius: 3px;
	transform: translateY(-50%);
}
.pruoc-hero__seg::before { background: rgba(255, 255, 255, .3); transition: background-color .2s; }
.pruoc-hero__seg:hover::before { background: rgba(255, 255, 255, .55); }
.pruoc-hero__seg span { right: auto; width: 0; background: #fff; }
.pruoc-hero__seg.is-done span { width: 100%; }
.pruoc-hero__seg[aria-selected="true"] span { width: 100%; }
.pruoc-hero[data-autoplay="true"] .pruoc-hero__seg[aria-selected="true"] span {
	width: auto;
	right: 100%;
	animation: pruoc-hero-progress var(--hero-interval, 7000ms) linear forwards;
}
@keyframes pruoc-hero-progress { to { right: 0; } }
.pruoc-hero.is-paused .pruoc-hero__seg[aria-selected="true"] span { animation-play-state: paused; }
.pruoc-hero__seg:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

.pruoc-hero__buttons { display: flex; gap: .4rem; margin-left: auto; }
.pruoc-hero__btn {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(8px);
	transition: background-color .2s, color .2s;
}
.pruoc-hero__btn:hover { background: #fff; color: #1f1f1f; }
.pruoc-hero__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pruoc-hero__btn svg { width: 1.15rem; height: 1.15rem; }
.pruoc-hero [data-icon="play"] { display: none; }
.pruoc-hero.is-paused [data-icon="play"] { display: block; }
.pruoc-hero.is-paused [data-icon="pause"] { display: none; }
.pruoc-hero[data-autoplay="false"] .pruoc-hero__pause { display: none; }

/* --- Small screens: copy sits at the bottom, bar below it ---------------------- */
@media (max-width: 781px) {
	.pruoc-hero { --hero-h: clamp(520px, 86svh, 680px); }
	.pruoc-hero.has-copy .pruoc-hero__scrim {
		background: linear-gradient(0deg, rgba(20, 4, 4, .9) 0%, rgba(20, 4, 4, .55) 50%, rgba(20, 4, 4, .1) 80%);
	}
	.pruoc-hero__content { align-self: end; padding-block: 3rem 6.5rem; }
	.pruoc-hero__count { display: none; }
	.pruoc-hero__progress { max-width: none; }
	.pruoc-hero__btn { width: 2.5rem; height: 2.5rem; }
	.pruoc-hero__prev, .pruoc-hero__next { display: none; }
	.pruoc-hero__slide figcaption { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.pruoc-hero__slide, .pruoc-hero__slide.is-active { transition: none; }
	.pruoc-hero__slide.is-active img,
	.pruoc-hero__content .pruoc-hero__inner > * { animation: none; }
}
