/* LYNX Battery page (/equipment/lynx-battery/), 1.14.53. Standalone lineup page: no WeldFlex CSS or JS.
   Hero, the LYNX Battery intro (logo and what is new), one band per machine (Freedom A.R.C., Liberty) and a closing band.
   Page content classes are lb-*; body class iwt-lb-page (inc/lynx-battery.php). */

body.iwt-lb-page {
	--lb-bg: #040912;
	--lb-panel: #08121f;
	--lb-line: rgba(79, 195, 232, 0.18);
	--lb-text: #c9d3de;
	--lb-dim: #8aa0b5;
	--lb-volt: #4fc3e8;
	--lb-volt-hot: #a9e4f5;
	--lb-volt-rgb: 79, 195, 232;
	--lb-ink: #03101a;
	background: var(--lb-bg);
}

/* Astra chrome: let the sections run edge to edge on the dark page */
body.iwt-lb-page #content,
body.iwt-lb-page .site-content,
body.iwt-lb-page .ast-container,
body.iwt-lb-page #primary,
body.iwt-lb-page .entry-content {
	background: transparent;
}
body.iwt-lb-page .site-content > .ast-container {
	margin-top: 0;
	padding: 0;
}
body.iwt-lb-page .entry-header,
body.iwt-lb-page .ast-single-post-order .entry-title {
	display: none;
}
body.iwt-lb-page .entry-content {
	color: var(--lb-text);
}
body.iwt-lb-page .entry-content > * {
	margin-block: 0;
}
/* Astra's content-area spacing above the first section */
body.iwt-lb-page.iwt-landing #primary,
body.iwt-lb-page .site-main,
body.iwt-lb-page .ast-article-single,
body.iwt-lb-page .ast-article-post {
	margin: 0;
	padding: 0;
}
body.iwt-lb-page .entry-content :is(h1, h2, h3, h4) {
	color: #fff;
}
/* Astra pads every top-level group 100px; this page uses one tighter value (needs the extra specificity) */
body.iwt-lb-page .entry-content > section {
	padding-block: clamp(44px, 5.5vw, 84px);
	overflow: hidden;
}

/* ---------- Shared ---------- */
.lb-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 1360px;
	margin-inline: auto !important;
	padding-inline: clamp(20px, 4vw, 56px);
}
.lb-wrap > * {
	margin-block: 0;
}
.entry-content .lb-eyebrow {
	margin: 0 0 14px;
	color: var(--lb-volt);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.entry-content .lb-eyebrow::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 2px;
	margin-right: 12px;
	vertical-align: middle;
	background: var(--lb-volt);
}
.entry-content h1.lb-h1 {
	margin: 0;
	font-size: var(--lb-h1);
	font-weight: 900;
	font-style: italic;
	letter-spacing: -0.015em;
	line-height: 0.98;
	text-transform: uppercase;
}
.entry-content h1.lb-h1 em {
	color: var(--lb-volt);
}
.entry-content h2.lb-h2 {
	margin: 0 0 14px;
	font-size: clamp(1.75rem, 3.4vw, 2.75rem);
	font-weight: 800;
	font-style: italic;
	letter-spacing: -0.01em;
	line-height: 1.05;
	text-transform: uppercase;
}
.entry-content .lb-lede {
	max-width: 60ch;
	margin: 0;
	color: var(--lb-text);
	font-size: clamp(1rem, 1.3vw, 1.1875rem);
	line-height: 1.6;
}

