/* =========================================================================
   HollaJack: homepage motion (2026-11-18)

   The hero (rail itself: rail.css), the big ticker, the dark signature band, scroll reveals and
   card tilt. Front page only (enqueued in functions.php after storefront.css).

   This deliberately spends more motion than style guide §13 ("crossfades,
   not slides") and adds soft depth to hanging work. The rules that still
   hold: no urgency, no countdowns, brass only for editions, every animation
   sits under prefers-reduced-motion: no-preference, and the page reads
   complete with no JavaScript at all.
   ========================================================================= */

/* --- Hero: the claim, centred over the rail ------------------------------ */

.hj-hero--rail {
	padding-block: var(--hj-7) var(--hj-7);
	overflow: hidden;
}

.hj-hero--rail::before {
	background: radial-gradient(70% 55% at 50% 22%, var(--hj-bone-deep) 0%, rgba(236, 231, 219, 0) 72%);
}

.hj-hero--rail .hj-hero__topline {
	margin-bottom: var(--hj-6);
}

.hj-hero__title {
	font-size: clamp(2.6rem, 6.4vw, 5.75rem);
	line-height: 1.02;
	letter-spacing: -0.01em;
	text-align: center;
	margin: 0;
}

/* Each line rises out of its own mask on load. */
.hj-hero__line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.12em;
	margin-bottom: -0.1em;
}

.hj-hero__line > * {
	display: inline-block;
}

.hj-hero__line em {
	color: var(--hj-ink-soft);
}

/* --- Hero foot: the definition and the two doors ------------------------- */

.hj-hero__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--hj-7);
	padding-top: var(--hj-5);
	border-top: 1px solid var(--hj-line);
}

.hj-hero--rail .hj-hero__lede {
	max-width: 60ch;
	margin-top: 0;
}

.hj-hero--rail .hj-hero__meta {
	margin-top: var(--hj-3);
}

.hj-hero--rail .hj-hero__actions {
	flex: none;
	margin-top: 0;
}

@media (max-width: 900px) {
	.hj-hero__foot {
		flex-direction: column;
		align-items: stretch;
		gap: var(--hj-5);
	}
}

@media (max-width: 760px) {
	.hj-hero--rail {
		padding-block: var(--hj-6) var(--hj-7);
	}

	.hj-hero--rail .hj-hero__topline {
		margin-bottom: var(--hj-5);
	}

	.hj-hero--rail .hj-hero__flag {
		display: none;
	}

	.hj-hero__title {
		font-size: clamp(2.4rem, 12vw, 3.4rem);
	}




	.hj-hero--rail .hj-hero__actions .hj-btn {
		flex: 1 1 auto;
		text-align: center;
	}
}

/* --- Motion: the claim rises, the foot settles (rail motion: rail.css) --- */

@media (prefers-reduced-motion: no-preference) {
	.hj-hero__line > * {
		animation: hj-rise 1000ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
	}

	.hj-hero__line + .hj-hero__line > * {
		animation-delay: 120ms;
	}

	.hj-hero--rail .hj-hero__foot {
		animation: hj-settle 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 380ms both;
	}
}

@keyframes hj-rise {
	from { transform: translateY(105%); }
	to   { transform: none; }
}

/* --- The ticker, at display size on ink ---------------------------------- */

.hj-ticker--big {
	background: var(--hj-ink);
	border: 0;
	padding-block: var(--hj-5);
}

.hj-ticker--big .hj-ticker__track {
	will-change: transform;
}

.hj-ticker--big .hj-ticker__item {
	font-family: var(--hj-display);
	font-size: clamp(1.75rem, 3.6vw, 3.25rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0;
	text-transform: none;
	color: var(--hj-bone);
	padding-inline: var(--hj-6);
}

.hj-ticker--big .hj-ticker__item:nth-child(4n + 3) {
	font-style: italic;
	color: #D9C08C;
}

.hj-ticker--big .hj-ticker__dot {
	font-size: clamp(1.5rem, 3vw, 2.5rem);
	color: var(--hj-brass);
}

/* --- The signature, on ink: a certificate on a dark wall ----------------- */

.hj-signature--dark {
	background: var(--hj-ink);
	color: var(--hj-bone);
}

.hj-signature--dark .hj-eyebrow {
	color: #B9B2A3;
}

.hj-signature--dark .hj-display-l {
	color: var(--hj-bone);
}

.hj-signature--dark .hj-display-l em {
	color: #D9C08C;
}

.hj-signature--dark .hj-lede,
.hj-signature--dark .hj-signature__points li {
	color: #CFC8B8;
}

.hj-signature--dark .hj-signature__points strong {
	color: var(--hj-bone);
}

.hj-signature--dark .hj-signature__points li {
	border-color: rgba(245, 242, 234, 0.14);
}

.hj-signature--dark .hj-signature__specimen-cap,
.hj-signature--dark .hj-signature__chop-cap {
	color: #A39C8D;
}

.hj-signature--dark .hj-ledger {
	color: var(--hj-ink);
	box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.75);
}

/* --- Scroll reveals and card tilt (classes set by home.js) --------------- */

@media (prefers-reduced-motion: no-preference) {
	.hj-reveal {
		opacity: 0;
		transform: translateY(28px);
		transition:
			opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
			transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
		transition-delay: calc(var(--hj-i, 0) * 90ms);
	}

	.hj-reveal.is-in {
		opacity: 1;
		transform: none;
	}

	.home .hj-card .hj-mat {
		transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 350ms ease, border-color var(--hj-fade);
		will-change: transform;
	}

	.home .hj-card__link:hover .hj-mat {
		box-shadow: 0 24px 40px -26px rgba(22, 19, 15, 0.5);
	}
}
