/* Follow Along — ACF block */

.ortega-follow-along {
	--ortega-fa-blue: #0058a4;
	--ortega-fa-navy: #092450;
	--ortega-fa-yellow: #ffe400;
	--ortega-fa-yellow-hover: #ffd000;
	--ortega-fa-white: #fff;
	--ortega-fa-bg: var(--ortega-fa-blue);
	--ortega-fa-ink: var(--ortega-fa-yellow);
	--ortega-fa-social-bg: var(--ortega-fa-yellow);
	--ortega-fa-social-ink: var(--ortega-fa-blue);
	--ortega-fa-social-bg-hover: var(--ortega-fa-yellow-hover);
	--ortega-fa-control-bg: var(--ortega-fa-white);
	--ortega-fa-control-ink: var(--ortega-fa-blue);
	--ortega-fa-control-bg-hover: #e9f2f9;
	--ortega-fa-focus: var(--ortega-fa-yellow);
	--ortega-fa-content-padding: clamp(1rem, 4vw, 3rem);
	--ortega-fa-slide-gap: clamp(10px, 1.2vw, 16px);
	--ortega-fa-slide-width: clamp(200px, 18vw, 260px);
	background-color: var(--ortega-fa-bg);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto auto;
	isolation: isolate;
	overflow: hidden;
	position: relative;
	z-index: 10;
}

/* Yellow scheme — navy type on yellow (Figma Social yellow option). */
.ortega-follow-along--yellow {
	--ortega-fa-bg: var(--ortega-fa-yellow);
	--ortega-fa-ink: var(--ortega-fa-navy);
	--ortega-fa-social-bg: var(--ortega-fa-navy);
	--ortega-fa-social-ink: var(--ortega-fa-yellow);
	--ortega-fa-social-bg-hover: #093272;
	--ortega-fa-control-bg: var(--ortega-fa-navy);
	--ortega-fa-control-ink: var(--ortega-fa-yellow);
	--ortega-fa-control-bg-hover: #093272;
	--ortega-fa-focus: var(--ortega-fa-navy);
}

.ortega-follow-along__edge {
	display: block;
	height: auto;
	left: 50%;
	pointer-events: none;
	position: absolute;
	width: 110vw;
	z-index: 4;
}

.ortega-follow-along__edge--top {
	top: -1px;
	transform: translateX(-50%) scaleY(-1);
}

.ortega-follow-along__edge--bottom {
	bottom: -1px;
	transform: translateX(-50%);
}

.ortega-follow-along__inner {
	box-sizing: border-box;
	grid-column: 1;
	grid-row: 1;
	margin-inline: auto;
	max-width: min(1440px, 100%);
	padding:
		clamp(3.5rem, 7vw, 5.5rem)
		var(--ortega-fa-content-padding)
		clamp(1.5rem, 3vw, 2.5rem);
	position: relative;
	width: 100%;
	z-index: 2;
}

.ortega-follow-along__header {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 3vw, 2rem);
	justify-content: space-between;
}

.ortega-follow-along__footer {
	box-sizing: border-box;
	grid-column: 1;
	grid-row: 1;
	position: relative;
	z-index: 2;
}

.ortega-follow-along__headline {
	color: var(--ortega-fa-ink);
	font-family: var(--ortega-font-display);
	font-size: var(--ortega-type-headline-lg);
	font-weight: 700;
	line-height: var(--ortega-type-headline-lg-line-height);
	margin: 0;
	text-transform: uppercase;
}

.ortega-follow-along__headline :is(span, .ortega-follow-along__headline-accent) {
	display: block;
	font-size: var(--ortega-type-hero-sm);
	line-height: 1;
	margin-bottom: 0.04em;
	padding-left: 0.18em;
}

.ortega-follow-along.is-text-entrance-pending .ortega-follow-along__headline {
	visibility: hidden;
}

