/**
 * Interactive Hero — split hero (content left + media slider right).
 */
.agency-hero-interactive.agency-section {
	padding-block: 0;
}

.agency-hero-interactive--viewport {
	min-height: 100dvh;
}

/* First block below header: equal inset, wide card panels, fully visible on load. */
.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child {
	--agency-hero-interactive-inset: clamp(0.75rem, 1.5vw, 1.25rem);
	--agency-hero-interactive-viewport-height: calc(96svh - var(--agency-shell-header-offset, 8.75rem));
	min-height: var(--agency-hero-interactive-viewport-height);
	height: var(--agency-hero-interactive-viewport-height);
	max-height: var(--agency-hero-interactive-viewport-height);
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--background, #fff);
	box-sizing: border-box;
}

.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__split,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__split {
	flex: 1;
	min-height: 0;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding: var(--agency-hero-interactive-inset);
	gap: var(--agency-hero-interactive-inset);
	align-items: stretch;
	grid-template-rows: minmax(0, 1fr);
}

.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__content,
.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__media,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__content,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__media {
	border-radius: 1rem;
	overflow: clip;
	min-height: 0;
	height: 100%;
	max-height: 100%;
	padding: clamp(1rem, 2vw, 1.75rem) clamp(1.25rem, 2vw, 2rem);
}

.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__content,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
}

