/* One-fold sizing pass, inner-page heroes (owner request 2026-11-22).
   Loads after zy-compact.css. Covers every .hero variant (scene right/flip/below, center,
   darkc, editorial, rsplit, split, frame, offset, dark, type and the .hl layouts).
   The homepage hero (.hm-hero) and the Contact hero (.ct-hero) do not carry .hero and are
   untouched. Goal: copy, buttons and the main visual or card inside the first viewport
   (1440x900 desktop, 390x844 phone). */

/* ================================================================ Phone (below 768) */
@media (max-width: 767px) {
	/* Rhythm: padding 28/40 to 20/36, copy gap 18 to 16. */
	.hero { padding: 20px 0 36px; }
	.hero__copy, .hero__top { gap: 16px; }

	/* H1: 36/41 to 34/39; long (over 44 characters) 32/36 to 30/35. */
	.hero .h1 { font-size: 34px; line-height: 39px; letter-spacing: -.8px; }
	.hero .h1.is-long { font-size: 30px; line-height: 35px; }

	/* Scene "below": Figma phone frames (B8-04 266:33782) left-align the copy. */
	.hero--scene-below .hero__copy { align-items: flex-start; text-align: left; }

	/* Scene card: well 12 to 10, card 18 to 16 (gap 12 to 10), rows 12 to 10. */
	.hero .scene { padding: 10px; }
	.hero .scene__card { gap: 10px; padding: 16px; }
	.hero .scene__rows { gap: 10px; }
	.hero .scene__row + .scene__row { padding-top: 10px; }
	.hero .scene__checks, .hero .scene__tiers { gap: 10px; }
	.hero .sb-map { height: 150px; }

	/* Index tiles: always 2-up (Figma phone frames), wide last tile when the count is odd.
	   Tile padding 14 to 12. Was one column whenever a label ran past 14 characters. */
	.hero .scene__tiles.is-mlong { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero .scene__tiles.is-mlong .scene__tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.hero .scene__tile { padding: 12px; }

	/* Facts strip tiles: padding 14 to 12px 14px. */
	.hero__facts .facts__item { padding: 12px 14px; }
}

/* ================================================================ Desktop (1024 and up) */
@media (min-width: 1024px) {
	/* Centered stacks (center, darkc, scene below, type): column gap 32 to 28;
	   .hl copy gap 32 to 24, scene/type copy gap 22 to 20. */
	.hero--centered .hero__inner, .hl.hero--centered .hero__inner { gap: 28px; }
	.hero--centered .hero__copy { gap: 20px; }
	.hl.hero--centered .hero__copy { gap: 24px; }

	/* center and darkc image card: 920x580 / 920x540 to 920x400, so the whole card sits
	   above the fold; the facts strip follows below it. */
	.hero--center .imgcard--hero, .hl.hero--center .imgcard--hero,
	.hero--darkc .imgcard--hero, .hl.hero--darkc .imgcard--hero { aspect-ratio: 920 / 400; }

	/* Scene card: well 28 to 22, card 26 to 22, rows 14 to 12, tiles 20 to 16, values 36/42 to 32/38. */
	.hero .scene { padding: 22px; border-radius: 26px; }
	.hero .scene__card { gap: 12px; padding: 22px; }
	.hero .scene__rows { gap: 12px; }
	.hero .scene__row + .scene__row { padding-top: 12px; }
	.hero .scene__tile { padding: 16px; }
	.hero .scene__tile-v { font-size: 32px; line-height: 38px; }
	.hero .scene__tiles.is-long .scene__tile-v { font-size: 24px; line-height: 32px; }

	/* Facts strip card: padding 26/8 to 20/8. Scene "below": strip width 1200 to the scene
	   card width (760, or 1000 for the wide index card), as center/darkc match their 920 card. */
	.hero__facts .facts { padding: 20px 8px; }
	.hero--scene-below .hero__facts { width: 760px; max-width: 100%; }
	.hero--scene-below:has(.scene--wide) .hero__facts { width: 1000px; }
}
