/* =========================================================================
   HollaJack: "Make the work. Jarvis runs the rest." (2026-11-19)
   Jarvis, A1AI Workspace, and how HollaJack and SociallyBid fit with it.
   Markup: inc/ecosystem.php. Homepage and /become-an-artist/.
   An ink band, like the homepage's signature band; brass stays reserved for
   edition numbers, so the connectors here are bone hairlines.
   ========================================================================= */

.hj-eco {
	position: relative;
	overflow: hidden;
	background: var(--hj-ink);
	color: var(--hj-bone);
}

/* A soft light behind Jarvis, so the robot does not sit on flat black. */
.hj-eco::before {
	content: '';
	position: absolute;
	top: -10%;
	left: -10%;
	width: 60%;
	height: 70%;
	background: radial-gradient(closest-side, rgba(217, 192, 140, 0.16), transparent);
	pointer-events: none;
}

.hj-eco > .hj-wrap {
	position: relative;
}

.hj-eco .hj-eyebrow {
	color: #B9B2A3;
}

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

.hj-eco .hj-display-l em {
	display: block;
	color: #D9C08C;
}

.hj-eco .hj-lede {
	color: #CFC8B8;
	max-width: 62ch;
}

/* --- Jarvis and the claim ------------------------------------------------ */

.hj-eco__intro {
	display: grid;
	grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
	gap: var(--hj-8);
	align-items: center;
}

.hj-eco__jarvis {
	position: relative;
	margin: 0;
}

.hj-eco__jarvis-img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.5));
}

.hj-eco__hi {
	position: absolute;
	top: 4%;
	left: -6%;
	padding: 8px 14px;
	border-radius: 16px 16px 16px 4px;
	background: var(--hj-bone);
	color: var(--hj-ink);
	font-family: var(--hj-ui);
	font-size: var(--hj-size-small);
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* --- Two lists: organise, promote ---------------------------------------- */

.hj-eco__lists {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--hj-7);
	margin-top: var(--hj-8);
}

.hj-eco__list-title {
	margin: 0 0 var(--hj-4);
	padding-bottom: var(--hj-3);
	border-bottom: 1px solid rgba(245, 242, 234, 0.18);
	font-family: var(--hj-ui);
	font-size: var(--hj-size-eyebrow);
	font-weight: 500;
	letter-spacing: var(--hj-track-eyebrow);
	text-transform: uppercase;
	color: #B9B2A3;
}

.hj-eco__list ul {
	display: grid;
	gap: var(--hj-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hj-eco__list li {
	color: #CFC8B8;
	font-size: var(--hj-size-body);
	line-height: var(--hj-leading-body);
}

.hj-eco__list strong {
	color: var(--hj-bone);
	font-weight: 600;
}

/* --- How the three fit together ------------------------------------------ */

.hj-eco__fit {
	margin-top: var(--hj-9);
}

.hj-eco__fit-title {
	margin: 0 0 var(--hj-6);
	font-family: var(--hj-display);
	font-size: var(--hj-size-display-m);
	font-weight: 400;
	color: var(--hj-bone);
	text-align: center;
}

.hj-eco__nodes {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--hj-6);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The line that joins the three, drawn in on scroll (ecosystem.js). */
.hj-eco__nodes::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 8%;
	right: 8%;
	height: 1px;
	background: rgba(245, 242, 234, 0.35);
	transform-origin: center;
}

.hj-eco__node {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--hj-2);
	padding: var(--hj-6) var(--hj-5);
	background: #1E1A15;
	border: 1px solid rgba(245, 242, 234, 0.16);
	border-radius: var(--hj-radius-mat);
}

.hj-eco__node--hub {
	background: #26211A;
	border-color: rgba(245, 242, 234, 0.45);
	box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.8);
}

.hj-eco__node-kicker {
	font-size: var(--hj-size-eyebrow);
	font-weight: 500;
	letter-spacing: var(--hj-track-eyebrow);
	text-transform: uppercase;
	color: #B9B2A3;
}

.hj-eco__node-title {
	font-family: var(--hj-display);
	font-size: 1.5rem;
	line-height: 1.15;
	color: var(--hj-bone);
}

.hj-eco__node--hub .hj-eco__node-title {
	color: #D9C08C;
}

.hj-eco__node-body {
	flex: 1;
	font-size: var(--hj-size-small);
	line-height: var(--hj-leading-body);
	color: #CFC8B8;
}

