/* HJ Commercial: the clean player and the homepage commercial section.
   Built on the theme tokens (themes/hollajack/assets/css/tokens.css). */

.hj-cv {
	position: relative;
	aspect-ratio: 16 / 9;
	max-width: 100%;
	background: #0E0C0A;
	border-radius: var(--hj-radius-mat, 4px);
	overflow: hidden;
	isolation: isolate;
}

.hj-cv__poster {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: pointer;
	color: var(--hj-bone, #F5F2EA);
	text-align: left;
}

.hj-cv__poster img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms ease, filter 300ms ease;
}

/* A soft floor so the label reads on any frame. */
.hj-cv__poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(14, 12, 10, 0.72) 0%, rgba(14, 12, 10, 0.18) 34%, rgba(14, 12, 10, 0) 60%);
	pointer-events: none;
}

.hj-cv__play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 92px;
	height: 92px;
	margin: -46px 0 0 -46px;
	border-radius: 50%;
	background: rgba(245, 242, 234, 0.94);
	color: var(--hj-ink, #16130F);
	box-shadow: 0 10px 36px rgba(14, 12, 10, 0.35), 0 0 0 1px rgba(168, 130, 60, 0.55);
	transition: transform 200ms ease, background 200ms ease;
}

.hj-cv__play svg {
	margin-left: 4px;
}

.hj-cv__label {
	position: absolute;
	left: clamp(16px, 3vw, 28px);
	bottom: clamp(14px, 2.6vw, 24px);
	z-index: 1;
	display: flex;
	align-items: baseline;
	gap: 12px;
	font-family: var(--hj-ui, Inter, sans-serif);
	font-size: var(--hj-size-eyebrow, 0.75rem);
	font-weight: 500;
	letter-spacing: var(--hj-track-eyebrow, 0.12em);
	text-transform: uppercase;
	color: var(--hj-bone, #F5F2EA);
}

.hj-cv__time {
	font-variant-numeric: tabular-nums;
	color: var(--hj-brass, #A8823C);
	letter-spacing: 0.06em;
}

.hj-cv__again {
	display: none;
}

.hj-cv.is-done .hj-cv__first {
	display: none;
}

.hj-cv.is-done .hj-cv__again {
	display: inline;
}

.hj-cv__poster:hover img {
	transform: scale(1.02);
}

.hj-cv__poster:hover .hj-cv__play {
	transform: scale(1.06);
	background: #FFFFFF;
}

.hj-cv__poster:focus-visible {
	outline: 2px solid var(--hj-brass, #A8823C);
	outline-offset: -4px;
}

.hj-cv.is-loading .hj-cv__play {
	animation: hj-cv-pulse 900ms ease-in-out infinite alternate;
}

@keyframes hj-cv-pulse {
	from { transform: scale(1); }
	to { transform: scale(0.9); }
}

/* The player takes the poster's place; it is never covered. */
.hj-cv__player,
.hj-cv iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	z-index: 2;
}

.hj-cv.is-playing .hj-cv__poster {
	visibility: hidden;
}

.hj-cv__fallback {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 3;
	color: var(--hj-bone, #F5F2EA);
}

@media (max-width: 600px) {
	.hj-cv__play {
		width: 68px;
		height: 68px;
		margin: -34px 0 0 -34px;
	}

	.hj-cv__play svg {
		width: 24px;
		height: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hj-cv__poster img,
	.hj-cv__play {
		transition: none;
	}

	.hj-cv.is-loading .hj-cv__play {
		animation: none;
	}
}

/* --- The homepage section -------------------------------------------- */

.hj-commercial__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--hj-6, 32px);
	align-items: end;
	margin-bottom: var(--hj-6, 32px);
}

.hj-commercial__head .hj-eyebrow {
	margin-bottom: var(--hj-3, 12px);
}

.hj-commercial__head .hj-lede {
	margin: 0;
}

.hj-commercial__gw {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--hj-2, 8px) var(--hj-4, 16px);
	margin: var(--hj-5, 24px) 0 0;
	font-size: var(--hj-size-small, 0.875rem);
}

.hj-commercial__gw a {
	color: var(--hj-brass-deep, #7A5E28);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hj-commercial__gw .hj-numeral {
	font-family: inherit;
	color: inherit;
}

.hj-commercial__gw span {
	color: var(--hj-stone, #6B665D);
}

@media (max-width: 900px) {
	.hj-commercial__head {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--hj-4, 16px);
	}
}
