/*
 * Blanky Studio – Hero: Name First (patterns/studio-hero-name.php)
 *
 * A full-bleed photograph with the name set across the full width.
 * The scrim is a readability device, so it stays dark in every style variation.
 *
 * @package blanky-studio
 * @since 2.5
 */

.studio-hero-name {
	position: relative;
	min-height: 100svh;
	display: grid;
	grid-template-rows: 1fr auto;
	overflow: hidden;
	background-color: #000;
	color: #fff;
}

.studio-hero-name::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%),
		linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 55%);
}

.studio-hero-name .studio-hero-name-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
}

.studio-hero-name .studio-hero-name-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
	animation: studio-hero-name-zoom 24s cubic-bezier(0, 0, 0.2, 1) forwards;
}

@keyframes studio-hero-name-zoom {
	from { transform: scale(1.06); }
	to   { transform: scale(1); }
}

.studio-hero-name p.studio-hero-name-caption {
	position: relative;
	z-index: 2;
	align-self: end;
	justify-self: end;
	margin: 0 var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
	font-family: var(--wp--preset--font-family--noto-sans);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	line-height: 1.7;
	text-align: right;
	color: rgba(255, 255, 255, 0.85);
}

.studio-hero-name .studio-hero-name-body {
	position: relative;
	z-index: 2;
	padding: 0 var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

.studio-hero-name p.studio-hero-name-eyebrow {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--noto-sans);
	font-size: 0.8125rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

/*
 * line-height 0.82 lets the tall letters (the S of "Sora") rise about 0.2em above
 * the line box, onto the eyebrow. Keep that much space, in em so it scales with the name.
 */
.studio-hero-name .studio-hero-name-title.wp-block-heading {
	margin: 0.2em 0 0;
	font-family: var(--wp--preset--font-family--newsreader);
	font-weight: 300;
	font-style: normal;
	font-size: clamp(4rem, 1rem + 15vw, 17rem);
	line-height: 0.82;
	letter-spacing: -0.045em;
	color: #fff;
}

.studio-hero-name .studio-hero-name-title em {
	display: block;
	padding-left: 0.6em;
	font-style: italic;
}

.studio-hero-name .studio-hero-name-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid rgba(255, 255, 255, 0.35);
	font-family: var(--wp--preset--font-family--noto-sans);
	font-size: 0.875rem;
}

.studio-hero-name .studio-hero-name-foot p {
	margin: 0;
	color: #fff;
}

.studio-hero-name .studio-hero-name-link a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.35em;
}

@media (width >= 768px) {
	.studio-hero-name p.studio-hero-name-caption {
		margin-inline: var(--wp--preset--spacing--60);
	}

	.studio-hero-name .studio-hero-name-body {
		padding-inline: var(--wp--preset--spacing--60);
	}
}

@media (prefers-reduced-motion: reduce) {
	.studio-hero-name .studio-hero-name-bg img {
		animation: none;
	}
}

/* style.css sets the Japanese font on every element under :lang(ja); let the italic line keep the heading's face. */
.studio-hero-name .studio-hero-name-title em {
	font-family: inherit;
}
