/* Home page sections. Owned by front-page.php. */

/* One navy band at the top, paper sections under it: the colour carries the page's weight, the
   photography comes from the records, and every heading uses the shared section head. */

/* Hero */
.home-hero {
	position: relative;
	padding-block: clamp(1.75rem, 4vw, 3.25rem) 0;
	background: var(--navy);
	color: var(--on-navy);
	overflow: hidden;
}
.home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(to right, rgba(233, 240, 245, 0.05) 1px, transparent 1px);
	background-size: 96px 100%;
	pointer-events: none;
}
.home-hero > .wrap { position: relative; }
.home-hero__body { max-width: 74ch; }
.home-hero .eyebrow { color: var(--accent-tint); }
.home-hero h1 {
	max-width: 21ch;
	margin-block: 0.35rem 0;
	color: #fff;
	font-size: var(--text-4xl);
	letter-spacing: var(--tracking-tight);
	text-wrap: balance;
}
.home-hero .lede {
	max-width: 46ch;
	margin-top: var(--space-sm);
	color: var(--on-navy-muted);
	font-size: var(--text-lg);
}
.home-hero .hero__actions { margin-top: var(--space-md); }
.home-hero .btn--ghost {
	border-color: rgba(233, 240, 245, 0.38);
	color: var(--on-navy);
}
.home-hero .btn--ghost:hover {
	border-color: var(--on-navy);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

/* The three families, stated once under the buttons so the range is legible without scrolling. */
.home-hero__principles {
	display: grid;
	gap: 0.4rem;
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	padding-top: var(--space-md);
	border-top: 1px solid rgba(233, 240, 245, 0.18);
	list-style: none;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--on-navy-muted);
}
@media (min-width: 48rem) {
	.home-hero__principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
}
.home-hero__principles li { padding-left: 0.85rem; position: relative; }
.home-hero__principles li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 6px;
	height: 1px;
	background: var(--accent);
}

/* The lineup banner: the page's featured image, wide under the headline, where a visitor sees the
   five instrument types before reading a word. */
.home-hero__banner { margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0; }
.home-hero__banner-link { display: block; border-radius: var(--radius-lg); }
.home-hero__banner-link:focus-visible { outline: 2px solid var(--accent-tint); outline-offset: 4px; }
.home-hero__banner img {
	display: block;
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.75);
}
@media (max-width: 47.99rem) {
	.home-hero__banner img { aspect-ratio: 16 / 10; }
}

/* Real counts only: the strip carries no figure the site cannot derive. */
.home-hero__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-md) var(--space-lg);
	margin-top: clamp(2rem, 5vw, 3rem);
	padding-block: var(--space-md) var(--space-lg);
	border-top: 1px solid rgba(233, 240, 245, 0.16);
}
@media (min-width: 48rem) {
	.home-hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.home-stat__value {
	display: block;
	font-family: var(--font-mono);
	font-size: clamp(1.35rem, 1.05rem + 1vw, 1.9rem);
	line-height: 1.1;
	color: #fff;
}
.home-stat__label {
	display: block;
	margin-top: 0.3rem;
	font-size: var(--text-xs);
	color: var(--on-navy-muted);
}

/* Families: a photograph from inside the family, its count, and the categories it holds. */
.home-families {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.home-family {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.home-family:hover {
	border-color: var(--line-strong);
	box-shadow: var(--shadow-lift);
	transform: translateY(-2px);
}
.home-family__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: #fff;
	border-bottom: var(--border);
}
.home-family__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: var(--space-sm);
}
.home-family__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.35rem;
	padding: var(--space-md);
}
.home-family__count {
	margin: 0;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.home-family__title { margin: 0; font-size: var(--text-xl); line-height: 1.2; }
.home-family__title a { text-decoration: none; }
.home-family__title a:hover { text-decoration: underline; }
.home-family__children { margin-top: 0.35rem; gap: 0.35rem; }
.home-family__children .chip { padding: 0.28rem 0.55rem; font-size: var(--text-xs); }

/* Products and applications: one card shape across both, so the page reads as a catalogue. */
.home-products .card__media,
.home-product .card__media {
	aspect-ratio: 4 / 3;
	background: #fff;
}
.home-product .card__media img { height: 100%; object-fit: contain; }
.home-app__media { aspect-ratio: 16 / 10; }
.home-app__media img { height: 100%; object-fit: cover; }

/* Field notes: editorial rather than photographic, so the eye rests between image-heavy sections. */
.home-note { border-top: 2px solid var(--ink); }
.home-note__tag { align-self: flex-start; }

/* How a point gets solved: the page's second dark band, numbered. */
.home-process .section-head__title { color: #fff; }
.home-process .section-head__text { color: var(--on-navy-muted); }
.home-process .eyebrow { color: var(--accent-tint); }
.home-steps {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 56rem) {
	.home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.home-steps li {
	padding-top: var(--space-sm);
	border-top: 1px solid rgba(233, 240, 245, 0.22);
}
.home-steps__num {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	letter-spacing: 0.1em;
	color: var(--accent-tint);
}
.home-steps h3 { margin: 0.6rem 0 0.4rem; font-size: var(--text-lg); color: #fff; }
.home-steps p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-body); color: var(--on-navy-muted); }

/* Documentation: the list carries the weight, the aside answers the question the list raises. */
.home-docs {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin-top: clamp(1.5rem, 3vw, 2rem);
}
@media (min-width: 56rem) {
	.home-docs { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
}
.home-downloads { border-top: var(--border); }
.home-downloads .home-download { padding-block: 0.8rem; }
.home-download__link {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-2xs) var(--space-sm);
	text-decoration: none;
}
.home-download__link:hover .home-download__title { text-decoration: underline; }
.home-download__title { font-size: var(--text-base); font-weight: 500; }
.home-download__file {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}
.home-docs__ask {
	padding: var(--space-md);
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius-lg);
}
.home-docs__ask h3 { margin: 0 0 0.5rem; font-size: var(--text-lg); }
.home-docs__ask p { margin: 0 0 var(--space-sm); font-size: var(--text-sm); color: var(--ink-soft); }

/* Cards lift on hover so a product and an application behave the same way under the pointer. */
.home-product,
.home-app,
.home-note {
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.home-product:hover,
.home-app:hover,
.home-note:hover {
	border-color: var(--line-strong);
	box-shadow: var(--shadow-lift);
	transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
	.home-family,
	.home-product,
	.home-app,
	.home-note { transition: none; }
	.home-family:hover,
	.home-product:hover,
	.home-app:hover,
	.home-note:hover { transform: none; }
}
