/* ABOUTME: Home stencil styles, measured from the designer's HomePage.tsx (Tailwind classes turned into CSS). Shared
   ABOUTME: patterns (MediaTextPair, buttons, type scale, quote card) live in the child theme's nclc.css. */

.scribe-home .hm-muted { color: var(--n-700); }
.scribe-home .hm-btns { display: flex; flex-wrap: wrap; gap: 16px; }
.scribe-home .hm-pad { padding: 48px 16px; }
.scribe-home .hm-inner { width: 100%; max-width: 1200px; margin-inline: auto; }
.scribe-home .hm-wrap { width: 100%; max-width: 1200px; margin-inline: auto; box-sizing: border-box; padding: 64px 24px; }
.scribe-home .hm-h2 { font: 600 40px/1.1 var(--display); color: var(--n-900); }
@media (min-width: 768px) { .scribe-home .hm-pad { padding: 64px 32px; } }
@media (min-width: 1024px) {
	.scribe-home .hm-pad { padding: 96px 64px; }
	.scribe-home .hm-wrap { padding: 96px 48px; }
	.scribe-home .hm-h2 { font-size: 56px; }
}

/* == section: hero == */
.scribe-home .mtp.hm-hero__box { flex-direction: column; }
.scribe-home .mtp__media.hm-hero__media { width: 100%; aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .scribe-home .mtp__media.hm-hero__media { aspect-ratio: 3 / 1; align-self: center; } }
/* == /section == */

/* == section: pillars == */
.scribe-home .hm-pillars__head { margin-bottom: 32px; }
.scribe-home .hm-pillars__h { font: 600 39px/47px var(--display); color: var(--n-900); }
.scribe-home .hm-pillars__intro { max-width: 820px; margin-top: 16px; font: 400 20px/33px var(--sans); color: var(--n-700); }
.scribe-home .hm-pillars__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.scribe-home .hm-pillar { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--n-100); border-radius: var(--r-xl); background: var(--n-0); box-shadow: 0 2px 8px rgba(29, 32, 32, .06); }
.scribe-home .hm-pillar__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.scribe-home .hm-pillar__body { display: flex; flex: 1; flex-direction: column; padding: 32px; }
.scribe-home .hm-pillar__label { font: 600 16px/24px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--azure-700); }
.scribe-home .hm-pillar__title { margin-top: 8px; font: 500 31px/39px var(--display); color: var(--n-900); }
.scribe-home .hm-pillar__text { margin-top: 16px; font: 400 20px/33px var(--sans); color: var(--n-700); }
.scribe-home .hm-pillar__cta { margin-top: auto; padding-top: 32px; }
.scribe-home a.hm-pill { display: inline-flex; min-height: 48px; align-items: center; gap: 12px; box-sizing: border-box; border-radius: 999px; background: var(--pastel-800); padding: 16px 32px; font: 600 18px/24px var(--sans); color: var(--n-0); text-decoration: none; transition: background-color .15s; }
.scribe-home a.hm-pill:hover { background: var(--pastel-900); color: var(--n-0); }
.scribe-home a.hm-pill:focus-visible { outline: 2px solid var(--pastel-800); outline-offset: 2px; }
@media (min-width: 768px) {
	.scribe-home .hm-pillars__head { margin-bottom: 48px; }
	.scribe-home .hm-pillars__h { font-size: 49px; line-height: 56px; }
	.scribe-home .hm-pillars__intro { margin-top: 24px; font-size: 25px; line-height: 38px; }
	.scribe-home .hm-pillars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* The designer drew two cards; the client may have two to four (the layout follows the count). Four make two rows
	   of two; three on a tablet make two over one, the third centered under them. */
	.scribe-home .hm-pillars__grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.scribe-home .hm-pillars__grid:has(> :nth-child(3):last-child) > * { grid-column: span 2; }
	.scribe-home .hm-pillars__grid:has(> :nth-child(3):last-child) > :nth-child(3) { grid-column: 2 / span 2; }
}
@media (min-width: 1024px) {
	.scribe-home .hm-pillar__body { padding: 40px; }
	.scribe-home .hm-pillar__title { font-size: 39px; line-height: 47px; }
	/* Three cards share one row on wide screens. */
	.scribe-home .hm-pillars__grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.scribe-home .hm-pillars__grid:has(> :nth-child(3):last-child) > :nth-child(n) { grid-column: auto; }
	.scribe-home .hm-pillars__grid:has(> :nth-child(3):last-child) .hm-pillar__body { padding: 32px; }
	.scribe-home .hm-pillars__grid:has(> :nth-child(3):last-child) .hm-pillar__title { font-size: 31px; line-height: 39px; }
}
/* == /section == */

