/* Hero variants for comparison (abso-website issue 316), loaded only with ?variant=a, b or c. The replay is
   codex-hero-studio's; these change only what sits around it. */

/* a, b, c: the hero's actions as the marketing sections' buttons, and a larger line under the headline. */
.ab-recorded-hero[data-variant] .intro .sub {
	margin-top: 8px;
	font-size: 17px;
	line-height: 26px;
	color: var(--muted);
}
.ab-recorded-hero[data-variant] .hv-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 0;
}
.ab-recorded-hero[data-variant] .hv-actions .mk-btn {
	pointer-events: auto;
}

/* b, c: the picture over the words. The narration under the scene and the method line go, so the scene takes their
   height; the transport stays. */
.ab-recorded-hero[data-variant="b"] .narration,
.ab-recorded-hero[data-variant="c"] .narration,
.ab-recorded-hero[data-variant="b"] .ab-replay227 .method,
.ab-recorded-hero[data-variant="c"] .ab-replay227 .method {
	display: none;
}

@media (max-width: 700px) {
	.ab-recorded-hero[data-variant] .intro .sub {
		font-size: 15px;
		line-height: 22px;
	}
	.ab-recorded-hero[data-variant] .hv-actions {
		margin-top: 12px;
	}
	.ab-recorded-hero[data-variant] .hv-actions .mk-btn {
		min-height: 40px;
		padding: 0 16px;
		font-size: 14px;
	}
}

/* The intro sits above the picture instead of over it: the headline and line on the left, the actions on the right.
   fitScene measures where the scene starts, so the picture takes the rest of the screen. */
.ab-recorded-hero[data-variant] {
	--mk-orange: var(--agent-2);
	--mk-orange-ink: #ff8a3d;
}
@media (min-width: 701px) {
	.ab-recorded-hero[data-variant] > .intro {
		position: relative;
		top: auto;
		left: auto;
		max-width: none;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
		column-gap: 32px;
		padding: 34px 44px 6px;
		pointer-events: auto;
	}
	.ab-recorded-hero[data-variant] > .intro > * {
		grid-column: 1;
	}
	.ab-recorded-hero[data-variant] > .intro > .recorded-browse {
		grid-column: 2;
		grid-row: 1 / span 3;
		align-self: end;
	}
	.ab-recorded-hero[data-variant] .intro h1 {
		margin: 0;
	}
	.ab-recorded-hero[data-variant] .hv-actions {
		margin: 0;
	}
}
.ab-recorded-hero[data-variant] > .intro > .ab-browse-line {
	display: none;
}
@media (max-width: 700px) {
	.ab-recorded-hero[data-variant] .hv-actions {
		flex-wrap: nowrap;
	}
	.ab-recorded-hero[data-variant] .hv-actions .mk-btn {
		flex: 0 1 auto;
		width: auto;
		white-space: nowrap;
	}
}

/* The layer under the replay (issue 302): Bootstrap's v2, diffuse colour at the edges of near-black in the projects'
   colours (the website's blue, abso's teal, abso-core's violet). hero-underlay.js sets its opacity from the replay. */
.ab-recorded-hero[data-variant] {
	isolation: isolate;
	overflow: hidden;
}
.hv-underlay {
	position: absolute;
	inset: -4%;
	z-index: -1;
	pointer-events: none;
	opacity: 0.55;
	background:
		radial-gradient(42% 60% at 0% 55%, rgba(16, 150, 135, 0.28), transparent 70%),
		radial-gradient(40% 55% at 100% 100%, rgba(130, 90, 210, 0.24), transparent 70%),
		radial-gradient(34% 40% at 8% 6%, rgba(45, 105, 174, 0.14), transparent 70%),
		radial-gradient(30% 40% at 96% 18%, rgba(16, 150, 135, 0.08), transparent 70%);
	/* Fade to nothing at the hero edges, so the layer has no visible border. */
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 85%, transparent);
	mask-composite: intersect;
	will-change: opacity, transform;
}

/* The variants' intro is taller, so their scene starts lower (see marketing.css, issue 301). */
.ab-recorded-hero[data-variant] .ab-replay227 .scene {
	height: max(150px, calc(100svh - 425px));
}
@media (max-width: 1100px) {
	.ab-recorded-hero[data-variant] .ab-replay227 .scene {
		height: max(150px, calc(100svh - 440px));
	}
}
@media (max-width: 700px) {
	.ab-recorded-hero[data-variant] .ab-replay227 .scene {
		height: max(300px, calc(100svh - 465px));
	}
}
/* c keeps the method line, so the picture still says what a stroke is. */
.ab-recorded-hero[data-variant="c"] .ab-replay227 .method {
	display: flex;
}

/* The competition entry (Christopher, Oct 15: "linked from the frontpage as a part of the hero"): a card above the
   actions, with the video's poster, so a visitor sees there is an entry to look at. Desktop: in the actions' column,
   so the intro keeps its height. Phone: above the actions, and the scene starts lower by its height. */
.ab-recorded-hero[data-variant] .hv-entry {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 0 12px;
	padding: 6px 14px 6px 6px;
	border: 1px solid rgba(239, 100, 4, 0.6);
	border-radius: 10px;
	background: rgba(239, 100, 4, 0.09);
	color: var(--ink);
	text-decoration: none;
	pointer-events: auto;
}
.ab-recorded-hero[data-variant] .hv-entry:hover {
	border-color: var(--mk-orange-ink);
	background: rgba(239, 100, 4, 0.15);
}
.ab-recorded-hero[data-variant] .hv-entry:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}
.ab-recorded-hero[data-variant] .hv-entry img {
	flex: none;
	display: block;
	width: 72px;
	height: 40px;
	border-radius: 6px;
	object-fit: cover;
	background: #000;
}
.ab-recorded-hero[data-variant] .hv-entry > span {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}
.ab-recorded-hero[data-variant] .hv-entry strong {
	font: 650 14px/19px var(--font-sans);
}
.ab-recorded-hero[data-variant] .hv-entry > span > span {
	font: 500 13px/18px var(--font-sans);
	color: var(--mk-orange-ink);
}
@media (min-width: 701px) {
	.ab-recorded-hero[data-variant] .recorded-browse {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
	}
}
@media (max-width: 700px) {
	.ab-recorded-hero[data-variant] .hv-entry {
		margin: 12px 0 0;
		padding: 5px 12px 5px 5px;
	}
	.ab-recorded-hero[data-variant] .hv-entry img {
		width: 56px;
		height: 32px;
	}
	.ab-recorded-hero[data-variant] .hv-entry strong {
		font-size: 13px;
		line-height: 17px;
	}
	.ab-recorded-hero[data-variant] .hv-entry > span > span {
		font-size: 12px;
		line-height: 16px;
	}
	.ab-recorded-hero[data-variant] .ab-replay227 .scene {
		height: max(300px, calc(100svh - 535px));
	}
}

/* Issue 340: at 360 the two hero buttons ran past the screen; on narrow phones they share the row, and every hero button is a 44 px tap target. */
.ab-recorded-hero[data-variant] .hv-actions .mk-btn {
	min-height: 44px;
}
@media (max-width: 400px) {
	.ab-recorded-hero[data-variant] .hv-actions .mk-btn {
		flex: 1 1 0;
		min-width: 0;
		justify-content: center;
		padding: 0 10px;
		font-size: 14px;
	}
}
