/*
 * JRS tagline arch — written from scratch for the jrs/tagline block.
 * border-radius uses a value far larger than half the container's own
 * width/height, so CSS clamps it to a true semicircle regardless of
 * viewport -- this is more robust than percentage radii, which only form
 * a true circle when width and height already match.
 */

/* Bottom curve matching the hero's own arc (.jrs2-hero__stage:after),
   so the transition into the next section reads the same way. */
.jrs2-tagline {
	position: relative;
}

.jrs2-tagline:after {
	content: "";
	position: absolute;
	z-index: 1;
	bottom: -1px;
	left: -5%;
	width: 110%;
	height: 76px;
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
	background: var(--jrs-ivory);
	pointer-events: none;
}

.jrs2-tagline__visual {
	position: relative;
	z-index: 2;
	width: min(400px, 32vw);
	height: 620px;
	margin: 0 auto;
	overflow: visible;
}

.jrs2-tagline__arch {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(231, 198, 193, .94);
	border-radius: 999px 999px 20px 20px;
	background: #fff;
	box-shadow: 0 22px 50px rgba(72, 48, 43, .15);
	opacity: 0;
	transform: translateY(18px) scale(.98);
	transition: opacity .82s ease, transform .82s cubic-bezier(.2, .8, .25, 1);
}

.jrs2-tagline__arch.is-active {
	opacity: 1;
	transform: none;
}

.jrs2-tagline__arch img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

@media (max-width: 767px) {
	.jrs2-tagline:after {
		left: -10%;
		width: 120%;
		height: 42px;
	}

	.jrs2-tagline__visual {
		width: min(84vw, 380px);
		height: min(120vw, 480px);
	}

	.jrs2-tagline__arch {
		border-radius: 999px 999px 18px 18px;
	}
}