.hj-eco__node-link {
	margin-top: var(--hj-3);
	font-size: var(--hj-size-small);
	font-weight: 500;
	color: var(--hj-bone);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(245, 242, 234, 0.4);
}

.hj-eco__node-link:hover {
	text-decoration-color: var(--hj-bone);
	color: var(--hj-bone);
}

.hj-eco__how {
	display: grid;
	gap: var(--hj-3);
	max-width: 760px;
	margin: var(--hj-7) auto 0;
	padding: 0;
	list-style: none;
}

.hj-eco__how li {
	position: relative;
	padding-left: var(--hj-5);
	font-size: var(--hj-size-small);
	line-height: var(--hj-leading-body);
	color: #CFC8B8;
}

.hj-eco__how li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.75em;
	width: 8px;
	height: 1px;
	background: rgba(245, 242, 234, 0.5);
}

.hj-eco__soon {
	display: inline-block;
	margin-right: 6px;
	padding: 1px 7px;
	border: 1px dashed rgba(245, 242, 234, 0.5);
	border-radius: 999px;
	font-size: 0.6875rem;
	letter-spacing: var(--hj-track-eyebrow);
	text-transform: uppercase;
	color: var(--hj-bone);
}

/* --- Calls to action ----------------------------------------------------- */

.hj-eco__cta {
	margin-top: var(--hj-8);
	text-align: center;
}

.hj-eco__cta .hj-hero__actions {
	justify-content: center;
	margin-top: 0;
}

.hj-btn--light {
	background: var(--hj-bone);
	color: var(--hj-ink);
	border: 1px solid var(--hj-bone);
}

.hj-btn--light:hover,
.hj-btn--light:focus {
	background: #fff;
	color: var(--hj-ink);
}

.hj-btn--ghost-light {
	background: transparent;
	color: var(--hj-bone);
	border: 1px solid rgba(245, 242, 234, 0.55);
}

.hj-btn--ghost-light:hover,
.hj-btn--ghost-light:focus {
	background: rgba(245, 242, 234, 0.08);
	color: var(--hj-bone);
	border-color: var(--hj-bone);
}

.hj-eco__fine {
	max-width: 640px;
	margin: var(--hj-5) auto 0;
	font-size: var(--hj-size-eyebrow);
	line-height: 1.6;
	color: #A39C8D;
}

/* --- Tablet and phone ---------------------------------------------------- */

@media (max-width: 900px) {
	.hj-eco__intro {
		grid-template-columns: 1fr;
		gap: var(--hj-6);
		text-align: center;
	}

	.hj-eco__jarvis {
		width: 180px;
		margin: 0 auto;
	}

	/* Beside his head, not over his face. */
	.hj-eco__hi {
		top: 2%;
		left: auto;
		right: 76%;
		padding: 6px 10px;
		font-size: var(--hj-size-eyebrow);
		border-radius: 14px 14px 4px 14px;
	}

	.hj-eco .hj-lede {
		margin-inline: auto;
	}

	.hj-eco__lists {
		grid-template-columns: 1fr;
		gap: var(--hj-6);
	}

	.hj-eco__nodes {
		grid-template-columns: 1fr;
		gap: var(--hj-5);
	}

	/* Vertical joining line on one column. */
	.hj-eco__nodes::before {
		top: 6%;
		bottom: 6%;
		left: 50%;
		right: auto;
		width: 1px;
		height: auto;
	}
}

/* --- Motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	.hj-eco.hj-anim .hj-eco__nodes::before {
		transform: scaleX(0);
		transition: transform 1100ms cubic-bezier(0.6, 0, 0.2, 1) 200ms;
	}

	.hj-eco.hj-anim .hj-eco__node {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.hj-eco.hj-anim .hj-eco__node:nth-child(2) { transition-delay: 140ms; }
	.hj-eco.hj-anim .hj-eco__node:nth-child(3) { transition-delay: 280ms; }

	.hj-eco.hj-anim.is-in .hj-eco__nodes::before {
		transform: scaleX(1);
	}

	.hj-eco.hj-anim.is-in .hj-eco__node {
		opacity: 1;
		transform: none;
	}

	.hj-eco__hi {
		animation: hj-eco-bob 4s ease-in-out infinite alternate;
	}
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
	.hj-eco.hj-anim .hj-eco__nodes::before {
		transform: scaleY(0);
	}

	.hj-eco.hj-anim.is-in .hj-eco__nodes::before {
		transform: scaleY(1);
	}
}

@keyframes hj-eco-bob {
	from { transform: translateY(0); }
	to   { transform: translateY(-5px); }
}
