/* ProScript Hero Slider — brand tokens can be overridden by the theme. */
.pshs {
	--pshs-ivory: var(--ps-ivory, #FAF7F2);
	--pshs-ink: var(--ps-ink, #1F2328);
	--pshs-teal: var(--ps-teal, #0F5C55);
	--pshs-terracotta: var(--ps-terracotta, #C8553D);
	--pshs-terracotta-dark: var(--ps-terracotta-dark, #A9432E);
	--pshs-muted: var(--ps-muted, #4A4F55);
	--pshs-heading: var(--ps-font-heading, "Fraunces", Georgia, "Times New Roman", serif);
	--pshs-body: var(--ps-font-body, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--pshs-ease: cubic-bezier(.22, .61, .36, 1);

	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	background: var(--pshs-ivory);
	color: var(--pshs-ink);
	font-family: var(--pshs-body);
	overflow: hidden;
	isolation: isolate;
}

/* Break out of a constrained content column so the hero is full-bleed. */
.entry-content > .pshs,
.wp-block-post-content > .pshs,
.wp-block-shortcode > .pshs {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.pshs__track {
	position: relative;
	display: grid;
}

.pshs__slide {
	grid-area: 1 / 1;
	position: relative;
	display: grid;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s var(--pshs-ease), visibility 0s linear .9s;
}
.pshs__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity .9s var(--pshs-ease), visibility 0s;
	z-index: 1;
}

/* Desktop/tablet: editorial split — ivory text panel left, photo right fading into it. */
.pshs__slide {
	aspect-ratio: 12 / 5;
	min-height: 520px;
	max-height: 82vh;
	width: 100%;
}

.pshs__img {
	grid-area: 1 / 1;
	justify-self: end;
	display: block;
	width: 64%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--pshs-focus, 70%) 50%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 9%, #000 24%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 9%, #000 24%);
	transform: scale(1.04);
	transform-origin: 70% 50%;
	transition: transform 7s linear;
}
.pshs__slide.is-active .pshs__img { transform: scale(1); }

.pshs__content {
	grid-area: 1 / 1;
	align-self: center;
	position: relative;
	z-index: 2;
	width: min(520px, 40%);
	margin-left: max(24px, calc((100vw - 1200px) / 2));
	padding: 48px 0 88px;
	transform: translateY(14px);
	opacity: 0;
	transition: opacity .8s var(--pshs-ease) .25s, transform .8s var(--pshs-ease) .25s;
}
.pshs__slide.is-active .pshs__content { opacity: 1; transform: none; }

.pshs__eyebrow {
	margin: 0 0 14px;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pshs-teal);
}
.pshs__eyebrow::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 1px;
	margin-right: 12px;
	vertical-align: middle;
	background: var(--pshs-terracotta);
}

.pshs .pshs__title {
	margin: 0 0 18px;
	font-family: var(--pshs-heading);
	font-weight: 500;
	font-size: clamp(2.1rem, 3.6vw + .5rem, 3.9rem);
	line-height: 1.06;
	letter-spacing: -.015em;
	color: var(--pshs-ink);
	font-variation-settings: "opsz" 96, "SOFT" 30;
	text-wrap: balance;
}

.pshs__text {
	margin: 0 0 30px;
	max-width: 44ch;
	font-size: clamp(1rem, .4vw + .9rem, 1.1875rem);
	line-height: 1.6;
	color: var(--pshs-muted);
}

.pshs__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.pshs .pshs__btn {
	display: inline-flex;
	align-items: center;
	min-height: 50px;
	padding: 0 26px;
	border-radius: 999px;
	font-family: var(--pshs-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.pshs .pshs__btn:hover { transform: translateY(-1px); }
.pshs .pshs__btn--primary { background: var(--pshs-terracotta); color: #fff; border: 1.5px solid var(--pshs-terracotta); }
.pshs .pshs__btn--primary:hover,
.pshs .pshs__btn--primary:focus-visible { background: var(--pshs-terracotta-dark); border-color: var(--pshs-terracotta-dark); color: #fff; }
.pshs .pshs__btn--ghost { background: transparent; color: var(--pshs-teal); border: 1.5px solid var(--pshs-teal); }
.pshs .pshs__btn--ghost:hover,
.pshs .pshs__btn--ghost:focus-visible { background: var(--pshs-teal); color: #fff; }

/* Controls */
.pshs__controls {
	position: absolute;
	z-index: 3;
	right: max(24px, calc((100vw - 1200px) / 2));
	bottom: 28px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px;
	border-radius: 999px;
	background: rgba(250, 247, 242, .82);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 4px 18px rgba(31, 35, 40, .10);
}
.pshs__ctrl {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--pshs-ink);
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.pshs__ctrl:hover { background: var(--pshs-teal); color: #fff; }
.pshs__ctrl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pshs__icon-play { fill: currentColor !important; stroke-width: 0 !important; display: none; }
.pshs.is-paused .pshs__icon-play { display: block; }
.pshs.is-paused .pshs__icon-pause { display: none; }

.pshs__dots { display: flex; gap: 4px; padding: 0 4px; }
.pshs__dot {
	position: relative;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.pshs__dot::before {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	transform: translate(-50%, -50%);
	background: rgba(31, 35, 40, .28);
	transition: width .35s var(--pshs-ease), background-color .35s;
}
.pshs__dot[aria-current="true"]::before { width: 22px; background: var(--pshs-terracotta); }

.pshs button:focus-visible,
.pshs a:focus-visible { outline: 2px solid var(--pshs-teal); outline-offset: 3px; }

/* Tablet */
@media (max-width: 1024px) {
	.pshs__slide { aspect-ratio: auto; min-height: 460px; }
	.pshs__img { width: 58%; }
	.pshs__content { width: 46%; }
}

/* Phone: picture on top, words below on ivory — always legible. */
@media (max-width: 767px) {
	.pshs__slide { grid-template-rows: auto auto; aspect-ratio: auto; min-height: 0; max-height: none; }
	.pshs__img {
		grid-area: 1 / 1;
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
		-webkit-mask-image: none;
		mask-image: none;
	}
	.pshs__content {
		grid-area: 2 / 1;
		width: auto;
		margin: 0;
		padding: 26px 20px 84px;
	}
	.pshs .pshs__title { font-size: clamp(1.85rem, 7.4vw, 2.4rem); }
	.pshs__text { margin-bottom: 22px; }
	.pshs .pshs__btn { min-height: 48px; padding: 0 22px; }
	.pshs__controls { left: 20px; right: auto; bottom: 22px; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.pshs__slide, .pshs__slide.is-active, .pshs__content, .pshs__img { transition: none !important; }
	.pshs__img, .pshs__slide.is-active .pshs__img { transform: none; }
	.pshs__content { transform: none; }
}