/* Buttons: primary is solid volt, the second in a row is the outline one */
body.iwt-lb-page .entry-content .lb-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}
body.iwt-lb-page .entry-content .lb-buttons .wp-block-button .wp-block-button__link {
	padding: 14px 26px;
	border: 2px solid var(--lb-volt);
	border-radius: 2px;
	background: var(--lb-volt);
	color: var(--lb-ink);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	transform: skewX(-8deg);
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
body.iwt-lb-page .entry-content .lb-buttons .wp-block-button + .wp-block-button .wp-block-button__link {
	border-color: rgba(var(--lb-volt-rgb), 0.55);
	background: transparent;
	color: #fff;
}
body.iwt-lb-page .entry-content .lb-buttons .wp-block-button .wp-block-button__link:is(:hover, :focus-visible) {
	border-color: var(--lb-volt-hot);
	background: var(--lb-volt-hot);
	color: var(--lb-ink);
	transform: skewX(-8deg) translateY(-2px);
}
body.iwt-lb-page .entry-content .lb-buttons .wp-block-button + .wp-block-button .wp-block-button__link:is(:hover, :focus-visible) {
	background: rgba(var(--lb-volt-rgb), 0.14);
	color: #fff;
}
body.iwt-lb-page .entry-content .lb-buttons .wp-block-button__link:focus-visible,
.lb-shot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* ---------- Hero ---------- */
body.iwt-lb-page .entry-content > section.lb-hero {
	padding-block: clamp(32px, 4vw, 60px) clamp(28px, 3.5vw, 48px);
}
.lb-hero {
	position: relative;
	isolation: isolate;
	background: linear-gradient(180deg, #050d1a, var(--lb-bg));
}
.lb-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(rgba(var(--lb-volt-rgb), 0.1) 1px, transparent 1.5px) 0 0 / 30px 30px;
	-webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
	mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.lb-hero .lb-wrap {
	display: grid;
	gap: clamp(24px, 3.5vw, 44px);
	container-type: inline-size;
}
.lb-top {
	--lb-h1: clamp(2.5rem, 5vw, 4.5rem);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(20px, 4vw, 64px);
}
.lb-top > * {
	margin-block: 0;
}
.lb-top__copy {
	display: grid;
	gap: 18px;
}
.lb-top__copy > * {
	margin-block: 0;
}
/* The logo file is a square with the lettering in the middle third: trim the empty bands.
   Width is 5.04 x the headline size, which makes the lettering as tall as the two headline lines. */
.lb-mark {
	width: calc(var(--lb-h1) * 5.04);
	overflow: hidden;
}
.lb-mark > * {
	margin: 0;
}
.lb-mark img {
	display: block;
	width: 100%;
	height: auto;
	margin-block: -27%;
}

/* The two machines as bare cutouts that jump to their bands, centred as a pair in the hero, each with
   its name underneath. The picture is cropped to its machine (the cutouts have wide transparent
   margins). --ar, --ia, --iw, --il, --it come from the measured machine bounds in the image. Liberty is
   drawn at 72% of Freedom's scale (the cube root of their weights, 13.5 vs 34 lb) so the size
   difference shows; the machines stand on one line, so the names line up. --shine-mask (set in the page
   content) is the image itself, to keep the shine on the machine. Since 1.14.51/1.14.52 the hero machines are
   their own photos (freedom_arc_side-3, liberty_side-1, both facing the middle), with their own crop numbers;
   the bands keep the old ones. */
.lb-shots {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: clamp(40px, 10vw, 160px);
	margin-top: clamp(8px, 1.5vw, 24px);
}
body.iwt-lb-page .entry-content a.lb-shot,
body.iwt-lb-page .entry-content a.lb-shot:is(:hover, :focus-visible) {
	text-decoration: none;
}
.lb-shot {
	position: relative;
	display: block;
	width: min(var(--w), var(--wmax));
}
.lb-shot__pic {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: var(--ar);
}
.lb-shot--freedom {
	--w: 32%;
	--wmax: 420px;
	--ar: 1.2975;
	--ia: 1.5;
	--iw: 184.39%;
	--il: -37.82%;
	--it: -38.79%;
}
.lb-cut--freedom {
	--w: 32%;
	--wmax: 420px;
	--ar: 1.3318;
	--ia: 0.75;
	--iw: 127.12%;
	--il: -16.44%;
	--it: -60.95%;
}
.lb-shot--liberty {
	--w: 26.33%;
	--wmax: 346px;
	--ar: 1.5602;
	--ia: 1.5;
	--iw: 142.88%;
	--il: -24%;
	--it: -26.85%;
}
.lb-cut--liberty {
	--w: 26.33%;
	--wmax: 346px;
	--ar: 1.522;
	--ia: 1;
	--iw: 115.47%;
	--il: -7.62%;
	--it: -38.49%;
}
.lb-shot img,
.lb-cut img {
	position: absolute;
	display: block;
	width: var(--iw);
	max-width: none;
	height: auto;
	left: var(--il);
	top: var(--it);
}
/* A band of light waiting just outside the picture; the hover animation sweeps it across. The mask
   (the machine's own image, same box as the img) leaves only the machine lit. */
.lb-shot .lb-shot__pic::after {
	content: "";
	position: absolute;
	left: var(--il);
	top: var(--it);
	width: var(--iw);
	aspect-ratio: var(--ia);
	background: linear-gradient(105deg, transparent 42%, rgba(190, 235, 255, 0.4) 47%, #fff 50%, rgba(190, 235, 255, 0.4) 53%, transparent 58%) 100% 0 / 250% 100% no-repeat;
	mix-blend-mode: plus-lighter;
	-webkit-mask: var(--shine-mask) center / 100% 100% no-repeat;
	mask: var(--shine-mask) center / 100% 100% no-repeat;
	pointer-events: none;
}
.lb-shot__name {
	display: block;
	margin-top: clamp(12px, 1.6vw, 20px);
	color: #fff;
	font-size: clamp(1.4rem, 2.6vw, 2.1rem);
	font-weight: 900;
	font-style: italic;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	transition: text-shadow 0.25s ease;
}
/* One line, centred under the machine even when wider than it ("LYNX Freedom A.R.C.", 1.14.53), so the
   two machines keep one baseline. */
.lb-shot__name {
	width: max-content;
	margin-left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}
.lb-shot__job {
	display: block;
	margin: 8px -24px 0;
	color: var(--lb-volt);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}
@keyframes lb-shine {
	to {
		background-position: 0 0;
	}
}
/* Both machines rest at full brightness (1.14.51; they used to rest dimmed). The one under the pointer or
   keyboard focus glows cyan around its outline (drop-shadow follows the cutout's alpha and is drawn outside
   the cropped box), its name glows and a glint crosses the machine. */
.lb-shot__pic {
	transition: filter 0.25s ease;
}
.lb-shot:is(:hover, :focus-visible) .lb-shot__pic {
	filter: drop-shadow(0 0 4px rgba(var(--lb-volt-rgb), 0.45)) drop-shadow(0 0 22px rgba(var(--lb-volt-rgb), 0.5));
}
.lb-shot:is(:hover, :focus-visible) .lb-shot__name {
	text-shadow: 0 0 22px rgba(var(--lb-volt-rgb), 0.55);
}
@media (hover: hover) {
	.lb-shot:is(:hover, :focus-visible) .lb-shot__pic::after {
		animation: lb-shine 0.85s ease-out;
	}
}

/* "Coming soon" (Liberty, 1.14.51): a solid volt pill. In the hero it floats above the machine, out of the
   flow, so the two machines and their names stay on one line. */
.entry-content .lb-soon,
.lb-soon {
	display: inline-block;
	margin: 0;
	padding: 4px 10px;
	border-radius: 2px;
	background: var(--lb-volt);
	color: var(--lb-ink);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}
.lb-shot__soon {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, calc(-100% - 12px));
}

/* ---------- Machine bands ---------- */
.lb-band {
	border-top: 1px solid var(--lb-line);
}
.lb-band--alt {
	background: var(--lb-panel);
}
.lb-band .lb-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 5vw, 72px);
}
.lb-band--flip .lb-band__media {
	order: 2;
}
.lb-band__media {
	margin: 0;
}
/* The band pictures are the same cropped cutouts as the hero (same crop numbers, but not mirrored, so
   the lettering reads), filling the column. Liberty is drawn at 82.4% of Freedom's width, the same 72% scale as in the hero. */
