/* Intro — ACF block */

.ortega-intro.is-text-entrance-pending .ortega-intro__headline,
.ortega-intro.is-text-entrance-pending .ortega-intro__description,
.ortega-intro.is-text-entrance-pending .ortega-intro__dot-arc {
	visibility: hidden;
}

.ortega-intro {
	--ortega-intro-navy: #092450;
	--ortega-intro-content-gutter: 16px;
	--ortega-intro-grid-gap: clamp(1rem, 2vw, 1.5rem);
	--ortega-intro-pad-block-start: clamp(3rem, 8vw, 5.5rem);
	--ortega-intro-pad-block-end: 0;
	--ortega-intro-tilt: -2deg;
	background-color: #fff;
	color: var(--ortega-intro-navy);
	isolation: isolate;
	overflow: visible;
	position: relative;
	width: 100%;
}

.ortega-intro__inner {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: 1440px;
	overflow: visible;
	padding: var(--ortega-intro-pad-block-start) var(--ortega-intro-content-gutter) var(--ortega-intro-pad-block-end);
	width: 100%;
}

.ortega-intro__content {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 3vw, 2rem);
	overflow: visible;
	width: 100%;
}

.ortega-intro__headline-wrap {
	max-width: 100%;
	overflow: visible;
	position: relative;
	transform: rotate(var(--ortega-intro-tilt));
	transform-origin: left center;
	width: 100%;
}

.ortega-intro__headline {
	/* --ortega-intro-headline-size is set by JS so the first line stays on one row. */
	color: var(--ortega-intro-navy);
	font-family: var(--ortega-font-display);
	font-size: var(--ortega-intro-headline-size, var(--ortega-type-headline-lg--mobile, 56px));
	font-weight: 700;
	line-height: var(--ortega-type-headline-lg-line-height, 0.92);
	margin: 0;
	text-transform: uppercase;
}

.ortega-intro__headline :is(p, strong, em) {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	margin: 0;
}

.ortega-intro__headline p + p {
	margin-top: 0.04em;
}

/* First line anchors the yellow arc — always one line; JS scales headline to fit. */
.ortega-intro__headline-lead {
	display: inline-block;
	max-width: none;
	overflow: visible;
	position: relative;
	white-space: nowrap;
	width: max-content;
}

/* Span accent = smaller stacked type. */
.ortega-intro__headline-accent {
	color: inherit;
	display: block;
	font-size: var(--ortega-type-hero-sm--mobile, clamp(28px, 8.5vw, 40px));
	font-weight: inherit;
	line-height: 1;
	margin: 0 0 0.06em;
}

.ortega-intro__dot-arc {
	height: auto;
	left: auto;
	pointer-events: none;
	position: absolute;
	right: -50px;
	top: -50px;
	transform: scaleX(-1) rotate(160deg);
	transform-origin: center center;
	width: clamp(56px, 8vw, 114px);
	z-index: 1;
}

.ortega-intro__description {
	color: var(--ortega-intro-navy);
	font-family: var(--ortega-font-copy, var(--ortega-font-body));
	font-size: var(--ortega-type-body-lg, 1.125rem);
	font-weight: 400;
	line-height: 1.45;
	margin: 0;
	max-width: 22rem;
}

.ortega-intro__description p {
	margin: 0;
}

.ortega-intro__description p + p {
	margin-top: 0.75em;
}

.ortega-intro-placeholder {
	background: #f7f7f8;
	border: 1px dashed var(--ortega-intro-navy);
	color: var(--ortega-intro-navy);
	font-family: var(--ortega-font-body);
	padding: 1.5rem;
	text-align: center;
}

@media (min-width: 782px) {
	.ortega-intro {
		--ortega-intro-content-gutter: 32px;
	}

	.ortega-intro--has-description .ortega-intro__content {
		align-items: center;
		column-gap: var(--ortega-intro-grid-gap);
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		row-gap: 0;
	}

	.ortega-intro--has-description .ortega-intro__headline-wrap {
		grid-column: 1 / 9;
	}

	.ortega-intro--has-description .ortega-intro__description {
		grid-column: 10 / 13;
		max-width: none;
		width: 100%;
	}

	.ortega-intro__headline {
		font-size: var(--ortega-intro-headline-size, clamp(48px, 7vw, 80px));
		line-height: 0.94;
	}

	.ortega-intro__headline-accent {
		font-size: var(--ortega-type-hero-sm, clamp(28px, 4.5vw, 56px));
	}

	.ortega-intro__dot-arc {
		right: -30px;
		top: -30px;
	}

	.ortega-intro__description {
		font-size: var(--ortega-type-body-lg, 1.125rem);
		line-height: 1.5;
	}
}

@media (min-width: 1200px) {
	.ortega-intro {
		--ortega-intro-content-gutter: 40px;
		--ortega-intro-grid-gap: 38px;
		--ortega-intro-pad-block-start: clamp(4.5rem, 7vw, 6.5rem);
	}

	.ortega-intro__headline {
		font-size: var(--ortega-intro-headline-size, var(--ortega-type-headline-lg--desktop, 100px));
		line-height: var(--ortega-type-headline-lg-line-height--desktop, 106px);
	}

	.ortega-intro__headline-accent {
		font-size: var(--ortega-type-hero-sm, clamp(28px, 4.5vw, 56px));
	}

	.ortega-intro__dot-arc {
		right: -50px;
		top: -50px;
		width: 114px;
	}

	.ortega-intro__description {
		font-size: clamp(16px, 1.25vw, 20px);
		line-height: 1.5;
	}
}

@media (max-width: 781px) {
	.ortega-intro__dot-arc {
		right: -30px;
		top: -30px;
		width: 64px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ortega-intro.is-text-entrance-pending .ortega-intro__headline,
	.ortega-intro.is-text-entrance-pending .ortega-intro__description,
	.ortega-intro.is-text-entrance-pending .ortega-intro__dot-arc {
		visibility: visible;
	}
}
