/* Lorenzo Don Music — homepage hero (wide painting, Nov 18 2026).
   Loaded after lorenzo-patch.css. Color variants live in hero-colors.css. */

/* Picture wrapper fills the view the same way a stacked img.bg would. */
#home .view > picture.hero-picture {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
	z-index: 0;
}

#home .view > picture.hero-picture img.bg,
#home img.hero-painting {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	/* Keep Lorenzo (left ~0–38%) fully in a 1440×900 cover crop.
	   A 16:9 painting on a 1.6 viewport would otherwise trim his left shoulder. */
	object-position: left center !important;
	display: block !important;
	pointer-events: none;
	z-index: 0;
}

#home .content.full-size {
	position: relative;
	z-index: 2;
}

/* Desktop / tablet: sit the copy in the dark air above the piano lid,
   starting just under the fixed nav, clear of Lorenzo's face. */
@media (min-width: 768px) {
	#home .content.full-size {
		justify-content: flex-start;
		padding-top: 108px;
		padding-bottom: 40px;
	}

	#home .hero-copy {
		position: relative;
		z-index: 1;
	}

	/* Soft scrim on the full hero content, not the text column, so the fade
	   cannot be clipped into a hard vertical edge at the column's left. */
	#home .content.full-size::before {
		content: "";
		position: absolute;
		inset: 0;
		background: radial-gradient(
			1000px 700px at 70% 42%,
			rgba(0, 0, 0, 0.38) 0%,
			rgba(0, 0, 0, 0.22) 28%,
			rgba(0, 0, 0, 0.10) 50%,
			rgba(0, 0, 0, 0.04) 66%,
			rgba(0, 0, 0, 0) 80%
		);
		pointer-events: none;
		z-index: 0;
	}

	#home .hero-copy .site-title,
	#home .hero-copy .title,
	#home .hero-copy .site-caption,
	#home .hero-copy .site-control {
		position: relative;
		z-index: 1;
	}

	/* Pull caption and buttons up off the brightest keys / tufted bench. */
	#home .hero-copy .site-control {
		margin-top: 22px;
	}

	/* Stronger soft shadow so caption stays AA without a hard dark panel. */
	#home .hero-copy .site-caption {
		text-shadow:
			0 1px 2px rgba(0, 0, 0, 0.95),
			0 0 10px rgba(0, 0, 0, 0.7),
			0 0 22px rgba(0, 0, 0, 0.55);
	}

	/* Theme "lite" fills wash out over the bench; give the CTAs a solid dark bed. */
	#home .hero-copy .btn {
		background-color: rgba(18, 14, 10, 0.78);
		box-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
	}
}

/* Between sm and md, Bootstrap columns go full-width; keep the indent so
   type stays off the portrait. */
@media (min-width: 768px) and (max-width: 991px) {
	#home .hero-copy {
		width: 58%;
		margin-left: 42%;
		float: right;
		padding-left: 8px;
	}

	#home .content.full-size {
		padding-top: 96px;
	}
}

/* Phone: face-focused portrait crop. Whole vertical of the crop nearly
   fills 390×844, so object-position is mostly about horizontal centering.
   Type stacks at the bottom over the dark jacket, with a bottom gradient. */
@media (max-width: 767px) {
	#home img.hero-painting {
		object-position: 50% 20% !important;
	}

	#home .view::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 58%;
		background: linear-gradient(
			to top,
			rgba(0, 0, 0, 0.78) 0%,
			rgba(0, 0, 0, 0.55) 38%,
			rgba(0, 0, 0, 0.18) 70%,
			rgba(0, 0, 0, 0) 100%
		);
		pointer-events: none;
		z-index: 1;
	}

	#home .content.full-size {
		justify-content: flex-end;
		padding-top: 0;
		padding-bottom: 28px;
	}

	#home .hero-copy {
		text-align: center;
		padding: 8px 22px 0;
	}

	#home .hero-copy .site-title,
	#home .hero-copy .title,
	#home .hero-copy .site-caption,
	#home .hero-copy p {
		text-align: center;
	}

	#home .hero-copy .site-control {
		margin-top: 22px;
		margin-bottom: 0;
		text-align: center;
	}

	#home .hero-copy .btn {
		background-color: rgba(18, 14, 10, 0.78);
		box-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
	}

	/* Slightly tighten the 60px heading so the 2-line title + caption +
	   buttons still fit under the face on a 844px-tall phone. */
	/* Shrink the 48px one-line title so "I AM LORENZO DON" has
	   comfortable side margins on a 390px phone instead of going edge to edge. */
	#home .hero-copy .site-title {
		font-size: 36px;
		line-height: 40px;
	}

	#home .hero-copy .site-caption {
		margin-bottom: 0;
		font-size: 14px;
		line-height: 1.4;
	}

	/* Keep the role tagline on one line at 390px: the default 2px
	   letter-spacing plus ~14px type was wrapping "EDUCATOR". */
	#home .hero-copy .title {
		font-size: 11px;
		letter-spacing: 0.5px;
		line-height: 1.3;
		white-space: nowrap;
	}
}
