/*
 * Home page (front-page template). Tokens only; shared parts live in page-common.css.
 */

.home-hero {
	padding-block: 40px;
}

.home-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-12);
	align-items: center;
}

.home-hero .ap-lead {
	max-width: 620px;
}

.home-hero .ap-note--small {
	margin-block-start: var(--space-6);
	font-size: 13px;
	line-height: 20px;
}

/* Orchestration motif (decorative inline SVG): 1 human pilot, 8 agent crew, 5 standard rings */
.home-visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-4);
}

.home-motif {
	display: block;
	width: 100%;
	max-width: 440px;
	height: auto;
}

.home-motif__ring {
	fill: none;
	stroke: var(--primary-text);
	stroke-opacity: 0.2;
}

.home-motif__ring--dash {
	stroke-dasharray: 4 4;
	stroke-opacity: 0.3;
}

.home-motif__ring--core {
	fill: var(--brand-teal);
	fill-opacity: 0.06;
	stroke: var(--brand-teal);
	stroke-opacity: 0.4;
}

.home-motif__label {
	font-family: var(--font-mono);
	font-size: 11px;
	fill: var(--muted);
	stroke: var(--bg);
	stroke-width: 6px;
	paint-order: stroke;
}

.home-motif__label--on {
	fill: var(--primary-text);
}

.home-motif__chip {
	fill: var(--surface-3);
	stroke: var(--primary-text);
	stroke-opacity: 0.5;
}

.home-motif__glyph {
	color: var(--primary-text);
}

.home-motif__pilot {
	fill: var(--surface);
	stroke: var(--success);
	stroke-width: 2px;
}

.home-motif__pilot-glyph,
.home-motif__pilot-label {
	color: var(--success);
}

.home-motif__pilot-label {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	fill: var(--success);
}

.home-visual__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-1) var(--space-4);
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 20px;
	color: var(--muted);
}

.home-visual__pilot {
	color: var(--success);
}

.home-visual__crew {
	color: var(--primary-text);
}

.home-visual__rings {
	color: var(--text);
}

.home-proof {
	padding-block-end: var(--space-12);
}

/* Research artefacts */
.home-product__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin-block-end: var(--space-2);
}

.home-product__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: var(--surface-3);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--primary-text);
}

.home-product__sub {
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 20px;
	color: var(--muted);
}

.home-product__more {
	margin-block-start: auto;
}

.home-product .ap-kicker {
	margin-block-end: 0;
}

/* Team */
.home-people {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-3);
}

.home-person {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	padding: var(--space-4);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}


.home-person__portrait {
	display: block;
	flex: none;
	width: 80px;
	height: 80px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: var(--surface-3);
	object-fit: cover;
}

.home-person__portrait--human {
	border: 2px solid var(--success);
}

/* Visible "AI" label on each agent portrait (issue #40, AI Act Art. 50(4)) */
.home-person__media {
	position: relative;
	display: block;
	flex: none;
	width: 80px;
	height: 80px;
}

.home-person__ai {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 0 var(--space-1);
	background: var(--surface-3);
	border: 1px solid var(--border);
	border-radius: var(--radius-xs);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	line-height: 16px;
	color: var(--text);
}


.home-person__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.home-person__name {
	font-weight: 600;
	color: var(--text);
}

.home-person__role {
	font-size: 14px;
	line-height: 22px;
	color: var(--muted);
}

/* Governance */
.home-gov__head {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.home-gov__head > div {
	max-width: 720px;
}

.home-gov__disclaimer {
	max-width: 360px;
}

.home-standard__name {
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
}

/* Latest insights (core/query) */
.home-insights__query .ap-grid {
	margin-block-start: var(--space-6);
}

.home-post {
	height: 100%;
}

.home-post__date {
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 20px;
	color: var(--muted);
}

.home-post__title {
	font-size: 18px;
	line-height: 26px;
}

.home-post__title a {
	color: var(--text);
	text-decoration: none;
}

.home-post__title a:hover {
	color: var(--primary-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.home-insights__query .wp-block-read-more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-block-start: auto;
	color: var(--primary-text);
	font-weight: 600;
	text-decoration: none;
}

@media (min-width: 768px) {
	.home-hero {
		padding-block: 72px 64px;
	}

	.home-people {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-proof {
		padding-block-end: var(--space-16);
	}
}

@media (min-width: 1024px) {
	.home-hero {
		padding-block: var(--space-24) 80px;
	}

	.home-hero__grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: var(--space-12);
	}

	.home-hero .ap-h1 {
		font-size: 64px;
		line-height: 72px;
		letter-spacing: -0.03em;
	}

	.home-hero .ap-lead {
		font-size: 18px;
		line-height: 28px;
		margin-block-start: var(--space-6);
	}

	.home-proof {
		padding-block-end: var(--space-24);
	}

	.home-gov__head {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: var(--space-8);
	}
}

/* Mobile hero order (PO decision 2026-11-03, issue #43): eyebrow, H1, visual, text, buttons, status note.
   The copy wrapper dissolves so its children and the decorative visual share one flex column. */
@media (max-width: 767px) {
	.home-hero__grid {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.home-hero__copy {
		display: contents;
	}

	.home-hero .ap-eyebrow {
		order: 1;
	}

	.home-hero .ap-h1 {
		order: 2;
	}

	.home-visual {
		order: 3;
		margin-block: var(--space-6) var(--space-2);
	}

	/* The visual fills the content width (PO decision 2026-11-03 00:38). */
	.home-motif {
		width: 100%;
		max-width: none;
	}

	.home-hero .ap-lead {
		order: 4;
	}

	.home-hero .ap-btns {
		order: 5;
	}

	.home-hero .ap-note--small {
		order: 6;
	}
}