/* == section: stats == */
.scribe-home .hm-stats__inner { display: flex; flex-direction: column; gap: 48px; }
.scribe-home .hm-stats__dark { display: flex; flex-direction: column; gap: 40px; border-radius: var(--r-2xl); background: var(--pastel-900); padding: 48px 24px; }
.scribe-home .hm-stats__dark-h { font: 600 26px/1.2 var(--display); color: var(--n-0); }
.scribe-home .hm-stats__light { display: flex; flex-direction: column; gap: 24px; border: 1px solid var(--n-200); border-radius: var(--r-2xl); background: var(--n-0); padding: 32px 24px; }
.scribe-home .hm-stats__light-h { font: 500 13px/1.5 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--n-600); }
.scribe-home .hm-stats__source { font: 400 15px/1.5 var(--sans); color: var(--n-600); }
.scribe-home .hm-stats__source a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.scribe-home .hm-stats__source a:hover { color: var(--n-900); }
.scribe-home .hm-stat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.scribe-home .hm-stat { display: flex; min-width: 0; flex-direction: column; gap: 12px; }
.scribe-home .hm-stat__icon { display: flex; align-items: center; }
.scribe-home .hm-stat__icon svg { display: block; }
.scribe-home .hm-stat__num { font-family: var(--display); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scribe-home .hm-stat--dark .hm-stat__icon { width: 56px; height: 56px; justify-content: center; color: var(--yellow-500); }
.scribe-home .hm-stat--dark .hm-stat__icon svg { width: 48px; height: 48px; }
.scribe-home .hm-stat--dark .hm-stat__icon svg g { stroke-width: 1.5; }
.scribe-home .hm-stat--dark .hm-stat__num { font-size: clamp(2.25rem, 4vw, 3.5rem); color: var(--n-0); }
.scribe-home .hm-stat--dark .hm-stat__label { font: 400 18px/1.45 var(--sans); color: var(--pastel-200); }
.scribe-home .hm-stat--muted .hm-stat__icon { width: 40px; height: 40px; color: var(--n-500); }
.scribe-home .hm-stat--muted .hm-stat__icon svg { width: 32px; height: 32px; }
.scribe-home .hm-stat--muted .hm-stat__icon svg g { stroke-width: 1.75; }
.scribe-home .hm-stat--muted .hm-stat__num { font-size: clamp(1.75rem, 2.6vw, 2.25rem); color: var(--n-700); }
.scribe-home .hm-stat--muted .hm-stat__label { font: 400 16px/1.45 var(--sans); color: var(--n-600); }
@media (min-width: 640px) {
	.scribe-home .hm-stats__dark { padding-inline: 40px; }
	.scribe-home .hm-stats__light { padding-inline: 40px; }
	.scribe-home .hm-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.scribe-home .hm-stats__dark { padding: 64px 56px; }
	.scribe-home .hm-stats__dark-h { font-size: 32px; }
	.scribe-home .hm-stats__light { padding-inline: 56px; }
	.scribe-home .hm-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 40px; }
}
/* == /section == */

/* == section: map == */
.scribe-home .hm-map__art { display: flex; align-items: center; justify-content: center; box-sizing: border-box; background: var(--pastel-200); padding: 24px; }
.scribe-home .hm-map__art svg { width: 100%; height: 100%; max-height: 100%; }
@media (min-width: 768px) {
	.scribe-home .mtp__media.hm-map__media { width: 58.333%; }
	.scribe-home .hm-map__art { padding: 32px; }
}
/* == /section == */

/* == section: story == */
.scribe-home .mtp__media.hm-story__media .scribe-embed { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.scribe-home .mtp__text.hm-story__text { gap: 24px; }
.scribe-home .hm-story__label { font: 500 14px/1.5 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--yellow-500); }
.scribe-home .hm-story__h { margin-top: -12px; color: var(--n-0); }
.scribe-home .hm-story__body { color: var(--plum-100); }
.scribe-home .hm-story__quote { display: flex; flex-direction: column; gap: 8px; border-left: 4px solid var(--yellow-500); padding-left: 20px; }
.scribe-home .hm-story__quote blockquote { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.scribe-home .hm-story__q-es { font: 400 22px/32px var(--sans); color: var(--n-0); }
.scribe-home .hm-story__q-en { font: 400 16px/24px var(--sans); color: var(--plum-200); }
.scribe-home .hm-story__who { font: 600 16px/22px var(--sans); color: var(--plum-200); }
.scribe-home .hm-story__cta { padding-top: 4px; }
@media (min-width: 768px) {
	.scribe-home .mtp__media.hm-story__media { width: 58.333%; }
	.scribe-home .mtp__text.hm-story__text { gap: 28px; }
}
/* == /section == */

/* == section: quote == */
.scribe-home .hm-quote__lead { max-width: 80ch; font: 400 18px/28px var(--sans); color: var(--plum-200); }
.scribe-home .hm-quote__initials { font-family: var(--display); font-weight: 600; color: var(--n-600); }
/* == /section == */

/* == section: pathways == */
.scribe-home .hm-paths__inner { display: flex; flex-direction: column; gap: 32px; }
.scribe-home .hm-paths__row { display: flex; flex-direction: column; gap: 24px; }
.scribe-home .hm-path { display: flex; width: 100%; flex-direction: column; overflow: hidden; border-radius: var(--r-xl); background: var(--pastel-100); }
.scribe-home .hm-path--turquoise { background: var(--turquoise-50); }
.scribe-home .hm-path--plum { background: var(--plum-50); }
.scribe-home .hm-path__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.scribe-home .hm-path__body { display: flex; flex: 1; flex-direction: column; gap: 24px; padding: 32px; }
.scribe-home .hm-path__links { display: flex; flex-direction: column; gap: 4px; }
.scribe-home .hm-path__cta { margin-top: auto; }
.scribe-home .hm-path__color { font: 400 14px/1.4 var(--sans); color: var(--n-600); }
@media (min-width: 768px) { .scribe-home .hm-paths__row { flex-direction: row; } }
/* == /section == */