.lb-cut {
	width: var(--cw, 100%);
	margin-inline: auto;
}
.lb-cut--liberty {
	--cw: 82.4%;
}
.lb-band__body {
	display: grid;
	justify-items: start;
	gap: 16px;
	min-width: 0;
}
.lb-band__body > * {
	margin-block: 0;
}
.entry-content .lb-tag {
	margin: 0;
	padding: 3px 10px;
	border: 1px solid rgba(var(--lb-volt-rgb), 0.6);
	border-radius: 2px;
	background: rgba(var(--lb-volt-rgb), 0.1);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.entry-content h2.lb-name {
	margin: 0;
	font-size: clamp(2.25rem, 4.6vw, 4rem);
	font-weight: 900;
	font-style: italic;
	line-height: 0.95;
	text-transform: uppercase;
}
.entry-content .lb-job {
	margin: 0;
	color: var(--lb-volt);
	font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
	font-weight: 700;
}
.entry-content .lb-band__text {
	max-width: 52ch;
	margin: 0;
	line-height: 1.6;
}

/* Spec rows */
.lb-specs {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	border-top: 1px solid var(--lb-line);
}
.lb-specs > div {
	display: grid;
	grid-template-columns: minmax(7.5rem, 32%) minmax(0, 1fr);
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--lb-line);
}
.lb-specs dt {
	color: var(--lb-dim);
	font-size: 0.9375rem;
}
.lb-specs dd {
	margin: 0;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
}

