/* Hobbit Hero Banner
   Smaug's hoard backdrop, three showcase cards rising out of the gold. */

.hhb {
	--hhb-bg: #120b06;
	--hhb-gold: #e8b44a;
	--hhb-gold-bright: #ffe9a8;
	--hhb-gold-deep: #b8801e;
	--hhb-parchment: #ecdcb8;
	--hhb-ink: #1a0f05;
	--hhb-height: clamp(540px, 74vh, 780px);
	--hhb-display: 'Cinzel', 'Trajan Pro', 'Palatino Linotype', Georgia, serif;
	--hhb-body: 'IM Fell English', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
	--hhb-px: 0;
	--hhb-py: 0;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	align-items: center;
	min-height: var(--hhb-height);
	background: var(--hhb-bg);
	color: var(--hhb-parchment);
	font-family: var(--hhb-body);
	-webkit-font-smoothing: antialiased;
}
.hhb *,
.hhb *::before,
.hhb *::after { box-sizing: border-box; }

.hhb--full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* ---------- scene ---------- */
.hhb__scene {
	position: absolute;
	inset: 0;
	z-index: -1;
	transform: scale(1.04) translate(calc(var(--hhb-px) * -9px), calc(var(--hhb-py) * -6px));
	transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.hhb__hoard,
.hhb__embers,
.hhb__video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}
.hhb__video {
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.4s ease;
}
.hhb.is-video-ready .hhb__video { opacity: 1; }
.hhb__embers { pointer-events: none; }
.hhb__haze {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(18, 11, 6, .88) 0%, rgba(18, 11, 6, .64) 34%, rgba(18, 11, 6, .14) 60%, rgba(18, 11, 6, 0) 100%),
		linear-gradient(180deg, rgba(18, 11, 6, .5) 0%, rgba(18, 11, 6, 0) 30%, rgba(18, 11, 6, 0) 78%, rgba(18, 11, 6, .55) 100%);
}

/* ---------- layout ---------- */
.hhb__inner {
	position: relative;
	width: min(1200px, 100% - 3rem);
	margin-inline: auto;
	padding-block: clamp(2.5rem, 6vh, 4.5rem);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: center;
}

/* ---------- copy ---------- */
.hhb .hhb__copy { max-width: 36rem; }

.hhb .hhb__eyebrow {
	display: flex;
	align-items: center;
	gap: .9rem;
	margin: 0 0 1.2rem;
	font-family: var(--hhb-display);
	font-weight: 700;
	font-size: .74rem;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--hhb-gold);
}
.hhb .hhb__eyebrow::before {
	content: '';
	flex: 0 0 2.4rem;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--hhb-gold));
}