@media (min-width: 782px) {
	.ortega-follow-along {
		--ortega-fa-content-inset: max(
			var(--ortega-fa-content-padding),
			calc((100vw - 1440px) / 2 + var(--ortega-fa-content-padding))
		);
	}

	.ortega-follow-along__inner {
		align-self: end;
		justify-self: start;
		margin-inline: 0;
		/* Scale with viewport; reserve space for the social cluster on the right. */
		max-width: calc(100% - clamp(14rem, 20vw, 22rem));
		padding:
			0
			clamp(1rem, 2vw, 2rem)
			clamp(1.5rem, 3vw, 2.5rem)
			var(--ortega-fa-content-inset);
		width: max-content;
	}

	.ortega-follow-along__footer {
		align-self: end;
		flex-shrink: 0;
		justify-self: end;
		margin-inline: 0;
		max-width: none;
		min-width: min-content;
		padding:
			0
			var(--ortega-fa-content-inset)
			clamp(1.5rem, 3vw, 2.5rem)
			clamp(1rem, 2vw, 2rem);
		width: auto;
	}

	.ortega-follow-along__social {
		align-items: flex-end;
	}

	.ortega-follow-along__handle {
		font-size: var(--ortega-type-handle--desktop);
		text-align: right;
	}

	.ortega-follow-along__social-links {
		flex-flow: row nowrap;
		justify-content: flex-end;
	}

	.ortega-follow-along__social-link {
		flex-shrink: 0;
	}

	.ortega-follow-along__headline {
		font-size: var(--ortega-type-headline-lg--desktop);
		line-height: var(--ortega-type-headline-lg-line-height--desktop);
		padding-top: 130px;
	}

	.ortega-follow-along__inner,
	.ortega-follow-along__footer {
		pointer-events: none;
	}

	.ortega-follow-along__headline,
	.ortega-follow-along__social,
	.ortega-follow-along__social-link {
		pointer-events: auto;
	}
}

.ortega-follow-along__social {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: clamp(0.65rem, 1.5vw, 1rem);
}

.ortega-follow-along__handle {
	color: var(--ortega-fa-ink);
	font-family: var(--ortega-font-display);
	font-size: var(--ortega-type-handle);
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.2;
	margin: 0;
	text-transform: uppercase;
	transform: rotate(2deg);
}

.ortega-follow-along__social-links {
	display: flex;
	flex-flow: row wrap;
	gap: clamp(0.5rem, 1.2vw, 0.75rem);
}

.ortega-follow-along__social-link {
	--ortega-social-bg: var(--ortega-fa-social-bg);
	align-items: center;
	color: var(--ortega-fa-social-ink);
	display: inline-flex;
	height: clamp(40px, 4.5vw, 55px);
	justify-content: center;
	text-decoration: none;
	transition: transform 0.2s ease;
	width: clamp(40px, 4.5vw, 55px);
}

.ortega-follow-along__social-link:hover,
.ortega-follow-along__social-link:focus-visible {
	--ortega-social-bg: var(--ortega-fa-social-bg-hover);
	transform: scale(1.05);
}

.ortega-follow-along__social-link:focus-visible {
	outline: 2px solid var(--ortega-fa-focus);
	outline-offset: 3px;
}

.ortega-follow-along__social-icon {
	display: block;
	height: 100%;
	width: 100%;
}

.ortega-follow-along__social-icon .ortega-social-icon__bg {
	fill: var(--ortega-social-bg);
	transition: fill 0.2s ease;
}

.ortega-follow-along__social-icon .ortega-social-icon__glyph {
	fill: currentColor;
}

.ortega-follow-along__carousel {
	grid-column: 1;
	grid-row: 2;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	position: relative;
	width: 100vw;
	z-index: 2;
}

@media (min-width: 782px) {
	.ortega-follow-along__carousel {
		margin-bottom: 0;
		padding-bottom: 130px;
	}
}

.ortega-follow-along__viewport {
	overflow: hidden;
	touch-action: pan-y;
	width: 100vw;
}

.ortega-follow-along__track {
	display: flex;
	gap: var(--ortega-fa-slide-gap);
	touch-action: pan-y;
	will-change: transform;
}

.ortega-follow-along__slide {
	flex: 0 0 var(--ortega-fa-slide-width);
	max-width: var(--ortega-fa-slide-width);
}

.ortega-follow-along__slide-inner {
	aspect-ratio: 9 / 16;
	background-color: #092450;
	border-radius: clamp(14px, 2vw, 22px);
	box-shadow: 0 4px 20px rgb(9 36 80 / 25%);
	overflow: hidden;
	position: relative;
	width: 100%;
}

