/* =========================================================
   NMW — Hover preview
   Stadium-shape card that fills content area on nav hover.
   ========================================================= */

.hover-preview {
	position: fixed;
	top: var(--nmw-content-top, 200px);
	bottom: var(--nmw-content-bottom, 56px);
	left: 0;
	right: 0;
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: 0;
	pointer-events: none;
	z-index: 50;
	opacity: 0;
	transition: opacity 0.18s ease-out;
}
.hover-preview.is-visible { opacity: 1; }

.hover-preview__pill {
	position: relative;
	height: 100%;
	aspect-ratio: 2 / 3;
	max-width: min(48vw, 640px);
	/* stadium: corner radius equals half the shorter side. With aspect-ratio
	   2/3 (portrait) the shorter side is the width — so 50% of width gives a
	   full half-circle on top and bottom. */
	border-radius: 50% / calc(50% * 2 / 3);
	overflow: hidden;
	transform: translateY(8px) scale(0.985);
	transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hover-preview.is-visible .hover-preview__pill {
	transform: translateY(0) scale(1);
}

.hover-preview__image {
	position: absolute;
	inset: 0;
	background-color: #1a1a1a;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.hover-preview__shade {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.18) 60%, rgba(0,0,0,0.32) 100%);
}

.hover-preview__title {
	position: absolute;
	inset: 0;
	margin: 0;
	display: grid;
	place-items: center;
	padding: clamp(24px, 4vw, 48px);
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(40px, 5.6vw, 96px);
	line-height: 0.95;
	text-align: center;
	letter-spacing: -0.01em;
	color: #ffffff;
	text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

/* Disable on small screens (no hover) */
@media (hover: none), (max-width: 900px) {
	.hover-preview { display: none; }
}

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
	.hover-preview, .hover-preview__pill { transition: none; }
}