/* Battery strip: what powers this machine */
.lb-power {
	box-sizing: border-box;
	display: grid;
	gap: 2px;
	width: 100%;
	padding: 14px 18px;
	border-left: 4px solid var(--lb-volt);
	background: rgba(var(--lb-volt-rgb), 0.08);
}
.entry-content .lb-power > * {
	margin: 0;
}
.entry-content .lb-power__k {
	color: var(--lb-volt);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.entry-content .lb-power__v {
	color: #fff;
	font-size: clamp(1.25rem, 2vw, 1.625rem);
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
}
.entry-content .lb-power__s {
	color: var(--lb-text);
	font-size: 0.9375rem;
}
.entry-content .lb-price {
	margin: 0;
	color: #fff;
	font-size: 1.0625rem;
}
.entry-content .lb-price strong {
	font-size: 1.5rem;
}

/* ---------- LYNX Battery intro: the logo, what is new, three proof points ---------- */
.lb-about {
	border-top: 1px solid var(--lb-line);
	background: var(--lb-panel);
}
.lb-about .lb-wrap {
	display: grid;
	gap: clamp(24px, 3.5vw, 44px);
}
.lb-about__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(24px, 5vw, 72px);
}
.lb-about__head > * {
	margin-block: 0;
}
/* the .lb-mark rules (hero section) trim the logo's empty bands; here it sets its own width */
.lb-about .lb-mark {
	width: clamp(240px, 30vw, 400px);
}
.lb-about__copy {
	display: grid;
	justify-items: start;
	gap: 14px;
}
.lb-about__copy > * {
	margin-block: 0;
}
.entry-content .lb-about .lb-eyebrow,
.entry-content .lb-about h2.lb-h2 {
	margin: 0;
}
.lb-points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 28px);
}
.lb-points > * {
	margin-block: 0;
}
.lb-point {
	padding: clamp(18px, 2.4vw, 32px);
	border: 1px solid var(--lb-line);
	border-top: 4px solid var(--lb-volt);
	border-radius: 2px;
	background: var(--lb-bg);
}
.lb-point > * {
	margin-block: 0;
}
.entry-content h3.lb-point__h {
	margin: 0 0 10px;
	font-size: clamp(1.125rem, 1.7vw, 1.4rem);
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
}
.entry-content .lb-point p {
	margin: 0;
	line-height: 1.55;
}

.entry-content .lb-note {
	margin: 0;
	color: var(--lb-dim);
	font-size: 0.8125rem;
}

/* ---------- Closing band ---------- */
.lb-close {
	border-top: 1px solid var(--lb-line);
}
.lb-close .lb-wrap {
	display: grid;
	justify-items: start;
	gap: 18px;
}

/* ---------- Desktop hero: the headline on one line ----------
   The logo is out of the hero for now (the .lb-mark rules above stay for when it returns: put back the
   two-column grid below and a fixed --lb-h1). The headline is 15.8em wide, so 6.2cqw (of the hero's
   content width) fits it with a little to spare, capped at 4.5rem. Under 900px it wraps, balanced. */
@media (min-width: 900px) {
	.lb-top {
		--lb-h1: min(4.5rem, 6.2cqw);
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
		row-gap: 18px;
	}
	.lb-h1 {
		white-space: nowrap;
	}
	.lb-top__copy {
		display: contents;
	}
	.lb-eyebrow {
		grid-column: 1;
		grid-row: 1;
	}
	.lb-h1 {
		grid-column: 1;
		grid-row: 2;
	}
	.lb-lede {
		grid-column: 1;
		grid-row: 3;
	}
	/* Logo, when it returns: lifted so its lettering starts where the headline's capitals do */
	.lb-top > .lb-mark {
		grid-column: 2;
		grid-row: 2;
		margin-top: calc(var(--lb-h1) * -0.16);
	}
}

/* ---------- Small screens ---------- */
@media (max-width: 899px) {
	.lb-top {
		grid-template-columns: 1fr;
	}
	.lb-h1 {
		text-wrap: balance;
	}
	.lb-mark {
		order: -1;
		width: 200px;
	}
	.lb-band .lb-wrap,
	.lb-about__head,
	.lb-points {
		grid-template-columns: 1fr;
	}
	.lb-band--flip .lb-band__media {
		order: 0;
	}
}
@media (max-width: 599px) {
	/* Stacked: room above Liberty for its Coming soon pill */
	.lb-shots {
		flex-direction: column;
		align-items: center;
		gap: 56px;
	}
	.lb-shot--freedom {
		--w: 80%;
	}
	.lb-shot--liberty {
		--w: 65.8%;
	}
	.lb-specs > div {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.lb-shot__pic,
	.lb-shot__name,
	body.iwt-lb-page .entry-content .lb-buttons .wp-block-button__link {
		transition: none;
	}
	.lb-shot:is(:hover, :focus-visible) .lb-shot__pic::after {
		animation: none;
	}
}