.hhb .hhb__title {
	margin: 0;
	padding: 0;
	font-family: var(--hhb-display);
	font-weight: 900;
	font-size: clamp(2.9rem, 7.2vw, 6rem);
	line-height: .94;
	letter-spacing: .015em;
	text-transform: uppercase;
	color: #f2c35c;
	background: linear-gradient(180deg, #fff6d8 0%, #f5cc6a 34%, #c48a22 58%, #f8dc8c 82%, #b47716 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 1px 0 rgba(90, 50, 8, .9)) drop-shadow(0 14px 30px rgba(0, 0, 0, .65));
}

.hhb .hhb__sub {
	margin: 1.4rem 0 2.1rem;
	max-width: 34ch;
	font-family: var(--hhb-body);
	font-style: italic;
	font-size: clamp(1.12rem, 1.7vw, 1.4rem);
	line-height: 1.45;
	color: rgba(236, 220, 184, .9);
	text-wrap: pretty;
}

.hhb .hhb__cta {
	display: inline-flex;
	align-items: center;
	padding: .95rem 1.7rem;
	border-radius: 2px;
	font-family: var(--hhb-display);
	font-weight: 700;
	font-size: .9rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--hhb-ink);
	background: linear-gradient(180deg, #ffe4a0 0%, #e2ab3c 55%, #c98a1f 100%);
	box-shadow:
		0 0 0 1px rgba(255, 230, 170, .35) inset,
		0 10px 30px -8px rgba(232, 180, 74, .55);
	transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.hhb .hhb__cta:hover {
	color: var(--hhb-ink);
	transform: translateY(-2px);
	filter: brightness(1.06);
	box-shadow:
		0 0 0 1px rgba(255, 240, 200, .6) inset,
		0 16px 36px -8px rgba(232, 180, 74, .75);
}
.hhb .hhb__cta:focus-visible {
	outline: 2px solid var(--hhb-gold-bright);
	outline-offset: 4px;
}

/* ---------- cards ---------- */
.hhb .hhb__cards {
	position: relative;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	width: 100%;
	max-width: 620px;
	aspect-ratio: 5 / 4;
	perspective: 1500px;
	transform: translate(calc(var(--hhb-px) * 12px), calc(var(--hhb-py) * 8px));
	transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.hhb .hhb__card {
	position: absolute;
	bottom: 9%;
	width: 46%;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: hhb-float 7s ease-in-out infinite;
	animation-delay: var(--delay, 0s);
}
.hhb .hhb__card--1 { left: 0;    --rz: -9deg; --ry: 18deg;  --ty: 7%;  --delay: -1.5s; z-index: 1; }
.hhb .hhb__card--2 { left: 26%;  --rz: 0deg;  --ry: 0deg;   --ty: -4%; --delay: -4s;   z-index: 3; width: 48%; }
.hhb .hhb__card--3 { left: 54%;  --rz: 9deg;  --ry: -18deg; --ty: 7%;  --delay: -6.5s; z-index: 2; }
.hhb .hhb__card:hover { z-index: 5; }

/* light thrown up from the hoard */
.hhb .hhb__card::before {
	content: '';
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: -8%;
	height: 26%;
	border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(255, 200, 95, .55), rgba(255, 160, 40, 0) 68%);
	filter: blur(10px);
	z-index: -1;
}

.hhb .hhb__card-link {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 4.8% / 3.5%;
	transform: rotateY(var(--ry)) rotateZ(var(--rz)) translateY(var(--ty));
	transform-origin: 50% 80%;
	box-shadow:
		0 34px 50px -20px rgba(0, 0, 0, .9),
		0 0 0 1px rgba(255, 220, 150, .22);
	transition: transform .55s cubic-bezier(.2, .7, .2, 1), box-shadow .55s ease;
}
.hhb .hhb__card-link img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
/* warm reflection along the bottom of each card */
.hhb .hhb__card-link::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(255, 180, 70, .22) 100%);
}
/* foil glint sweeping across the card */
.hhb .hhb__card-link::after {
	content: '';
	position: absolute;
	top: -40%;
	bottom: -40%;
	left: -70%;
	width: 55%;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(255, 250, 230, 0) 0%, rgba(255, 250, 230, .42) 50%, rgba(255, 250, 230, 0) 100%);
	transform: rotate(18deg);
	opacity: 0;
	animation: hhb-glint 8s ease-in-out infinite;
	animation-delay: var(--delay, 0s);
}
.hhb .hhb__card:hover .hhb__card-link,
.hhb .hhb__card-link:focus-visible {
	transform: rotateY(0) rotateZ(0) translateY(calc(var(--ty) - 6%)) scale(1.06);
	box-shadow:
		0 44px 60px -22px rgba(0, 0, 0, .9),
		0 0 0 1px rgba(255, 230, 170, .5),
		0 0 40px rgba(255, 190, 80, .35);
}
.hhb .hhb__card-link:focus-visible {
	outline: 2px solid var(--hhb-gold-bright);
	outline-offset: 4px;
}

.hhb .hhb__card-name {
	position: absolute;
	left: 50%;
	bottom: -2.6rem;
	transform: translateX(-50%);
	white-space: nowrap;
	font-family: var(--hhb-display);
	font-weight: 700;
	font-size: .66rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--hhb-gold);
	opacity: 0;
	pointer-events: none;
	transition: opacity .35s ease, transform .35s ease;
}
.hhb .hhb__card:hover .hhb__card-name,
.hhb .hhb__card-link:focus-visible ~ .hhb__card-name {
	opacity: 1;
	transform: translate(-50%, -4px);
}

@keyframes hhb-float {
	0%, 100% { translate: 0 0; }
	50%      { translate: 0 -2.4%; }
}
@keyframes hhb-glint {
	0%, 60%   { left: -70%; opacity: 0; }
	63%       { opacity: 1; }
	89%       { opacity: 1; }
	92%, 100% { left: 130%; opacity: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.hhb { --hhb-height: 0px; }
	.hhb__inner {
		grid-template-columns: 1fr;
		gap: 2.25rem;
		padding-block: 3rem 3.5rem;
	}
	.hhb .hhb__cards {
		max-width: 520px;
		aspect-ratio: 4 / 3;
	}
	.hhb .hhb__card { width: 40%; }
	.hhb .hhb__card--1 { left: 4%; }
	.hhb .hhb__card--2 { left: 29%; width: 42%; }
	.hhb .hhb__card--3 { left: 56%; }
	.hhb__haze {
		background:
			linear-gradient(180deg, rgba(18, 11, 6, .9) 0%, rgba(18, 11, 6, .62) 42%, rgba(18, 11, 6, .12) 66%, rgba(18, 11, 6, .4) 100%);
	}
}
@media (max-width: 520px) {
	.hhb .hhb__card-name { display: none; }
	.hhb .hhb__sub { max-width: none; }
	.hhb .hhb__eyebrow { font-size: .66rem; letter-spacing: .2em; }
}

@media (prefers-reduced-motion: reduce) {
	.hhb .hhb__card,
	.hhb .hhb__card-link::after { animation: none; }
	.hhb__scene,
	.hhb .hhb__cards,
	.hhb .hhb__card-link,
	.hhb .hhb__cta { transition: none; }
	.hhb .hhb__card-link::after { opacity: 0; }
}