.ortega-follow-along__video {
	display: block;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	position: relative;
	transition: opacity 0.3s ease;
	width: 100%;
	z-index: 2;
}

.ortega-follow-along__video.is-ready {
	opacity: 1;
}

.ortega-follow-along__poster,
.ortega-follow-along__image {
	display: block;
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
	z-index: 1;
}

.ortega-follow-along__poster {
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.ortega-follow-along__slide-inner:has(.ortega-follow-along__video.is-ready) .ortega-follow-along__poster {
	opacity: 0;
}

.ortega-follow-along.is-poster-only .ortega-follow-along__video {
	display: none;
}

.ortega-follow-along__controls {
	box-sizing: border-box;
	display: flex;
	gap: clamp(0.5rem, 1vw, 0.75rem);
	margin-inline: auto;
	margin-top: clamp(1rem, 2.5vw, 1.5rem);
	max-width: min(1440px, 100%);
	padding-inline: var(--ortega-fa-content-padding);
	position: relative;
	width: 100%;
	z-index: 20;
}

.ortega-follow-along__control {
	align-items: center;
	background-color: var(--ortega-fa-control-bg);
	border: 0;
	border-radius: 50%;
	color: var(--ortega-fa-control-ink);
	cursor: pointer;
	display: inline-flex;
	height: clamp(40px, 4vw, 48px);
	justify-content: center;
	padding: 0;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	width: clamp(40px, 4vw, 48px);
}

.ortega-follow-along__control:hover,
.ortega-follow-along__control:focus-visible {
	background-color: var(--ortega-fa-control-bg-hover);
	transform: scale(1.05);
}

.ortega-follow-along__control:focus-visible {
	outline: 2px solid var(--ortega-fa-focus);
	outline-offset: 3px;
}

.ortega-follow-along__control-icon {
	display: block;
	flex: 0 0 auto;
	height: clamp(26px, 3vw, 32px);
	width: clamp(26px, 3vw, 32px);
}

.ortega-follow-along__control-icon--prev {
	transform: scaleX(-1);
}

.ortega-follow-along-placeholder {
	background: #f7f7f8;
	border: 1px dashed #0058a4;
	color: #0058a4;
	padding: 24px;
	text-align: center;
}

@media (max-width: 781px) {
	.ortega-follow-along {
		--ortega-fa-slide-width: clamp(200px, 70vw, 280px);
		grid-template-rows: auto auto auto;
	}

	.ortega-follow-along__inner {
		grid-row: 1;
		padding-bottom: clamp(1rem, 3vw, 1.5rem);
		padding-top: clamp(3rem, 12vw, 4rem);
	}

	.ortega-follow-along__carousel {
		grid-row: 2;
		margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
	}

	.ortega-follow-along__footer {
		align-self: start;
		grid-row: 3;
		justify-self: center;
		padding:
			clamp(1rem, 3vw, 1.5rem)
			var(--ortega-fa-content-padding)
			clamp(2.5rem, 5vw, 4rem);
		width: 100%;
	}

	.ortega-follow-along__header {
		align-items: center;
	}

	.ortega-follow-along__header-title {
		display: flex;
		justify-content: center;
		width: 100%;
	}

	.ortega-follow-along__headline {
		font-size: var(--ortega-type-headline-lg--mobile);
		text-align: center;
	}

	.ortega-follow-along__headline :is(span, .ortega-follow-along__headline-accent) {
		font-size: var(--ortega-type-hero-sm--mobile);
		padding-left: 0;
	}

	.ortega-follow-along__social {
		align-items: center;
		width: 100%;
	}

	.ortega-follow-along__handle {
		text-align: center;
		width: 100%;
	}

	.ortega-follow-along__social-links {
		justify-content: center;
	}

	.ortega-follow-along__controls {
		justify-content: center;
		padding-inline: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ortega-follow-along.is-text-entrance-pending .ortega-follow-along__headline {
		visibility: visible;
	}

	.ortega-follow-along__track {
		transition: none !important;
	}

	.ortega-follow-along__control,
	.ortega-follow-along__social-link,
	.ortega-follow-along__social-icon .ortega-social-icon__bg,
	.ortega-follow-along__video,
	.ortega-follow-along__poster,
	.ortega-follow-along__image {
		transition: none;
	}
}
