/* =========================================================================
   8 · HERO — split-screen, Ajrak pattern fallback
   Reference: V4-BUILD-SPEC §4 #4
   ========================================================================= */

.jj-hero {
	background: var(--jj-bg-warm);
	position: relative;
	overflow: hidden;
	padding-block: clamp(2.5rem, 2rem + 4vw, 5rem);
}

.jj-hero__inner {
	display: grid;
	gap: var(--sp-8);
	align-items: center;
	grid-template-columns: 1fr;
}
@media (min-width: 48em) {
	.jj-hero__inner {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		gap: var(--sp-12);
	}
}
@media (min-width: 64em) {
	.jj-hero__inner {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		gap: var(--sp-16);
		padding-block: var(--sp-12);
	}
}

/* Copy column */
.jj-hero__copy {
	position: relative;
	z-index: 1;
}
.jj-hero__headline {
	color: var(--jj-text);
	margin: 0 0 var(--sp-5);
}
.jj-hero__subhead {
	font-size: var(--fs-md);
	line-height: 1.55;
	color: var(--jj-text-soft);
	max-width: 56ch;
	margin: 0 0 var(--sp-6);
}
.jj-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-4);
	align-items: center;
}
.jj-hero__secondary {
	font-size: var(--fs-base);
}

/* Media column */
.jj-hero__media {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--jj-primary-soft);
	box-shadow: var(--shadow-lg);
}
@media (min-width: 48em) {
	.jj-hero__media { aspect-ratio: 4 / 5; }
}
.jj-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.jj-hero__pattern-wrap {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--jj-primary) 0%, var(--jj-primary-deep) 100%);
	position: relative;
}
.jj-hero__pattern-wrap .jj-pattern--ajrak {
	width: 100%;
	height: 100%;
	display: block;
}
.jj-hero__credit {
	position: absolute;
	left: var(--sp-4);
	bottom: var(--sp-3);
	margin: 0;
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, 0.85);
	background: rgba(0, 0, 0, 0.35);
	padding: var(--sp-1) var(--sp-2);
	border-radius: var(--radius-sm);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

/* On small phones, reduce the hero media aspect to give text more room */
@media (max-width: 36em) {
	.jj-hero__media {
		aspect-ratio: 5 / 4;
		max-height: 360px;
	}
}