.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__content-inner,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__content-inner {
	max-width: none;
	min-height: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__title,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__title {
	font-size: clamp(1.625rem, 2.8vw, 2.75rem);
	line-height: 1.12;
	max-width: none;
	margin-bottom: var(--wp--preset--spacing--sm, 8px);
}

.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__lead,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__lead {
	font-size: clamp(0.875rem, 1.35vw, 1.0625rem);
	line-height: 1.5;
	margin-bottom: var(--wp--preset--spacing--md, 16px);
	max-width: none;
}

.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__eyebrow,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__eyebrow {
	margin-bottom: var(--wp--preset--spacing--md, 16px);
	font-size: var(--wp--preset--font-size--xs, 0.75rem);
}

.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__actions,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__actions {
	margin-top: var(--wp--preset--spacing--md, 16px);
	margin-bottom: 0;
	flex-shrink: 0;
}

.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__media,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__media {
	justify-content: space-between;
}

.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__slider,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__slider {
	min-height: 0;
	flex: 1;
}

.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__slide.is-active,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__slide.is-active {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
}

.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__figure,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__figure {
	flex: 1;
	min-height: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	box-shadow: none;
}

.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__figure img,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__figure img {
	width: 100%;
	height: 100%;
	max-height: 100%;
	object-fit: contain;
}

.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__slider-nav,
.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__slider-nav {
	margin-top: var(--wp--preset--spacing--sm, 8px);
	margin-bottom: 0;
	flex-shrink: 0;
}


@media (max-width: 63.99em) {
	.agency-hero-interactive--viewport {
		min-height: 0;
	}

	.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child,
	.agency-main .entry-content > .agency-hero-interactive--viewport:first-child {
		height: auto;
		max-height: none;
		min-height: 0;
	}

	.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__split,
	.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__split {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto;
		flex: none;
		min-height: auto;
	}

	.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__content,
	.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__media,
	.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__content,
	.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__media {
		height: auto;
		max-height: none;
		min-height: auto;
		overflow: visible;
	}

	.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__media,
	.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__media {
		justify-content: flex-start;
		gap: var(--wp--preset--spacing--md, 16px);
	}

	.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__slider,
	.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__slider {
		flex: 0 0 auto;
		min-height: auto;
		width: 100%;
	}

	.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__slide.is-active,
	.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__slide.is-active {
		height: auto;
	}

	.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__figure,
	.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__figure {
		flex: 0 0 auto;
		aspect-ratio: 16 / 9;
		overflow: hidden;
	}

	.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__figure img,
	.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__figure img {
		height: 100%;
		max-height: none;
		object-fit: cover;
	}

	.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__caption,
	.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__caption {
		flex-shrink: 0;
		margin-top: var(--wp--preset--spacing--md, 16px);
	}

	.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__slider-nav,
	.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__slider-nav {
		margin-top: 0;
		flex-shrink: 0;
	}
}

/* Inline hero images — consistent 16:9 on small screens. */
@media (max-width: 63.99em) {
	.agency-hero-interactive__figure {
		width: 100%;
		aspect-ratio: 16 / 9;
		overflow: hidden;
	}

	.agency-hero-interactive__figure img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

.agency-hero-interactive__split {
	display: grid;
	min-height: inherit;
}

@media (min-width: 64em) {
	.agency-hero-interactive__split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.agency-hero-interactive:not(.agency-hero-interactive--viewport) .agency-hero-interactive__split {
		min-height: auto;
	}
}

.agency-hero-interactive__content {
	display: flex;
	align-items: center;
	background: var(--agency-hero-interactive-content-bg, var(--wp--preset--color--primary, #570df8));
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
}

.agency-hero-interactive__content-inner {
	width: 100%;
	max-width: 36rem;
}

.agency-hero-interactive__content--on-dark {
	color: var(--wp--preset--color--inverse, #fff);
}

.agency-hero-interactive__content--on-light {
	color: var(--wp--preset--color--foreground, #1f2937);
}

.agency-hero-interactive__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 var(--wp--preset--spacing--lg, 24px);
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
}

.agency-hero-interactive__content--on-dark .agency-hero-interactive__eyebrow {
	background: rgba(255, 255, 255, 0.12);
	color: var(--wp--preset--color--inverse, #fff);
}

.agency-hero-interactive__content--on-light .agency-hero-interactive__eyebrow {
	background: var(--wp--preset--color--primary-subtle, #ede9fe);
	color: var(--wp--preset--color--foreground, #1f2937);
}

.agency-hero-interactive__title {
	margin-bottom: var(--wp--preset--spacing--md, 16px);
	text-align: left;
}

.agency-hero-interactive__content--on-dark .agency-hero-interactive__title {
	color: var(--wp--preset--color--inverse, #fff);
}

.agency-hero-interactive__content--on-light .agency-hero-interactive__title {
	color: var(--wp--preset--color--foreground, #1f2937);
}

.agency-hero-interactive__accent {
	display: inline;
	color: var(--agency-hero-interactive-accent, var(--wp--preset--color--secondary, #f000b8));
}

.agency-hero-interactive__lead {
	margin-bottom: var(--wp--preset--spacing--xl, 32px);
	text-align: left;
	max-width: 36rem;
}

.agency-hero-interactive__content--on-dark .agency-hero-interactive__lead {
	color: rgba(255, 255, 255, 0.88);
}

.agency-hero-interactive__content--on-light .agency-hero-interactive__lead {
	color: var(--wp--preset--color--muted, #4b5563);
}

.agency-hero-interactive__actions {
	margin-bottom: 0;
}

.agency-hero-interactive__content--on-dark .agency-hero-interactive__ghost .wp-block-button__link,
.agency-hero-interactive__content--on-dark .agency-hero-interactive__ghost.agency-btn--ghost {
	color: var(--wp--preset--color--inverse, #fff);
	border-color: rgba(255, 255, 255, 0.35);
}

.agency-hero-interactive__content--on-dark .agency-hero-interactive__ghost .wp-block-button__link:hover,
.agency-hero-interactive__content--on-dark .agency-hero-interactive__ghost.agency-btn--ghost:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: var(--wp--preset--color--inverse, #fff);
	color: var(--wp--preset--color--inverse, #fff);
}

.agency-hero-interactive__media {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--agency-hero-interactive-media-bg, var(--wp--preset--color--surface-dark, #1f2937));
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
	min-height: 20rem;
}

.agency-hero-interactive__media--on-dark {
	color: var(--wp--preset--color--inverse, #fff);
}

.agency-hero-interactive__media--on-light {
	color: var(--wp--preset--color--foreground, #1f2937);
}

@media (min-width: 64em) {
	.agency-main .wp-block-post-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__media,
	.agency-main .entry-content > .agency-hero-interactive--viewport:first-child .agency-hero-interactive__media {
		min-height: 0;
	}

	.agency-hero-interactive__media {
		min-height: 28rem;
	}
}

.agency-hero-interactive__slider {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 0;
}

.agency-hero-interactive__slide:not(.is-active) {
	display: none;
}

.agency-hero-interactive__figure {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.agency-hero-interactive__figure[data-hero-swipe],
.agency-hero-interactive__slide--cover[data-hero-swipe] {
	touch-action: pan-y;
	cursor: grab;
}

.agency-hero-interactive__figure[data-hero-swipe].is-dragging,
.agency-hero-interactive__slide--cover[data-hero-swipe].is-dragging {
	touch-action: none;
	cursor: grabbing;
}

.agency-hero-interactive__figure[data-hero-swipe] img {
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none;
}

.agency-hero-interactive__figure img {
	display: block;
	width: 100%;
	height: auto;
}

.agency-hero-interactive__caption {
	flex-shrink: 0;
	margin-top: var(--wp--preset--spacing--lg, 24px);
}

.agency-hero-interactive__slide-label {
	margin: 0 0 var(--wp--preset--spacing--md, 16px);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
}

.agency-hero-interactive__media--on-dark .agency-hero-interactive__slide-label {
	color: var(--wp--preset--color--inverse, #fff);
}

.agency-hero-interactive__media--on-light .agency-hero-interactive__slide-label {
	color: var(--wp--preset--color--foreground, #1f2937);
}

.agency-hero-interactive__quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	font-weight: 400;
	line-height: 1.35;
}

.agency-hero-interactive__media--on-dark .agency-hero-interactive__quote {
	color: var(--wp--preset--color--inverse, #fff);
}

.agency-hero-interactive__media--on-light .agency-hero-interactive__quote {
	color: var(--wp--preset--color--foreground, #1f2937);
}

.agency-hero-interactive__quote p {
	margin: 0;
}

.agency-hero-interactive__attribution {
	margin: var(--wp--preset--spacing--md, 16px) 0 0;
	font-size: 0.875rem;
	line-height: 1.4;
}

.agency-hero-interactive__media--on-dark .agency-hero-interactive__attribution {
	color: rgba(255, 255, 255, 0.55);
}

.agency-hero-interactive__media--on-light .agency-hero-interactive__attribution {
	color: var(--wp--preset--color--muted, #4b5563);
}

.agency-hero-interactive__slider-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: var(--wp--preset--spacing--xl, 32px);
}

.agency-hero-interactive__dots {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.agency-hero-interactive__dot {
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.agency-hero-interactive__media--on-dark .agency-hero-interactive__dot {
	background: rgba(255, 255, 255, 0.25);
}

.agency-hero-interactive__media--on-light .agency-hero-interactive__dot {
	background: var(--wp--preset--color--border, #e5e7eb);
}

.agency-hero-interactive__media--on-dark .agency-hero-interactive__dot.is-active {
	background: var(--wp--preset--color--secondary, #f000b8);
	transform: scale(1.25);
}

.agency-hero-interactive__media--on-light .agency-hero-interactive__dot.is-active {
	background: var(--wp--preset--color--primary, #570df8);
	transform: scale(1.25);
}

/* Cover background mode — image fills right panel. */
.agency-hero-interactive--media-cover .agency-hero-interactive__media {
	position: relative;
	padding: 0;
	overflow: hidden;
}

.agency-hero-interactive--media-cover .agency-hero-interactive__slider {
	position: absolute;
	inset: 0;
	flex: 1;
	min-height: 0;
	height: 100%;
}

.agency-hero-interactive--media-cover .agency-hero-interactive__slide--cover {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.agency-hero-interactive--media-cover .agency-hero-interactive__slide--cover.is-active {
	display: flex;
}

.agency-hero-interactive__slide-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(15, 23, 42, 0.05) 0%,
		rgba(15, 23, 42, 0.35) 45%,
		rgba(15, 23, 42, 0.82) 100%
	);
	pointer-events: none;
}

.agency-hero-interactive--media-cover .agency-hero-interactive__slide-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100%;
	padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 2.5vw, 2rem) clamp(3.5rem, 5vw, 4.5rem);
	box-sizing: border-box;
}

.agency-hero-interactive--media-cover .agency-hero-interactive__caption {
	margin-top: 0;
}

.agency-hero-interactive--media-cover .agency-hero-interactive__slider-nav {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
	margin-top: 0;
	padding: 0 clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem);
}

.agency-main .wp-block-post-content > .agency-hero-interactive--media-cover .agency-hero-interactive__media,
.agency-main .entry-content > .agency-hero-interactive--media-cover .agency-hero-interactive__media {
	padding: 0;
	justify-content: flex-end;
}

.agency-main .wp-block-post-content > .agency-hero-interactive--media-cover .agency-hero-interactive__slide--cover.is-active,
.agency-main .entry-content > .agency-hero-interactive--media-cover .agency-hero-interactive__slide--cover.is-active {
	min-height: 100%;
	height: 100%;
}
