/* Page hero */

.page-hero {
	position: relative;
	min-height: clamp(260px, 46vw, 380px);
	overflow: hidden;
	isolation: isolate;
	background: var(--ink-2);
}

/* Media */
.page-hero__bed { position: absolute; inset: 0; z-index: 0; }
.page-hero__bed img,
.page-hero__bed video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--hero-focus, center);
	animation: page-hero-drift 26s ease-in-out infinite alternate;
	transform-origin: 60% 45%;
}
@keyframes page-hero-drift {
	from { transform: scale(1.04); }
	to   { transform: scale(1.12) translate(-1.4%, -1%); }
}

/* Overlays */
.page-hero__scrim,
.page-hero__veil,
.page-hero__glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.page-hero__veil {
	background-image: url("../img/damask-tile.png");
	background-size: 230px 230px;
	mix-blend-mode: screen;
}
.page-hero__hair {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	z-index: 5;
	background: linear-gradient(90deg, var(--bronze), var(--gold-light), var(--bronze));
}

/* Type */
.page-hero__title {
	margin: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	font-family: var(--font-display);
	font-size: var(--fs-page-title);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 0.98;
	text-transform: uppercase;
	text-wrap: balance;
	color: #fdf6e6;
	text-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.page-hero__title--wordmark {
	width: min(100%, 6.2em);
	line-height: 0;
}
.page-hero__wordmark {
	display: block;
	width: 100%;
	height: auto;
}
.page-hero__tagline {
	margin: 0;
	font-family: var(--font-slogan);
	font-size: var(--fs-hero-tagline);
	font-style: italic;
	color: #f3dcc0;
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

/* Divider */
.page-hero__orn { display: inline-flex; align-items: center; gap: 12px; }
.page-hero__orn-line { height: 1px; width: 60px; background: linear-gradient(90deg, transparent, #cf9f4e); }
.page-hero__orn-line--r { background: linear-gradient(90deg, #cf9f4e, transparent); }
.page-hero__orn-dot { width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold-light); }

/* Left-aligned media treatment */
.page-hero__cine {
	position: absolute;
	left: var(--rail);
	right: var(--rail);
	bottom: clamp(28px, 5vw, 46px);
	z-index: 3;
	max-width: min(760px, 76vw);
	display: flex;
	flex-direction: column;
	gap: clamp(10px, 1.6vw, 14px);
}
.page-hero__cine .page-hero__title { max-width: 13ch; }

.page-hero--cinematic .page-hero__scrim {
	background:
		linear-gradient(90deg, rgba(16, 10, 4, 0.86) 0%, rgba(16, 10, 4, 0.5) 42%, rgba(16, 10, 4, 0.08) 72%, rgba(16, 10, 4, 0.32) 100%),
		linear-gradient(180deg, rgba(16, 10, 4, 0.5) 0%, transparent 30%, transparent 58%, rgba(12, 8, 3, 0.72) 100%);
}

/* Centered media treatment */
.page-hero--plate { background: var(--blackbrown); }
.page-hero__plate {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(12px, 2vw, 16px);
	padding: var(--nav-height) var(--rail) 0;
	text-align: center;
}
.page-hero__plate .page-hero__crest { width: clamp(44px, 7vw, 58px); height: auto; opacity: 0.96; }
.page-hero__plate .page-hero__title { color: #ccbfa7; }
.page-hero__plate .page-hero__tagline { color: #e9d3a6; }

.page-hero--plate .page-hero__veil { opacity: 0.42; }
.page-hero--plate .page-hero__glow {
	background: radial-gradient(120% 95% at 50% 16%, rgba(181, 137, 79, 0.22), transparent 60%);
}
.page-hero--plate .page-hero__scrim {
	background:
		radial-gradient(120% 120% at 50% 50%, rgba(16, 10, 4, 0.42) 0%, rgba(16, 10, 4, 0.72) 62%, rgba(12, 8, 3, 0.86) 100%),
		linear-gradient(180deg, rgba(16, 10, 4, 0.5) 0%, transparent 28%, transparent 64%, rgba(12, 8, 3, 0.72) 100%);
}

/* Light treatment */
.page-hero--affiche { background: transparent; min-height: calc(clamp(260px, 46vw, 380px) + var(--nav-height)); }
.page-hero__affiche {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	padding: calc(var(--nav-height) + clamp(10px, 1.6vw, 18px)) clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px);
}
.page-hero__frame {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(12px, 1.8vw, 16px);
	padding: clamp(48px, 7vw, 70px) clamp(24px, 5vw, 48px) clamp(24px, 4vw, 36px);
	text-align: center;
	border: 1px solid rgba(168, 126, 48, 0.28);
	outline: 1px solid rgba(168, 126, 48, 0.16);
	outline-offset: -9px;
	background: radial-gradient(ellipse 90% 120% at 50% -20%, rgba(212, 168, 67, 0.1), transparent 60%);
}
.page-hero__frame .page-hero__crest { width: clamp(40px, 6vw, 50px); height: auto; opacity: 0.85; }
.page-hero__frame .page-hero__title {
	font-size: min(var(--fs-page-title), 9vw);
	color: var(--ink);
	text-shadow: none;
}
.page-hero__frame .page-hero__orn-line { width: clamp(54px, 8vw, 90px); background: rgba(168, 126, 48, 0.28); }
.page-hero__frame .page-hero__orn-line--r { background: rgba(168, 126, 48, 0.28); }
.page-hero__frame .page-hero__orn-dot { background: var(--gold); }
.page-hero__frame .page-hero__tagline {
	color: var(--burgundy);
	text-shadow: none;
}

/* Plaquette — centered, crested, unframed; grows with its content (built for long article titles) */
.page-hero--plaquette {
	background: transparent;
	min-height: 0;
}
.page-hero__plaquette {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(11px, 1.6vw, 14px);

	/* Same content box as the lead band, so the fitted title can meet its edges. */
	max-width: calc(760px + var(--rail) * 2);
	margin-inline: auto;
	padding: calc(var(--nav-height) + clamp(26px, 4vw, 40px)) var(--rail) 0;
	text-align: center;
}
.page-hero__plaquette .page-hero__crest { width: clamp(58px, 7.5vw, 80px); height: auto; opacity: 0.85; }
.page-hero__eyebrow {
	margin: 0;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-deep);
}
.page-hero__plaquette .page-hero__title {
	font-size: var(--fs-long-title);
	line-height: 1.12;
	color: var(--ink);
	text-shadow: none;
}
.page-hero__plaquette .page-hero__orn-line { width: clamp(54px, 8vw, 90px); background: rgba(168, 126, 48, 0.28); }
.page-hero__plaquette .page-hero__orn-line--r { background: rgba(168, 126, 48, 0.28); }
.page-hero__plaquette .page-hero__orn-dot { background: var(--gold); }
.page-hero__plaquette .page-hero__tagline {
	max-width: 50ch;
	line-height: 1.5;
	color: var(--ink-mute);
	text-shadow: none;
}

/* Compact light treatment */
.page-hero--affiche.is-compact .page-hero__frame { padding: clamp(36px, 5vw, 44px) clamp(24px, 5vw, 48px) clamp(22px, 3.5vw, 38px); }
.page-hero--affiche.is-compact .page-hero__frame .page-hero__crest { width: clamp(38px, 5.5vw, 56px); }

@media (max-width: 680px) {
	.page-hero { min-height: 280px; }
	.page-hero--affiche { min-height: calc(280px + var(--nav-height)); }
	.page-hero__cine { right: var(--rail); max-width: none; }
	.page-hero__frame { padding-inline: 16px; }
}
